chunk-3ec268af.57bba08c.js 7.12 MB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ec268af","fail"],{"004c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-layout",{attrs:{avatar:e.avatar}},[n("div",{attrs:{slot:"headerContent"},slot:"headerContent"},[n("div",{staticClass:"title"},[e._v(e._s(e.timeFix)+","+e._s(e.nickname())),n("span",{staticClass:"welcome-text"},[e._v(","+e._s(e.welcome()))])]),n("div",[e._v("前端工程师 | 蚂蚁金服 - 某某某事业群 - VUE平台")])]),n("div",{attrs:{slot:"extra"},slot:"extra"},[n("a-row",{staticClass:"more-info"},[n("a-col",{attrs:{span:8}},[n("head-info",{attrs:{title:"项目数",content:"56",center:!1,bordered:!1}})],1),n("a-col",{attrs:{span:8}},[n("head-info",{attrs:{title:"团队排名",content:"8/24",center:!1,bordered:!1}})],1),n("a-col",{attrs:{span:8}},[n("head-info",{attrs:{title:"项目访问",content:"2,223",center:!1}})],1)],1)],1),n("div",[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{xl:16,lg:24,md:24,sm:24,xs:24}},[n("a-card",{staticClass:"project-list",staticStyle:{"margin-bottom":"24px"},attrs:{loading:e.loading,bordered:!1,title:"进行中的项目","body-style":{padding:0}}},[n("a",{attrs:{slot:"extra"},slot:"extra"},[e._v("全部项目")]),n("div",e._l(e.projects,(function(t,r){return n("a-card-grid",{key:r,staticClass:"project-card-grid"},[n("a-card",{attrs:{bordered:!1,"body-style":{padding:0}}},[n("a-card-meta",[n("div",{staticClass:"card-title",attrs:{slot:"title"},slot:"title"},[n("a-avatar",{attrs:{size:"small",src:t.cover}}),n("a",[e._v(e._s(t.title))])],1),n("div",{staticClass:"card-description",attrs:{slot:"description"},slot:"description"},[e._v("\n                    "+e._s(t.description)+"\n                  ")])]),n("div",{staticClass:"project-item"},[n("a",{attrs:{href:"/#/"}},[e._v("科学搬砖组")]),n("span",{staticClass:"datetime"},[e._v("9小时前")])])],1)],1)})),1)]),n("a-card",{attrs:{loading:e.loading,title:"动态",bordered:!1}},[n("a-list",e._l(e.activities,(function(t,r){return n("a-list-item",{key:r},[n("a-list-item-meta",[n("a-avatar",{attrs:{slot:"avatar",src:t.user.avatar},slot:"avatar"}),n("div",{attrs:{slot:"title"},slot:"title"},[n("span",[e._v(e._s(t.user.nickname))]),e._v(" \n                  在 "),n("a",{attrs:{href:"#"}},[e._v(e._s(t.project.name))]),e._v(" \n                  "),n("span",[e._v(e._s(t.project.action))]),e._v(" \n                  "),n("a",{attrs:{href:"#"}},[e._v(e._s(t.project.event))])]),n("div",{attrs:{slot:"description"},slot:"description"},[e._v(e._s(t.time))])],1)],1)})),1)],1)],1),n("a-col",{staticStyle:{padding:"0 12px"},attrs:{xl:8,lg:24,md:24,sm:24,xs:24}},[n("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"快速开始 / 便捷导航",bordered:!1,"body-style":{padding:0}}},[n("div",{staticClass:"item-group"},[n("a",[e._v("操作一")]),n("a",[e._v("操作二")]),n("a",[e._v("操作三")]),n("a",[e._v("操作四")]),n("a",[e._v("操作五")]),n("a",[e._v("操作六")]),n("a-button",{attrs:{size:"small",type:"primary",ghost:"",icon:"plus"}},[e._v("添加")])],1)]),n("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"XX 指数",loading:e.radarLoading,bordered:!1,"body-style":{padding:0}}},[n("div",{staticStyle:{"min-height":"400px"}},[n("radar",{attrs:{data:e.radarData}})],1)]),n("a-card",{attrs:{loading:e.loading,title:"团队",bordered:!1}},[n("div",{staticClass:"members"},[n("a-row",e._l(e.teams,(function(t,r){return n("a-col",{key:r,attrs:{span:12}},[n("a",[n("a-avatar",{attrs:{size:"small",src:t.avatar}}),n("span",{staticClass:"member"},[e._v(e._s(t.name))])],1)])})),1)],1)])],1)],1)],1)])},i=[],o=n("be94"),a=n("ca00"),s=n("2f62"),l=n("b445"),c=n("81d1"),u=n("3981"),d=n("0fea"),f=n("7104"),h={name:"Workplace",components:{PageLayout:l["default"],HeadInfo:c["default"],Radar:u["default"]},data:function(){return{timeFix:Object(a["g"])(),avatar:"",user:{},projects:[],loading:!0,radarLoading:!0,activities:[],teams:[],axis1Opts:{dataKey:"item",line:null,tickLine:null,grid:{lineStyle:{lineDash:null},hideFirstLine:!1}},axis2Opts:{dataKey:"score",line:null,tickLine:null,grid:{type:"polygon",lineStyle:{lineDash:null}}},scale:[{dataKey:"score",min:0,max:80}],axisData:[{item:"引用",a:70,b:30,c:40},{item:"口碑",a:60,b:70,c:40},{item:"产量",a:50,b:60,c:40},{item:"贡献",a:40,b:50,c:40},{item:"热度",a:60,b:70,c:40},{item:"引用",a:70,b:50,c:40}],radarData:[]}},computed:{userInfo:function(){return this.$store.getters.userInfo}},created:function(){this.user=this.userInfo,this.avatar=window._CONFIG["imgDomainURL"]+"/"+this.userInfo.avatar,console.log("this.avatar :"+this.avatar),Object(d["g"])().then((function(e){console.log("workplace -> call getRoleList()",e)})),Object(d["h"])().then((function(e){console.log("workplace -> call getServiceList()",e)}))},mounted:function(){this.getProjects(),this.getActivity(),this.getTeams(),this.initRadar()},methods:Object(o["a"])({},Object(s["c"])(["nickname","welcome"]),{getProjects:function(){var e=this;this.$http.get("/api/list/search/projects").then((function(t){e.projects=t.result&&t.result.data,e.loading=!1}))},getActivity:function(){var e=this;this.$http.get("/api/workplace/activity").then((function(t){e.activities=t.result}))},getTeams:function(){var e=this;this.$http.get("/api/workplace/teams").then((function(t){e.teams=t.result}))},initRadar:function(){var e=this;this.radarLoading=!0,this.$http.get("/api/workplace/radar").then((function(t){var n=(new f.View).source(t.result);n.transform({type:"fold",fields:["个人","团队","部门"],key:"user",value:"score"}),e.radarData=n.rows,e.radarLoading=!1}))}})},p=h,m=(n("0108"),n("2877")),g=Object(m["a"])(p,r,i,!1,null,"5fe3f1db",null);t["default"]=g.exports},"0074":function(e,t,n){e.exports=c;var r=n("2ef0"),i=n("9eab"),o=n("faa1").EventEmitter,a=n("7d33"),s=n("4d67"),l=n("de57");function c(e,t){if(t=t||{},o.call(this),this.log=t.log||new a,this.pingTimeout=t.pingTimeout||3e3,!e)throw new TypeError("Missing host");if(!(e instanceof s))throw new TypeError("Invalid host");this.host=e,i.makeBoundMethods(this)}i.inherits(c,o),c.prototype.request=function(){throw new Error("Connection#request must be overwritten by the Connector")},c.prototype.ping=function(e,t){"function"===typeof e?(t=e,e=null):t="function"===typeof t?t:null;var n,i,o,a=this.pingTimeout;e&&e.hasOwnProperty("requestTimeout")&&(a=e.requestTimeout),o=this.request(r.defaults(e||{},{path:"/",method:"HEAD"}),(function(e){i||(clearTimeout(n),t&&t(e))})),a&&(n=setTimeout((function(){o&&o(),i=!0,t&&t(new l.RequestTimeout("Ping Timeout after "+a+"ms"))}),a))},c.prototype.setStatus=function(e){var t=this.status;this.status=e,this.emit("status set",e,t,this),"closed"===e&&this.removeAllListeners()}},"0108":function(e,t,n){"use strict";n("409b")},"0137":function(e,t,n){"use strict";n("3d81")},"0199":function(e,t,n){"use strict";n("3409")},"019b":function(e,t,n){"use strict";n("985c")},"01c0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-row",{attrs:{gutter:10}},[n("a-col",{staticStyle:{"margin-bottom":"20px"},attrs:{md:e.leftColMd,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"角色名称",labelCol:{span:5},wrapperCol:{span:18,offset:1}}},[n("a-input",{attrs:{placeholder:""},model:{value:e.queryParam.roleName,callback:function(t){e.$set(e.queryParam,"roleName",t)},expression:"queryParam.roleName"}})],1)],1),n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-col",{attrs:{md:12,sm:24}},[n("a-button",{staticStyle:{"margin-left":"21px"},attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator",staticStyle:{margin:"-8px 0 10px 2px"}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("角色录入")]),n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(t){return e.handleEdit(e.model1)}}},[e._v("角色编辑")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")])],1),n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",[n("b",[e._v(e._s(e.selectedRowKeys1.length))])]),e._v("项\n        "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected1}},[e._v("清空")])]),n("div",{staticStyle:{"margin-top":"15px"}},[n("a-table",{ref:"table",staticStyle:{height:"500px"},attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys1,onChange:e.onSelectChange1,type:"radio"}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleOpen(r)}}},[e._v("用户")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete1(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1)])],1),n("a-col",{attrs:{md:e.rightColMd,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"用户账号"}},[n("a-input",{attrs:{placeholder:""},model:{value:e.queryParam2.username,callback:function(t){e.$set(e.queryParam2,"username",t)},expression:"queryParam2.username"}})],1)],1),n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-col",{attrs:{md:9,sm:24}},[n("a-button",{staticStyle:{"margin-left":"21px"},attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery2}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset2}},[e._v("重置")])],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator",staticStyle:{margin:"-25px 0px 10px 2px"},attrs:{md:24,sm:24}},[n("a-button",{staticStyle:{"margin-top":"16px"},attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd2}},[e._v("用户录入")]),n("a-button",{staticStyle:{"margin-top":"16px"},attrs:{type:"primary",icon:"plus"},on:{click:e.handleAddUserRole}},[e._v("添加已有用户")]),e.selectedRowKeys2.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel2}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n              删除\n            ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n            "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys2.length))]),e._v("项\n          "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected2}},[e._v("清空")])]),n("a-table",{ref:"table2",staticStyle:{height:"500px"},attrs:{bordered:"",size:"middle",rowKey:"id",columns:e.columns2,dataSource:e.dataSource2,pagination:e.ipagination2,loading:e.loading2,rowSelection:{selectedRowKeys:e.selectedRowKeys2,onChange:e.onSelectChange2}},on:{change:e.handleTableChange2},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit2(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete2(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("role-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("user-modal",{ref:"modalForm2",on:{ok:e.modalFormOk2}}),n("Select-User-Modal",{ref:"selectUserModal",on:{selectFinished:e.selectOK}})],1)],1)],1)},i=[],o=(n("456d"),n("ac6a"),n("b65a")),a=n("0fea"),s=n("b3c4"),l=n("2a70"),c=n("418f"),u=n("ca00"),d={name:"RoleUserList",mixins:[o["a"]],components:{SelectUserModal:s["default"],RoleModal:l["default"],UserModal:c["default"]},data:function(){return{model1:{},model2:{},currentRoleId:"",queryParam1:{},queryParam2:{},dataSource1:[],dataSource2:[],ipagination1:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},ipagination2:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter1:{column:"createTime",order:"desc"},isorter2:{column:"createTime",order:"desc"},filters1:{},filters2:{},loading1:!1,loading2:!1,selectedRowKeys1:[],selectedRowKeys2:[],selectionRows1:[],selectionRows2:[],columns:[{title:"角色编码",align:"center",dataIndex:"roleCode"},{title:"角色名称",align:"center",dataIndex:"roleName"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],columns2:[{title:"用户账号",align:"center",dataIndex:"username",width:120},{title:"用户名称",align:"center",width:100,dataIndex:"realname"},{title:"状态",align:"center",width:80,dataIndex:"status_dictText"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:120}],url:{list:"/sys/role/list",delete:"/sys/role/delete",list2:"/sys/user/userRoleList",addUserRole:"/sys/user/addSysUserRole",delete2:"/sys/user/deleteUserRole",deleteBatch2:"/sys/user/deleteUserRoleBatch",exportXlsUrl:"sys/role/exportXls",importExcelUrl:"sys/role/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)},leftColMd:function(){return 0===this.selectedRowKeys1.length?24:12},rightColMd:function(){return 0===this.selectedRowKeys1.length?0:12}},methods:{onSelectChange2:function(e,t){this.selectedRowKeys2=e,this.selectionRows2=t},onClearSelected2:function(){this.selectedRowKeys2=[],this.selectionRows2=[]},onClearSelected1:function(){this.selectedRowKeys1=[],this.selectionRows1=[]},onSelectChange1:function(e,t){this.selectedRowKeys1=e,this.selectionRows1=t,this.model1=Object.assign({},t[0]),console.log(this.model1),this.currentRoleId=e[0],this.loadData2()},onClearSelected:function(){},getQueryParams2:function(){var e={};this.superQueryParams2&&(e["superQueryParams"]=encodeURI(this.superQueryParams2));var t=Object.assign(e,this.queryParam2,this.isorter2,this.filters2);return t.field=this.getQueryField2(),t.pageNo=this.ipagination2.current,t.pageSize=this.ipagination2.pageSize,Object(u["b"])(t)},getQueryField2:function(){var e="id,";return this.columns2.forEach((function(t){e+=","+t.dataIndex})),e},handleEdit2:function(e){this.$refs.modalForm2.title="编辑",this.$refs.modalForm2.roleDisabled=!0,this.$refs.modalForm2.edit(e)},handleAdd2:function(){""==this.currentRoleId?this.$message.error("请选择一个角色!"):(this.$refs.modalForm2.roleDisabled=!0,this.$refs.modalForm2.selectedRole=[this.currentRoleId],this.$refs.modalForm2.add(),this.$refs.modalForm2.title="新增")},modalFormOk2:function(){this.loadData2()},loadData2:function(e){var t=this;if(this.url.list2){if(1===e&&(this.ipagination2.current=1),""!==this.currentRoleId){var n=this.getQueryParams2();n.roleId=this.currentRoleId,this.loading2=!0,Object(a["d"])(this.url.list2,n).then((function(e){e.success&&(t.dataSource2=e.result.records,t.ipagination2.total=e.result.total),t.loading2=!1}))}}else this.$message.error("请设置url.list2属性!")},handleDelete1:function(e){console.log(e+"111111111"),this.handleDelete(e),this.dataSource2=[],this.currentRoleId=""},handleDelete2:function(e){if(this.url.delete2){var t=this;Object(a["a"])(t.url.delete2,{roleId:this.currentRoleId,userId:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData2()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete2属性!")},batchDel2:function(){if(this.url.deleteBatch2)if(this.selectedRowKeys2.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys2.length;t++)e+=this.selectedRowKeys2[t]+",";var n=this;console.log(this.currentDeptId),this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(a["a"])(n.url.deleteBatch2,{roleId:n.currentRoleId,userIds:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData2(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch2属性!")},selectOK:function(e){var t=this,n={};n.roleId=this.currentRoleId,n.userIdList=[];for(var r=0;r<e.length;r++)n.userIdList.push(e[r]);console.log(n),Object(a["j"])(this.url.addUserRole,n).then((function(e){e.success?(t.loadData2(),t.$message.success(e.message)):t.$message.warning(e.message)}))},handleAddUserRole:function(){""==this.currentRoleId?this.$message.error("请选择一个角色!"):this.$refs.selectUserModal.visible=!0},handleOpen:function(e){this.selectedRowKeys1=[e.id],this.model1=Object.assign({},e),this.currentRoleId=e.id,this.onClearSelected2(),this.loadData2()},handleEdit:function(e){""==this.currentRoleId?this.$message.error("请选择一个角色!"):(this.$refs.modalForm.edit(e),this.$refs.modalForm.title="编辑")},searchQuery2:function(){this.loadData2(1)},searchReset2:function(){this.queryParam2={},this.loadData2(1)},handleTableChange2:function(e,t,n){Object.keys(n).length>0&&(this.isorter2.column=n.field,this.isorter2.order="ascend"==n.order?"asc":"desc"),this.ipagination2=e,this.loadData2()}}},f=d,h=(n("d649"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,"38a585f6",null);t["default"]=p.exports},"01d4":function(e,t,n){"use strict";t["a"]={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},"01fe":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("j-editable-table",{attrs:{columns:e.columns,dataSource:e.dataSource,rowNumber:!0,actionButton:!0,rowSelection:!0,maxHeight:400},on:{valueChange:e.handleValueChange}})},i=[],o=n("e2e0"),a=n("7550"),s={name:"ThreeLinkage",components:{JEditableTable:a["default"]},data:function(){return{columns:[{title:"省/直辖市/自治区",key:"s1",type:o["a"].select,width:"240px",options:[],placeholder:"请选择${title}"},{title:"市",key:"s2",type:o["a"].select,width:"240px",options:[],placeholder:"请选择${title}"},{title:"县/区",key:"s3",type:o["a"].select,width:"240px",options:[],placeholder:"请选择${title}"}],dataSource:[],mockData:[{label:"北京市",value:"110000",parent:null},{label:"天津市",value:"120000",parent:null},{label:"河北省",value:"130000",parent:null},{label:"上海市",value:"310000",parent:null},{label:"北京市",value:"110100",parent:"110000"},{label:"天津市市",value:"120100",parent:"120000"},{label:"石家庄市",value:"130100",parent:"130000"},{label:"唐山市",value:"130200",parent:"130000"},{label:"秦皇岛市",value:"130300",parent:"130000"},{label:"上海市",value:"310100",parent:"310000"},{label:"东城区",value:"110101",parent:"110100"},{label:"西城区",value:"110102",parent:"110100"},{label:"朝阳区",value:"110105",parent:"110100"},{label:"和平区",value:"120101",parent:"120000"},{label:"河东区",value:"120102",parent:"120000"},{label:"河西区",value:"120103",parent:"120000"},{label:"黄浦区",value:"310101",parent:"310100"},{label:"徐汇区",value:"310104",parent:"310100"},{label:"长宁区",value:"310105",parent:"310100"},{label:"长安区",value:"130102",parent:"130100"},{label:"桥西区",value:"130104",parent:"130100"},{label:"新华区",value:"130105",parent:"130100"},{label:"路南区",value:"130202",parent:"130200"},{label:"路北区",value:"130203",parent:"130200"},{label:"古冶区",value:"130204",parent:"130200"},{label:"海港区",value:"130302",parent:"130300"},{label:"山海关区",value:"130303",parent:"130300"},{label:"北戴河区",value:"130304",parent:"130300"}]}},mounted:function(){this.columns[0].options=this.request(null)},methods:{request:function(e){return this.mockData.filter((function(t){return t.parent===e}))},handleValueChange:function(e){var t=e.type,n=e.row,r=e.column,i=e.value,a=e.target;t===o["a"].select&&("s1"===r.key?(this.columns[1].options=this.request(i),a.setValues([{rowKey:n.id,values:{s2:"",s3:""}}]),this.columns[2].options=[]):"s2"===r.key&&(this.columns[2].options=this.request(i),a.setValues([{rowKey:n.id,values:{s3:""}}])))}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"bd50bcca",null);t["default"]=u.exports},"020f":function(e,t,n){"use strict";var r=n("3900"),i=n("d079"),o=n("e269"),a=n("256f"),s=n("1e8d"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c="projection",u="coordinateFormat",d=function(e){function t(t){var n=this,r=t||{},i=document.createElement("div");return i.className=void 0!==r.className?r.className:"ol-mouse-position",n=e.call(this,{element:i,render:r.render,target:r.target})||this,n.addEventListener(Object(o["b"])(c),n.handleProjectionChanged_),r.coordinateFormat&&n.setCoordinateFormat(r.coordinateFormat),r.projection&&n.setProjection(r.projection),n.undefinedHTML_=void 0!==r.undefinedHTML?r.undefinedHTML:"&#160;",n.renderOnMouseOut_=!!n.undefinedHTML_,n.renderedHTML_=i.innerHTML,n.mapProjection_=null,n.transform_=null,n}return l(t,e),t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get(u)},t.prototype.getProjection=function(){return this.get(c)},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.updateHTML_(t.getEventPixel(e))},t.prototype.handleMouseOut=function(e){this.updateHTML_(null)},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var n=t.getViewport();this.listenerKeys.push(Object(s["a"])(n,i["a"].POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(s["a"])(n,i["a"].POINTEROUT,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(u,e)},t.prototype.setProjection=function(e){this.set(c,Object(a["f"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(a["i"])(this.mapProjection_,n):a["k"]}var r=this.getMap(),i=r.getCoordinateFromPixelInternal(e);if(i){var o=Object(a["j"])();o&&(this.transform_=Object(a["i"])(this.mapProjection_,o)),this.transform_(i,i);var s=this.getCoordinateFormat();t=s?s(i):i.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t.prototype.render=function(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null},t}(r["a"]);t["a"]=d},"022a":function(e,t,n){var r=n("4b0b"),i=n("247b");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},"022d":function(e,t,n){var r=n("6692"),i=n("6339");e.exports=Object.keys||function(e){return r(e,i)}},"0243":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{"margin-top":"-70px"},attrs:{width:e.modalWidth,visible:e.visible,title:e.title,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleSubmit,cancel:e.close}},[n("a-row",{staticStyle:{"background-color":"#ececec",padding:"10px",margin:"-10px"},attrs:{gutter:10}},[n("a-col",{attrs:{md:24,sm:30}},[n("a-card",{attrs:{bordered:!1}},[e._v("\n        值班人员名称:\n        "),n("a-input",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入值班人员名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}}),n("a-button",{staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.onSearch()}}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{icon:"redo"},on:{click:function(t){return e.searchReset(1)}}},[e._v("重置")]),n("p",{staticStyle:{color:"red"}},[e._v("选最多选择5人")]),n("a-table",{ref:"table",attrs:{scroll:e.scrollTrigger,size:"middle",rowKey:"id",bordered:"",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,selectable:!1,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)],1)],1)],1)},i=[],o=(n("ac6a"),n("456d"),n("7f7f"),n("ca00")),a=n("4ec3"),s=n("89f2"),l=(n("b65a"),n("0fea"),{name:"JSelectDutyMulSelModel",components:{},props:["modalWidth"],data:function(){var e=this;return{queryParam:{username:""},columns:[{title:"",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"姓名",align:"center",dataIndex:"name"},{title:"人员类型",align:"center",dataIndex:"dutyType",customRender:function(t){return Object(s["b"])(e.dictOptions["dutyType"],t+"")}},{title:"职务",align:"center",dataIndex:"post"}],scrollTrigger:{},dataSource:[],selectedKeys:[],departName:"",userRolesMap:{},title:"选择值班值守人员",ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},selectedRowKeys:[],selectedRows:[],departTree:[],visible:!1,form:this.$form.createForm(this),dictOptions:{},dutyIds:"",dutyNames:""}},created:function(){this.resetScreenSize(),this.loadData(1),this.initDictConfig()},methods:{initDictConfig:function(){var e=this;Object(s["c"])("duty_type").then((function(t){t.success&&e.$set(e.dictOptions,"dutyType",t.result)}))},loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["eb"])(n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total)}))},resetScreenSize:function(){var e=document.body.clientWidth;this.scrollTrigger=e<500?{x:800}:{}},showModal:function(){this.visible=!0,this.form.resetFields()},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return null!=e.name&&""!=e.name&&(e.name=e.name+"*"),e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},searchReset:function(e){var t=this;0!==e&&(t.queryParam={},t.loadData(1)),t.selectedRowKeys=[],t.selectedKeys=[],t.dutyIds="",t.dutyNames=""},close:function(){this.searchReset(0),this.visible=!1},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"===n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleSubmit:function(){for(var e=this,t=0,n=this.selectedRowKeys.length;t<n;t++)this.getUserNames(this.selectedRowKeys[t]);this.dutyNames.length>0&&(this.dutyNames=this.dutyNames.substring(0,this.dutyNames.length-1)),this.dutyIds.length>0&&(this.dutyIds=this.dutyIds.substring(0,this.dutyIds.length-1)),e.$emit("ok",this.dutyNames+"|"+this.dutyIds),e.close()},getUserNames:function(e){for(var t=this.dataSource,n=0,r=t.length;n<r;n++)e===t[n].id&&(this.dutyIds+=e+",",this.dutyNames+=t[n].name+",")},onSelectChange:function(e,t){length>5||t.length>5?this.$message.warning("人员选择不得大于5个"):(this.selectedRowKeys=e,this.selectionRows=t)},onSearch:function(){this.loadData(1)},modalFormOk:function(){this.loadData()}}}),c=l,u=(n("fd69"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"d0f45b40",null);t["default"]=d.exports},"0280":function(e,t){e.exports={}},"0287":function(e,t,n){"use strict";n("7375")},"02a9":function(e,t,n){},"02f0":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r<n.length;r++)t[n[r]]=e}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function a(e,n){if(e.eatSpace())return null;var r=e.sol(),i=e.next();if("\\"===i)return e.next(),null;if("'"===i||'"'===i||"`"===i)return n.tokens.unshift(s(i,"`"===i?"quote":"string")),d(e,n);if("#"===i)return r&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===i)return n.tokens.unshift(c),d(e,n);if("+"===i||"="===i)return"operator";if("-"===i)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==i){if(e.match("<<"))return"operator";var o=e.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(o)return n.tokens.unshift(u(o[1])),"string-2"}if(/\d/.test(i)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var a=e.current();return"="===e.peek()&&/\w+/.test(a)?"def":t.hasOwnProperty(a)?t[a]:null}function s(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){var o,a=!1;while(null!=(o=r.next())){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==e&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(c);break}if(!a&&e!==n&&o===e)return i.tokens.unshift(s(e,t)),d(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(e)){i.tokens.unshift(l(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return t}}function l(e,t){return function(n,r){return r.tokens[0]=s(e,t),n.next(),d(n,r)}}e.registerHelper("hintWords","shell",r.concat(i,o)),n("atom",r),n("keyword",i),n("builtin",o);var c=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),d(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function u(e){return function(t,n){return t.sol()&&t.string==e&&n.tokens.shift(),t.skipToEnd(),"string-2"}}function d(e,t){return(t.tokens[0]||a)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return d(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")}))},"02f8":function(e,t,n){"use strict";n("3983")},"030f":function(e,t,n){(function(e){(function(){"use strict";var t=function(){},n=function(e){return function(){return e()}},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},i=function(e,t){return function(n){return e(t(n))}},o=function(e){return function(){return e}},a=function(e){return e};function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var l=function(e){return function(t){return!e(t)}},c=function(e){return function(){throw new Error(e)}},u=o(!1),d=o(!0),f=tinymce.util.Tools.resolve("tinymce.ThemeManager"),h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)};function p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var g,v=function(){return y},y=function(){var e=function(e){return e.isNone()},n=function(e){return e()},r=function(e){return e},i={fold:function(e,t){return e()},is:u,isSome:u,isNone:d,getOr:r,getOrThunk:n,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:r,orThunk:n,map:v,each:t,bind:v,exists:u,forall:d,filter:v,equals:e,equals_:e,toArray:function(){return[]},toString:o("none()")};return i}(),b=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:d,isNone:u,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:y},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(u,(function(t){return n(e,t)}))}};return i},_=function(e){return null===e||void 0===e?y:b(e)},w={some:b,none:v,from:_},x=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},S=function(e){return function(t){return x(t)===e}},C=function(e){return function(t){return typeof t===e}},E=function(e){return function(t){return e===t}},k=S("string"),O=S("object"),T=S("array"),I=C("boolean"),A=E(void 0),R=function(e){return null===e||void 0===e},P=function(e){return!R(e)},M=C("function"),N=C("number"),L=function(e,t){if(T(e)){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return!0}return!1},D=Array.prototype.slice,j=Array.prototype.indexOf,F=Array.prototype.push,B=function(e,t){return j.call(e,t)},q=function(e,t){var n=B(e,t);return-1===n?w.none():w.some(n)},z=function(e,t){return B(e,t)>-1},U=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},G=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},V=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var i=D.call(e,r,r+t);n.push(i)}return n},W=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},H=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},$=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},K=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},X=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},Y=function(e,t,n){return $(e,(function(e){n=t(n,e)})),n},J=function(e,t,n){return H(e,(function(e){n=t(n,e)})),n},Q=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return w.some(o);if(n(o,r))break}return w.none()},Z=function(e,t){return Q(e,t,u)},ee=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return w.some(n)}return w.none()},te=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!T(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);F.apply(t,e[n])}return t},ne=function(e,t){return te(W(e,t))},re=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},ie=function(e){var t=D.call(e,0);return t.reverse(),t},oe=function(e,t){return X(e,(function(e){return!z(t,e)}))},ae=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},se=function(e,t){var n=D.call(e,0);return n.sort(t),n},le=function(e,t){return t>=0&&t<e.length?w.some(e[t]):w.none()},ce=function(e){return le(e,0)},ue=function(e){return le(e,e.length-1)},de=M(Array.from)?Array.from:function(e){return D.call(e)},fe=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return w.none()},he=function(e){var t=function(t){return e===t},n=function(t){return he(e)},r=function(t){return he(e)},i=function(t){return he(t(e))},a=function(t){return he(e)},s=function(t){t(e)},l=function(t){return t(e)},c=function(t,n){return n(e)},f=function(t){return t(e)},h=function(t){return t(e)},p=function(){return w.some(e)};return{is:t,isValue:d,isError:u,getOr:o(e),getOrThunk:o(e),getOrDie:o(e),or:n,orThunk:r,fold:c,map:i,mapError:a,each:s,bind:l,exists:f,forall:h,toOptional:p}},pe=function(e){var n=function(e){return e()},r=function(){return c(String(e))()},i=function(e){return e},o=function(e){return e()},s=function(t){return pe(e)},l=function(t){return pe(t(e))},f=function(t){return pe(e)},h=function(t,n){return t(e)};return{is:u,isValue:u,isError:d,getOr:a,getOrThunk:n,getOrDie:r,or:i,orThunk:o,fold:h,map:s,mapError:l,each:t,bind:f,exists:u,forall:d,toOptional:w.none}},me=function(e,t){return e.fold((function(){return pe(t)}),he)},ge={value:he,error:pe,fromOption:me};(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(g||(g={}));var ve=function(e,t,n){return e.stype===g.Error?t(e.serror):n(e.svalue)},ye=function(e){var t=[],n=[];return H(e,(function(e){ve(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n}},be=function(e,t){return e.stype===g.Error?{stype:g.Error,serror:t(e.serror)}:e},_e=function(e,t){return e.stype===g.Value?{stype:g.Value,svalue:t(e.svalue)}:e},we=function(e,t){return e.stype===g.Value?t(e.svalue):e},xe=function(e,t){return e.stype===g.Error?t(e.serror):e},Se=function(e){return{stype:g.Value,svalue:e}},Ce=function(e){return{stype:g.Error,serror:e}},Ee=function(e){return ve(e,ge.error,ge.value)},ke=function(e){return e.fold(Ce,Se)},Oe={fromResult:ke,toResult:Ee,svalue:Se,partition:ye,serror:Ce,bind:we,bindError:xe,map:_e,mapError:be,fold:ve},Te=Object.keys,Ie=Object.hasOwnProperty,Ae=function(e,t){for(var n=Te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Re=function(e,t){return Pe(e,(function(e,n){return{k:n,v:t(e,n)}}))},Pe=function(e,t){var n={};return Ae(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Me=function(e){return function(t,n){e[n]=t}},Ne=function(e,t,n,r){var i={};return Ae(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Le=function(e,n){var r={};return Ne(e,n,Me(r),t),r},De=function(e,t){var n=[];return Ae(e,(function(e,r){n.push(t(e,r))})),n},je=function(e,t){for(var n=Te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];if(t(a,o,e))return w.some(a)}return w.none()},Fe=function(e){return De(e,(function(e){return e}))},Be=function(e,t){return qe(e,t)?w.from(e[t]):w.none()},qe=function(e,t){return Ie.call(e,t)},ze=function(e,t){return qe(e,t)&&void 0!==e[t]&&null!==e[t]},Ue=function(e){if(!T(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return H(e,(function(r,i){var o=Te(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!T(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var l=function(e){var r=Te(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=re(t,(function(e){return z(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:l,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},Ge={generate:Ue},Ve=Object.prototype.hasOwnProperty,We=function(e,t){return t},He=function(e,t){var n=O(e)&&O(t);return n?Ke(e,t):t},$e=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Ve.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},Ke=$e(He),Xe=$e(We),Ye=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},Je=Ge.generate([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),Qe=function(e){return Je.defaultedThunk(o(e))},Ze=function(e){return Je.mergeWithThunk(o(e))},et=Je.strict,tt=Je.asOption,nt=Je.defaultedThunk,rt=(Je.asDefaultedOptionThunk,Je.mergeWithThunk),it=(Ge.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(e){var t=[],n=[];return H(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}}),ot=function(e,t){var n={};return Ae(e,(function(e,r){z(t,r)||(n[r]=e)})),n},at=function(e,t){var n;return n={},n[e]=t,n},st=function(e){var t={};return H(e,(function(e){t[e.key]=e.value})),t},lt=function(e,t){return ot(e,t)},ct=function(e,t){return at(e,t)},ut=function(e){return st(e)},dt=function(e,t){return 0===e.length?ge.value(t):ge.value(Ke(t,Xe.apply(void 0,e)))},ft=function(e){return ge.error(te(e))},ht=function(e,t){var n=it(e);return n.errors.length>0?ft(n.errors):dt(n.values,t)},pt=function(e,t){return e.length>0?Oe.svalue(Ke(t,Xe.apply(void 0,e))):Oe.svalue(t)},mt=function(e){return r(Oe.serror,te)(e)},gt=function(e,t){var n=Oe.partition(e);return n.errors.length>0?mt(n.errors):pt(n.values,t)},vt=function(e){var t=Oe.partition(e);return t.errors.length>0?mt(t.errors):Oe.svalue(t.values)},yt={consolidateObj:gt,consolidateArr:vt},bt=function(e){return O(e)&&Te(e).length>100?" removed due to size":JSON.stringify(e,null,2)},_t=function(e){var t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):e;return W(t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))},wt=function(e,t){return Oe.serror([{path:e,getErrorInfo:t}])},xt=function(e,t,n){return wt(e,(function(){return'Could not find valid *strict* value for "'+t+'" in '+bt(n)}))},St=function(e,t){return wt(e,(function(){return'Choice schema did not contain choice key: "'+t+'"'}))},Ct=function(e,t,n){return wt(e,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+bt(t)}))},Et=function(e,t){return wt(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))},kt=function(e,t){return wt(e,(function(){return t}))},Ot=Ge.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),Tt=function(e,t,n){return Be(t,n).fold((function(){return xt(e,n,t)}),Oe.svalue)},It=function(e,t,n){var r=Be(e,t).fold((function(){return n(e)}),a);return Oe.svalue(r)},At=function(e,t){return Oe.svalue(Be(e,t))},Rt=function(e,t,n){var r=Be(e,t).map((function(t){return!0===t?n(e):t}));return Oe.svalue(r)},Pt=function(e,t,n,r){return n.fold((function(n,i,a,s){var l=function(t){var o=s.extract(e.concat([n]),r,t);return Oe.map(o,(function(e){return at(i,r(e))}))},c=function(t){return t.fold((function(){var e=at(i,r(w.none()));return Oe.svalue(e)}),(function(t){var o=s.extract(e.concat([n]),r,t);return Oe.map(o,(function(e){return at(i,r(w.some(e)))}))}))};return function(){return a.fold((function(){return Oe.bind(Tt(e,t,n),l)}),(function(e){return Oe.bind(It(t,n,e),l)}),(function(){return Oe.bind(At(t,n),c)}),(function(e){return Oe.bind(Rt(t,n,e),c)}),(function(e){var r=e(t),i=Oe.map(It(t,n,o({})),(function(e){return Ke(r,e)}));return Oe.bind(i,l)}))}()}),(function(e,n){var i=n(t);return Oe.svalue(at(e,r(i)))}))},Mt=function(e,t,n,r){var i=W(n,(function(n){return Pt(e,t,n,r)}));return yt.consolidateObj(i,{})},Nt=function(e){var t=function(t,n,r){return e().extract(t,n,r)},n=function(){return e().toString()};return{extract:t,toString:n}},Lt=function(e){var t=function(t,n,r){return Oe.bindError(e(r,n),(function(e){return kt(t,e)}))},n=function(){return"val"};return{extract:t,toString:n}},Dt=function(e){return Te(Le(e,(function(e){return void 0!==e&&null!==e})))},jt=function(e){var t=Ft(e),n=Y(e,(function(e,t){return t.fold((function(t){return Ke(e,ct(t,!0))}),o(e))}),{}),r=function(e,r,i){var o=I(i)?[]:Dt(i),a=X(o,(function(e){return!ze(n,e)}));return 0===a.length?t.extract(e,r,i):Et(e,a)};return{extract:r,toString:t.toString}},Ft=function(e){var t=function(t,n,r){return Mt(t,r,e,n)},n=function(){var t=W(e,(function(e){return e.fold((function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:n}},Bt=function(e){var t=function(t,n,r){var i=W(r,(function(r,i){return e.extract(t.concat(["["+i+"]"]),n,r)}));return yt.consolidateArr(i)},n=function(){return"array("+e.toString()+")"};return{extract:t,toString:n}},qt=function(e){var t=function(t,n,r){for(var i=[],o=0,a=e;o<a.length;o++){var s=a[o],l=s.extract(t,n,r);if(l.stype===g.Value)return l;i.push(l)}return yt.consolidateArr(i)},n=function(){return"oneOf("+W(e,(function(e){return e.toString()})).join(", ")+")"};return{extract:t,toString:n}},zt=function(e,t){var n=function(t,n){return Bt(Lt(e)).extract(t,a,n)},r=function(e,r,i){var o=Te(i),a=n(e,o);return Oe.bind(a,(function(n){var o=W(n,(function(e){return Ot.field(e,e,et(),t)}));return Ft(o).extract(e,r,i)}))},i=function(){return"setOf("+t.toString()+")"};return{extract:r,toString:i}},Ut=function(e,t){var n=Ye((function(){return t()})),r=function(e,t,r){return n().extract(e,t,r)},i=function(){return n().toString()};return{extract:r,toString:i}},Gt=o(Lt(Oe.svalue)),Vt=r(Bt,Ft),Wt=Ot.state,Ht=Ot.field,$t=function(e,t,n,r,i){var o=Be(r,i);return o.fold((function(){return Ct(e,r,i)}),(function(r){return r.extract(e.concat(["branch: "+i]),t,n)}))},Kt=function(e,t){var n=function(n,r,i){var o=Be(i,e);return o.fold((function(){return St(n,e)}),(function(e){return $t(n,r,i,t,e)}))},r=function(){return"chooseOn("+e+"). Possible values: "+Te(t)};return{extract:n,toString:r}},Xt=Lt(Oe.svalue),Yt=function(e){return Vt(e)},Jt=function(){return Bt(Xt)},Qt=Nt,Zt=function(e){return Lt((function(t){return e(t).fold(Oe.serror,Oe.svalue)}))},en=function(e,t){return zt((function(t){return Oe.fromResult(e(t))}),t)},tn=function(e,t,n,r){var i=t.extract([e],n,r);return Oe.mapError(i,(function(e){return{input:r,errors:e}}))},nn=function(e,t,n){return Oe.toResult(tn(e,t,a,n))},rn=function(e){return e.fold((function(e){throw new Error(an(e))}),a)},on=function(e,t,n){return rn(nn(e,t,n))},an=function(e){return"Errors: \n"+_t(e.errors).join("\n")+"\n\nInput object: "+bt(e.input)},sn=function(e,t){return Kt(e,t)},ln=function(e,t){return Kt(e,Re(t,Ft))},cn=function(e,t){return Ut(e,t)},un=o(Xt),dn=function(e,t){return Lt((function(n){var r=typeof n;return e(n)?Oe.svalue(n):Oe.serror("Expected type: "+t+" but got: "+r)}))},fn=dn(N,"number"),hn=dn(k,"string"),pn=dn(I,"boolean"),mn=dn(M,"function"),gn=function(e){var t=function(e,t){var n=e.next();while(!n.done){if(!t(n.value))return!1;n=e.next()}return!0};if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return gn(e[t])}));case"Map":return t(e.keys(),gn)&&t(e.values(),gn);case"Set":return t(e.keys(),gn);default:return!1}},vn=Lt((function(e){return gn(e)?Oe.svalue(e):Oe.serror("Expected value to be acceptable for sending via postMessage")})),yn=function(e){return Zt((function(t){return z(e,t)?ge.value(t):ge.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},bn=function(e){return Ht(e,e,et(),Gt())},_n=function(e,t){return Ht(e,e,et(),t)},wn=function(e){return _n(e,fn)},xn=function(e){return _n(e,hn)},Sn=function(e,t){return Ht(e,e,et(),yn(t))},Cn=function(e){return _n(e,pn)},En=function(e){return _n(e,mn)},kn=function(e,t){return Ht(e,e,tt(),Lt((function(n){return Oe.serror("The field: "+e+" is forbidden. "+t)})))},On=function(e,t){return Ht(e,e,et(),Ft(t))},Tn=function(e,t){return Ht(e,e,et(),Vt(t))},In=function(e,t){return Ht(e,e,et(),Bt(t))},An=function(e){return Ht(e,e,tt(),Gt())},Rn=function(e,t){return Ht(e,e,tt(),t)},Pn=function(e){return Rn(e,fn)},Mn=function(e){return Rn(e,hn)},Nn=function(e){return Rn(e,mn)},Ln=function(e,t){return Rn(e,Bt(t))},Dn=function(e,t){return Rn(e,Ft(t))},jn=function(e,t){return Rn(e,jt(t))},Fn=function(e,t){return Ht(e,e,Qe(t),Gt())},Bn=function(e,t,n){return Ht(e,e,Qe(t),n)},qn=function(e,t){return Bn(e,t,fn)},zn=function(e,t){return Bn(e,t,hn)},Un=function(e,t,n){return Bn(e,t,yn(n))},Gn=function(e,t){return Bn(e,t,pn)},Vn=function(e,t){return Bn(e,t,mn)},Wn=function(e,t){return Bn(e,t,vn)},Hn=function(e,t,n){return Bn(e,t,Bt(n))},$n=function(e,t,n){return Bn(e,t,Ft(n))},Kn=function(e,t){return Wt(e,t)},Xn=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Yn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Zn(r.childNodes[0])},Jn=function(e,t){var n=t||document,r=n.createElement(e);return Zn(r)},Qn=function(e,t){var n=t||document,r=n.createTextNode(e);return Zn(r)},Zn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},er=function(e,t,n){return w.from(e.dom.elementFromPoint(t,n)).map(Zn)},tr={fromHtml:Yn,fromTag:Jn,fromText:Qn,fromDom:Zn,fromPoint:er},nr=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!i,s=e.isiOS()||e.isAndroid(),l=s||r("(pointer:coarse)"),c=i||!a&&s&&r("(min-device-width:768px)"),u=a||s&&!c,d=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!u&&!c&&!d;return{isiPad:o(i),isiPhone:o(a),isTablet:o(c),isPhone:o(u),isTouch:o(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:o(d),isDesktop:o(f)}},rr=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ir=function(e,t){var n=rr(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return sr(r(1),r(2))},or=function(e,t){var n=String(t).toLowerCase();return 0===e.length?ar():ir(e,n)},ar=function(){return sr(0,0)},sr=function(e,t){return{major:e,minor:t}},lr={nu:sr,detect:or,unknown:ar},cr=function(e,t){var n=String(t).toLowerCase();return Z(e,(function(e){return e.search(n)}))},ur=function(e,t){return cr(e,t).map((function(e){var n=lr.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},dr=function(e,t){return cr(e,t).map((function(e){var n=lr.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},fr={detectBrowser:ur,detectOs:dr},hr=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},pr=function(e,t){return-1!==e.indexOf(t)},mr=function(e,t){return hr(e,t,e.length-t.length)},gr=function(e){return function(t){return t.replace(e,"")}},vr=gr(/^\s+|\s+$/g),yr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,br=function(e){return function(t){return pr(t,e)}},_r=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return pr(e,"edge/")&&pr(e,"chrome")&&pr(e,"safari")&&pr(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,yr],search:function(e){return pr(e,"chrome")&&!pr(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return pr(e,"msie")||pr(e,"trident")}},{name:"Opera",versionRegexes:[yr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:br("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:br("firefox")},{name:"Safari",versionRegexes:[yr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(pr(e,"safari")||pr(e,"mobile/"))&&pr(e,"applewebkit")}}],wr=[{name:"Windows",search:br("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return pr(e,"iphone")||pr(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:br("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:br("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:br("linux"),versionRegexes:[]},{name:"Solaris",search:br("sunos"),versionRegexes:[]},{name:"FreeBSD",search:br("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:br("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xr={browsers:o(_r),oses:o(wr)},Sr="Edge",Cr="Chrome",Er="IE",kr="Opera",Or="Firefox",Tr="Safari",Ir=function(){return Ar({current:void 0,version:lr.unknown()})},Ar=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Sr),isChrome:r(Cr),isIE:r(Er),isOpera:r(kr),isFirefox:r(Or),isSafari:r(Tr)}},Rr={unknown:Ir,nu:Ar,edge:o(Sr),chrome:o(Cr),ie:o(Er),opera:o(kr),firefox:o(Or),safari:o(Tr)},Pr="Windows",Mr="iOS",Nr="Android",Lr="Linux",Dr="OSX",jr="Solaris",Fr="FreeBSD",Br="ChromeOS",qr=function(){return zr({current:void 0,version:lr.unknown()})},zr=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Pr),isiOS:r(Mr),isAndroid:r(Nr),isOSX:r(Dr),isLinux:r(Lr),isSolaris:r(jr),isFreeBSD:r(Fr),isChromeOS:r(Br)}},Ur={unknown:qr,nu:zr,windows:o(Pr),ios:o(Mr),android:o(Nr),linux:o(Lr),osx:o(Dr),solaris:o(jr),freebsd:o(Fr),chromeos:o(Br)},Gr=function(e,t){var n=xr.browsers(),r=xr.oses(),i=fr.detectBrowser(n,e).fold(Rr.unknown,Rr.nu),o=fr.detectOs(r,e).fold(Ur.unknown,Ur.nu),a=nr(o,i,e,t);return{browser:i,os:o,deviceType:a}},Vr={detect:Gr},Wr=function(e){return window.matchMedia(e).matches},Hr=Ye((function(){return Vr.detect(navigator.userAgent,Wr)})),$r=function(){return Hr()},Kr=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Xr=function(e,t){return Kr(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Yr=9,Jr=11,Qr=1,Zr=3,ei=function(e,t){var n=e.dom;if(n.nodeType!==Qr)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},ti=function(e){return e.nodeType!==Qr&&e.nodeType!==Yr&&e.nodeType!==Jr||0===e.childElementCount},ni=function(e,t){var n=void 0===t?document:t.dom;return ti(n)?[]:W(n.querySelectorAll(e),tr.fromDom)},ri=function(e,t){var n=void 0===t?document:t.dom;return ti(n)?w.none():w.from(n.querySelector(e)).map(tr.fromDom)},ii=function(e,t){return e.dom===t.dom},oi=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},ai=function(e,t){return Xr(e.dom,t.dom)},si=function(e,t){return $r().browser.isIE()?ai(e,t):oi(e,t)},li=function(e){return M(e)?e:u},ci=function(e,t,n){var r=e.dom,i=li(n);while(r.parentNode){r=r.parentNode;var o=tr.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return w.none()},ui=function(e,t,n){var r=t(e),i=li(n);return r.orThunk((function(){return i(e)?w.none():ci(e,t,i)}))},di=function(e,t){return ii(e.element,t.event.target)},fi=function(e){if(!ze(e,"can")&&!ze(e,"abort")&&!ze(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return on("Extracting event.handler",jt([Fn("can",d),Fn("abort",u),Fn("run",t)]),e)},hi=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return J(e,(function(e,r){return e&&t(r).apply(void 0,n)}),!0)}},pi=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return J(e,(function(e,r){return e||t(r).apply(void 0,n)}),!1)}},mi=function(e){return M(e)?{can:d,abort:u,run:e}:e},gi=function(e){var t=hi(e,(function(e){return e.can})),n=pi(e,(function(e){return e.abort})),r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];H(e,(function(e){e.run.apply(void 0,t)}))};return fi({can:t,abort:n,run:r})},vi=o,yi=vi("touchstart"),bi=vi("touchmove"),_i=vi("touchend"),wi=vi("touchcancel"),xi=vi("mousedown"),Si=vi("mousemove"),Ci=vi("mouseout"),Ei=vi("mouseup"),ki=vi("mouseover"),Oi=vi("focusin"),Ti=vi("focusout"),Ii=vi("keydown"),Ai=vi("keyup"),Ri=vi("input"),Pi=vi("change"),Mi=vi("click"),Ni=vi("transitionend"),Li=vi("selectstart"),Di=function(e){return o("alloy."+e)},ji={tap:Di("tap")},Fi=Di("focus"),Bi=Di("blur.post"),qi=Di("paste.post"),zi=Di("receive"),Ui=Di("execute"),Gi=Di("focus.item"),Vi=ji.tap,Wi=Di("longpress"),Hi=Di("sandbox.close"),$i=Di("typeahead.cancel"),Ki=Di("system.init"),Xi=Di("system.touchmove"),Yi=Di("system.touchend"),Ji=Di("system.scroll"),Qi=Di("system.resize"),Zi=Di("system.attached"),eo=Di("system.detached"),to=Di("system.dismissRequested"),no=Di("system.repositionRequested"),ro=Di("focusmanager.shifted"),io=Di("slotcontainer.visibility"),oo=Di("change.tab"),ao=Di("dismiss.tab"),so=Di("highlight"),lo=Di("dehighlight"),co=function(e,t){po(e,e.element,t,{})},uo=function(e,t,n){po(e,e.element,t,n)},fo=function(e){co(e,Ui())},ho=function(e,t,n){po(e,t,n,{})},po=function(e,t,n,r){var i=h({target:t},r);e.getSystem().triggerEvent(n,t,i)},mo=function(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event)},go=function(e){return ut(e)},vo=function(e,t){return{key:e,value:fi({abort:t})}},yo=function(e,t){return{key:e,value:fi({can:t})}},bo=function(e){return{key:e,value:fi({run:function(e,t){t.event.prevent()}})}},_o=function(e,t){return{key:e,value:fi({run:t})}},wo=function(e,t,n){return{key:e,value:fi({run:function(e,r){t.apply(void 0,[e,r].concat(n))}})}},xo=function(e){return function(t){return _o(e,t)}},So=function(e){return function(t){return{key:e,value:fi({run:function(e,n){di(e,n)&&t(e,n)}})}}},Co=function(e,t){return _o(e,(function(n,r){n.getSystem().getByUid(t).each((function(t){mo(t,t.element,e,r)}))}))},Eo=function(e,t,n){var r=t.partUids[n];return Co(e,r)},ko=function(e,t){return _o(e,(function(e,n){var r=n.event,i=e.getSystem().getByDom(r.target).fold((function(){var t=ui(r.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),u);return t.getOr(e)}),(function(e){return e}));t(e,i,n)}))},Oo=function(e){return _o(e,(function(e,t){t.cut()}))},To=function(e){return _o(e,(function(e,t){t.stop()}))},Io=function(e,t){return So(e)(t)},Ao=So(Zi()),Ro=So(eo()),Po=So(Ki()),Mo=xo(Ui()),No=("undefined"!==typeof window?window:Function("return this;")(),function(e){var t=e.dom.nodeName;return t.toLowerCase()}),Lo=function(e){return e.dom.nodeType},Do=function(e){return function(t){return Lo(t)===e}},jo=Do(Qr),Fo=Do(Zr),Bo=Do(Yr),qo=Do(Jr),zo=function(e){return tr.fromDom(e.dom.ownerDocument)},Uo=function(e){return Bo(e)?e:zo(e)},Go=function(e){return tr.fromDom(Uo(e).dom.documentElement)},Vo=function(e){return tr.fromDom(Uo(e).dom.defaultView)},Wo=function(e){return w.from(e.dom.parentNode).map(tr.fromDom)},Ho=function(e){return Wo(e)},$o=function(e){return w.from(e.dom.offsetParent).map(tr.fromDom)},Ko=function(e){return w.from(e.dom.nextSibling).map(tr.fromDom)},Xo=function(e){return W(e.dom.childNodes,tr.fromDom)},Yo=function(e,t){var n=e.dom.childNodes;return w.from(n[t]).map(tr.fromDom)},Jo=function(e){return Yo(e,0)},Qo=function(e){return qo(e)&&P(e.dom.host)},Zo=M(Element.prototype.attachShadow)&&M(Node.prototype.getRootNode),ea=o(Zo),ta=Zo?function(e){return tr.fromDom(e.dom.getRootNode())}:Uo,na=function(e){return Qo(e)?e:tr.fromDom(Uo(e).dom.body)},ra=function(e){return ia(e).isSome()},ia=function(e){var t=ta(e);return Qo(t)?w.some(t):w.none()},oa=function(e){return tr.fromDom(e.dom.host)},aa=function(e){if(ea()&&P(e.target)){var t=tr.fromDom(e.target);if(jo(t)&&sa(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return ce(n)}}return w.from(e.target)},sa=function(e){return P(e.dom.shadowRoot)},la=function(e,t){var n=Wo(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ca=function(e,t){var n=Ko(e);n.fold((function(){var n=Wo(e);n.each((function(e){da(e,t)}))}),(function(e){la(e,t)}))},ua=function(e,t){var n=Jo(e);n.fold((function(){da(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},da=function(e,t){e.dom.appendChild(t.dom)},fa=function(e,t,n){Yo(e,n).fold((function(){da(e,t)}),(function(e){la(e,t)}))},ha=function(e,t){H(t,(function(t){la(e,t)}))},pa=function(e,t){H(t,(function(t){da(e,t)}))},ma=function(e){e.dom.textContent="",H(Xo(e),(function(e){ga(e)}))},ga=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},va=function(e){var t=Xo(e);t.length>0&&ha(e,t),ga(e)},ya=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,Xo(tr.fromDom(r))},ba=function(e){return e.dom.innerHTML},_a=function(e,t){var n=zo(e),r=n.dom,i=tr.fromDom(r.createDocumentFragment()),o=ya(t,r);pa(i,o),ma(e),da(e,i)},wa=function(e){var t=tr.fromTag("div"),n=tr.fromDom(e.dom.cloneNode(!0));return da(t,n),ba(t)},xa=function(e,t,n){if(!(k(n)||I(n)||N(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Sa=function(e,t,n){xa(e.dom,t,n)},Ca=function(e,t){var n=e.dom;Ae(t,(function(e,t){xa(n,t,e)}))},Ea=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},ka=function(e,t){return w.from(Ea(e,t))},Oa=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Ta=function(e,t){e.dom.removeAttribute(t)},Ia=function(e,t){return tr.fromDom(e.dom.cloneNode(t))},Aa=function(e){return Ia(e,!1)},Ra=function(e){if(Qo(e))return"#shadow-root";var t=Aa(e);return wa(t)},Pa=function(e){return Ra(e)},Ma=function(e,t,n){return ii(t,e.element)&&!ii(t,n)},Na=go([yo(Fi(),(function(e,t){var n=t.event,r=n.originator,i=n.target;return!Ma(e,r,i)||(console.warn(Fi()+" did not get interpreted by the desired target. \nOriginator: "+Pa(r)+"\nTarget: "+Pa(i)+"\nCheck the "+Fi()+" event handlers"),!1)}))]),La=Object.freeze({__proto__:null,events:Na}),Da=0,ja=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Da++,e+"_"+r+Da+String(n)},Fa=o("alloy-id-"),Ba=o("data-alloy-id"),qa=Fa(),za=Ba(),Ua=function(e,t){var n=ja(qa+e);return Ga(t,n),n},Ga=function(e,t){Object.defineProperty(e.dom,za,{value:t,writable:!0})},Va=function(e){var t=jo(e)?e.dom[za]:null;return w.from(t)},Wa=function(e){return ja(e)},Ha=a,$a=function(e){var t=function(t){return function(){throw new Error("The component must be in a context to send: "+t+(e?"\n"+Pa(e().element)+" is not in context.":""))}};return{debugInfo:o("fake"),triggerEvent:t("triggerEvent"),triggerFocus:t("triggerFocus"),triggerEscape:t("triggerEscape"),build:t("build"),addToWorld:t("addToWorld"),removeFromWorld:t("removeFromWorld"),addToGui:t("addToGui"),removeFromGui:t("removeFromGui"),getByUid:t("getByUid"),getByDom:t("getByDom"),broadcast:t("broadcast"),broadcastOn:t("broadcastOn"),broadcastEvent:t("broadcastEvent"),isConnected:u}},Ka=$a(),Xa=function(e,t,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:Ya(a.slice(0,1).concat(a.slice(3)))}},e},Ya=function(e){return W(e,(function(e){return mr(e,"/*")?e.substring(0,e.length-"/*".length):e}))},Ja=function(e,t){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:Ya(o)}},e},Qa=function(e,t){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Ya(o.slice(1))}},e},Za=ja("alloy-premade"),es=function(e){return ct(Za,e)},ts=function(e){return Be(e,Za)},ns=function(e){return Qa((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,m([t.getApis(),t],n))}),e)},rs={init:function(){return is({readState:function(){return"No State required"}})}},is=function(e){return e},os=function(e,t){var n=W(t,(function(e){return Dn(e.name(),[bn("config"),Fn("state",rs)])})),r=nn("component.behaviours",Ft(n),e.behaviours).fold((function(t){throw new Error(an(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),(function(e){return e}));return{list:t,data:Re(r,(function(e){var t=e.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return function(){return t}}))}},as=function(e){return e.list},ss=function(e){return e.data},ls=function(e,t){var n={};return Ae(e,(function(e,r){Ae(e,(function(e,i){var o=Be(n,i).getOr([]);n[i]=o.concat([t(r,e)])}))})),n},cs=function(e){return{classes:void 0!==e.classes?e.classes:[],attributes:void 0!==e.attributes?e.attributes:{},styles:void 0!==e.styles?e.styles:{}}},us=function(e,t){return h(h({},e),{attributes:h(h({},e.attributes),t.attributes),styles:h(h({},e.styles),t.styles),classes:e.classes.concat(t.classes)})},ds=function(e,t,n,r){var i=h({},t);H(n,(function(t){i[t.name()]=t.exhibit(e,r)}));var o=ls(i,(function(e,t){return{name:e,modification:t}})),a=function(e){return Y(e,(function(e,t){return h(h({},t.modification),e)}),{})},s=Y(o.classes,(function(e,t){return t.modification.concat(e)}),[]),l=a(o.attributes),c=a(o.styles);return cs({classes:s,attributes:l,styles:c})},fs=function(e,t,n,r){try{var i=se(n,(function(n,i){var o=n[t],a=i[t],s=r.indexOf(o),l=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===l)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<l?-1:l<s?1:0}));return ge.value(i)}catch(o){return ge.error([o])}},hs=function(e,t){return{handler:e,purpose:t}},ps=function(e,t){return{cHandler:e,purpose:t}},ms=function(e,t){return ps(s.apply(void 0,[e.handler].concat(t)),e.purpose)},gs=function(e){return e.cHandler},vs=function(e,t){return{name:e,handler:t}},ys=function(e,t){var n={};return H(e,(function(e){n[e.name()]=e.handlers(t)})),n},bs=function(e,t,n){var r=h(h({},n),ys(t,e));return ls(r,vs)},_s=function(e,t,n,r){var i=bs(e,n,r);return Cs(i,t)},ws=function(e){var t=mi(e);return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[e,n].concat(r);t.abort.apply(void 0,o)?n.stop():t.can.apply(void 0,o)&&t.run.apply(void 0,o)}},xs=function(e,t){return ge.error(["The event ("+e+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(W(t,(function(e){return e.name})),null,2)])},Ss=function(e,t,n){var r=t[n];return r?fs("Event: "+n,"name",e,r).map((function(e){var t=W(e,(function(e){return e.handler}));return gi(t)})):xs(n,e)},Cs=function(e,t){var n=De(e,(function(e,n){var r=1===e.length?ge.value(e[0].handler):Ss(e,t,n);return r.map((function(r){var i=ws(r),o=e.length>1?X(t[n],(function(t){return U(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return ct(n,hs(i,o))}))}));return ht(n,{})},Es="alloy.base.behaviour",ks=function(e){var t;return nn("custom.definition",Ft([Ht("dom","dom",et(),Ft([bn("tag"),Fn("styles",{}),Fn("classes",[]),Fn("attributes",{}),An("value"),An("innerHtml")])),bn("components"),bn("uid"),Fn("events",{}),Fn("apis",{}),Ht("eventOrder","eventOrder",Ze((t={},t[Ui()]=["disabling",Es,"toggling","typeaheadevents"],t[Fi()]=[Es,"focusing","keying"],t[Ki()]=[Es,"disabling","toggling","representing"],t[Ri()]=[Es,"representing","streaming","invalidating"],t[eo()]=[Es,"representing","item-events","tooltipping"],t[xi()]=["focusing",Es,"item-type-events"],t[yi()]=["focusing",Es,"item-type-events"],t[ki()]=["item-type-events","tooltipping"],t[zi()]=["receiving","reflecting","tooltipping"],t)),un()),An("domModification")]),e)},Os=function(e){return h(h({},e.dom),{uid:e.uid,domChildren:W(e.components,(function(e){return e.element}))})},Ts=function(e){return e.domModification.fold((function(){return cs({})}),cs)},Is=function(e){return e.events},As=function(e,t){var n=Ea(e,t);return void 0===n||""===n?[]:n.split(" ")},Rs=function(e,t,n){var r=As(e,t),i=r.concat([n]);return Sa(e,t,i.join(" ")),!0},Ps=function(e,t,n){var r=X(As(e,t),(function(e){return e!==n}));return r.length>0?Sa(e,t,r.join(" ")):Ta(e,t),!1},Ms=function(e){return void 0!==e.dom.classList},Ns=function(e){return As(e,"class")},Ls=function(e,t){return Rs(e,"class",t)},Ds=function(e,t){return Ps(e,"class",t)},js=function(e,t){Ms(e)?e.dom.classList.add(t):Ls(e,t)},Fs=function(e){var t=Ms(e)?e.dom.classList:Ns(e);0===t.length&&Ta(e,"class")},Bs=function(e,t){if(Ms(e)){var n=e.dom.classList;n.remove(t)}else Ds(e,t);Fs(e)},qs=function(e,t){return Ms(e)&&e.dom.classList.contains(t)},zs=function(e,t){H(t,(function(t){js(e,t)}))},Us=function(e,t){H(t,(function(t){Bs(e,t)}))},Gs=function(e){return void 0!==e.style&&M(e.style.getPropertyValue)},Vs=function(e){var t=Fo(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return ia(tr.fromDom(t)).fold((function(){return n.body.contains(t)}),i(Vs,oa))},Ws=function(){return Hs(tr.fromDom(document))},Hs=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return tr.fromDom(t)},$s=function(e,t,n){if(!k(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Gs(e)&&e.style.setProperty(t,n)},Ks=function(e,t){Gs(e)&&e.style.removeProperty(t)},Xs=function(e,t,n){var r=e.dom;$s(r,t,n)},Ys=function(e,t){var n=e.dom;Ae(t,(function(e,t){$s(n,t,e)}))},Js=function(e,t){var n=e.dom;Ae(t,(function(e,t){e.fold((function(){Ks(n,t)}),(function(e){$s(n,t,e)}))}))},Qs=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Vs(e)?i:Zs(n,t)},Zs=function(e,t){return Gs(e)?e.style.getPropertyValue(t):""},el=function(e,t){var n=e.dom,r=Zs(n,t);return w.from(r).filter((function(e){return e.length>0}))},tl=function(e){var t={},n=e.dom;if(Gs(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},nl=function(e,t,n){var r=tr.fromTag(e);Xs(r,t,n);var i=el(r,t);return i.isSome()},rl=function(e,t){var n=e.dom;Ks(n,t),ka(e,"style").map(vr).is("")&&Ta(e,"style")},il=function(e){return e.dom.offsetWidth},ol=function(e){return e.dom.value},al=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},sl=function(e){var t=tr.fromTag(e.tag);Ca(t,e.attributes),zs(t,e.classes),Ys(t,e.styles),e.innerHtml.each((function(e){return _a(t,e)}));var n=e.domChildren;return pa(t,n),e.value.each((function(e){al(t,e)})),e.uid,Ga(t,e.uid),t},ll=function(e){var t=Be(e,"behaviours").getOr({}),n=X(Te(t),(function(e){return void 0!==t[e]}));return W(n,(function(e){return t[e].me}))},cl=function(e,t){return os(e,t)},ul=function(e){var t=ll(e);return cl(e,t)},dl=function(e,t,n){var r=Os(e),i=Ts(e),o={"alloy.base.modification":i},a=t.length>0?ds(n,o,t,r):i;return us(r,a)},fl=function(e,t,n){var r={"alloy.base.behaviour":Is(e)};return _s(n,e.eventOrder,t,r).getOrDie()},hl=function(e){var t=function(){return y},n=Xn(Ka),r=rn(ks(e)),i=ul(e),o=as(i),a=ss(i),s=dl(r,o,a),l=sl(s),c=fl(r,o,a),u=Xn(r.components),d=function(e){n.set(e)},f=function(){n.set($a(t))},h=function(){var e=Xo(l),t=ne(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),(function(e){return[e]}))}));u.set(t)},p=function(t){var n=a,r=M(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return r()},m=function(e){return M(a[e.name()])},g=function(){return r.apis},v=function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},y={getSystem:n.get,config:p,hasConfigured:m,spec:e,readState:v,getApis:g,connect:d,disconnect:f,element:l,syncComponents:h,components:u.get,events:c};return y},pl=function(e){var t=Be(e,"components").getOr([]);return W(t,bl)},ml=function(e){var t=Ha(e),n=t.events,r=p(t,["events"]),i=pl(r),o=h(h({},r),{events:h(h({},La),n),components:i});return ge.value(hl(o))},gl=function(e){var t=tr.fromText(e);return vl({element:t})},vl=function(e){var n=on("external.component",jt([bn("element"),An("uid")]),e),r=Xn($a()),i=function(e){r.set(e)},a=function(){r.set($a((function(){return s})))};n.uid.each((function(e){Ga(n.element,e)}));var s={getSystem:r.get,config:w.none,hasConfigured:u,connect:i,disconnect:a,getApis:function(){return{}},element:n.element,spec:e,readState:o("No state"),syncComponents:t,components:o([]),events:{}};return es(s)},yl=Wa,bl=function(e){return ts(e).fold((function(){var t=e.hasOwnProperty("uid")?e:h({uid:yl("")},e);return ml(t).getOrDie()}),(function(e){return e}))},_l=es,wl=function(e,t){var n=function(t,n){if(!N(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;Gs(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Qs(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return J(t,(function(t,n){var r=Qs(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},xl=wl("height",(function(e){var t=e.dom;return Vs(e)?t.getBoundingClientRect().height:t.offsetHeight})),Sl=function(e){return xl.get(e)},Cl=function(e){return xl.getOuter(e)},El=function(e,t){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=xl.max(e,t,n);Xs(e,"max-height",r+"px")},kl=function(e,t){var n=function(n,r){return kl(e+n,t+r)};return{left:e,top:t,translate:n}},Ol=kl,Tl=function(e){var t=e.getBoundingClientRect();return Ol(t.left,t.top)},Il=function(e,t){return void 0!==e?e:void 0!==t?t:0},Al=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Ol(n.offsetLeft,n.offsetTop);var o=Il(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Il(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Il(i.clientTop,n.clientTop),l=Il(i.clientLeft,n.clientLeft);return Rl(e).translate(a-l,o-s)},Rl=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Ol(r.offsetLeft,r.offsetTop):Vs(e)?Tl(t):Ol(0,0)},Pl=wl("width",(function(e){return e.dom.offsetWidth})),Ml=function(e,t){return Pl.set(e,t)},Nl=function(e){return Pl.get(e)},Ll=function(e){return Pl.getOuter(e)},Dl=function(e,t){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=Pl.max(e,t,n);Xs(e,"max-width",r+"px")},jl=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},Fl=function(e){var t=tr.fromDom(aa(e).getOr(e.target)),n=function(){return e.stopPropagation()},i=function(){return e.preventDefault()},o=r(i,n);return jl(t,e.clientX,e.clientY,n,i,o,e)},Bl=function(e,t){return function(n){e(n)&&t(Fl(n))}},ql=function(e,t,n,r,i){var o=Bl(n,r);return e.dom.addEventListener(t,o,i),{unbind:s(Gl,e,t,o,i)}},zl=function(e,t,n,r){return ql(e,t,n,r,!1)},Ul=function(e,t,n,r){return ql(e,t,n,r,!0)},Gl=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Vl=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Ol(n,r)},Wl=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Hl=function(e){var t=void 0===e?window:e;return w.from(t["visualViewport"])},$l=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Kl=function(e){var t=void 0===e?window:e,n=t.document,r=Vl(tr.fromDom(n));return Hl(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return $l(r.left,r.top,n,i)}),(function(e){return $l(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Xl=function(e,t){var n=e.view(t);return n.fold(o([]),(function(t){var n=e.owner(t),r=Xl(e,n);return[t].concat(r)}))},Yl=function(e,t){var n=t.owner(e),r=Xl(t,n);return w.some(r)},Jl=function(e){var t,n=e.dom===document?w.none():w.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(tr.fromDom)},Ql=function(e){return zo(e)},Zl=Object.freeze({__proto__:null,view:Jl,owner:Ql}),ec=function(e){var t=tr.fromDom(document),n=Vl(t),r=Yl(e,Zl);return r.fold(s(Al,e),(function(t){var r=Rl(e),i=Y(t,(function(e,t){var n=Rl(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Ol(i.left+r.left+n.left,i.top+r.top+n.top)}))},tc=function(e,t,n){return{point:e,width:t,height:n}},nc=function(e,t,n,r){return{x:e,y:t,width:n,height:r}},rc=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},ic=function(e){var t=Al(e),n=Ll(e),r=Cl(e);return rc(t.left,t.top,n,r)},oc=function(e){var t=ec(e),n=Ll(e),r=Cl(e);return rc(t.left,t.top,n,r)},ac=function(){return Kl(window)};function sc(e,t,n,r,i){return e(n,r)?w.some(n):M(i)&&i(n)?w.none():t(n,r,i)}var lc,cc=function(e,t,n){var r=e.dom,i=M(n)?n:u;while(r.parentNode){r=r.parentNode;var o=tr.fromDom(r);if(t(o))return w.some(o);if(i(o))break}return w.none()},uc=function(e,t,n){var r=function(e,t){return t(e)};return sc(r,cc,e,t,n)},dc=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=tr.fromDom(e.childNodes[r]);if(t(i))return w.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return w.none()};return n(e.dom)},fc=function(e,t,n){return uc(e,t,n).isSome()},hc=function(e,t,n){return cc(e,(function(e){return ei(e,t)}),n)},pc=function(e,t){return ri(t,e)},mc=function(e,t,n){var r=function(e,t){return ei(e,t)};return sc(r,hc,e,t,n)},gc=function(e){var t=uc(e,(function(e){if(!jo(e))return!1;var t=Ea(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=Ea(e,"id"),n=ta(e);return pc(n,'[aria-owns="'+t+'"]')}))},vc=function(){var e=ja("aria-owns"),t=function(t){Sa(t,"aria-owns",e)},n=function(e){Ta(e,"aria-owns")};return{id:e,link:t,unlink:n}},yc=function(e,t){return gc(t).exists((function(t){return bc(e,t)}))},bc=function(e,t){return fc(t,(function(t){return ii(t,e.element)}),u)||yc(e,t)},_c="unknown";(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(lc||(lc={}));var wc,xc=Xn({}),Sc=function(e,t){var n=[],r=(new Date).getTime();return{logEventCut:function(e,t,r){n.push({outcome:"cut",target:t,purpose:r})},logEventStopped:function(e,t,r){n.push({outcome:"stopped",target:t,purpose:r})},logNoParent:function(e,t,r){n.push({outcome:"no-parent",target:t,purpose:r})},logEventNoHandlers:function(e,t){n.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,r){n.push({outcome:"response",purpose:r,target:t})},write:function(){var i=(new Date).getTime();z(["mousemove","mouseover","mouseout",Ki()],e)||console.log(e,{event:e,time:i-r,target:t.dom,sequence:W(n,(function(e){return z(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+Pa(e.target)+")":e.outcome}))})}}},Cc=function(e,t,n){var r=Be(xc.get(),e).orThunk((function(){var t=Te(xc.get());return fe(t,(function(t){return e.indexOf(t)>-1?w.some(xc.get()[t]):w.none()}))})).getOr(lc.NORMAL);switch(r){case lc.NORMAL:return n(Ic());case lc.LOGGING:var i=Sc(e,t),o=n(i);return i.write(),o;case lc.STOP:return!0}},Ec=["alloy/data/Fields","alloy/debugging/Debugging"],kc=function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");return Z(t,(function(e){return e.indexOf("alloy")>0&&!U(Ec,(function(t){return e.indexOf(t)>-1}))})).getOr(_c)}return _c},Oc={logEventCut:t,logEventStopped:t,logNoParent:t,logEventNoHandlers:t,logEventResponse:t,write:t},Tc=function(e,t,n){return Cc(e,t,n)},Ic=o(Oc),Ac=o([bn("menu"),bn("selectedMenu")]),Rc=o([bn("item"),bn("selectedItem")]),Pc=(o(Ft(Rc().concat(Ac()))),o(Ft(Rc()))),Mc=On("initSize",[bn("numColumns"),bn("numRows")]),Nc=function(){return _n("markers",Pc())},Lc=function(){return On("markers",[bn("backgroundMenu")].concat(Ac()).concat(Rc()))},Dc=function(e){return On("markers",W(e,bn))},jc=function(e,t,n){kc();return Ht(t,t,n,Zt((function(e){return ge.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})))},Fc=function(e){return jc("onHandler",e,Qe(t))},Bc=function(e){return jc("onKeyboardHandler",e,Qe(w.none))},qc=function(e){return jc("onHandler",e,et())},zc=function(e){return jc("onKeyboardHandler",e,et())},Uc=function(e,t){return Kn(e,o(t))},Gc=function(e){return Kn(e,a)},Vc=o(Mc),Wc=function(e,t,n,r,i,o){return{x:e,y:t,bubble:n,direction:r,boundsRestriction:i,label:o}},Hc=Ge.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),$c=function(e,t,n,r,i,o,a,s,l){return e.fold(t,n,r,i,o,a,s,l)},Kc=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)},Xc=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)},Yc=Hc.southeast,Jc=Hc.southwest,Qc=Hc.northeast,Zc=Hc.northwest,eu=Hc.south,tu=Hc.north,nu=Hc.east,ru=Hc.west,iu=function(e,t){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}},ou=function(e,t){return ae(["left","right","top","bottom"],(function(n){return Be(t,n).map((function(t){return iu(e,t)}))}))},au=function(e,t,n){var r=function(e,r){var i="top"===e||"bottom"===e?n.top:n.left;return Be(t,e).bind(a).bind((function(t){return"left"===e||"top"===e?t>=r?w.some(t):w.none():t<=r?w.some(t):w.none()})).map((function(e){return e+i})).getOr(r)},i=r("left",e.x),o=r("top",e.y),s=r("right",e.right),l=r("bottom",e.bottom);return rc(i,o,s-i,l-o)},su=function(e){return e.x},lu=function(e,t){return e.x+e.width/2-t.width/2},cu=function(e,t){return e.x+e.width-t.width},uu=function(e,t){return e.y-t.height},du=function(e){return e.y+e.height},fu=function(e,t){return e.y+e.height/2-t.height/2},hu=function(e){return e.x+e.width},pu=function(e,t){return e.x-t.width},mu=function(e,t,n){return Wc(su(e),du(e),n.southeast(),Yc(),ou(e,{left:1,top:3}),"layout-se")},gu=function(e,t,n){return Wc(cu(e,t),du(e),n.southwest(),Jc(),ou(e,{right:0,top:3}),"layout-sw")},vu=function(e,t,n){return Wc(su(e),uu(e,t),n.northeast(),Qc(),ou(e,{left:1,bottom:2}),"layout-ne")},yu=function(e,t,n){return Wc(cu(e,t),uu(e,t),n.northwest(),Zc(),ou(e,{right:0,bottom:2}),"layout-nw")},bu=function(e,t,n){return Wc(lu(e,t),uu(e,t),n.north(),tu(),ou(e,{bottom:2}),"layout-n")},_u=function(e,t,n){return Wc(lu(e,t),du(e),n.south(),eu(),ou(e,{top:3}),"layout-s")},wu=function(e,t,n){return Wc(hu(e),fu(e,t),n.east(),nu(),ou(e,{left:0}),"layout-e")},xu=function(e,t,n){return Wc(pu(e,t),fu(e,t),n.west(),ru(),ou(e,{right:1}),"layout-w")},Su=function(){return[mu,gu,vu,yu,_u,bu,wu,xu]},Cu=function(){return[gu,mu,yu,vu,_u,bu,wu,xu]},Eu=function(){return[vu,yu,mu,gu,bu,_u]},ku=function(){return[yu,vu,gu,mu,bu,_u]},Ou=function(){return[mu,gu,vu,yu,_u,bu]},Tu=function(){return[gu,mu,yu,vu,_u,bu]},Iu=function(e,t){return t.universal?e:X(e,(function(e){return z(t.channels,e)}))},Au=function(e){return go([_o(zi(),(function(t,n){var r=e.channels,i=Te(r),o=n,a=Iu(i,o);H(a,(function(e){var n=r[e],i=n.schema,a=on("channel["+e+"] data\nReceiver: "+Pa(t.element),i,o.data);n.onReceive(t,a)}))}))])},Ru=Object.freeze({__proto__:null,events:Au}),Pu=[_n("channels",en(ge.value,jt([qc("onReceive"),Fn("schema",un())])))],Mu=function(e,t,n){return Mo((function(r){n(r,e,t)}))},Nu=function(e,t,n){return Po((function(r,i){n(r,e,t)}))},Lu=function(e,t,n,r,i,o){var a=jt(e),s=Dn(t,[jn("config",e)]);return Bu(a,s,t,n,r,i,o)},Du=function(e,t,n,r,i,o){var a=e,s=Dn(t,[Rn("config",e)]);return Bu(a,s,t,n,r,i,o)},ju=function(e,t,n){var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var s=[r].concat(i);return r.config({name:o(e)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)}),(function(e){var n=Array.prototype.slice.call(s,1);return t.apply(void 0,[r,e.config,e.state].concat(n))}))};return Xa(r,n,t)},Fu=function(e){return{key:e,value:void 0}},Bu=function(e,t,n,r,i,a,l){var c=function(e){return ze(e,n)?e[n]():w.none()},u=Re(i,(function(e,t){return ju(n,e,t)})),d=Re(a,(function(e,t){return Ja(e,t)})),f=h(h(h({},d),u),{revoke:s(Fu,n),config:function(t){var r=on(n+"-config",e,t);return{key:n,value:{config:r,me:f,configAsRaw:Ye((function(){return on(n+"-config",e,t)})),initialConfig:t,state:l}}},schema:o(t),exhibit:function(e,t){return c(e).bind((function(e){return Be(r,"exhibit").map((function(n){return n(t,e.config,e.state)}))})).getOr(cs({}))},name:o(n),handlers:function(e){return c(e).map((function(e){var t=Be(r,"events").getOr((function(){return{}}));return t(e.config,e.state)})).getOr({})}});return f},qu=function(e){return ut(e)},zu=jt([bn("fields"),bn("name"),Fn("active",{}),Fn("apis",{}),Fn("state",rs),Fn("extra",{})]),Uu=function(e){var t=on("Creating behaviour: "+e.name,zu,e);return Lu(t.fields,t.name,t.active,t.apis,t.extra,t.state)},Gu=jt([bn("branchKey"),bn("branches"),bn("name"),Fn("active",{}),Fn("apis",{}),Fn("state",rs),Fn("extra",{})]),Vu=function(e){var t=on("Creating behaviour: "+e.name,Gu,e);return Du(ln(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},Wu=o(void 0),Hu=Uu({fields:Pu,name:"receiving",active:Ru}),$u=function(e,t){return cs({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},Ku=Object.freeze({__proto__:null,exhibit:$u}),Xu=function(){return tr.fromDom(document)},Yu=function(e){return e.dom.focus()},Ju=function(e){return e.dom.blur()},Qu=function(e){var t=ta(e).dom;return e.dom===t.activeElement},Zu=function(e){return void 0===e&&(e=Xu()),w.from(e.dom.activeElement).map(tr.fromDom)},ed=function(e){return Zu(ta(e)).filter((function(t){return e.dom.contains(t.dom)}))},td=function(e,n){var r=ta(n),i=Zu(r).bind((function(e){var t=function(t){return ii(e,t)};return t(n)?w.some(n):dc(n,t)})),o=e(n);return i.each((function(e){Zu(r).filter((function(t){return ii(t,e)})).fold((function(){Yu(e)}),t)})),o},nd=function(e,t,n,r,i){return{position:e,left:t,top:n,right:r,bottom:i}},rd=function(e,t){var n=function(e){return e+"px"};Js(e,{position:w.some(t.position),left:t.left.map(n),top:t.top.map(n),right:t.right.map(n),bottom:t.bottom.map(n)})},id=Ge.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),od=function(e,t,n,r,i,o){var a=t.x-n,s=t.y-r,l=t.width,c=t.height,u=i-(a+l),d=o-(s+c),f=w.some(a),h=w.some(s),p=w.some(u),m=w.some(d),g=w.none();return $c(t.direction,(function(){return nd(e,f,h,g,g)}),(function(){return nd(e,g,h,p,g)}),(function(){return nd(e,f,g,g,m)}),(function(){return nd(e,g,g,p,m)}),(function(){return nd(e,f,h,g,g)}),(function(){return nd(e,f,g,g,m)}),(function(){return nd(e,f,h,g,g)}),(function(){return nd(e,g,h,p,g)}))},ad=function(e,t){return e.fold((function(){return nd("absolute",w.some(t.x),w.some(t.y),w.none(),w.none())}),(function(e,n,r,i){return od("absolute",t,e,n,r,i)}),(function(e,n,r,i){return od("fixed",t,e,n,r,i)}))},sd=function(e,t){var n=s(ec,t),r=e.fold(n,n,(function(){var e=Vl();return ec(t).translate(-e.left,-e.top)})),i=Ll(t),o=Cl(t);return rc(r.left,r.top,i,o)},ld=function(e,t){return t.fold((function(){return e.fold(ac,ac,rc)}),(function(t){return e.fold(t,t,(function(){var n=t(),r=cd(e,n.x,n.y);return rc(r.left,r.top,n.width,n.height)}))}))},cd=function(e,t,n){var r=Ol(t,n),i=function(){var e=Vl();return r.translate(-e.left,-e.top)};return e.fold(o(r),o(r),i)},ud=function(e,t,n,r){return e.fold(t,n,r)},dd=(id.none,id.relative),fd=id.fixed,hd=function(e,t){return{anchorBox:e,origin:t}},pd=function(e,t){return hd(e,t)},md=function(e,t,n,r){var i=e+t;return i>r?n:i<n?r:i},gd=function(e,t,n){return Math.min(Math.max(e,t),n)},vd=Ge.generate([{fit:["reposition"]},{nofit:["reposition","deltaW","deltaH"]}]),yd=function(e,t,n,r,i){var o=i.x,a=i.y,s=i.width,l=i.height,c=e>=o,u=t>=a,d=c&&u,f=e+n<=o+s,h=t+r<=a+l,p=f&&h,m=Math.abs(Math.min(n,c?o+s-e:o-(e+n))),g=Math.abs(Math.min(r,u?a+l-t:a-(t+r))),v=Math.max(i.x,i.right-n),y=Math.max(i.y,i.bottom-r),b=gd(e,i.x,v),_=gd(t,i.y,y);return{originInBounds:d,sizeInBounds:p,limitX:b,limitY:_,deltaW:m,deltaH:g}},bd=function(e,t,n,r){var i=e.x,a=e.y,s=e.bubble.offset,l=s.left,c=s.top,u=au(r,e.boundsRestriction,s),d=u.y,f=u.bottom,h=u.x,p=u.right,m=i+l,g=a+c,v=yd(m,g,t,n,u),y=v.originInBounds,b=v.sizeInBounds,_=v.limitX,w=v.limitY,x=v.deltaW,S=v.deltaH,C=o(w+S-d),E=o(f-w),k=Kc(e.direction,E,E,C),O=o(_+x-h),T=o(p-_),I=Xc(e.direction,T,T,O),A={x:_,y:w,width:x,height:S,maxHeight:k,maxWidth:I,direction:e.direction,classes:{on:e.bubble.classesOn,off:e.bubble.classesOff},label:e.label,candidateYforTest:g};return y&&b?vd.fit(A):vd.nofit(A,x,S)},_d=function(e,t,n,r,i){var o=n.width,l=n.height,c=function(e,a,s,c){var u=e(t,n,r),d=bd(u,o,l,i);return d.fold(vd.fit,(function(e,t,n){var r=n>c||t>s;return r?vd.nofit(e,t,n):vd.nofit(a,s,c)}))},u=J(e,(function(e,t){var n=s(c,t);return e.fold(vd.fit,n)}),vd.nofit({x:t.x,y:t.y,width:n.width,height:n.height,maxHeight:n.height,maxWidth:n.width,direction:Yc(),classes:{on:[],off:[]},label:"none",candidateYforTest:t.y},-1,-1));return u.fold(a,a)},wd=function(e){return{width:Ll(e),height:Cl(e)}},xd=function(e,t,n,r){rl(t,"max-height"),rl(t,"max-width");var i=wd(t);return _d(r.preference,e,i,n,r.bounds)},Sd=function(e,t){var n=t.classes;Us(e,n.off),zs(e,n.on)},Cd=function(e,t,n){var r=n.maxHeightFunction;r(e,t.maxHeight)},Ed=function(e,t,n){var r=n.maxWidthFunction;r(e,t.maxWidth)},kd=function(e,t,n){rd(e,ad(n.origin,t))},Od=function(e,t){El(e,Math.floor(t))},Td=o((function(e,t){Od(e,t),Ys(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Id=o((function(e,t){Od(e,t)})),Ad=function(e,t,n){return void 0===e[t]?n:e[t]},Rd=function(e,n,r,i,o,a){var s=Ad(a,"maxHeightFunction",Td()),l=Ad(a,"maxWidthFunction",t),c=e.anchorBox,u=e.origin,d={bounds:ld(u,o),origin:u,preference:i,maxHeightFunction:s,maxWidthFunction:l};Pd(c,n,r,d)},Pd=function(e,t,n,r){var i=xd(e,t,n,r);kd(t,i,r),Sd(t,i),Cd(t,i,r),Ed(t,i,r)},Md=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],Nd=function(e,t,n){var r=function(e){return Be(n,e).getOr([])},i=function(e,t,n){var i=oe(Md,n);return{offset:Ol(e,t),classesOn:ne(n,r),classesOff:ne(i,r)}};return{southeast:function(){return i(-e,t,["top","alignLeft"])},southwest:function(){return i(e,t,["top","alignRight"])},south:function(){return i(-e/2,t,["top","alignCentre"])},northeast:function(){return i(-e,-t,["bottom","alignLeft"])},northwest:function(){return i(e,-t,["bottom","alignRight"])},north:function(){return i(-e/2,-t,["bottom","alignCentre"])},east:function(){return i(e,-t/2,["valignCentre","left"])},west:function(){return i(-e,-t/2,["valignCentre","right"])},innerNorthwest:function(){return i(-e,t,["top","alignRight"])},innerNortheast:function(){return i(e,t,["top","alignLeft"])},innerNorth:function(){return i(-e/2,t,["top","alignCentre"])},innerSouthwest:function(){return i(-e,-t,["bottom","alignRight"])},innerSoutheast:function(){return i(e,-t,["bottom","alignLeft"])},innerSouth:function(){return i(-e/2,-t,["bottom","alignCentre"])},innerWest:function(){return i(e,-t/2,["valignCentre","right"])},innerEast:function(){return i(-e,-t/2,["valignCentre","left"])}}},Ld=function(){return Nd(0,0,{})},Dd=function(e){return e},jd=function(e,t){return function(n){return"rtl"===Fd(n)?t:e}},Fd=function(e){return"rtl"===Qs(e,"direction")?"rtl":"ltr"};(function(e){e["TopToBottom"]="toptobottom",e["BottomToTop"]="bottomtotop"})(wc||(wc={}));var Bd,qd="data-alloy-vertical-dir",zd=function(e){return fc(e,(function(e){return jo(e)&&Ea(e,"data-alloy-vertical-dir")===wc.BottomToTop}))},Ud=function(){return Dn("layouts",[bn("onLtr"),bn("onRtl"),An("onBottomLtr"),An("onBottomRtl")])},Gd=function(e,t,n,r,i,o,a){var s=a.map(zd).getOr(!1),l=t.layouts.map((function(t){return t.onLtr(e)})),c=t.layouts.map((function(t){return t.onRtl(e)})),u=s?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(l).getOr(i):l.getOr(n),d=s?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(c).getOr(o):c.getOr(r),f=jd(u,d);return f(e)},Vd=function(e,t,n){var r=t.hotspot,i=sd(n,r.element),o=Gd(e.element,t,Ou(),Tu(),Eu(),ku(),w.some(t.hotspot.element));return w.some(Dd({anchorBox:i,bubble:t.bubble.getOr(Ld()),overrides:t.overrides,layouts:o,placer:w.none()}))},Wd=[bn("hotspot"),An("bubble"),Fn("overrides",{}),Ud(),Uc("placement",Vd)],Hd=function(e,t,n){var r=cd(n,t.x,t.y),i=rc(r.left,r.top,t.width,t.height),o=Gd(e.element,t,Su(),Cu(),Su(),Cu(),w.none());return w.some(Dd({anchorBox:i,bubble:t.bubble,overrides:t.overrides,layouts:o,placer:w.none()}))},$d=[bn("x"),bn("y"),Fn("height",0),Fn("width",0),Fn("bubble",Ld()),Fn("overrides",{}),Ud(),Uc("placement",Hd)],Kd=Ge.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Xd=function(e){return e.fold(a,(function(e,t,n){return e.translate(-t,-n)}))},Yd=function(e){return e.fold(a,a)},Jd=function(e){return J(e,(function(e,t){return e.translate(t.left,t.top)}),Ol(0,0))},Qd=function(e){var t=W(e,Xd);return Jd(t)},Zd=function(e){var t=W(e,Yd);return Jd(t)},ef=Kd.screen,tf=Kd.absolute,nf=function(e,t,n){var r=Vo(n.root).dom,i=function(t){var n=zo(t),r=zo(e.element);return ii(n,r)};return w.from(r.frameElement).map(tr.fromDom).filter(i).map(Al)},rf=function(e,t,n){var r=zo(e.element),i=Vl(r),o=nf(e,t,n).getOr(i);return tf(o,i.left,i.top)},of=function(e,t,n,r){var i=e,o=t,a=n,s=r;e<0&&(i=0,a=n+e),t<0&&(o=0,s=r+t);var l=ef(Ol(i,o));return w.some(tc(l,a,s))},af=function(e,t,n,r,i){return e.map((function(e){var o=[t,e.point],a=ud(r,(function(){return Zd(o)}),(function(){return Zd(o)}),(function(){return Qd(o)})),s=nc(a.left,a.top,e.width,e.height),l=n.showAbove?Eu():Ou(),c=n.showAbove?ku():Tu(),u=Gd(i,n,l,c,l,c,w.none());return Dd({anchorBox:s,bubble:n.bubble.getOr(Ld()),overrides:n.overrides,layouts:u,placer:w.none()})}))},sf=function(e,t,n){var r=rf(e,n,t);return t.node.filter(Vs).bind((function(i){var o=i.dom.getBoundingClientRect(),a=of(o.left,o.top,o.width,o.height),s=t.node.getOr(e.element);return af(a,r,t,n,s)}))},lf=[bn("node"),bn("root"),An("bubble"),Ud(),Fn("overrides",{}),Fn("showAbove",!1),Uc("placement",sf)],cf="\ufeff",uf=" ",df=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},ff={create:df},hf=Ge.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),pf=function(e,t,n,r){return e.fold(t,n,r)},mf=function(e){return e.fold(a,a,a)},gf=hf.before,vf=hf.on,yf=hf.after,bf={before:gf,on:vf,after:yf,cata:pf,getStart:mf},_f=Ge.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),wf=function(e){return _f.exact(e.start,e.soffset,e.finish,e.foffset)},xf=function(e){return e.match({domRange:function(e){return tr.fromDom(e.startContainer)},relative:function(e,t){return bf.getStart(e)},exact:function(e,t,n,r){return e}})},Sf=_f.domRange,Cf=_f.relative,Ef=_f.exact,kf=function(e){var t=xf(e);return Vo(t)},Of=ff.create,Tf={domRange:Sf,relative:Cf,exact:Ef,exactFromRange:wf,getWin:kf,range:Of},If=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},Af=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},Rf=function(e,t,n){var r=e.document.createRange();return If(r,t),Af(r,n),r},Pf=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},Mf=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},Nf=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?w.some(n).map(Mf):w.none()},Lf=Ge.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Df=function(e,t,n){return t(tr.fromDom(n.startContainer),n.startOffset,tr.fromDom(n.endContainer),n.endOffset)},jf=function(e,t){return t.match({domRange:function(e){return{ltr:o(e),rtl:w.none}},relative:function(t,n){return{ltr:Ye((function(){return Rf(e,t,n)})),rtl:Ye((function(){return w.some(Rf(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:Ye((function(){return Pf(e,t,n,r,i)})),rtl:Ye((function(){return w.some(Pf(e,r,i,t,n))}))}}})},Ff=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Lf.rtl(tr.fromDom(e.endContainer),e.endOffset,tr.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Df(e,Lf.ltr,n)}))}return Df(e,Lf.ltr,n)},Bf=function(e,t){var n=jf(e,t);return Ff(e,n)},qf=function(e,t){var n=Bf(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})},zf=(Lf.ltr,Lf.rtl,function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?w.from(t.dom.nodeValue):w.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}}),Uf=zf(Fo,"text"),Gf=function(e){return Uf.get(e)},Vf=function(e){return Uf.getOption(e)},Wf=function(e){return"img"===No(e)?1:Vf(e).fold((function(){return Xo(e).length}),(function(e){return e.length}))},Hf=function(e){return Vf(e).filter((function(e){return 0!==e.trim().length||e.indexOf(uf)>-1})).isSome()},$f=["img","br"],Kf=function(e){var t=Hf(e);return t||z($f,No(e))},Xf=function(e){return Yf(e,Kf)},Yf=function(e,t){var n=function(e){for(var r=Xo(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return w.some(o);var a=n(o);if(a.isSome())return a}return w.none()};return n(e)},Jf=function(e,t){return ni(t,e)},Qf=function(e,t,n,r){var i=zo(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Zf=function(e,t,n,r){var i=Qf(e,t,n,r),o=ii(e,n)&&t===r;return i.collapsed&&!o},eh=function(e){return w.from(e.getSelection())},th=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return w.some(ff.create(tr.fromDom(t.startContainer),t.startOffset,tr.fromDom(n.endContainer),n.endOffset))}return w.none()},nh=function(e){if(null===e.anchorNode||null===e.focusNode)return th(e);var t=tr.fromDom(e.anchorNode),n=tr.fromDom(e.focusNode);return Zf(t,e.anchorOffset,n,e.focusOffset)?w.some(ff.create(t,e.anchorOffset,n,e.focusOffset)):th(e)},rh=function(e){return eh(e).filter((function(e){return e.rangeCount>0})).bind(nh)},ih=function(e,t){var n=qf(e,t);return Nf(n)},oh=function(e,t){return{element:e,offset:t}},ah=function(e,t){var n=Xo(e);if(0===n.length)return oh(e,t);if(t<n.length)return oh(n[t],0);var r=n[n.length-1],i=Fo(r)?Gf(r).length:Xo(r).length;return oh(r,i)},sh=function(e,t){return Fo(e)?oh(e,t):ah(e,t)},lh=function(e,t){var n=t.getSelection.getOrThunk((function(){return function(){return rh(e)}}));return n().map((function(e){var t=sh(e.start,e.soffset),n=sh(e.finish,e.foffset);return Tf.range(t.element,t.offset,n.element,n.offset)}))},ch=function(e,t,n){var r=Vo(t.root).dom,i=rf(e,n,t),o=lh(r,t).bind((function(e){var t=ih(r,Tf.exactFromRange(e)).orThunk((function(){var t=tr.fromText(cf);return la(e.start,t),ih(r,Tf.exact(t,0,t,1)).map((function(e){return ga(t),e}))}));return t.bind((function(e){return of(e.left,e.top,e.width,e.height)}))})),a=lh(r,t).bind((function(e){return jo(e.start)?w.some(e.start):Ho(e.start)})),s=a.getOr(e.element);return af(o,i,t,n,s)},uh=[An("getSelection"),bn("root"),An("bubble"),Ud(),Fn("overrides",{}),Fn("showAbove",!1),Uc("placement",ch)],dh=function(e){return e.x+e.width},fh=function(e,t){return e.x-t.width},hh=function(e,t){return e.y-t.height+e.height},ph=function(e){return e.y},mh=function(e,t,n){return Wc(dh(e),ph(e),n.southeast(),Yc(),ou(e,{left:0,top:2}),"link-layout-se")},gh=function(e,t,n){return Wc(fh(e,t),ph(e),n.southwest(),Jc(),ou(e,{right:1,top:2}),"link-layout-sw")},vh=function(e,t,n){return Wc(dh(e),hh(e,t),n.northeast(),Qc(),ou(e,{left:0,bottom:3}),"link-layout-ne")},yh=function(e,t,n){return Wc(fh(e,t),hh(e,t),n.northwest(),Zc(),ou(e,{right:1,bottom:3}),"link-layout-nw")},bh=function(){return[mh,gh,vh,yh]},_h=function(){return[gh,mh,yh,vh]},wh=function(e,t,n){var r=sd(n,t.item.element),i=Gd(e.element,t,bh(),_h(),bh(),_h(),w.none());return w.some(Dd({anchorBox:r,bubble:Ld(),overrides:t.overrides,layouts:i,placer:w.none()}))},xh=[bn("item"),Ud(),Fn("overrides",{}),Uc("placement",wh)],Sh=ln("anchor",{selection:uh,node:lf,hotspot:Wd,submenu:xh,makeshift:$d}),Ch=function(){var e=document.documentElement;return fd(0,0,e.clientWidth,e.clientHeight)},Eh=function(e){var t=Al(e.element),n=e.element.dom.getBoundingClientRect();return dd(t.left,t.top,n.width,n.height)},kh=function(e,t,n,r,i){var o=pd(n.anchorBox,t);Rd(o,i.element,n.bubble,n.layouts,r,n.overrides)},Oh=function(e,t,n,r,i){Th(e,t,n,r,i,w.none())},Th=function(e,t,n,r,i,o){var a=o.map(ic);return Ih(e,t,n,r,i,a)},Ih=function(e,t,n,r,i,a){var s=on("positioning anchor.info",Sh,r);td((function(){Xs(i.element,"position","fixed");var n=el(i.element,"visibility");Xs(i.element,"visibility","hidden");var r=t.useFixed()?Ch():Eh(e),l=s.placement,c=a.map(o).or(t.getBounds);l(e,s,r).each((function(t){var n=t.placer.getOr(kh);n(e,r,t,c,i)})),n.fold((function(){rl(i.element,"visibility")}),(function(e){Xs(i.element,"visibility",e)})),el(i.element,"left").isNone()&&el(i.element,"top").isNone()&&el(i.element,"right").isNone()&&el(i.element,"bottom").isNone()&&el(i.element,"position").is("fixed")&&rl(i.element,"position")}),i.element)},Ah=function(e,t,n){return t.useFixed()?"fixed":"absolute"},Rh=Object.freeze({__proto__:null,position:Oh,positionWithin:Th,positionWithinBounds:Ih,getMode:Ah}),Ph=[Fn("useFixed",u),An("getBounds")],Mh=Uu({fields:Ph,name:"positioning",active:Ku,apis:Rh}),Nh=function(e){co(e,eo());var t=e.components();H(t,Nh)},Lh=function(e){var t=e.components();H(t,Lh),co(e,Zi())},Dh=function(e,t){da(e.element,t.element)},jh=function(e){H(e.components(),(function(e){return ga(e.element)})),ma(e.element),e.syncComponents()},Fh=function(e,t){var n=e.components();jh(e);var r=oe(n,t);H(r,(function(t){Nh(t),e.getSystem().removeFromWorld(t)})),H(t,(function(t){t.getSystem().isConnected()?Dh(e,t):(e.getSystem().addToWorld(t),Dh(e,t),Vs(e.element)&&Lh(t)),e.syncComponents()}))},Bh=function(e,t){qh(e,t,da)},qh=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),Vs(e.element)&&Lh(t),e.syncComponents()},zh=function(e){Nh(e),ga(e.element),e.getSystem().removeFromWorld(e)},Uh=function(e){var t=Wo(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));zh(e),t.each((function(e){e.syncComponents()}))},Gh=function(e){var t=e.components();H(t,zh),ma(e.element),e.syncComponents()},Vh=function(e,t){Hh(e,t,da)},Wh=function(e,t){Hh(e,t,ca)},Hh=function(e,t,n){n(e,t.element);var r=Xo(t.element);H(r,(function(e){t.getByDom(e).each(Lh)}))},$h=function(e){var t=Xo(e.element);H(t,(function(t){e.getByDom(t).each(Nh)})),ga(e.element)},Kh=function(e,t,n,r){n.get().each((function(t){Gh(e)}));var i=t.getAttachPoint(e);Bh(i,e);var o=e.getSystem().build(r);return Bh(e,o),n.set(o),o},Xh=function(e,t,n,r){var i=Kh(e,t,n,r);return t.onOpen(e,i),i},Yh=function(e,t,n,r){return n.get().map((function(){return Kh(e,t,n,r)}))},Jh=function(e,t,n,r,i){ip(e,t),Xh(e,t,n,r),i(),ap(e,t)},Qh=function(e,t,n){n.get().each((function(r){Gh(e),Uh(e),t.onClose(e,r),n.clear()}))},Zh=function(e,t,n){return n.isOpen()},ep=function(e,t,n,r){return Zh(e,t,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},tp=function(e,t,n){return n.get()},np=function(e,t,n,r){el(e.element,t).fold((function(){Ta(e.element,n)}),(function(t){Sa(e.element,n,t)})),Xs(e.element,t,r)},rp=function(e,t,n){ka(e.element,n).fold((function(){return rl(e.element,t)}),(function(n){return Xs(e.element,t,n)}))},ip=function(e,t,n){var r=t.getAttachPoint(e);Xs(e.element,"position",Mh.getMode(r)),np(e,"visibility",t.cloakVisibilityAttr,"hidden")},op=function(e){return U(["top","left","right","bottom"],(function(t){return el(e,t).isSome()}))},ap=function(e,t,n){op(e.element)||rl(e.element,"position"),rp(e,"visibility",t.cloakVisibilityAttr)},sp=Object.freeze({__proto__:null,cloak:ip,decloak:ap,open:Xh,openWhileCloaked:Jh,close:Qh,isOpen:Zh,isPartOf:ep,getState:tp,setContent:Yh}),lp=function(e,t){return go([_o(Hi(),(function(n,r){Qh(n,e,t)}))])},cp=Object.freeze({__proto__:null,events:lp}),up=[Fc("onOpen"),Fc("onClose"),bn("isPartOf"),bn("getAttachPoint"),Fn("cloakVisibilityAttr","data-precloak-visibility")],dp=function(){var e=Xn(w.none()),t=o("not-implemented"),n=function(){return e.get().isSome()},r=function(t){e.set(w.some(t))},i=function(){return e.get()},a=function(){e.set(w.none())};return is({readState:t,isOpen:n,clear:a,set:r,get:i})},fp=Object.freeze({__proto__:null,init:dp}),hp=Uu({fields:up,name:"sandboxing",active:cp,apis:sp,state:fp}),pp=o("dismiss.popups"),mp=o("reposition.popups"),gp=o("mouse.released"),vp=jt([Fn("isExtraPart",u),Dn("fireEventInstead",[Fn("event",to())])]),yp=function(e){var t,n=on("Dismissal",vp,e);return t={},t[pp()]={schema:jt([bn("target")]),onReceive:function(e,t){if(hp.isOpen(e)){var r=hp.isPartOf(e,t.target)||n.isExtraPart(e,t.target);r||n.fireEventInstead.fold((function(){return hp.close(e)}),(function(t){return co(e,t.event)}))}}},t},bp=jt([Dn("fireEventInstead",[Fn("event",no())]),En("doReposition")]),_p=function(e){var t,n=on("Reposition",bp,e);return t={},t[mp()]={onReceive:function(e){hp.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return co(e,t.event)}))}},t},wp=function(e,t,n){t.store.manager.onLoad(e,t,n)},xp=function(e,t,n){t.store.manager.onUnload(e,t,n)},Sp=function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},Cp=function(e,t,n){return t.store.manager.getValue(e,t,n)},Ep=function(e,t,n){return n},kp=Object.freeze({__proto__:null,onLoad:wp,onUnload:xp,setValue:Sp,getValue:Cp,getState:Ep}),Op=function(e,t){var n=e.resetOnDom?[Ao((function(n,r){wp(n,e,t)})),Ro((function(n,r){xp(n,e,t)}))]:[Nu(e,t,wp)];return go(n)},Tp=Object.freeze({__proto__:null,events:Op}),Ip=function(){var e=Xn(null),t=function(){return{mode:"memory",value:e.get()}},n=function(){return null===e.get()},r=function(){e.set(null)};return is({set:e.set,get:e.get,isNotSet:n,clear:r,readState:t})},Ap=function(){var e=t;return is({readState:e})},Rp=function(){var e=Xn({}),t=Xn({}),n=function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},r=function(){e.set({}),t.set({})},i=function(n){return Be(e.get(),n).orThunk((function(){return Be(t.get(),n)}))},o=function(n){var r=e.get(),i=t.get(),o={},a={};H(n,(function(e){o[e.value]=e,Be(e,"meta").each((function(t){Be(t,"text").each((function(t){a[t]=e}))}))})),e.set(h(h({},r),o)),t.set(h(h({},i),a))};return is({readState:n,lookup:i,update:o,clear:r})},Pp=function(e){return e.store.manager.state(e)},Mp=Object.freeze({__proto__:null,memory:Ip,dataset:Rp,manual:Ap,init:Pp}),Np=function(e,t,n,r){var i=t.store;n.update([r]),i.setValue(e,r),t.onSetValue(e,r)},Lp=function(e,t,n){var r=t.store,i=r.getDataKey(e);return n.lookup(i).fold((function(){return r.getFallbackEntry(i)}),(function(e){return e}))},Dp=function(e,t,n){var r=t.store;r.initialValue.each((function(r){Np(e,t,n,r)}))},jp=function(e,t,n){n.clear()},Fp=[An("initialValue"),bn("getFallbackEntry"),bn("getDataKey"),bn("setValue"),Uc("manager",{setValue:Np,getValue:Lp,onLoad:Dp,onUnload:jp,state:Rp})],Bp=function(e,t,n){return t.store.getValue(e)},qp=function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},zp=function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},Up=[bn("getValue"),Fn("setValue",t),An("initialValue"),Uc("manager",{setValue:qp,getValue:Bp,onLoad:zp,onUnload:t,state:rs.init})],Gp=function(e,t,n,r){n.set(r),t.onSetValue(e,r)},Vp=function(e,t,n){return n.get()},Wp=function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},Hp=function(e,t,n){n.clear()},$p=[An("initialValue"),Uc("manager",{setValue:Gp,getValue:Vp,onLoad:Wp,onUnload:Hp,state:Ip})],Kp=[Bn("store",{mode:"memory"},ln("mode",{memory:$p,manual:Up,dataset:Fp})),Fc("onSetValue"),Fn("resetOnDom",!1)],Xp=Uu({fields:Kp,name:"representing",active:Tp,apis:kp,extra:{setValueFrom:function(e,t){var n=Xp.getValue(t);Xp.setValue(e,n)}},state:Mp}),Yp=function(e,t){return $n(e,{},W(t,(function(t){return kn(t.name(),"Cannot configure "+t.name()+" for "+e)})).concat([Kn("dump",a)]))},Jp=function(e){return e.dump},Qp=function(e,t){return h(h({},e.dump),qu(t))},Zp={field:Yp,augment:Qp,get:Jp},em="placeholder",tm=Ge.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),nm=function(e){return qe(e,"uiType")},rm=function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?tm.single(!0,o(n)):Be(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+Te(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))},im=function(e,t,n,r){return nm(n)&&n.uiType===em?rm(e,t,n,r):tm.single(!1,o(n))},om=function(e,t,n,r){var i=im(e,t,n,r);return i.fold((function(i,o){var a=nm(n)?o(t,n.config,n.validated):o(t),s=Be(a,"components").getOr([]),l=ne(s,(function(n){return om(e,t,n,r)}));return[h(h({},a),{components:l})]}),(function(e,r){if(nm(n)){var i=r(t,n.config,n.validated),o=n.validated.preprocess.getOr(a);return o(i)}return r(t)}))},am=function(e,t,n,r){return ne(n,(function(n){return om(e,t,n,r)}))},sm=function(e,t){var n=!1,r=function(){return n},i=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t},a=function(){return t.fold((function(e,t){return e}),(function(e,t){return e}))};return{name:o(e),required:a,used:r,replace:i}},lm=function(e,t,n,r){var i=Re(r,(function(e,t){return sm(t,e)})),o=am(e,t,n,i);return Ae(i,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),o},cm=tm.single,um=tm.multiple,dm=o(em),fm=Ge.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),hm=Fn("factory",{sketch:a}),pm=Fn("schema",[]),mm=bn("name"),gm=Ht("pname","pname",nt((function(e){return"<alloy."+ja(e.name)+">"})),un()),vm=Kn("schema",(function(){return[An("preprocess")]})),ym=Fn("defaults",o({})),bm=Fn("overrides",o({})),_m=Ft([hm,pm,mm,gm,ym,bm]),wm=Ft([hm,pm,mm,ym,bm]),xm=Ft([hm,pm,mm,gm,ym,bm]),Sm=Ft([hm,vm,mm,bn("unit"),gm,ym,bm]),Cm=function(e){return e.fold(w.some,w.none,w.some,w.some)},Em=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},km=function(e){return e.fold(a,a,a,a)},Om=function(e,t){return function(n){var r=on("Converting part type",t,n);return e(r)}},Tm=Om(fm.required,_m),Im=Om(fm.external,wm),Am=Om(fm.optional,xm),Rm=Om(fm.group,Sm),Pm=o("entirety"),Mm=Object.freeze({__proto__:null,required:Tm,external:Im,optional:Am,group:Rm,asNamedPart:Cm,name:Em,asCommon:km,original:Pm}),Nm=function(e,t,n,r){return Ke(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},Lm=function(e,t,n){var r={},i={};return H(n,(function(e){e.fold((function(e){r[e.pname]=cm(!0,(function(t,n,r){return e.factory.sketch(Nm(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];i[e.name]=o(e.factory.sketch(Nm(t,e,n[Pm()]),n))}),(function(e){r[e.pname]=cm(!1,(function(t,n,r){return e.factory.sketch(Nm(t,e,n,r))}))}),(function(e){r[e.pname]=um(!0,(function(t,n,r){var i=t[e.name];return W(i,(function(n){return e.factory.sketch(Ke(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:o(r),externals:o(i)}},Dm=function(e,t){var n={};return H(t,(function(t){Cm(t).each((function(t){var r=jm(e,t.pname);n[t.name]=function(n){var i=on("Part: "+t.name+" in "+e,Ft(t.schema),n);return h(h({},r),{config:n,validated:i})}}))})),n},jm=function(e,t){return{uiType:dm(),owner:e,name:t}},Fm=function(e,t,n){return{uiType:dm(),owner:e,name:t,config:n,validated:{}}},Bm=function(e){return ne(e,(function(e){return e.fold(w.none,w.some,w.none,w.none).map((function(e){return On(e.name,e.schema.concat([Gc(Pm())]))})).toArray()}))},qm=function(e){return W(e,Em)},zm=function(e,t,n){return Lm(e,t,n)},Um=function(e,t,n){return lm(w.some(e),t,t.components,n)},Gm=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()},Vm=function(e,t,n){return Gm(e,t,n).getOrDie("Could not find part: "+n)},Wm=function(e,t,n){var r={},i=t.partUids,a=e.getSystem();return H(n,(function(e){r[e]=o(a.getByUid(i[e]))})),r},Hm=function(e,t){var n=e.getSystem();return Re(t.partUids,(function(e,t){return o(n.getByUid(e))}))},$m=function(e){return Te(e.partUids)},Km=function(e,t,n){var r={},i=t.partUids,a=e.getSystem();return H(n,(function(e){r[e]=o(a.getByUid(i[e]).getOrDie())})),r},Xm=function(e,t){var n=qm(t);return ut(W(n,(function(t){return{key:t,value:e+"-"+t}})))},Ym=function(e){return Ht("partUids","partUids",rt((function(t){return Xm(t.uid,e)})),un())},Jm=Object.freeze({__proto__:null,generate:Dm,generateOne:Fm,schemas:Bm,names:qm,substitutes:zm,components:Um,defaultUids:Xm,defaultUidsSchema:Ym,getAllParts:Hm,getAllPartNames:$m,getPart:Gm,getPartOrDie:Vm,getParts:Wm,getPartsOrDie:Km}),Qm=function(e,t){var n=e.length>0?[On("parts",e)]:[];return n.concat([bn("uid"),Fn("dom",{}),Fn("components",[]),Gc("originalSpec"),Fn("debug.sketcher",{})]).concat(t)},Zm=function(e,t,n,r,i){var o=Qm(r,i);return on(e+" [SpecSchema]",jt(o.concat(t)),n)},eg=function(e,t,n,r){var i=rg(r),o=Zm(e,t,i,[],[]);return n(o,i)},tg=function(e,t,n,r,i){var o=rg(i),a=Bm(n),s=Ym(n),l=Zm(e,t,o,a,[s]),c=zm(e,l,n),u=Um(e,l,c.internals());return r(l,u,o,c.externals())},ng=function(e){return qe(e,"uid")},rg=function(e){return ng(e)?e:h(h({},e),{uid:Wa("uid")})},ig=function(e){return void 0!==e.uid},og=jt([bn("name"),bn("factory"),bn("configFields"),Fn("apis",{}),Fn("extraApis",{})]),ag=jt([bn("name"),bn("factory"),bn("configFields"),bn("partFields"),Fn("apis",{}),Fn("extraApis",{})]),sg=function(e){var t=on("Sketcher for "+e.name,og,e),n=function(e){return eg(t.name,t.configFields,t.factory,e)},r=Re(t.apis,ns),i=Re(t.extraApis,(function(e,t){return Ja(e,t)}));return h(h({name:t.name,configFields:t.configFields,sketch:n},r),i)},lg=function(e){var t=on("Sketcher for "+e.name,ag,e),n=function(e){return tg(t.name,t.configFields,t.partFields,t.factory,e)},r=Dm(t.name,t.partFields),i=Re(t.apis,ns),o=Re(t.extraApis,(function(e,t){return Ja(e,t)}));return h(h({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:n,parts:r},i),o)},cg=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},ug=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return w.none();t.push(r.getOrDie())}return w.some(t)},dg=function(e,t,n){return e.isSome()&&t.isSome()?w.some(n(e.getOrDie(),t.getOrDie())):w.none()},fg=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?w.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):w.none()},hg=function(e,t){return void 0!==e&&null!==e?w.some(t(e)):w.none()},pg=function(e,t){return e?w.some(t):w.none()},mg=function(e){return"input"===No(e)&&"radio"!==Ea(e,"type")||"textarea"===No(e)},gg=function(e,t,n){return t.find(e)},vg=Object.freeze({__proto__:null,getCurrent:gg}),yg=[bn("find")],bg=Uu({fields:yg,name:"composing",apis:vg}),_g=function(e,t,n,r){var i=Jf(e.element,"."+t.highlightClass);H(i,(function(n){U(r,(function(e){return e.element===n}))||(Bs(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),co(n,lo())})))}))},wg=function(e,t,n){return _g(e,t,n,[])},xg=function(e,t,n,r){Tg(e,t,n,r)&&(Bs(r.element,t.highlightClass),t.onDehighlight(e,r),co(r,lo()))},Sg=function(e,t,n,r){_g(e,t,n,[r]),Tg(e,t,n,r)||(js(r.element,t.highlightClass),t.onHighlight(e,r),co(r,so()))},Cg=function(e,t,n){Rg(e,t).each((function(r){Sg(e,t,n,r)}))},Eg=function(e,t,n){Pg(e,t).each((function(r){Sg(e,t,n,r)}))},kg=function(e,t,n,r){Ag(e,t,n,r).fold((function(e){throw e}),(function(r){Sg(e,t,n,r)}))},Og=function(e,t,n,r){var i=Dg(e,t),o=Z(i,r);o.each((function(r){Sg(e,t,n,r)}))},Tg=function(e,t,n,r){return qs(r.element,t.highlightClass)},Ig=function(e,t,n){return pc(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Ag=function(e,t,n,r){var i=Jf(e.element,"."+t.itemClass);return w.from(i[r]).fold((function(){return ge.error(new Error("No element found with index "+r))}),e.getSystem().getByDom)},Rg=function(e,t,n){return pc(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Pg=function(e,t,n){var r=Jf(e.element,"."+t.itemClass),i=r.length>0?w.some(r[r.length-1]):w.none();return i.bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Mg=function(e,t,n,r){var i=Jf(e.element,"."+t.itemClass),o=ee(i,(function(e){return qs(e,t.highlightClass)}));return o.bind((function(t){var n=md(t,r,0,i.length-1);return e.getSystem().getByDom(i[n]).toOptional()}))},Ng=function(e,t,n){return Mg(e,t,n,-1)},Lg=function(e,t,n){return Mg(e,t,n,1)},Dg=function(e,t,n){var r=Jf(e.element,"."+t.itemClass);return cg(W(r,(function(t){return e.getSystem().getByDom(t).toOptional()})))},jg=Object.freeze({__proto__:null,dehighlightAll:wg,dehighlight:xg,highlight:Sg,highlightFirst:Cg,highlightLast:Eg,highlightAt:kg,highlightBy:Og,isHighlighted:Tg,getHighlighted:Ig,getFirst:Rg,getLast:Pg,getPrevious:Ng,getNext:Lg,getCandidates:Dg}),Fg=[bn("highlightClass"),bn("itemClass"),Fc("onHighlight"),Fc("onDehighlight")],Bg=Uu({fields:Fg,name:"highlighting",apis:jg}),qg=[8],zg=[9],Ug=[13],Gg=[27],Vg=[32],Wg=[37],Hg=[38],$g=[39],Kg=[40],Xg=function(e,t,n){var r=ie(e.slice(0,t)),i=ie(e.slice(t+1));return Z(r.concat(i),n)},Yg=function(e,t,n){var r=ie(e.slice(0,t));return Z(r,n)},Jg=function(e,t,n){var r=e.slice(0,t),i=e.slice(t+1);return Z(i.concat(r),n)},Qg=function(e,t,n){var r=e.slice(t+1);return Z(r,n)},Zg=function(e){return function(t){var n=t.raw;return z(e,n.which)}},ev=function(e){return function(t){return re(e,(function(e){return e(t)}))}},tv=function(e){var t=e.raw;return!0===t.shiftKey},nv=function(e){var t=e.raw;return!0===t.ctrlKey},rv=l(tv),iv=function(e,t){return{matches:e,classification:t}},ov=function(e,t){var n=Z(e,(function(e){return e.matches(t)}));return n.map((function(e){return e.classification}))},av=function(e,t,n){var r=t.exists((function(e){return n.exists((function(t){return ii(t,e)}))}));r||uo(e,ro(),{prevFocus:t,newFocus:n})},sv=function(){var e=function(e){return ed(e.element)},t=function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element);var i=e(t);av(t,r,i)};return{get:e,set:t}},lv=function(){var e=function(e){return Bg.getHighlighted(e).map((function(e){return e.element}))},n=function(n,r){var i=e(n);n.getSystem().getByDom(r).fold(t,(function(e){Bg.highlight(n,e)}));var o=e(n);av(n,i,o)};return{get:e,set:n}};(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Bd||(Bd={}));var cv=function(e,t,n,r,i){var o=function(){return e.concat([Fn("focusManager",sv()),Bn("focusInside","onFocus",Zt((function(e){return z(["onFocus","onEnterOrSpace","onApi"],e)?ge.value(e):ge.error("Invalid value for focusInside")}))),Uc("handler",l),Uc("state",t),Uc("sendFocusIn",i)])},a=function(e,t,n,r,i){var o=n(e,t,r,i);return ov(o,t.event).bind((function(n){return n(e,t,r,i)}))},s=function(e,t){var o=e.focusInside!==Bd.OnFocusMode?w.none():i(e).map((function(n){return _o(Fi(),(function(r,i){n(r,e,t),i.stop()}))})),s=function(n,r){var o=Zg(Vg.concat(Ug))(r.event);e.focusInside===Bd.OnEnterOrSpaceMode&&o&&di(n,r)&&i(e).each((function(i){i(n,e,t),r.stop()}))},l=[_o(Ii(),(function(r,i){a(r,i,n,e,t).fold((function(){s(r,i)}),(function(e){i.stop()}))})),_o(Ai(),(function(n,i){a(n,i,r,e,t).each((function(e){i.stop()}))}))];return go(o.toArray().concat(l))},l={schema:o,processKey:a,toEvents:s};return l},uv=function(e){var t=[An("onEscape"),An("onEnter"),Fn("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Fn("firstTabstop",0),Fn("useTabstopAt",d),An("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return mc(t,e)})).getOr(t);return Sl(n)>0},r=function(e,t){var r=Jf(e.element,t.selector),i=X(r,(function(e){return n(t,e)}));return w.from(i[t.firstTabstop])},i=function(e,t){return t.focusManager.get(e).bind((function(e){return mc(e,t.selector)}))},a=function(e,t){return n(e,t)&&e.useTabstopAt(t)},l=function(e,t,n){r(e,t).each((function(n){t.focusManager.set(e,n)}))},c=function(e,t,n,r,i){return i(t,n,(function(e){return a(r,e)})).fold((function(){return r.cyclic?w.some(!0):w.none()}),(function(t){return r.focusManager.set(e,t),w.some(!0)}))},u=function(e,t,n,r){var o=Jf(e.element,n.selector);return i(e,n).bind((function(t){var i=ee(o,s(ii,t));return i.bind((function(t){return c(e,o,t,n,r)}))}))},f=function(e,t,n){var r=n.cyclic?Xg:Yg;return u(e,t,n,r)},h=function(e,t,n){var r=n.cyclic?Jg:Qg;return u(e,t,n,r)},p=function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))},m=function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))},g=o([iv(ev([tv,Zg(zg)]),f),iv(Zg(zg),h),iv(Zg(Gg),m),iv(ev([rv,Zg(Ug)]),p)]),v=o([]);return cv(t,rs.init,g,v,(function(){return w.some(l)}))},dv=uv(Kn("cyclic",u)),fv=uv(Kn("cyclic",d)),hv=function(e,t,n){return ho(e,n,Ui()),w.some(!0)},pv=function(e,t,n){var r=mg(n)&&Zg(Vg)(t.event);return r?w.none():hv(e,t,n)},mv=function(e,t){return w.some(!0)},gv=[Fn("execute",pv),Fn("useSpace",!1),Fn("useEnter",!0),Fn("useControlEnter",!1),Fn("useDown",!1)],vv=function(e,t,n){return n.execute(e,t,e.element)},yv=function(e,t,n,r){var i=n.useSpace&&!mg(e.element)?Vg:[],o=n.useEnter?Ug:[],a=n.useDown?Kg:[],s=i.concat(o).concat(a);return[iv(Zg(s),vv)].concat(n.useControlEnter?[iv(ev([nv,Zg(Ug)]),vv)]:[])},bv=function(e,t,n,r){return n.useSpace&&!mg(e.element)?[iv(Zg(Vg),mv)]:[]},_v=cv(gv,rs.init,yv,bv,(function(){return w.none()})),wv=function(){var e=Xn(w.none()),t=function(t,n){e.set(w.some({numRows:t,numColumns:n}))},n=function(){return e.get().map((function(e){return e.numRows}))},r=function(){return e.get().map((function(e){return e.numColumns}))};return is({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:n,getNumColumns:r})},xv=function(e){return e.state(e)},Sv=Object.freeze({__proto__:null,flatgrid:wv,init:xv}),Cv=function(e){return function(t,n,r,i){var o=e(t.element);return Tv(o,t,n,r,i)}},Ev=function(e,t){var n=jd(e,t);return Cv(n)},kv=function(e,t){var n=jd(t,e);return Cv(n)},Ov=function(e){return function(t,n,r,i){return Tv(e,t,n,r,i)}},Tv=function(e,t,n,r,i){var o=r.focusManager.get(t).bind((function(n){return e(t.element,n,r,i)}));return o.map((function(e){return r.focusManager.set(t,e),!0}))},Iv=Ov,Av=Ov,Rv=Ov,Pv=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Mv=function(e){return!Pv(e.dom)},Nv=function(e,t){return ee(e,t).map((function(t){return{index:t,candidates:e}}))},Lv=function(e,t,n){var r=function(e){return ii(e,t)},i=Jf(e,n),o=X(i,Mv);return Nv(o,r)},Dv=function(e,t){return ee(e,(function(e){return ii(t,e)}))},jv=function(e,t,n,r){var i=Math.floor(t/n),o=t%n;return r(i,o).bind((function(t){var r=t.row*n+t.column;return r>=0&&r<e.length?w.some(e[r]):w.none()}))},Fv=function(e,t,n,r,i){return jv(e,t,r,(function(t,o){var a=t===n-1,s=a?e.length-t*r:r,l=md(o,i,0,s-1);return w.some({row:t,column:l})}))},Bv=function(e,t,n,r,i){return jv(e,t,r,(function(t,o){var a=md(t,i,0,n-1),s=a===n-1,l=s?e.length-a*r:r,c=gd(o,0,l-1);return w.some({row:a,column:c})}))},qv=function(e,t,n,r){return Fv(e,t,n,r,1)},zv=function(e,t,n,r){return Fv(e,t,n,r,-1)},Uv=function(e,t,n,r){return Bv(e,t,n,r,-1)},Gv=function(e,t,n,r){return Bv(e,t,n,r,1)},Vv=[bn("selector"),Fn("execute",pv),Bc("onEscape"),Fn("captureTab",!1),Vc()],Wv=function(e,t,n){pc(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},Hv=function(e,t){return t.focusManager.get(e).bind((function(e){return mc(e,t.selector)}))},$v=function(e,t,n,r){return Hv(e,n).bind((function(r){return n.execute(e,t,r)}))},Kv=function(e){return function(t,n,r,i){return Lv(t,n,r.selector).bind((function(t){return e(t.candidates,t.index,i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))}))}},Xv=function(e,t,n){return n.captureTab?w.some(!0):w.none()},Yv=function(e,t,n){return n.onEscape(e,t)},Jv=Kv(zv),Qv=Kv(qv),Zv=Kv(Uv),ey=Kv(Gv),ty=o([iv(Zg(Wg),Ev(Jv,Qv)),iv(Zg($g),kv(Jv,Qv)),iv(Zg(Hg),Iv(Zv)),iv(Zg(Kg),Av(ey)),iv(ev([tv,Zg(zg)]),Xv),iv(ev([rv,Zg(zg)]),Xv),iv(Zg(Gg),Yv),iv(Zg(Vg.concat(Ug)),$v)]),ny=o([iv(Zg(Vg),mv)]),ry=cv(Vv,wv,ty,ny,(function(){return w.some(Wv)})),iy=function(e,t,n,r){var i=function(e){return"button"===No(e)&&"disabled"===Ea(e,"disabled")},o=function(e,t,n){var a=md(t,r,0,n.length-1);return a===e?w.none():i(n[a])?o(e,a,n):w.from(n[a])};return Lv(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return o(t,t,n)}))},oy=[bn("selector"),Fn("getInitial",w.none),Fn("execute",pv),Bc("onEscape"),Fn("executeOnMove",!1),Fn("allowVertical",!0)],ay=function(e,t){return t.focusManager.get(e).bind((function(e){return mc(e,t.selector)}))},sy=function(e,t,n){return ay(e,n).bind((function(r){return n.execute(e,t,r)}))},ly=function(e,t,n){t.getInitial(e).orThunk((function(){return pc(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))},cy=function(e,t,n){return iy(e,n.selector,t,-1)},uy=function(e,t,n){return iy(e,n.selector,t,1)},dy=function(e){return function(t,n,r,i){return e(t,n,r,i).bind((function(){return r.executeOnMove?sy(t,n,r):w.some(!0)}))}},fy=function(e,t,n){return n.onEscape(e,t)},hy=function(e,t,n,r){var i=Wg.concat(n.allowVertical?Hg:[]),o=$g.concat(n.allowVertical?Kg:[]);return[iv(Zg(i),dy(Ev(cy,uy))),iv(Zg(o),dy(kv(cy,uy))),iv(Zg(Ug),sy),iv(Zg(Vg),sy),iv(Zg(Gg),fy)]},py=o([iv(Zg(Vg),mv)]),my=cv(oy,rs.init,hy,py,(function(){return w.some(ly)})),gy=function(e,t,n){return w.from(e[t]).bind((function(e){return w.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))},vy=function(e,t,n,r){var i=e[t],o=i.length,a=md(n,r,0,o-1);return gy(e,t,a)},yy=function(e,t,n,r){var i=md(n,r,0,e.length-1),o=e[i].length,a=gd(t,0,o-1);return gy(e,i,a)},by=function(e,t,n,r){var i=e[t],o=i.length,a=gd(n+r,0,o-1);return gy(e,t,a)},_y=function(e,t,n,r){var i=gd(n+r,0,e.length-1),o=e[i].length,a=gd(t,0,o-1);return gy(e,i,a)},wy=function(e,t,n){return vy(e,t,n,1)},xy=function(e,t,n){return vy(e,t,n,-1)},Sy=function(e,t,n){return yy(e,n,t,-1)},Cy=function(e,t,n){return yy(e,n,t,1)},Ey=function(e,t,n){return by(e,t,n,-1)},ky=function(e,t,n){return by(e,t,n,1)},Oy=function(e,t,n){return _y(e,n,t,-1)},Ty=function(e,t,n){return _y(e,n,t,1)},Iy=[On("selectors",[bn("row"),bn("cell")]),Fn("cycles",!0),Fn("previousSelector",w.none),Fn("execute",pv)],Ay=function(e,t,n){var r=t.previousSelector(e).orThunk((function(){var n=t.selectors;return pc(e.element,n.cell)}));r.each((function(n){t.focusManager.set(e,n)}))},Ry=function(e,t,n){return ed(e.element).bind((function(r){return n.execute(e,t,r)}))},Py=function(e,t){return W(e,(function(e){return Jf(e,t.selectors.cell)}))},My=function(e,t){return function(n,r,i){var o=i.cycles?e:t;return mc(r,i.selectors.row).bind((function(e){var t=Jf(e,i.selectors.cell);return Dv(t,r).bind((function(t){var r=Jf(n,i.selectors.row);return Dv(r,e).bind((function(e){var n=Py(r,i);return o(n,e,t).map((function(e){return e.cell}))}))}))}))}},Ny=My(xy,Ey),Ly=My(wy,ky),Dy=My(Sy,Oy),jy=My(Cy,Ty),Fy=o([iv(Zg(Wg),Ev(Ny,Ly)),iv(Zg($g),kv(Ny,Ly)),iv(Zg(Hg),Iv(Dy)),iv(Zg(Kg),Av(jy)),iv(Zg(Vg.concat(Ug)),Ry)]),By=o([iv(Zg(Vg),mv)]),qy=cv(Iy,rs.init,Fy,By,(function(){return w.some(Ay)})),zy=[bn("selector"),Fn("execute",pv),Fn("moveOnTab",!1)],Uy=function(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))},Gy=function(e,t,n){pc(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},Vy=function(e,t,n){return iy(e,n.selector,t,-1)},Wy=function(e,t,n){return iy(e,n.selector,t,1)},Hy=function(e,t,n,r){return n.moveOnTab?Rv(Vy)(e,t,n,r):w.none()},$y=function(e,t,n,r){return n.moveOnTab?Rv(Wy)(e,t,n,r):w.none()},Ky=o([iv(Zg(Hg),Rv(Vy)),iv(Zg(Kg),Rv(Wy)),iv(ev([tv,Zg(zg)]),Hy),iv(ev([rv,Zg(zg)]),$y),iv(Zg(Ug),Uy),iv(Zg(Vg),Uy)]),Xy=o([iv(Zg(Vg),mv)]),Yy=cv(zy,rs.init,Ky,Xy,(function(){return w.some(Gy)})),Jy=[Bc("onSpace"),Bc("onEnter"),Bc("onShiftEnter"),Bc("onLeft"),Bc("onRight"),Bc("onTab"),Bc("onShiftTab"),Bc("onUp"),Bc("onDown"),Bc("onEscape"),Fn("stopSpaceKeyup",!1),An("focusIn")],Qy=function(e,t,n){return[iv(Zg(Vg),n.onSpace),iv(ev([rv,Zg(Ug)]),n.onEnter),iv(ev([tv,Zg(Ug)]),n.onShiftEnter),iv(ev([tv,Zg(zg)]),n.onShiftTab),iv(ev([rv,Zg(zg)]),n.onTab),iv(Zg(Hg),n.onUp),iv(Zg(Kg),n.onDown),iv(Zg(Wg),n.onLeft),iv(Zg($g),n.onRight),iv(Zg(Vg),n.onSpace),iv(Zg(Gg),n.onEscape)]},Zy=function(e,t,n){return n.stopSpaceKeyup?[iv(Zg(Vg),mv)]:[]},eb=cv(Jy,rs.init,Qy,Zy,(function(e){return e.focusIn})),tb=dv.schema(),nb=fv.schema(),rb=my.schema(),ib=ry.schema(),ob=qy.schema(),ab=_v.schema(),sb=Yy.schema(),lb=eb.schema(),cb=Object.freeze({__proto__:null,acyclic:tb,cyclic:nb,flow:rb,flatgrid:ib,matrix:ob,execution:ab,menu:sb,special:lb}),ub=function(e){return ze(e,"setGridSize")},db=Vu({branchKey:"mode",branches:cb,name:"keying",active:{events:function(e,t){var n=e.handler;return n.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(r){r(e,t,n)}))},setGridSize:function(e,t,n,r,i){ub(n)?n.setGridSize(r,i):console.error("Layout does not support setGridSize")}},state:Sv}),fb=function(e,t,n,r){td((function(){var t=W(r,e.getSystem().build);Fh(e,t)}),e.element)},hb=function(e,t,n,r){var i=e.getSystem().build(r);qh(e,i,n)},pb=function(e,t,n,r){hb(e,t,da,r)},mb=function(e,t,n,r){hb(e,t,ua,r)},gb=function(e,t,n,r){var i=vb(e),o=Z(i,(function(e){return ii(r.element,e.element)}));o.each(Uh)},vb=function(e,t){return e.components()},yb=function(e,t,n,r,i){var o=vb(e);return w.from(o[r]).map((function(o){return gb(e,t,n,o),i.each((function(n){hb(e,t,(function(e,t){fa(e,t,r)}),n)})),o}))},bb=function(e,t,n,r,i){var o=vb(e);return ee(o,r).bind((function(r){return yb(e,t,n,r,i)}))},_b=Object.freeze({__proto__:null,append:pb,prepend:mb,remove:gb,replaceAt:yb,replaceBy:bb,set:fb,contents:vb}),wb=Uu({fields:[],name:"replacing",apis:_b}),xb=function(e,t){var n=go(t);return Uu({fields:[bn("enabled")],name:e,active:{events:o(n)}})},Sb=function(e,t){var n=xb(e,t);return{key:e,value:{config:{},me:n,configAsRaw:o({}),initialConfig:{},state:rs}}},Cb=function(e,t){t.ignore||(Yu(e.element),t.onFocus(e))},Eb=function(e,t){t.ignore||Ju(e.element)},kb=function(e){return Qu(e.element)},Ob=Object.freeze({__proto__:null,focus:Cb,blur:Eb,isFocused:kb}),Tb=function(e,t){var n=t.ignore?{}:{attributes:{tabindex:"-1"}};return cs(n)},Ib=function(e){return go([_o(Fi(),(function(t,n){Cb(t,e),n.stop()}))].concat(e.stopMousedown?[_o(xi(),(function(e,t){t.event.prevent()}))]:[]))},Ab=Object.freeze({__proto__:null,exhibit:Tb,events:Ib}),Rb=[Fc("onFocus"),Fn("stopMousedown",!1),Fn("ignore",!1)],Pb=Uu({fields:Rb,name:"focusing",active:Ab,apis:Ob}),Mb=function(e){var t=function(){var t=Xn(e),n=function(){return t.get()},r=function(e){return t.set(e)},i=function(){return t.set(e)},o=function(){return t.get()};return{get:n,set:r,clear:i,readState:o}};return{init:t}},Nb=function(e,t,n){var r=t.aria;r.update(e,r,n.get())},Lb=function(e,t,n){t.toggleClass.each((function(t){n.get()?js(e.element,t):Bs(e.element,t)}))},Db=function(e,t,n){Bb(e,t,n,!n.get())},jb=function(e,t,n){n.set(!0),Lb(e,t,n),Nb(e,t,n)},Fb=function(e,t,n){n.set(!1),Lb(e,t,n),Nb(e,t,n)},Bb=function(e,t,n,r){var i=r?jb:Fb;i(e,t,n)},qb=function(e,t,n){return n.get()},zb=function(e,t,n){Bb(e,t,n,t.selected)},Ub=Object.freeze({__proto__:null,onLoad:zb,toggle:Db,isOn:qb,on:jb,off:Fb,set:Bb}),Gb=function(){return cs({})},Vb=function(e,t){var n=Mu(e,t,Db),r=Nu(e,t,zb);return go(te([e.toggleOnExecute?[n]:[],[r]]))},Wb=Object.freeze({__proto__:null,exhibit:Gb,events:Vb}),Hb=function(e,t,n){Sa(e.element,"aria-pressed",n),t.syncWithExpanded&&Xb(e,t,n)},$b=function(e,t,n){Sa(e.element,"aria-selected",n)},Kb=function(e,t,n){Sa(e.element,"aria-checked",n)},Xb=function(e,t,n){Sa(e.element,"aria-expanded",n)},Yb=[Fn("selected",!1),An("toggleClass"),Fn("toggleOnExecute",!0),Bn("aria",{mode:"none"},ln("mode",{pressed:[Fn("syncWithExpanded",!1),Uc("update",Hb)],checked:[Uc("update",Kb)],expanded:[Uc("update",Xb)],selected:[Uc("update",$b)],none:[Uc("update",t)]}))],Jb=Uu({fields:Yb,name:"toggling",active:Wb,apis:Ub,state:Mb(!1)}),Qb=function(){var e=function(e,t){t.stop(),fo(e)};return[_o(Mi(),e),_o(Vi(),e),Oo(yi()),Oo(xi())]},Zb=function(e){var t=function(e){return Mo((function(t,n){e(t),n.stop()}))};return go(te([e.map(t).toArray(),Qb()]))},e_="alloy.item-hover",t_="alloy.item-focus",n_=function(e){(ed(e.element).isNone()||Pb.isFocused(e))&&(Pb.isFocused(e)||Pb.focus(e),uo(e,e_,{item:e}))},r_=function(e){uo(e,t_,{item:e})},i_=o(e_),o_=o(t_),a_=function(e){return{dom:e.dom,domModification:h(h({},e.domModification),{attributes:h(h(h({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Zp.augment(e.itemBehaviours,[e.toggling.fold(Jb.revoke,(function(e){return Jb.config(h({aria:{mode:"checked"}},e))})),Pb.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){r_(e)}}),db.config({mode:"execution"}),Xp.config({store:{mode:"memory",initialValue:e.data}}),Sb("item-type-events",m(Qb(),[_o(ki(),n_),_o(Gi(),Pb.focus)]))]),components:e.components,eventOrder:e.eventOrder}},s_=[bn("data"),bn("components"),bn("dom"),Fn("hasSubmenu",!1),An("toggling"),Zp.field("itemBehaviours",[Jb,Pb,db,Xp]),Fn("ignoreFocus",!1),Fn("domModification",{}),Uc("builder",a_),Fn("eventOrder",{})],l_=function(e){return{dom:e.dom,components:e.components,events:go([To(Gi())])}},c_=[bn("dom"),bn("components"),Uc("builder",l_)],u_=o("item-widget"),d_=o([Tm({name:"widget",overrides:function(e){return{behaviours:qu([Xp.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:t}})])}}})]),f_=function(e){var t=zm(u_(),e,d_()),n=Um(u_(),e,t.internals()),r=function(t){return Gm(t,e,"widget").map((function(e){return db.focusIn(e),e}))},i=function(t,n){return mg(n.event.target)?w.none():function(){return e.autofocus?(n.setSource(t.element),w.none()):w.none()}()};return{dom:e.dom,components:n,domModification:e.domModification,events:go([Mo((function(e,t){r(e).each((function(e){t.stop()}))})),_o(ki(),n_),_o(Gi(),(function(t,n){e.autofocus?r(t):Pb.focus(t)}))]),behaviours:Zp.augment(e.widgetBehaviours,[Xp.config({store:{mode:"memory",initialValue:e.data}}),Pb.config({ignore:e.ignoreFocus,onFocus:function(e){r_(e)}}),db.config({mode:"special",focusIn:e.autofocus?function(e){r(e)}:Wu(),onLeft:i,onRight:i,onEscape:function(t,n){return Pb.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element),w.none()):w.none():(Pb.focus(t),w.some(!0))}})])}},h_=[bn("uid"),bn("data"),bn("components"),bn("dom"),Fn("autofocus",!1),Fn("ignoreFocus",!1),Zp.field("widgetBehaviours",[Xp,Pb,db]),Fn("domModification",{}),Ym(d_()),Uc("builder",f_)],p_=ln("type",{widget:h_,item:s_,separator:c_}),m_=function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}},g_=function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}},v_=function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}},y_=o([Rm({factory:{sketch:function(e){var t=on("menu.spec item",p_,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return t.hasOwnProperty("uid")?t:h(h({},t),{uid:Wa("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),b_=o([bn("value"),bn("items"),bn("dom"),bn("components"),Fn("eventOrder",{}),Yp("menuBehaviours",[Bg,Xp,bg,db]),Bn("movement",{mode:"menu",moveOnTab:!0},ln("mode",{grid:[Vc(),Uc("config",m_)],matrix:[Uc("config",g_),bn("rowSelector")],menu:[Fn("moveOnTab",!0),Uc("config",v_)]})),Nc(),Fn("fakeFocus",!1),Fn("focusManager",sv()),Fc("onHighlight")]),__=o("alloy.menu-focus"),w_=function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Qp(e.menuBehaviours,[Bg.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),Xp.config({store:{mode:"memory",initialValue:e.value}}),bg.config({find:w.some}),db.config(e.movement.config(e,e.movement))]),events:go([_o(o_(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){Bg.highlight(e,n),t.stop(),uo(e,__(),{menu:e,item:n})}))})),_o(i_(),(function(e,t){var n=t.event.item;Bg.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}},x_=lg({name:"Menu",configFields:b_(),partFields:y_(),factory:w_}),S_=function(e){return Pe(e,(function(e,t){return{k:e,v:t}}))},C_=function(e,t,n,r){return Be(n,r).bind((function(r){return Be(e,r).bind((function(r){var i=C_(e,t,n,r);return w.some([r].concat(i))}))})).getOr([])},E_=function(e,t){var n={};Ae(e,(function(e,t){H(e,(function(e){n[e]=t}))}));var r=t,i=S_(t),o=Re(i,(function(e,t){return[t].concat(C_(n,r,i,t))}));return Re(n,(function(e){return Be(o,e).getOr([e])}))},k_=function(){var e=Xn({}),t=Xn({}),n=Xn({}),r=Xn(w.none()),i=Xn({}),o=function(){e.set({}),t.set({}),n.set({}),r.set(w.none())},a=function(){return r.get().isNone()},s=function(e,n){var r;t.set(h(h({},t.get()),(r={},r[e]={type:"prepared",menu:n},r)))},l=function(o,a,s,l){r.set(w.some(o)),e.set(s),t.set(a),i.set(l);var c=E_(l,s);n.set(c)},c=function(t){return je(e.get(),(function(e,n){return e===t}))},u=function(e,t,n){return g(e).bind((function(r){return c(e).bind((function(e){return t(e).map((function(e){return{triggeredMenu:r,triggeringItem:e,triggeringPath:n}}))}))}))},d=function(e,t){var i=X(y(e).toArray(),(function(e){return g(e).isSome()}));return Be(n.get(),e).bind((function(e){var n=ie(i.concat(e)),o=ne(n,(function(e,i){return u(e,t,n.slice(0,i+1)).fold((function(){return r.get().is(e)?[]:[w.none()]}),(function(e){return[w.some(e)]}))}));return ug(o)}))},f=function(t){return Be(e.get(),t).map((function(e){var r=Be(n.get(),t).getOr([]);return[e].concat(r)}))},p=function(e){return Be(n.get(),e).bind((function(e){return e.length>1?w.some(e.slice(1)):w.none()}))},m=function(e){return Be(n.get(),e)},g=function(e){return v(e).bind(O_)},v=function(e){return Be(t.get(),e)},y=function(t){return Be(e.get(),t)},b=function(e){var t=i.get();return oe(Te(t),e)},_=function(){return r.get().bind(g)},x=function(){return t.get()};return{setMenuBuilt:s,setContents:l,expand:f,refresh:m,collapse:p,lookupMenu:v,lookupItem:y,otherMenus:b,getPrimary:_,getMenus:x,clear:o,isClear:a,getTriggeringPath:d}},O_=function(e){return"prepared"===e.type?w.some(e.menu):w.none()},T_={init:k_,extractPreparedMenu:O_},I_=function(e,n){var r,i=Xn(w.none()),o=function(t,n,r){return Re(r,(function(r,i){var o=function(){return x_.sketch(h(h({},r),{value:i,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:e.fakeFocus?lv():sv()}))};return i===n?{type:"prepared",menu:t.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}}))},a=T_.init(),s=function(t){var n=o(t,e.data.primary,e.data.menus),r=u();return a.setContents(e.data.primary,n,e.data.expansions,r),a.getPrimary()},l=function(e){return Xp.getValue(e).value},c=function(e,t,n){return fe(t,(function(e){if(!e.getSystem().isConnected())return w.none();var t=Bg.getCandidates(e);return Z(t,(function(e){return l(e)===n}))}))},u=function(t){return Re(e.data.menus,(function(e,t){return ne(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}))},f=function(e,t){Bg.highlight(e,t),Bg.getHighlighted(t).orThunk((function(){return Bg.getFirst(t)})).each((function(t){ho(e,t.element,Gi())}))},p=function(e,t){return cg(W(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?w.some(e.menu):w.none()}))})))},m=function(t,n,r){var i=p(n,n.otherMenus(r));H(i,(function(n){Us(n.element,[e.markers.backgroundMenu]),e.stayInDom||wb.remove(t,n)}))},g=function(t){return i.get().getOrThunk((function(){var n={},r=Jf(t.element,"."+e.markers.item),o=X(r,(function(e){return"true"===Ea(e,"aria-haspopup")}));return H(o,(function(e){t.getSystem().getByDom(e).each((function(e){var t=l(e);n[t]=e}))})),i.set(w.some(n)),n}))},v=function(e,t){var n=g(e);Ae(n,(function(e,n){var r=z(t,n);Sa(e.element,"aria-expanded",r)}))},y=function(t,n,r){return w.from(r[0]).bind((function(i){return n.lookupMenu(i).bind((function(i){if("notbuilt"===i.type)return w.none();var o=i.menu,a=p(n,r.slice(1));return H(a,(function(t){js(t.element,e.markers.backgroundMenu)})),Vs(o.element)||wb.append(t,_l(o)),Us(o.element,[e.markers.backgroundMenu]),f(t,o),m(t,n,r),w.some(o)}))}))};(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(r||(r={}));var b=function(e,t,n){if("notbuilt"===n.type){var r=e.getSystem().build(n.nbMenu());return a.setMenuBuilt(t,r),r}return n.menu},_=function(t,n,i){void 0===i&&(i=r.HighlightSubmenu);var o=l(n);return a.expand(o).bind((function(o){return v(t,o),w.from(o[0]).bind((function(s){return a.lookupMenu(s).bind((function(l){var c=b(t,s,l);return Vs(c.element)||wb.append(t,_l(c)),e.onOpenSubmenu(t,n,c,ie(o)),i===r.HighlightSubmenu?(Bg.highlightFirst(c),y(t,a,o)):(Bg.dehighlightAll(c),w.some(n))}))}))}))},x=function(t,n){var r=l(n);return a.collapse(r).bind((function(r){return v(t,r),y(t,a,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))},S=function(e,t){var n=l(t);return a.refresh(n).bind((function(t){return v(e,t),y(e,a,t)}))},C=function(e,t){return mg(t.element)?w.none():_(e,t,r.HighlightSubmenu)},E=function(e,t){return mg(t.element)?w.none():x(e,t)},k=function(t,n){return x(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))},O=function(t){return function(n,r){return mc(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(d)}))}))}},T=go([_o(__(),(function(e,t){var n=t.event.item;a.lookupItem(l(n)).each((function(){var n=t.event.menu;Bg.highlight(e,n);var r=l(t.event.item);a.refresh(r).each((function(t){return m(e,a,t)}))}))})),Mo((function(n,i){var o=i.event.target;n.getSystem().getByDom(o).each((function(i){var o=l(i);0===o.indexOf("collapse-item")&&x(n,i),_(n,i,r.HighlightSubmenu).fold((function(){e.onExecute(n,i)}),t)}))})),Ao((function(t,n){s(t).each((function(n){wb.append(t,_l(n)),e.onOpenMenu(t,n),e.highlightImmediately&&f(t,n)}))}))].concat(e.navigateOnHover?[_o(i_(),(function(t,n){var i=n.event.item;S(t,i),_(t,i,r.HighlightParent),e.onHover(t,i)}))]:[])),I=function(e){return Bg.getHighlighted(e).bind(Bg.getHighlighted)},A=function(e){I(e).each((function(t){x(e,t)}))},R=function(e){a.getPrimary().each((function(t){f(e,t)}))},P=function(e){return w.from(e.components()[0]).filter((function(e){return"menu"===Ea(e.element,"role")}))},M=function(t){var n=a.getPrimary().bind((function(e){return I(t).bind((function(e){var n=l(e),r=Fe(a.getMenus()),i=cg(W(r,T_.extractPreparedMenu));return a.getTriggeringPath(n,(function(e){return c(t,i,e)}))})).map((function(t){return{primary:e,triggeringPath:t}}))}));n.fold((function(){P(t).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,i=n.triggeringPath;e.onRepositionMenu(t,r,i)}))},N={collapseMenu:A,highlightPrimary:R,repositionMenus:M};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Qp(e.tmenuBehaviours,[db.config({mode:"special",onRight:O(C),onLeft:O(E),onEscape:O(k),focusIn:function(e,t){a.getPrimary().each((function(t){ho(e,t.element,Gi())}))}}),Bg.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),bg.config({find:function(e){return Bg.getHighlighted(e)}}),wb.config({})]),eventOrder:e.eventOrder,apis:N,events:T}},A_=o("collapse-item"),R_=function(e,t,n){return{primary:e,menus:t,expansions:n}},P_=function(e,t){return{primary:e,menus:ct(e,t),expansions:{}}},M_=function(e){return{value:ja(A_()),meta:{text:e}}},N_=sg({name:"TieredMenu",configFields:[zc("onExecute"),zc("onEscape"),qc("onOpenMenu"),qc("onOpenSubmenu"),Fc("onRepositionMenu"),Fc("onCollapseMenu"),Fn("highlightImmediately",!0),On("data",[bn("primary"),bn("menus"),bn("expansions")]),Fn("fakeFocus",!1),Fc("onHighlight"),Fc("onHover"),Lc(),bn("dom"),Fn("navigateOnHover",!0),Fn("stayInDom",!1),Yp("tmenuBehaviours",[db,Bg,bg,wb]),Fn("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:I_,extraApis:{tieredData:R_,singleData:P_,collapseItem:M_}}),L_=function(e,t,n,r,i){var o=function(){return e.lazySink(t)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Ou()},onRtl:function(){return Tu()}}}:{},s=function(e){return 2===e.length},l=function(e){return s(e)?a:{}};return N_.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return hp.close(t),e.onEscape.map((function(e){return e(t)})),w.some(!0)},onExecute:function(){return w.some(!0)},onOpenMenu:function(e,t){Mh.positionWithinBounds(o().getOrDie(),n,t,i())},onOpenSubmenu:function(e,t,n,r){var i=o().getOrDie();Mh.position(i,h({anchor:"submenu",item:t},l(r)),n)},onRepositionMenu:function(e,t,r){var a=o().getOrDie();Mh.positionWithinBounds(a,n,t,i()),H(r,(function(e){var t=l(e.triggeringPath);Mh.position(a,h({anchor:"submenu",item:e.triggeringItem},t),e.triggeredMenu)}))}})},D_=function(e,t){var n=function(t,n){var r=e.getRelated(t);return r.exists((function(e){return bc(e,n)}))},r=function(e,t){hp.setContent(e,t)},i=function(e,t,n){o(e,t,n,w.none())},o=function(e,t,n,r){a(e,t,n,(function(){return r.map((function(e){return ic(e)}))}))},a=function(t,n,r,i){var o=e.lazySink(t).getOrDie();hp.openWhileCloaked(t,r,(function(){return Mh.positionWithinBounds(o,n,t,i())})),Xp.setValue(t,w.some({mode:"position",anchor:n,getBounds:i}))},s=function(e,t,n){l(e,t,n,(function(){return w.none()}))},l=function(t,n,r,i){var o=L_(e,t,n,r,i);hp.open(t,o),Xp.setValue(t,w.some({mode:"menu",menu:o}))},c=function(e){hp.isOpen(e)&&(Xp.setValue(e,w.none()),hp.close(e))},u=function(e){return hp.getState(e)},d=function(t){hp.isOpen(t)&&Xp.getValue(t).each((function(n){switch(n.mode){case"menu":hp.getState(t).each((function(e){N_.repositionMenus(e)}));break;case"position":var r=e.lazySink(t).getOrDie();Mh.positionWithinBounds(r,n.anchor,t,n.getBounds());break}}))},f={setContent:r,showAt:i,showWithin:o,showWithinBounds:a,showMenuAt:s,showMenuWithinBounds:l,hide:c,getContent:u,reposition:d,isOpen:hp.isOpen};return{uid:e.uid,dom:e.dom,behaviours:Qp(e.inlineBehaviours,[hp.config({isPartOf:function(e,t,r){return bc(t,r)||n(e,r)},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),Xp.config({store:{mode:"memory",initialValue:w.none()}}),Hu.config({channels:h(h({},yp(h({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),_p(h(h({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:d})))})]),eventOrder:e.eventOrder,apis:f}},j_=sg({name:"InlineView",configFields:[bn("lazySink"),Fc("onShow"),Fc("onHide"),Nn("onEscape"),Yp("inlineBehaviours",[hp,Xp,Hu]),Dn("fireDismissalEventInstead",[Fn("event",to())]),Dn("fireRepositionEventInstead",[Fn("event",no())]),Fn("getRelated",w.none),Fn("isExtraPart",u),Fn("eventOrder",w.none)],factory:D_,apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,i){e.showWithin(t,n,r,i)},showWithinBounds:function(e,t,n,r,i){e.showWithinBounds(t,n,r,i)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,i){e.showMenuWithinBounds(t,n,r,i)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),F_=function(e){return e.x},B_=function(e,t){return e.x+e.width/2-t.width/2},q_=function(e,t){return e.x+e.width-t.width},z_=function(e){return e.y},U_=function(e,t){return e.y+e.height-t.height},G_=function(e,t,n){return Wc(q_(e,t),U_(e,t),n.innerSoutheast(),Zc(),ou(e,{right:0,bottom:3}),"layout-inner-se")},V_=function(e,t,n){return Wc(F_(e),U_(e,t),n.innerSouthwest(),Qc(),ou(e,{left:1,bottom:3}),"layout-inner-sw")},W_=function(e,t,n){return Wc(q_(e,t),z_(e),n.innerNortheast(),Jc(),ou(e,{right:0,top:2}),"layout-inner-ne")},H_=function(e,t,n){return Wc(F_(e),z_(e),n.innerNorthwest(),Yc(),ou(e,{left:1,top:2}),"layout-inner-nw")},$_=function(e,t,n){return Wc(B_(e,t),z_(e),n.innerNorth(),eu(),ou(e,{top:2}),"layout-inner-n")},K_=function(e,t,n){return Wc(B_(e,t),U_(e,t),n.innerSouth(),tu(),ou(e,{bottom:3}),"layout-inner-s")},X_=tinymce.util.Tools.resolve("tinymce.util.Delay"),Y_=function(e){var t=Zb(e.action),n=e.dom.tag,r=function(t){return Be(e.dom,"attributes").bind((function(e){return Be(e,t)}))},i=function(){if("button"===n){var e=r("type").getOr("button"),t=r("role").map((function(e){return{role:e}})).getOr({});return h({type:e},t)}var i=r("role").getOr("button");return{role:i}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:Zp.augment(e.buttonBehaviours,[Pb.config({}),db.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:i()},eventOrder:e.eventOrder}},J_=sg({name:"Button",factory:Y_,configFields:[Fn("uid",void 0),bn("dom"),Fn("components",[]),Zp.field("buttonBehaviours",[Pb,db]),An("action"),An("role"),Fn("eventOrder",{})]}),Q_=function(e){var t=ig(e)&&ze(e,"uid")?e.uid:Wa("memento"),n=function(e){return e.getSystem().getByUid(t).getOrDie()},r=function(e){return e.getSystem().getByUid(t).toOptional()},i=function(){return h(h({},e),{uid:t})};return{get:n,getOpt:r,asSpec:i}},Z_=function(e){return w.from(e()["temporary-placeholder"]).getOr("!not found!")},ew=function(e,t){return w.from(t()[e.toLowerCase()]).getOrThunk((function(){return Z_(t)}))},tw=function(e,t,n){return w.from(t()[e.toLowerCase()]).or(n).getOrThunk((function(){return Z_(t)}))},nw=function(e,t){return fe(e,(function(e){return w.from(t()[e.toLowerCase()])})).getOrThunk((function(){return Z_(t)}))},rw={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},iw=function(e){var t=Q_({dom:{tag:"p",innerHtml:e.translationProvider(e.text)},behaviours:qu([wb.config({})])}),n=function(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}},r=function(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}},i=Q_({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:qu([wb.config({})])}),o=function(e,t){e.getSystem().isConnected()&&i.getOpt(e).each((function(e){wb.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(t)]},r(t)])}))},a=function(e,n){if(e.getSystem().isConnected()){var r=t.get(e);wb.set(r,[gl(n)])}},s={updateProgress:o,updateText:a},l=te([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return w.from(rw[e])})).toArray()]),c=Q_(J_.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:ew("close",e.iconProvider),attributes:{"aria-label":e.translationProvider("Close")}}}],action:function(t){e.onAction(t)}})),u=[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:nw(l,e.iconProvider)}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:qu([wb.config({})])}];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:qu([Pb.config({}),Sb("notification-events",[_o(Oi(),(function(e){c.getOpt(e).each(Pb.focus)}))])]),components:u.concat(e.progress?[i.asSpec()]:[]).concat(e.closeButton?[c.asSpec()]:[]),apis:s}},ow=sg({name:"Notification",factory:iw,configFields:[An("level"),bn("progress"),bn("icon"),bn("onAction"),bn("text"),bn("iconProvider"),bn("translationProvider"),Gn("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function aw(e,t,n){var r=t.backstage,i=function(e){switch(e){case"bc-bc":return K_;case"tc-tc":return $_;case"tc-bc":return bu;case"bc-tc":default:return _u}},o=function(e){H(e,(function(e){return e.moveTo(0,0)}))},a=function(e){e.length>0&&(ce(e).each((function(e){return e.moveRel(null,"banner")})),H(e,(function(t,n){n>0&&t.moveRel(e[n-1].getEl(),"bc-tc")})))},s=function(e){o(e),a(e)},l=function(e,o){var a=!e.closeButton&&e.timeout&&(e.timeout>0||e.timeout<0),s=function(){o(),j_.hide(c)},l=bl(ow.sketch({text:e.text,level:z(["success","error","warning","warn","info"],e.type)?e.type:void 0,progress:!0===e.progressBar,icon:w.from(e.icon),closeButton:!a,onAction:s,iconProvider:r.shared.providers.icons,translationProvider:r.shared.providers.translate})),c=bl(j_.sketch(h({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:t.backstage.shared.getSink,fireDismissalEventInstead:{}},r.shared.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));return n.add(c),e.timeout>0&&X_.setTimeout((function(){s()}),e.timeout),{close:s,moveTo:function(e,t){j_.showAt(c,{anchor:"makeshift",x:e,y:t},_l(l))},moveRel:function(e,n){if("banner"!==n){var r=i(n),o={anchor:"node",root:Ws(),node:w.some(tr.fromDom(e)),layouts:{onRtl:function(){return[r]},onLtr:function(){return[r]}}};j_.showAt(c,o,_l(l))}else j_.showAt(c,t.backstage.shared.anchors.banner(),_l(l))},text:function(e){ow.updateText(l,e)},settings:e,getEl:function(){return l.element.dom},progressBar:{value:function(e){ow.updateProgress(l,e)}}}},c=function(e){e.close()},u=function(e){return e.settings};return{open:l,close:c,reposition:s,getArgs:u}}var sw,lw=function(e,t){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null===n&&(n=setTimeout((function(){e.apply(null,r),n=null}),t))};return{cancel:r,throttle:i}},cw=function(e,t){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((function(){e.apply(null,r),n=null}),t)};return{cancel:r,throttle:i}},uw=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),dw=function(e,t){return e.isBlock(t)||z(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)},fw=function(e,t,n,r,i){var o=uw(e,(function(t){return dw(e,t)}));return w.from(o.backwards(t,n,r,i))},hw="[data-mce-autocompleter]",pw=function(e,t){return mw(tr.fromDom(e.selection.getNode())).getOrThunk((function(){var n=tr.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return da(n,tr.fromDom(t.extractContents())),t.insertNode(n.dom),Wo(n).each((function(e){return e.dom.normalize()})),Xf(n).map((function(t){e.selection.setCursorLocation(t.dom,Wf(t))})),n}))},mw=function(e){return mc(e,hw)},gw=function(e){return e.collapsed&&3===e.startContainer.nodeType},vw=function(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},yw=function(e){return""!==e&&-1!=="  \f\n\r\t\v".indexOf(e)},bw=function(e,t){return e.substring(t.length)},_w=function(e,t,n){var r;for(r=t-1;r>=0;r--){var i=e.charAt(r);if(yw(i))return w.none();if(i===n)break}return w.some(r)},ww=function(e,t,n,r){if(void 0===r&&(r=0),!gw(t))return w.none();var i=function(e,t,r){return _w(r,t,n).getOr(t)},o=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return fw(e,t.startContainer,t.startOffset,i,o).bind((function(e){var i=t.cloneRange();if(i.setStart(e.container,e.offset),i.setEnd(t.endContainer,t.endOffset),i.collapsed)return w.none();var o=vw(i),a=o.lastIndexOf(n);return 0!==a||bw(o,n).length<r?w.none():w.some({text:bw(o,n),range:i,triggerChar:n})}))},xw=function(e,t,n,r){return void 0===r&&(r=0),mw(tr.fromDom(t.startContainer)).fold((function(){return ww(e,t,n,r)}),(function(t){var r=e.createRng();r.selectNode(t.dom);var i=vw(r);return w.some({range:r,text:bw(i,n),triggerChar:n})}))},Sw=function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){uo(e,Ii(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(Bg.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(fo),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(Bg.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&mw(tr.fromDom(t.element)).isNone()&&e.cancelIfNecessary()}))},Cw={setup:Sw},Ew=tinymce.util.Tools.resolve("tinymce.util.Promise"),kw=function(e,t){return{container:e,offset:t}},Ow=function(e){return e.nodeType===Zr},Tw=function(e){return e.nodeType===Qr},Iw=function(e){if(Ow(e))return kw(e,e.data.length);var t=e.childNodes;return t.length>0?Iw(t[t.length-1]):kw(e,t.length)},Aw=function(e,t){var n=e.childNodes;return n.length>0&&t<n.length?Aw(n[t],0):n.length>0&&Tw(e)&&n.length===t?Iw(n[n.length-1]):kw(e,t)},Rw=function(e,t){return fw(e,t.container,t.offset,(function(e,t){return 0===t?-1:t}),e.getRoot()).filter((function(e){var t=e.container.data.charAt(e.offset-1);return!yw(t)})).isSome()},Pw=function(e){return function(t){var n=Aw(t.startContainer,t.startOffset);return!Rw(e,n)}},Mw=function(e,t,n){return fe(n.triggerChars,(function(n){return xw(e,t,n)}))},Nw=function(e,t){var n=t(),r=e.selection.getRng();return Mw(e.dom,r,n).bind((function(n){return Lw(e,t,n)}))},Lw=function(e,t,n,r){void 0===r&&(r={});var i=t(),o=e.selection.getRng(),a=o.startContainer.nodeValue,s=X(i.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return Pw(e.dom)}))(n.range,a,n.text)}));if(0===s.length)return w.none();var l=Ew.all(W(s,(function(e){var t=e.fetch(n.text,e.maxResults,r);return t.then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return w.some({lookupData:l,context:n})},Dw=Ft([xn("type"),Mn("text")]),jw=function(e){return nn("separatormenuitem",Dw,e)},Fw=Ft([Fn("type","autocompleteitem"),Fn("active",!1),Fn("disabled",!1),Fn("meta",{}),xn("value"),Mn("text"),Mn("icon")]),Bw=Ft([xn("type"),xn("ch"),qn("minChars",1),Fn("columns",1),qn("maxResults",10),Nn("matches"),En("fetch"),En("onAction"),Hn("highlightOn",[],hn)]),qw=function(e){return nn("Autocompleter.Separator",Dw,e)},zw=function(e){return nn("Autocompleter.Item",Fw,e)},Uw=function(e){return nn("Autocompleter",Bw,e)},Gw=[Gn("disabled",!1),Mn("tooltip"),Mn("icon"),Mn("text"),Vn("onSetup",(function(){return t}))],Vw=Ft([xn("type"),En("onAction")].concat(Gw)),Ww=function(e){return nn("toolbarbutton",Vw,e)},Hw=[Gn("active",!1)].concat(Gw),$w=Ft(Hw.concat([xn("type"),En("onAction")])),Kw=function(e){return nn("ToggleButton",$w,e)},Xw=[Vn("predicate",u),Un("scope","node",["node","editor"]),Un("position","selection",["node","selection","line"])],Yw=Gw.concat([Fn("type","contextformbutton"),Fn("primary",!1),En("onAction"),Kn("original",a)]),Jw=Hw.concat([Fn("type","contextformbutton"),Fn("primary",!1),En("onAction"),Kn("original",a)]),Qw=Gw.concat([Fn("type","contextformbutton")]),Zw=Hw.concat([Fn("type","contextformtogglebutton")]),ex=ln("type",{contextformbutton:Yw,contextformtogglebutton:Jw}),tx=Ft([Fn("type","contextform"),Vn("initValue",(function(){return""})),Mn("label"),In("commands",ex),Rn("launch",ln("type",{contextformbutton:Qw,contextformtogglebutton:Zw}))].concat(Xw)),nx=function(e){return nn("ContextForm",tx,e)},rx=Ft([Fn("type","contexttoolbar"),xn("items")].concat(Xw)),ix=function(e){return nn("ContextToolbar",rx,e)},ox=function(e){var t={};return H(e,(function(e){t[e]={}})),Te(t)},ax=function(e){var t=e.ui.registry.getAll().popups,n=Re(t,(function(e){return Uw(e).fold((function(e){throw new Error(an(e))}),(function(e){return e}))})),r=ox(De(n,(function(e){return e.ch}))),i=Fe(n),o=function(e){return X(i,(function(t){return t.ch===e}))};return{dataset:n,triggerChars:r,lookupByChar:o}};(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(sw||(sw={}));var sx,lx=sw,cx="tox-menu-nav__js",ux="tox-collection__item",dx="tox-swatch",fx={normal:cx,color:dx},hx="tox-collection__item--enabled",px="tox-collection__group-heading",mx="tox-collection__item-icon",gx="tox-collection__item-label",vx="tox-collection__item-accessory",yx="tox-collection__item-caret",bx="tox-collection__item-checkmark",_x="tox-collection__item--active",wx="tox-collection__item-icon-rtl",xx="tox-collection__item-container",Sx="tox-collection__item-container--column",Cx="tox-collection__item-container--row",Ex="tox-collection__item-container--align-right",kx="tox-collection__item-container--align-left",Ox="tox-collection__item-container--valign-top",Tx="tox-collection__item-container--valign-middle",Ix="tox-collection__item-container--valign-bottom",Ax=function(e){return Be(fx,e).getOr(cx)},Rx=function(e){return"color"===e?"tox-swatches":"tox-menu"},Px=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Rx(e),tieredMenu:"tox-tiered-menu"}},Mx=function(e){var t=Px(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:Ax(e)}},Nx=function(e,t,n){var r=Px(n);return{tag:"div",classes:te([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},Lx=[x_.parts.items({})],Dx=function(e,t,n){var r=Px(n),i={tag:"div",classes:te([[r.tieredMenu]])};return{dom:i,markers:Mx(n)}},jx=function(e,t){return function(n){var r=V(n,t);return W(r,(function(t){return{dom:e,components:t}}))}},Fx=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[x_.parts.items({preprocess:"auto"!==e?jx({tag:"div",classes:["tox-swatches__row"]},e):a})]}]}},Bx=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[x_.parts.items({preprocess:jx({tag:"div",classes:["tox-collection__group"]},e)})]}},qx=function(e,t){var n=[],r=[];return H(e,(function(e,i){t(e,i)?(r.length>0&&n.push(r),r=[],qe(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),W(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},zx=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[x_.parts.items({preprocess:function(n){return"auto"!==e&&e>1?jx({tag:"div",classes:["tox-collection__group"]},e)(n):qx(n,(function(e,n){return"separator"===t[n].type}))}})]}},Ux=function(e,t){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[x_.parts.items({preprocess:function(t){return qx(t,(function(t,n){return"separator"===e[n].type}))}})]}},Gx=function(e){return U(e,(function(e){return"icon"in e&&void 0!==e.icon}))},Vx=function(e){return console.error(an(e)),console.log(e),w.none()},Wx=function(e,t,n,r,i){var o=Ux(n);return{value:e,dom:o.dom,components:o.components,items:n}},Hx=function(e,t,n,r,i){if("color"===i){var o=Fx(r);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){o=zx(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){o=zx(1,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i){o=zx(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){o=Bx(r);return{value:e,dom:o.dom,components:o.components,items:n}}return{value:e,dom:Nx(t,r,i),components:Lx,items:n}},$x=[xn("type"),xn("src"),Mn("alt"),Hn("classes",[],hn)],Kx=Ft($x),Xx=[xn("type"),xn("text"),Mn("name"),Hn("classes",["tox-collection__item-label"],hn)],Yx=Ft(Xx),Jx=Qt((function(){return sn("type",{cardimage:Kx,cardtext:Yx,cardcontainer:Qx})})),Qx=Ft([xn("type"),zn("direction","horizontal"),zn("align","left"),zn("valign","middle"),In("items",Jx)]),Zx=[Gn("disabled",!1),Mn("text"),Mn("shortcut"),Ht("value","value",nt((function(){return ja("menuitem-value")})),un()),Fn("meta",{})],eS=Ft([xn("type"),Mn("label"),In("items",Jx),Vn("onSetup",(function(){return t})),Vn("onAction",t)].concat(Zx)),tS=function(e){return nn("cardmenuitem",eS,e)},nS=Ft([xn("type"),Gn("active",!1),Mn("icon")].concat(Zx)),rS=function(e){return nn("choicemenuitem",nS,e)},iS=["inserttable","colorswatch"],oS=Ft([xn("type"),Sn("fancytype",iS),Vn("onAction",t)]),aS=function(e){return nn("fancymenuitem",oS,e)},sS=Ft([xn("type"),Vn("onSetup",(function(){return t})),Vn("onAction",t),Mn("icon")].concat(Zx)),lS=function(e){return nn("menuitem",sS,e)},cS=Ft([xn("type"),En("getSubmenuItems"),Vn("onSetup",(function(){return t})),Mn("icon")].concat(Zx)),uS=function(e){return nn("nestedmenuitem",cS,e)},dS=Ft([xn("type"),Mn("icon"),Gn("active",!1),Vn("onSetup",(function(){return t})),En("onAction")].concat(Zx)),fS=function(e){return nn("togglemenuitem",dS,e)},hS=function(e,t,n){var r=Jf(e.element,"."+n);if(r.length>0){var i=ee(r,(function(e){var n=e.dom.getBoundingClientRect().top,i=r[0].dom.getBoundingClientRect().top;return Math.abs(n-i)>t})).getOr(r.length);return w.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return w.none()},pS=function(e,t){return qu([Sb(e,t)])},mS=function(e){return pS(ja("unnamed-events"),e)},gS={namedEvents:pS,unnamedEvents:mS},vS=ja("tooltip.exclusive"),yS=ja("tooltip.show"),bS=ja("tooltip.hide"),_S=function(e,t,n){e.getSystem().broadcastOn([vS],{})},wS=function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&wb.set(e,r)}))},xS=Object.freeze({__proto__:null,hideAllExclusive:_S,setComponents:wS}),SS=function(e,t){var n=function(n){t.getTooltip().each((function(r){Uh(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()},r=function(n){if(!t.isShowing()){_S(n);var r=e.lazySink(n).getOrDie(),i=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:go("normal"===e.mode?[_o(ki(),(function(e){co(n,yS)})),_o(Ci(),(function(e){co(n,bS)}))]:[]),behaviours:qu([wb.config({})])});t.setTooltip(i),Bh(r,i),e.onShow(n,i),Mh.position(r,e.anchor(n),i)}};return go(te([[_o(yS,(function(n){t.resetTimer((function(){r(n)}),e.delay)})),_o(bS,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),_o(zi(),(function(e,t){var r=t;r.universal||z(r.channels,vS)&&n(e)})),Ro((function(e){n(e)}))],"normal"===e.mode?[_o(Oi(),(function(e){co(e,yS)})),_o(Bi(),(function(e){co(e,bS)})),_o(ki(),(function(e){co(e,yS)})),_o(Ci(),(function(e){co(e,bS)}))]:[_o(so(),(function(e,t){co(e,yS)})),_o(lo(),(function(e){co(e,bS)}))]]))},CS=Object.freeze({__proto__:null,events:SS}),ES=[bn("lazySink"),bn("tooltipDom"),Fn("exclusive",!0),Fn("tooltipComponents",[]),Fn("delay",300),Un("mode","normal",["normal","follow-highlight"]),Fn("anchor",(function(e){return{anchor:"hotspot",hotspot:e,layouts:{onLtr:o([_u,bu,mu,vu,gu,yu]),onRtl:o([_u,bu,mu,vu,gu,yu])}}})),Fc("onHide"),Fc("onShow")],kS=function(){var e=Xn(w.none()),t=Xn(w.none()),n=function(){return t.get()},r=function(e){t.set(w.some(e))},i=function(){t.set(w.none())},a=function(){e.get().each((function(e){clearTimeout(e)}))},s=function(t,n){a(),e.set(w.some(setTimeout((function(){t()}),n)))},l=function(){return t.get().isSome()},c=o("not-implemented");return is({getTooltip:n,isShowing:l,setTooltip:r,clearTooltip:i,clearTimer:a,resetTimer:s,readState:c})},OS=Object.freeze({__proto__:null,init:kS}),TS=Uu({fields:ES,name:"tooltipping",active:CS,state:OS,apis:xS}),IS=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},AS=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),RS=tinymce.util.Tools.resolve("tinymce.util.I18n"),PS=["input","button","textarea","select"],MS=function(e,t,n){var r=t.disabled()?zS:US;r(e,t)},NS=function(e,t){return!0===t.useNative&&z(PS,No(e.element))},LS=function(e){return Oa(e.element,"disabled")},DS=function(e){Sa(e.element,"disabled","disabled")},jS=function(e){Ta(e.element,"disabled")},FS=function(e){return"true"===Ea(e.element,"aria-disabled")},BS=function(e){Sa(e.element,"aria-disabled","true")},qS=function(e){Sa(e.element,"aria-disabled","false")},zS=function(e,t,n){t.disableClass.each((function(t){js(e.element,t)}));var r=NS(e,t)?DS:BS;r(e),t.onDisabled(e)},US=function(e,t,n){t.disableClass.each((function(t){Bs(e.element,t)}));var r=NS(e,t)?jS:qS;r(e),t.onEnabled(e)},GS=function(e,t){return NS(e,t)?LS(e):FS(e)},VS=function(e,t,n,r){var i=r?zS:US;i(e,t)},WS=Object.freeze({__proto__:null,enable:US,disable:zS,isDisabled:GS,onLoad:MS,set:VS}),HS=function(e,t){return cs({classes:t.disabled()?t.disableClass.toArray():[]})},$S=function(e,t){return go([vo(Ui(),(function(t,n){return GS(t,e)})),Nu(e,t,MS)])},KS=Object.freeze({__proto__:null,exhibit:HS,events:$S}),XS=[Vn("disabled",u),Fn("useNative",!0),An("disableClass"),Fc("onDisabled"),Fc("onEnabled")],YS=Uu({fields:XS,name:"disabling",active:KS,apis:WS}),JS=tinymce.util.Tools.resolve("tinymce.EditorManager"),QS=function(e){var t=e.getParam("skin"),n=e.getParam("skin_url");if(!1!==t){var r=t||"oxide";n=n?e.documentBaseURI.toAbsolute(n):JS.baseURL+"/skins/ui/"+r}return n},ZS=function(e){return e.getParam("readonly",!1,"boolean")},eC=function(e){return!1===e.getParam("skin")},tC=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},nC=function(e){return e.getParam("width",AS.DOM.getStyle(e.getElement(),"width"))},rC=function(e){return w.from(e.getParam("min_width")).filter(N)},iC=function(e){return w.from(e.getParam("min_height")).filter(N)},oC=function(e){return w.from(e.getParam("max_width")).filter(N)},aC=function(e){return w.from(e.getParam("max_height")).filter(N)},sC=function(e){return w.from(e.getParam("style_formats")).filter(T)},lC=function(e){return e.getParam("style_formats_merge",!1,"boolean")},cC=function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},uC=function(e){return e.getParam("removed_menuitems","")},dC=function(e){return!1!==e.getParam("menubar",!0,"boolean")},fC=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=k(t),i=T(t)&&t.length>0;return!pC(e)&&(i||r||n)},hC=function(e){var t=G(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),n=X(t,(function(e){return"string"===typeof e}));return n.length>0?w.some(n):w.none()},pC=function(e){return hC(e).fold((function(){var t=e.getParam("toolbar",[],"string[]");return t.length>0}),d)};(function(e){e["default"]="wrap",e["floating"]="floating",e["sliding"]="sliding",e["scrolling"]="scrolling"})(sx||(sx={}));var mC,gC=function(e){return e.getParam("toolbar_mode","","string")};(function(e){e["auto"]="auto",e["top"]="top",e["bottom"]="bottom"})(mC||(mC={}));var vC,yC=function(e){return e.getParam("toolbar_groups",{},"object")},bC=function(e){return e.getParam("toolbar_location",mC.auto,"string")},_C=function(e){return bC(e)===mC.bottom},wC=function(e){return e.getParam("fixed_toolbar_container","","string")},xC=function(e){return e.getParam("toolbar_persist",!1,"boolean")},SC=function(e){var t=wC(e);return t.length>0&&e.inline?pc(Ws(),t):w.none()},CC=function(e){return e.inline&&SC(e).isSome()},EC=function(e){var t=SC(e);return t.getOrThunk((function(){return na(ta(tr.fromDom(e.getElement())))}))},kC=function(e){return e.inline&&!dC(e)&&!fC(e)&&!pC(e)},OC=function(e){var t=e.getParam("toolbar_sticky",!1,"boolean");return(t||e.inline)&&!CC(e)&&!kC(e)},TC=function(e){return e.getParam("draggable_modal",!1,"boolean")},IC=function(e){var t=e.getParam("menu");return t?Re(t,(function(e){return h(h({},e),{items:e.items})})):{}},AC=function(e){return e.getParam("menubar")},RC=function(e){return e.getParam("toolbar",!0)},PC=function(e){return e.getParam("file_picker_callback")},MC=function(e){return e.getParam("file_picker_types")},NC=function(e){return e.getParam("file_browser_callback_types")},LC=function(e){return!1===e.getParam("typeahead_urls")},DC=function(e){return e.getParam("anchor_top","#top")},jC=function(e){return e.getParam("anchor_bottom","#bottom")},FC=function(e){var t=e.getParam("file_picker_validator_handler",void 0,"function");return void 0===t?e.getParam("filepicker_validator_handler",void 0,"function"):t},BC="silver.readonly",qC=Ft([Cn("readonly")]),zC=function(e,t){var n=e.outerContainer,r=n.element;t&&(e.mothership.broadcastOn([pp()],{target:r}),e.uiMothership.broadcastOn([pp()],{target:r})),e.mothership.broadcastOn([BC],{readonly:t}),e.uiMothership.broadcastOn([BC],{readonly:t})},UC=function(e,t){e.on("init",(function(){e.mode.isReadOnly()&&zC(t,!0)})),e.on("SwitchMode",(function(){return zC(t,e.mode.isReadOnly())})),ZS(e)&&e.setMode("readonly")},GC=function(){var e;return Hu.config({channels:(e={},e[BC]={schema:qC,onReceive:function(e,t){YS.set(e,t.readonly)}},e)})},VC=function(e){return YS.config({disabled:e,disableClass:"tox-collection__item--state-disabled"})},WC=function(e){return YS.config({disabled:e})},HC=function(e){return YS.config({disabled:e,disableClass:"tox-tbtn--disabled"})},$C=function(e){return YS.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},KC={item:VC,button:WC,splitButton:HC,toolbarButton:$C},XC=function(e,t){var n=e.getApi(t);return function(e){e(n)}},YC=function(e,t){return Ao((function(n){var r=XC(e,n);r((function(n){var r=e.onSetup(n);M(r)&&t.set(r)}))}))},JC=function(e,t){return Ro((function(n){return XC(e,n)(t.get())}))},QC=function(e,t){return Mo((function(n,r){XC(e,n)(e.onAction),e.triggersSubmenu||t!==lx.CLOSE_ON_EXECUTE||(n.getSystem().isConnected()&&co(n,Hi()),r.stop())}))},ZC=(vC={},vC[Ui()]=["disabling","alloy.base.behaviour","toggling","item-events"],vC),eE=function(e){return ne(e,(function(e){return e.toArray()}))},tE=function(e,n,r,i){var o=Xn(t);return{type:"item",dom:n.dom,components:eE(n.optComponents),data:e.data,eventOrder:ZC,hasSubmenu:e.triggersSubmenu,itemBehaviours:qu([Sb("item-events",[QC(e,r),YC(e,o),JC(e,o)]),KC.item((function(){return e.disabled||i.isDisabled()})),GC(),wb.config({})].concat(e.itemBehaviours))}},nE=function(e){return{value:e.value,meta:h({text:e.text.getOr("")},e.meta)}},rE=tinymce.util.Tools.resolve("tinymce.Env"),iE=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=rE.mac?t:n,i=e.split("+"),o=W(i,(function(e){var t=e.toLowerCase().trim();return qe(r,t)?r[t]:e}));return rE.mac?o.join(""):o.join("+")},oE=function(e){return{dom:{tag:"div",classes:[mx],innerHtml:e}}},aE=function(e){return{dom:{tag:"div",classes:[gx]},components:[gl(RS.translate(e))]}},sE=function(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}},lE=function(e,t){return{dom:{tag:"div",classes:[gx]},components:[{dom:{tag:e.tag,styles:e.styles},components:[gl(RS.translate(t))]}]}},cE=function(e){return{dom:{tag:"div",classes:[vx],innerHtml:iE(e)}}},uE=function(e){return{dom:{tag:"div",classes:[bx],innerHtml:ew("checkmark",e)}}},dE=function(e){return{dom:{tag:"div",classes:[yx],innerHtml:ew("chevron-right",e)}}},fE=function(e){return{dom:{tag:"div",classes:[yx],innerHtml:ew("chevron-down",e)}}},hE=function(e,t){var n="vertical"===e.direction?Sx:Cx,r="left"===e.align?kx:Ex,i=function(){switch(e.valign){case"top":return Ox;case"middle":return Tx;case"bottom":return Ix}};return{dom:{tag:"div",classes:[xx,n,r,i()]},components:t}},pE=function(e,t,n){return{dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}},mE=function(e,t,n,r){var i="custom",o="remove",a=function(){var a=dx,s=n.getOr(""),l=e.map((function(e){return{title:r.translate(e)}})).getOr({}),c={tag:"div",attributes:l,classes:[a]};return h(h({},c),t===i?{tag:"button",classes:m(c.classes,["tox-swatches__picker-btn"]),innerHtml:s}:t===o?{classes:m(c.classes,["tox-swatch--remove"]),innerHtml:s}:{attributes:h(h({},c.attributes),{"data-mce-color":t}),styles:{"background-color":t}})};return{dom:a(),optComponents:[]}},gE=function(e,t){var n=t.map((function(e){return{attributes:{title:RS.translate(e)}}})).getOr({});return h({tag:"div",classes:[cx,ux].concat(e?[wx]:[])},n)},vE=function(e,t,n,r,i){var o=n?t.or(w.some("")).map(oE):w.none(),a=e.checkMark,s=e.htmlContent.fold((function(){return e.textContent.map(r)}),(function(e){return w.some(sE(e,[gx]))})),l={dom:gE(i,e.ariaLabel),optComponents:[o,s,e.shortcutContent.map(cE),a,e.caret]};return l},yE=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],bE=["list-bull-circle","list-bull-default","list-bull-square"],_E=function(e,t,n,r){void 0===r&&(r=w.none());var i=function(e){return e.map((function(e){return RS.isRtl()&&z(yE,e)?e+"-rtl":e}))},o=RS.isRtl()&&e.iconContent.exists((function(e){return z(bE,e)})),a=i(e.iconContent).map((function(e){return tw(e,t.icons,r)})),l=w.from(e.meta).fold((function(){return aE}),(function(e){return qe(e,"style")?s(lE,e.style):aE}));return"color"===e.presets?mE(e.ariaLabel,e.value,a,t):vE(e,a,n,l,o)},wE=function(e,t){return Be(e,"tooltipWorker").map((function(e){return[TS.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{anchor:"submenu",item:e,overrides:{maxHeightFunction:Id}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){TS.setComponents(t,[vl({element:tr.fromDom(e)})])}))}})]})).getOr([])},xE=function(e){return AS.DOM.encode(e)},SE=function(e,t){var n=RS.translate(e),r=xE(n);if(t.length>0){var i=new RegExp(IS(t),"gi");return r.replace(i,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r},CE=function(e,n,r,i,a,s,l,c){void 0===c&&(c=!0);var u=_E({presets:i,textContent:w.none(),htmlContent:r?e.text.map((function(e){return SE(e,n)})):w.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:w.none(),checkMark:w.none(),caret:w.none(),value:e.value},l.providers,c,e.icon);return tE({data:nE(e),disabled:e.disabled,getApi:o({}),onAction:function(t){return a(e.value,e.meta)},onSetup:o(t),triggersSubmenu:!1,itemBehaviours:wE(e.meta,l)},u,s,l.providers)},EE=function(e,t){return W(e,(function(e){switch(e.type){case"cardcontainer":return hE(e,EE(e.items,t));case"cardimage":return pE(e.src,e.classes,e.alt);case"cardtext":var n=e.name.exists((function(e){return z(t.cardText.highlightOn,e)})),r=n?w.from(t.cardText.matchText).getOr(""):"";return sE(SE(e.text,r),e.classes)}}))},kE=function(e,t,n,r){var i=function(e){return{isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){YS.set(e,t),H(Jf(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(YS)&&YS.set(e,t)}))}))}}},o={dom:gE(!1,e.label),optComponents:[w.some({dom:{tag:"div",classes:[xx,Cx]},components:EE(e.items,r)})]};return tE({data:nE(h({text:w.none()},e)),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:w.from(r.itemBehaviours).getOr([])},o,t,n.providers)},OE=function(e,n,r,i,o,a,s,l){void 0===l&&(l=!0);var c=function(e){return{setActive:function(t){Jb.set(e,t)},isActive:function(){return Jb.isOn(e)},isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)}}},u=_E({presets:r,textContent:n?e.text:w.none(),htmlContent:w.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:n?e.shortcut:w.none(),checkMark:n?w.some(uE(s.icons)):w.none(),caret:w.none(),value:e.value},s,l);return Ke(tE({data:nE(e),disabled:e.disabled,getApi:c,onAction:function(t){return i(e.value)},onSetup:function(e){return e.setActive(o),t},triggersSubmenu:!1,itemBehaviours:[]},u,a,s),{toggling:{toggleClass:hx,toggleOnExecute:!1,selected:e.active}})},TE=Dm(u_(),d_()),IE=function(e){return{value:e}},AE=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,RE=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,PE=function(e){return AE.test(e)||RE.test(e)},ME=function(e){var t=e.value.replace(AE,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:t}},NE=function(e){var t=ME(e),n=RE.exec(t.value);return null===n?["FFFFFF","FF","FF","FF"]:n},LE=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t},DE=function(e){var t=LE(e.red)+LE(e.green)+LE(e.blue);return IE(t)},jE=Math.min,FE=Math.max,BE=Math.round,qE=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,zE=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,UE=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},GE=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},VE=function(e){var t,n,r,i=(e.hue||0)%360,o=e.saturation/100,a=e.value/100;if(o=FE(0,jE(o,1)),a=FE(0,jE(a,1)),0===o)return t=n=r=BE(255*a),UE(t,n,r,1);var s=i/60,l=a*o,c=l*(1-Math.abs(s%2-1)),u=a-l;switch(Math.floor(s)){case 0:t=l,n=c,r=0;break;case 1:t=c,n=l,r=0;break;case 2:t=0,n=l,r=c;break;case 3:t=0,n=c,r=l;break;case 4:t=c,n=0,r=l;break;case 5:t=l,n=0,r=c;break;default:t=n=r=0}return t=BE(255*(t+u)),n=BE(255*(n+u)),r=BE(255*(r+u)),UE(t,n,r,1)},WE=function(e){var t=NE(e),n=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16);return UE(n,r,i,1)},HE=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return UE(i,o,a,s)},$E=function(e){if("transparent"===e)return w.some(UE(0,0,0,0));var t=qE.exec(e);if(null!==t)return w.some(HE(t[1],t[2],t[3],"1"));var n=zE.exec(e);return null!==n?w.some(HE(n[1],n[2],n[3],n[4])):w.none()},KE=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"},XE=UE(255,0,0,1),YE=function(e){return e.fire("SkinLoaded")},JE=function(e,t){return e.fire("SkinLoadError",t)},QE=function(e){return e.fire("ResizeEditor")},ZE=function(e,t){return e.fire("ResizeContent",t)},ek=function(e,t){return e.fire("ScrollContent",t)},tk=function(e,t){return e.fire("TextColorChange",t)},nk=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),rk="tinymce-custom-colors";function ik(e){void 0===e&&(e=10);var t=nk.getItem(rk),n=k(t)?JSON.parse(t):[],r=function(t){var n=e-t.length;return n<0?t.slice(0,e):t},i=r(n),o=function(t){q(i,t).each(a),i.unshift(t),i.length>e&&i.pop(),nk.setItem(rk,JSON.stringify(i))},a=function(e){i.splice(e,1)},s=function(){return i.slice(0)};return{add:o,state:s}}var ok,ak="choiceitem",sk=[{type:ak,text:"Light Green",value:"#BFEDD2"},{type:ak,text:"Light Yellow",value:"#FBEEB8"},{type:ak,text:"Light Red",value:"#F8CAC6"},{type:ak,text:"Light Purple",value:"#ECCAFA"},{type:ak,text:"Light Blue",value:"#C2E0F4"},{type:ak,text:"Green",value:"#2DC26B"},{type:ak,text:"Yellow",value:"#F1C40F"},{type:ak,text:"Red",value:"#E03E2D"},{type:ak,text:"Purple",value:"#B96AD9"},{type:ak,text:"Blue",value:"#3598DB"},{type:ak,text:"Dark Turquoise",value:"#169179"},{type:ak,text:"Orange",value:"#E67E23"},{type:ak,text:"Dark Red",value:"#BA372A"},{type:ak,text:"Dark Purple",value:"#843FA1"},{type:ak,text:"Dark Blue",value:"#236FA1"},{type:ak,text:"Light Gray",value:"#ECF0F1"},{type:ak,text:"Medium Gray",value:"#CED4D9"},{type:ak,text:"Gray",value:"#95A5A6"},{type:ak,text:"Dark Gray",value:"#7E8C8D"},{type:ak,text:"Navy Blue",value:"#34495E"},{type:ak,text:"Black",value:"#000000"},{type:ak,text:"White",value:"#ffffff"}],lk=ik(10),ck=function(e){var t=[],n=document.createElement("canvas");n.height=1,n.width=1;for(var r=n.getContext("2d"),i=function(e,t){var n=255,r=t/255,i=Math.round(e*r+n*(1-r));return("0"+i.toString(16)).slice(-2).toUpperCase()},o=function(e){if(/^[0-9A-Fa-f]{6}$/.test(e))return"#"+e.toUpperCase();r.clearRect(0,0,n.width,n.height),r.fillStyle="#FFFFFF",r.fillStyle=e,r.fillRect(0,0,1,1);var t=r.getImageData(0,0,1,1).data,o=t[0],a=t[1],s=t[2],l=t[3];return"#"+i(o,l)+i(a,l)+i(s,l)},a=0;a<e.length;a+=2)t.push({text:e[a+1],value:o(e[a]),type:"choiceitem"});return t},uk=function(e,t){return e.getParam("color_cols",t,"number")},dk=function(e){return!1!==e.getParam("custom_colors")},fk=function(e){return e.getParam("color_map")},hk=function(e){var t=fk(e);return void 0!==t?ck(t):sk},pk=function(){return W(lk.state(),(function(e){return{type:ak,text:e,value:e}}))},mk=function(e){lk.add(e)},gk=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),(function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)})),n},vk=function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))},yk=function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))},bk=function(e){e.addCommand("mceApplyTextcolor",(function(t,n){vk(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){yk(e,t)}))},_k=function(e){return Math.max(5,Math.ceil(Math.sqrt(e)))},wk=function(e){var t=hk(e),n=_k(t.length);return uk(e,n)},xk=function(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[n,r]:[n]},Sk=function(e,t,n,r){if("custom"===n){var i=Ik(e);i((function(n){n.each((function(n){mk(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),"#000000")}else"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))},Ck=function(e,t){return e.concat(pk().concat(xk(t)))},Ek=function(e,t){return function(n){n(Ck(e,t))}},kk=function(e,t,n){var r=function(t,n){e.setIconFill(t,n),e.setIconStroke(t,n)},i="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";r(i,n)},Ok=function(e,n,r,i,o){e.ui.registry.addSplitButton(n,{tooltip:i,presets:"color",icon:"forecolor"===n?"text-color":"highlight-bg-color",select:function(t){var n=w.from(gk(e,r));return n.bind((function(e){return $E(e).map((function(e){var n=DE(e).value;return pr(t.toLowerCase(),n)}))})).getOr(!1)},columns:wk(e),fetch:Ek(hk(e),dk(e)),onAction:function(n){null!==o.get()&&Sk(e,r,o.get(),t)},onItemAction:function(t,i){Sk(e,r,i,(function(t){o.set(t),tk(e,{name:n,color:t})}))},onSetup:function(t){null!==o.get()&&kk(t,n,o.get());var r=function(e){e.name===n&&kk(t,e.name,e.color)};return e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})},Tk=function(e,n,r,i){e.ui.registry.addNestedMenuItem(n,{text:i,icon:"forecolor"===n?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(n){Sk(e,r,n.value,t)}}]}})},Ik=function(e){return function(n,r){var i=function(e){return function(t){var n=t.getData();e(w.from(n.colorpicker)),t.close()}},o=function(e,t){"hex-valid"===t.name&&(t.value?e.enable("ok"):e.disable("ok"))},a={colorpicker:r},s=i(n);e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onAction:o,onSubmit:s,onClose:t,onCancel:function(){n(w.none())}})}},Ak=function(e){bk(e);var t=Xn(null),n=Xn(null);Ok(e,"forecolor","forecolor","Text color",t),Ok(e,"backcolor","hilitecolor","Background color",n),Tk(e,"forecolor","forecolor","Text color"),Tk(e,"backcolor","hilitecolor","Background color")},Rk=function(e,t,n,r,i,o,a,s){var l=Gx(t),c="color"!==i?"normal":"color",u=Pk(t,n,r,c,o,a,s);return Hx(e,l,u,r,i)},Pk=function(e,t,n,r,i,o,a){return cg(W(e,(function(s){return"choiceitem"===s.type?rS(s).fold(Vx,(function(l){return w.some(OE(l,1===n,r,t,o(s.value),i,a,Gx(e)))})):w.none()})))},Mk=function(e,t){var n=Mx(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},Nk=function(e,t){return 1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+dx:"."+ux}}},Lk=function(e,t){var n=Ck(t.colorinput.getColors(),t.colorinput.hasCustomColors()),r=t.colorinput.getColorCols(),i="color",o=Rk(ja("menu-value"),n,(function(t){e.onAction({value:t})}),r,i,lx.CLOSE_ON_EXECUTE,u,t.shared.providers),a=h(h({},o),{markers:Mx(i),movement:Mk(r,i)});return{type:"widget",data:{value:ja("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[TE.widget(x_.sketch(a))]}},Dk=ja("cell-over"),jk=ja("cell-execute"),Fk=function(e,t,n){var r,i=function(n){return uo(n,Dk,{row:e,col:t})},o=function(n){return uo(n,jk,{row:e,col:t})},a=function(e,t){t.stop(),o(e)};return bl({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:qu([Sb("insert-table-picker-cell",[_o(ki(),Pb.focus),_o(Ui(),o),_o(Mi(),a),_o(Vi(),a)]),Jb.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Pb.config({onFocus:i})])})},Bk=function(e,t,n){for(var r=[],i=0;i<t;i++){for(var o=[],a=0;a<n;a++)o.push(Fk(i,a,e));r.push(o)}return r},qk=function(e,t,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)Jb.set(e[o][a],o<=t&&a<=n)},zk=function(e){return ne(e,(function(e){return W(e,_l)}))},Uk=function(e,t){return gl(t+1+"x"+(e+1))},Gk=function(e){var t=10,n=10,r=ja("size-label"),i=Bk(r,t,n),o=Q_({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[gl("0x0")],behaviours:qu([wb.config({})])});return{type:"widget",data:{value:ja("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[TE.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:zk(i).concat(o.asSpec()),behaviours:qu([Sb("insert-table-picker",[ko(Dk,(function(e,r,a){var s=a.event.row,l=a.event.col;qk(i,s,l,t,n),wb.set(o.get(e),[Uk(s,l)])})),ko(jk,(function(t,n,r){e.onAction({numRows:r.event.row+1,numColumns:r.event.col+1}),co(t,Hi())}))]),db.config({initSize:{numRows:t,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},Vk={inserttable:Gk,colorswatch:Lk},Wk=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?w.some(e[t]):w.none()},Hk=function(e,t){return Wk(Vk,e.fancytype).map((function(n){return n(e,t)}))},$k=function(e,n,r,i,o){void 0===i&&(i=!0),void 0===o&&(o=!1);var a=o?fE(r.icons):dE(r.icons),s=function(e){return{isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)}}},l=_E({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:w.none(),ariaLabel:e.text,caret:w.some(a),checkMark:w.none(),shortcutContent:e.shortcut},r,i);return tE({data:nE(e),getApi:s,disabled:e.disabled,onAction:t,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},l,n,r)},Kk=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)}}},o=_E({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:w.none(),ariaLabel:e.text,caret:w.none(),checkMark:w.none(),shortcutContent:e.shortcut},n,r);return tE({data:nE(e),getApi:i,disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n)},Xk=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:h({tag:"div",classes:[ux,px]},t),components:[]}},Yk=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{setActive:function(t){Jb.set(e,t)},isActive:function(){return Jb.isOn(e)},isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)}}},o=_E({iconContent:e.icon,textContent:e.text,htmlContent:w.none(),ariaLabel:e.text,checkMark:w.some(uE(n.icons)),caret:w.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,r);return Ke(tE({data:nE(e),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n),{toggling:{toggleClass:hx,toggleOnExecute:!1,selected:e.active}})},Jk=CE,Qk=Xk,Zk=Kk,eO=$k,tO=Yk,nO=Hk,rO=kE;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(ok||(ok={}));var iO=function(e,t,n,r,i){var o=n.shared.providers,a=function(e){return i?h(h({},e),{shortcut:w.none(),icon:e.text.isSome()?w.none():e.icon}):e};switch(e.type){case"menuitem":return lS(e).fold(Vx,(function(e){return w.some(Zk(a(e),t,o,r))}));case"nestedmenuitem":return uS(e).fold(Vx,(function(e){return w.some(eO(a(e),t,o,r,i))}));case"togglemenuitem":return fS(e).fold(Vx,(function(e){return w.some(tO(a(e),t,o,r))}));case"separator":return jw(e).fold(Vx,(function(e){return w.some(Qk(e))}));case"fancymenuitem":return aS(e).fold(Vx,(function(e){return nO(a(e),n)}));default:return console.error("Unknown item in general menu",e),w.none()}},oO=function(e,t,n,r,i,o,a){var s=1===r,l=!s||Gx(e);return cg(W(e,(function(e){switch(e.type){case"separator":return qw(e).fold(Vx,(function(e){return w.some(Qk(e))}));case"cardmenuitem":return tS(e).fold(Vx,(function(e){return w.some(rO(h(h({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),i,o,{itemBehaviours:wE(e.meta,o),cardText:{matchText:t,highlightOn:a}}))}));case"autocompleteitem":default:return zw(e).fold(Vx,(function(e){return w.some(Jk(e,t,s,"normal",n,i,o,l))}))}})))},aO=function(e,t,n,r,i){var o=Gx(t),a=cg(W(t,(function(e){var t=function(e){return i?!e.hasOwnProperty("text"):o},a=function(e){return iO(e,n,r,t(e),i)};return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?a(h(h({},e),{disabled:!0})):a(e)}))),s=i?Wx:Hx;return s(e,o,a,1,"normal")},sO=function(e){return N_.singleData(e.value,e)},lO=function(e,t,n,r){var i=n===ok.ContentFocus?lv():sv(),o=Mk(t,r),a=Mx(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===ok.ContentFocus,focusManager:i,menuBehaviours:gS.unnamedEvents("auto"!==t?[]:[Ao((function(e,t){hS(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;db.setGridSize(e,r,n)}))}))])}},cO=function(e,t){var n=Xn(w.none()),r=Xn(!1),i=bl(j_.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:qu([Sb("dismissAutocompleter",[_o(to(),(function(){return l()}))])]),lazySink:t.getSink})),o=function(){return j_.isOpen(i)},a=function(){return n.get().isSome()},s=function(){a()&&j_.hide(i)},l=function(){if(a()){var t=n.get().map((function(e){return e.element}));mw(t.getOr(tr.fromDom(e.selection.getNode()))).each(va),s(),n.set(w.none()),r.set(!1)}},c=Ye((function(){return ax(e)})),u=function(n,i){var o=fe(i,(function(e){return w.from(e.columns)})).getOr(1);return ne(i,(function(i){var a=i.items;return oO(a,i.matchText,(function(t,o){var a=e.selection.getRng();xw(e.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(e){var n=e.range,a={hide:function(){l()},reload:function(e){s(),p(e)}};r.set(!0),i.onAction(a,n,t,o),r.set(!1)}))}),o,lx.BUBBLE_TO_SANDBOX,t,i.highlightOn)}))},d=function(t){if(!a()){var i=pw(e,t.range);n.set(w.some({triggerChar:t.triggerChar,element:i,matchLength:t.text.length})),r.set(!1)}},f=function(t,n,r,o){t.matchLength=n.text.length;var a=fe(r,(function(e){return w.from(e.columns)})).getOr(1);j_.showAt(i,{anchor:"node",root:tr.fromDom(e.getBody()),node:w.from(t.element)},x_.sketch(lO(Hx("autocompleter-value",!0,o,a,"normal"),a,ok.ContentFocus,"normal"))),j_.getContent(i).each(Bg.highlightFirst)},h=function(t){return n.get().map((function(n){return xw(e.dom,e.selection.getRng(),n.triggerChar).bind((function(n){return Lw(e,c,n,t)}))})).getOrThunk((function(){return Nw(e,c)}))},p=function(e){h(e).fold(l,(function(e){d(e.context),e.lookupData.then((function(t){n.get().map((function(n){var r=e.context;if(n.triggerChar===r.triggerChar){var i=u(r.triggerChar,t);i.length>0?f(n,r,t,i):r.text.length-n.matchLength>=10?l():s()}}))}))}))},m=cw((function(e){27!==e.which&&p()}),50),g={onKeypress:m,cancelIfNecessary:l,isMenuOpen:o,isActive:a,isProcessingAction:r.get,getView:function(){return j_.getContent(i)}};!1===e.hasPlugin("rtc")&&Cw.setup(g,e)},uO={register:cO},dO=d,fO=function(e,t,n){return zl(e,t,dO,n)},hO=function(e,t,n){return Ul(e,t,dO,n)},pO=Fl,mO=function(e,t,n){return mc(e,t,n).isSome()},gO=function(e,t){var n=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n=setTimeout((function(){e.apply(null,r),n=null}),t)},i=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:i,schedule:r}},vO=5,yO=400,bO=function(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?w.none():w.some(t.touches[0])},_O=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>vO||r>vO},wO=function(e){var t=Xn(w.none()),n=Xn(!1),r=gO((function(t){e.triggerEvent(Wi(),t),n.set(!0)}),yO),i=function(e){return bO(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.schedule(e),n.set(!1),t.set(w.some(o))})),w.none()},o=function(e){return r.cancel(),bO(e).each((function(e){t.get().each((function(n){_O(e,n)&&t.set(w.none())}))})),w.none()},a=function(i){r.cancel();var o=function(e){return ii(e.target,i.target)};return t.get().filter(o).map((function(t){return n.get()?(i.prevent(),!1):e.triggerEvent(Vi(),i)}))},s=ut([{key:yi(),value:i},{key:bi(),value:o},{key:_i(),value:a}]),l=function(e,t){return Be(s,t).bind((function(t){return t(e)}))};return{fireIfReady:l}},xO=function(e){var t=e.raw;return t.which===qg[0]&&!z(["input","textarea"],No(e.target))&&!mO(e.target,'[contenteditable="true"]')},SO=function(){return $r().browser.isFirefox()},CO=jt([En("triggerEvent"),Fn("stopBackspace",!0)]),EO=function(e,t){return SO()?hO(e,"focus",t):fO(e,"focusin",t)},kO=function(e,t){return SO()?hO(e,"blur",t):fO(e,"focusout",t)},OO=function(e,t){var n=on("Getting GUI events settings",CO,t),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=wO(n),o=W(r.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return fO(e,t,(function(e){i.fireIfReady(e,t).each((function(t){t&&e.kill()}));var r=n.triggerEvent(t,e);r&&e.kill()}))})),a=Xn(w.none()),s=fO(e,"paste",(function(e){i.fireIfReady(e,"paste").each((function(t){t&&e.kill()}));var t=n.triggerEvent("paste",e);t&&e.kill(),a.set(w.some(setTimeout((function(){n.triggerEvent(qi(),e)}),0)))})),l=fO(e,"keydown",(function(e){var t=n.triggerEvent("keydown",e);t?e.kill():!0===n.stopBackspace&&xO(e)&&e.prevent()})),c=EO(e,(function(e){var t=n.triggerEvent("focusin",e);t&&e.kill()})),u=Xn(w.none()),d=kO(e,(function(e){var t=n.triggerEvent("focusout",e);t&&e.kill(),u.set(w.some(setTimeout((function(){n.triggerEvent(Bi(),e)}),0)))})),f=function(){H(o,(function(e){e.unbind()})),l.unbind(),c.unbind(),d.unbind(),s.unbind(),a.get().each(clearTimeout),u.get().each(clearTimeout)};return{unbind:f}},TO=function(e,t){var n=Be(e,"target").getOr(t);return Xn(n)},IO=function(e,t){var n=Xn(!1),r=Xn(!1),i=function(){n.set(!0)},o=function(){r.set(!0)};return{stop:i,cut:o,isStopped:n.get,isCut:r.get,event:e,setSource:t.set,getSource:t.get}},AO=function(e){var n=Xn(!1),r=function(){n.set(!0)};return{stop:r,cut:t,isStopped:n.get,isCut:u,event:e,setSource:c("Cannot set source of a broadcasted event"),getSource:c("Cannot get source of a broadcasted event")}},RO=Ge.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),PO=function(e,t,n,r,i,o){var a=e(t,r),s=IO(n,i);return a.fold((function(){return o.logEventNoHandlers(t,r),RO.complete()}),(function(e){var n=e.descHandler,r=gs(n);return r(s),s.isStopped()?(o.logEventStopped(t,e.element,n.purpose),RO.stopped()):s.isCut()?(o.logEventCut(t,e.element,n.purpose),RO.complete()):Wo(e.element).fold((function(){return o.logNoParent(t,e.element,n.purpose),RO.complete()}),(function(r){return o.logEventResponse(t,e.element,n.purpose),RO.resume(r)}))}))},MO=function(e,t,n,r,i,o){return PO(e,t,n,r,i,o).fold(d,(function(r){return MO(e,t,n,r,i,o)}),u)},NO=function(e,t,n,r,i){var o=TO(n,r);return PO(e,t,n,r,o,i)},LO=function(e,t,n){var r=AO(t);return H(e,(function(e){var t=e.descHandler,n=gs(t);n(r)})),r.isStopped()},DO=function(e,t,n,r){return jO(e,t,n,n.target,r)},jO=function(e,t,n,r,i){var o=TO(n,r);return MO(e,t,n,r,o,i)},FO=function(e,t){return{element:e,descHandler:t}},BO=function(e,t){return{id:e,descHandler:t}},qO=function(){var e={},t=function(t,n,r){Ae(r,(function(r,i){var o=void 0!==e[i]?e[i]:{};o[n]=ms(r,t),e[i]=o}))},n=function(e,t){return Va(t).fold((function(){return w.none()}),(function(n){return e.bind((function(e){return Be(e,n)})).map((function(e){return FO(t,e)}))}))},r=function(t){return Be(e,t).map((function(e){return De(e,(function(e,t){return BO(t,e)}))})).getOr([])},i=function(t,r,i){var o=Be(e,r);return ui(i,(function(e){return n(o,e)}),t)},o=function(t){Ae(e,(function(e,n){e.hasOwnProperty(t)&&delete e[t]}))};return{registerId:t,unregisterId:o,filterByType:r,find:i}},zO=function(){var e=qO(),t={},n=function(e){var t=e.element;return Va(t).fold((function(){return Ua("uid-",e.element)}),(function(e){return e}))},r=function(e,n){var r=t[n];if(r!==e)throw new Error('The tagId "'+n+'" is already used by: '+Pa(r.element)+"\nCannot use it for: "+Pa(e.element)+"\nThe conflicting element is"+(Vs(r.element)?" ":" not ")+"already in the DOM");o(e)},i=function(i){var o=n(i);ze(t,o)&&r(i,o);var a=[i];e.registerId(a,o,i.events),t[o]=i},o=function(n){Va(n.element).each((function(n){delete t[n],e.unregisterId(n)}))},a=function(t){return e.filterByType(t)},s=function(t,n,r){return e.find(t,n,r)},l=function(e){return Be(t,e)};return{find:s,filter:a,register:i,unregister:o,getById:l}},UO=function(e){var t=e.dom,n=t.attributes,r=p(t,["attributes"]);return{uid:e.uid,dom:h({tag:"div",attributes:h({role:"presentation"},n)},r),components:e.components,behaviours:Jp(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},GO=sg({name:"Container",factory:UO,configFields:[Fn("components",[]),Yp("containerBehaviours",[]),Fn("events",{}),Fn("domModification",{}),Fn("eventOrder",{})]}),VO=function(e){var n=function(t){return Wo(e.element).fold(d,(function(e){return ii(t,e)}))},r=zO(),i=function(e,t){return r.find(n,e,t)},a=OO(e.element,{triggerEvent:function(e,t){return Tc(e,t.target,(function(n){return DO(i,e,t,n)}))}}),s={debugInfo:o("real"),triggerEvent:function(e,t,n){Tc(e,t,(function(r){return jO(i,e,n,t,r)}))},triggerFocus:function(e,n){Va(e).fold((function(){Yu(e)}),(function(r){Tc(Fi(),e,(function(r){return NO(i,Fi(),{originator:n,kill:t,prevent:t,target:e},e,r),!1}))}))},triggerEscape:function(e,t){s.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return y(e)},getByDom:function(e){return b(e)},build:bl,addToGui:function(e){u(e)},removeFromGui:function(e){f(e)},addToWorld:function(e){l(e)},removeFromWorld:function(e){c(e)},broadcast:function(e){m(e)},broadcastOn:function(e,t){g(e,t)},broadcastEvent:function(e,t){v(e,t)},isConnected:d},l=function(e){e.connect(s),Fo(e.element)||(r.register(e),H(e.components(),l),s.triggerEvent(Ki(),e.element,{target:e.element}))},c=function(e){Fo(e.element)||(H(e.components(),c),r.unregister(e)),e.disconnect()},u=function(t){Bh(e,t)},f=function(e){Uh(e)},h=function(){a.unbind(),ga(e.element)},p=function(e){var t=r.filter(zi());H(t,(function(t){var n=t.descHandler,r=gs(n);r(e)}))},m=function(e){p({universal:!0,data:e})},g=function(e,t){p({universal:!1,channels:e,data:t})},v=function(e,t){var n=r.filter(e);return LO(n,t)},y=function(e){return r.getById(e).fold((function(){return ge.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),ge.value)},b=function(e){var t=Va(e).getOr("not found");return y(t)};return l(e),{root:e,element:e.element,destroy:h,add:u,remove:f,getByUid:y,getByDom:b,addToWorld:l,removeFromWorld:c,broadcast:m,broadcastOn:g,broadcastEvent:v}},WO=function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:W(e.items,t.interpreter)}},HO=o([Fn("prefix","form-field"),Yp("fieldBehaviours",[bg,Xp])]),$O=o([Am({schema:[bn("dom")],name:"label"}),Am({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[bn("text")],name:"aria-descriptor"}),Tm({factory:{sketch:function(e){var t=lt(e,["factory"]);return e.factory.sketch(t)}},schema:[bn("factory")],name:"field"})]),KO=function(e,t,n,r){var i=Qp(e.fieldBehaviours,[bg.config({find:function(t){return Gm(t,e,"field")}}),Xp.config({store:{mode:"manual",getValue:function(e){return bg.getCurrent(e).bind(Xp.getValue)},setValue:function(e,t){bg.getCurrent(e).each((function(e){Xp.setValue(e,t)}))}}})]),o=go([Ao((function(t,n){var r=Wm(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=ja(e.prefix);r.label().each((function(e){Sa(e.element,"for",n),Sa(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=ja(e.prefix);Sa(n.element,"id",r),Sa(t.element,"aria-describedby",r)}))}))}))]),a={getField:function(t){return Gm(t,e,"field")},getLabel:function(t){return Gm(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:i,events:o,apis:a}},XO=lg({name:"FormField",configFields:HO(),partFields:$O(),factory:KO,apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),YO=function(e,t){return cs({attributes:ut([{key:t.tabAttr,value:"true"}])})},JO=Object.freeze({__proto__:null,exhibit:YO}),QO=[Fn("tabAttr","data-alloy-tabstop")],ZO=Uu({fields:QO,name:"tabstopping",active:JO}),eT=tinymce.util.Tools.resolve("tinymce.html.Entities"),tT=function(e,t,n,r){var i=rT(e,t,n,r);return XO.sketch(i)},nT=function(e,t){return tT(e,t,[],[])},rT=function(e,t,n,r){return{dom:oT(n),components:e.toArray().concat([t]),fieldBehaviours:qu(r)}},iT=function(){return oT([])},oT=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},aT=function(e,t){return XO.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},sT=ja("form-component-change"),lT=ja("form-close"),cT=ja("form-cancel"),uT=ja("form-action"),dT=ja("form-submit"),fT=ja("form-block"),hT=ja("form-unblock"),pT=ja("form-tabchange"),mT=ja("form-resize"),gT=function(e,t){var n,r=e.label.map((function(e){return aT(e,t)})),i=function(e){return function(t,n){mc(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,Ea(r,"data-collection-item-value"))}))}},o=function(n,r){var i=W(r,(function(n){var r=RS.translate(n.text),i=1===e.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",o='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,(function(e){return a[e]})),l=t.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+l+'" tabindex="-1" data-collection-item-value="'+eT.encodeAllRaw(n.value)+'" title="'+s+'" aria-label="'+s+'">'+o+i+"</div>"})),o="auto"!==e.columns&&e.columns>1?V(i,e.columns):[i],a=W(o,(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));_a(n.element,a.join(""))},s=i((function(n,r,i,o){r.stop(),t.isDisabled()||uo(n,uT,{name:e.name,value:o})})),l=[_o(ki(),i((function(e,t,n){Yu(n)}))),_o(Mi(),s),_o(Vi(),s),_o(Oi(),i((function(e,t,n){pc(e.element,"."+_x).each((function(e){Bs(e,_x)})),js(n,_x)}))),_o(Ti(),i((function(e){pc(e.element,"."+_x).each((function(e){Bs(e,_x)}))}))),Mo(i((function(t,n,r,i){uo(t,uT,{name:e.name,value:i})})))],c=function(e,t){return W(Jf(e.element,".tox-collection__item"),t)},u=XO.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:a},behaviours:qu([YS.config({disabled:t.isDisabled,onDisabled:function(e){c(e,(function(e){js(e,"tox-collection__item--state-disabled"),Sa(e,"aria-disabled",!0)}))},onEnabled:function(e){c(e,(function(e){Bs(e,"tox-collection__item--state-disabled"),Ta(e,"aria-disabled")}))}}),GC(),wb.config({}),Xp.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,n){o(t,n),"auto"===e.columns&&hS(t,5,"tox-collection__item").each((function(e){var n=e.numRows,r=e.numColumns;db.setGridSize(t,n,r)})),co(t,mT)}}),ZO.config({}),db.config(Nk(e.columns,"normal")),Sb("collection-events",l)]),eventOrder:(n={},n[Ui()]=["disabling","alloy.base.behaviour","collection-events"],n)}),d=["tox-form__group--collection"];return tT(r,u,d,[])},vT=o([An("data"),Fn("inputAttributes",{}),Fn("inputStyles",{}),Fn("tag","input"),Fn("inputClasses",[]),Fc("onSetValue"),Fn("styles",{}),Fn("eventOrder",{}),Yp("inputBehaviours",[Xp,Pb]),Fn("selectOnFocus",!0)]),yT=function(e){return qu([Pb.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=ol(t);t.dom.setSelectionRange(0,n.length)}:t})])},bT=function(e){return h(h({},yT(e)),Qp(e.inputBehaviours,[Xp.config({store:h(h({mode:"manual"},e.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return ol(e.element)},setValue:function(e,t){var n=ol(e.element);n!==t&&al(e.element,t)}}),onSetValue:e.onSetValue})]))},_T=function(e){return{tag:e.tag,attributes:h({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},wT=function(e,t){return{uid:e.uid,dom:_T(e),components:[],behaviours:bT(e),eventOrder:e.eventOrder}},xT=sg({name:"Input",configFields:vT(),factory:wT}),ST={},CT={exports:ST};(function(t,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof t&&t.amd)t([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function e(t,n,r){function o(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof i&&i;if(!l&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};t[s][0].call(d.exports,(function(e){var n=t[s][1][e];return o(n||e)}),d,d.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return e}()({1:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var u,d=[],f=!1,h=-1;function p(){f&&u&&(f=!1,u.length?d=u.concat(d):h=-1,d.length&&m())}function m(){if(!f){var e=l(p);f=!0;var t=d.length;while(t){u=d,d=[];while(++h<t)u&&u[h].run();h=-1,t=d.length}u=null,f=!1,c(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new g(e,t)),1!==d.length||f||l(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(e,t,n){(function(e){(function(n){var r=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function a(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}l(t.promise,r)}else(1===e._state?l:c)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,u(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(r){if(n)return;n=!0,c(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new d(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(l){n(l)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"===typeof e?function(t){e(t)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function c(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();t.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,ST,CT,void 0);var ET,kT=CT.exports.boltExport,OT=function(e){var t=w.none(),n=[],r=function(e){return OT((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?l(e):n.push(e)},o=function(e){a()||(t=w.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){H(e,l)},l=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},TT=function(e){return OT((function(t){t(e)}))},IT={nu:OT,pure:TT},AT=function(e){setTimeout((function(){throw e}),0)},RT=function(e){var t=function(t){e().then(t,AT)},n=function(t){return RT((function(){return e().then(t)}))},r=function(t){return RT((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return RT((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return IT.nu(t)},a=function(){var t=null;return RT((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},PT=function(e){return RT((function(){return new kT(e)}))},MT=function(e){return RT((function(){return kT.resolve(e)}))},NT={nu:PT,pure:MT},LT=["input","textarea"],DT=function(e){var t=No(e);return z(LT,t)},jT=function(e,t){var n=t.getRoot(e).getOr(e.element);Bs(n,t.invalidClass),t.notify.each((function(t){DT(e.element)&&Sa(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){_a(e,t.validHtml)})),t.onValid(e)}))},FT=function(e,t,n,r){var i=t.getRoot(e).getOr(e.element);js(i,t.invalidClass),t.notify.each((function(t){DT(e.element)&&Sa(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){_a(e,r)})),t.onInvalid(e,r)}))},BT=function(e,t,n){return t.validator.fold((function(){return NT.pure(ge.value(!0))}),(function(t){return t.validate(e)}))},qT=function(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),BT(e,t).map((function(r){return e.getSystem().isConnected()?r.fold((function(r){return FT(e,t,n,r),ge.error(r)}),(function(n){return jT(e,t),ge.value(n)})):ge.error("No longer in system")}))},zT=function(e,t){var n=t.getRoot(e).getOr(e.element);return qs(n,t.invalidClass)},UT=Object.freeze({__proto__:null,markValid:jT,markInvalid:FT,query:BT,run:qT,isInvalid:zT}),GT=function(e,n){return e.validator.map((function(r){return go([_o(r.onEvent,(function(t){qT(t,e,n).get(a)}))].concat(r.validateOnLoad?[Ao((function(r){qT(r,e,n).get(t)}))]:[]))})).getOr({})},VT=Object.freeze({__proto__:null,events:GT}),WT=[bn("invalidClass"),Fn("getRoot",w.none),Dn("notify",[Fn("aria","alert"),Fn("getContainer",w.none),Fn("validHtml",""),Fc("onValid"),Fc("onInvalid"),Fc("onValidate")]),Dn("validator",[bn("validate"),Fn("onEvent","input"),Fn("validateOnLoad",!0)])],HT=Uu({fields:WT,name:"invalidating",active:VT,apis:UT,extra:{validation:function(e){return function(t){var n=Xp.getValue(t);return NT.pure(e(n))}}}}),$T=function(e,t,n,r){return n.getOrCreate(e,t,r)},KT=Object.freeze({__proto__:null,getCoupled:$T}),XT=[_n("others",en(ge.value,un()))],YT=function(){var e={},t=function(t,n,r){var i=Te(n.others);if(i)return Be(e,r).getOrThunk((function(){var i=Be(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(t),a=t.getSystem().build(o);return e[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},n=o({});return is({readState:n,getOrCreate:t})},JT=Object.freeze({__proto__:null,init:YT}),QT=Uu({fields:XT,name:"coupling",apis:KT,state:JT}),ZT=o("sink"),eI=o(Am({name:ZT(),overrides:o({dom:{tag:"div"},behaviours:qu([Mh.config({useFixed:d})]),events:go([Oo(Ii()),Oo(xi()),Oo(Mi())])})}));(function(e){e[e["HighlightFirst"]=0]="HighlightFirst",e[e["HighlightNone"]=1]="HighlightNone"})(ET||(ET={}));var tI,nI=function(e,t){var n=e.getHotspot(t).getOr(t),r="hotspot",i=e.getAnchorOverrides();return e.layouts.fold((function(){return{anchor:r,hotspot:n,overrides:i}}),(function(e){return{anchor:r,hotspot:n,overrides:i,layouts:e}}))},rI=function(e,t,n){var r=e.fetch;return r(n).map(t)},iI=function(e,t,n,r,i,o,a){var s=rI(e,t,r),l=cI(r,e);return s.map((function(e){return e.bind((function(e){return w.from(N_.sketch(h(h({},o.menu()),{uid:Wa(""),data:e,highlightImmediately:a===ET.HighlightFirst,onOpenMenu:function(e,t){var r=l().getOrDie();Mh.position(r,n,t),hp.decloak(i)},onOpenSubmenu:function(e,t,n){var r=l().getOrDie();Mh.position(r,{anchor:"submenu",item:t},n),hp.decloak(i)},onRepositionMenu:function(e,t,r){var i=l().getOrDie();Mh.position(i,n,t),H(r,(function(e){Mh.position(i,{anchor:"submenu",item:e.triggeringItem},e.triggeredMenu)}))},onEscape:function(){return Pb.focus(r),hp.close(i),w.some(!0)}})))}))}))},oI=function(e,t,n,r,i,o,a){var s=nI(e,n),l=iI(e,t,s,n,r,i,a);return l.map((function(e){return e.fold((function(){hp.isOpen(r)&&hp.close(r)}),(function(e){hp.cloak(r),hp.open(r,e),o(r)})),r}))},aI=function(e,t,n,r,i,o,a){return hp.close(r),NT.pure(r)},sI=function(e,t,n,r,i,o){var a=QT.getCoupled(n,"sandbox"),s=hp.isOpen(a),l=s?aI:oI;return l(e,t,n,a,r,i,o)},lI=function(e,t,n){var r=bg.getCurrent(t).getOr(t),i=Nl(e.element);n?Xs(r.element,"min-width",i+"px"):Ml(r.element,i)},cI=function(e,t){return e.getSystem().getByUid(t.uid+"-"+ZT()).map((function(e){return function(){return ge.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return ge.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},uI=function(e){hp.getState(e).each((function(e){N_.repositionMenus(e)}))},dI=function(e,t,n){var r=vc(),i=function(i,o){var a=nI(e,t);r.link(t.element),e.matchWidth&&lI(a.hotspot,o,e.useMinWidth),e.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},o=function(e,i){r.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,i)},a=cI(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:Zp.augment(e.sandboxBehaviours,[Xp.config({store:{mode:"memory",initialValue:t}}),hp.config({onOpen:i,onClose:o,isPartOf:function(e,n,r){return bc(n,r)||bc(t,r)},getAttachPoint:function(){return a().getOrDie()}}),bg.config({find:function(e){return hp.getState(e).bind((function(e){return bg.getCurrent(e)}))}}),Hu.config({channels:h(h({},yp({isExtraPart:u})),_p({doReposition:uI}))})])}},fI=function(e){var t=QT.getCoupled(e,"sandbox");uI(t)},hI=function(){return[Fn("sandboxClasses",[]),Zp.field("sandboxBehaviours",[bg,Hu,hp,Xp])]},pI=o([bn("dom"),bn("fetch"),Fc("onOpen"),Bc("onExecute"),Fn("getHotspot",w.some),Fn("getAnchorOverrides",o({})),Ud(),Yp("dropdownBehaviours",[Jb,QT,db,Pb]),bn("toggleClass"),Fn("eventOrder",{}),An("lazySink"),Fn("matchWidth",!1),Fn("useMinWidth",!1),An("role")].concat(hI())),mI=o([Im({schema:[Lc()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),eI()]),gI=function(e,n,r,i){var o,a=function(t){return Be(e.dom,"attributes").bind((function(e){return Be(e,t)}))},s=function(e){hp.getState(e).each((function(e){N_.highlightPrimary(e)}))},l=function(n){var r=s;sI(e,(function(e){return e}),n,i,r,ET.HighlightFirst).get(t)},c={expand:function(n){Jb.isOn(n)||sI(e,(function(e){return e}),n,i,t,ET.HighlightNone).get(t)},open:function(n){Jb.isOn(n)||sI(e,(function(e){return e}),n,i,t,ET.HighlightFirst).get(t)},isOpen:Jb.isOn,close:function(n){Jb.isOn(n)&&sI(e,(function(e){return e}),n,i,t,ET.HighlightFirst).get(t)},repositionMenus:function(e){Jb.isOn(e)&&fI(e)}},u=function(e,t){return fo(e),w.some(!0)};return{uid:e.uid,dom:e.dom,components:n,behaviours:Qp(e.dropdownBehaviours,[Jb.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),QT.config({others:{sandbox:function(t){return dI(e,t,{onOpen:function(){return Jb.on(t)},onClose:function(){return Jb.off(t)}})}}}),db.config({mode:"special",onSpace:u,onEnter:u,onDown:function(e,t){if(vI.isOpen(e)){var n=QT.getCoupled(e,"sandbox");s(n)}else vI.open(e);return w.some(!0)},onEscape:function(e,t){return vI.isOpen(e)?(vI.close(e),w.some(!0)):w.none()}}),Pb.config({})]),events:Zb(w.some(l)),eventOrder:h(h({},e.eventOrder),(o={},o[Ui()]=["disabling","toggling","alloy.base.behaviour"],o)),apis:c,domModification:{attributes:h(h({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:a("type").getOr("button")}:{})}}},vI=lg({name:"Dropdown",configFields:pI(),partFields:mI(),factory:gI,apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),yI=function(){return cs({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},bI=function(){return go([vo(Li(),d)])},_I=Object.freeze({__proto__:null,events:bI,exhibit:yI}),wI=Uu({fields:[],name:"unselecting",active:_I}),xI=function(e,t){return vI.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:qu([KC.button(t.providers.isDisabled),GC(),wI.config({}),ZO.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return NT.nu((function(t){return e.fetch(t)})).map((function(r){return w.from(sO(Ke(Rk(ja("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,lx.CLOSE_ON_EXECUTE,u,t.providers),{movement:Mk(e.columns,e.presets)})))}))},parts:{menu:Dx(!1,1,e.presets)}})},SI=ja("color-input-change"),CI=ja("color-swatch-change"),EI=ja("color-picker-cancel"),kI=function(e,n,r){var i=XO.parts.field({factory:xT,inputClasses:["tox-textfield"],onSetValue:function(e){return HT.run(e).get(t)},inputBehaviours:qu([YS.config({disabled:n.providers.isDisabled}),GC(),ZO.config({}),HT.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return Wo(e.element)},notify:{onValid:function(e){var t=Xp.getValue(e);uo(e,SI,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=Xp.getValue(e);if(0===t.length)return NT.pure(ge.value(!0));var n=tr.fromTag("span");Xs(n,"background-color",t);var r=el(n,"background-color").fold((function(){return ge.error("blah")}),(function(e){return ge.value(t)}));return NT.pure(r)}}})]),selectOnFocus:!1}),o=e.label.map((function(e){return aT(e,n.providers)})),a=function(e,t){uo(e,CI,{value:t})},s=function(e,t){l.getOpt(e).each((function(e){"custom"===t?r.colorPicker((function(t){t.fold((function(){return co(e,EI)}),(function(t){a(e,t),mk(t)}))}),"#ffffff"):a(e,"remove"===t?"":t)}))},l=Q_(xI({dom:{tag:"span",attributes:{"aria-label":n.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[gu,mu,_u]},onLtr:function(){return[mu,gu,_u]}},components:[],fetch:Ek(r.getColors(),r.hasCustomColors()),columns:r.getColorCols(),presets:"color",onItemAction:s},n));return XO.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:o.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[i,l.asSpec()]}]),fieldBehaviours:qu([Sb("form-field-events",[_o(SI,(function(t,n){l.getOpt(t).each((function(e){Xs(e.element,"background-color",n.event.color)})),uo(t,sT,{name:e.name})})),_o(CI,(function(e,t){XO.getField(e).each((function(n){Xp.setValue(n,t.event.value),bg.getCurrent(e).each(Pb.focus)}))})),_o(EI,(function(e,t){XO.getField(e).each((function(t){bg.getCurrent(e).each(Pb.focus)}))}))])])})},OI=function(e,t,n){return{hue:e,saturation:t,value:n}},TI=function(e){var t=0,n=0,r=0,i=e.red/255,o=e.green/255,a=e.blue/255,s=Math.min(i,Math.min(o,a)),l=Math.max(i,Math.max(o,a));if(s===l)return r=s,OI(0,0,100*r);var c=i===s?o-a:a===s?i-o:a-i;return t=i===s?3:a===s?1:5,t=60*(t-c/(l-s)),n=(l-s)/l,r=l,OI(Math.round(t),Math.round(100*n),Math.round(100*r))},II=function(e){var t=(100-e)/100*360,n=OI(t,100,100),r=VE(n);return DE(r)},AI=ja("rgb-hex-update"),RI=ja("slider-update"),PI=ja("palette-update"),MI=Am({schema:[bn("dom")],name:"label"}),NI=function(e){return Am({name:e+"-edge",overrides:function(t){var n=t.model.manager.edgeActions[e];return n.fold((function(){return{}}),(function(e){return{events:go([wo(yi(),(function(t,n,r){return e(t,r)}),[t]),wo(xi(),(function(t,n,r){return e(t,r)}),[t]),wo(Si(),(function(t,n,r){r.mouseIsDown.get()&&e(t,r)}),[t])])}}))}})},LI=NI("top-left"),DI=NI("top"),jI=NI("top-right"),FI=NI("right"),BI=NI("bottom-right"),qI=NI("bottom"),zI=NI("bottom-left"),UI=NI("left"),GI=Tm({name:"thumb",defaults:o({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:go([Eo(yi(),e,"spectrum"),Eo(bi(),e,"spectrum"),Eo(_i(),e,"spectrum"),Eo(xi(),e,"spectrum"),Eo(Si(),e,"spectrum"),Eo(Ei(),e,"spectrum")])}}}),VI=Tm({schema:[Kn("mouseIsDown",(function(){return Xn(!1)}))],name:"spectrum",overrides:function(e){var t=e.model,n=t.manager,r=function(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))};return{behaviours:qu([db.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Pb.config({})]),events:go([_o(yi(),r),_o(bi(),r),_o(xi(),r),_o(Si(),(function(t,n){e.mouseIsDown.get()&&r(t,n)}))])}}}),WI=[MI,UI,FI,DI,qI,LI,jI,zI,BI,GI,VI],HI="slider.change.value",$I=o(HI),KI=function(e){return-1!==e.type.indexOf("touch")},XI=function(e){var t=e.event.raw;if(KI(t)){var n=t;return void 0!==n.touches&&1===n.touches.length?w.some(n.touches[0]).map((function(e){return Ol(e.clientX,e.clientY)})):w.none()}var r=t;return void 0!==r.clientX?w.some(r).map((function(e){return Ol(e.clientX,e.clientY)})):w.none()},YI="top",JI="right",QI="bottom",ZI="left",eA=function(e){return e.model.minX},tA=function(e){return e.model.minY},nA=function(e){return e.model.minX-1},rA=function(e){return e.model.minY-1},iA=function(e){return e.model.maxX},oA=function(e){return e.model.maxY},aA=function(e){return e.model.maxX+1},sA=function(e){return e.model.maxY+1},lA=function(e,t,n){return t(e)-n(e)},cA=function(e){return lA(e,iA,eA)},uA=function(e){return lA(e,oA,tA)},dA=function(e){return cA(e)/2},fA=function(e){return uA(e)/2},hA=function(e){return e.stepSize},pA=function(e){return e.snapToGrid},mA=function(e){return e.snapStart},gA=function(e){return e.rounded},vA=function(e,t){return void 0!==e[t+"-edge"]},yA=function(e){return vA(e,ZI)},bA=function(e){return vA(e,JI)},_A=function(e){return vA(e,YI)},wA=function(e){return vA(e,QI)},xA=function(e){return e.model.value.get()},SA=function(e){return{x:e}},CA=function(e){return{y:e}},EA=function(e,t){return{x:e,y:t}},kA=function(e,t){uo(e,$I(),{value:t})},OA=function(e,t){kA(e,EA(nA(t),rA(t)))},TA=function(e,t){kA(e,CA(rA(t)))},IA=function(e,t){kA(e,EA(dA(t),rA(t)))},AA=function(e,t){kA(e,EA(aA(t),rA(t)))},RA=function(e,t){kA(e,SA(aA(t)))},PA=function(e,t){kA(e,EA(aA(t),fA(t)))},MA=function(e,t){kA(e,EA(aA(t),sA(t)))},NA=function(e,t){kA(e,CA(sA(t)))},LA=function(e,t){kA(e,EA(dA(t),sA(t)))},DA=function(e,t){kA(e,EA(nA(t),sA(t)))},jA=function(e,t){kA(e,SA(nA(t)))},FA=function(e,t){kA(e,EA(nA(t),fA(t)))},BA=function(e,t,n,r){return e<t?e:e>n?n:e===t?t-1:Math.max(t,e-r)},qA=function(e,t,n,r){return e>n?e:e<t?t:e===n?n+1:Math.min(n,e+r)},zA=function(e,t,n){return Math.max(t,Math.min(n,e))},UA=function(e,t,n,r,i){return i.fold((function(){var i=e-t,o=Math.round(i/r)*r;return zA(t+o,t-1,n+1)}),(function(t){var i=(e-t)%r,o=Math.round(i/r),a=Math.floor((e-t)/r),s=Math.floor((n-t)/r),l=Math.min(s,a+o),c=t+l*r;return Math.max(t,c)}))},GA=function(e,t,n){return Math.min(n,Math.max(e,t))-t},VA=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.step,a=e.snap,s=e.snapStart,l=e.rounded,c=e.hasMinEdge,u=e.hasMaxEdge,d=e.minBound,f=e.maxBound,h=e.screenRange,p=c?t-1:t,m=u?n+1:n;if(i<d)return p;if(i>f)return m;var g=GA(i,d,f),v=zA(g/h*r+t,p,m);return a&&v>=t&&v<=n?UA(v,t,n,o,s):l?Math.round(v):v},WA=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.hasMinEdge,a=e.hasMaxEdge,s=e.maxBound,l=e.maxOffset,c=e.centerMinEdge,u=e.centerMaxEdge;return i<t?o?0:c:i>n?a?s:u:(i-t)/r*l},HA="top",$A="right",KA="bottom",XA="left",YA="width",JA="height",QA=function(e){return e.element.dom.getBoundingClientRect()},ZA=function(e,t){return e[t]},eR=function(e){var t=QA(e);return ZA(t,XA)},tR=function(e){var t=QA(e);return ZA(t,$A)},nR=function(e){var t=QA(e);return ZA(t,HA)},rR=function(e){var t=QA(e);return ZA(t,KA)},iR=function(e){var t=QA(e);return ZA(t,YA)},oR=function(e){var t=QA(e);return ZA(t,JA)},aR=function(e,t,n){return(e+t)/2-n},sR=function(e,t){var n=QA(e),r=QA(t),i=ZA(n,XA),o=ZA(n,$A),a=ZA(r,XA);return aR(i,o,a)},lR=function(e,t){var n=QA(e),r=QA(t),i=ZA(n,HA),o=ZA(n,KA),a=ZA(r,HA);return aR(i,o,a)},cR=function(e,t){uo(e,$I(),{value:t})},uR=function(e){return{x:e}},dR=function(e,t,n){var r={min:eA(t),max:iA(t),range:cA(t),value:n,step:hA(t),snap:pA(t),snapStart:mA(t),rounded:gA(t),hasMinEdge:yA(t),hasMaxEdge:bA(t),minBound:eR(e),maxBound:tR(e),screenRange:iR(e)};return VA(r)},fR=function(e,t,n){var r=dR(e,t,n),i=uR(r);return cR(e,i),r},hR=function(e,t){var n=eA(t);cR(e,uR(n))},pR=function(e,t){var n=iA(t);cR(e,uR(n))},mR=function(e,t,n){var r=e>0?qA:BA,i=r(xA(n).x,eA(n),iA(n),hA(n));return cR(t,uR(i)),w.some(i)},gR=function(e){return function(t,n){return mR(e,t,n).map(d)}},vR=function(e){var t=XI(e);return t.map((function(e){return e.left}))},yR=function(e,t,n,r,i){var o=0,a=iR(e),s=r.bind((function(t){return w.some(sR(t,e))})).getOr(o),l=i.bind((function(t){return w.some(sR(t,e))})).getOr(a),c={min:eA(t),max:iA(t),range:cA(t),value:n,hasMinEdge:yA(t),hasMaxEdge:bA(t),minBound:eR(e),minOffset:o,maxBound:tR(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:l};return WA(c)},bR=function(e,t,n,r,i,o){var a=yR(t,o,n,r,i);return eR(t)-eR(e)+a},_R=function(e,t,n,r){var i=xA(n),o=bR(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=Nl(t.element)/2;Xs(t.element,"left",o-a+"px")},wR=gR(-1),xR=gR(1),SR=w.none,CR=w.none,ER={"top-left":w.none(),top:w.none(),"top-right":w.none(),right:w.some(RA),"bottom-right":w.none(),bottom:w.none(),"bottom-left":w.none(),left:w.some(jA)},kR=Object.freeze({__proto__:null,setValueFrom:fR,setToMin:hR,setToMax:pR,findValueOfOffset:dR,getValueFromEvent:vR,findPositionOfValue:bR,setPositionFromValue:_R,onLeft:wR,onRight:xR,onUp:SR,onDown:CR,edgeActions:ER}),OR=function(e,t){uo(e,$I(),{value:t})},TR=function(e){return{y:e}},IR=function(e,t,n){var r={min:tA(t),max:oA(t),range:uA(t),value:n,step:hA(t),snap:pA(t),snapStart:mA(t),rounded:gA(t),hasMinEdge:_A(t),hasMaxEdge:wA(t),minBound:nR(e),maxBound:rR(e),screenRange:oR(e)};return VA(r)},AR=function(e,t,n){var r=IR(e,t,n),i=TR(r);return OR(e,i),r},RR=function(e,t){var n=tA(t);OR(e,TR(n))},PR=function(e,t){var n=oA(t);OR(e,TR(n))},MR=function(e,t,n){var r=e>0?qA:BA,i=r(xA(n).y,tA(n),oA(n),hA(n));return OR(t,TR(i)),w.some(i)},NR=function(e){return function(t,n){return MR(e,t,n).map(d)}},LR=function(e){var t=XI(e);return t.map((function(e){return e.top}))},DR=function(e,t,n,r,i){var o=0,a=oR(e),s=r.bind((function(t){return w.some(lR(t,e))})).getOr(o),l=i.bind((function(t){return w.some(lR(t,e))})).getOr(a),c={min:tA(t),max:oA(t),range:uA(t),value:n,hasMinEdge:_A(t),hasMaxEdge:wA(t),minBound:nR(e),minOffset:o,maxBound:rR(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:l};return WA(c)},jR=function(e,t,n,r,i,o){var a=DR(t,o,n,r,i);return nR(t)-nR(e)+a},FR=function(e,t,n,r){var i=xA(n),o=jR(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=Sl(t.element)/2;Xs(t.element,"top",o-a+"px")},BR=w.none,qR=w.none,zR=NR(-1),UR=NR(1),GR={"top-left":w.none(),top:w.some(TA),"top-right":w.none(),right:w.none(),"bottom-right":w.none(),bottom:w.some(NA),"bottom-left":w.none(),left:w.none()},VR=Object.freeze({__proto__:null,setValueFrom:AR,setToMin:RR,setToMax:PR,findValueOfOffset:IR,getValueFromEvent:LR,findPositionOfValue:jR,setPositionFromValue:FR,onLeft:BR,onRight:qR,onUp:zR,onDown:UR,edgeActions:GR}),WR=function(e,t){uo(e,$I(),{value:t})},HR=function(e,t){return{x:e,y:t}},$R=function(e,t,n){var r=dR(e,t,n.left),i=IR(e,t,n.top),o=HR(r,i);return WR(e,o),o},KR=function(e,t,n,r){var i=e>0?qA:BA,o=t?xA(r).x:i(xA(r).x,eA(r),iA(r),hA(r)),a=t?i(xA(r).y,tA(r),oA(r),hA(r)):xA(r).y;return WR(n,HR(o,a)),w.some(o)},XR=function(e,t){return function(n,r){return KR(e,t,n,r).map(d)}},YR=function(e,t){var n=eA(t),r=tA(t);WR(e,HR(n,r))},JR=function(e,t){var n=iA(t),r=oA(t);WR(e,HR(n,r))},QR=function(e){return XI(e)},ZR=function(e,t,n,r){var i=xA(n),o=bR(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=jR(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),s=Nl(t.element)/2,l=Sl(t.element)/2;Xs(t.element,"left",o-s+"px"),Xs(t.element,"top",a-l+"px")},eP=XR(-1,!1),tP=XR(1,!1),nP=XR(-1,!0),rP=XR(1,!0),iP={"top-left":w.some(OA),top:w.some(IA),"top-right":w.some(AA),right:w.some(PA),"bottom-right":w.some(MA),bottom:w.some(LA),"bottom-left":w.some(DA),left:w.some(FA)},oP=Object.freeze({__proto__:null,setValueFrom:$R,setToMin:YR,setToMax:JR,getValueFromEvent:QR,setPositionFromValue:ZR,onLeft:eP,onRight:tP,onUp:nP,onDown:rP,edgeActions:iP}),aP=[Fn("stepSize",1),Fn("onChange",t),Fn("onChoose",t),Fn("onInit",t),Fn("onDragStart",t),Fn("onDragEnd",t),Fn("snapToGrid",!1),Fn("rounded",!0),An("snapStart"),_n("model",ln("mode",{x:[Fn("minX",0),Fn("maxX",100),Kn("value",(function(e){return Xn(e.mode.minX)})),bn("getInitialValue"),Uc("manager",kR)],y:[Fn("minY",0),Fn("maxY",100),Kn("value",(function(e){return Xn(e.mode.minY)})),bn("getInitialValue"),Uc("manager",VR)],xy:[Fn("minX",0),Fn("maxX",100),Fn("minY",0),Fn("maxY",100),Kn("value",(function(e){return Xn({x:e.mode.minX,y:e.mode.minY})})),bn("getInitialValue"),Uc("manager",oP)]})),Yp("sliderBehaviours",[db,Xp]),Kn("mouseIsDown",(function(){return Xn(!1)}))],sP=function(e,t,n,r){var i,o=function(t){return Vm(t,e,"thumb")},a=function(t){return Vm(t,e,"spectrum")},s=function(t){return Gm(t,e,"left-edge")},l=function(t){return Gm(t,e,"right-edge")},c=function(t){return Gm(t,e,"top-edge")},u=function(t){return Gm(t,e,"bottom-edge")},f=e.model,h=f.manager,p=function(t,n){h.setPositionFromValue(t,n,e,{getLeftEdge:s,getRightEdge:l,getTopEdge:c,getBottomEdge:u,getSpectrum:a})},m=function(t,n){f.value.set(n);var r=o(t);return p(t,r),e.onChange(t,r,n),w.some(!0)},g=function(t){h.setToMin(t,e)},v=function(t){h.setToMax(t,e)},y=function(t){var n=function(){Gm(t,e,"thumb").each((function(n){var r=f.value.get();e.onChoose(t,n,r)}))},r=e.mouseIsDown.get();e.mouseIsDown.set(!1),r&&n()},b=function(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,o(t))},_=function(t,n){n.stop(),e.onDragEnd(t,o(t)),y(t)};return{uid:e.uid,dom:e.dom,components:t,behaviours:Qp(e.sliderBehaviours,[db.config({mode:"special",focusIn:function(t){return Gm(t,e,"spectrum").map(db.focusIn).map(d)}}),Xp.config({store:{mode:"manual",getValue:function(e){return f.value.get()}}}),Hu.config({channels:(i={},i[gp()]={onReceive:y},i)})]),events:go([_o($I(),(function(e,t){m(e,t.event.value)})),Ao((function(t,n){var r=f.getInitialValue();f.value.set(r);var i=o(t);p(t,i);var s=a(t);e.onInit(t,i,s,f.value.get())})),_o(yi(),b),_o(_i(),_),_o(xi(),b),_o(Ei(),_)]),apis:{resetToMin:g,resetToMax:v,changeValue:m,refresh:p},domModification:{styles:{position:"relative"}}}},lP=lg({name:"Slider",configFields:aP,partFields:WI,factory:sP,apis:{resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),cP=function(e,t){var n=lP.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=lP.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return lP.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:o({y:0})},components:[n,r],sliderBehaviours:qu([Pb.config({})]),onChange:function(e,t,n){uo(e,RI,{value:n})}})},uP="form",dP=[Yp("formBehaviours",[Xp])],fP=function(e){return"<alloy.field."+e+">"},hP=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Fm(uP,fP(t),n)};return{field:t,record:function(){return e}}}(),n=e(t),r=t.record(),i=W(r,(function(e){return Tm({name:e,pname:fP(e)})}));return tg(uP,dP,i,mP,n)},pP=function(e,t){return e.fold((function(){return ge.error(t)}),ge.value)},mP=function(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:Qp(e.formBehaviours,[Xp.config({store:{mode:"manual",getValue:function(t){var n=Hm(t,e);return Re(n,(function(e,t){return e().bind((function(e){var n=bg.getCurrent(e);return pP(n,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Pa(e.element)))})).map(Xp.getValue)}))},setValue:function(t,n){Ae(n,(function(n,r){Gm(t,e,r).each((function(e){bg.getCurrent(e).each((function(e){Xp.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return Gm(t,e,n).bind(bg.getCurrent)}}}},gP={getField:ns((function(e,t,n){return e.getField(t,n)})),sketch:hP},vP=ja("valid-input"),yP=ja("invalid-input"),bP=ja("validating-input"),_P="colorcustom.rgb.",wP=function(e,n,r,i){var o=function(t,r){return HT.config({invalidClass:n("invalid"),notify:{onValidate:function(e){uo(e,bP,{type:t})},onValid:function(e){uo(e,vP,{type:t,value:Xp.getValue(e)})},onInvalid:function(e){uo(e,yP,{type:t,value:Xp.getValue(e)})}},validator:{validate:function(t){var n=Xp.getValue(t),i=r(n)?ge.value(!0):ge.error(e("aria.input.invalid"));return NT.pure(i)},validateOnLoad:!1}})},a=function(r,i,a,s,l){var c=e(_P+"range"),u=XO.parts.label({dom:{tag:"label",innerHtml:a,attributes:{"aria-label":s}}}),d=XO.parts.field({data:l,factory:xT,inputAttributes:h({type:"text"},"hex"===i?{"aria-live":"polite"}:{}),inputClasses:[n("textfield")],inputBehaviours:qu([o(i,r),ZO.config({})]),onSetValue:function(e){if(HT.isInvalid(e)){var n=HT.run(e);n.get(t)}}}),f=[u,d],p="hex"!==i?[XO.parts["aria-descriptor"]({text:c})]:[],m=f.concat(p);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},s=function(e,t){var n=DE(t);return gP.getField(e,"hex").each((function(t){Pb.isFocused(t)||Xp.setValue(e,{hex:n.value})})),n},l=function(e,t){var n=t.red,r=t.green,i=t.blue;Xp.setValue(e,{red:n,green:r,blue:i})},c=Q_({dom:{tag:"div",classes:[n("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),u=function(e,t){c.getOpt(e).each((function(e){Xs(e.element,"background-color","#"+t.value)}))},d=function(){var t={red:Xn(w.some(255)),green:Xn(w.some(255)),blue:Xn(w.some(255)),hex:Xn(w.some("ffffff"))},o=function(e,t){var n=WE(t);l(e,n),p(n)},d=function(e){return t[e].get()},f=function(e,n){t[e].set(n)},h=function(){return d("red").bind((function(e){return d("green").bind((function(t){return d("blue").map((function(n){return UE(e,t,n,1)}))}))}))},p=function(e){var t=e.red,n=e.green,r=e.blue;f("red",w.some(t)),f("green",w.some(n)),f("blue",w.some(r))},m=function(e,t){var n=t.event;"hex"!==n.type?f(n.type,w.none()):i(e)},g=function(e,t){r(e);var n=IE(t);f("hex",w.some(t));var i=WE(n);l(e,i),p(i),uo(e,AI,{hex:n}),u(e,n)},v=function(e,t,n){var r=parseInt(n,10);f(t,w.some(r)),h().each((function(t){var n=s(e,t);u(e,n)}))},y=function(e){return"hex"===e.type},b=function(e,t){var n=t.event;y(n)?g(e,n.value):v(e,n.type,n.value)},_=function(t){return{label:e(_P+t+".label"),description:e(_P+t+".description")}},x=_("red"),S=_("green"),C=_("blue"),E=_("hex");return Ke(gP.sketch((function(t){return{dom:{tag:"form",classes:[n("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[t.field("red",XO.sketch(a(GE,"red",x.label,x.description,255))),t.field("green",XO.sketch(a(GE,"green",S.label,S.description,255))),t.field("blue",XO.sketch(a(GE,"blue",C.label,C.description,255))),t.field("hex",XO.sketch(a(PE,"hex",E.label,E.description,"ffffff"))),c.asSpec()],formBehaviours:qu([HT.config({invalidClass:n("form-invalid")}),Sb("rgb-form-events",[_o(vP,b),_o(yP,m),_o(bP,m)])])}})),{apis:{updateHex:function(e,t){Xp.setValue(e,{hex:t.value}),o(e,t),u(e,t)}}})},f=sg({factory:d,name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return f},xP=function(e,t){var n=lP.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=lP.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(e,t){var n=e.width,r=e.height,i=e.getContext("2d");if(null!==i){i.fillStyle=t,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},a=function(e,t){var n=e.components()[0].element.dom;i(n,KE(t))},s=function(e){var a=o({x:0,y:0}),s=function(e,t,n){uo(e,PI,{value:n})},l=function(e,t,n,r){i(n.element.dom,KE(XE))},c=qu([bg.config({find:w.some}),Pb.config({})]);return lP.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:a},rounded:!1,components:[n,r],onChange:s,onInit:l,sliderBehaviours:c})},l=sg({factory:s,name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(e,t,n){a(t,n)}},extraApis:{}});return l},SP=function(e,n){var r=function(t){var r=wP(e,n,t.onValidHex,t.onInvalidHex),i=xP(e,n),o={paletteRgba:Xn(XE)},a=Q_(i.sketch({})),s=Q_(r.sketch({})),l=function(e,t){a.getOpt(e).each((function(e){var n=WE(t);o.paletteRgba.set(n),i.setRgba(e,n)}))},c=function(e,t){s.getOpt(e).each((function(e){r.updateHex(e,t)}))},u=function(e,t,n){H(n,(function(n){n(e,t)}))},d=function(){var e=[c];return function(t,n){var r=n.event.value,i=o.paletteRgba.get(),a=TI(i),s=OI(a.hue,r.x,100-r.y),l=VE(s),c=DE(l);u(t,c,e)}},f=function(){var e=[l,c];return function(t,n){var r=n.event.value,i=II(r.y);u(t,i,e)}};return{uid:t.uid,dom:t.dom,components:[a.asSpec(),cP(e,n),s.asSpec()],behaviours:qu([Sb("colour-picker-events",[_o(PI,d()),_o(RI,f())]),bg.config({find:function(e){return s.getOpt(e)}}),db.config({mode:"acyclic"})])}},i=sg({name:"ColourPicker",configFields:[bn("dom"),Fn("onValidHex",t),Fn("onInvalidHex",t)],factory:r});return i},CP=function(){return bg.config({find:w.some})},EP=function(e){return bg.config({find:e.getOpt})},kP=function(e){return bg.config({find:function(t){return Yo(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},OP={self:CP,memento:EP,childAt:kP},TP={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},IP=function(e){return TP[e]},AP=function(e){return IP(e)},RP=function(e){var t=function(e){return"tox-"+e},n=SP(AP,t),r=function(e){uo(e,uT,{name:"hex-valid",value:!0})},i=function(e){uo(e,uT,{name:"hex-valid",value:!1})},o=Q_(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[o.asSpec()],behaviours:qu([Xp.config({store:{mode:"manual",getValue:function(e){var t=o.get(e),n=bg.getCurrent(t),r=n.bind((function(e){var t=Xp.getValue(e);return t.hex}));return r.map((function(e){return"#"+e})).getOr("")},setValue:function(e,t){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(t),i=o.get(e),a=bg.getCurrent(i);a.fold((function(){console.log("Can not find form")}),(function(e){Xp.setValue(e,{hex:w.from(r[1]).getOr("")}),gP.getField(e,"hex").each((function(e){co(e,Ri())}))}))}}}),OP.self()])}},PP=tinymce.util.Tools.resolve("tinymce.Resource"),MP=function(e){return Object.prototype.hasOwnProperty.call(e,"init")},NP=function(e){var t=Xn(w.none()),n=Q_({dom:{tag:e.tag}}),r=Xn(w.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:qu([Sb("custom-editor-events",[Ao((function(i){n.getOpt(i).each((function(n){(MP(e)?e.init(n.element.dom):PP.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){r.get().each((function(t){e.setValue(t)})),r.set(w.none()),t.set(w.some(e))}))}))}))]),Xp.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(w.some(n))}),(function(e){return e.setValue(n)}))}}}),OP.self()]),components:[n.asSpec()]}},LP=tinymce.util.Tools.resolve("tinymce.util.Tools"),DP=Ft([Fn("preprocess",a),Fn("postprocess",a)]),jP=function(e,t){var n=on("RepresentingConfigs.memento processors",DP,t);return Xp.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),i=Xp.getValue(r);return n.postprocess(i)},setValue:function(t,r){var i=n.preprocess(r),o=e.get(t);Xp.setValue(o,i)}}})},FP=function(e,t,n){return Xp.config(Ke({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},BP=function(e,t,n){return FP(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}))},qP=function(e){return BP(e,ol,al)},zP=function(e){return BP(e,ba,_a)},UP=function(e){return Xp.config({store:{mode:"memory",initialValue:e}})},GP={memento:jP,withElement:BP,withComp:FP,domValue:qP,domHtml:zP,memory:UP},VP="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",WP=function(e,t){var n=LP.explode(t.getSetting("images_file_types",VP,"string")),r=function(e){return U(n,(function(t){return mr(e.name.toLowerCase(),"."+t.toLowerCase())}))};return X(de(e),r)},HP=function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){H(e,(function(e){e(t,n)}))}},i=function(e,t){if(!YS.isDisabled(e)){var n=t.event.raw;a(e,n.dataTransfer.files)}},o=function(e,t){var n=t.event.raw.target;a(e,n.files)},a=function(n,r){Xp.setValue(n,WP(r,t)),uo(n,sT,{name:e.name})},s=Q_({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:qu([Sb("input-file-events",[Oo(Mi()),Oo(Vi())])])}),l=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:qu([GP.memory([]),OP.self(),YS.config({}),Jb.config({toggleClass:"dragenter",toggleOnExecute:!1}),Sb("dropzone-events",[_o("dragenter",r([n,Jb.toggle])),_o("dragleave",r([n,Jb.toggle])),_o("dragover",n),_o("drop",r([n,i])),_o(Pi(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},J_.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(e){var t=s.get(e);t.element.dom.click()},buttonBehaviours:qu([ZO.config({}),KC.button(t.isDisabled),GC()])})]}]}},c=e.label.map((function(e){return aT(e,t)})),u=XO.parts.field({factory:{sketch:l}});return tT(c,u,["tox-form__group--stretched"],[])},$P=function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:W(e.items,t.interpreter)}},KP=ja("alloy-fake-before-tabstop"),XP=ja("alloy-fake-after-tabstop"),YP=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:qu([Pb.config({ignore:!0}),ZO.config({})])}},JP=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[YP([KP]),e,YP([XP])],behaviours:qu([OP.childAt(1)])}},QP=function(e,t){uo(e,Ii(),{raw:{which:9,shiftKey:t}})},ZP=function(e,t){var n=t.element;qs(n,KP)?QP(e,!0):qs(n,XP)&&QP(e,!1)},eM=function(e){return mO(e,["."+KP,"."+XP].join(","),u)},tM=!($r().browser.isIE()||$r().browser.isEdge()),nM=function(e){var t=Xn("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)Sa(n.element,"srcdoc",r);else{Sa(n.element,"src","javascript:''");var i=n.element.dom.contentWindow.document;i.open(),i.write(r),i.close()}t.set(r)}}},rM=function(e,t){var n=tM&&e.sandboxed,r=h(h({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=nM(n),o=e.label.map((function(e){return aT(e,t)})),a=function(e){return JP({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:qu([ZO.config({}),Pb.config({}),GP.withComp(w.none(),i.getValue,i.setValue)])})},s=XO.parts.field({factory:{sketch:a}});return tT(o,s,["tox-form__group--stretched"],[])},iM=function(e,t){return sM(document.createElement("canvas"),e,t)},oM=function(e){var t=iM(e.width,e.height),n=aM(t);return n.drawImage(e,0,0),t},aM=function(e){return e.getContext("2d")},sM=function(e,t,n){return e.width=t,e.height=n,e},lM=function(e){return e.naturalWidth||e.width},cM=function(e){return e.naturalHeight||e.height},uM=function(){var e=function(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],u(e,r(a,this),r(s,this))},t=window,n=e.immediateFn||"function"===typeof t.setImmediate&&t.setImmediate||function(e){return setTimeout(e,1)},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.apply(t,n)}},i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e){var t=this;null!==this._state?n((function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void e.reject(i)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})):this._deferreds.push(e)}function a(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var t=e.then;if("function"===typeof t)return void u(r(t,e),r(a,this),r(s,this))}this._state=!0,this._value=e,l.call(this)}catch(n){s.call(this,n)}}function s(e){this._state=!1,this._value=e,l.call(this)}function l(){for(var e=0,t=this._deferreds;e<t.length;e++){var n=t[e];o.call(this,n)}this._deferreds=[]}function c(e,t,n,r){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r}var u=function(e,t,n){var r=!1;try{e((function(e){r||(r=!0,t(e))}),(function(e){r||(r=!0,n(e))}))}catch(i){if(r)return;r=!0,n(i)}};return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){o.call(r,new c(t,n,e,i))}))},e.all=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Array.prototype.slice.call(1===t.length&&i(t[0])?t[0]:t);return new e((function(e,t){if(0===r.length)return e([]);for(var n=r.length,i=function(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),t)}r[o]=a,0===--n&&e(r)}catch(l){t(l)}},o=0;o<r.length;o++)i(o,r[o])}))},e.resolve=function(t){return t&&"object"===typeof t&&t.constructor===e?t:new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];o.then(e,n)}}))},e},dM=window.Promise?window.Promise:uM(),fM=function(e){return new dM((function(t,n){var r=URL.createObjectURL(e),i=new Image,o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)},a=function(){o(),t(i)},s=function(){o(),n("Unable to load data of type "+e.type+": "+r)};i.addEventListener("load",a),i.addEventListener("error",s),i.src=r,i.complete&&setTimeout(a,0)}))},hM=function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return w.none();for(var r=n[1],i=t[1],o=1024,a=atob(i),s=a.length,l=Math.ceil(s/o),c=new Array(l),u=0;u<l;++u){for(var d=u*o,f=Math.min(d+o,s),h=new Array(f-d),p=d,m=0;p<f;++m,++p)h[m]=a[p].charCodeAt(0);c[u]=new Uint8Array(h)}return w.some(new Blob(c,{type:r}))},pM=function(e){return new dM((function(t,n){hM(e).fold((function(){n("uri is not base64: "+e)}),t)}))},mM=function(e,t,n){return t=t||"image/png",M(HTMLCanvasElement.prototype.toBlob)?new dM((function(r,i){e.toBlob((function(e){e?r(e):i()}),t,n)})):pM(e.toDataURL(t,n))},gM=function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)},vM=function(e){return fM(e).then((function(e){bM(e);var t=iM(lM(e),cM(e)),n=aM(t);return n.drawImage(e,0,0),t}))},yM=function(e){return new dM((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},bM=function(e){URL.revokeObjectURL(e.src)},_M=function(e,t,n){var r=t.type,i=o(r),a=function(){return dM.resolve(t)},s=o(n),l=function(){return n.split(",")[1]},c=function(t,n){return e.then((function(e){return mM(e,t,n)}))},u=function(t,n){return e.then((function(e){return gM(e,t,n)}))},d=function(e,t){return u(e,t).then((function(e){return e.split(",")[1]}))},f=function(){return e.then(oM)};return{getType:i,toBlob:a,toDataURL:s,toBase64:l,toAdjustedBlob:c,toAdjustedDataURL:u,toAdjustedBase64:d,toCanvas:f}},wM=function(e){return yM(e).then((function(t){return _M(vM(e),e,t)}))},xM=function(e,t){return mM(e,t).then((function(t){return _M(dM.resolve(e),t,e.toDataURL())}))},SM=function(e){return wM(e)},CM=function(e,t,n){var r="string"===typeof e?parseFloat(e):e;return r>n?r=n:r<t&&(r=t),r},EM=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},kM=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],OM=function(e,t){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=t[a+5*o];for(a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=e[a+5*s]*r[s];i[a+5*o]=n}}return i},TM=function(e,t){var n;return t=CM(t,-1,1),t*=100,t<0?n=127+t/100*127:(n=t%1,n=0===n?kM[t]:kM[Math.floor(t)]*(1-n)+kM[Math.floor(t)+1]*n,n=127*n+127),OM(e,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])},IM=function(e,t){return t=CM(255*t,-255,255),OM(e,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])},AM=function(e,t,n,r){return t=CM(t,0,2),n=CM(n,0,2),r=CM(r,0,2),OM(e,[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},RM=function(e,t){return e.toCanvas().then((function(n){return PM(n,e.getType(),t)}))},PM=function(e,t,n){var r=aM(e),i=function(e,t){for(var n,r,i,o,a=e.data,s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=t[8],g=t[9],v=t[10],y=t[11],b=t[12],_=t[13],w=t[14],x=t[15],S=t[16],C=t[17],E=t[18],k=t[19],O=0;O<a.length;O+=4)n=a[O],r=a[O+1],i=a[O+2],o=a[O+3],a[O]=n*s+r*l+i*c+o*u+d,a[O+1]=n*f+r*h+i*p+o*m+g,a[O+2]=n*v+r*y+i*b+o*_+w,a[O+3]=n*x+r*S+i*C+o*E+k;return e},o=i(r.getImageData(0,0,e.width,e.height),n);return r.putImageData(o,0,0),xM(e,t)},MM=function(e,t){return e.toCanvas().then((function(n){return NM(n,e.getType(),t)}))},NM=function(e,t,n){var r=aM(e),i=function(e,t,n){for(var r=function(e,t,n){return e>n?e=n:e<t&&(e=t),e},i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=e.data,s=t.data,l=e.width,c=e.height,u=0;u<c;u++)for(var d=0;d<l;d++){for(var f=0,h=0,p=0,m=0;m<i;m++)for(var g=0;g<i;g++){var v=r(d+g-o,0,l-1),y=r(u+m-o,0,c-1),b=4*(y*l+v),_=n[m*i+g];f+=a[b]*_,h+=a[b+1]*_,p+=a[b+2]*_}var w=4*(u*l+d);s[w]=r(f,0,255),s[w+1]=r(h,0,255),s[w+2]=r(p,0,255)}return t},o=r.getImageData(0,0,e.width,e.height),a=r.getImageData(0,0,e.width,e.height);return a=i(o,a,n),r.putImageData(a,0,0),xM(e,t)},LM=function(e){var t=function(t,n,r){for(var i=aM(t),o=new Array(256),a=function(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e},s=0;s<o.length;s++)o[s]=e(s,r);var l=a(i.getImageData(0,0,t.width,t.height),o);return i.putImageData(l,0,0),xM(t,n)};return function(e,n){return e.toCanvas().then((function(r){return t(r,e.getType(),n)}))}},DM=function(e){return function(t,n){return RM(t,e(EM(),n))}},jM=function(e){return function(t){return RM(t,e)}},FM=function(e){return function(t){return MM(t,e)}},BM=jM([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),qM=DM(IM),zM=DM(TM),UM=function(e,t,n,r){return RM(e,AM(EM(),t,n,r))},GM=FM([0,-1,0,-1,5,-1,0,-1,0]),VM=LM((function(e,t){return 255*Math.pow(e/255,1-t)})),WM=function(e,t,n){var r=lM(e),i=cM(e),o=t/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var l=HM(e,o,a);return s?l.then((function(e){return WM(e,t,n)})):l},HM=function(e,t,n){return new dM((function(r){var i=lM(e),o=cM(e),a=Math.floor(i*t),s=Math.floor(o*n),l=iM(a,s),c=aM(l);c.drawImage(e,0,0,i,o,0,0,a,s),r(l)}))},$M=function(e,t){return e.toCanvas().then((function(n){return KM(n,e.getType(),t)}))},KM=function(e,t,n){var r=iM(e.width,e.height),i=aM(r),o=0,a=0;return n=n<0?360+n:n,90!==n&&270!==n||sM(r,r.height,r.width),90!==n&&180!==n||(o=r.width),270!==n&&180!==n||(a=r.height),i.translate(o,a),i.rotate(n*Math.PI/180),i.drawImage(e,0,0),xM(r,t)},XM=function(e,t){return e.toCanvas().then((function(n){return YM(n,e.getType(),t)}))},YM=function(e,t,n){var r=iM(e.width,e.height),i=aM(r);return"v"===n?(i.scale(1,-1),i.drawImage(e,0,-r.height)):(i.scale(-1,1),i.drawImage(e,-r.width,0)),xM(r,t)},JM=function(e,t,n,r,i){return e.toCanvas().then((function(o){return QM(o,e.getType(),t,n,r,i)}))},QM=function(e,t,n,r,i,o){var a=iM(i,o),s=aM(a);return s.drawImage(e,-n,-r),xM(a,t)},ZM=function(e,t,n){return e.toCanvas().then((function(r){return WM(r,t,n).then((function(t){return xM(t,e.getType())}))}))},eN=function(e){return BM(e)},tN=function(e){return GM(e)},nN=function(e,t){return VM(e,t)},rN=function(e,t,n,r){return UM(e,t,n,r)},iN=function(e,t){return qM(e,t)},oN=function(e,t){return zM(e,t)},aN=function(e,t){return XM(e,t)},sN=function(e,t,n,r,i){return JM(e,t,n,r,i)},lN=function(e,t,n){return ZM(e,t,n)},cN=function(e,t){return $M(e,t)},uN=function(e,t){return h({dom:{tag:"span",innerHtml:e,classes:["tox-icon","tox-tbtn__icon-wrap"]}},t)},dN=function(e,t){return uN(ew(e,t),{})},fN=function(e,t){return uN(ew(e,t),{behaviours:qu([wb.config({})])})},hN=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:qu([wb.config({})])}},pN=ja("toolbar.button.execute"),mN=function(e){return Mo((function(t,n){XC(e,t)((function(n){uo(t,pN,{buttonApi:n}),e.onAction(n)}))}))},gN=(tI={},tI[Ui()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],tI),vN=ja("update-menu-text"),yN=ja("update-menu-icon"),bN=function(e,n,r){var i=Xn(t),o=e.text.map((function(e){return Q_(hN(e,n,r.providers))})),a=e.icon.map((function(e){return Q_(fN(e,r.providers.icons))})),l=function(e,t){var n=Xp.getValue(e);return Pb.focus(n),uo(n,"keydown",{raw:t.event.raw}),vI.close(n),w.some(!0)},c=e.role.fold((function(){return{}}),(function(e){return{role:e}})),u=e.tooltip.fold((function(){return{}}),(function(e){var t=r.providers.translate(e);return{title:t,"aria-label":t}})),d=Q_(vI.sketch(h(h(h({},e.uid?{uid:e.uid}:{}),c),{dom:{tag:"button",classes:[n,n+"--select"].concat(W(e.classes,(function(e){return n+"--"+e}))),attributes:h({},u)},components:eE([a.map((function(e){return e.asSpec()})),o.map((function(e){return e.asSpec()})),w.some({dom:{tag:"div",classes:[n+"__select-chevron"],innerHtml:ew("chevron-down",r.providers.icons)}})]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:qu(m(e.dropdownBehaviours,[KC.button((function(){return e.disabled||r.providers.isDisabled()})),GC(),wI.config({}),wb.config({}),Sb("dropdown-events",[YC(e,i),JC(e,i)]),Sb("menubutton-update-display-text",[_o(vN,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){wb.set(e,[gl(r.providers.translate(t.event.text))])}))})),_o(yN,(function(e,t){a.bind((function(t){return t.getOpt(e)})).each((function(e){wb.set(e,[fN(t.event.icon,r.providers.icons)])}))}))])])),eventOrder:Ke(gN,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:qu([db.config({mode:"special",onLeft:l,onRight:l})]),lazySink:r.getSink,toggleClass:n+"--active",parts:{menu:Dx(!1,e.columns,e.presets)},fetch:function(t){return NT.nu(s(e.fetch,t))}})));return d.asSpec()},_N=function(e){return k(e)},wN=function(e){return"separator"===e.type},xN=function(e){return qe(e,"getSubmenuItems")},SN={type:"separator"},CN=function(e,t){var n=J(e,(function(e,n){return _N(n)?""===n?e:"|"===n?e.length>0&&!wN(e[e.length-1])?e.concat([SN]):e:qe(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&wN(n[n.length-1])&&n.pop(),n},EN=function(e,t){var n=e.getSubmenuItems(),r=TN(n,t),i=Ke(r.menus,ct(e.value,r.items)),o=Ke(r.expansions,ct(e.value,e.value));return{item:e,menus:i,expansions:o}},kN=function(e,t){return xN(e)?EN(e,t):{item:e,menus:{},expansions:{}}},ON=function(e){if(wN(e))return e;var t=Be(e,"value").getOrThunk((function(){return ja("generated-menu-item")}));return Ke({value:t},e)},TN=function(e,t){var n=CN(k(e)?e.split(" "):e,t);return Y(n,(function(e,n){var r=ON(n),i=kN(r,t);return{menus:Ke(e.menus,i.menus),items:[i.item].concat(e.items),expansions:Ke(e.expansions,i.expansions)}}),{menus:{},expansions:{},items:[]})},IN=function(e,t,n,r){var i=ja("primary-menu"),o=TN(e,n.shared.providers.menuItems());if(0===o.items.length)return w.none();var a=aO(i,o.items,t,n,r),s=Re(o.menus,(function(e,r){return aO(r,e,t,n,!1)})),l=Ke(s,ct(i,a));return w.from(N_.tieredData(i,l,o.expansions))},AN=function(e){return{isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)},setActive:function(t){var n=e.element;t?(js(n,"tox-tbtn--enabled"),Sa(n,"aria-pressed",!0)):(Bs(n,"tox-tbtn--enabled"),Ta(n,"aria-pressed"))},isActive:function(){return qs(e.element,"tox-tbtn--enabled")}}},RN=function(e,t,n,r){return bN({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(IN(e,lx.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:AN,columns:1,presets:"normal",classes:[],dropdownBehaviours:[ZO.config({})]},t,n.shared)},PN=function(e,t,n){var r=function(e){return function(r){var i=!r.isActive();r.setActive(i),e.storage.set(i),n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){Yu(t.element),uo(t,uT,{name:e.name,value:e.storage.get()})}))}))}},i=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t(W(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return h(h({type:e.type,active:!1},t),{onAction:r(e),onSetup:i(e)})})))}},MN=function(e,t,n,r,i,o){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),s=h({buttonBehaviours:qu([KC.button((function(){return e.disabled||o.isDisabled()})),GC(),ZO.config({}),Sb("button press",[bo("click"),bo("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),l=Ke(s,{dom:r});return Ke(l,{components:i})},NN=function(e,t,n,r){void 0===r&&(r=[]);var i=e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=e.icon.map((function(e){return dN(e,n.icons)})),s=eE([a]);return MN(e,t,r,o,s,n)},LN=function(e,t,n,r){void 0===r&&(r=[]);var i=NN(e,w.some(t),n,r);return J_.sketch(i)},DN=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=n.translate(e.text),a=e.icon?e.icon.map((function(e){return dN(e,n.icons)})):w.none(),s=a.isSome()?eE([a]):[],l=a.isSome()?{}:{innerHtml:o},c=m(e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],a.isSome()?["tox-button--icon"]:[],e.borderless?["tox-button--naked"]:[],i),u=h(h({tag:"button",classes:c},l),{attributes:{title:o}});return MN(e,t,r,u,s,n)},jN=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=DN(e,w.some(t),n,r,i);return J_.sketch(o)},FN=function(e,t){return function(n){"custom"===t?uo(n,uT,{name:e,value:{}}):"submit"===t?co(n,dT):"cancel"===t?co(n,cT):console.error("Unknown button type: ",t)}},BN=function(e,t){return"menu"===t},qN=function(e,t){return"custom"===t||"cancel"===t||"submit"===t},zN=function(e,n,r){if(BN(e,n)){var i=function(){return s},o=e,a=h(h({},e),{onSetup:function(n){return n.setDisabled(e.disabled),t},fetch:PN(o.items,i,r)}),s=Q_(RN(a,"tox-tbtn",r,w.none()));return s.asSpec()}if(qN(e,n)){var l=FN(e.name,n),c=h(h({},e),{borderless:!1});return jN(c,l,r.shared.providers,[])}console.error("Unknown footer button type: ",n)},UN=function(e,t){var n=FN(e.name,"custom");return nT(w.none(),XO.parts.field(h({factory:J_},DN(e,w.some(n),t,[GP.memory(""),OP.self()]))))},GN=o([Fn("field1Name","field1"),Fn("field2Name","field2"),qc("onLockedChange"),Dc(["lockClass"]),Fn("locked",!1),Zp.field("coupledFieldBehaviours",[bg,Xp])]),VN=function(e,t,n){return Gm(e,t,n).bind(bg.getCurrent)},WN=function(e,t){return Tm({factory:XO,name:e,overrides:function(e){return{fieldBehaviours:qu([Sb("coupled-input-behaviour",[_o(Ri(),(function(n){VN(n,e,t).each((function(t){Gm(n,e,"lock").each((function(r){Jb.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},HN=o([WN("field1","field2"),WN("field2","field1"),Tm({factory:J_,schema:[bn("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:qu([Jb.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),$N=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:Zp.augment(e.coupledFieldBehaviours,[bg.config({find:w.some}),Xp.config({store:{mode:"manual",getValue:function(t){var n,r=Km(t,e,["field1","field2"]);return n={},n[e.field1Name]=Xp.getValue(r.field1()),n[e.field2Name]=Xp.getValue(r.field2()),n},setValue:function(t,n){var r=Km(t,e,["field1","field2"]);ze(n,e.field1Name)&&Xp.setValue(r.field1(),n[e.field1Name]),ze(n,e.field2Name)&&Xp.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return Gm(t,e,"field1")},getField2:function(t){return Gm(t,e,"field2")},getLock:function(t){return Gm(t,e,"lock")}}}},KN=lg({name:"FormCoupledInputs",configFields:GN(),partFields:HN(),factory:$N,apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),XN=function(e){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(e){return e in t?t[e]:1},r=e.value.toFixed(n(e.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit},YN=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=t.exec(e);if(null!==n){var r=parseFloat(n[1]),i=n[2];return ge.value({value:r,unit:i})}return ge.error(e)},JN=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Object.prototype.hasOwnProperty.call(n,e)};return e.unit===t?w.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?w.some(e.value):w.some(e.value/n[e.unit]*n[t]):w.none()},QN=function(e){return w.none()},ZN=function(e,t){return function(n){return JN(n,t).map((function(n){return{value:n*e,unit:t}}))}},eL=function(e,t){var n=YN(e).toOptional(),r=YN(t).toOptional();return dg(n,r,(function(e,t){return JN(e,t.unit).map((function(e){return t.value/e})).map((function(e){return ZN(e,t.unit)})).getOr(QN)})).getOr(QN)},tL=function(e,t){var n=QN,r=ja("ratio-event"),i=KN.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:ew("lock",t.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:ew("unlock",t.icons)}}],buttonBehaviours:qu([YS.config({disabled:function(){return e.disabled||t.isDisabled()}}),GC(),ZO.config({})])}),o=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},a=function(n){return XO.parts.field({factory:xT,inputClasses:["tox-textfield"],inputBehaviours:qu([YS.config({disabled:function(){return e.disabled||t.isDisabled()}}),GC(),ZO.config({}),Sb("size-input-events",[_o(Oi(),(function(e,t){uo(e,r,{isField1:n})})),_o(Pi(),(function(t,n){uo(t,sT,{name:e.name})}))])]),selectOnFocus:!1})},s=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},l=KN.parts.field1(o([XO.parts.label(s("Width")),a(!0)])),c=KN.parts.field2(o([XO.parts.label(s("Height")),a(!1)]));return KN.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[l,c,o([s("&nbsp;"),i])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){YN(Xp.getValue(e)).each((function(e){n(e).each((function(e){Xp.setValue(t,XN(e))}))}))},coupledFieldBehaviours:qu([YS.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){KN.getField1(e).bind(XO.getField).each(YS.disable),KN.getField2(e).bind(XO.getField).each(YS.disable),KN.getLock(e).each(YS.disable)},onEnabled:function(e){KN.getField1(e).bind(XO.getField).each(YS.enable),KN.getField2(e).bind(XO.getField).each(YS.enable),KN.getLock(e).each(YS.enable)}}),GC(),Sb("size-input-events2",[_o(r,(function(e,t){var r=t.event.isField1,i=r?KN.getField1(e):KN.getField2(e),o=r?KN.getField2(e):KN.getField1(e),a=i.map(Xp.getValue).getOr(""),s=o.map(Xp.getValue).getOr("");n=eL(a,s)}))])])})},nL=o(ja("undo")),rL=o(ja("redo")),iL=o(ja("zoom")),oL=o(ja("back")),aL=o(ja("apply")),sL=o(ja("swap")),lL=o(ja("transform")),cL=o(ja("temp-transform")),uL=o(ja("transform-apply")),dL={undo:nL,redo:rL,zoom:iL,back:oL,apply:aL,swap:sL,transform:lL,tempTransform:cL,transformApply:uL},fL=o("save-state"),hL=o("disable"),pL=o("enable"),mL={formActionEvent:uT,saveState:fL,disable:hL,enable:pL},gL=function(e,n){var r=function(e,t,r,i){return Q_(jN({name:e,text:e,disabled:r,primary:i,icon:w.none(),borderless:!1},t,n))},i=function(e,t,r,i){return Q_(LN({name:e,icon:w.some(e),tooltip:w.some(t),disabled:i,primary:!1,borderless:!1},r,n))},a=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(YS)&&YS.disable(n)}))},s=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(YS)&&YS.enable(n)}))},l={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},c=t,u=function(e,t,n){uo(e,t,n)},d=function(e){return co(e,mL.disable())},f=function(e){return co(e,mL.enable())},h=function(e,t){d(e),u(e,dL.transform(),{transform:t}),f(e)},p=function(e,t){d(e),u(e,dL.tempTransform(),{transform:t}),f(e)},m=function(e){return function(){ae.getOpt(e).each((function(e){wb.set(e,[ie])}))}},g=function(e,t){d(e),u(e,dL.transformApply(),{transform:t,swap:m(e)}),f(e)},v=function(){return r("Back",(function(e){return u(e,dL.back(),{swap:m(e)})}),!1,!1)},y=function(){return Q_({dom:{tag:"div",classes:["tox-spacer"]},behaviours:qu([YS.config({})])})},b=function(){return r("Apply",(function(e){return u(e,dL.apply(),{swap:m(e)})}),!0,!0)},_=function(){return function(t){var n=e.getRect();return sN(t,n.x,n.y,n.w,n.h)}},x=[v(),y(),r("Apply",(function(t){var n=_();g(t,n),e.hideCrop()}),!1,!0)],S=GO.sketch({dom:l,components:x.map((function(e){return e.asSpec()})),containerBehaviours:qu([Sb("image-tools-crop-buttons-events",[_o(mL.disable(),(function(e,t){a(x,e)})),_o(mL.enable(),(function(e,t){s(x,e)}))])])}),C=Q_(tL({name:"size",label:w.none(),constrain:!0,disabled:!1},n)),E=function(e,t){return function(n){return lN(n,e,t)}},k=[v(),y(),C,y(),r("Apply",(function(e){C.getOpt(e).each((function(t){var n=Xp.getValue(t),r=parseInt(n.width,10),i=parseInt(n.height,10),o=E(r,i);g(e,o)}))}),!1,!0)],O=GO.sketch({dom:l,components:k.map((function(e){return e.asSpec()})),containerBehaviours:qu([Sb("image-tools-resize-buttons-events",[_o(mL.disable(),(function(e,t){a(k,e)})),_o(mL.enable(),(function(e,t){s(k,e)}))])])}),T=function(e,t){return function(n){return e(n,t)}},I=T(aN,"h"),A=T(aN,"v"),R=T(cN,-90),P=T(cN,90),M=function(e,t){p(e,t)},N=[v(),y(),i("flip-horizontally","Flip horizontally",(function(e){M(e,I)}),!1),i("flip-vertically","Flip vertically",(function(e){M(e,A)}),!1),i("rotate-left","Rotate counterclockwise",(function(e){M(e,R)}),!1),i("rotate-right","Rotate clockwise",(function(e){M(e,P)}),!1),y(),b()],L=GO.sketch({dom:l,components:N.map((function(e){return e.asSpec()})),containerBehaviours:qu([Sb("image-tools-fliprotate-buttons-events",[_o(mL.disable(),(function(e,t){a(N,e)})),_o(mL.enable(),(function(e,t){s(N,e)}))])])}),D=function(e,t,r,i,a){var s=lP.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:n.translate(e)}}),l=lP.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=lP.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Q_(lP.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:a,getInitialValue:o({x:i})},components:[s,l,c],sliderBehaviours:qu([Pb.config({})]),onChoose:t}))},j=function(e,t,n,r,i){var o=function(e,n,r){var i=T(t,r.x/100);h(e,i)};return D(e,o,n,r,i)},F=function(e,t,n,r,i){return[v(),j(e,t,n,r,i),b()]},B=function(e,t,n,r,i){var o=F(e,t,n,r,i);return GO.sketch({dom:l,components:o.map((function(e){return e.asSpec()})),containerBehaviours:qu([Sb("image-tools-filter-panel-buttons-events",[_o(mL.disable(),(function(e,t){a(o,e)})),_o(mL.enable(),(function(e,t){s(o,e)}))])])})},q=[v(),y(),b()],z=GO.sketch({dom:l,components:q.map((function(e){return e.asSpec()}))}),U=B("Brightness",iN,-100,0,100),G=B("Contrast",oN,-100,0,100),V=B("Gamma",nN,-100,0,100),W=function(e,t,n){return function(r){return rN(r,e,t,n)}},H=function(e){var t=function(e,t,n){var r=$.getOpt(e),i=X.getOpt(e),o=K.getOpt(e);r.each((function(t){i.each((function(n){o.each((function(r){var i=Xp.getValue(t).x/100,o=Xp.getValue(r).x/100,a=Xp.getValue(n).x/100,s=W(i,o,a);h(e,s)}))}))}))};return D(e,t,0,100,200)},$=H("R"),K=H("G"),X=H("B"),Y=[v(),$,K,X,b()],J=GO.sketch({dom:l,components:Y.map((function(e){return e.asSpec()}))}),Q=function(e,t,n){return function(r){var i=function(){ae.getOpt(r).each((function(t){wb.set(t,[e]),n(t)}))};u(r,dL.swap(),{transform:t,swap:i})}},Z=function(t){e.showCrop()},ee=function(t){C.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,i=n.height;Xp.setValue(t,{width:r,height:i})}))},te=w.some(tN),ne=w.some(eN),re=[i("crop","Crop",Q(S,w.none(),Z),!1),i("resize","Resize",Q(O,w.none(),ee),!1),i("orientation","Orientation",Q(L,w.none(),c),!1),i("brightness","Brightness",Q(U,w.none(),c),!1),i("sharpen","Sharpen",Q(z,te,c),!1),i("contrast","Contrast",Q(G,w.none(),c),!1),i("color-levels","Color levels",Q(J,w.none(),c),!1),i("gamma","Gamma",Q(V,w.none(),c),!1),i("invert","Invert",Q(z,ne,c),!1)],ie=GO.sketch({dom:l,components:re.map((function(e){return e.asSpec()}))}),oe=GO.sketch({dom:{tag:"div"},components:[ie],containerBehaviours:qu([wb.config({})])}),ae=Q_(oe),se=function(e){return ae.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))};return{memContainer:ae,getApplyButton:se}},vL=tinymce.util.Tools.resolve("tinymce.geom.Rect"),yL=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),bL=tinymce.util.Tools.resolve("tinymce.util.Observable"),_L=tinymce.util.Tools.resolve("tinymce.util.VK"),wL=function(e){var t=Math.max,n=e.documentElement,r=e.body,i=t(n.scrollWidth,r.scrollWidth),o=t(n.clientWidth,r.clientWidth),a=t(n.offsetWidth,r.offsetWidth),s=t(n.scrollHeight,r.scrollHeight),l=t(n.clientHeight,r.clientHeight),c=t(n.offsetHeight,r.offsetHeight);return{width:i<a?o:i,height:s<c?l:s}},xL=function(e){var t,n;if(e.changedTouches)for(t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]};function SL(e,t){var n,r,i,o,a=t.document||document,s=a.getElementById(t.handle||e),l=function(e){var l,d=wL(a);xL(e),e.preventDefault(),r=e.button;var f=s;i=e.screenX,o=e.screenY,l=window.getComputedStyle?window.getComputedStyle(f,null).getPropertyValue("cursor"):f.runtimeStyle.cursor,n=yL("<div></div>").css({position:"absolute",top:0,left:0,width:d.width,height:d.height,zIndex:2147483647,opacity:1e-4,cursor:l}).appendTo(a.body),yL(a).on("mousemove touchmove",c).on("mouseup touchend",u),t.start(e)},c=function(e){if(xL(e),e.button!==r)return u(e);e.deltaX=e.screenX-i,e.deltaY=e.screenY-o,e.preventDefault(),t.drag(e)},u=function(e){xL(e),yL(a).off("mousemove touchmove",c).off("mouseup touchend",u),n.remove(),t.stop&&t.stop(e)},d=function(){yL(s).off()};return yL(s).on("mousedown touchstart",l),{destroy:d}}var CL=0,EL=function(e,t,n,r,i){var o,a="tox-",s=a+"crid-"+CL++,l=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],c=["top","right","bottom","left"],u=function(e,t){return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},d=function(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}},f=function(){return d(n,e)},h=function(t,r,i,o){var a,s,l,c,u;a=r.x,s=r.y,l=r.w,c=r.h,a+=i*t.deltaX,s+=o*t.deltaY,l+=i*t.deltaW,c+=o*t.deltaH,l<20&&(l=20),c<20&&(c=20),u=e=vL.clamp({x:a,y:s,w:l,h:c},n,"move"===t.name),u=d(n,u),x.fire("updateRect",{rect:u}),b(u)},p=function(){var t=function(t){var n;return SL(s,{document:r.ownerDocument,handle:s+"-"+t.name,start:function(){n=e},drag:function(e){h(t,n,e.deltaX,e.deltaY)}})};yL('<div id="'+s+'" class="'+a+'croprect-container" role="grid" aria-dropeffect="execute">').appendTo(r),LP.each(c,(function(e){yL("#"+s,r).append('<div id="'+s+"-"+e+'"class="'+a+'croprect-block" style="display: none" data-mce-bogus="all">')})),LP.each(l,(function(e){yL("#"+s,r).append('<div id="'+s+"-"+e.name+'" class="'+a+"croprect-handle "+a+"croprect-handle-"+e.name+'"style="display: none" data-mce-bogus="all" role="gridcell" tabindex="-1" aria-label="'+e.label+'" aria-grabbed="false" title="'+e.label+'">')})),o=LP.map(l,t),g(e),yL(r).on("focusin focusout",(function(e){yL(e.target).attr("aria-grabbed","focus"===e.type?"true":"false")})),yL(r).on("keydown",(function(t){var n;LP.each(l,(function(e){if(t.target.id===s+"-"+e.name)return n=e,!1}));var r=function(e,t,r,i,o){e.stopPropagation(),e.preventDefault(),h(n,r,i,o)};switch(t.keyCode){case _L.LEFT:r(t,n,e,-10,0);break;case _L.RIGHT:r(t,n,e,10,0);break;case _L.UP:r(t,n,e,0,-10);break;case _L.DOWN:r(t,n,e,0,10);break;case _L.ENTER:case _L.SPACEBAR:t.preventDefault(),i();break}}))},m=function(e){var t=LP.map(l,(function(e){return"#"+s+"-"+e.name})).concat(LP.map(c,(function(e){return"#"+s+"-"+e}))).join(",");e?yL(t,r).show():yL(t,r).hide()},g=function(e){var n=function(e,t){t.h<0&&(t.h=0),t.w<0&&(t.w=0),yL("#"+s+"-"+e,r).css({left:t.x,top:t.y,width:t.w,height:t.h})};LP.each(l,(function(t){yL("#"+s+"-"+t.name,r).css({left:e.w*t.xMul+e.x,top:e.h*t.yMul+e.y})})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)},v=function(t){e=t,g(e)},y=function(n){t=n,g(e)},b=function(e){v(u(n,e))},_=function(t){n=t,g(e)},w=function(){LP.each(o,(function(e){e.destroy()})),o=[]};p();var x=LP.extend({toggleVisibility:m,setClampRect:_,setRect:v,getInnerRect:f,setInnerRect:b,setViewPortRect:y,destroy:w},bL);return x},kL={create:EL},OL=function(e){return new Ew((function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)}))},TL=function(e){var n=Q_({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),r=Xn(1),i=Xn(w.none()),o=Xn({x:0,y:0,w:1,h:1}),a=Xn({x:0,y:0,w:1,h:1}),s=function(e,t){m.getOpt(e).each((function(e){var a=r.get(),s=Nl(e.element),l=Sl(e.element),c=t.dom.naturalWidth*a,u=t.dom.naturalHeight*a,d=Math.max(0,s/2-c/2),f=Math.max(0,l/2-u/2),h={left:d.toString()+"px",top:f.toString()+"px",width:c.toString()+"px",height:u.toString()+"px",position:"absolute"};Ys(t,h),n.getOpt(e).each((function(e){Ys(e.element,h)})),i.get().each((function(e){var t=o.get();e.setRect({x:t.x*a+d,y:t.y*a+f,w:t.w*a,h:t.h*a}),e.setClampRect({x:d,y:f,w:c,h:u}),e.setViewPortRect({x:0,y:0,w:s,h:l})}))}))},l=function(e,t){m.getOpt(e).each((function(e){var n=Nl(e.element),i=Sl(e.element),o=t.dom.naturalWidth,a=t.dom.naturalHeight,s=Math.min(n/o,i/a);s>=1?r.set(1):r.set(s)}))},c=function(e,t){var n=tr.fromTag("img");return Sa(n,"src",t),OL(n.dom).then((function(){return m.getOpt(e).map((function(e){var t=vl({element:n});wb.replaceAt(e,1,w.some(t));var r=a.get(),i={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};a.set(i);var c=vL.inflate(i,-20,-20);return o.set(c),r.w===i.w&&r.h===i.h||l(e,n),s(e,n),n}))}))},u=function(e,t){var n=r.get(),i=t>0?Math.min(2,n+.1):Math.max(.1,n-.1);r.set(i),m.getOpt(e).each((function(e){var t=e.components()[1].element;s(e,t)}))},d=function(){i.get().each((function(e){e.toggleVisibility(!0)}))},f=function(){i.get().each((function(e){e.toggleVisibility(!1)}))},h=function(){return o.get()},p=GO.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[n.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:qu([Sb("image-panel-crop-events",[Ao((function(e){m.getOpt(e).each((function(e){var n=e.element.dom,a=kL.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},n,t);a.toggleVisibility(!1),a.on("updateRect",(function(e){var t=e.rect,n=r.get(),i={x:Math.round(t.x/n),y:Math.round(t.y/n),w:Math.round(t.w/n),h:Math.round(t.h/n)};o.set(i)})),i.set(w.some(a))}))}))])])}],containerBehaviours:qu([wb.config({}),Sb("image-panel-events",[Ao((function(t){c(t,e)}))])])}),m=Q_(p),g=function(){var e=a.get();return{width:e.w,height:e.h}};return{memContainer:m,updateSrc:c,zoom:u,showCrop:d,hideCrop:f,getRect:h,getMeasurements:g}},IL=function(e,t,n,r,i){return LN({name:e,icon:w.some(t),disabled:n,tooltip:w.some(e),primary:!1,borderless:!1},r,i)},AL=function(e,t){t?YS.enable(e):YS.disable(e)},RL=function(e){var t=function(e,t,i){n.getOpt(e).each((function(e){AL(e,t)})),r.getOpt(e).each((function(e){AL(e,i)}))},n=Q_(IL("Undo","undo",!0,(function(e){uo(e,dL.undo(),{direction:1})}),e)),r=Q_(IL("Redo","redo",!0,(function(e){uo(e,dL.redo(),{direction:1})}),e)),i=GO.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),IL("Zoom in","zoom-in",!1,(function(e){uo(e,dL.zoom(),{direction:1})}),e),IL("Zoom out","zoom-out",!1,(function(e){uo(e,dL.zoom(),{direction:-1})}),e)]});return{container:i,updateButtonUndoStates:t}};function PL(){var e=[],t=-1,n=function(n){var r=e.splice(++t);return e.push(n),{state:n,removed:r}},r=function(){if(o())return e[--t]},i=function(){if(a())return e[++t]},o=function(){return t>0},a=function(){return-1!==t&&t<e.length-1};return{data:e,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var ML,NL=function(e){var n=Xn(e),r=Xn(w.none()),i=PL();i.add(e);var o=function(){return n.get()},a=function(e){n.set(e)},s=function(){return r.get().fold((function(){return n.get()}),(function(e){return e}))},l=function(e){var t=c(e);return f(),r.set(w.some(t)),t.url},c=function(e){return{blob:e,url:URL.createObjectURL(e)}},u=function(e){URL.revokeObjectURL(e.url)},d=function(e){LP.each(e,u)},f=function(){r.get().each(u),r.set(w.none())},h=function(e){var t=c(e);a(t);var n=i.add(t).removed;return d(n),t.url},p=function(e){var t=c(e);return r.set(w.some(t)),t.url},m=function(e){return r.get().fold(t,(function(t){h(t.blob),e()}))},g=function(){var e=i.undo();return a(e),e.url},v=function(){var e=i.redo();return a(e),e.url},y=function(){var e=i.canUndo(),t=i.canRedo();return{undoEnabled:e,redoEnabled:t}};return{getBlobState:o,setBlobState:a,addBlobState:h,getTempState:s,updateTempState:l,addTempState:p,applyTempState:m,destroyTempState:f,undo:g,redo:v,getHistoryStates:y}},LL=function(e,n){var r=NL(e.currentState),i=function(e,t){var n=t.event.direction;C.zoom(e,n)},o=function(e){var t=r.getHistoryStates();E.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),uo(e,mL.formActionEvent,{name:mL.saveState(),value:t.undoEnabled})},a=function(e){E.updateButtonUndoStates(e,!1,!1)},s=function(e,t){var n=r.undo();f(e,n).then((function(t){d(e),o(e)}))},l=function(e,t){var n=r.redo();f(e,n).then((function(t){d(e),o(e)}))},c=function(e){return e.toBlob()},u=function(e){uo(e,mL.formActionEvent,{name:mL.disable(),value:{}})},d=function(e){k.getApplyButton(e).each((function(e){YS.enable(e)})),uo(e,mL.formActionEvent,{name:mL.enable(),value:{}})},f=function(e,t){return u(e),C.updateSrc(e,t)},h=function(e,t,n,r,i){return u(e),SM(t).then(n).then(c).then(r).then((function(t){return f(e,t).then((function(t){return o(e),i(),d(e),t}))})).catch((function(t){return console.log(t),d(e),t}))},p=function(e,t,n){var i=r.getBlobState().blob,o=function(e){return r.updateTempState(e)};h(e,i,t,o,n)},m=function(e,n){var i=r.getTempState().blob,o=function(e){return r.addTempState(e)};h(e,i,n,o,t)},g=function(e,t,n){var i=r.getBlobState().blob,o=function(t){var n=r.addBlobState(t);return y(e),n};h(e,i,t,o,n)},v=function(e,t){var n=function(){y(e);var n=t.event.swap;n()};r.applyTempState(n)},y=function(e){var t=r.getBlobState().url;return r.destroyTempState(),o(e),t},b=function(e){var t=y(e);f(e,t).then((function(t){d(e)}))},_=function(e,t){b(e);var n=t.event.swap;n(),C.hideCrop()},w=function(e,n){return p(e,n.event.transform,t)},x=function(e,t){return m(e,t.event.transform)},S=function(e,t){return g(e,t.event.transform,t.event.swap)},C=TL(e.currentState.url),E=RL(n),k=gL(C,n),O=function(e,t){a(e);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){p(e,t,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[k.memContainer.asSpec(),C.memContainer.asSpec(),E.container],behaviours:qu([Xp.config({store:{mode:"manual",getValue:function(){return r.getBlobState()}}}),Sb("image-tools-events",[_o(dL.undo(),s),_o(dL.redo(),l),_o(dL.zoom(),i),_o(dL.back(),_),_o(dL.apply(),v),_o(dL.transform(),w),_o(dL.tempTransform(),x),_o(dL.transformApply(),S),_o(dL.swap(),O)]),OP.self()])}},DL=function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=W(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:qu([OP.self(),wb.config({}),GP.domHtml(w.none()),db.config({mode:"acyclic"})])}},jL=function(e){return!qe(e,"items")},FL="data-value",BL=function(e,t,n,r){return W(n,(function(n){return jL(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){Xp.setValue(e,n.value),uo(e,sT,{name:t}),Pb.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return BL(e,t,n.items,r)}}}))},qL=function(e,t){return fe(e,(function(e){return jL(e)?pg(e.value===t,e):qL(e.items,t)}))},zL=function(e,n){var r=n.shared.providers,i=ce(e.items).filter(jL),a=e.label.map((function(e){return aT(e,r)})),s=XO.parts.field({dom:{},factory:{sketch:function(r){return bN({uid:r.uid,text:i.map((function(e){return e.text})),icon:w.none(),tooltip:e.label,role:w.none(),fetch:function(t,r){var i=BL(t,e.name,e.items,Xp.getValue(t));r(IN(i,lx.CLOSE_ON_EXECUTE,n,!1))},onSetup:o(t),getApi:o({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[ZO.config({}),Xp.config({store:{mode:"manual",initialValue:i.map((function(e){return e.value})).getOr(""),getValue:function(e){return Ea(e.element,FL)},setValue:function(t,n){qL(e.items,n).each((function(e){Sa(t.element,FL,e.value),uo(t,vN,{text:e.text})}))}}})]},"tox-listbox",n.shared)}}}),l={dom:{tag:"div",classes:["tox-listboxfield"]},components:[s]};return XO.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:te([a.toArray(),[l]]),fieldBehaviours:qu([YS.config({disabled:o(e.disabled),onDisabled:function(e){XO.getField(e).each(YS.disable)},onEnabled:function(e){XO.getField(e).each(YS.enable)}})])})},UL=function(e,t){return{dom:{tag:"div",classes:e.classes},components:W(e.items,t.shared.interpreter)}},GL=function(e,t){var n=W(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return ct("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:Qp(e.selectBehaviours,[Pb.config({}),Xp.config({store:h({mode:"manual",getValue:function(e){return ol(e.element)},setValue:function(t,n){var r=Z(e.options,(function(e){return e.value===n}));r.isSome()&&al(t.element,n)}},r)})])}},VL=sg({name:"HtmlSelect",configFields:[bn("options"),Yp("selectBehaviours",[Pb,Xp]),Fn("selectClasses",[]),Fn("selectAttributes",{}),An("data")],factory:GL}),WL=function(e,t){var n=W(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return aT(e,t)})),i=XO.parts.field({dom:{},selectAttributes:{size:e.size},options:n,factory:VL,selectBehaviours:qu([YS.config({disabled:function(){return e.disabled||t.isDisabled()}}),ZO.config({}),Sb("selectbox-change",[_o(Pi(),(function(t,n){uo(t,sT,{name:e.name})}))])])}),o=e.size>1?w.none():w.some({dom:{tag:"div",classes:["tox-selectfield__icon-js"],innerHtml:ew("chevron-down",t.icons)}}),a={dom:{tag:"div",classes:["tox-selectfield"]},components:te([[i],o.toArray()])};return XO.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:te([r.toArray(),[a]]),fieldBehaviours:qu([YS.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){XO.getField(e).each(YS.disable)},onEnabled:function(e){XO.getField(e).each(YS.enable)}}),GC()])})},HL=function(e,t){var n=function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}},r=function(e){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:W(e,n)}]}},i=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}},o=function(e){return{dom:{tag:"tr"},components:W(e,i)}},a=function(e){return{dom:{tag:"tbody"},components:W(e,o)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(e.header),a(e.cells)],behaviours:qu([ZO.config({}),Pb.config({})])}},$L=function(e,t){var n=e.label.map((function(e){return aT(e,t)})),r=[YS.config({disabled:function(){return e.disabled||t.isDisabled()}}),GC(),db.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return co(e,dT),w.some(!0)}}),Sb("textfield-change",[_o(Ri(),(function(t,n){uo(t,sT,{name:e.name})})),_o(qi(),(function(t,n){uo(t,sT,{name:e.name})}))]),ZO.config({})],i=e.validation.map((function(e){return HT.config({getRoot:function(e){return Wo(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=Xp.getValue(t),r=e.validator(n);return NT.pure(!0===r?ge.value(n):ge.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),a=e.placeholder.fold(o({}),(function(e){return{placeholder:t.translate(e)}})),s=e.inputMode.fold(o({}),(function(e){return{inputmode:e}})),l=h(h({},a),s),c=XO.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:l,inputClasses:[e.classname],inputBehaviours:qu(te([r,i])),selectOnFocus:!1,factory:xT}),u=e.flex?["tox-form__group--stretched"]:[],d=u.concat(e.maximized?["tox-form-group--maximize"]:[]),f=[YS.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){XO.getField(e).each(YS.disable)},onEnabled:function(e){XO.getField(e).each(YS.enable)}}),GC()];return tT(n,c,d,f)},KL=function(e,t){return $L({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:w.none(),maximized:e.maximized},t)},XL=function(e,t){return $L({name:e.name,multiline:!0,label:e.label,inputMode:w.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:w.none(),maximized:e.maximized},t)},YL=function(e,t){var n=e.stream.streams,r=n.setup(e,t);return go([_o(e.event,r),Ro((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[_o(e,(function(){return t.cancel()}))]})).getOr([])))},JL=Object.freeze({__proto__:null,events:YL}),QL=function(e){var t=Xn(null),n=function(){return{timer:null!==t.get()?"set":"unset"}},r=function(e){t.set(e)},i=function(){var e=t.get();null!==e&&e.cancel()};return is({readState:n,setTimer:r,cancel:i})},ZL=function(e){return e.stream.streams.state(e)},eD=Object.freeze({__proto__:null,throttle:QL,init:ZL}),tD=function(e,t){var n=e.stream,r=cw(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},nD=[_n("stream",ln("mode",{throttle:[bn("delay"),Fn("stopEvent",!0),Uc("streams",{setup:tD,state:QL})]})),Fn("event","input"),An("cancelEvent"),qc("onStream")],rD=Uu({fields:nD,name:"streaming",active:JL,state:eD}),iD=function(e,t,n){var r=Xp.getValue(n);Xp.setValue(t,r),aD(t)},oD=function(e,t){var n=e.element,r=ol(n),i=n.dom;"number"!==Ea(n,"type")&&t(i,r)},aD=function(e){oD(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},sD=function(e,t){oD(e,(function(e,n){return e.setSelectionRange(t,n.length)}))},lD=function(e,t,n){if(e.selectsOver){var r=Xp.getValue(t),i=e.getDisplayText(r),o=Xp.getValue(n),a=e.getDisplayText(o);return 0===a.indexOf(i)?w.some((function(){iD(e,t,n),sD(t,i.length)})):w.none()}return w.none()},cD=o("alloy.typeahead.itemexecute"),uD=function(e,n,r,i){var o=function(n,r,o){e.previewing.set(!1);var a=QT.getCoupled(n,"sandbox");if(hp.isOpen(a))bg.getCurrent(a).each((function(e){Bg.getHighlighted(e).fold((function(){o(e)}),(function(){mo(a,e.element,"keydown",r)}))}));else{var l=function(e){bg.getCurrent(e).each(o)};oI(e,s(n),n,a,i,l,ET.HighlightFirst).get(t)}},a=yT(e),s=function(e){return function(t){return t.map((function(t){var n=Fe(t.menus),r=ne(n,(function(e){return X(e.items,(function(e){return"item"===e.type}))})),i=Xp.getState(e);return i.update(W(r,(function(e){return e.data}))),t}))}},l=[Pb.config({}),Xp.config({onSetValue:e.onSetValue,store:h({mode:"dataset",getDataKey:function(e){return ol(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){al(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return ct("initialValue",e)})).getOr({}))}),rD.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(n,r){var o=QT.getCoupled(n,"sandbox"),a=Pb.isFocused(n);if(a&&ol(n.element).length>=e.minChars){var l=bg.getCurrent(o).bind((function(e){return Bg.getHighlighted(e).map(Xp.getValue)}));e.previewing.set(!0);var c=function(t){bg.getCurrent(o).each((function(t){l.fold((function(){e.model.selectsOver&&Bg.highlightFirst(t)}),(function(e){Bg.highlightBy(t,(function(t){var n=Xp.getValue(t);return n.value===e.value})),Bg.getHighlighted(t).orThunk((function(){return Bg.highlightFirst(t),w.none()}))}))}))};oI(e,s(n),n,o,i,c,ET.HighlightFirst).get(t)}},cancelEvent:$i()}),db.config({mode:"special",onDown:function(e,t){return o(e,t,Bg.highlightFirst),w.some(!0)},onEscape:function(e){var t=QT.getCoupled(e,"sandbox");return hp.isOpen(t)?(hp.close(t),w.some(!0)):w.none()},onUp:function(e,t){return o(e,t,Bg.highlightLast),w.some(!0)},onEnter:function(t){var n=QT.getCoupled(t,"sandbox"),r=hp.isOpen(n);if(r&&!e.previewing.get())return bg.getCurrent(n).bind((function(e){return Bg.getHighlighted(e)})).map((function(e){return uo(t,cD(),{item:e}),!0}));var i=Xp.getValue(t);return co(t,$i()),e.onExecute(n,t,i),r&&hp.close(n),w.some(!0)}}),Jb.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),QT.config({others:{sandbox:function(t){return dI(e,t,{onOpen:function(){return Jb.on(t)},onClose:function(){return Jb.off(t)}})}}}),Sb("typeaheadevents",[Mo((function(n){var r=t;sI(e,s(n),n,i,r,ET.HighlightFirst).get(t)})),_o(cD(),(function(t,n){var r=QT.getCoupled(t,"sandbox");iD(e.model,t,n.event.item),co(t,$i()),e.onItemExecute(t,r,n.event.item,Xp.getValue(t)),hp.close(r),aD(t)}))].concat(e.dismissOnBlur?[_o(Bi(),(function(e){var t=QT.getCoupled(e,"sandbox");ed(t.element).isNone()&&hp.close(t)}))]:[]))];return{uid:e.uid,dom:_T(Ke(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:h(h({},a),Qp(e.typeaheadBehaviours,l)),eventOrder:e.eventOrder}},dD=o([An("lazySink"),bn("fetch"),Fn("minChars",5),Fn("responseTime",1e3),Fc("onOpen"),Fn("getHotspot",w.some),Fn("getAnchorOverrides",o({})),Fn("layouts",w.none()),Fn("eventOrder",{}),$n("model",{},[Fn("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Fn("selectsOver",!0),Fn("populateFromBrowse",!0)]),Fc("onSetValue"),Bc("onExecute"),Fc("onItemExecute"),Fn("inputClasses",[]),Fn("inputAttributes",{}),Fn("inputStyles",{}),Fn("matchWidth",!0),Fn("useMinWidth",!1),Fn("dismissOnBlur",!0),Dc(["openClass"]),An("initialData"),Yp("typeaheadBehaviours",[Pb,Xp,rD,db,Jb,QT]),Kn("previewing",(function(){return Xn(!0)}))].concat(vT()).concat(hI())),fD=o([Im({schema:[Lc()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){lD(e.model,r,n).fold((function(){return Bg.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&iD(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return uo(e,cD(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&iD(e.model,t,n)}))}}}})]),hD=lg({name:"Typeahead",configFields:dD(),partFields:fD(),factory:uD}),pD=function(e){var t=function(){return pD(e.toCached())},n=function(t){return pD(e.bind((function(e){return e.fold((function(e){return NT.pure(ge.error(e))}),(function(e){return t(e)}))})))},r=function(t){return pD(e.map((function(e){return e.bind(t)})))},i=function(t){return pD(e.map((function(e){return e.map(t)})))},o=function(t){return pD(e.map((function(e){return e.mapError(t)})))},a=function(t,n){return e.map((function(e){return e.fold(t,n)}))},s=function(t,n){return pD(NT.nu((function(r){var i=!1,o=setTimeout((function(){i=!0,r(ge.error(n()))}),t);e.get((function(e){i||(clearTimeout(o),r(e))}))})))};return h(h({},e),{toCached:t,bindFuture:n,bindResult:r,mapResult:i,mapError:o,foldResult:a,withTimeout:s})},mD=function(e){return pD(NT.nu(e))},gD=function(e){return pD(NT.pure(ge.value(e)))},vD=function(e){return pD(NT.pure(ge.error(e)))},yD=function(e){return pD(NT.pure(e))},bD=function(e){return pD(e.map(ge.value))},_D=function(e){return mD((function(t){e.then((function(e){t(ge.value(e))}),(function(e){t(ge.error(e))}))}))},wD={nu:mD,wrap:pD,pure:gD,value:gD,error:vD,fromResult:yD,fromFuture:bD,fromPromise:_D},xD={type:"separator"},SD=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:t}},CD=function(e,n){return{type:"menuitem",value:n,text:e,meta:{attach:void 0},onAction:t}},ED=function(e){return W(e,SD)},kD=function(e,t){return X(t,(function(t){return t.type===e}))},OD=function(e,t){return ED(kD(e,t))},TD=function(e){return OD("header",e.targets)},ID=function(e){return OD("anchor",e.targets)},AD=function(e){return w.from(e.anchorTop).map((function(e){return CD("<top>",e)})).toArray()},RD=function(e){return w.from(e.anchorBottom).map((function(e){return CD("<bottom>",e)})).toArray()},PD=function(e){return W(e,(function(e){return CD(e,e)}))},MD=function(e){return J(e,(function(e,t){var n=0===e.length||0===t.length;return n?e.concat(t):e.concat(xD,t)}),[])},ND=function(e,t){var n=e.toLowerCase();return X(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return pr(t.toLowerCase(),n)||pr(e.value.toLowerCase(),n)}))},LD=function(e,t,n){var r=Xp.getValue(t),i=void 0!==r.meta.text?r.meta.text:r.value,o=n.getLinkInformation();return o.fold((function(){return[]}),(function(t){var r=ND(i,PD(n.getHistory(e)));return"file"===e?MD([r,ND(i,TD(t)),ND(i,te([AD(t),ID(t),RD(t)]))]):r}))},DD=ja("aria-invalid"),jD=function(e,n,r){var i,o=n.shared.providers,a=function(t){var n=Xp.getValue(t);r.addToHistory(n.value,e.filetype)},s=XO.parts.field({factory:hD,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":DD,type:"url"},minChars:0,responseTime:0,fetch:function(t){var i=LD(e.filetype,t,r),o=IN(i,lx.BUBBLE_TO_SANDBOX,n,!1);return NT.pure(o)},getHotspot:function(e){return m.getOpt(e)},onSetValue:function(e,n){e.hasConfigured(HT)&&HT.run(e).get(t)},typeaheadBehaviours:qu(te([r.getValidationHandler().map((function(t){return HT.config({getRoot:function(e){return Wo(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){u.getOpt(e).each((function(e){Sa(e.element,"title",o.translate(t))}))}},validator:{validate:function(n){var r=Xp.getValue(n);return wD.nu((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=ge.error(e.message);n(t)}else{var r=ge.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[YS.config({disabled:function(){return e.disabled||o.isDisabled()}}),ZO.config({}),Sb("urlinput-events",te(["file"===e.filetype?[_o(Ri(),(function(t){uo(t,sT,{name:e.name})}))]:[],[_o(Pi(),(function(t){uo(t,sT,{name:e.name}),a(t)})),_o(qi(),(function(t){uo(t,sT,{name:e.name}),a(t)}))]]))]])),eventOrder:(i={},i[Ri()]=["streaming","urlinput-events","invalidating"],i),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:n.shared.getSink,parts:{menu:Dx(!1,1,"normal")},onExecute:function(e,t,n){uo(t,dT,{})},onItemExecute:function(t,n,r,i){a(t),uo(t,sT,{name:e.name})}}),l=e.label.map((function(e){return aT(e,o)})),c=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),{dom:{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],innerHtml:ew(n,o.icons),attributes:h({title:o.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))}}},u=Q_(c("invalid",w.some(DD),"warning")),d=Q_({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[u.asSpec()]}),f=r.getUrlPicker(e.filetype),p=ja("browser.url.event"),m=Q_({dom:{tag:"div",classes:["tox-control-wrap"]},components:[s,d.asSpec()],behaviours:qu([YS.config({disabled:function(){return e.disabled||o.isDisabled()}})])}),g=Q_(jN({name:e.name,icon:w.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return co(e,p)}),o,[],["tox-browse-url"])),v=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:te([[m.asSpec()],f.map((function(){return g.asSpec()})).toArray()])}},y=function(t){bg.getCurrent(t).each((function(n){var r=Xp.getValue(n),i=h({fieldname:e.name},r);f.each((function(r){r(i).get((function(r){Xp.setValue(n,r),uo(t,sT,{name:e.name})}))}))}))};return XO.sketch({dom:iT(),components:l.toArray().concat([v()]),fieldBehaviours:qu([YS.config({disabled:function(){return e.disabled||o.isDisabled()},onDisabled:function(e){XO.getField(e).each(YS.disable),g.getOpt(e).each(YS.disable)},onEnabled:function(e){XO.getField(e).each(YS.enable),g.getOpt(e).each(YS.enable)}}),GC(),Sb("url-input-events",[_o(p,y)])])})},FD=function(e,t){return GO.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[J_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:ew(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){uo(t,uT,{name:"alert-banner",value:e.url})}})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},BD=function(e,t){var n=Xp.config({store:{mode:"manual",getValue:function(e){var t=e.element.dom;return t.checked},setValue:function(e,t){var n=e.element.dom;n.checked=t}}}),r=function(e){return e.element.dom.click(),w.some(!0)},i=XO.parts.field({factory:{sketch:a},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:qu([OP.self(),YS.config({disabled:function(){return e.disabled||t.isDisabled()}}),ZO.config({}),Pb.config({}),n,db.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),Sb("checkbox-events",[_o(Pi(),(function(t,n){uo(t,sT,{name:e.name})}))])])}),o=XO.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:qu([wI.config({})])}),s=function(e){var n="checked"===e?"selected":"unselected";return{dom:{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e],innerHtml:ew(n,t.icons)}}},l=Q_({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[s("checked"),s("unchecked")]});return XO.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,l.asSpec(),o],fieldBehaviours:qu([YS.config({disabled:function(){return e.disabled||t.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){XO.getField(e).each(YS.disable)},onEnabled:function(e){XO.getField(e).each(YS.enable)}}),GC()])})},qD=function(e){return"presentation"===e.presets?GO.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):GO.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:qu([ZO.config({}),Pb.config({})])})},zD=function(e){return function(t,n,r){return Be(n,"name").fold((function(){return e(n,r)}),(function(i){return t.field(i,e(n,r))}))}},UD=function(e){return function(t,n,r){var i=Ke(n,{source:"dynamic"});return zD(e)(t,i,r)}},GD={bar:zD((function(e,t){return WO(e,t.shared)})),collection:zD((function(e,t){return gT(e,t.shared.providers)})),alertbanner:zD((function(e,t){return FD(e,t.shared.providers)})),input:zD((function(e,t){return KL(e,t.shared.providers)})),textarea:zD((function(e,t){return XL(e,t.shared.providers)})),label:zD((function(e,t){return DL(e,t.shared)})),iframe:UD((function(e,t){return rM(e,t.shared.providers)})),button:zD((function(e,t){return UN(e,t.shared.providers)})),checkbox:zD((function(e,t){return BD(e,t.shared.providers)})),colorinput:zD((function(e,t){return kI(e,t.shared,t.colorinput)})),colorpicker:zD(RP),dropzone:zD((function(e,t){return HP(e,t.shared.providers)})),grid:zD((function(e,t){return $P(e,t.shared)})),listbox:zD((function(e,t){return zL(e,t)})),selectbox:zD((function(e,t){return WL(e,t.shared.providers)})),sizeinput:zD((function(e,t){return tL(e,t.shared.providers)})),urlinput:zD((function(e,t){return jD(e,t,t.urlinput)})),customeditor:zD(NP),htmlpanel:zD(qD),imagetools:zD((function(e,t){return LL(e,t.shared.providers)})),table:zD((function(e,t){return HL(e,t.shared.providers)})),panel:zD((function(e,t){return UL(e,t)}))},VD={field:function(e,t){return t}},WD=function(e,t,n){var r=Ke(n,{shared:{interpreter:function(t){return HD(e,t,r)}}});return HD(e,t,r)},HD=function(e,t,n){return Be(GD,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(r){return r(e,t,n)}))},$D=function(e,t){var n=VD;return HD(n,e,t)},KD={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},XD=function(e,t,n){var r=Nd(-12,12,KD),i={maxHeightFunction:Id()},o=function(){return{anchor:"node",root:na(e()),node:w.from(e()),bubble:r,layouts:{onRtl:function(){return[H_]},onLtr:function(){return[W_]}},overrides:i}},a=function(){return{anchor:"hotspot",hotspot:t(),bubble:r,layouts:{onRtl:function(){return[mu]},onLtr:function(){return[gu]}},overrides:i}};return function(){return n()?o():a()}},YD=function(e,t,n){var r=function(){return{anchor:"node",root:na(e()),node:w.from(e()),layouts:{onRtl:function(){return[$_]},onLtr:function(){return[$_]}}}},i=function(){return{anchor:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[_u]},onLtr:function(){return[_u]}}}};return function(){return n()?r():i()}},JD=function(e,t){return function(){return{anchor:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return w.some(Tf.range(tr.fromDom(t.startContainer),t.startOffset,tr.fromDom(t.endContainer),t.endOffset))}}}},QD=function(e){return function(t){return{anchor:"node",root:e(),node:t}}},ZD=function(e,t,n){var r=CC(e),i=function(){return tr.fromDom(e.getBody())},o=function(){return tr.fromDom(e.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:XD(o,t,a),banner:YD(o,t,a),cursor:JD(e,i),node:QD(i)}},ej=function(e){return function(t,n){var r=Ik(e);r(t,n)}},tj=function(e){return function(){return dk(e)}},nj=function(e){return function(){return hk(e)}},rj=function(e){return function(){return wk(e)}},ij=function(e){return{colorPicker:ej(e),hasCustomColors:tj(e),getColors:nj(e),getColorCols:rj(e)}},oj=function(e){return function(){return TC(e)}},aj=function(e){return{isDraggableModal:oj(e)}},sj=function(e){var t=Xn(_C(e)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===t.get()},getDockingMode:t.get,setDockingMode:t.set}},lj=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],cj=function(e){return qe(e,"items")},uj=function(e){return qe(e,"block")},dj=function(e){return qe(e,"inline")},fj=function(e){return qe(e,"selector")},hj=function(e){return J(e,(function(e,t){if(cj(t)){var n=hj(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(dj(t)||uj(t)||fj(t)){var r=k(t.name)?t.name:t.title.toLowerCase(),i="custom-"+r;return{customFormats:e.customFormats.concat([{name:i,format:t}]),formats:e.formats.concat([{title:t.title,format:i,icon:t.icon}])}}return h(h({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},pj=function(e,t){var n=hj(t),r=function(t){H(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats},mj=function(e){return sC(e).map((function(t){var n=pj(e,t);return lC(e)?lj.concat(n):n})).getOr(lj)},gj=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return Ke(e,r)},vj=function(e,t,n,r){var i=function(e){return gj(e,n,r)},o=function(e){var t={type:"submenu"};return Ke(e,t)},a=function(t){var i=k(t.name)?t.name:ja(t.title),o="custom-"+i,a={type:"formatter",format:o,isSelected:n(o),getStylePreview:r(o)},s=Ke(t,a);return e.formatter.register(i,s),s},s=function(e){return W(e,(function(e){var t=Te(e);if(ze(e,"items")){var n=s(e.items);return Ke(o(e),{getStyleItems:function(){return n}})}return ze(e,"format")?i(e):1===t.length&&z(t,"title")?Ke(e,{type:"separator"}):a(e)}))};return s(t)},yj=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):w.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?ne(t,r):[e.format]},i=Xn([]),o=Xn([]),a=Xn([]),s=Xn([]),l=Xn(!1);e.on("PreInit",(function(a){var s=mj(e),l=vj(e,s,t,n);i.set(l),o.set(ne(l,r))})),e.on("addStyleModifications",(function(i){var o=vj(e,i.items,t,n);a.set(o),l.set(i.replace),s.set(ne(o,r))}));var c=function(){var e=l.get()?[]:i.get(),t=a.get();return e.concat(t)},u=function(){var e=l.get()?[]:o.get(),t=s.get();return e.concat(t)};return{getData:c,getFlattenedKeys:u}},bj=function(e){return P(e)&&1===e.nodeType},_j=LP.trim,wj=function(e){return function(t){if(bj(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},xj=wj("true"),Sj=wj("false"),Cj=function(e,t,n,r,i){return{type:e,title:t,url:n,level:r,attach:i}},Ej=function(e){while(e=e.parentNode){var t=e.contentEditable;if(t&&"inherit"!==t)return xj(e)}return!1},kj=function(e,t){return W(Jf(tr.fromDom(t),e),(function(e){return e.dom}))},Oj=function(e){return e.innerText||e.textContent},Tj=function(e){return e.id?e.id:ja("h")},Ij=function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)},Aj=function(e){return Ij(e)&&Pj(e)},Rj=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},Pj=function(e){return Ej(e)&&!Sj(e)},Mj=function(e){return Rj(e)&&Pj(e)},Nj=function(e){return Rj(e)?parseInt(e.nodeName.substr(1),10):0},Lj=function(e){var t=Tj(e),n=function(){e.id=t};return Cj("header",Oj(e),"#"+t,Nj(e),n)},Dj=function(e){var n=e.id||e.name,r=Oj(e);return Cj("anchor",r||"#"+n,"#"+n,0,t)},jj=function(e){return W(X(e,Mj),Lj)},Fj=function(e){return W(X(e,Aj),Dj)},Bj=function(e){var t=kj("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},qj=function(e){return _j(e.title).length>0},zj=function(e){var t=Bj(e);return X(jj(t).concat(Fj(t)),qj)},Uj={find:zj},Gj="tinymce-url-history",Vj=5,Wj=function(e){return k(e)&&/^https?/.test(e)},Hj=function(e){return T(e)&&e.length<=Vj&&re(e,Wj)},$j=function(e){return O(e)&&je(e,(function(e){return!Hj(e)})).isNone()},Kj=function(){var e,t=nk.getItem(Gj);if(null===t)return{};try{e=JSON.parse(t)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+Gj+" was not valid JSON",n),{};throw n}return $j(e)?e:(console.log("Local storage "+Gj+" was not valid format",e),{})},Xj=function(e){if(!$j(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));nk.setItem(Gj,JSON.stringify(e))},Yj=function(e){var t=Kj();return Object.prototype.hasOwnProperty.call(t,e)?t[e]:[]},Jj=function(e,t){if(Wj(e)){var n=Kj(),r=Object.prototype.hasOwnProperty.call(n,t)?n[t]:[],i=X(r,(function(t){return t!==e}));n[t]=[e].concat(i).slice(0,Vj),Xj(n)}},Qj=function(e){return!!e},Zj=function(e){return Re(LP.makeMap(e,/[, ]/),Qj)},eF=function(e){return w.from(PC(e)).filter(M)},tF=function(e){var t=w.some(MC(e)).filter(Qj),n=w.some(NC(e)).filter(Qj),r=t.or(n).map(Zj);return eF(e).fold(u,(function(e){return r.fold(d,(function(e){return Te(e).length>0&&e}))}))},nF=function(e,t){var n=tF(e);return I(n)?n?eF(e):w.none():n[t]?eF(e):w.none()},rF=function(e,t){return nF(e,t).map((function(n){return function(r){return NT.nu((function(i){var o=function(e,t){if(!k(e))throw new Error("Expected value to be string");if(void 0!==t&&!O(t))throw new Error("Expected meta to be a object");var n={value:e,meta:t};i(n)},a=h({filetype:t,fieldname:r.fieldname},w.from(r.meta).getOr({}));n.call(e,o,r.value,a)}))}}))},iF=function(e){return w.from(e).filter(k).getOrUndefined()},oF=function(e){return LC(e)?w.none():w.some({targets:Uj.find(e.getBody()),anchorTop:iF(DC(e)),anchorBottom:iF(jC(e))})},aF=function(e){return w.from(FC(e))},sF=function(e){return{getHistory:Yj,addToHistory:Jj,getLinkInformation:function(){return oF(e)},getValidationHandler:function(){return aF(e)},getUrlPicker:function(t){return rF(e,t)}}},lF=function(e,t,n){var r=Xn(!1),i=sj(t),o={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:RS.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return $D(e,o)},anchors:ZD(t,n,i.isPositionedAtTop),header:i,getSink:function(){return ge.value(e)}},urlinput:sF(t),styleselect:yj(t),colorinput:ij(t),dialog:aj(t),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(e){return r.set(e)}};return o},cF=o((function(e,t){Dl(e,Math.floor(t))})),uF="contexttoolbar-show",dF="contexttoolbar-hide",fF=o([bn("dom"),Fn("shell",!0),Yp("toolbarBehaviours",[wb])]),hF=function(){return{behaviours:qu([wb.config({})])}},pF=o([Am({name:"groups",overrides:hF})]),mF=function(e,t,n,r){var i=function(e,t){o(e).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){wb.set(e,t)}))},o=function(t){return e.shell?w.some(t):Gm(t,e,"groups")},a=e.shell?{behaviours:[wb.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:a.components,behaviours:Qp(e.toolbarBehaviours,a.behaviours),apis:{setGroups:i},domModification:{attributes:{role:"group"}}}},gF=lg({name:"Toolbar",configFields:fF(),partFields:pF(),factory:mF,apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),vF=function(e,t){var n={len:0,list:[]},r=J(e,(function(e,n){var r=t(n,e.len);return r.fold(o(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),n);return r.list},yF=function(e,t,n){return{within:e,extra:t,withinWidth:n}},bF=function(e,t,n){var r=vF(e,(function(e,t){var r=n(e);return w.some({element:e,start:t,finish:t+r,width:r})})),i=X(r,(function(e){return e.finish<=t})),o=Y(i,(function(e,t){return e+t.width}),0),a=r.slice(i.length);return{within:i,extra:a,withinWidth:o}},_F=function(e){return W(e,(function(e){return e.element}))},wF=function(e,t,n){var r=_F(e.concat(t));return yF(r,[],n)},xF=function(e,t,n,r){var i=_F(e).concat([n]);return yF(i,_F(t),r)},SF=function(e,t,n){return yF(_F(e),[],n)},CF=function(e,t,n){var r=bF(t,e,n);return 0===r.extra.length?w.some(r):w.none()},EF=function(e,t,n,r){var i=CF(e,t,n).getOrThunk((function(){return bF(t,e-n(r),n)})),o=i.within,a=i.extra,s=i.withinWidth;return 1===a.length&&a[0].width<=n(r)?wF(o,a,s):a.length>=1?xF(o,a,r,s):SF(o,a,s)},kF=function(e,t){var n=W(t,(function(e){return _l(e)}));gF.setGroups(e,n)},OF=function(e){return fe(e,(function(e){return ed(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}))},TF=function(e,t,n){var r=Vm(e,t,"primary"),i=QT.getCoupled(e,"overflowGroup");Xs(r.element,"visibility","hidden");var o=t.builtGroups.get().concat([i]),a=OF(o);n([]),kF(r,o);var s=Nl(r.element),l=EF(s,t.builtGroups.get(),(function(e){return Nl(e.element)}),i);0===l.extra.length?(wb.remove(r,i),n([])):(kF(r,l.within),n(l.extra)),rl(r.element,"visibility"),il(r.element),a.each(Pb.focus)},IF=o([Yp("splitToolbarBehaviours",[QT]),Kn("builtGroups",(function(){return Xn([])}))]),AF=o([Dc(["overflowToggledClass"]),Nn("getOverflowBounds"),bn("lazySink"),Kn("overflowGroups",(function(){return Xn([])}))].concat(IF())),RF=o([Tm({factory:gF,schema:fF(),name:"primary"}),Im({schema:fF(),name:"overflow"}),Im({name:"overflow-button"}),Im({name:"overflow-group"})]),PF=o([Dc(["toggledClass"]),bn("lazySink"),En("fetch"),Nn("getBounds"),Dn("fireDismissalEventInstead",[Fn("event",to())]),Ud()]),MF=o([Im({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:qu([Jb.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Im({factory:gF,schema:fF(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:qu([db.config({mode:"cyclic",onEscape:function(t){return Gm(t,e,"button").each(Pb.focus),w.none()}})])}}})]),NF=function(e,t){var n=QT.getCoupled(e,"toolbarSandbox");hp.isOpen(n)?hp.close(n):hp.open(n,t.toolbar())},LF=function(e,t,n,r){var i=n.getBounds.map((function(e){return e()})),o=n.lazySink(e).getOrDie();Mh.positionWithinBounds(o,{anchor:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:cF()}},t,i)},DF=function(e,t,n,r,i){gF.setGroups(t,i),LF(e,t,n,r),Jb.on(e)},jF=function(e,t,n){var r=vc(),i=function(i,o){n.fetch().get((function(i){DF(e,o,n,t.layouts,i),r.link(e.element),db.focusIn(o)}))},o=function(){Jb.off(e),Pb.focus(e),r.unlink(e.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:qu([db.config({mode:"special",onEscape:function(e){return hp.close(e),w.some(!0)}}),hp.config({onOpen:i,onClose:o,isPartOf:function(t,n,r){return bc(n,r)||bc(e,r)},getAttachPoint:function(){return n.lazySink(e).getOrDie()}}),Hu.config({channels:h(h({},yp(h({isExtraPart:u},n.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),_p({doReposition:function(){hp.getState(QT.getCoupled(e,"toolbarSandbox")).each((function(r){LF(e,r,n,t.layouts)}))}}))})])}},FF=function(e,t,n,r){return h(h({},J_.sketch(h(h({},r.button()),{action:function(e){NF(e,r)},buttonBehaviours:Zp.augment({dump:r.button().buttonBehaviours},[QT.config({others:{toolbarSandbox:function(t){return jF(t,n,e)}}})])}))),{apis:{setGroups:function(t,r){hp.getState(QT.getCoupled(t,"toolbarSandbox")).each((function(i){DF(t,i,e,n.layouts,r)}))},reposition:function(t){hp.getState(QT.getCoupled(t,"toolbarSandbox")).each((function(r){LF(t,r,e,n.layouts)}))},toggle:function(e){NF(e,r)},getToolbar:function(e){return hp.getState(QT.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return hp.isOpen(QT.getCoupled(e,"toolbarSandbox"))}}})},BF=lg({name:"FloatingToolbarButton",factory:FF,configFields:PF(),partFields:MF(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),qF=o([bn("items"),Dc(["itemSelector"]),Yp("tgroupBehaviours",[db])]),zF=o([Rm({name:"items",unit:"item"})]),UF=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:Qp(e.tgroupBehaviours,[db.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},GF=lg({name:"ToolbarGroup",configFields:qF(),partFields:zF(),factory:UF}),VF=function(e){return W(e,(function(e){return _l(e)}))},WF=function(e,t,n){TF(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){BF.setGroups(e,VF(r))}))}))},HF=function(e,t,n,r){var i=Q_(BF.sketch({fetch:function(){return NT.nu((function(t){t(VF(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[gu,mu]},onRtl:function(){return[mu,gu]},onBottomLtr:function(){return[yu,vu]},onBottomRtl:function(){return[vu,yu]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:Qp(e.splitToolbarBehaviours,[QT.config({others:{overflowGroup:function(){return GF.sketch(h(h({},r["overflow-group"]()),{items:[i.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set(W(n,t.getSystem().build)),WF(t,i,e)},refresh:function(t){return WF(t,i,e)},toggle:function(e){i.getOpt(e).each((function(e){BF.toggle(e)}))},isOpen:function(e){return i.getOpt(e).map(BF.isOpen).getOr(!1)},reposition:function(e){i.getOpt(e).each((function(e){BF.reposition(e)}))},getOverflow:function(e){return i.getOpt(e).bind(BF.getToolbar)}},domModification:{attributes:{role:"group"}}}},$F=lg({name:"SplitFloatingToolbar",configFields:AF(),partFields:RF(),factory:HF,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),KF=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},XF=function(e){return e.dimension.property},YF=function(e,t){return e.dimension.getDimension(t)},JF=function(e,t){var n=KF(e,t);Us(n,[t.shrinkingClass,t.growingClass])},QF=function(e,t){Bs(e.element,t.openClass),js(e.element,t.closedClass),Xs(e.element,XF(t),"0px"),il(e.element)},ZF=function(e,t){Bs(e.element,t.closedClass),js(e.element,t.openClass),rl(e.element,XF(t))},eB=function(e,t,n,r){n.setCollapsed(),Xs(e.element,XF(t),YF(t,e.element)),il(e.element),JF(e,t),QF(e,t),t.onStartShrink(e),t.onShrunk(e)},tB=function(e,t,n,r){var i=r.getOrThunk((function(){return YF(t,e.element)}));n.setCollapsed(),Xs(e.element,XF(t),i),il(e.element);var o=KF(e,t);Bs(o,t.growingClass),js(o,t.shrinkingClass),QF(e,t),t.onStartShrink(e)},nB=function(e,t,n){var r=YF(t,e.element),i="0px"===r?eB:tB;i(e,t,n,w.some(r))},rB=function(e,t,n){var r=KF(e,t),i=qs(r,t.shrinkingClass),o=YF(t,e.element);ZF(e,t);var a=YF(t,e.element),s=function(){Xs(e.element,XF(t),o),il(e.element)},l=function(){QF(e,t)},c=i?s:l;c(),Bs(r,t.shrinkingClass),js(r,t.growingClass),ZF(e,t),Xs(e.element,XF(t),a),n.setExpanded(),t.onStartGrow(e)},iB=function(e,t,n){if(n.isExpanded()){rl(e.element,XF(t));var r=YF(t,e.element);Xs(e.element,XF(t),r)}},oB=function(e,t,n){n.isExpanded()||rB(e,t,n)},aB=function(e,t,n){n.isExpanded()&&nB(e,t,n)},sB=function(e,t,n){n.isExpanded()&&eB(e,t,n,w.none())},lB=function(e,t,n){return n.isExpanded()},cB=function(e,t,n){return n.isCollapsed()},uB=function(e,t,n){var r=KF(e,t);return!0===qs(r,t.growingClass)},dB=function(e,t,n){var r=KF(e,t);return!0===qs(r,t.shrinkingClass)},fB=function(e,t,n){return uB(e,t)||dB(e,t)},hB=function(e,t,n){var r=n.isExpanded()?nB:rB;r(e,t,n)},pB=Object.freeze({__proto__:null,refresh:iB,grow:oB,shrink:aB,immediateShrink:sB,hasGrown:lB,hasShrunk:cB,isGrowing:uB,isShrinking:dB,isTransitioning:fB,toggleGrow:hB,disableTransitions:JF}),mB=function(e,t,n){var r=t.expanded;return cs(r?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:ct(t.dimension.property,"0px")})},gB=function(e,t){return go([Io(Ni(),(function(n,r){var i=r.event.raw;if(i.propertyName===e.dimension.property){JF(n,e),t.isExpanded()&&rl(n.element,e.dimension.property);var o=t.isExpanded()?e.onGrown:e.onShrunk;o(n)}}))])},vB=Object.freeze({__proto__:null,exhibit:mB,events:gB}),yB=[bn("closedClass"),bn("openClass"),bn("shrinkingClass"),bn("growingClass"),An("getAnimationRoot"),Fc("onShrunk"),Fc("onStartShrink"),Fc("onGrown"),Fc("onStartGrow"),Fn("expanded",!1),_n("dimension",ln("property",{width:[Uc("property","width"),Uc("getDimension",(function(e){return Nl(e)+"px"}))],height:[Uc("property","height"),Uc("getDimension",(function(e){return Sl(e)+"px"}))]}))],bB=function(e){var t=Xn(e.expanded),n=function(){return"expanded: "+t.get()};return is({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:s(t.set,!1),setExpanded:s(t.set,!0),readState:n})},_B=Object.freeze({__proto__:null,init:bB}),wB=Uu({fields:yB,name:"sliding",active:vB,apis:pB,state:_B}),xB=o([Dc(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Fc("onOpened"),Fc("onClosed")].concat(IF())),SB=o([Tm({factory:gF,schema:fF(),name:"primary"}),Tm({factory:gF,schema:fF(),name:"overflow",overrides:function(e){return{toolbarBehaviours:qu([wB.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){Gm(t,e,"overflow-button").each((function(e){Jb.off(e),Pb.focus(e)})),e.onClosed(t)},onGrown:function(t){db.focusIn(t),e.onOpened(t)},onStartGrow:function(t){Gm(t,e,"overflow-button").each(Jb.on)}}),db.config({mode:"acyclic",onEscape:function(t){return Gm(t,e,"overflow-button").each(Pb.focus),w.some(!0)}})])}}}),Im({name:"overflow-button",overrides:function(e){return{buttonBehaviours:qu([Jb.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Im({name:"overflow-group"})]),CB=function(e,t){return Gm(e,t,"overflow").map(wB.hasGrown).getOr(!1)},EB=function(e,t){Gm(e,t,"overflow-button").bind((function(){return Gm(e,t,"overflow")})).each((function(n){kB(e,t),wB.toggleGrow(n)}))},kB=function(e,t){Gm(e,t,"overflow").each((function(n){TF(e,t,(function(e){var t=W(e,(function(e){return _l(e)}));gF.setGroups(n,t)})),Gm(e,t,"overflow-button").each((function(e){wB.hasGrown(n)&&Jb.on(e)})),wB.refresh(n)}))},OB=function(e,t,n,r){var i="alloy.toolbar.toggle",o=function(t,n){var r=W(n,t.getSystem().build);e.builtGroups.set(r)};return{uid:e.uid,dom:e.dom,components:t,behaviours:Qp(e.splitToolbarBehaviours,[QT.config({others:{overflowGroup:function(e){return GF.sketch(h(h({},r["overflow-group"]()),{items:[J_.sketch(h(h({},r["overflow-button"]()),{action:function(t){co(e,i)}}))]}))}}}),Sb("toolbar-toggle-events",[_o(i,(function(t){EB(t,e)}))])]),apis:{setGroups:function(t,n){o(t,n),kB(t,e)},refresh:function(t){return kB(t,e)},toggle:function(t){return EB(t,e)},isOpen:function(t){return CB(t,e)}},domModification:{attributes:{role:"group"}}}},TB=lg({name:"SplitSlidingToolbar",configFields:xB(),partFields:SB(),factory:OB,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),IB=o(ja("toolbar-height-change")),AB=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:h({tag:"div",classes:["tox-toolbar__group"]},t),components:[GF.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:qu([ZO.config({}),Pb.config({})])}},RB=function(e){return GF.sketch(AB(e))},PB=function(e,t){var n=Ao((function(t){var n=W(e.initGroups,RB);gF.setGroups(t,n)}));return qu([KC.toolbarButton(e.providers.isDisabled),GC(),db.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),Sb("toolbar-events",[n])])},MB=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":AB({title:w.none(),items:[]}),"overflow-button":NN({name:"more",icon:w.some("more-drawer"),disabled:!1,tooltip:w.some("More..."),primary:!1,borderless:!1},w.none(),e.providers)},splitToolbarBehaviours:PB(e,t)}},NB=function(e){var t=MB(e),n=4,r=$F.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return $F.sketch(h(h({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,r=oc(t),i=Go(t),o=oc(i),a=Math.max(i.dom.scrollHeight,o.height);return rc(r.x+n,o.y,r.width-2*n,a)},parts:h(h({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},LB=function(e){var t=TB.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=TB.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=MB(e);return TB.sketch(h(h({},r),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([IB()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([IB()],{type:"closed"})}}))},DB=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return gF.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===sx.scrolling?["tox-toolbar--scrolling"]:[])},components:[gF.parts.groups({})],toolbarBehaviours:PB(e,t)})},jB=Ft([xn("type"),_n("items",qt([Yt([xn("name"),In("items",hn)]),hn]))].concat(Gw)),FB=function(e){return nn("GroupToolbarButton",jB,e)},BB=[Mn("text"),Mn("tooltip"),Mn("icon"),En("fetch"),Vn("onSetup",(function(){return t}))],qB=Ft(m([xn("type")],BB)),zB=function(e){return nn("menubutton",qB,e)},UB=Ft([xn("type"),Mn("tooltip"),Mn("icon"),Mn("text"),Nn("select"),En("fetch"),Vn("onSetup",(function(){return t})),Un("presets","normal",["normal","color","listpreview"]),Fn("columns",1),En("onAction"),En("onItemAction")]),GB=function(e){return nn("SplitButton",UB,e)},VB=function(e,t){var n=function(n,r){e.updateState.each((function(e){var i=e(n,r);t.set(i)})),e.renderComponents.each((function(e){var i=e(r,t.get()),o=W(i,n.getSystem().build);Fh(n,o)}))};return go([_o(zi(),(function(t,r){var i=r;if(!i.universal){var o=e.channel;z(i.channels,o)&&n(t,i.data)}})),Ao((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])},WB=Object.freeze({__proto__:null,events:VB}),HB=function(e,t,n){return n},$B=Object.freeze({__proto__:null,getState:HB}),KB=[bn("channel"),An("renderComponents"),An("updateState"),An("initialData")],XB=function(){var e=Xn(w.none()),t=function(t){return e.set(t)},n=function(){return e.set(w.none())},r=function(){return e.get()},i=function(){return e.get().fold((function(){return"none"}),(function(e){return e}))};return{readState:i,get:r,set:t,clear:n}},YB=Object.freeze({__proto__:null,init:XB}),JB=Uu({fields:KB,name:"reflecting",active:WB,apis:$B,state:YB}),QB=o([bn("toggleClass"),bn("fetch"),qc("onExecute"),Fn("getHotspot",w.some),Fn("getAnchorOverrides",o({})),Ud(),qc("onItemExecute"),An("lazySink"),bn("dom"),Fc("onOpen"),Yp("splitDropdownBehaviours",[QT,db,Pb]),Fn("matchWidth",!1),Fn("useMinWidth",!1),Fn("eventOrder",{}),An("role")].concat(hI())),ZB=Tm({factory:J_,schema:[bn("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:qu([Pb.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(fo)},buttonBehaviours:qu([Jb.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),eq=Tm({factory:J_,schema:[bn("dom")],name:"button",defaults:function(){return{buttonBehaviours:qu([Pb.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),tq=o([ZB,eq,Am({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[bn("text")],name:"aria-descriptor"}),Im({schema:[Lc()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),eI()]),nq=function(e,n,r,i){var o,a=function(e){bg.getCurrent(e).each((function(e){Bg.highlightFirst(e),db.focusIn(e)}))},s=function(n){var r=a;sI(e,(function(e){return e}),n,i,r,ET.HighlightFirst).get(t)},l=function(e){return s(e),w.some(!0)},c=function(t){var n=Vm(t,e,"button");return fo(n),w.some(!0)},u=h(h({},go([Ao((function(t,n){var r=Gm(t,e,"aria-descriptor");r.each((function(e){var n=ja("aria");Sa(e.element,"id",n),Sa(t.element,"aria-describedby",n)}))}))])),Zb(w.some(s))),d={repositionMenus:function(e){Jb.isOn(e)&&fI(e)}};return{uid:e.uid,dom:e.dom,components:n,apis:d,eventOrder:h(h({},e.eventOrder),(o={},o[Ui()]=["disabling","toggling","alloy.base.behaviour"],o)),events:u,behaviours:Qp(e.splitDropdownBehaviours,[QT.config({others:{sandbox:function(t){var n=Vm(t,e,"arrow"),r={onOpen:function(){Jb.on(n),Jb.on(t)},onClose:function(){Jb.off(n),Jb.off(t)}};return dI(e,t,r)}}}),db.config({mode:"special",onSpace:c,onEnter:c,onDown:l}),Pb.config({}),Jb.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},rq=lg({name:"SplitDropdown",configFields:QB(),partFields:tq(),factory:nq,apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),iq=function(e){return{isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)}}},oq=function(e){return{setActive:function(t){Jb.set(e,t)},isActive:function(){return Jb.isOn(e)},isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)}}},aq=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},sq=ja("focus-button"),lq=["checklist","ordered-list"],cq=["indent","outdent","table-insert-column-after","table-insert-column-before","unordered-list"],uq=function(e,t,n,r,i,o){var a,s=function(e){return RS.isRtl()&&z(lq,e)?e+"-rtl":e},l=RS.isRtl()&&e.exists((function(e){return z(cq,e)}));return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]).concat(l?["tox-tbtn__icon-rtl"]:[]),attributes:aq(n,o)},components:eE([e.map((function(e){return dN(s(e),o.icons)})),t.map((function(e){return hN(e,"tox-tbtn",o)}))]),eventOrder:(a={},a[xi()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:qu([KC.toolbarButton(o.isDisabled),GC(),Sb("common-button-display-events",[_o(xi(),(function(e,t){t.event.prevent(),co(e,sq)}))])].concat(r.map((function(n){return JB.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return eE([e.icon.map((function(e){return dN(s(e),o.icons)})),e.text.map((function(e){return hN(e,"tox-tbtn",o)}))])}})})).toArray()).concat(i.getOr([])))}},dq=function(e,t,n,r){var i=t.shared;return BF.sketch({lazySink:i.getSink,fetch:function(){return NT.nu((function(t){t(W(n(e.items),RB))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:uq(e.icon,e.text,e.tooltip,w.none(),w.none(),i.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},fq=function(e,n,r){var i=Xn(t),o=uq(e.icon,e.text,e.tooltip,w.none(),w.none(),r);return J_.sketch({dom:o.dom,components:o.components,eventOrder:gN,buttonBehaviours:qu([Sb("toolbar-button-events",[mN({onAction:e.onAction,getApi:n.getApi}),YC(n,i),JC(n,i)]),KC.toolbarButton((function(){return e.disabled||r.isDisabled()})),GC()].concat(n.toolbarButtonBehaviours))})},hq=function(e,t){return pq(e,t,[])},pq=function(e,t,n){return fq(e,{toolbarButtonBehaviours:[].concat(n.length>0?[Sb("toolbarButtonWith",n)]:[]),getApi:iq,onSetup:e.onSetup},t)},mq=function(e,t){return gq(e,t,[])},gq=function(e,t,n){return Ke(fq(e,{toolbarButtonBehaviours:[wb.config({}),Jb.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[Sb("toolbarToggleButtonWith",n)]:[]),getApi:oq,onSetup:e.onSetup},t))},vq=function(e,t,n){return function(r){return NT.nu((function(e){return t.fetch(e)})).map((function(i){return w.from(sO(Ke(Rk(ja("menu-value"),i,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,lx.CLOSE_ON_EXECUTE,t.select.getOr(u),n),{movement:Mk(t.columns,t.presets),menuBehaviours:gS.unnamedEvents("auto"!==t.columns?[]:[Ao((function(e,n){hS(e,4,Ax(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;db.setGridSize(e,n,r)}))}))])})))}))}},yq=function(e,n){var r,i=ja("channel-update-split-dropdown-display"),o=function(e){return{isDisabled:function(){return YS.isDisabled(e)},setDisabled:function(t){return YS.set(e,t)},setIconFill:function(t,n){pc(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Sa(e,"fill",n)}))},setIconStroke:function(t,n){pc(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){Sa(e,"stroke",n)}))},setActive:function(t){Sa(e.element,"aria-pressed",t),pc(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return Jb.set(e,t)}))}))},isActive:function(){return pc(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(Jb.isOn)}))}}},a=Xn(t),s={getApi:o,onSetup:e.onSetup};return rq.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:h({"aria-pressed":!1},aq(e.tooltip,n.providers))},onExecute:function(t){e.onAction(o(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:qu([KC.splitButton(n.providers.isDisabled),GC(),Sb("split-dropdown-events",[_o(sq,Pb.focus),YC(s,a),JC(s,a)]),wI.config({})]),eventOrder:(r={},r[Zi()]=["alloy.base.behaviour","split-dropdown-events"],r),toggleClass:"tox-tbtn--enabled",lazySink:n.getSink,fetch:vq(o,e,n.providers),parts:{menu:Dx(!1,e.columns,e.presets)},components:[rq.parts.button(uq(e.icon,e.text,w.none(),w.some(i),w.some([Jb.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),n.providers)),rq.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:ew("chevron-down",n.providers.icons)},buttonBehaviours:qu([KC.splitButton(n.providers.isDisabled),GC()])}),rq.parts["aria-descriptor"]({text:n.providers.translate("To open the popup, press Shift+Enter")})]})},bq=function(e){return{hide:function(){return co(e,Hi())},getValue:function(){return Xp.getValue(e)}}},_q=function(e,t){return _o(pN,(function(n,r){var i=e.get(n),o=bq(i);t.onAction(o,r.event.buttonApi)}))},wq=function(e,n,r){var i=n.original,o=(i.primary,p(i,["primary"])),a=rn(Ww(h(h({},o),{type:"button",onAction:t})));return pq(a,r.backstage.shared.providers,[_q(e,n)])},xq=function(e,n,r){var i=n.original,o=(i.primary,p(i,["primary"])),a=rn(Kw(h(h({},o),{type:"togglebutton",onAction:t})));return gq(a,r.backstage.shared.providers,[_q(e,n)])},Sq=function(e,t,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===t.type?xq(e,t,r):wq(e,t,r)},Cq=function(e,t,n){var r=W(t,(function(t){return Q_(Sq(e,t,n))})),i=function(){return W(r,(function(e){return e.asSpec()}))},o=function(e){return fe(t,(function(t,n){return t.primary?w.from(r[n]).bind((function(t){return t.getOpt(e)})).filter(l(YS.isDisabled)):w.none()}))};return{asSpecs:i,findPrimary:o}},Eq=function(e,t){var n=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),r=Q_(xT.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:qu([db.config({mode:"special",onEnter:function(e){return i.findPrimary(e).map((function(e){return fo(e),!0}))},onLeft:function(e,t){return t.cut(),w.none()},onRight:function(e,t){return t.cut(),w.none()}})])})),i=Cq(r,e.commands,t);return[{title:w.none(),items:[r.asSpec()]},{title:w.none(),items:i.asSpecs()}]},kq=function(e,t,n){return DB({type:e,uid:ja("context-toolbar"),initGroups:Eq(t,n),onEscape:w.none,cyclicKeying:!0,providers:n})},Oq={renderContextForm:kq,buildInitGroups:Eq},Tq=function(e,t){var n=Math.max(t.x,e.x),r=e.right-n,i=t.width-(n-t.x),o=Math.min(r,i);return{x:n,width:o}},Iq=function(e,t,n,r){var i=tr.fromDom(e.getContainer()),o=pc(i,".tox-editor-header").getOr(i),a=ic(o),s=a.y>=t.bottom,l=r&&!s;if(e.inline&&l)return{y:Math.max(a.bottom,n.y),bottom:n.bottom};if(e.inline&&!l)return{y:n.y,bottom:Math.min(a.y,n.bottom)};var c=ic(i);return l?{y:Math.max(a.bottom,n.y),bottom:Math.min(c.bottom,n.bottom)}:{y:Math.max(c.y,n.y),bottom:Math.min(a.y,n.bottom)}},Aq=function(e,t){var n=Kl(window),r=ic(tr.fromDom(e.getContentAreaContainer())),i=dC(e)||fC(e)||pC(e),o=Tq(r,n),a=o.x,s=o.width;if(e.inline&&!i)return rc(a,n.y,s,n.height);var l=t.header.isPositionedAtTop(),c=Iq(e,r,n,l),u=c.y,d=c.bottom;return rc(a,u,s,d-u)},Rq=function(e,t){var n=X(t,(function(t){return t.predicate(e.dom)})),r=K(n,(function(e){return"contexttoolbar"===e.type})),i=r.pass,o=r.fail;return{contextToolbars:i,contextForms:o}},Pq=function(e){if(e.length<=1)return e;var t=function(t){return U(e,(function(e){return e.position===t}))},n=function(t){return X(e,(function(e){return e.position===t}))},r=t("selection"),i=t("node");if(r||i){if(i&&r){var o=n("node"),a=W(n("selection"),(function(e){return h(h({},e),{position:"node"})}));return o.concat(a)}return n(r?"selection":"node")}return n("line")},Mq=function(e){if(e.length<=1)return e;var t=function(t){return Z(e,(function(e){return e.position===t}))},n=t("selection").orThunk((function(){return t("node")})).orThunk((function(){return t("line")})).map((function(e){return e.position}));return n.fold((function(){return[]}),(function(t){return X(e,(function(e){return e.position===t}))}))},Nq=function(e,t,n){var r=Rq(e,t);if(r.contextForms.length>0)return w.some({elem:e,toolbars:[r.contextForms[0]]});var i=Rq(e,n);if(i.contextForms.length>0)return w.some({elem:e,toolbars:[i.contextForms[0]]});if(r.contextToolbars.length>0||i.contextToolbars.length>0){var o=Pq(r.contextToolbars.concat(i.contextToolbars));return w.some({elem:e,toolbars:o})}return w.none()},Lq=function(e,t,n){return e(t)?w.none():ci(t,(function(e){var t=Rq(e,n.inNodeScope),r=t.contextToolbars,i=t.contextForms,o=i.length>0?i:Mq(r);return o.length>0?w.some({elem:e,toolbars:o}):w.none()}),e)},Dq=function(e,t){var n=tr.fromDom(t.getBody()),r=function(e){return ii(e,n)},i=function(e){return!r(e)&&!si(n,e)},o=tr.fromDom(t.selection.getNode());return i(o)?w.none():Nq(o,e.inNodeScope,e.inEditorScope).orThunk((function(){return Lq(r,o,e)}))},jq=function(e,t){var n={},r=[],i=[],o={},a={},s=function(e,s){var l=rn(nx(s));n[e]=l,l.launch.map((function(n){o["form:"+e]=h(h({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(l)}})})),"editor"===l.scope?i.push(l):r.push(l),a[e]=l},l=function(e,t){ix(t).each((function(n){"editor"===t.scope?i.push(n):r.push(n),a[e]=n}))},c=Te(e);return H(c,(function(t){var n=e[t];"contextform"===n.type?s(t,n):"contexttoolbar"===n.type&&l(t,n)})),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},Fq=ja("forward-slide"),Bq=ja("backward-slide"),qq=ja("change-slide-event"),zq="tox-pop--resizing",Uq=function(e){var t=Xn([]);return j_.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){t.set([]),j_.getContent(e).each((function(e){rl(e.element,"visibility")})),Bs(e.element,zq),rl(e.element,"width")},inlineBehaviours:qu([Sb("context-toolbar-events",[Io(Ni(),(function(e,t){Bs(e.element,zq),rl(e.element,"width")})),_o(qq,(function(e,t){var n=e.element;rl(n,"width");var r=Nl(n);j_.setContent(e,t.event.contents),js(n,zq);var i=Nl(n);Xs(n,"width",r+"px"),j_.getContent(e).each((function(e){t.event.focus.bind((function(e){return Yu(e),ed(n)})).orThunk((function(){return db.focusIn(e),Zu(ta(n))}))})),X_.setTimeout((function(){Xs(e.element,"width",i+"px")}),0)})),_o(Fq,(function(e,n){j_.getContent(e).each((function(n){t.set(t.get().concat([{bar:n,focus:Zu(ta(e.element))}]))})),uo(e,qq,{contents:n.event.forwardContents,focus:w.none()})})),_o(Bq,(function(e,n){ue(t.get()).each((function(n){t.set(t.get().slice(0,t.get().length-1)),uo(e,qq,{contents:_l(n.bar),focus:n.focus})}))}))]),db.config({mode:"special",onEscape:function(n){return ue(t.get()).fold((function(){return e.onEscape()}),(function(e){return co(n,Bq),w.some(!0)}))}})]),lazySink:function(){return ge.value(e.sink)}})},Gq=function(e,t,n){var r=function(e,r,o,a){var s=t.shared.providers.translate(e.title);if("separator"===e.type)return w.some({type:"separator",text:s});if("submenu"===e.type){var l=ne(e.getStyleItems(),(function(e){return i(e,r,a)}));return 0===r&&l.length<=0?w.none():w.some({type:"nestedmenuitem",text:s,disabled:l.length<=0,getSubmenuItems:function(){return ne(e.getStyleItems(),(function(e){return i(e,r,a)}))}})}return w.some(h({type:"togglemenuitem",text:s,icon:e.icon,active:e.isSelected(a),disabled:o,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},i=function(e,t,i){var o="formatter"===e.type&&n.isInvalid(e);return 0===t?o?[]:r(e,t,!1,i).toArray():r(e,t,o,i).toArray()},o=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return ne(e,(function(e){return i(e,r,t)}))},a=function(e,t){return function(n,r){var i=t(),a=o(i),s=IN(a,lx.CLOSE_ON_EXECUTE,e,!1);r(s)}};return{validateItems:o,getFetch:a}},Vq=function(e,t,n){var r=n.dataset,i="basic"===r.type?function(){return W(r.data,(function(e){return gj(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:Gq(e,t,n),getStyleItems:i}},Wq=function(e,n,r){var i=Vq(e,n,r),o=i.items,a=i.getStyleItems,s=function(e){return{getComponent:function(){return e}}},l=function(n){return r.setInitialValue.each((function(e){return e(n.getComponent())})),r.nodeChangeHandler.map((function(t){var r=t(n.getComponent());return e.on("NodeChange",r),function(){e.off("NodeChange",r)}})).getOr(t)};return bN({text:r.icon.isSome()?w.none():w.some(""),icon:r.icon,tooltip:w.from(r.tooltip),role:w.none(),fetch:o.getFetch(n,a),onSetup:l,getApi:s,columns:1,presets:"normal",classes:r.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",n.shared)},Hq=function(e){return W(e,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}}))},$q=function(e){return{type:"basic",data:e}};(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(ML||(ML={}));var Kq,Xq=function(e,t){return t===ML.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")},Yq=function(e,t,n,r){var i=e.getParam(t,n,"string"),o=Hq(Xq(i,r));return{type:"basic",data:o}},Jq=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],Qq=function(e){var t=function(){return Z(Jq,(function(t){return e.formatter.match(t.format)}))},n=function(t){return function(){return e.formatter.match(t)}},r=function(e){return function(){return w.none()}},i=function(e){var n=t(),r=n.fold((function(){return"left"}),(function(e){return e.title.toLowerCase()}));uo(e,yN,{icon:"align-"+r})},o=w.some((function(e){return function(){return i(e)}})),a=w.some((function(e){return i(e)})),s=$q(Jq),l=function(t){return function(){return Z(Jq,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}};return{tooltip:"Align",icon:w.some("align-left"),isSelectedFor:n,getCurrentValue:w.none,getPreviewFor:r,onAction:l,setInitialValue:a,nodeChangeHandler:o,dataset:s,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},Zq=function(e,t){return Wq(e,t,Qq(e))},ez=function(e,t){var n=Vq(e,t,Qq(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},tz="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",nz=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],rz=function(e){var t=e.split(/\s*,\s*/);return W(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},iz=function(e){var t=function(){var t=rz(e.toLowerCase());return re(nz,(function(e){return t.indexOf(e.toLowerCase())>-1}))};return 0===e.indexOf("-apple-system")&&t()},oz=function(e){var t=function(){var t=function(e){return e?rz(e)[0]:""},n=e.queryCommandValue("FontName"),r=c.data,i=n?n.toLowerCase():"",o=Z(r,(function(e){var n=e.format;return n.toLowerCase()===i||t(n).toLowerCase()===t(i).toLowerCase()})).orThunk((function(){return iz(i)?w.from({title:"System Font",format:i}):w.none()}));return{matchOpt:o,font:n}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=function(e){return function(){return w.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},o=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},a=function(e){var n=t(),r=n.matchOpt,i=n.font,o=r.fold((function(){return i}),(function(e){return e.title}));uo(e,vN,{text:o})},s=w.some((function(e){return function(){return a(e)}})),l=w.some((function(e){return a(e)})),c=Yq(e,"font_formats",tz,ML.SemiColon);return{tooltip:"Fonts",icon:w.none(),isSelectedFor:n,getCurrentValue:r,getPreviewFor:i,onAction:o,setInitialValue:l,nodeChangeHandler:s,dataset:c,shouldHide:!1,isInvalid:u}},az=function(e,t){return Wq(e,t,oz(e))},sz=function(e,t){var n=Vq(e,t,oz(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},lz="8pt 10pt 12pt 14pt 18pt 24pt 36pt",cz={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},uz={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},dz=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},fz=function(e,t){return/[0-9.]+px$/.test(e)?dz(72*parseInt(e,10)/96,t||0)+"pt":Be(uz,e).getOr(e)},hz=function(e){return Be(cz,e).getOr("")},pz=function(e){var t=function(){var t=w.none(),n=d.data,r=e.queryCommandValue("FontSize");if(r)for(var i=function(e){var i=fz(r,e),o=hz(i);t=Z(n,(function(e){return e.format===r||e.format===i||e.format===o}))},o=3;t.isNone()&&o>=0;o--)i(o);return{matchOpt:t,size:r}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=o(w.none),a=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},s=function(e){var n=t(),r=n.matchOpt,i=n.size,o=r.fold((function(){return i}),(function(e){return e.title}));uo(e,vN,{text:o})},l=w.some((function(e){return function(){return s(e)}})),c=w.some((function(e){return s(e)})),d=Yq(e,"fontsize_formats",lz,ML.Space);return{tooltip:"Font sizes",icon:w.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:a,setInitialValue:c,nodeChangeHandler:l,dataset:d,shouldHide:!1,isInvalid:u}},mz=function(e,t){return Wq(e,t,pz(e))},gz=function(e,t){var n=Vq(e,t,pz(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},vz=function(e,t){var n=t(),r=W(n,(function(e){return e.format}));return w.from(e.formatter.closest(r)).bind((function(e){return Z(n,(function(t){return t.format===e}))})).orThunk((function(){return pg(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))},yz=function(e){var t=Xn(w.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(w.none())},i=function(){return t.get().isSome()},o=function(e){n(),t.set(w.some(e))};return{clear:r,isSet:i,set:o}},bz=function(){return yz((function(e){return e.destroy()}))},_z=function(){return yz((function(e){return e.unbind()}))},wz=function(){var e=Xn(w.none()),t=function(){return e.set(w.none())},n=function(t){return e.set(w.some(t))},r=function(){return e.get().isSome()},i=function(t){return e.get().each(t)};return{clear:t,set:n,isSet:r,on:i}},xz=function(e,t){return function(n){var r=_z(),i=function(){n.setActive(e.formatter.match(t));var i=e.formatter.formatChanged(t,n.setActive);r.set(i)};return e.initialized?i():e.on("init",i),r.clear}},Sz=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},Cz="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",Ez=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},r=function(t){var n=vz(e,(function(){return a.data})),r=n.fold((function(){return"Paragraph"}),(function(e){return e.title}));uo(t,vN,{text:r})},i=w.some((function(e){return function(){return r(e)}})),o=w.some((function(e){return r(e)})),a=Yq(e,"block_formats",Cz,ML.SemiColon);return{tooltip:"Blocks",icon:w.none(),isSelectedFor:t,getCurrentValue:w.none,getPreviewFor:n,onAction:Sz(e),setInitialValue:o,nodeChangeHandler:i,dataset:a,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},kz=function(e,t){return Wq(e,t,Ez(e))},Oz=function(e,t){var n=Vq(e,t,Ez(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},Tz=function(e,t){var n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):w.none()}},i=function(t){var n=function(e){var t=e.items;return void 0!==t&&t.length>0?ne(t,n):[{title:e.title,format:e.format}]},r=ne(mj(e),n),i=vz(e,(function(){return r})),o=i.fold((function(){return"Paragraph"}),(function(e){return e.title}));uo(t,vN,{text:o})},o=w.some((function(e){return function(){return i(e)}})),a=w.some((function(e){return i(e)}));return{tooltip:"Formats",icon:w.none(),isSelectedFor:n,getCurrentValue:w.none,getPreviewFor:r,onAction:Sz(e),setInitialValue:a,nodeChangeHandler:o,shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},Iz=function(e,t){var n=h({type:"advanced"},t.styleselect);return Wq(e,t,Tz(e,n))},Az=function(e,t){var n=h({type:"advanced"},t.styleselect),r=Vq(e,t,Tz(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},Rz=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Pz=function(e,t){return function(n,r,i){var o=e(n).mapError((function(e){return an(e)})).getOrDie();return t(o,r,i)}},Mz={button:Pz(Ww,(function(e,t){return hq(e,t.backstage.shared.providers)})),togglebutton:Pz(Kw,(function(e,t){return mq(e,t.backstage.shared.providers)})),menubutton:Pz(zB,(function(e,t){return RN(e,"tox-tbtn",t.backstage,w.none())})),splitbutton:Pz(GB,(function(e,t){return yq(e,t.backstage.shared)})),grouptoolbarbutton:Pz(FB,(function(e,t,n){var r,i=n.ui.registry.getAll().buttons,o=function(e){return zz(n,{buttons:i,toolbar:e,allowToolbarGroups:!1},t,w.none())},a=(r={},r[qd]=t.backstage.shared.header.isPositionedAtTop()?wc.TopToBottom:wc.BottomToTop,r);switch(gC(n)){case sx.floating:return dq(e,t.backstage,o,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(e,t){return Iz(e,t.backstage)},fontsizeSelectButton:function(e,t){return mz(e,t.backstage)},fontSelectButton:function(e,t){return az(e,t.backstage)},formatButton:function(e,t){return kz(e,t.backstage)},alignMenuButton:function(e,t){return Zq(e,t.backstage)}},Nz=function(e,t,n){return Be(Mz,e.type).fold((function(){return console.error("skipping button defined by",e),w.none()}),(function(r){return w.some(r(e,t,n))}))},Lz={styleselect:Mz.styleSelectButton,fontsizeselect:Mz.fontsizeSelectButton,fontselect:Mz.fontSelectButton,formatselect:Mz.formatButton,align:Mz.alignMenuButton},Dz=function(e){var t=W(Rz,(function(t){var n=X(t.items,(function(t){return qe(e,t)||qe(Lz,t)}));return{name:t.name,items:n}}));return X(t,(function(e){return e.items.length>0}))},jz=function(e){var t=e.split("|");return W(t,(function(e){return{items:e.trim().split(" ")}}))},Fz=function(e){return L(e,(function(e){return qe(e,"name")&&qe(e,"items")}))},Bz=function(e){var t=e.toolbar,n=e.buttons;return!1===t?[]:void 0===t||!0===t?Dz(n):k(t)?jz(t):Fz(t)?t:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},qz=function(e,t,n,r,i,o){return Be(t,n.toLowerCase()).orThunk((function(){return o.bind((function(e){return fe(e,(function(e){return Be(t,e+n.toLowerCase())}))}))})).fold((function(){return Be(Lz,n.toLowerCase()).map((function(t){return t(e,i)})).orThunk((function(){return w.none()}))}),(function(t){return"grouptoolbarbutton"!==t.type||r?Nz(t,i,e):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),w.none())}))},zz=function(e,t,n,r){var i=Bz(t),o=W(i,(function(i){var o=ne(i.items,(function(i){return 0===i.trim().length?[]:qz(e,t.buttons,i,t.allowToolbarGroups,n,r).toArray()}));return{title:w.from(e.translate(i.name)),items:o}}));return X(o,(function(e){return e.items.length>0}))},Uz=12,Gz={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},Vz={maxHeightFunction:Id(),maxWidthFunction:cF()},Wz={onLtr:function(){return[bu,_u,vu,mu,yu,gu,$_,K_,W_,G_,H_,V_]},onRtl:function(){return[bu,_u,yu,gu,vu,mu,$_,K_,H_,V_,W_,G_]}},Hz={onLtr:function(){return[_u,mu,gu,vu,yu,bu,$_,K_,W_,G_,H_,V_]},onRtl:function(){return[_u,gu,mu,yu,vu,bu,$_,K_,H_,V_,W_,G_]}},$z=function(e,t){return"line"===e?{bubble:Nd(Uz,0,Gz),layouts:{onLtr:function(){return[wu]},onRtl:function(){return[xu]}},overrides:Vz}:{bubble:Nd(0,Uz,Gz),layouts:t?Hz:Wz,overrides:Vz}},Kz=function(e,n,r,i){var o=$r().deviceType.isTouch,a=bl(Uq({sink:r,onEscape:function(){return e.focus(),w.some(!0)}})),s=function(){return Aq(e,i.backstage.shared)},l=function(e,t,n,r){return Math.max(e,n)<=Math.min(t,r)},c=function(){var t=g.get().filter((function(e){return Vs(tr.fromDom(e))})).map((function(e){return e.getBoundingClientRect()})).getOrThunk((function(){return e.selection.getRng().getBoundingClientRect()})),n=e.inline?Vl().top:oc(tr.fromDom(e.getBody())).y;return{y:t.top+n,bottom:t.bottom+n}},u=function(){if(o()&&i.backstage.isContextMenuOpen())return!0;var e=c(),t=s();return!l(e.y,e.bottom,t.y,t.bottom)},d=function(){m.set(w.none()),j_.hide(a)},f=function(){j_.hide(a)},p=function(){m.get().each((function(e){var t=a.element;rl(t,"display"),u()?Xs(t,"display","none"):Mh.positionWithinBounds(r,e,a,w.some(s()))}))},m=Xn(w.none()),g=Xn(w.none()),v=Xn(null),y=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:qu([db.config({mode:"acyclic"}),Sb("pop-dialog-wrap-events",[Ao((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return db.focusIn(t)}))})),Ro((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},b=Ye((function(){return jq(n,(function(e){var t=S([e]);uo(a,Fq,{forwardContents:y(t)})}))})),_=function(t,n){return zz(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},i,w.some(["form:"]))},x=function(e,t){return Oq.buildInitGroups(e,t)},S=function(t){var n=e.ui.registry.getAll().buttons,r=b(),o=h(h({},n),r.formNavigators),a=gC(e)===sx.scrolling?sx.scrolling:sx.default,s=te(W(t,(function(e){return"contexttoolbar"===e.type?_(o,e):x(e,i.backstage.shared.providers)})));return DB({type:a,uid:ja("context-toolbar"),initGroups:s,onEscape:w.none,cyclicKeying:!0,providers:i.backstage.shared.providers})};e.on(uF,(function(t){var n=b();Be(n.lookupTable,t.toolbarKey).each((function(n){E([n],t.target===e?w.none():w.some(t)),j_.getContent(a).each(db.focusIn)}))}));var C=function(e,t){var n="node"===e?i.backstage.shared.anchors.node(t):i.backstage.shared.anchors.cursor();return Ke(n,$z(e,o()))},E=function(e,t){if(O(),!o()||!i.backstage.isContextMenuOpen()){var n=S(e),r=t.map(tr.fromDom),l=C(e[0].position,r);m.set(w.some(l)),g.set(t);var c=a.element;rl(c,"display"),j_.showWithinBounds(a,l,y(n),(function(){return w.some(s())})),u()&&Xs(c,"display","none")}},k=function(){if(e.hasFocus()){var t=b();Dq(t,e).fold(d,(function(e){E(e.toolbars,w.some(e.elem.dom))}))}},O=function(){var e=v.get();null!==e&&(X_.clearTimeout(e),v.set(null))},T=function(){O(),v.set(X_.setEditorTimeout(e,k,0))};e.on("init",(function(){e.on(dF,f),e.on("ScrollContent ScrollWindow longpress",p),e.on("click keyup focus SetContent ObjectResized ResizeEditor",(function(){T()})),e.on("focusout",(function(t){X_.setEditorTimeout(e,(function(){ed(r.element).isNone()&&ed(a.element).isNone()&&d()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&d()})),e.on("AfterProgressState",(function(t){t.state?d():e.hasFocus()&&T()})),e.on("NodeChange",(function(e){ed(a.element).fold(T,t)}))}))},Xz=function(e,t,n){var r=function(e,r){H([t,n],(function(t){t.broadcastEvent(e,r)}))},i=function(e,r){H([t,n],(function(t){t.broadcastOn([e],r)}))},o=function(e){return i(pp(),{target:e.target})},a=fO(tr.fromDom(document),"touchstart",o),s=fO(tr.fromDom(document),"touchmove",(function(e){return r(Xi(),e)})),l=fO(tr.fromDom(document),"touchend",(function(e){return r(Yi(),e)})),c=fO(tr.fromDom(document),"mousedown",o),u=fO(tr.fromDom(document),"mouseup",(function(e){0===e.raw.button&&i(gp(),{target:e.target})})),d=function(e){return i(pp(),{target:tr.fromDom(e.target)})},f=function(e){0===e.button&&i(gp(),{target:tr.fromDom(e.target)})},h=function(e){return r(Ji(),pO(e))},p=function(e){i(mp(),{}),r(Qi(),pO(e))},m=function(){return i(mp(),{})},g=function(t){t.state&&i(pp(),{target:tr.fromDom(e.getContainer())})};e.on("PostRender",(function(){e.on("click",d),e.on("tap",d),e.on("mouseup",f),e.on("ScrollWindow",h),e.on("ResizeWindow",p),e.on("ResizeEditor",m),e.on("AfterProgressState",g)})),e.on("remove",(function(){e.off("click",d),e.off("tap",d),e.off("mouseup",f),e.off("ScrollWindow",h),e.off("ResizeWindow",p),e.off("ResizeEditor",m),e.off("AfterProgressState",g),c.unbind(),a.unbind(),s.unbind(),l.unbind(),u.unbind()})),e.on("detach",(function(){$h(t),$h(n),t.destroy(),n.destroy()}))},Yz=Jm,Jz=Mm,Qz=o([Fn("shell",!1),bn("makeItem"),Fn("setupItem",t),Zp.field("listBehaviours",[wb])]),Zz=function(){return{behaviours:qu([wb.config({})])}},eU=Am({name:"items",overrides:Zz}),tU=o([eU]),nU=o("CustomList"),rU=function(e,t,n,r){var i=function(t,n){a(t).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var i=wb.contents(r),o=n.length,a=o-i.length,s=a>0?G(a,(function(){return e.makeItem()})):[],l=i.slice(o);H(l,(function(e){return wb.remove(r,e)})),H(s,(function(e){return wb.append(r,e)}));var c=wb.contents(r);H(c,(function(r,i){e.setupItem(t,r,n[i],i)}))}))},o=e.shell?{behaviours:[wb.config({})],components:[]}:{behaviours:[],components:t},a=function(t){return e.shell?w.some(t):Gm(t,e,"items")};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:Qp(e.listBehaviours,o.behaviours),apis:{setItems:i}}},iU=lg({name:nU(),configFields:Qz(),partFields:tU(),factory:rU,apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),oU=t,aU=u,sU=o([]),lU=Object.freeze({__proto__:null,setup:oU,isDocked:aU,getBehaviours:sU}),cU=function(e){var t=el(e,"position").is("fixed"),n=t?w.none():$o(e);return n.orThunk((function(){var t=tr.fromTag("span");return Wo(e).bind((function(e){da(e,t);var n=$o(t);return ga(t),n}))}))},uU=function(e){return cU(e).map(Al).getOrThunk((function(){return Ol(0,0)}))},dU=Ge.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),fU=function(e,t){var n=e.element;js(n,t.transitionClass),Bs(n,t.fadeOutClass),js(n,t.fadeInClass),t.onShow(e)},hU=function(e,t){var n=e.element;js(n,t.transitionClass),Bs(n,t.fadeInClass),js(n,t.fadeOutClass),t.onHide(e)},pU=function(e,t){return e.y<t.bottom&&e.bottom>t.y},mU=function(e,t){return e.y>=t.y},gU=function(e,t){return e.bottom<=t.bottom},vU=function(e,t,n){return re(e,(function(e){switch(e){case"bottom":return gU(t,n);case"top":return mU(t,n)}}))},yU=function(e,t){return t.getInitialPosition().map((function(t){return rc(t.bounds.x,t.bounds.y,Nl(e),Sl(e))}))},bU=function(e,t,n){n.setInitialPosition(w.some({style:tl(e),position:Qs(e,"position")||"static",bounds:t}))},_U=function(e,t,n){return n.getInitialPosition().bind((function(r){switch(n.setInitialPosition(w.none()),r.position){case"static":return w.some(dU.static());case"absolute":var i=cU(e).map(ic).getOrThunk((function(){return ic(Ws())}));return w.some(dU.absolute(nd("absolute",Be(r.style,"left").map((function(e){return t.x-i.x})),Be(r.style,"top").map((function(e){return t.y-i.y})),Be(r.style,"right").map((function(e){return i.right-t.right})),Be(r.style,"bottom").map((function(e){return i.bottom-t.bottom})))));default:return w.none()}}))},wU=function(e,t,n){return yU(e,n).filter((function(e){return vU(n.getModes(),e,t)})).bind((function(t){return _U(e,t,n)}))},xU=function(e,t,n){var r=ic(e);if(vU(n.getModes(),r,t))return w.none();bU(e,r,n);var i=ac(),o=r.x-i.x,a=t.y-i.y,s=i.bottom-t.bottom,l=r.y<=t.y;return w.some(dU.fixed(nd("fixed",w.some(o),l?w.some(a):w.none(),w.none(),l?w.none():w.some(s))))},SU=function(e,t,n){var r=e.element,i=el(r,"position").is("fixed");return i?wU(r,t,n):xU(r,t,n)},CU=function(e,t){var n=e.element;return yU(n,t).bind((function(e){return _U(n,e,t)}))},EU=function(e,t){H(["left","right","top","bottom","position"],(function(t){return rl(e.element,t)})),t.onUndocked(e)},kU=function(e,t,n){rd(e.element,n);var r="fixed"===n.position?t.onDocked:t.onUndocked;r(e)},OU=function(e,t,n,r,i){void 0===i&&(i=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(o){var a=pU(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)zs(e.element,[t.fadeOutClass]),t.onHide(e);else{var s=a?fU:hU;s(e,t)}}))}))},TU=function(e,t,n){var r=t.lazyViewport(e),i=n.isDocked();i&&OU(e,t,n,r),SU(e,r,n).each((function(o){n.setDocked(!i),o.fold((function(){return EU(e,t)}),(function(n){return kU(e,t,n)}),(function(i){OU(e,t,n,r,!0),kU(e,t,i)}))}))},IU=function(e,n,r){var i=e.element;r.setDocked(!1),CU(e,r).each((function(r){r.fold((function(){return EU(e,n)}),(function(t){return kU(e,n,t)}),t)})),r.setVisible(!0),n.contextual.each((function(t){Us(i,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),AU(e,n,r)},AU=function(e,t,n){e.getSystem().isConnected()&&TU(e,t,n)},RU=function(e,t,n){n.isDocked()&&IU(e,t,n)},PU=function(e,t,n){return n.isDocked()},MU=function(e,t,n,r){return n.setModes(r)},NU=function(e,t,n){return n.getModes()},LU=Object.freeze({__proto__:null,refresh:AU,reset:RU,isDocked:PU,getModes:NU,setModes:MU}),DU=function(e,t){return go([Io(Ni(),(function(n,r){e.contextual.each((function(e){if(qs(n.element,e.transitionClass)){Us(n.element,[e.transitionClass,e.fadeInClass]);var i=t.isVisible()?e.onShown:e.onHidden;i(n)}r.stop()}))})),_o(Ji(),(function(n,r){AU(n,e,t)})),_o(Qi(),(function(n,r){RU(n,e,t)}))])},jU=Object.freeze({__proto__:null,events:DU}),FU=[Dn("contextual",[xn("fadeInClass"),xn("fadeOutClass"),xn("transitionClass"),En("lazyContext"),Fc("onShow"),Fc("onShown"),Fc("onHide"),Fc("onHidden")]),Vn("lazyViewport",ac),Hn("modes",["top","bottom"],hn),Fc("onDocked"),Fc("onUndocked")],BU=function(e){var t=Xn(!1),n=Xn(!0),r=Xn(w.none()),i=Xn(e.modes),o=function(){return"docked:  "+t.get()+", visible: "+n.get()+", modes: "+i.get().join(",")};return is({isDocked:t.get,setDocked:t.set,getInitialPosition:r.get,setInitialPosition:r.set,isVisible:n.get,setVisible:n.set,getModes:i.get,setModes:i.set,readState:o})},qU=Object.freeze({__proto__:null,init:BU}),zU=Uu({fields:FU,name:"docking",active:jU,apis:LU,state:qU}),UU={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},GU="tox-tinymce--toolbar-sticky-on",VU="tox-tinymce--toolbar-sticky-off",WU=function(e,t){var n=zo(t),r=n.dom.defaultView.innerHeight,i=Vl(n),o=tr.fromDom(e.elm),a=oc(o),s=Sl(o),l=a.y,c=l+s,u=Al(t),d=Sl(t),f=u.top,h=f+d,p=Math.abs(f-i.top)<2,m=Math.abs(h-(i.top+r))<2;if(p&&l<h)Wl(i.left,l-d,n);else if(m&&c>f){var g=l-r+s+d;Wl(i.left,g,n)}},HU=function(e,t){return z(zU.getModes(e),t)},$U=function(e){var t=function(e){return Cl(e)+(parseInt(Qs(e,"margin-top"),10)||0)+(parseInt(Qs(e,"margin-bottom"),10)||0)},n=e.element;Wo(n).each((function(r){var i="padding-"+zU.getModes(e)[0];if(zU.isDocked(e)){var o=Nl(r);Xs(n,"width",o+"px"),Xs(r,i,t(n)+"px")}else rl(n,"width"),rl(r,i)}))},KU=function(e,t){t?(Bs(e,UU.fadeOutClass),zs(e,[UU.transitionClass,UU.fadeInClass])):(Bs(e,UU.fadeInClass),zs(e,[UU.fadeOutClass,UU.transitionClass]))},XU=function(e,t){var n=tr.fromDom(e.getContainer());t?(js(n,GU),Bs(n,VU)):(js(n,VU),Bs(n,GU))},YU=function(e,t){var n=zo(t);Zu(n).filter((function(e){return!ii(t,e)})).filter((function(t){return ii(t,tr.fromDom(n.dom.body))||si(e,t)})).each((function(){return Yu(t)}))},JU=function(e,t){return ed(e).orThunk((function(){return t().toOptional().bind((function(e){return ed(e.element)}))}))},QU=function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(zU.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each($U)})),e.on("SkinLoaded",(function(){n().each((function(e){zU.isDocked(e)?zU.reset(e):zU.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(zU.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){zU.refresh(t);var n=t.element;Mv(n)&&WU(e,n)}))})),e.on("PostRender",(function(){XU(e,!1)}))},ZU=function(e){return e().map(zU.isDocked).getOr(!1)},eG=function(){var e;return[Hu.config({channels:(e={},e[IB()]={onReceive:$U},e)})]},tG=function(e,t){var n=Xn(w.none()),r=t.getSink,i=function(e){r().each((function(t){return e(t.element)}))},o=function(t){e.inline||$U(t),XU(e,zU.isDocked(t)),t.getSystem().broadcastOn([mp()],{}),r().each((function(e){return e.getSystem().broadcastOn([mp()],{})}))},a=e.inline?[]:eG();return m([Pb.config({}),zU.config({contextual:h({lazyContext:function(t){var n=Cl(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),i=ic(tr.fromDom(r)),o=i.height-n,a=i.y+(HU(t,"top")?0:n);return w.some(rc(i.x,a,i.width,o))},onShow:function(){i((function(e){return KU(e,!0)}))},onShown:function(e){i((function(e){return Us(e,[UU.transitionClass,UU.fadeInClass])})),n.get().each((function(t){YU(e.element,t),n.set(w.none())}))},onHide:function(e){n.set(JU(e.element,r)),i((function(e){return KU(e,!1)}))},onHidden:function(){i((function(e){return Us(e,[UU.transitionClass])}))}},UU),modes:[t.header.getDockingMode()],onDocked:o,onUndocked:o})],a)},nG=Object.freeze({__proto__:null,setup:QU,isDocked:ZU,getBehaviours:tG}),rG=function(e){var t=e.editor,n=e.sticky?tG:sU;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:qu(n(t,e.sharedBackstage))}},iG=function(e,t){var n=function(e,n){var r=W(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=zB(n).mapError((function(e){return an(e)})).getOrDie();return RN(r,"tox-mbtn",t.backstage,w.some("menuitem"))}));wb.set(e,r)},r={focus:db.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:qu([wb.config({}),Sb("menubar-events",[Ao((function(t){e.onSetup(t)})),_o(ki(),(function(e,t){pc(e.element,".tox-mbtn--active").each((function(n){mc(t.event.target,".tox-mbtn").each((function(t){ii(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){vI.expand(e),vI.close(n),Pb.focus(e)}))}))}))}))})),_o(ro(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){vI.isOpen(n)&&(vI.expand(e),vI.close(n))}))}))}))]),db.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),w.some(!0)}}),ZO.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},oG=sg({factory:iG,name:"silver.Menubar",configFields:[bn("dom"),bn("uid"),bn("onEscape"),bn("backstage"),Fn("onSetup",t)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),aG="container",sG=[Yp("slotBehaviours",[])],lG=function(e){return"<alloy.field."+e+">"},cG=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Fm(aG,lG(t),n)};return{slot:t,record:function(){return e}}}(),n=e(t),r=t.record(),i=W(r,(function(e){return Tm({name:e,pname:lG(e)})}));return tg(aG,sG,i,uG,n)},uG=function(e,t){var n=function(t){return $m(e)},r=function(t,n){return Gm(t,e,n)},i=function(t,n){return function(r,i){return Gm(r,e,i).map((function(e){return t(e,i)})).getOr(n)}},o=function(e){return function(t,n){H(n,(function(n){return e(t,n)}))}},a=function(e,t){return"true"!==Ea(e.element,"aria-hidden")},s=function(e,t){if(!a(e)){var n=e.element;rl(n,"display"),Ta(n,"aria-hidden"),uo(e,io(),{name:t,visible:!0})}},l=function(e,t){if(a(e)){var n=e.element;Xs(n,"display","none"),Sa(n,"aria-hidden","true"),uo(e,io(),{name:t,visible:!1})}},c=i(a,!1),u=i(l),d=o(u),f=function(e){return d(e,n())},h=i(s),p={getSlotNames:n,getSlot:r,isShowing:c,hideSlot:u,hideAllSlots:f,showSlot:h};return{uid:e.uid,dom:e.dom,components:t,behaviours:Jp(e.slotBehaviours),apis:p}},dG=Re({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},(function(e){return ns(e)})),fG=h(h({},dG),{sketch:cG}),hG=Ft([Mn("icon"),Mn("tooltip"),Vn("onShow",t),Vn("onHide",t),Vn("onSetup",(function(){return t}))]),pG=function(e){return nn("sidebar",hG,e)},mG=function(e){var t=e.ui.registry.getAll().sidebars;H(Te(t),(function(n){var r=t[n],i=function(){return w.from(e.queryCommandValue("ToggleSidebar")).is(n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(i())},onSetup:function(t){var n=function(){return t.setActive(i())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))},gG=function(e){return{element:function(){return e.element.dom}}},vG=function(e,n){var r=W(Te(n),(function(e){var t=n[e],r=rn(pG(t));return{name:e,getApi:gG,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return W(r,(function(n){var i=Xn(t);return e.slot(n.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:gS.unnamedEvents([YC(n,i),JC(n,i),_o(io(),(function(e,t){var n=t.event,i=Z(r,(function(e){return e.name===n.name}));i.each((function(t){var r=n.visible?t.onShow:t.onHide;r(t.getApi(e))}))}))])})}))},yG=function(e){return fG.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:vG(t,e),slotBehaviours:gS.unnamedEvents([Ao((function(e){return fG.hideAllSlots(e)}))])}}))},bG=function(e,t){var n=bg.getCurrent(e);n.each((function(e){return wb.set(e,[yG(t)])}))},_G=function(e,t){var n=bg.getCurrent(e);n.each((function(e){var n=bg.getCurrent(e);n.each((function(n){wB.hasGrown(e)?fG.isShowing(n,t)?wB.shrink(e):(fG.hideAllSlots(n),fG.showSlot(n,t)):(fG.hideAllSlots(n),fG.showSlot(n,t),wB.grow(e))}))}))},wG=function(e){var t=bg.getCurrent(e);return t.bind((function(e){var t=wB.isGrowing(e)||wB.hasGrown(e);if(t){var n=bg.getCurrent(e);return n.bind((function(e){return Z(fG.getSlotNames(e),(function(t){return fG.isShowing(e,t)}))}))}return w.none()}))},xG=ja("FixSizeEvent"),SG=ja("AutoSizeEvent"),CG=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:qu([ZO.config({}),Pb.config({}),wB.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){var t=bg.getCurrent(e);t.each(fG.hideAllSlots),co(e,SG)},onGrown:function(e){co(e,SG)},onStartGrow:function(e){uo(e,xG,{width:el(e.element,"width").getOr("")})},onStartShrink:function(e){uo(e,xG,{width:Nl(e.element)+"px"})}}),wb.config({}),bg.config({find:function(e){var t=wb.contents(e);return ce(t)}})])}],behaviours:qu([OP.childAt(0),Sb("sidebar-sliding-events",[_o(xG,(function(e,t){Xs(e.element,"width",t.event.width)})),_o(SG,(function(e,t){rl(e.element,"width")}))])])}},EG=function(e){var t=void 0!==e.dom.attributes?e.dom.attributes:[];return J(t,(function(e,t){var n;return"class"===t.name?e:h(h({},e),(n={},n[t.name]=t.value,n))}),{})},kG=function(e){return Array.prototype.slice.call(e.dom.classList,0)},OG=function(e){var t=tr.fromHtml(e),n=Xo(t),r=EG(t),i=kG(t),o=0===n.length?{}:{innerHtml:ba(t)};return h({tag:No(t),classes:i,attributes:r},o)},TG=function(e){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading...")},classes:["tox-throbber__busy-spinner"]},components:[{dom:OG('<div class="tox-spinner"><div></div><div></div><div></div></div>')}],behaviours:qu([db.config({mode:"special",onTab:function(){return w.some(!0)},onShiftTab:function(){return w.some(!0)}}),Pb.config({})])}},IG=function(e,t,n){var r=e.element;!0===t?(wb.set(e,[TG(n)]),rl(r,"display"),Ta(r,"aria-hidden")):(wb.set(e,[]),Xs(r,"display","none"),Sa(r,"aria-hidden","true"))},AG=function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:qu([wb.config({})]),components:[]}},RG=function(e,t,n){var r=Xn(!1),i=Xn(w.none()),o=function(i){i!==r.get()&&(IG(t(),i,n.providers),r.set(i),e.fire("AfterProgressState",{state:i}))};e.on("ProgressState",(function(t){if(i.get().each(X_.clearTimeout),N(t.time)){var n=X_.setEditorTimeout(e,(function(){return o(t.state)}),t.time);i.set(w.some(n))}else o(t.state),i.set(w.none())}))},PG=function(e,t,n){var r={getSocket:function(t){return Yz.getPart(t,e,"socket")},setSidebar:function(t,n){Yz.getPart(t,e,"sidebar").each((function(e){return bG(e,n)}))},toggleSidebar:function(t,n){Yz.getPart(t,e,"sidebar").each((function(e){return _G(e,n)}))},whichSidebar:function(t){return Yz.getPart(t,e,"sidebar").bind(wG).getOrNull()},getHeader:function(t){return Yz.getPart(t,e,"header")},getToolbar:function(t){return Yz.getPart(t,e,"toolbar")},setToolbar:function(t,n){Yz.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){Yz.getPart(t,e,"multiple-toolbar").each((function(e){iU.setItems(e,n)}))},refreshToolbar:function(t){var n=Yz.getPart(t,e,"toolbar");n.each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){Yz.getPart(t,e,"toolbar").each((function(e){hg(e.getApis().toggle,(function(t){return t(e)}))}))},isToolbarDrawerToggled:function(t){return Yz.getPart(t,e,"toolbar").bind((function(e){return w.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return Yz.getPart(t,e,"throbber")},focusToolbar:function(t){var n=Yz.getPart(t,e,"toolbar").orThunk((function(){return Yz.getPart(t,e,"multiple-toolbar")}));n.each((function(e){db.focusIn(e)}))},setMenubar:function(t,n){Yz.getPart(t,e,"menubar").each((function(e){oG.setMenus(e,n)}))},focusMenubar:function(t){Yz.getPart(t,e,"menubar").each((function(e){oG.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},MG=Jz.optional({factory:oG,name:"menubar",schema:[bn("backstage")]}),NG=function(e){return e.type===sx.sliding?LB:e.type===sx.floating?NB:DB},LG=Jz.optional({factory:{sketch:function(e){return iU.sketch({uid:e.uid,dom:e.dom,listBehaviours:qu([db.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return DB({type:e.type,uid:ja("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),w.some(!0)}})},setupItem:function(e,t,n,r){gF.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[bn("dom"),bn("onEscape")]}),DG=Jz.optional({factory:{sketch:function(e){var t=NG(e),n={type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),w.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes};return t(n)}},name:"toolbar",schema:[bn("dom"),bn("onEscape"),bn("getSink")]}),jG=Jz.optional({factory:{sketch:rG},name:"header",schema:[bn("dom")]}),FG=Jz.optional({name:"socket",schema:[bn("dom")]}),BG=Jz.optional({factory:{sketch:CG},name:"sidebar",schema:[bn("dom")]}),qG=Jz.optional({factory:{sketch:AG},name:"throbber",schema:[bn("dom")]}),zG=lg({name:"OuterContainer",factory:PG,configFields:[bn("dom"),bn("behaviours")],partFields:[jG,MG,DG,LG,FG,BG,qG],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=W(n,(function(e){return RB(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=W(n,(function(e){return W(e,RB)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),UG="file edit view insert format tools table help",GG={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},VG=function(e,t,n){var r=uC(n).split(/[ ,]/);return{text:e.title,getItems:function(){return ne(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||U(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}},WG=function(e){return"string"===typeof e?e.split(" "):e},HG=function(e,t){var n=h(h({},GG),t.menus),r=Te(t.menus).length>0,i=void 0===t.menubar||!0===t.menubar?WG(UG):WG(!1===t.menubar?"":t.menubar),o=X(i,(function(e){return r&&t.menus.hasOwnProperty(e)&&t.menus[e].hasOwnProperty("items")||GG.hasOwnProperty(e)})),a=W(o,(function(r){var i=n[r];return VG({title:i.title,items:WG(i.items)},t,e)}));return X(a,(function(e){var t=function(e){return"separator"!==e.type};return e.getItems().length>0&&U(e.getItems(),t)}))},$G=function(e){var t=function(){e._skinLoaded=!0,YE(e)};return function(){e.initialized?t():e.on("init",t)}},KG=function(e,t){return function(){return JE(e,{message:t})}},XG=function(e,t,n){return new Ew((function(r,i){n.load(t,r,i),e.on("remove",(function(){return n.unload(t)}))}))},YG=function(e,t){var n=t+"/skin.min.css";return XG(e,n,e.ui.styleSheetLoader)},JG=function(e,t){var n=ra(tr.fromDom(e.getElement()));if(n){var r=t+"/skin.shadowdom.min.css";return XG(e,r,AS.DOM.styleSheetLoader)}return Ew.resolve()},QG=function(e,t){var n=QS(t);n&&t.contentCSS.push(n+(e?"/content.inline":"/content")+".min.css"),!1===eC(t)&&k(n)?Ew.all([YG(t,n),JG(t,n)]).then($G(t),KG(t,"Skin could not be loaded")):$G(t)()},ZG=s(QG,!1),eV=s(QG,!0),tV=function(e,t,n,r){var i=t.outerContainer,o=n.toolbar,a=n.buttons;if(L(o,k)){var s=o.map((function(t){var i={toolbar:t,buttons:a,allowToolbarGroups:n.allowToolbarGroups};return zz(e,i,{backstage:r},w.none())}));zG.setToolbars(i,s)}else zG.setToolbar(i,zz(e,n,{backstage:r},w.none()))},nV=$r(),rV=nV.os.isiOS()&&nV.os.version.major<=12,iV=function(e,t){var n=e.dom,r=e.getWin(),i=e.getDoc().documentElement,o=Xn(Ol(r.innerWidth,r.innerHeight)),a=Xn(Ol(i.offsetWidth,i.offsetHeight)),s=function(){var t=o.get();t.left===r.innerWidth&&t.top===r.innerHeight||(o.set(Ol(r.innerWidth,r.innerHeight)),ZE(e))},l=function(){var t=e.getDoc().documentElement,n=a.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(a.set(Ol(t.offsetWidth,t.offsetHeight)),ZE(e))},c=function(t){return ek(e,t)};n.bind(r,"resize",s),n.bind(r,"scroll",c);var u=hO(tr.fromDom(e.getBody()),"load",l),d=t.uiMothership.element;e.on("hide",(function(){Xs(d,"display","none")})),e.on("show",(function(){rl(d,"display")})),e.on("NodeChange",l),e.on("remove",(function(){u.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",c),r=null}))},oV=function(e,t,n,r,i){var o=Xn(0),a=t.outerContainer;ZG(e);var s=tr.fromDom(i.targetNode),l=na(ta(s));Wh(s,t.mothership),Vh(l,t.uiMothership),e.on("PostRender",(function(){tV(e,t,n,r),o.set(e.getWin().innerWidth),zG.setMenubar(a,HG(e,n)),zG.setSidebar(a,n.sidebar),iV(e,t)}));var c=zG.getSocket(a).getOrDie("Could not find expected socket element");if(rV){Ys(c.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var u=lw((function(){e.fire("ScrollContent")}),20),d=fO(c.element,"scroll",u.throttle);e.on("remove",d.unbind)}UC(e,t),e.addCommand("ToggleSidebar",(function(t,n){zG.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return zG.whichSidebar(a)}));var f=gC(e),h=function(){zG.refreshToolbar(t.outerContainer)};f!==sx.sliding&&f!==sx.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var t=e.getWin().innerWidth;t!==o.get()&&(h(),o.set(t))}));var p={enable:function(){zC(t,!1)},disable:function(){zC(t,!0)},isDisabled:function(){return YS.isDisabled(a)}};return{iframeContainer:c.element.dom,editorContainer:a.element.dom,api:p}},aV=Object.freeze({__proto__:null,render:oV}),sV=function(e){var t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?w.some(parseInt(""+e,10)):w.none()},lV=function(e){return N(e)?e+"px":e},cV=function(e,t,n){var r=t.filter((function(t){return e<t})),i=n.filter((function(t){return e>t}));return r.or(i).getOr(e)},uV=function(e){var t=tC(e),n=iC(e),r=aC(e);return sV(t).map((function(e){return cV(e,n,r)}))},dV=function(e){var t=uV(e);return t.getOr(tC(e))},fV=function(e){var t=nC(e),n=rC(e),r=oC(e);return sV(t).map((function(e){return cV(e,n,r)}))},hV=function(e){var t=fV(e);return t.getOr(nC(e))},pV=function(e,t,n,r,i){var o=n.uiMothership,a=n.outerContainer,s=AS.DOM,l=CC(e),c=OC(e),u=oC(e).or(fV(e)),d=r.shared.header,f=d.isPositionedAtTop,h=gC(e),p=h===sx.sliding||h===sx.floating,m=Xn(!1),g=function(){return m.get()&&!e.removed},v=function(e){return p?e.fold((function(){return 0}),(function(e){return e.components().length>1?Sl(e.components()[1].element):0})):0},y=function(n){switch(bC(e)){case mC.auto:var r=zG.getToolbar(a),i=v(r),o=Sl(n.element)-i,s=ic(t),l=s.y>o;if(l)return"top";var c=Go(t),u=Math.max(c.dom.scrollHeight,Sl(c)),d=s.bottom<u-o;if(d)return"bottom";var f=ac(),h=f.bottom<s.bottom-o;return h?"bottom":"top";case mC.bottom:return"bottom";case mC.top:default:return"top"}},b=function(e){var t=i.get();zU.setModes(t,[e]),d.setDockingMode(e);var n=f()?wc.TopToBottom:wc.BottomToTop;Sa(t.element,qd,n)},_=function(){var e=u.getOrThunk((function(){var e=sV(Qs(Ws(),"margin-left")).getOr(0);return Nl(Ws())-Al(t).left+e}));Xs(i.get().element,"max-width",e+"px")},w=function(){var e=zG.getToolbar(a),n=v(e),r=ic(t),o=f()?Math.max(r.y-Sl(i.get().element)+n,0):r.bottom;Ys(a.element,{position:"absolute",top:Math.round(o)+"px",left:Math.round(r.x)+"px"})},x=function(){o.broadcastOn([mp()],{})},S=function(e){if(void 0===e&&(e=!1),g()){if(l||_(),p&&zG.refreshToolbar(a),l||w(),c){var t=i.get();e?zU.reset(t):zU.refresh(t)}x()}},C=function(e){if(void 0===e&&(e=!0),!l&&c&&g()){var t=d.getDockingMode(),n=y(i.get());n!==t&&(b(n),e&&S(!0))}},E=function(){m.set(!0),Xs(a.element,"display","flex"),s.addClass(e.getBody(),"mce-edit-focus"),rl(o.element,"display"),C(!1),S()},k=function(){m.set(!1),n.outerContainer&&(Xs(a.element,"display","none"),s.removeClass(e.getBody(),"mce-edit-focus")),Xs(o.element,"display","none")};return{isVisible:g,isPositionedAtTop:f,show:E,hide:k,update:S,updateMode:C,repositionPopups:x}},mV=function(e,t){var n=ic(e);return{pos:t?n.y:n.bottom,bounds:n}},gV=function(e,t,n,r){var i=Xn(mV(t,n.isPositionedAtTop())),o=function(r){var o=mV(t,n.isPositionedAtTop()),a=o.pos,s=o.bounds,l=i.get(),c=l.pos,u=l.bounds,d=s.height!==u.height||s.width!==u.width;i.set({pos:a,bounds:s}),d&&ZE(e,r),n.isVisible()&&(c!==a?n.update(!0):d&&(n.updateMode(),n.repositionPopups()))};r||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){X_.requestAnimationFrame((function(){return o(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=_z();a.set(hO(tr.fromDom(e.getBody()),"load",o)),e.on("remove",(function(){a.clear()}))},vV=function(e,t,n,r,i){var o=t.mothership,a=t.uiMothership,s=t.outerContainer,l=Xn(null),c=tr.fromDom(i.targetNode),u=pV(e,c,t,r,l),d=xC(e);eV(e);var f=function(){if(l.get())u.show();else{l.set(zG.getHeader(s).getOrDie());var i=EC(e);Vh(i,o),Vh(i,a),tV(e,t,n,r),zG.setMenubar(s,HG(e,n)),u.show(),gV(e,c,u,d),e.nodeChanged()}};e.on("show",f),e.on("hide",u.hide),d||(e.on("focus",f),e.on("blur",u.hide)),e.on("init",(function(){(e.hasFocus()||d)&&f()})),UC(e,t);var h={show:function(){u.show()},hide:function(){u.hide()},enable:function(){zC(t,!1)},disable:function(){zC(t,!0)},isDisabled:function(){return YS.isDisabled(s)}};return{editorContainer:s.element.dom,api:h}},yV=Object.freeze({__proto__:null,render:vV}),bV=function(e){var t=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];LP.each(t,(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,onAction:function(){return e.execCommand(t.cmd)},icon:t.icon,onSetup:xz(e,t.name)})}));var n={name:"alignnone",text:"No alignment",cmd:"JustifyNone",icon:"align-none"};e.ui.registry.addButton(n.name,{tooltip:n.text,onAction:function(){return e.execCommand(n.cmd)},icon:n.icon})},_V=function(e,t){ez(e,t),sz(e,t),Az(e,t),Oz(e,t),gz(e,t)},wV=function(e,t){e.setDisabled(!t.queryCommandState("outdent"));var n=function(){e.setDisabled(!t.queryCommandState("outdent"))};return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}},xV=function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:function(t){return wV(t,e)},onAction:function(){return e.execCommand("outdent")}}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:function(){return e.execCommand("indent")}})},SV=function(e){xV(e)},CV={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},EV=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),kV=function(e,t){return U(t,(function(t){return U(CV[t],(function(t){return e===t}))}))},OV=function(e,t){var n=w.from(EV.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return kV(r,t)?w.some({value:n,unit:r}):w.none()}))},TV=function(e,t){return OV(e,t).map((function(e){var t=e.value,n=e.unit;return t+n}))},IV=function(e){return TV(e,["fixed","relative","empty"]).getOr(e)},AV=function(e){var t=cC(e),n=new Map,r=bz(),i=function(){var t=IV(e.queryCommandValue("LineHeight"));w.from(n.get(t)).fold((function(){return r.clear()}),(function(e){r.set({destroy:function(){e.setActive(!1)}}),e.setActive(!0)}))};return e.on("nodeChange",i),W(t,(function(o,a){return{type:"togglemenuitem",text:o,onSetup:function(s){return n.set(IV(o),s),a+1===t.length&&i(),function(){0===a&&(e.off("nodeChange",i),r.clear())}},onAction:function(){return e.execCommand("LineHeight",!1,o)}}}))},RV=function(e){e.ui.registry.addNestedMenuItem("lineheight",{type:"nestedmenuitem",text:"Line height",getSubmenuItems:function(){return AV(e)}})},PV=function(e){e.ui.registry.addMenuButton("lineheight",{tooltip:"Line height",icon:"line-height",fetch:function(t){return t(AV(e))}})},MV=function(e){RV(e),PV(e)},NV=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},LV=function(e){LP.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:xz(e,t.name),onAction:NV(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:xz(e,n),onAction:NV(e,n)})}},DV=function(e){LP.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return e.execCommand(t.action)}})}))},jV=function(e){LP.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return e.execCommand(t.action)},onSetup:xz(e,t.name)})}))},FV=function(e){LV(e),DV(e),jV(e)},BV=function(e){LP.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:function(){return e.execCommand(t.action)}})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:NV(e,"code")})},qV=function(e){FV(e),BV(e)},zV=function(e,t,n){var r=function(){return!!t.undoManager&&t.undoManager[n]()},i=function(){e.setDisabled(t.mode.isReadOnly()||!r())};return e.setDisabled(!r()),t.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",i),function(){return t.off("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",i)}},UV=function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:function(t){return zV(t,e,"hasUndo")},onAction:function(){return e.execCommand("undo")}}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:function(t){return zV(t,e,"hasRedo")},onAction:function(){return e.execCommand("redo")}})},GV=function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",onSetup:function(t){return zV(t,e,"hasUndo")},onAction:function(){return e.execCommand("undo")}}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",onSetup:function(t){return zV(t,e,"hasRedo")},onAction:function(){return e.execCommand("redo")}})},VV=function(e){UV(e),GV(e)},WV=function(e,t){e.setActive(t.hasVisual);var n=function(t){e.setActive(t.hasVisual)};return t.on("VisualAid",n),function(){return t.off("VisualAid",n)}},HV=function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:function(t){return WV(t,e)},onAction:function(){e.execCommand("mceToggleVisualAid")}})},$V=function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:function(){return e.execCommand("mceToggleVisualAid")}})},KV=function(e){$V(e),HV(e)},XV=function(e,t){bV(e),qV(e),_V(e,t),VV(e),Ak(e),KV(e),SV(e),MV(e)},YV=function(e,t){return{anchor:"makeshift",x:e,y:t}},JV=function(e,t,n){return YV(e.x+t,e.y+n)},QV=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},ZV=function(e){if(QV(e)){var t=e.touches[0];return YV(t.pageX,t.pageY)}return YV(e.pageX,e.pageY)},eW=function(e){if(QV(e)){var t=e.touches[0];return YV(t.clientX,t.clientY)}return YV(e.clientX,e.clientY)},tW=function(e,t){var n=AS.DOM.getPos(e);return JV(t,n.x,n.y)},nW=function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?ZV(t):tW(e.getContentAreaContainer(),eW(t)):rW(e)},rW=function(e){return{anchor:"selection",root:tr.fromDom(e.selection.getNode())}},iW=function(e){return{anchor:"node",node:w.some(tr.fromDom(e.selection.getNode())),root:tr.fromDom(e.getBody())}},oW=function(e,t,n,r,i,o){var a=n(),s=o?iW(e):nW(e,t);IN(a,lx.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),j_.showMenuAt(i,s,{menu:{markers:Mx("normal")},data:e})}))},aW={onLtr:function(){return[_u,mu,gu,vu,yu,bu,$_,K_,W_,G_,H_,V_]},onRtl:function(){return[_u,gu,mu,yu,vu,bu,$_,K_,H_,V_,W_,G_]}},sW=12,lW={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},cW=function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],i=n.getRng(),o=ih(e.getWin(),Tf.domRange(i));return o.exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))},uW=function(e,t){return h({bubble:Nd(0,sW,lW),layouts:aW,overrides:{maxWidthFunction:cF(),maxHeightFunction:Id()}},nW(e,t))},dW=function(e){var t=e.selection.getRng(),n=function(){X_.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),o()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var i=function(){return o()};e.once("longpresscancel",i);var o=function(){e.off("touchend",n),e.off("longpresscancel",i),e.off("mousedown",r)}},fW=function(e,t,n,r,i,o,a){var s=o?iW(e):uW(e,t);IN(n,lx.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),j_.showMenuWithinBounds(i,s,{menu:{markers:Mx("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return w.some(Aq(e,r.shared))})),e.fire(dF)}))},hW=function(e,t,n,r,i,o){var a=$r(),s=a.os.isiOS(),l=a.os.isOSX(),c=a.os.isAndroid(),u=a.deviceType.isTouch(),d=function(){return!(c||s||l&&u)},f=function(){var a=n();fW(e,t,a,r,i,o,d())};if(!l&&!s||o)c&&!o&&e.selection.setCursorLocation(t.target,0),f();else{var h=function(){dW(e),f()};cW(e,t)?h():(e.once("selectionchange",h),e.once("touchend",(function(){return e.off("selectionchange",h)})))}},pW=function(e){return"string"===typeof e?e.split(/[ ,]/):e},mW=function(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")},gW=function(e,t,n){var r=e.ui.registry.getAll().contextMenus;return w.from(e.getParam(t)).map(pW).getOrThunk((function(){return X(pW(n),(function(e){return qe(r,e)}))}))},vW=function(e){return!1===e.getParam("contextmenu")},yW=function(e){return gW(e,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},bW=function(e){return e.getParam("contextmenu_avoid_overlap","","string")},_W=function(e){return k(e)?"|"===e:"separator"===e.type},wW={type:"separator"},xW=function(e){if(k(e))return e;switch(e.type){case"separator":return wW;case"submenu":return{type:"nestedmenuitem",text:e.text,icon:e.icon,getSubmenuItems:function(){var t=e.getSubmenuItems();return k(t)?t:W(t,xW)}};default:return{type:"menuitem",text:e.text,icon:e.icon,onAction:n(e.onAction)}}},SW=function(e,t){if(0===t.length)return e;var n=ue(e).filter((function(e){return!_W(e)})),r=n.fold((function(){return[]}),(function(e){return[wW]}));return e.concat(r).concat(t).concat([wW])},CW=function(e,t,n){var r=J(t,(function(t,r){if(qe(e,r)){var i=e[r].update(n);if(k(i))return SW(t,i.split(" "));if(i.length>0){var o=W(i,xW);return SW(t,o)}return t}return t.concat([r])}),[]);return r.length>0&&_W(r[r.length-1])&&r.pop(),r},EW=function(e,t){return t.ctrlKey&&!mW(e)},kW=function(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)},OW=function(e,t){return kW(e,t)?e.selection.getStart(!0):t.target},TW=function(e,t){var n=bW(e);if(kW(e,t))return!0;if(n){var r=OW(e,t);return mO(tr.fromDom(r),n)}return!1},IW=function(e,t,n){var r=$r(),i=r.deviceType.isTouch,o=bl(j_.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:qu([Sb("dismissContextMenu",[_o(to(),(function(t,n){hp.close(t),e.focus()}))])])})),a=function(e){return j_.hide(o)},s=function(t){if(mW(e)&&t.preventDefault(),!EW(e,t)&&!vW(e)){var r=TW(e,t),a=function(){var n=OW(e,t),r=e.ui.registry.getAll(),i=yW(e);return CW(r.contextMenus,i,n)},s=i()?hW:oW;s(e,t,a,n,o,r)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");e.on(t,a),e.on("longpress contextmenu",s)}))},AW=Ge.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),RW=function(e){return function(t){return t.translate(-e.left,-e.top)}},PW=function(e){return function(t){return t.translate(e.left,e.top)}},MW=function(e){return function(t,n){return J(e,(function(e,t){return t(e)}),Ol(t,n))}},NW=function(e,t,n){return e.fold(MW([PW(n),RW(t)]),MW([RW(t)]),MW([]))},LW=function(e,t,n){return e.fold(MW([PW(n)]),MW([]),MW([PW(t)]))},DW=function(e,t,n){return e.fold(MW([]),MW([RW(n)]),MW([PW(t),RW(n)]))},jW=function(e,t,n,r,i,o){var a=LW(e,i,o),s=LW(t,i,o);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r},FW=function(e,t,n,r,i,o){var a=LW(e,i,o),s=LW(t,i,o),l=Math.abs(a.left-s.left),c=Math.abs(a.top-s.top);return Ol(l,c)},BW=function(e,t,n){var r=e.fold((function(e,t){return{position:w.some("absolute"),left:w.some(e+"px"),top:w.some(t+"px")}}),(function(e,t){return{position:w.some("absolute"),left:w.some(e-n.left+"px"),top:w.some(t-n.top+"px")}}),(function(e,t){return{position:w.some("fixed"),left:w.some(e+"px"),top:w.some(t+"px")}}));return h({right:w.none(),bottom:w.none()},r)},qW=function(e,t,n){return e.fold((function(e,r){return UW(e+t,r+n)}),(function(e,r){return GW(e+t,r+n)}),(function(e,r){return VW(e+t,r+n)}))},zW=function(e,t,n,r){var i=function(e,i){return function(o,a){var s=e(t,n,r);return i(o.getOr(s.left),a.getOr(s.top))}};return e.fold(i(DW,UW),i(LW,GW),i(NW,VW))},UW=AW.offset,GW=AW.absolute,VW=AW.fixed,WW=function(e,t){var n=Ea(e,t);return A(n)?NaN:parseInt(n,10)},HW=function(e,t){var n=e.element,r=WW(n,t.leftAttr),i=WW(n,t.topAttr);return isNaN(r)||isNaN(i)?w.none():w.some(Ol(r,i))},$W=function(e,t,n){var r=e.element;Sa(r,t.leftAttr,n.left+"px"),Sa(r,t.topAttr,n.top+"px")},KW=function(e,t){var n=e.element;Ta(n,t.leftAttr),Ta(n,t.topAttr)},XW=function(e,t,n,r){return HW(e,t).fold((function(){return n}),(function(e){return VW(e.left+r.left,e.top+r.top)}))},YW=function(e,t,n,r,i,o){var a=XW(e,t,n,r),s=t.mustSnap?ZW(e,t,a,i,o):eH(e,t,a,i,o),l=NW(a,i,o);return $W(e,t,l),s.fold((function(){return{coord:VW(l.left,l.top),extra:w.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))},JW=function(e,t){KW(e,t)},QW=function(e,t,n,r){return fe(e,(function(e){var i=e.sensor,o=jW(t,i,e.range.left,e.range.top,n,r);return o?w.some({output:zW(e.output,t,n,r),extra:e.extra}):w.none()}))},ZW=function(e,t,n,r,i){var o=t.getSnapPoints(e),a=QW(o,n,r,i);return a.orThunk((function(){var e=J(o,(function(e,t){var o=t.sensor,a=FW(n,o,t.range.left,t.range.top,r,i);return e.deltas.fold((function(){return{deltas:w.some(a),snap:w.some(t)}}),(function(n){var r=(a.left+a.top)/2,i=(n.left+n.top)/2;return r<=i?{deltas:w.some(a),snap:w.some(t)}:e}))}),{deltas:w.none(),snap:w.none()});return e.snap.map((function(e){return{output:zW(e.output,n,r,i),extra:e.extra}}))}))},eH=function(e,t,n,r,i){var o=t.getSnapPoints(e);return QW(o,n,r,i)},tH=function(e,t,n){return{coord:zW(e.output,e.output,t,n),extra:e.extra}},nH=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=zo(e.element),a=Vl(o),s=uU(i),l=tH(r,a,s),c=BW(l.coord,a,s);Js(i,c)}},rH=Object.freeze({__proto__:null,snapTo:nH}),iH="data-initial-z-index",oH=function(e){Wo(e.element).filter(jo).each((function(e){ka(e,iH).fold((function(){return rl(e,"z-index")}),(function(t){return Xs(e,"z-index",t)})),Ta(e,iH)}))},aH=function(e){Wo(e.element).filter(jo).each((function(t){el(t,"z-index").each((function(e){Sa(t,iH,e)})),Xs(t,"z-index",Qs(e.element,"z-index"))}))},sH=function(e,t){e.getSystem().addToGui(t),aH(t)},lH=function(e){oH(e),e.getSystem().removeFromGui(e)},cH=function(e,t,n){return e.getSystem().build(GO.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))},uH=Dn("snaps",[bn("getSnapPoints"),Fc("onSensor"),bn("leftAttr"),bn("topAttr"),Fn("lazyViewport",ac),Fn("mustSnap",!1)]),dH=[Fn("useFixed",u),bn("blockerClass"),Fn("getTarget",a),Fn("onDrag",t),Fn("repositionTarget",!0),Fn("onDrop",t),Vn("getBounds",ac),uH],fH=function(e){return fg(el(e,"left"),el(e,"top"),el(e,"position"),(function(e,t,n){var r="fixed"===n?VW:UW;return r(parseInt(e,10),parseInt(t,10))})).getOrThunk((function(){var t=Al(e);return GW(t.left,t.top)}))},hH=function(e,t,n,r,i){var o=i.bounds,a=LW(t,n,r),s=gd(a.left,o.x,o.x+o.width-i.width),l=gd(a.top,o.y,o.y+o.height-i.height),c=GW(s,l);return t.fold((function(){var e=DW(c,n,r);return UW(e.left,e.top)}),(function(){return c}),(function(){var e=NW(c,n,r);return VW(e.left,e.top)}))},pH=function(e,t,n,r,i,o,a){var s=t.fold((function(){var e=qW(n,o.left,o.top),t=NW(e,r,i);return VW(t.left,t.top)}),(function(t){var a=YW(e,t,n,o,r,i);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord}));return hH(e,s,r,i,a)},mH=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=zo(e.element),a=Vl(o),s=uU(i),l=fH(i),c=pH(e,t.snaps,l,a,s,r,n),u=BW(c,a,s);Js(i,u)}t.onDrag(e,i,r)},gH=function(e,t){return{bounds:e.getBounds(),height:Cl(t.element),width:Ll(t.element)}},vH=function(e,t,n,r,i){var o=n.update(r,i),a=n.getStartData().getOrThunk((function(){return gH(t,e)}));o.each((function(n){mH(e,t,a,n)}))},yH=function(e,t,n,r){t.each(lH),n.snaps.each((function(t){JW(e,t)}));var i=n.getTarget(e.element);r.reset(),n.onDrop(e,i)},bH=function(e){return function(t,n){var r=function(e){n.setStartData(gH(t,e))};return go(m([_o(Ji(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r)))}},_H=function(e){return go([_o(xi(),e.forceDrop),_o(Ei(),e.drop),_o(Si(),(function(t,n){e.move(n.event)})),_o(Ci(),e.delayDrop)])},wH=function(e){return w.from(Ol(e.x,e.y))},xH=function(e,t){return Ol(t.left-e.left,t.top-e.top)},SH=Object.freeze({__proto__:null,getData:wH,getDelta:xH}),CH=function(e,t,n){return[_o(xi(),(function(r,i){var o=i.event.raw;if(0===o.button){i.stop();var a=function(){return yH(r,w.some(c),e,t)},s=gO(a,200),l={drop:a,delayDrop:s.schedule,forceDrop:a,move:function(n){s.cancel(),vH(r,e,t,SH,n)}},c=cH(r,e.blockerClass,_H(l)),u=function(){n(r),sH(r,c)};u()}}))]},EH=m(dH,[Uc("dragger",{handlers:bH(CH)})]),kH=function(e){return go([_o(yi(),e.forceDrop),_o(_i(),e.drop),_o(wi(),e.drop),_o(bi(),(function(t,n){e.move(n.event)}))])},OH=function(e){var t=e[0];return w.some(Ol(t.clientX,t.clientY))},TH=function(e){var t=e.raw,n=t.touches;return 1===n.length?OH(n):w.none()},IH=function(e,t){return Ol(t.left-e.left,t.top-e.top)},AH=Object.freeze({__proto__:null,getData:TH,getDelta:IH}),RH=function(e,n,r){var i=Xn(w.none());return[_o(yi(),(function(o,a){a.stop();var s=function(){yH(o,i.get(),e,n),i.set(w.none())},l={drop:s,delayDrop:t,forceDrop:s,move:function(t){vH(o,e,n,AH,t)}},c=cH(o,e.blockerClass,kH(l));i.set(w.some(c));var u=function(){r(o),sH(o,c)};u()})),_o(bi(),(function(t,r){r.stop(),vH(t,e,n,AH,r.event)})),_o(_i(),(function(t,r){r.stop(),yH(t,i.get(),e,n),i.set(w.none())})),_o(wi(),(function(t){yH(t,i.get(),e,n),i.set(w.none())}))]},PH=m(dH,[Uc("dragger",{handlers:bH(RH)})]),MH=function(e,t,n){return m(CH(e,t,n),RH(e,t,n))},NH=m(dH,[Uc("dragger",{handlers:bH(MH)})]),LH=EH,DH=PH,jH=NH,FH=Object.freeze({__proto__:null,mouse:LH,touch:DH,mouseOrTouch:jH}),BH=function(){var e=w.none(),t=w.none(),n=function(){e=w.none(),t=w.none()},r=function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=w.some(n),r},i=function(e,t){return e.getData(t).bind((function(t){return r(e,t)}))},a=function(e){t=w.some(e)},s=function(){return t},l=o({});return is({readState:l,reset:n,update:i,getStartData:s,setStartData:a})},qH=Object.freeze({__proto__:null,init:BH}),zH=Vu({branchKey:"mode",branches:FH,name:"dragging",active:{events:function(e,t){var n=e.dragger;return n.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:w.from(e.extra)}}},state:qH,apis:rH}),UH=40,GH=UH/2,VH=function(e,t,n,r,i,o){return e.fold((function(){return zH.snap({sensor:GW(n-GH,r-GH),range:Ol(i,o),output:GW(w.some(n),w.some(r)),extra:{td:t}})}),(function(e){var i=n-GH,o=r-GH,a=UH,s=UH,l=e.element.dom.getBoundingClientRect();return zH.snap({sensor:GW(i,o),range:Ol(a,s),output:GW(w.some(n-l.width/2),w.some(r-l.height/2)),extra:{td:t}})}))},WH=function(e,t,n){var r=function(e,t){return e.exists((function(e){return ii(e,t)}))};return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,i){var o=i.td;r(t.get(),o)||(t.set(w.some(o)),n(o))},mustSnap:!0}},HH=function(e){return Q_(J_.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:qu([zH.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),wI.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},$H=function(e,t){var n=Xn([]),r=Xn([]),i=Xn(!1),o=Xn(w.none()),a=Xn(w.none()),s=function(e){var n=oc(e);return VH(h.getOpt(t),e,n.x,n.y,n.width,n.height)},l=function(){return W(n.get(),(function(e){return s(e)}))},c=function(e){var n=oc(e);return VH(p.getOpt(t),e,n.right,n.bottom,n.width,n.height)},u=function(){return W(r.get(),(function(e){return c(e)}))},d=WH(l,o,(function(t){a.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),f=WH(u,a,(function(t){o.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),h=HH(d),p=HH(f),m=bl(h.asSpec()),g=bl(p.asSpec()),v=function(t,n,r,i){var o=n.dom.getBoundingClientRect();rl(t.element,"display");var a=Vo(tr.fromDom(e.getBody())).dom.innerHeight,s=r(o),l=i(o,a);(s||l)&&Xs(t.element,"display","none")},y=function(e,t,n,r){var i=n(t);zH.snapTo(e,i);var o=function(e){return e[r]<0},a=function(e,t){return e[r]>t};v(e,t,o,a)},b=function(e){return y(m,e,s,"top")},_=function(){return o.get().each(b)},x=function(e){return y(g,e,c,"bottom")},S=function(){return a.get().each(x)};$r().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){i.get()||(Bh(t,m),Bh(t,g),i.set(!0)),o.set(w.some(e.start)),a.set(w.some(e.finish)),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),b(e.start),x(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){_(),S()})),e.on("TableSelectionClear",(function(){i.get()&&(Uh(m),Uh(g),i.set(!1)),o.set(w.none()),a.set(w.none())})))};(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(Kq||(Kq={}));var KH=function(e,t,n,r,i){var o={};return o.height=cV(r+t.top,iC(e),aC(e)),n===Kq.Both&&(o.width=cV(i+t.left,rC(e),oC(e))),o},XH=function(e,t,n){var r=tr.fromDom(e.getContainer()),i=KH(e,t,n,Sl(r),Nl(r));Ae(i,(function(e,t){return Xs(r,t,lV(e))})),QE(e)},YH=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1},JH=function(e,t,n){t.delimiter||(t.delimiter="»");var r=function(r){var i=r||[],o=W(i,(function(t,r){return J_.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()},buttonBehaviours:qu([KC.button(n.isDisabled),GC()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return J(o.slice(1),(function(e,t){var n=e;return n.push(a),n.push(t),n}),[o[0]])},i=function(t){var n=[],r=t.length;while(r-- >0){var i=t[r];if(1===i.nodeType&&!YH(i)){var o=e.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:qu([db.config({mode:"flow",selector:"div[role=button]"}),YS.config({disabled:n.isDisabled}),GC(),ZO.config({}),wb.config({}),Sb("elementPathEvents",[Ao((function(t,n){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return db.focusIn(t)})),e.on("NodeChange",(function(e){var n=i(e.parents);n.length>0?wb.set(t,r(n)):wb.set(t,[])}))}))])]),components:[]}},QH=function(e,t){var n,r=function(e,n,r){return wb.set(e,[gl(t.translate(["{0} "+r,n[r]]))])};return J_.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:qu([KC.button(t.isDisabled),GC(),ZO.config({}),wb.config({}),Xp.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Sb("wordcount-events",[Mo((function(e){var t=Xp.getValue(e),n="words"===t.mode?"characters":"words";Xp.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),Ao((function(t){e.on("wordCountUpdate",(function(e){var n=Xp.getValue(t).mode;Xp.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[Ui()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},ZH=function(e,t){var n=function(n){return{dom:{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize"),"aria-hidden":"true"},innerHtml:ew("resize-handle",t.icons)},behaviours:qu([zH.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,i){XH(e,i,n)},blockerClass:"tox-blocker"})])}},r=function(){var e=RS.translate(["Powered by {0}","Tiny"]),t='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+e+'">'+e+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},i=function(e){var t=!e.hasPlugin("autoresize"),n=e.getParam("resize",t);return!1===n?Kq.None:"both"===n?Kq.Both:Kq.Vertical},o=function(){var n=[];return e.getParam("elementpath",!0,"boolean")&&n.push(JH(e,{},t)),e.hasPlugin("wordcount")&&n.push(QH(e,t)),e.getParam("branding",!0,"boolean")&&n.push(r()),n.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:n}]:[]},a=function(){var t=o(),r=i(e);return r!==Kq.None&&t.push(n(r)),t};return{dom:{tag:"div",classes:["tox-statusbar"]},components:a()}},e$=function(e){var n,r=e.inline,i=r?yV:aV,o=OC(e)?nG:lU,a=w.none(),s=$r(),l=s.browser.isIE(),c=l?["tox-platform-ie"]:[],u=s.deviceType.isTouch(),d="tox-platform-touch",f=u?[d]:[],p=_C(e),m=EC(e),g=RS.isRtl()?{attributes:{dir:"rtl"}}:{},v={attributes:(n={},n[qd]=p?wc.BottomToTop:wc.TopToBottom,n)},y=function(){return a.bind(zG.getHeader)},b=function(){return o.isDocked(y)},_=function(){Xs(Q.element,"width",document.body.clientWidth+"px")},x=function(){var e=ii(Ws(),m)&&"grid"===Qs(m,"display"),t={dom:h({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(c).concat(f)},g),behaviours:qu([Mh.config({useFixed:function(){return b()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:go([_o(Qi(),_)])};return Ke(t,e?n:{})},S=bl(x()),C=function(){return ge.value(S)},E=Q_({dom:{tag:"div",classes:["tox-anchorbar"]}}),k=function(){return a.bind((function(e){return E.getOpt(e)})).getOrDie("Could not find a anchor bar element")},O=function(){return a.bind((function(e){return zG.getToolbar(e)})).getOrDie("Could not find more toolbar element")},T=function(){return a.bind((function(e){return zG.getThrobber(e)})).getOrDie("Could not find throbber element")},I=lF(S,e,k),A=zG.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:I,onEscape:function(){e.focus()}}),R=gC(e),P=zG.parts.toolbar(h({dom:{tag:"div",classes:["tox-toolbar"]},getSink:C,providers:I.shared.providers,onEscape:function(){e.focus()},type:R,lazyToolbar:O,lazyHeader:function(){return y().getOrDie("Could not find header element")}},v)),M=zG.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:I.shared.providers,onEscape:function(){e.focus()},type:R}),N=zG.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),L=zG.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),D=zG.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:I}),j=e.getParam("statusbar",!0,"boolean"),F=j&&!r?w.some(ZH(e,I.shared.providers)):w.none(),B={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[N,L]},q=pC(e),z=fC(e),U=dC(e),G=function(){return q?[M]:z?[P]:[]},V=zG.parts.header({dom:h({tag:"div",classes:["tox-editor-header"]},v),components:te([U?[A]:[],G(),CC(e)?[]:[E.asSpec()]]),sticky:OC(e),editor:e,sharedBackstage:I.shared}),W=te([p?[]:[V],r?[]:[B],p?[V]:[]]),H={dom:{tag:"div",classes:["tox-editor-container"]},components:W},$=te([[H],r?[]:F.toArray(),[D]]),K=kC(e),X=h(h({role:"application"},RS.isRtl()?{dir:"rtl"}:{}),K?{"aria-hidden":"true"}:{}),Y=bl(zG.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(r?["tox-tinymce-inline"]:[]).concat(p?["tox-tinymce--toolbar-bottom"]:[]).concat(f).concat(c),styles:h({visibility:"hidden"},K?{opacity:"0",border:"0"}:{}),attributes:X},components:$,behaviours:qu([GC(),YS.config({disableClass:"tox-tinymce--disabled"}),db.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a"})])}));a=w.some(Y),e.shortcuts.add("alt+F9","focus menubar",(function(){zG.focusMenubar(Y)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){zG.focusToolbar(Y)})),e.addCommand("ToggleToolbarDrawer",(function(){zG.toggleToolbarDrawer(Y)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return zG.isToolbarDrawerToggled(Y)}));var J=VO(Y),Q=VO(S);Xz(e,J,Q);var Z=function(){var e={broadcastAll:Q.broadcast,broadcastOn:Q.broadcastOn,register:t};return{channels:e}},ee=function(){var t=lV(dV(e)),n=lV(hV(e));return e.inline||(nl("div","width",n)&&Xs(Y.element,"width",n),nl("div","height",t)?Xs(Y.element,"height",t):Xs(Y.element,"height","200px")),t},ne=function(){o.setup(e,I.shared,y),XV(e,I),IW(e,C,I),mG(e),RG(e,T,I.shared),Re(yC(e),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var t=e.ui.registry.getAll(),n=t.buttons,r=t.menuItems,a=t.contextToolbars,s=t.sidebars,l=hC(e),c={menuItems:r,menus:IC(e),menubar:AC(e),toolbar:l.getOrThunk((function(){return RC(e)})),allowToolbarGroups:R===sx.floating,buttons:n,sidebar:s};Kz(e,a,S,{backstage:I}),$H(e,S);var u=e.getElement(),d=ee(),f={mothership:J,uiMothership:Q,outerContainer:Y},h={targetNode:u,height:d};return i.render(e,f,c,I,h)};return{mothership:J,uiMothership:Q,backstage:I,renderUI:ne,getUi:Z}},t$=function(e,t){var n=w.from(Ea(e,"id")).fold((function(){var e=ja("dialog-describe");return Sa(t,"id",e),e}),a);Sa(e,"aria-describedby",n)},n$=function(e,t){var n=ka(e,"id").fold((function(){var e=ja("dialog-label");return Sa(t,"id",e),e}),a);Sa(e,"aria-labelledby",n)},r$=o([bn("lazySink"),An("dragBlockClass"),Vn("getBounds",ac),Fn("useTabstopAt",d),Fn("eventOrder",{}),Yp("modalBehaviours",[db]),Bc("onExecute"),zc("onEscape")]),i$={sketch:a},o$=o([Am({name:"draghandle",overrides:function(e,t){return{behaviours:qu([zH.config({mode:"mouse",getTarget:function(e){return hc(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Tm({schema:[bn("dom")],name:"title"}),Tm({factory:i$,schema:[bn("dom")],name:"close"}),Tm({factory:i$,schema:[bn("dom")],name:"body"}),Am({factory:i$,schema:[bn("dom")],name:"footer"}),Im({factory:{sketch:function(e,t){return h(h({},e),{dom:t.dom,components:t.components})}},schema:[Fn("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Fn("components",[])],name:"blocker"})]),a$=function(e,t,n,r){Sa(e.element,"aria-busy",!0);var i=t.getRoot(e).getOr(e),o=qu([db.config({mode:"special",onTab:function(){return w.some(!0)},onShiftTab:function(){return w.some(!0)}}),Pb.config({})]),a=r(i,o),s=i.getSystem().build(a);wb.append(i,_l(s)),s.hasConfigured(db)&&db.focusIn(s),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return wb.remove(i,s)}))},s$=function(e,t,n){Ta(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()},l$=Object.freeze({__proto__:null,block:a$,unblock:s$}),c$=[Vn("getRoot",w.none),Fc("onBlock"),Fc("onUnblock")],u$=function(){var e=bz(),t=function(t){e.set({destroy:t})};return is({readState:e.isSet,blockWith:t,clear:e.clear,isBlocked:e.isSet})},d$=Object.freeze({__proto__:null,init:u$}),f$=Uu({fields:c$,name:"blocking",apis:l$,state:d$}),h$=function(e,t,n,r){var i,o=Xn(w.none()),a=function(t){o.set(w.some(t));var n=e.lazySink(t).getOrDie(),i=r.blocker(),a=n.getSystem().build(h(h({},i),{components:i.components.concat([_l(t)]),behaviours:qu([Pb.config({}),Sb("dialog-blocker-events",[Io(Oi(),(function(){db.focusIn(t)}))])])}));Bh(n,a),db.focusIn(t)},s=function(e){o.set(w.none()),Wo(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){Uh(e)}))}))},l=function(t){return Vm(t,e,"body")},c=function(t){return Vm(t,e,"footer")},u=function(e,t){f$.block(e,t)},d=function(e){f$.unblock(e)},f=ja("modal-events"),p=h(h({},e.eventOrder),(i={},i[Zi()]=[f].concat(e.eventOrder["alloy.system.attached"]||[]),i));return{uid:e.uid,dom:e.dom,components:t,apis:{show:a,hide:s,getBody:l,getFooter:c,setIdle:d,setBusy:u},eventOrder:p,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Qp(e.modalBehaviours,[wb.config({}),db.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),f$.config({getRoot:o.get}),Sb(f,[Ao((function(t){n$(t.element,Vm(t,e,"title").element),t$(t.element,Vm(t,e,"body").element)}))])])}},p$=lg({name:"ModalDialog",configFields:r$(),partFields:o$(),factory:h$,apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),m$=Ft([xn("type"),xn("name")].concat(Zx)),g$=pn,v$=[Ht("name","name",nt((function(){return ja("button-name")})),hn),Mn("icon"),Un("align","end",["start","end"]),Gn("primary",!1),Gn("disabled",!1)],y$=m(v$,[xn("text")]),b$=m([Sn("type",["submit","cancel","custom"])],y$),_$=m([Sn("type",["menu"]),Mn("text"),Mn("tooltip"),Mn("icon"),In("items",m$)],v$),w$=ln("type",{submit:b$,cancel:b$,custom:b$,menu:_$}),x$=[xn("type"),xn("text"),Sn("level",["info","warn","error","success"]),xn("icon"),Fn("url","")],S$=Ft(x$),C$=function(e){return[xn("type"),e]},E$=[xn("type"),xn("text"),Gn("disabled",!1),Gn("primary",!1),Ht("name","name",nt((function(){return ja("button-name")})),hn),Mn("icon"),Gn("borderless",!1)],k$=Ft(E$),O$=[xn("type"),xn("name"),xn("label"),Gn("disabled",!1)],T$=Ft(O$),I$=pn,A$=[xn("type"),xn("name")],R$=A$.concat([Mn("label")]),P$=R$.concat([Fn("columns","auto")]),M$=Ft(P$),N$=Yt([xn("value"),xn("text"),xn("icon")]),L$=R$,D$=Ft(L$),j$=hn,F$=R$,B$=Ft(F$),q$=hn,z$=A$.concat([zn("tag","textarea"),xn("scriptId"),xn("scriptUrl"),Wn("settings",void 0)]),U$=A$.concat([zn("tag","textarea"),En("init")]),G$=Zt((function(e){return nn("customeditor.old",jt(U$),e).orThunk((function(){return nn("customeditor.new",jt(z$),e)}))})),V$=hn,W$=R$,H$=Ft(W$),$$=Jt(),K$=function(e){return[xn("type"),wn("columns"),e]},X$=[xn("type"),xn("html"),Un("presets","presentation",["presentation","document"])],Y$=Ft(X$),J$=R$.concat([Gn("sandboxed",!0)]),Q$=Ft(J$),Z$=hn,eK=R$.concat([_n("currentState",Ft([bn("blob"),xn("url")]))]),tK=Ft(eK),nK=R$.concat([Mn("inputMode"),Mn("placeholder"),Gn("maximized",!1),Gn("disabled",!1)]),rK=Ft(nK),iK=hn,oK=function(e){return[xn("type"),xn("label"),e]},aK=[xn("text"),xn("value")],sK=[xn("text"),In("items",cn("items",(function(){return lK})))],lK=qt([Ft(aK),Ft(sK)]),cK=R$.concat([In("items",lK),Gn("disabled",!1)]),uK=Ft(cK),dK=hn,fK=R$.concat([Tn("items",[xn("text"),xn("value")]),qn("size",1),Gn("disabled",!1)]),hK=Ft(fK),pK=hn,mK=R$.concat([Gn("constrain",!0),Gn("disabled",!1)]),gK=Ft(mK),vK=Ft([xn("width"),xn("height")]),yK=[xn("type"),In("header",hn),In("cells",Bt(hn))],bK=Ft(yK),_K=R$.concat([Mn("placeholder"),Gn("maximized",!1),Gn("disabled",!1)]),wK=Ft(_K),xK=hn,SK=R$.concat([Un("filetype","file",["image","media","file"]),Fn("disabled",!1)]),CK=Ft(SK),EK=Ft([xn("value"),Fn("meta",{})]),kK=function(e){return Ht("items","items",et(),Bt(Zt((function(t){return nn("Checking item of "+e,OK,t).fold((function(e){return ge.error(an(e))}),(function(e){return ge.value(e)}))}))))},OK=Qt((function(){return sn("type",{alertbanner:S$,bar:Ft(C$(kK("bar"))),button:k$,checkbox:T$,colorinput:D$,colorpicker:B$,dropzone:H$,grid:Ft(K$(kK("grid"))),iframe:Q$,input:rK,listbox:uK,selectbox:hK,sizeinput:gK,textarea:wK,urlinput:CK,customeditor:G$,htmlpanel:Y$,imagetools:tK,collection:M$,label:Ft(oK(kK("label"))),table:bK,panel:IK})})),TK=[xn("type"),Fn("classes",[]),In("items",OK)],IK=Ft(TK),AK=[Ht("name","name",nt((function(){return ja("tab-name")})),hn),xn("title"),In("items",OK)],RK=[xn("type"),Tn("tabs",AK)],PK=Ft(RK),MK=y$,NK=w$,LK=Ft([xn("title"),_n("body",sn("type",{panel:IK,tabpanel:PK})),zn("size","normal"),In("buttons",NK),Fn("initialData",{}),Vn("onAction",t),Vn("onChange",t),Vn("onSubmit",t),Vn("onClose",t),Vn("onCancel",t),Fn("onTabChange",t)]),DK=function(e){return nn("dialog",LK,e)},jK=Ft(m([Sn("type",["cancel","custom"])],MK)),FK=Ft([xn("title"),xn("url"),Pn("height"),Pn("width"),Ln("buttons",jK),Vn("onAction",t),Vn("onCancel",t),Vn("onClose",t),Vn("onMessage",t)]),BK=function(e){return nn("dialog",FK,e)},qK=function(e){return O(e)?[e].concat(ne(Fe(e),qK)):T(e)?ne(e,qK):[]},zK=function(e){return k(e.type)&&k(e.name)},UK={checkbox:I$,colorinput:j$,colorpicker:q$,dropzone:$$,input:iK,iframe:Z$,sizeinput:vK,selectbox:pK,listbox:dK,size:vK,textarea:xK,urlinput:EK,customeditor:V$,collection:N$,togglemenuitem:g$},GK=function(e){return w.from(UK[e.type])},VK=function(e){return X(qK(e),zK)},WK=function(e){var t=VK(e),n=ne(t,(function(e){return GK(e).fold((function(){return[]}),(function(t){return[_n(e.name,t)]}))}));return Ft(n)},HK=function(e){var t=rn(DK(e)),n=WK(e),r=e.initialData;return{internalDialog:t,dataValidator:n,initialData:r}},$K={open:function(e,t){var n=HK(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){var n=rn(BK(t));return e(n)},redial:function(e){return HK(e)}},KK=function(e){var t=[],n={};return Ae(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?ge.error(t):ge.value(n)},XK=function(e,t){var n=Q_(gP.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:W(e.items,(function(e){return WD(n,e,t)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:qu([db.config({mode:"acyclic",useTabstopAt:l(eM)}),OP.memento(n),GP.memento(n,{postprocess:function(e){return KK(e).fold((function(e){return console.error(e),{}}),(function(e){return e}))}})])}},YK=function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:Zb(e.action),behaviours:Qp(e.tabButtonBehaviours,[Pb.config({}),db.config({mode:"execution",useSpace:!0,useEnter:!0}),Xp.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}},JK=sg({name:"TabButton",configFields:[Fn("uid",void 0),bn("value"),Ht("dom","dom",rt((function(){return{attributes:{role:"tab",id:ja("aria"),"aria-selected":"false"}}})),un()),An("action"),Fn("domModification",{}),Yp("tabButtonBehaviours",[Pb,db,Xp]),bn("view")],factory:YK}),QK=o([bn("tabs"),bn("dom"),Fn("clickToDismiss",!1),Yp("tabbarBehaviours",[Bg,db]),Dc(["tabClass","selectedClass"])]),ZK=Rm({factory:JK,name:"tabs",unit:"tab",overrides:function(e){var n=function(e,t){Bg.dehighlight(e,t),uo(e,ao(),{tabbar:e,button:t})},r=function(e,t){Bg.highlight(e,t),uo(e,oo(),{tabbar:e,button:t})};return{action:function(i){var o=i.getSystem().getByUid(e.uid).getOrDie(),a=Bg.isHighlighted(o,i),s=function(){return a&&e.clickToDismiss?n:a?t:r}();s(o,i)},domModification:{classes:[e.markers.tabClass]}}}}),eX=o([ZK]),tX=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Qp(e.tabbarBehaviours,[Bg.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){Sa(t.element,"aria-selected","true")},onDehighlight:function(e,t){Sa(t.element,"aria-selected","false")}}),db.config({mode:"flow",getInitial:function(e){return Bg.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}},nX=lg({name:"Tabbar",configFields:QK(),partFields:eX(),factory:tX}),rX=function(e,t){return{uid:e.uid,dom:e.dom,behaviours:Qp(e.tabviewBehaviours,[wb.config({})]),domModification:{attributes:{role:"tabpanel"}}}},iX=sg({name:"Tabview",configFields:[Yp("tabviewBehaviours",[wb])],factory:rX}),oX=o([Fn("selectFirst",!0),Fc("onChangeTab"),Fc("onDismissTab"),Fn("tabs",[]),Yp("tabSectionBehaviours",[])]),aX=Tm({factory:nX,schema:[bn("dom"),On("markers",[bn("tabClass"),bn("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),sX=Tm({factory:iX,name:"tabview"}),lX=o([aX,sX]),cX=function(e,t,n,r){var i=function(t){var n=Xp.getValue(t);Gm(t,e,"tabview").each((function(r){var i=Z(e.tabs,(function(e){return e.value===n}));i.each((function(n){var i=n.view();ka(t.element,"id").each((function(e){Sa(r.element,"aria-labelledby",e)})),wb.set(r,i),e.onChangeTab(r,t,i)}))}))},o=function(t,n){Gm(t,e,"tabbar").each((function(e){n(e).each(fo)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:Jp(e.tabSectionBehaviours),events:go(te([e.selectFirst?[Ao((function(e,t){o(e,Bg.getFirst)}))]:[],[_o(oo(),(function(e,t){var n=t.event.button;i(n)})),_o(ao(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return Gm(t,e,"tabview").map((function(e){return wb.contents(e)})).getOr([])},showTab:function(e,t){var n=function(e){var n=Bg.getCandidates(e),r=Z(n,(function(e){return Xp.getValue(e)===t}));return r.filter((function(t){return!Bg.isHighlighted(e,t)}))};o(e,n)}}}},uX=lg({name:"TabSection",configFields:oX(),partFields:lX(),factory:cX,apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),dX=function(e,t,n){return W(e,(function(r,i){wb.set(n,e[i].view());var o=t.dom.getBoundingClientRect();return wb.set(n,[]),o.height}))},fX=function(e){return ce(se(e,(function(e,t){return e>t?-1:e<t?1:0})))},hX=function(e,t,n){var r,i=Go(e).dom,o=hc(e,".tox-dialog-wrap").getOr(e),a="fixed"===Qs(o,"position");r=a?Math.max(i.clientHeight,window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var s=Sl(t),l=t.dom.offsetLeft>=n.dom.offsetLeft+Nl(n),c=l?Math.max(Sl(n),s):s,u=parseInt(Qs(e,"margin-top"),10)||0,d=parseInt(Qs(e,"margin-bottom"),10)||0,f=Sl(e)+u+d,h=f-c;return r-h},pX=function(e,t){ce(e).each((function(e){return uX.showTab(t,e.value)}))},mX=function(e,t){Xs(e,"height",t+"px"),$r().browser.isIE()?rl(e,"flex-basis"):Xs(e,"flex-basis",t+"px")},gX=function(e,t,n){hc(e,'[role="dialog"]').each((function(e){pc(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return Xs(t,"height","0"),Xs(t,"flex-basis","0"),Math.min(n,hX(e,t,r))})).each((function(e){mX(t,e)}))}))}))},vX=function(e){return pc(e,'[role="tabpanel"]')},yX=function(e){var t=function(){var t=Xn(w.none()),n=[Ao((function(n){var r=n.element;vX(r).each((function(i){Xs(i,"visibility","hidden"),n.getSystem().getByDom(i).toOptional().each((function(n){var r=dX(e,i,n),o=fX(r);t.set(o)})),gX(r,i,t),rl(i,"visibility"),pX(e,n),X_.requestAnimationFrame((function(){gX(r,i,t)}))}))})),_o(Qi(),(function(e){var n=e.element;vX(n).each((function(e){gX(n,e,t)}))})),_o(mT,(function(e,n){var r=e.element;vX(r).each((function(e){var n=Zu(ta(e));Xs(e,"visibility","hidden");var i=el(e,"height").map((function(e){return parseInt(e,10)}));rl(e,"height"),rl(e,"flex-basis");var o=e.dom.getBoundingClientRect().height,a=i.forall((function(e){return o>e}));a?(t.set(w.from(o)),gX(r,e,t)):i.each((function(t){mX(e,t)})),rl(e,"visibility"),n.each(Yu)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var e=[],t=!0;return{extraEvents:e,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:n}},bX="send-data-to-section",_X="send-data-to-view",wX=function(e,t){var n=Xn({}),r=function(e){var t=Xp.getValue(e),r=KK(t).getOr({}),i=n.get(),o=Ke(i,r);n.set(o)},i=function(e){var t=n.get();Xp.setValue(e,t)},o=Xn(null),a=W(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[gP.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:W(e.items,(function(e){return WD(n,e,t)})),formBehaviours:qu([db.config({mode:"acyclic",useTabstopAt:l(eM)}),Sb("TabView.form.events",[Ao(i),Ro(r)]),Hu.config({channels:ut([{key:bX,value:{onReceive:r}},{key:_X,value:{onReceive:i}}])})])}}))]}}})),s=yX(a).smartTabHeight;return uX.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=Xp.getValue(t);uo(e,pT,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[uX.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[nX.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:qu([ZO.config({})])}),uX.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:qu([Sb("tabpanel",s.extraEvents),db.config({mode:"acyclic"}),bg.config({find:function(e){return ce(uX.getViewItems(e))}}),Xp.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([bX],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([_X],{})}}})])})},xX=ja("update-dialog"),SX=ja("update-title"),CX=ja("update-body"),EX=ja("update-footer"),kX=ja("body-send-message"),OX=function(e,t,n,r){var i=function(e){switch(e.body.type){case"tabpanel":return[wX(e.body,n)];default:return[XK(e.body,n)]}},o=function(e,t){return w.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:h(h({},t.map((function(e){return{id:e}})).getOr({})),r?a:{})},components:[],behaviours:qu([OP.childAt(0),JB.config({channel:CX,updateState:o,renderComponents:i,initialData:e})])}},TX=function(e,t,n,r){return OX(e,w.some(t),n,r)},IX=function(e,t){var n=OX(e,w.none(),t,!1);return p$.parts.body(n)},AX=function(e){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[JP({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:qu([ZO.config({}),Pb.config({})])})]}],behaviours:qu([db.config({mode:"acyclic",useTabstopAt:l(eM)})])};return p$.parts.body(t)},RX=rE.deviceType.isTouch(),PX=function(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}},MX=function(e,t){return p$.parts.close(J_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:qu([ZO.config({})])}))},NX=function(){return p$.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},LX=function(e,t){return p$.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:OG("<p>"+t.translate(e)+"</p>")}]}]})},DX=function(e){return p$.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},jX=function(e,t){return[GO.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),GO.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},FX=function(e){var t,n="tox-dialog",r=n+"-wrap",i=r+"__backdrop",o=n+"__disable-scroll";return p$.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),w.some(!0)},useTabstopAt:function(e){return!eM(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:h({position:"relative"},e.extraStyles)},components:m([e.header,e.body],e.footer.toArray()),parts:{blocker:{dom:OG('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:RX?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:qu(m([Pb.config({}),Sb("dialog-events",e.dialogEvents.concat([Io(Oi(),(function(e,t){db.focusIn(e)}))])),Sb("scroll-lock",[Ao((function(){js(Ws(),o)})),Ro((function(){Bs(Ws(),o)}))])],e.extraBehaviours)),eventOrder:h((t={},t[Ui()]=["dialog-events"],t[Zi()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[eo()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})},BX=function(e){return J_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:ew("close",e.icons)}}],action:function(e){co(e,cT)}})},qX=function(e,t,n){var r=function(e){return[gl(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:h({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:qu([JB.config({channel:SX,renderComponents:r})])}},zX=function(){return{dom:OG('<div class="tox-dialog__draghandle"></div>')}},UX=function(e,t,n){return GO.sketch({dom:OG('<div class="tox-dialog__header"></div>'),components:[qX(e,w.some(t),n),zX(),BX(n)],containerBehaviours:qu([zH.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return mc(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},GX=function(e,t){var n=p$.parts.title(qX(e,w.none(),t)),r=p$.parts.draghandle(zX()),i=p$.parts.close(BX(t)),o=[n].concat(e.draggable?[r]:[]).concat([i]);return GO.sketch({dom:OG('<div class="tox-dialog__header"></div>'),components:o})},VX=function(e,t){return GX({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},WX=function(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:OG('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},HX=function(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){p$.setBusy(e(),(function(e,r){return WX(n.message,r,t)}))},onUnblock:function(){p$.setIdle(e())}}},$X=function(e,t,n,r){var i,o=function(e,t){return w.some(t)};return bl(FX(h(h({},e),{lazySink:r.shared.getSink,extraBehaviours:m([JB.config({channel:xX,updateState:o,initialData:t}),GP.memory({})],e.extraBehaviours),onEscape:function(e){co(e,cT)},dialogEvents:n,eventOrder:(i={},i[zi()]=[JB.name(),Hu.name()],i[Zi()]=["scroll-lock",JB.name(),"messages","dialog-events","alloy.base.behaviour"],i[eo()]=["alloy.base.behaviour","dialog-events","messages",JB.name(),"scroll-lock"],i)})))},KX=function(e){var t=function(e){var t=W(e.items,(function(e){var t=Xn(!1);return h(h({},e),{storage:t})}));return h(h({},e),{items:t})};return W(e,(function(e){return"menu"===e.type?t(e):e}))},XX=function(e){return J(e,(function(e,t){if("menu"===t.type){var n=t;return J(n.items,(function(e,t){return e[t.name]=t.storage,e}),e)}return e}),{})},YX=function(e,t){return[ko(Oi(),ZP),e(lT,(function(e,n){t.onClose(),n.onClose()})),e(cT,(function(e,t,n,r){t.onCancel(e),co(r,lT)})),_o(hT,(function(e,n){return t.onUnblock()})),_o(fT,(function(e,n){return t.onBlock(n.event)}))]},JX=function(e,t){var n=function(t,n){return _o(t,(function(t,i){r(t,(function(r,o){n(e(),r,i.event,t)}))}))},r=function(e,t){JB.getState(e).get().each((function(n){t(n,e)}))};return m(YX(n,t),[n(uT,(function(e,t,n){t.onAction(e,{name:n.name})}))])},QX=function(e,t,n){var r=function(t,n){return _o(t,(function(t,r){i(t,(function(i,o){n(e(),i,r.event,t)}))}))},i=function(e,t){JB.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return m(YX(r,t),[r(dT,(function(e,t){return t.onSubmit(e)})),r(sT,(function(e,t,n){t.onChange(e,{name:n.name})})),r(uT,(function(e,t,r,i){var o=function(){return db.focusIn(i)},a=function(e){return Oa(e,"disabled")||ka(e,"aria-disabled").exists((function(e){return"true"===e}))},s=ta(i.element),l=Zu(s);t.onAction(e,{name:r.name,value:r.value}),Zu(s).fold(o,(function(e){a(e)||l.exists((function(t){return si(e,t)&&a(t)}))?o():n().toOptional().filter((function(t){return!si(t.element,e)})).each(o)}))})),r(pT,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Ro((function(t){var n=e();Xp.setValue(t,n.getData())}))])},ZX={initUrlDialog:JX,initDialog:QX},eY=function(e,t){return zN(e,e.type,t)},tY=function(e,t,n){return Z(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))},nY=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=K(n,(function(e){return"start"===e.align})),i=function(e,t){return GO.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:W(t,(function(e){return e.memento.asSpec()}))})},o=i("start",r.pass),a=i("end",r.fail);return[o,a]},rY=function(e,t){var n=function(e,n){var r=W(n.buttons,(function(e){var n=Q_(eY(e,t));return{name:e.name,align:e.align,memento:n}})),i=function(e,t){return tY(e,r,t)};return w.some({lookupByName:i,footerButtons:r})};return{dom:OG('<div class="tox-dialog__footer"></div>'),components:[],behaviours:qu([JB.config({channel:EX,initialData:e,updateState:n,renderComponents:nY})])}},iY=function(e,t){return rY(e,t)},oY=function(e,t){return p$.parts.footer(rY(e,t))},aY=function(e,t){var n=e.getRoot();if(n.getSystem().isConnected()){var r=bg.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return gP.getField(r,t).fold((function(){var n=e.getFooter(),i=JB.getState(n);return i.get().bind((function(e){return e.lookupByName(r,t)}))}),(function(e){return w.some(e)}))}return w.none()},sY=function(e,t){var n=e.getRoot();return JB.getState(n).get().map((function(e){return rn(nn("data",e.dataValidator,t))})).getOr(t)},lY=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},i=function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,i=Xp.getValue(r),o=Re(n,(function(e){return e.get()}));return h(h({},i),o)},o=function(t){r((function(r){var i=m.getData(),o=h(h({},i),t),a=sY(e,o),s=e.getFormWrapper();Xp.setValue(s,a),Ae(n,(function(e,t){qe(o,t)&&e.set(o[t])}))}))},a=function(t){aY(e,t).each(YS.disable)},s=function(t){aY(e,t).each(YS.enable)},l=function(t){aY(e,t).each(Pb.focus)},c=function(e){if(!k(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){uo(t,fT,{message:e})}))},u=function(){r((function(e){co(e,hT)}))},d=function(t){r((function(n){var r=e.getBody(),i=JB.getState(r);i.get().exists((function(e){return e.isTabPanel()}))&&bg.getCurrent(r).each((function(e){uX.showTab(e,t)}))}))},f=function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([xX],r),n.getSystem().broadcastOn([SX],r.internalDialog),n.getSystem().broadcastOn([CX],r.internalDialog),n.getSystem().broadcastOn([EX],r.internalDialog),m.setData(r.initialData)}))},p=function(){r((function(e){co(e,lT)}))},m={getData:i,setData:o,disable:a,enable:s,focus:l,block:c,unblock:u,showTab:d,redial:f,close:p};return m},cY=function(e){switch(e){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},uY=function(e,t,n){var r=VX(e.internalDialog.title,n),i=IX({body:e.internalDialog.body},n),o=KX(e.internalDialog.buttons),a=XX(o),s=oY({buttons:o},n),l=ZX.initDialog((function(){return h}),HX((function(){return d}),n.shared.providers,t),n.shared.getSink),c=cY(e.internalDialog.size),u={header:r,body:i,footer:w.some(s),extraClasses:c,extraBehaviours:[],extraStyles:{}},d=$X(u,e,l,n),f=function(){var e=function(){var e=p$.getBody(d);return bg.getCurrent(e).getOr(e)};return{getRoot:function(){return d},getBody:function(){return p$.getBody(d)},getFooter:function(){return p$.getFooter(d)},getFormWrapper:e}}(),h=lY(f,t.redial,a);return{dialog:d,instanceApi:h}},dY=function(e,t,n,r){var i,o,a=ja("dialog-label"),s=ja("dialog-content"),l=function(e,t){return w.some(t)},c=Q_(UX({title:e.internalDialog.title,draggable:!0},a,n.shared.providers)),u=Q_(TX({body:e.internalDialog.body},s,n,r)),d=KX(e.internalDialog.buttons),f=XX(d),h=Q_(iY({buttons:d},n)),p=ZX.initDialog((function(){return g}),{onBlock:function(e){f$.block(m,(function(t,r){return WX(e.message,r,n.shared.providers)}))},onUnblock:function(){f$.unblock(m)},onClose:function(){return t.closeWindow()}},n.shared.getSink),m=bl({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=""+s,i)},eventOrder:(o={},o[zi()]=[JB.name(),Hu.name()],o[Ui()]=["execute-on-form"],o[Zi()]=["reflecting","execute-on-form"],o),behaviours:qu([db.config({mode:"cyclic",onEscape:function(e){return co(e,lT),w.some(!0)},useTabstopAt:function(e){return!eM(e)&&("button"!==No(e)||"disabled"!==Ea(e,"disabled"))}}),JB.config({channel:xX,updateState:l,initialData:e}),Pb.config({}),Sb("execute-on-form",p.concat([Io(Oi(),(function(e,t){db.focusIn(e)}))])),f$.config({getRoot:function(){return w.some(m)}}),wb.config({}),GP.memory({})]),components:[c.asSpec(),u.asSpec(),h.asSpec()]}),g=lY({getRoot:function(){return m},getFooter:function(){return h.get(m)},getBody:function(){return u.get(m)},getFormWrapper:function(){var e=u.get(m);return bg.getCurrent(e).getOr(e)}},t.redial,f);return{dialog:m,instanceApi:g}},fY=tinymce.util.Tools.resolve("tinymce.util.URI"),hY=function(e){var t=function(t){e.getSystem().isConnected()&&t(e)},n=function(e){if(!k(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t((function(t){uo(t,fT,{message:e})}))},r=function(){t((function(e){co(e,hT)}))},i=function(){t((function(e){co(e,lT)}))},o=function(e){t((function(t){t.getSystem().broadcastOn([kX],e)}))};return{block:n,unblock:r,close:i,sendMessage:o}},pY=["insertContent","setContent","execCommand","close","block","unblock"],mY=function(e){return O(e)&&-1!==pY.indexOf(e.mceAction)},gY=function(e){return!mY(e)&&O(e)&&qe(e,"mceAction")},vY=function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!I(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock();break}},yY=function(e,t,n,r){var i,o=VX(e.title,r),a=AX(e),s=e.buttons.bind((function(e){return 0===e.length?w.none():w.some(oY({buttons:e},r))})),l=ZX.initUrlDialog((function(){return y}),HX((function(){return v}),r.shared.providers,t)),c=h(h({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),u=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],d=new fY(e.url,{base_uri:new fY(window.location.href)}),f=d.protocol+"://"+d.host+(d.port?":"+d.port:""),p=Xn(w.none()),m=[Sb("messages",[Ao((function(){var t=fO(tr.fromDom(window),"message",(function(t){if(d.isSameOrigin(new fY(t.raw.origin))){var r=t.raw.data;mY(r)?vY(n,y,r):gY(r)&&e.onMessage(y,r)}}));p.set(w.some(t))})),Ro((function(){p.get().each((function(e){return e.unbind()}))}))]),Hu.config({channels:(i={},i[kX]={onReceive:function(e,t){pc(e.element,"iframe").each((function(e){var n=e.dom.contentWindow;n.postMessage(t,f)}))}},i)})],g={header:o,body:a,footer:s,extraClasses:u,extraBehaviours:m,extraStyles:c},v=$X(g,e,l,r),y=hY(v);return{dialog:v,instanceApi:y}},bY=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(){p$.hide(l),r()},o=Q_(zN({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:w.none()},"cancel",e.backstage)),a=NX(),s=MX(i,t.providers),l=bl(FX({lazySink:function(){return t.getSink()},header:PX(a,s),body:LX(n,t.providers),footer:w.some(DX(jX([],[o.asSpec()]))),onEscape:i,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[_o(cT,i)],eventOrder:{}}));p$.show(l);var c=o.get(l);Pb.focus(c)};return{open:n}},_Y=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(e){p$.hide(c),r(e)},o=Q_(zN({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:w.none()},"submit",e.backstage)),a=zN({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:w.none()},"cancel",e.backstage),s=NX(),l=MX((function(){return i(!1)}),t.providers),c=bl(FX({lazySink:function(){return t.getSink()},header:PX(s,l),body:LX(n,t.providers),footer:w.some(DX(jX([],[a,o.asSpec()]))),onEscape:function(){return i(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[_o(cT,(function(){return i(!1)})),_o(dT,(function(){return i(!0)}))],eventOrder:{}}));p$.show(c);var u=o.get(c);Pb.focus(u)};return{open:n}},wY=function(e,t){return rn(nn("data",t,e))},xY=function(e){return mO(e,".tox-alert-dialog")||mO(e,".tox-confirm-dialog")},SY=function(e,t,n){return t&&n?[]:[zU.config({contextual:{lazyContext:function(){return w.some(ic(tr.fromDom(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},CY=function(e){var t=e.backstage,n=e.editor,r=OC(n),i=bY(e),o=_Y(e),a=function(e,n,r){return void 0!==n&&"toolbar"===n.inline?u(e,t.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?u(e,t.shared.anchors.cursor(),r,n.ariaAttrs):c(e,r)},s=function(e,t){return l(e,t)},l=function(e,r){var i=function(e){var i=yY(e,{closeWindow:function(){p$.hide(i.dialog),r(i.instanceApi)}},n,t);return p$.show(i.dialog),i.instanceApi};return $K.openUrl(i,e)},c=function(e,n){var r=function(e,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:e},s=uY(a,{redial:$K.redial,closeWindow:function(){p$.hide(s.dialog),n(s.instanceApi)}},t);return p$.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return $K.open(r,e)},u=function(e,i,o,a){var s=function(e,s,l){var c=wY(s,l),u=wz(),d=t.shared.header.isPositionedAtTop(),f={dataValidator:l,initialData:c,internalDialog:e},p=function(){return u.on((function(e){j_.reposition(e),zU.refresh(e)}))},g=dY(f,{redial:$K.redial,closeWindow:function(){u.on(j_.hide),n.off("ResizeEditor",p),u.clear(),o(g.instanceApi)}},t,a),v=bl(j_.sketch(h(h({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},d?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:qu(m([Sb("window-manager-inline-events",[_o(to(),(function(e,t){co(g.dialog,cT)}))])],SY(n,r,d))),isExtraPart:function(e,t){return xY(t)}})));return u.set(v),j_.showWithin(v,i,_l(g.dialog),w.some(Ws())),r&&d||(zU.refresh(v),n.on("ResizeEditor",p)),g.instanceApi.setData(c),db.focusIn(g.dialog),g.instanceApi};return $K.open(s,e)},d=function(e,t){o.open(e,(function(e){t(e)}))},f=function(e,t){i.open(e,(function(){t()}))},p=function(e){e.close()};return{open:a,openUrl:s,alert:f,close:p,confirm:d}};function EY(){f.add("silver",(function(e){var t=e$(e),n=t.uiMothership,r=t.backstage,i=t.renderUI,a=t.getUi;uO.register(e,r.shared);var s=CY({editor:e,backstage:r});return{renderUI:i,getWindowManagerImpl:o(s),getNotificationManagerImpl:function(){return aw(e,{backstage:r},n)},ui:a()}}))}EY()})()}).call(this,n("c8ba"))},"0414":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=42,i=256},"042c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",[n("draggable",{staticStyle:{display:"inline-block"},attrs:{options:{animation:300}},on:{end:e.end},model:{value:e.dataSource,callback:function(t){e.dataSource=t},expression:"dataSource"}},[e._l(e.dataSource,(function(e,t){return[n("div",{key:t,staticStyle:{float:"left",width:"150px",height:"150px","margin-right":"10px",margin:"0 8px 8px 0"}},[n("div",{staticStyle:{width:"100%",height:"100%",position:"relative",padding:"8px",border:"1px solid #d9d9d9","border-radius":"4px"}},[n("img",{staticStyle:{width:"100%"},attrs:{src:e.filePath,preview:"index"}})])])]})),n("a-button",{staticStyle:{"margin-top":"115px"},attrs:{type:"primary"},on:{click:e.sureChange}},[e._v("确定")])],2),n("br"),n("a-row",[n("a-col",{attrs:{span:12}},[n("p",[e._v("拖拽前json数据:")]),n("textarea",{staticStyle:{width:"780px"},attrs:{rows:"25"}},[e._v(e._s(e.oldDateSource))])]),n("a-col",{attrs:{span:12}},[n("p",[e._v("拖拽后json数据:")]),n("textarea",{staticStyle:{width:"780px"},attrs:{rows:"25"}},[e._v(e._s(e.newDateSource))])])],1)],1)},i=[],o=n("b76a"),a=n.n(o),s=n("290c"),l=n("da05"),c={name:"ImgDragSort",components:{ACol:l["b"],ARow:s["a"],draggable:a.a},data:function(){return{description:"图片拖拽排序",spinning:!1,dataSource:[{id:"000",sort:0,filePath:"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2735633715,2749454924&fm=27&gp=0.jpg"},{id:"111",sort:1,filePath:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3967239004,1951414302&fm=27&gp=0.jpg"},{id:"222",sort:2,filePath:"https://ss0.bdstatic.com/6Ox1bjeh1BF3odCf/it/u=3660968530,985748925&fm=191&app=48&size=h300&n=0&g=4n&f=JPEG?sec=1853310920&t=5e64af964be378c6c2a3b0acc65dfe24"},{id:"333",sort:3,filePath:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=889120611,3801177793&fm=27&gp=0.jpg"},{id:"444",sort:4,filePath:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2445468140,2491956848&fm=27&gp=0.jpg"}],oldDateSource:[],newDateSource:[]}},created:function(){this.oldDateSource=this.dataSource},methods:{end:function(e){console.log("拖动前的位置"+e.oldIndex),console.log("拖动后的位置"+e.newIndex)},sureChange:function(){for(var e=0;e<this.dataSource.length;e++)this.dataSource[e].sort=e;this.newDateSource=this.dataSource}}},u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,"2933ffa3",null);t["default"]=f.exports},"042d":function(e,t,n){"use strict";n("1e94")},"0430":function(e,t,n){"use strict";n("a209")},"043b":function(e,t,n){var r=n("2ace");e.exports=r.Promise},"0451":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"leftmyshow1"},[n("div",{staticClass:"leftmywidth1 beijingmy1"},[n("div",{staticClass:"table-page-search-wrapper leftmywidth1"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{md:6,sm:6}},[n("a-form-item",{attrs:{label:"功能名称"}},[n("a-input",{attrs:{placeholder:"请输入功能名称"},model:{value:e.myQueryParam.name,callback:function(t){e.$set(e.myQueryParam,"name",t)},expression:"myQueryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入功能名称",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:6}},[n("a-form-item",{attrs:{label:"对应区县"}},[n("j-dict-select-tag",{attrs:{dictCode:"qxxz_pz",placeholder:"请选择对应区县"},model:{value:e.queryParam.districtcode,callback:function(t){e.$set(e.queryParam,"districtcode",t)},expression:"queryParam.districtcode"}})],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator leftmywidth1"},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),n("a-button",{attrs:{type:"primary",icon:"copy"},on:{click:e.fugaiquxian}},[e._v("覆盖区县数据")])],1),n("mapTable",{ref:"mapTable",attrs:{dataSource:e.dataSource,dataSourcegd:e.dataSourcegd,loading:e.loading,columns:e.columns},on:{handleEdit:function(t){return e.handleEdit(t)},handleDeleteForm:function(t){return e.handleDeleteForm(t)},onClearSelected:function(t){return e.onClearSelected(t)}}})],1)]),n("div",[n("TemplateEditModal",{ref:"TemplateEditModal",on:{ok:e.modalFormOk,closetwo:e.closetwo}})],1),n("div",[n("TemplateEditModaltwo",{ref:"TemplateEditModaltwo",on:{closetwo:e.closetwo}})],1),n("div",[n("TemplateEditDuoxuan",{ref:"TemplateEditDuoxuan",on:{searchReset:e.searchReset}})],1)])},i=[],o=n("d9be"),a=n("2725"),s=n("d737"),l=n("26a1"),c=n("2ab0"),u=n("6434"),d={name:"MaterialWarehouseList",mixins:[a["JeecgListMixin"]],components:{TemplateEditModal:l["default"],city_child:o["default"],mapTable:s["default"],TemplateEditModaltwo:c["default"],TemplateEditDuoxuan:u["default"]},data:function(){return{description:"应急物资储备仓库管理页面",columns:[{title:"对应区县",align:"center",width:"10%",dataIndex:"districtname"},{title:"功能名称",align:"center",width:"40%",dataIndex:"name"},{title:"对应表名称",align:"center",width:"30%",dataIndex:"tablename"},{title:"操作",dataIndex:"action",align:"center",width:"20%",scopedSlots:{customRender:"action"}}],url:{list:"/templateEditSon/list",delete:"/templateEditSon/delete",deleteBatch:"/templateEditSon/deleteBatch",vertifyBatch:"/templateEditSon/batchVerfiy"},dictOptions:{verifyStatus:[]},myQueryParam:{name:""},showDefaultParams:[]}},methods:{closetwo:function(){this.$refs.TemplateEditModaltwo.yincang(),this.$refs.TemplateEditModal.yincang()},handleEdit:function(e){this.$refs.TemplateEditModal.edit(e),this.$refs.TemplateEditModaltwo.visible=!0;var t=this;setTimeout((function(){t.$refs.TemplateEditModaltwo.loadData(e.smid),t.$refs.TemplateEditModaltwo.settablename(e.tablename)}),500)},handleAdd:function(){this.$refs.TemplateEditModal.add();var e=this;setTimeout((function(){e.$refs.TemplateEditModaltwo.loadData("")}),500)}}},f=d,h=(n("e41e"),n("28f8"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,"fb282c82",null);t["default"]=p.exports},"045d":function(e,t,n){"use strict";t["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"0467":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-table",{attrs:{rowKey:"id",bordered:"",columns:e.columns,dataSource:e.dataSource,pagination:!1}})],1)},i=[],o=(n("ee1d"),n("c5f6"),n("04ff"),n("6762"),n("2fdb"),n("ac6a"),n("ade3")),a={name:"TableTotal",data:function(){return{columns:[{title:"#",width:"180px",align:"center",dataIndex:"rowIndex",customRender:function(e,t,n){return"合计"!==e?parseInt(n)+1:e}},{title:"姓名",dataIndex:"name"},{title:"贡献点",dataIndex:"point"},{title:"等级",dataIndex:"level"},{title:"更新时间",dataIndex:"updateTime"}],dataSource:[{name:"张三",point:23,level:3,updateTime:"2019-8-14"},{name:"小王",point:6,level:1,updateTime:"2019-8-13"},{name:"李四",point:53,level:8,updateTime:"2019-8-12"},{name:"小红",point:44,level:5,updateTime:"2019-8-11"},{name:"王五",point:97,level:10,updateTime:"2019-8-10"},{name:"小明",point:33,level:2,updateTime:"2019-8-10"}]}},mounted:function(){this.tableAddTotalRow(this.columns,this.dataSource)},methods:{tableAddTotalRow:function(e,t){var n="rowIndex",r=Object(o["a"])({},n,"合计");e.forEach((function(e){var i=e.key,o=e.dataIndex;if(![i,o].includes(n)){var a=0;t.forEach((function(e){a+=/^\d+\.?\d?$/.test(e[o])?Number.parseInt(e[o]):Number.NaN,console.log(e[o],":",/^\d+\.?\d?$/.test(e[o])?Number.parseInt(e[o]):Number.NaN)})),Number.isNaN(a)&&(a="-"),r[o]=a}})),t.push(r)}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"eb00ea5c",null);t["default"]=c.exports},"04f5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"修订号"}},[n("a-input",{attrs:{placeholder:"请输入修订号"},model:{value:e.queryParam.revision,callback:function(t){e.$set(e.queryParam,"revision",t)},expression:"queryParam.revision"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"流程名称"}},[n("a-input",{attrs:{placeholder:"请输入流程名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"流程key"}},[n("a-input",{attrs:{placeholder:"请输入流程key"},model:{value:e.queryParam.key,callback:function(t){e.$set(e.queryParam,"key",t)},expression:"queryParam.key"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"版本号"}},[n("a-input",{attrs:{placeholder:"请输入版本号"},model:{value:e.queryParam.version,callback:function(t){e.$set(e.queryParam,"version",t)},expression:"queryParam.version"}})],1)],1)]:e._e(),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.goAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("工作流殷勤")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.goEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("activiti-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("0b20"),a=n("b65a"),s={name:"ActivitiList",mixins:[a["a"]],components:{ActivitiModal:o["default"]},data:function(){return{description:"工作流引擎管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"修订号",align:"center",dataIndex:"revision"},{title:"流程名称",align:"center",dataIndex:"name"},{title:"流程key",align:"center",dataIndex:"key"},{title:"版本号",align:"center",dataIndex:"version"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/activiti/list",delete:"/activiti/delete",deleteBatch:"/activiti/deleteBatch",exportXlsUrl:"activiti/activiti/exportXls",importExcelUrl:"activiti/activiti/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{goEdit:function(e){window.open("".concat(window._CONFIG["domianActiURL"],"editor?modelId=")+e.id)},goAdd:function(){window.open("".concat(window._CONFIG["domianActiURL"],"create?name=activiti&key=123456"))}}},l=s,c=(n("15e0b"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"c8045462",null);t["default"]=u.exports},"04ff":function(e,t,n){var r=n("5ca1"),i=n("3ca5");r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},"057b":function(e,t,n){},"0580":function(e,t,n){"use strict";n("1586")},"05ed":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{loading:e.loading,"body-style":{padding:"20px 24px 8px"},bordered:!1}},[n("div",{staticClass:"chart-card-header"},[n("div",{staticClass:"meta"},[n("span",{staticClass:"chart-card-title"},[e._v(e._s(e.title))]),n("span",{staticClass:"chart-card-action"},[e._t("action")],2)]),n("div",{staticClass:"total"},[n("span",[e._v(e._s(e.total))])])]),n("div",{staticClass:"chart-card-content"},[n("div",{staticClass:"content-fix"},[e._t("default")],2)]),n("div",{staticClass:"chart-card-footer"},[n("div",{staticClass:"field"},[e._t("footer")],2)])])},i=[],o={name:"ChartCard",props:{title:{type:String,default:""},total:{type:String,default:""},loading:{type:Boolean,default:!1}}},a=o,s=(n("678a"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"59efd292",null);t["default"]=l.exports},"0673":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"exception"},[n("div",{staticClass:"img"},[n("img",{attrs:{src:e.config[e.type].img}})]),n("div",{staticClass:"content"},[n("h1",[e._v(e._s(e.config[e.type].title))]),n("div",{staticClass:"desc"},[e._v(e._s(e.config[e.type].desc))]),n("div",{staticClass:"action"},[n("a-button",{attrs:{type:"primary"},on:{click:e.handleToHome}},[e._v("返回首页")])],1)])])},i=[],o=n("cd0a"),a={name:"Exception",props:{type:{type:String,default:"404"}},data:function(){return{config:o["default"]}},methods:{handleToHome:function(){this.$router.push({name:"dashboard"})}}},s=a,l=(n("62d6"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"48c3c2d3",null);t["default"]=c.exports},"069f":function(e,t,n){"use strict";n("4bba")},"06c8":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("4b0b"),o=n("b99f"),a=n("9fa4"),s=n("7373"),l=n("be46"),c=n("a1ab"),u=n("d75c"),d=n("f5ee"),f=d("slice"),h=u("species"),p=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,u,d=l(this),f=s(d.length),g=a(e,f),v=a(void 0===t?f:t,f);if(o(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[h],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return p.call(d,g,v);for(r=new(void 0===n?Array:n)(m(v-g,0)),u=0;g<v;g++,u++)g in d&&c(r,u,d[g]);return r.length=u,r}})},"06db":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{centered:"",title:e.title,width:1e3,visible:e.visible,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-row",{attrs:{gutter:18}},[n("a-col",{attrs:{span:16}},[n("a-card",{attrs:{title:"选择人员",bordered:!0}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:10}},[n("a-form-item",{attrs:{label:"姓名"}},[n("a-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{span:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",[n("a-table",{attrs:{size:"small",bordered:"",rowKey:"id",columns:e.columns1,dataSource:e.dataSource1,pagination:e.ipagination,loading:e.loading,scroll:{y:240},rowSelection:{selectedRowKeys:e.selectedRowKeys,onSelectAll:e.onSelectAll,onSelect:e.onSelect,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)])],1),n("a-col",{attrs:{span:8}},[n("a-card",{attrs:{title:"用户选择",bordered:!0}},[n("div",[n("a-table",{attrs:{size:"small",bordered:"",rowKey:"id",columns:e.columns2,dataSource:e.dataSource2,loading:e.loading,scroll:{y:240}},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a-button",{attrs:{type:"primary",size:"small",icon:"delete"},on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])],1)}}])})],1)])],1)],1)],1)},i=[],o=(n("ac6a"),n("456d"),n("ca00")),a=n("0fea"),s={name:"JSelectMultiUserModal",data:function(){return{title:"用户列表",names:[],visible:!1,placement:"right",description:"人员管理页面",queryParam:{},columns1:[{title:"#",dataIndex:"",key:"rowIndex",width:50,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"姓名",align:"center",width:113,dataIndex:"name"},{title:"年龄",align:"center",width:100,dataIndex:"age"},{title:"出生日期",align:"center",width:100,dataIndex:"birthday"}],columns2:[{title:"用户账号",align:"center",width:100,dataIndex:"name"},{title:"操作",dataIndex:"action",align:"center",width:100,scopedSlots:{customRender:"action"}}],dataSource1:[],dataSource2:[],ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},loading:!1,selectedRowKeys:[],selectedRows:[],url:{list:"/test/jeecgDemo/list"}}},created:function(){this.loadData()},methods:{searchQuery:function(){this.loadData(1)},searchReset:function(){this.queryParam={},this.loadData(1)},handleCancel:function(){this.visible=!1},handleOk:function(){this.$emit("selectFinished",this.dataSource2),this.visible=!1},add:function(){this.visible=!0},loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource1=e.result.records,t.ipagination.total=e.result.total)}))},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){},onSelectAll:function(e,t,n){if(!0===e)for(var r=0;r<n.length;r++)this.dataSource2.push(n[r]);else for(var i=0;i<n.length;i++)this.dataSource2.splice(this.dataSource2.indexOf(n[i]),1)},onSelect:function(e,t){if(!0===t)this.dataSource2.push(e);else{var n=this.dataSource2.indexOf(e);n>=0&&this.dataSource2.splice(this.dataSource2.indexOf(e),1)}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},handleDelete:function(e){this.dataSource2.splice(this.dataSource2.indexOf(e),1)},handleTableChange:function(e,t,n){console.log(n),Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()}}},l=s,c=(n("ebd36"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"3256a726",null);t["default"]=u.exports},"06f8":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"l",(function(){return m})),n.d(t,"i",(function(){return g})),n.d(t,"k",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"j",(function(){return _}));var r=n("0b2d"),i=n("57cb"),o=n("617d"),a=n("92fa5");function s(e){var t=arguments;return function(e){for(var n=!0,r=0,i=t.length;r<i;++r)if(n=n&&t[r](e),!n)break;return n}}var l=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},c=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},u=function(e){return e.target.getTargetElement().contains(document.activeElement)},d=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||u(e)},f=i["b"],h=function(e){var t=e.originalEvent;return 0==t.button&&!(o["f"]&&o["d"]&&t.ctrlKey)},p=i["a"],m=function(e){return e.type==r["a"].SINGLECLICK},g=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},v=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},y=function(e){var t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n},b=function(e){var t=e.originalEvent;return Object(a["a"])(void 0!==t,56),"mouse"==t.pointerType},_=function(e){var t=e.originalEvent;return Object(a["a"])(void 0!==t,56),t.isPrimary&&0===t.button}},"070d":function(e,t,n){"use strict";t["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"077e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,okText:"保存并安排任务",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"任务类名",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["jobClassName",{rules:[{required:!0,message:"请输入任务类名!"}]}],expression:"['jobClassName', {rules: [{ required: true, message: '请输入任务类名!' }]}]"}],attrs:{placeholder:"请输入任务类名"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"cron表达式"}},[n("j-cron",{directives:[{name:"decorator",rawName:"v-decorator",value:["cronExpression",{initialValue:"0/1 * * * * ?",rules:[{required:!0,message:"请输入cron表达式!"}]}],expression:"['cronExpression', {'initialValue':'0/1 * * * * ?',rules: [{ required: true, message: '请输入cron表达式!' }]}]"}],ref:"innerVueCron",on:{change:e.setCorn}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"参数",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["parameter",{}],expression:"['parameter', {}]"}],attrs:{placeholder:"请输入参数"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"描述",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["description",{}],expression:"['description', {}]"}],attrs:{placeholder:"请输入描述"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"状态"}},[n("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:0}],expression:"[ 'status', {'initialValue':0}]"}],attrs:{buttonStyle:"solid"}},[n("a-radio-button",{attrs:{value:0}},[e._v("正常")]),n("a-radio-button",{attrs:{value:-1}},[e._v("停止")])],1)],1)],1)],1)],1)},i=[],o=(n("ac6a"),n("456d"),n("0fea")),a=n("1e29"),s=n("88bc"),l=n.n(s),c=(n("c1df"),{name:"QuartzJobModal",components:{JCron:a["default"]},data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},cron:{label:"",value:""},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{cron:{rules:[{required:!0,message:"请输入cron表达式!"}]}},url:{add:"/sys/quartzJob/add",edit:"/sys/quartzJob/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.model=Object.assign({},e),console.log(this.model),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(l()(t.model,"jobClassName","cronExpression","parameter","description","status"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(console.log("values",r),!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("提交参数",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},setCorn:function(e){var t=this;console.log("data)",e),this.$nextTick((function(){t.model.cronExpression=e}))},validateCron:function(e,t,n){t?0==Object.keys(t).length&&n("请输入cron表达式!"):n()}}}),u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,"359eb4ef",null);t["default"]=f.exports},"07d1":function(e,t,n){n("94ce")},"07d3":function(e,t,n){},"07e5":function(e,t,n){},"0885":function(e,t,n){},"089b":function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}));var r=n("3820"),i=n("78db"),o=n("fced"),a=n("0414"),s=n("256f"),l=n("0af5"),c=n("345d");function u(e){var t=e.getDefaultTileGrid();return t||(t=m(e),e.setDefaultTileGrid(t)),t}function d(e,t,n){var r=t[0],i=e.getTileCoordCenter(t),o=g(n);if(Object(l["f"])(o,i))return t;var a=Object(l["E"])(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,e.getTileCoordForCoordAndZ(i,r)}function f(e,t,n,o){var a=void 0!==o?o:r["a"].TOP_LEFT,s=p(e,t,n);return new i["a"]({extent:e,origin:Object(l["y"])(e,a),resolutions:s,tileSize:n})}function h(e){var t=e||{},n=t.extent||Object(s["f"])("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:p(n,t.maxZoom,t.tileSize,t.maxResolution)};return new i["a"](r)}function p(e,t,n,r){for(var i=void 0!==t?t:a["a"],o=Object(l["A"])(e),s=Object(l["E"])(e),u=Object(c["c"])(void 0!==n?n:a["b"]),d=r>0?r:Math.max(s/u[0],o/u[1]),f=i+1,h=new Array(f),p=0;p<f;++p)h[p]=d/Math.pow(2,p);return h}function m(e,t,n,r){var i=g(e);return f(i,t,n,r)}function g(e){e=Object(s["f"])(e);var t=e.getExtent();if(!t){var n=180*s["a"][o["b"].DEGREES]/e.getMetersPerUnit();t=Object(l["k"])(-n,-n,n,n)}return t}},"08e1":function(e,t,n){var r=n("4b0b"),i=n("6daf"),o=n("d75c"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},"08f0":function(e,t,n){},"08f3":function(e,t,n){"use strict";n("cf96")},"0923":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rank"},[n("h4",{staticClass:"title"},[e._v(e._s(e.title))]),n("ul",{staticClass:"list",style:{height:e.height?e.height+"px":"auto",overflow:"auto"}},e._l(e.list,(function(t,r){return n("li",{key:r},[n("span",{class:r<3?"active":null},[e._v(e._s(r+1))]),n("span",[e._v(e._s(t.name))]),n("span",[e._v(e._s(t.total))])])})),0)])},i=[],o=(n("c5f6"),{name:"RankList",props:{title:{type:String,default:""},list:{type:Array,default:null},height:{type:Number,default:null}}}),a=o,s=(n("49a9"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"0869b61a",null);t["default"]=l.exports},"0941":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapperaa"},[n("div",{staticClass:"topaa"},[n("div",{staticClass:"itemaa"},[n("div",{staticClass:"title"},[e._v("分类统计")]),n("div",{staticClass:"boxaa"},[n("div",{ref:"item1"})])]),n("div",{staticClass:"itemaa"},[n("div",{staticClass:"title"},[e._v("管理单位统计")]),n("div",{staticClass:"boxaa"},[n("div",{ref:"item2"})])]),n("div",{staticClass:"itemaa"},[n("div",{staticClass:"title"},[e._v("态势分析")]),n("div",{staticClass:"boxaa"},[n("div",{ref:"item3"})])])]),n("div",{staticClass:"bottomaa"},[n("div",{staticClass:"bottom-boxaa"},[n("a-table",{attrs:{scroll:{y:340},bordered:"",columns:e.columns,"data-source":e.data}})],1)])])},i=[],o=(n("7f7f"),{name:"tongji",data:function(){return{columns:[{title:"名称",dataIndex:"name",key:"name",scopedSlots:{customRender:"name"},width:"20%"},{title:"分类",dataIndex:"name2",key:"name2",scopedSlots:{customRender:"name2"},width:"20%"},{title:"类别",dataIndex:"name1",key:"name1",scopedSlots:{customRender:"name1"},width:"20%"},{title:"总数",dataIndex:"num",key:"num",scopedSlots:{customRender:"num"},width:"20%"},{title:"最新更新时间",dataIndex:"time",key:"time",scopedSlots:{customRender:"time"},width:"20%"}],data:[{name:"地质灾害隐患点",name2:"自然灾害",name1:"安全风险源",num:1245,time:"2020年8月31日 14:32:21"},{name:"水库",name2:"水利工程",name1:"安全风险源",num:344,time:"2020年8月31日 14:32:21"},{name:"桥梁",name2:"道路运输",name1:"安全风险源",num:5393,time:"2020年8月31日 14:32:21"},{name:"生产企业",name2:"化工及危险品企业",name1:"安全风险源",num:5423,time:"2020年8月31日 14:32:21"},{name:"露天矿山",name2:"非煤矿山",name1:"安全风险源",num:21,time:"2020年8月31日 14:32:21"},{name:"尾矿库",name2:"非煤矿山",name1:"安全风险源",num:1,time:"2020年8月31日 14:32:21"},{name:"专库存储经营",name2:"烟花爆竹经营单位",name1:"安全风险源",num:89,time:"2020年8月31日 14:32:21"},{name:"气象灾害防御重点单位",name2:"气象灾害",name1:"安全风险源",num:366,time:"2020年8月31日 14:32:21"},{name:"森林公园",name2:"林业资源",name1:"土地利用",num:104,time:"2020年8月31日 14:32:21"}]}},mounted:function(){var e=this;setTimeout((function(){e.initData()}),200)},methods:{initData:function(){var e=this;this.$nextTick((function(){e.echart1(),e.echart2(),e.echart3()}))},echart1:function(){var e=[{name:"自然灾害",value:1511},{name:"水利工程",value:5963},{name:"地下空间",value:1138},{name:"矿山",value:3700},{name:"人员密集场所",value:11464}],t=this.$echarts.init(this.$refs.item1);t.setOption({color:["#ffb268","#3eb1e9","#4590ff","#9faaff","#9b74ff","#fe8f60","#f3ec7f","#32d37e","#51ebd0"],series:[{center:["50%","55%"],hoverAnimation:!1,type:"pie",label:{normal:{show:!0,formatter:function(e){return e.name+"\n"+e.percent+"%"},textStyle:{fontSize:14},position:"outside"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:15,length2:15},emphasis:{show:!0}},data:e}],tooltip:{trigger:"itemaa",formatter:"{b} : {c}个 ({d}%)"}})},echart2:function(){var e=this.$echarts.init(this.$refs.item2),t=["水利局","气象局","供电局","公安局","交通运输","教育局","民政局"],n=[152,213,152,175,195,112,20];e.setOption({color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:t,axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",name:"个"}],series:[{name:"",type:"bar",barWidth:"60%",data:n}]})},echart3:function(){var e=this.$echarts.init(this.$refs.item3),t=["2016年","2017年","2018年","2019年","2020年"];e.setOption({tooltip:{trigger:"axis"},legend:{data:["风险源总数","隐患排产总数"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:t},yAxis:{type:"value"},series:[{name:"风险源总数",type:"line",stack:"总量",data:[85423,75421,52121,46254,42561]},{name:"隐患排产总数",type:"line",stack:"总量",data:[32541,31542,30842,29542,21547]}]})}}}),a=o,s=(n("0137"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"70ab5f5a",null);t["default"]=l.exports},"0977":function(e,t,n){},"0999":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n("617d");function i(e,t,n){var i=n&&n.length?n.shift():r["g"]?new OffscreenCanvas(e||300,t||300):document.createElement("canvas");return e&&(i.width=e),t&&(i.height=t),i.getContext("2d")}function o(e,t){var n=t.parentNode;n&&n.replaceChild(e,t)}function a(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function s(e){while(e.lastChild)e.removeChild(e.lastChild)}function l(e,t){for(var n=e.childNodes,r=0;1;++r){var i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}},"09a7":function(e,t,n){},"09cc":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"图层名称"}},[n("a-input",{attrs:{placeholder:"请输入图层名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("图层管理")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"imgSlot",fn:function(t){return[t?n("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:e.getImgView(t),height:"25px",alt:"图片不存在"}}):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此图片")])]}},{key:"fileSlot",fn:function(t){return[t?n("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(n){return e.uploadFile(t)}}},[e._v("\n          下载\n        ")]):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此文件")])]}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("coverage-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("b65a"),a=n("4f86"),s=(n("89f2"),{name:"CoverageList",mixins:[o["a"]],components:{CoverageModal:a["default"]},data:function(){return{description:"图层管理管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"图层名称",align:"center",dataIndex:"name"},{title:"图层类型",align:"center",dataIndex:"type_dictText"},{title:"图层地址",align:"center",dataIndex:"url"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/coverage/coverage/list",delete:"/coverage/coverage/delete",deleteBatch:"/coverage/coverage/deleteBatch",exportXlsUrl:"/coverage/coverage/exportXls",importExcelUrl:"coverage/coverage/importExcel"},dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{initDictConfig:function(){}}}),l=s,c=(n("0e9a"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"55edc766",null);t["default"]=u.exports},"09cf":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("textcolor",(function(){console.warn("Text color plugin is now built in to the core editor, please remove it from your editor configuration")}))}t()})()},"0a6a":function(e,t,n){"use strict";n("5424")},"0a9d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n("25f1"),i=n("9f5e");function o(e,t,n,o,a,s,l){for(var c,u,d,f,h,p,m,g=a[s+1],v=[],y=0,b=n.length;y<b;++y){var _=n[y];for(f=e[_-o],p=e[_-o+1],c=t;c<_;c+=o)h=e[c],m=e[c+1],(g<=p&&m<=g||p<=g&&g<=m)&&(d=(g-p)/(m-p)*(h-f)+f,v.push(d)),f=h,p=m}var w=NaN,x=-1/0;for(v.sort(i["g"]),f=v[0],c=1,u=v.length;c<u;++c){h=v[c];var S=Math.abs(h-f);S>x&&(d=(f+h)/2,Object(r["c"])(e,t,n,o,d,g)&&(w=d,x=S)),f=h}return isNaN(w)&&(w=a[s]),l?(l.push(w,g,x),l):[w,g,x]}function a(e,t,n,r,i){for(var a=[],s=0,l=n.length;s<l;++s){var c=n[s];a=o(e,t,c,r,i,2*s,a),t=c[c.length-1]}return a}},"0acb":function(e,t,n){"use strict";n("1219")},"0af5":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return b})),n.d(t,"o",(function(){return _})),n.d(t,"p",(function(){return w})),n.d(t,"q",(function(){return x})),n.d(t,"r",(function(){return S})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return O})),n.d(t,"u",(function(){return T})),n.d(t,"v",(function(){return I})),n.d(t,"w",(function(){return A})),n.d(t,"x",(function(){return R})),n.d(t,"y",(function(){return P})),n.d(t,"z",(function(){return M})),n.d(t,"A",(function(){return N})),n.d(t,"B",(function(){return L})),n.d(t,"C",(function(){return D})),n.d(t,"D",(function(){return j})),n.d(t,"E",(function(){return F})),n.d(t,"F",(function(){return B})),n.d(t,"H",(function(){return q})),n.d(t,"I",(function(){return z})),n.d(t,"J",(function(){return U})),n.d(t,"G",(function(){return G})),n.d(t,"a",(function(){return V})),n.d(t,"K",(function(){return W}));var r=n("3820"),i=n("045d"),o=n("92fa5");function a(e){for(var t=m(),n=0,r=e.length;n<r;++n)S(t,e[n]);return t}function s(e,t,n){var r=Math.min.apply(null,e),i=Math.min.apply(null,t),o=Math.max.apply(null,e),a=Math.max.apply(null,t);return g(r,i,o,a,n)}function l(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function c(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function u(e,t,n){var r,i;return r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0,i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0,r*r+i*i}function d(e,t){return h(e,t[0],t[1])}function f(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function h(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function p(e,t){var n=e[0],r=e[1],o=e[2],a=e[3],s=t[0],l=t[1],c=i["a"].UNKNOWN;return s<n?c|=i["a"].LEFT:s>o&&(c|=i["a"].RIGHT),l<r?c|=i["a"].BELOW:l>a&&(c|=i["a"].ABOVE),c===i["a"].UNKNOWN&&(c=i["a"].INTERSECTING),c}function m(){return[1/0,1/0,-1/0,-1/0]}function g(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function v(e){return g(1/0,1/0,-1/0,-1/0,e)}function y(e,t){var n=e[0],r=e[1];return g(n,r,n,r,t)}function b(e,t){var n=v(t);return C(n,e)}function _(e,t,n,r,i){var o=v(i);return E(o,e,t,n,r)}function w(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function x(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function S(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function C(e,t){for(var n=0,r=t.length;n<r;++n)S(e,t[n]);return e}function E(e,t,n,r,i){for(;n<r;n+=i)k(e,t[n],t[n+1]);return e}function k(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function O(e,t){var n;return n=t(I(e)),n||(n=t(A(e)),n||(n=t(j(e)),n||(n=t(D(e)),n||!1)))}function T(e){var t=0;return q(e)||(t=F(e)*N(e)),t}function I(e){return[e[0],e[1]]}function A(e){return[e[2],e[1]]}function R(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function P(e,t){var n;return t===r["a"].BOTTOM_LEFT?n=I(e):t===r["a"].BOTTOM_RIGHT?n=A(e):t===r["a"].TOP_LEFT?n=D(e):t===r["a"].TOP_RIGHT?n=j(e):Object(o["a"])(!1,13),n}function M(e,t,n,r,i){var o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),l=Math.sin(n),c=o*s,u=o*l,d=a*s,f=a*l,h=e[0],p=e[1],m=h-c+f,v=h-c-f,y=h+c-f,b=h+c+f,_=p-u-d,w=p-u+d,x=p+u+d,S=p+u-d;return g(Math.min(m,v,y,b),Math.min(_,w,x,S),Math.max(m,v,y,b),Math.max(_,w,x,S),i)}function N(e){return e[3]-e[1]}function L(e,t,n){var r=n||m();return B(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):v(r),r}function D(e){return[e[0],e[3]]}function j(e){return[e[2],e[3]]}function F(e){return e[2]-e[0]}function B(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function q(e){return e[2]<e[0]||e[3]<e[1]}function z(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function U(e,t){var n=(e[2]-e[0])/2*(t-1),r=(e[3]-e[1])/2*(t-1);e[0]-=n,e[2]+=n,e[1]-=r,e[3]+=r}function G(e,t,n){var r=!1,o=p(e,t),a=p(e,n);if(o===i["a"].INTERSECTING||a===i["a"].INTERSECTING)r=!0;else{var s=e[0],l=e[1],c=e[2],u=e[3],d=t[0],f=t[1],h=n[0],m=n[1],g=(m-f)/(h-d),v=void 0,y=void 0;a&i["a"].ABOVE&&!(o&i["a"].ABOVE)&&(v=h-(m-u)/g,r=v>=s&&v<=c),r||!(a&i["a"].RIGHT)||o&i["a"].RIGHT||(y=m-(h-c)*g,r=y>=l&&y<=u),r||!(a&i["a"].BELOW)||o&i["a"].BELOW||(v=h-(m-l)/g,r=v>=s&&v<=c),r||!(a&i["a"].LEFT)||o&i["a"].LEFT||(y=m-(h-s)*g,r=y>=l&&y<=u)}return r}function V(e,t,n,r){var i=[];if(r>1)for(var o=e[2]-e[0],a=e[3]-e[1],l=0;l<r;++l)i.push(e[0]+o*l/r,e[1],e[2],e[1]+a*l/r,e[2]-o*l/r,e[3],e[0],e[3]-a*l/r);else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);for(var c=[],u=[],d=(l=0,i.length);l<d;l+=2)c.push(i[l]),u.push(i[l+1]);return s(c,u,n)}function W(e,t){var n=t.getExtent(),r=R(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=F(n),o=Math.floor((r[0]-n[0])/i),a=o*i;e[0]-=a,e[2]-=a}return e}},"0b16":function(e,t,n){"use strict";var r=n("e06a"),i=n("35e86");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=w,t.resolve=S,t.resolveObject=C,t.format=x,t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["<",">",'"',"`"," ","\r","\n","\t"],u=["{","}","|","\\","^","`"].concat(c),d=["'"].concat(u),f=["%","/","?",";","#"].concat(d),h=["/","?","#"],p=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n("b383");function w(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}function x(e){return i.isString(e)&&(e=w(e)),e instanceof o?e.format():o.prototype.format.call(e)}function S(e,t){return w(e,!1,!0).resolve(t)}function C(e,t){return e?w(e,!1,!0).resolveObject(t):t}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s),u=/\\/g;c[0]=c[0].replace(u,"/"),e=c.join(s);var w=e;if(w=w.trim(),!n&&1===e.split("#").length){var x=l.exec(w);if(x)return this.path=w,this.href=w,this.pathname=x[1],x[2]?(this.search=x[2],this.query=t?_.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var S=a.exec(w);if(S){S=S[0];var C=S.toLowerCase();this.protocol=C,w=w.substr(S.length)}if(n||S||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===w.substr(0,2);!E||S&&y[S]||(w=w.substr(2),this.slashes=!0)}if(!y[S]&&(E||S&&!b[S])){for(var k,O,T=-1,I=0;I<h.length;I++){var A=w.indexOf(h[I]);-1!==A&&(-1===T||A<T)&&(T=A)}O=-1===T?w.lastIndexOf("@"):w.lastIndexOf("@",T),-1!==O&&(k=w.slice(0,O),w=w.slice(O+1),this.auth=decodeURIComponent(k)),T=-1;for(I=0;I<f.length;I++){A=w.indexOf(f[I]);-1!==A&&(-1===T||A<T)&&(T=A)}-1===T&&(T=w.length),this.host=w.slice(0,T),w=w.slice(T),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var P=this.hostname.split(/\./),M=(I=0,P.length);I<M;I++){var N=P[I];if(N&&!N.match(m)){for(var L="",D=0,j=N.length;D<j;D++)N.charCodeAt(D)>127?L+="x":L+=N[D];if(!L.match(m)){var F=P.slice(0,I),B=P.slice(I+1),q=N.match(g);q&&(F.push(q[1]),B.unshift(q[2])),B.length&&(w="/"+B.join(".")+w),this.hostname=F.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+z,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!v[C])for(I=0,M=d.length;I<M;I++){var G=d[I];if(-1!==w.indexOf(G)){var V=encodeURIComponent(G);V===G&&(V=escape(G)),w=w.split(G).join(V)}}var W=w.indexOf("#");-1!==W&&(this.hash=w.substr(W),w=w.slice(0,W));var H=w.indexOf("?");if(-1!==H?(this.search=w.substr(H),this.query=w.substr(H+1),t&&(this.query=_.parse(this.query)),w=w.slice(0,H)):t&&(this.search="",this.query={}),w&&(this.pathname=w),b[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var $=this.search||"";this.path=z+$}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=_.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),s=s.replace("#","%23"),t+o+n+s+r},o.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var h=d[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||y[e.protocol])n.pathname=e.pathname;else{var p=(e.pathname||"").split("/");while(p.length&&!(e.host=p.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",g=n.search||"";n.path=m+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||v||n.host&&e.pathname,x=w,S=n.pathname&&n.pathname.split("/")||[],C=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===S[0]?S[0]=n.host:S.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===S[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,S=p;else if(p.length)S||(S=[]),S.pop(),S=S.concat(p),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(C){n.hostname=n.host=S.shift();var E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=S.slice(-1)[0],O=(n.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,T=0,I=S.length;I>=0;I--)k=S[I],"."===k?S.splice(I,1):".."===k?(S.splice(I,1),T++):T&&(S.splice(I,1),T--);if(!w&&!x)for(;T--;T)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),O&&"/"!==S.join("/").substr(-1)&&S.push("");var A=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(C){n.hostname=n.host=A?"":S.length?S.shift():"";E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return w=w||n.host&&S.length,w&&!A&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},"0b20":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"修订号"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["revision",{}],expression:"[ 'revision', {}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"流程名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入流程名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"流程key"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["key",{}],expression:"['key', {}]"}],attrs:{placeholder:"请输入流程key"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"版本号"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["version",{}],expression:"[ 'version', {}]"}]})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"ActivitiModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/activiti/add",edit:"/activiti/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"revision","name","key","version"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"bb5b9aaa",null);t["default"]=d.exports},"0b2d":function(e,t,n){"use strict";var r=n("01d4");t["a"]={SINGLECLICK:"singleclick",CLICK:r["a"].CLICK,DBLCLICK:r["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0b36":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:e.title,width:e.width,placement:"right",closable:!1,visible:e.visible},on:{close:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"点",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["point",e.validatorRules.point],expression:"[ 'point', validatorRules.point]"}],attrs:{placeholder:"请输入点"}})],1),n("a-form-item",{attrs:{label:"线",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["line",e.validatorRules.line],expression:"[ 'line', validatorRules.line]"}],attrs:{placeholder:"请输入线"}})],1),n("a-form-item",{attrs:{label:"面",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["area",e.validatorRules.area],expression:"[ 'area', validatorRules.area]"}],attrs:{placeholder:"请输入面"}})],1)],1)],1),n("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("确定")]),n("a-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v("取消")])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l={name:"MapPointQuartLineModal",components:{},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:15}},confirmLoading:!1,validatorRules:{point:{},line:{},area:{}},url:{add:"/map_point_quart_line/mapPointQuartLine/add",edit:"/map_point_quart_line/mapPointQuartLine/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"point","line","area"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("表单提交数据",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"point","line","area"))}}},c=l,u=(n("d32f"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"6c9da08d",null);t["default"]=d.exports},"0b38":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:"操作",width:800,visible:e.visible,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"唯一识别码",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["id",{rules:[]}],expression:"[ 'id', {rules: []} ]"}],attrs:{placeholder:"唯一识别码",disabled:"disabled"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"角色名称",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"不起一个名字吗?"}]}],expression:"[ 'name', {rules: [{ required: true, message: '不起一个名字吗?' }] }]"}],attrs:{placeholder:"起一个名字"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"状态",hasFeedback:""}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{rules:[]}],expression:"[ 'status', {rules: []} ]"}]},[n("a-select-option",{attrs:{value:1}},[e._v("正常")]),n("a-select-option",{attrs:{value:2}},[e._v("禁用")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"描述",hasFeedback:""}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["describe",{rules:[]}],expression:"[ 'describe', { rules: [] } ]"}],attrs:{rows:5,placeholder:"..."}})],1),n("a-divider"),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"拥有权限",hasFeedback:""}},e._l(e.permissions,(function(t,r){return n("a-row",{key:r,attrs:{gutter:16}},[n("a-col",{attrs:{span:4}},[e._v("\n            "+e._s(t.name)+":\n          ")]),n("a-col",{attrs:{span:20}},[t.actionsOptions.length>0?n("a-checkbox",{attrs:{indeterminate:t.indeterminate,checked:t.checkedAll},on:{change:function(n){return e.onChangeCheckAll(n,t)}}},[e._v("\n              全选\n            ")]):e._e(),n("a-checkbox-group",{attrs:{options:t.actionsOptions},on:{change:function(n){return e.onChangeCheck(t)}},model:{value:t.selected,callback:function(n){e.$set(t,"selected",n)},expression:"permission.selected"}})],1)],1)})),1)],1)],1)],1)},i=[],o=(n("ac6a"),n("0fea"));function a(e){try{return JSON.parse(e)}catch(t){console.log("err",t.message)}return[]}var s=n("88bc"),l=n.n(s),c={name:"RoleModal",data:function(){return{labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},visible:!1,confirmLoading:!1,mdl:{},form:this.$form.createForm(this),permissions:[]}},created:function(){this.loadPermissions()},methods:{add:function(){this.edit({id:0})},edit:function(e){var t=this;if(this.mdl=Object.assign({},e),this.visible=!0,this.mdl.permissions&&this.permissions){var n={};this.mdl.permissions.forEach((function(e){n[e.permissionId]=e.actionEntitySet.map((function(e){return e.action}))})),this.permissions.forEach((function(e){e.selected=n[e.id]}))}this.$nextTick((function(){t.form.setFieldsValue(l()(t.mdl,"id","name","status","describe"))})),console.log("this.mdl",this.mdl)},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this;this.form.validateFields((function(t,n){t||(console.log("form values",n),e.confirmLoading=!0,new Promise((function(e){setTimeout((function(){return e()}),2e3)})).then((function(){e.$message.success("保存成功"),e.$emit("ok")})).catch((function(){})).finally((function(){e.confirmLoading=!1,e.close()})))}))},handleCancel:function(){this.close()},onChangeCheck:function(e){e.indeterminate=!!e.selected.length&&e.selected.length<e.actionsOptions.length,e.checkedAll=e.selected.length===e.actionsOptions.length},onChangeCheckAll:function(e,t){Object.assign(t,{selected:e.target.checked?t.actionsOptions.map((function(e){return e.value})):[],indeterminate:!1,checkedAll:e.target.checked})},loadPermissions:function(){var e=this;Object(o["f"])().then((function(t){var n=t.result;e.permissions=n.map((function(e){var t=a(e.actionData);return e.checkedAll=!1,e.selected=[],e.indeterminate=!1,e.actionsOptions=t.map((function(e){return{label:e.describe,value:e.action}})),e}))}))}}},u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,"98a9c9d0",null);t["default"]=f.exports},"0b56":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("\n  Monitor\n")])},i=[],o={name:"Monitor"},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"262f850e",null);t["default"]=l.exports},"0b7b":function(e,t,n){"use strict";n("869f9")},"0bb4":function(e,t,n){"use strict";var r=n("16546").f,i=n("5c5b"),o=n("2ce7"),a=n("99ca"),s=n("ba8b"),l=n("9ef1"),c=n("8e0b"),u=n("f418"),d=n("fbee"),f=n("16f5").fastKey,h=n("510e"),p=h.set,m=h.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){s(e,u,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})})),h=m(t),g=function(e,t,n){var r,i,o=h(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=h(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=v(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return h(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},"0bd6":function(e,t,n){},"0bd7":function(e,t,n){"use strict";n("958e")},"0c20":function(e,t,n){var r=n("2ace"),i=n("10d8"),o=n("7eeb"),a=n("f0e0");for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(u){c.forEach=o}}},"0c3f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-list",{attrs:{itemLayout:"horizontal",dataSource:e.data}})},i=[],o={data:function(){return{data:[]}},methods:{}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"2019a4fb",null);t["default"]=l.exports},"0c7c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"菜单权限配置"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.slotTitle;return n("span",{},[e._v("\n          "+e._s(r)+"\n        ")])}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("4ec3"),s={name:"MenuModal",components:{},data:function(){return{userId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"菜单权限配置",visible:!1,loading:!1}},methods:{onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.userId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={userId:e.userId,permissionIds:e.checkedKeys.join(","),lastpermissionIds:e.defaultCheckedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["nb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["S"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["ab"])({userId:e.userId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},l=s,c=(n("d1bb"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"be180e14",null);t["default"]=u.exports},"0cf8":function(e,t,n){},"0d4b":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},on:{submit:function(t){return t.preventDefault(),e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:12}},[n("a-form-item",{attrs:{label:"账号"}},[n("a-input",{attrs:{placeholder:"请输入账号查询"},model:{value:e.myQueryParam.username,callback:function(t){e.$set(e.myQueryParam,"username",t)},expression:"myQueryParam.username"}}),n("a-input",{attrs:{placeholder:"请输入账号查询",hidden:""},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}})],1)],1),n("a-col",{attrs:{md:6,sm:12}},[n("a-form-item",{attrs:{label:"真实姓名"}},[n("a-input",{attrs:{placeholder:"请输入真实姓名查询"},model:{value:e.myQueryParam.realname,callback:function(t){e.$set(e.myQueryParam,"realname",t)},expression:"myQueryParam.realname"}}),n("a-input",{attrs:{placeholder:"请输入真实姓名查询",hidden:""},model:{value:e.queryParam.realname,callback:function(t){e.$set(e.queryParam,"realname",t)},expression:"queryParam.realname"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"部门"}},[n("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":e.dep_array,placeholder:"请选部门查询"},model:{value:e.queryParam.orgCode,callback:function(t){e.$set(e.queryParam,"orgCode",t)},expression:"queryParam.orgCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"角色"}},[n("a-select",{attrs:{placeholder:"请选择角色查询"},model:{value:e.queryParam.role,callback:function(t){e.$set(e.queryParam,"role",t)},expression:"queryParam.role"}},[n("a-select-option",{attrs:{value:""}},[e._v("请选角色查询")]),e._l(e.role_array,(function(t,r){return n("a-select-option",{attrs:{value:t.id}},[e._v(e._s(t.role_name))])}))],2)],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"邮箱"}},[n("a-input",{attrs:{placeholder:"请输入邮箱查询"},model:{value:e.queryParam.email,callback:function(t){e.$set(e.queryParam,"email",t)},expression:"queryParam.email"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"手机号码"}},[n("a-input",{attrs:{placeholder:"请输入手机号码查询"},model:{value:e.queryParam.phone,callback:function(t){e.$set(e.queryParam,"phone",t)},expression:"queryParam.phone"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"状态"}},[n("a-select",{attrs:{placeholder:"请选择用户状态查询"},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},[n("a-select-option",{attrs:{value:""}},[e._v("请选择用户状态")]),n("a-select-option",{attrs:{value:"1"}},[e._v("正常")]),n("a-select-option",{attrs:{value:"2"}},[e._v("解冻")])],1)],1)],1)]:e._e(),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],2)],1)],1),n("div",{staticClass:"table-operator",staticStyle:{"border-top":"5px"}},[n("a-button",{directives:[{name:"has",rawName:"v-has",value:"user:add",expression:"'user:add'"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("添加用户")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("用户信息")}}},[e._v("导出")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXlsTemplate("用户信息")}}},[e._v("导出模板")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},on:{click:e.handleMenuClick},slot:"overlay"},[n("a-menu-item",{key:"1"},[n("a-icon",{attrs:{type:"delete"},on:{click:e.batchDel}}),e._v("\n          删除\n        ")],1),n("a-menu-item",{key:"2"},[n("a-icon",{attrs:{type:"lock"},on:{click:function(t){return e.batchFrozen("2")}}}),e._v("\n          冻结\n        ")],1),n("a-menu-item",{key:"3"},[n("a-icon",{attrs:{type:"unlock"},on:{click:function(t){return e.batchFrozen("1")}}}),e._v("\n          解冻\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("\n        批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项  \n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"avatarslot",fn:function(t,r,i){return[n("div",{staticClass:"anty-img-wrap"},[n("a-avatar",{attrs:{shape:"square",src:e.getAvatarView(r.avatar),icon:"user"}})],1)]}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:edit",expression:"'user:edit'"}],on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{directives:[{name:"has",rawName:"v-has",value:"user:edit",expression:"'user:edit'"}],attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{on:{click:function(t){return e.handlePerssion(r.id)}}},[e._v("菜单授权")])]),n("a-menu-item",[n("a",{on:{click:function(t){return e.handleHidePerssion(r.id)}}},[e._v("菜单隐藏配置")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleChangePassword(r.username)}}},[e._v("密码")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1),1==r.status?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定冻结吗?"},on:{confirm:function(){return e.handleFrozen(r.id,2,r.username)}}},[n("a",[e._v("冻结")])])],1):e._e(),2==r.status?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定解冻吗?"},on:{confirm:function(){return e.handleFrozen(r.id,1,r.username)}}},[n("a",[e._v("解冻")])])],1):e._e(),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleAgentSettings(r.username)}}},[e._v("代理人")])])],1)],1)],1)}}])})],1),n("user-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("password-modal",{ref:"passwordmodal",on:{ok:e.passwordModalOk}}),n("sys-user-agent-modal",{ref:"sysUserAgentModal"}),n("menu-modal",{ref:"menuModal"}),n("menu-hide-modal",{ref:"menuHideModal"})],1)},i=[],o=(n("ac6a"),n("418f")),a=n("ddf9"),s=(n("0fea"),n("4ec3")),l=n("b65a"),c=n("74c6"),u=n("0c7c"),d=n("a9c6"),f={name:"UserList",mixins:[l["a"]],components:{SysUserAgentModal:c["default"],UserModal:o["default"],PasswordModal:a["default"],MenuModal:u["default"],MenuHideModal:d["default"]},mounted:function(){},created:function(){this.loadchooseData()},data:function(){return{description:"这是用户管理页面",queryParam:{},myQueryParam:{username:"",realname:""},columns:[{title:"用户账号",align:"center",dataIndex:"username",width:120},{title:"真实姓名",align:"center",width:100,dataIndex:"realname"},{title:"头像",align:"center",width:120,dataIndex:"avatar",scopedSlots:{customRender:"avatarslot"}},{title:"隶属地域",align:"center",width:120,dataIndex:"districtName"},{title:"所属部门",align:"center",width:180,dataIndex:"orgCode"},{title:"手机号码",align:"center",width:100,dataIndex:"phone"},{title:"角色",align:"center",dataIndex:"roleName",width:180},{title:"状态",align:"center",width:80,dataIndex:"status_dictText"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:170}],url:{imgerver:window._CONFIG["domianURL"]+"/sys/common/view",syncUser:"/process/extActProcess/doSyncUser",list:"/sys/user/list",delete:"/sys/user/delete",deleteBatch:"/sys/user/deleteBatch",exportXlsUrl:"/sys/user/exportXls",importExcelUrl:"sys/user/importExcel",exportXlsTemplateUrl:"/sys/user/exportXlsTemplate"},dep_array:[],role_array:[]}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},watch:{"myQueryParam.username":{handler:function(e,t){""!=this.myQueryParam.username?this.queryParam.username="*"+this.myQueryParam.username+"*":this.queryParam.username=""},deep:!0},"myQueryParam.realname":{handler:function(e,t){""!=this.myQueryParam.realname?this.queryParam.realname="*"+this.myQueryParam.realname+"*":this.queryParam.realname=""},deep:!0}},methods:{loadchooseData:function(){var e=this;this.dis_array=[],Object(s["L"])().then((function(t){if(t.success)for(var n=0;n<t.result.length;n++){var r=t.result[n];e.dep_array.push(r)}console.log(e.dep_array)})),Object(s["qb"])().then((function(t){t.success&&(e.role_array=t.result)}))},searchReset:function(){this.queryParam={},this.myQueryParam.username="",this.myQueryParam.realname="",this.loadData(1)},handleHidePerssion:function(e){this.$refs.menuHideModal.show(e)},handlePerssion:function(e){this.$refs.menuModal.show(e)},getAvatarView:function(e){return this.url.imgerver+"/"+e},batchFrozen:function(e){if(this.selectedRowKeys.length<=0)return this.$message.warning("请选择一条记录!"),!1;var t="",n=this;n.selectedRowKeys.forEach((function(e){t+=e+","})),n.$confirm({title:"确认操作",content:"是否"+(1==e?"解冻":"冻结")+"选中账号?",onOk:function(){Object(s["r"])({ids:t,status:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})},handleMenuClick:function(e){1==e.key?this.batchDel():2==e.key?this.batchFrozen(2):3==e.key&&this.batchFrozen(1)},handleFrozen:function(e,t,n){var r=this;"admin"!=n?Object(s["r"])({ids:e,status:t}).then((function(e){e.success?(r.$message.success(e.message),r.loadData()):r.$message.warning(e.message)})):r.$message.warning("管理员账号不允许此操作!")},handleChangePassword:function(e){this.$refs.passwordmodal.show(e)},handleAgentSettings:function(e){this.$refs.sysUserAgentModal.agentSettings(e),this.$refs.sysUserAgentModal.title="用户代理人设置"},passwordModalOk:function(){}}},h=f,p=(n("6b83"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"b542c514",null);t["default"]=m.exports},"0d73":function(e,t,n){"use strict";(function(e){n("e2de"),n("3e9a"),n("28a7"),n("c7cc"),n("28b3"),n("2dbc");var r=n("b642"),i=n.n(r),o=(n("8b57"),n("47ef"),n("f2da"),n("aa84"),n("8d37"),n("dcf8"),n("0c20"),n("a1c8")),a=n.n(o),s=n("340dc"),l=n.n(s),c=n("9af6"),u=n.n(c),d=n("0e40"),f=n.n(d),h=n("a99f"),p=n.n(h),m=(n("46cc"),n("56dd"),n("99dc"),n("df05"),n("beb2"),n("3429"),n("c449")),g=n.n(m),v=(n("6f24"),n("58e1")),y=n.n(v),b=(n("acfa"),n("c83f"),n("427a2")),_=n.n(b),w=n("96cd"),x=n.n(w),S=n("2847"),C=n.n(S),E=(n("96f8"),n("dbdc"),n("9f90"),n("30d2"),n("5496"),n("c0e0"),n("ef95")),k=n.n(E),O=(n("83d8"),n("8964"),n("b43b")),T=n.n(O),I=(n("b228"),n("ebcc"),n("0e1f"),n("f047")),A=n.n(I),R=(n("2e5b"),n("a89b"),n("2b01"),n("53c8"),n("06c8"),n("9ca7"),n("345e"),n("679b"),n("5e9e"));function P(e){return e.replace(/(?!\u3000)\s+/gm," ")}function M(e){return e.replace(/^[\n \t]+/,"")}function N(e){return e.replace(/[\n \t]+$/,"")}function L(e){var t=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var D=/^[A-Z-]+$/;function j(e){return D.test(e)?e.toLowerCase():e}function F(e){var t=e.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return t[2]||t[3]||t[4]}function B(e){if(!e.startsWith("rgb"))return e;var t=3,n=e.replace(/\d+(\.\d+)?/g,(function(e,n){return t--&&n?String(Math.round(parseFloat(e))):e}));return n}var q=/(\[[^\]]+\])/g,z=/(#[^\s\+>~\.\[:]+)/g,U=/(\.[^\s\+>~\.\[:]+)/g,G=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,V=/(:[\w-]+\([^\)]*\))/gi,W=/(:[^\s\+>~\.\[:]+)/g,H=/([^\s\+>~\.\[:]+)/g;function $(e,t){var n=e.match(t);return n?[e.replace(t," "),n.length]:[e,0]}function K(e){var t=[0,0,0],n=e.replace(/:not\(([^\)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0,o=$(n,q),a=i()(o,2);n=a[0],r=a[1],t[1]+=r;var s=$(n,z),l=i()(s,2);n=l[0],r=l[1],t[0]+=r;var c=$(n,U),u=i()(c,2);n=u[0],r=u[1],t[1]+=r;var d=$(n,G),f=i()(d,2);n=f[0],r=f[1],t[2]+=r;var h=$(n,V),p=i()(h,2);n=p[0],r=p[1],t[1]+=r;var m=$(n,W),g=i()(m,2);n=g[0],r=g[1],t[1]+=r,n=n.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," ");var v=$(n,H),y=i()(v,2);return n=y[0],r=y[1],t[2]+=r,t.join("")}var X=1e-8;function Y(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function J(e,t){return(e[0]*t[0]+e[1]*t[1])/(Y(e)*Y(t))}function Q(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(J(e,t))}function Z(e){return e*e*e}function ee(e){return 3*e*e*(1-e)}function te(e){return 3*e*(1-e)*(1-e)}function ne(e){return(1-e)*(1-e)*(1-e)}function re(e){return e*e}function ie(e){return 2*e*(1-e)}function oe(e){return(1-e)*(1-e)}function ae(e,t){return t={exports:{}},e(t,t.exports),t.exports}ae((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=C(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var u="suspendedStart",d="suspendedYield",f="executing",h="completed",p={};function m(){}function g(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(I([])));_&&_!==n&&r.call(_,o)&&(y=_);var w=v.prototype=m.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function S(e,t){function n(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;function o(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function C(e,t,n){var r=u;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return g.prototype=w.constructor=v,v.constructor=g,v[s]=g.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(S.prototype),S.prototype[a]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),w[s]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}}));var se=function(){function e(t,n,r){f()(this,e),this.document=t,this.name=n,this.value=r,this.isNormalizedColor=!1}return p()(e,[{key:"hasValue",value:function(){var e=this.value;return null!==e&&""!==e&&0!==e&&"undefined"!==typeof e}},{key:"isString",value:function(e){var t=this.value,n="string"===typeof t;return n&&e?e.test(t):n}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case/px$/.test(e):case/^[0-9]+$/.test(e):return!0;default:return!1}}},{key:"setValue",value:function(e){return this.value=e,this}},{key:"getValue",value:function(e){return"undefined"===typeof e||this.hasValue()?this.value:e}},{key:"getNumber",value:function(e){if(!this.hasValue())return"undefined"===typeof e?0:parseFloat(e);var t=this.value,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}},{key:"getString",value:function(e){return"undefined"===typeof e||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(e)}},{key:"getColor",value:function(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=B(t),this.value=t),t}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var n="boolean"===typeof e?[void 0,e]:[e],r=i()(n,2),o=r[0],a=r[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&a:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(o);default:var l=this.getNumber();return t&&l<1?l*s.computeSize(o):l}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var e=this.getString(),t=e.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}},{key:"getFillStyleDefinition",value:function(e,t){var n=this.getDefinition();if(!n)return null;if("function"===typeof n.createGradient)return n.createGradient(this.document.ctx,e,t);if("function"===typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?e.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(t){for(var n=this.getColor(),r=n.length,i=0,o=0;o<r;o++)if(","===n[o]&&i++,3===i)break;if(t.hasValue()&&this.isString()&&3!==i){var a=new y.a(n);a.ok&&(a.alpha=t.getNumber(),n=a.toRGBA())}return new e(this.document,this.name,n)}}],[{key:"empty",value:function(t){return new e(t,"EMPTY","")}}]),e}();se.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var le=function(){function e(){f()(this,e),this.viewPorts=[]}return p()(e,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(e,t){this.viewPorts.push({width:e,height:t})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var e=this.viewPorts;return e[e.length-1]}},{key:"computeSize",value:function(e){return"number"===typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),e}(),ce=function(){function e(t,n){f()(this,e),this.x=t,this.y=n}return p()(e,[{key:"angleTo",value:function(e){return Math.atan2(e.y-this.y,e.x-this.x)}},{key:"applyTransform",value:function(e){var t=this.x,n=this.y,r=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=r,this.y=i}}],[{key:"parse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=L(t),o=i()(r,2),a=o[0],s=void 0===a?n:a,l=o[1],c=void 0===l?n:l;return new e(s,c)}},{key:"parseScale",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=L(t),o=i()(r,2),a=o[0],s=void 0===a?n:a,l=o[1],c=void 0===l?s:l;return new e(s,c)}},{key:"parsePath",value:function(t){for(var n=L(t),r=n.length,i=[],o=0;o<r;o+=2)i.push(new e(n[o],n[o+1]));return i}}]),e}(),ue=function(){function e(t){f()(this,e),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return p()(e,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var e=this.screen,t=this.onClick,n=this.onMouseMove,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}},{key:"stop",value:function(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var e=this.screen,t=this.events,n=this.eventElements,r=e.ctx.canvas.style;r&&(r.cursor=""),t.forEach((function(e,t){var r=e.run,i=n[t];while(i)r(i),i=i.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(e,t){if(this.working&&t){var n=this.events,r=this.eventElements;n.forEach((function(n,i){var o=n.x,a=n.y;!r[i]&&t.isPointInPath&&t.isPointInPath(o,a)&&(r[i]=e)}))}}},{key:"checkBoundingBox",value:function(e,t){if(this.working&&t){var n=this.events,r=this.eventElements;n.forEach((function(n,i){var o=n.x,a=n.y;!r[i]&&t.isPointInBox(o,a)&&(r[i]=e)}))}}},{key:"mapXY",value:function(e,t){var n=this.screen,r=n.window,i=n.ctx,o=new ce(e,t),a=i.canvas;while(a)o.x-=a.offsetLeft,o.y-=a.offsetTop,a=a.offsetParent;return r.scrollX&&(o.x+=r.scrollX),r.scrollY&&(o.y+=r.scrollY),o}},{key:"onClick",value:function(e){var t=this.mapXY((e||event).clientX,(e||event).clientY),n=t.x,r=t.y;this.events.push({type:"onclick",x:n,y:r,run:function(e){e.onClick&&e.onClick()}})}},{key:"onMouseMove",value:function(e){var t=this.mapXY((e||event).clientX,(e||event).clientY),n=t.x,r=t.y;this.events.push({type:"onmousemove",x:n,y:r,run:function(e){e.onMouseMove&&e.onMouseMove()}})}}]),e}(),de="undefined"!==typeof window?window:null,fe="undefined"!==typeof fetch?fetch.bind(void 0):null,he=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fetch,i=void 0===r?fe:r,o=n.window,a=void 0===o?de:o;f()(this,e),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new le,this.mouse=new ue(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=i}return p()(e,[{key:"wait",value:function(e){this.waits.push(e)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var e=this.waits.every((function(e){return e()}));return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}},{key:"setDefaults",value:function(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}},{key:"setViewBox",value:function(e){var t=e.document,n=e.ctx,r=e.aspectRatio,o=e.width,a=e.desiredWidth,s=e.height,l=e.desiredHeight,c=e.minX,u=void 0===c?0:c,d=e.minY,f=void 0===d?0:d,h=e.refX,p=e.refY,m=e.clip,g=void 0!==m&&m,v=e.clipX,y=void 0===v?0:v,b=e.clipY,_=void 0===b?0:b,w=P(r).replace(/^defer\s/,""),x=w.split(" "),S=i()(x,2),C=S[0],E=S[1],k=C||"xMidYMid",O=E||"meet",T=o/a,I=s/l,A=Math.min(T,I),R=Math.max(T,I),M=a,N=l;"meet"===O&&(M*=A,N*=A),"slice"===O&&(M*=R,N*=R);var L=new se(t,"refX",h),D=new se(t,"refY",p),j=L.hasValue()&&D.hasValue();if(j&&n.translate(-A*L.getPixels("x"),-A*D.getPixels("y")),g){var F=A*y,B=A*_;n.beginPath(),n.moveTo(F,B),n.lineTo(o,B),n.lineTo(o,s),n.lineTo(F,s),n.closePath(),n.clip()}if(!j){var q="meet"===O&&A===I,z="slice"===O&&R===I,U="meet"===O&&A===T,G="slice"===O&&R===T;/^xMid/.test(k)&&(q||z)&&n.translate(o/2-M/2,0),/YMid$/.test(k)&&(U||G)&&n.translate(0,s/2-N/2),/^xMax/.test(k)&&(q||z)&&n.translate(o-M,0),/YMax$/.test(k)&&(U||G)&&n.translate(0,s-N)}switch(!0){case"none"===k:n.scale(T,I);break;case"meet"===O:n.scale(A,A);break;case"slice"===O:n.scale(R,R);break}n.translate(-u,-f)}},{key:"start",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.enableRedraw,i=void 0!==r&&r,o=n.ignoreMouse,a=void 0!==o&&o,s=n.ignoreAnimation,l=void 0!==s&&s,c=n.ignoreDimensions,u=void 0!==c&&c,d=n.ignoreClear,f=void 0!==d&&d,h=n.forceRedraw,p=n.scaleWidth,m=n.scaleHeight,v=n.offsetX,y=n.offsetY,b=this.FRAMERATE,_=this.mouse,w=1e3/b;if(this.frameDuration=w,this.readyPromise=new Promise((function(e){t.resolveReady=e})),this.isReady()&&this.render(e,u,f,p,m,v,y),i){var x=Date.now(),S=x,C=0,E=function n(){x=Date.now(),C=x-S,C>=w&&(S=x-C%w,t.shouldUpdate(l,h)&&(t.render(e,u,f,p,m,v,y),_.runEvents())),t.intervalId=g()(n)};a||_.start(),this.intervalId=g()(E)}}},{key:"stop",value:function(){this.intervalId&&(g.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(e,t){if(!e){var n=this.frameDuration,r=this.animations.reduce((function(e,t){return t.update(n)||e}),!1);if(r)return!0}return!("function"!==typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(e,t,n,r,i,o,a){var s=this.CLIENT_WIDTH,l=this.CLIENT_HEIGHT,c=this.viewPort,u=this.ctx,d=this.isFirstRender,f=u.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(s,l);var h=e.getStyle("width"),p=e.getStyle("height");!t&&(d||"number"!==typeof r&&"number"!==typeof i)&&(h.hasValue()&&(f.width=h.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var m=f.clientWidth||f.width,g=f.clientHeight||f.height;if(t&&h.hasValue()&&p.hasValue()&&(m=h.getPixels("x"),g=p.getPixels("y")),c.setCurrent(m,g),"number"===typeof o&&e.getAttribute("x",!0).setValue(o),"number"===typeof a&&e.getAttribute("y",!0).setValue(a),"number"===typeof r||"number"===typeof i){var v=L(e.getAttribute("viewBox").getString()),y=0,b=0;if("number"===typeof r){var _=e.getStyle("width");_.hasValue()?y=_.getPixels("x")/r:isNaN(v[2])||(y=v[2]/r)}if("number"===typeof i){var w=e.getStyle("height");w.hasValue()?b=w.getPixels("y")/i:isNaN(v[3])||(b=v[3]/i)}y||(y=b),b||(b=y),e.getAttribute("width",!0).setValue(r),e.getAttribute("height",!0).setValue(i);var x=e.getStyle("transform",!0,!0);x.setValue("".concat(x.getString()," scale(").concat(1/y,", ").concat(1/b,")"))}n||u.clearRect(0,0,m,g),e.render(u),d&&(this.isFirstRender=!1)}}]),e}();he.defaultWindow=de,he.defaultFetch=fe;var pe=he.defaultFetch,me="undefined"!==typeof DOMParser?DOMParser:null,ge=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.fetch,r=void 0===n?pe:n,i=t.DOMParser,o=void 0===i?me:i;f()(this,e),this.fetch=r,this.DOMParser=o}return p()(e,[{key:"parse",value:function(){var e=l()(a.a.mark((function e(t){return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!/^</.test(t)){e.next=2;break}return e.abrupt("return",this.parseFromString(t));case 2:return e.abrupt("return",this.load(t));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"parseFromString",value:function(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(n){return this.checkDocument(t.parseFromString(e,"text/xml"))}}},{key:"checkDocument",value:function(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}},{key:"load",value:function(){var e=l()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(t);case 2:return n=e.sent,e.next=5,n.text();case 5:return r=e.sent,e.abrupt("return",this.parseFromString(r));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),ve=function(){function e(t,n){f()(this,e),this.type="translate",this.point=null,this.point=ce.parse(n)}return p()(e,[{key:"apply",value:function(e){var t=this.point,n=t.x,r=t.y;e.translate(n||0,r||0)}},{key:"unapply",value:function(e){var t=this.point,n=t.x,r=t.y;e.translate(-1*n||0,-1*r||0)}},{key:"applyToPoint",value:function(e){var t=this.point,n=t.x,r=t.y;e.applyTransform([1,0,0,1,n||0,r||0])}}]),e}(),ye=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];f()(this,e),this.type="rotate",this.angle=null,this.cx=0,this.cy=0;var i=L(n);this.angle=new se(t,"angle",i[0]),this.cx=(i[1]||0)+(r[0]||0),this.cy=(i[2]||0)+(r[1]||0)}return p()(e,[{key:"apply",value:function(e){var t=this.cx,n=this.cy,r=this.angle;e.translate(t,n),e.rotate(r.getRadians()),e.translate(-t,-n)}},{key:"unapply",value:function(e){var t=this.cx,n=this.cy,r=this.angle;e.translate(t,n),e.rotate(-1*r.getRadians()),e.translate(-t,-n)}},{key:"applyToPoint",value:function(e){var t=this.cx,n=this.cy,r=this.angle,i=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}]),e}(),be=function(){function e(t,n){f()(this,e),this.type="scale",this.scale=null;var r=ce.parseScale(n);0!==r.x&&0!==r.y||(r.x=X,r.y=X),this.scale=r}return p()(e,[{key:"apply",value:function(e){var t=this.scale,n=t.x,r=t.y;e.scale(n,r||n)}},{key:"unapply",value:function(e){var t=this.scale,n=t.x,r=t.y;e.scale(1/n,1/r||n)}},{key:"applyToPoint",value:function(e){var t=this.scale,n=t.x,r=t.y;e.applyTransform([n||0,0,0,r||0,0,0])}}]),e}(),_e=function(){function e(t,n){f()(this,e),this.type="matrix",this.matrix=[],this.matrix=L(n)}return p()(e,[{key:"apply",value:function(e){var t=this.matrix;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},{key:"unapply",value:function(e){var t=this.matrix,n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=0,c=0,u=1,d=1/(n*(a*u-s*c)-r*(o*u-s*l)+i*(o*c-a*l));e.transform(d*(a*u-s*c),d*(s*l-o*u),d*(i*c-r*u),d*(n*u-i*l),d*(r*s-i*a),d*(i*o-n*s))}},{key:"applyToPoint",value:function(e){e.applyTransform(this.matrix)}}]),e}();function we(e){return function(){var t,n=x()(e);if(xe()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function xe(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Se=function(e){C()(n,e);var t=we(n);function n(e,r){var i;return f()(this,n),i=t.call(this,e,r),i.type="skew",i.angle=null,i.angle=new se(e,"angle",r),i}return n}(_e);function Ce(e){return function(){var t,n=x()(e);if(Ee()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Ee(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ke=function(e){C()(n,e);var t=Ce(n);function n(e,r){var i;return f()(this,n),i=t.call(this,e,r),i.type="skewX",i.matrix=[1,0,Math.tan(i.angle.getRadians()),1,0,0],i}return n}(Se);function Oe(e){return function(){var t,n=x()(e);if(Te()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Te(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ie=function(e){C()(n,e);var t=Oe(n);function n(e,r){var i;return f()(this,n),i=t.call(this,e,r),i.type="skewY",i.matrix=[1,Math.tan(i.angle.getRadians()),0,1,0,0],i}return n}(Se);function Ae(e){return P(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Re(e){var t=e.split("("),n=i()(t,2),r=n[0],o=n[1];return[r.trim(),o.trim().replace(")","")]}var Pe=function(){function e(t,n,r){var o=this;f()(this,e),this.document=t,this.transforms=[];var a=Ae(n),s=r?L(r):[];a.forEach((function(t){if("none"!==t){var n=Re(t),r=i()(n,2),a=r[0],l=r[1],c=e.transformTypes[a];"undefined"!==typeof c&&o.transforms.push(new c(o.document,l,s))}}))}return p()(e,[{key:"apply",value:function(e){for(var t=this.transforms,n=t.length,r=0;r<n;r++)t[r].apply(e)}},{key:"unapply",value:function(e){for(var t=this.transforms,n=t.length,r=n-1;r>=0;r--)t[r].unapply(e)}},{key:"applyToPoint",value:function(e){for(var t=this.transforms,n=t.length,r=0;r<n;r++)t[r].applyToPoint(e)}}],[{key:"fromElement",value:function(t,n){var r=n.getStyle("transform",!1,!0),i=n.getStyle("transform-origin",!1,!0);return r.hasValue()?new e(t,r.getString(),i.getString()):null}}]),e}();Pe.transformTypes={translate:ve,rotate:ye,scale:be,matrix:_e,skewX:ke,skewY:Ie};var Me=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(f()(this,e),this.document=t,this.node=n,this.captureTextNodes=o,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],n&&1===n.nodeType){if(Array.from(n.attributes).forEach((function(e){var n=j(e.nodeName);r.attributes[n]=new se(t,n,e.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a=this.getAttribute("style").getString().split(";").map((function(e){return e.trim()}));a.forEach((function(e){if(e){var n=e.split(":").map((function(e){return e.trim()})),o=i()(n,2),a=o[0],s=o[1];r.styles[a]=new se(t,a,s)}}))}var s=t.definitions,l=this.getAttribute("id");l.hasValue()&&(s[l.getValue()]||(s[l.getValue()]=this)),Array.from(n.childNodes).forEach((function(e){if(1===e.nodeType)r.addChild(e);else if(o&&(3===e.nodeType||4===e.nodeType)){var n=t.createTextNode(e);n.getText().length>0&&r.addChild(n)}}))}}return p()(e,[{key:"getAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[e];if(!n&&t){var r=new se(this.document,e,"");return this.attributes[e]=r,r}return n||se.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var e in this.attributes)if("href"===e||/:href$/.test(e))return this.attributes[e];return se.empty(this.document)}},{key:"getStyle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[e];if(r)return r;var i=this.getAttribute(e);if(i&&i.hasValue())return this.styles[e]=i,i;if(!n){var o=this.parent;if(o){var a=o.getStyle(e);if(a&&a.hasValue())return a}}if(t){var s=new se(this.document,e,"");return this.styles[e]=s,s}return r||se.empty(this.document)}},{key:"render",value:function(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}},{key:"setContext",value:function(e){}},{key:"applyEffects",value:function(e){var t=Pe.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}},{key:"clearContext",value:function(e){}},{key:"renderChildren",value:function(e){this.children.forEach((function(t){t.render(e)}))}},{key:"addChild",value:function(t){var n=t instanceof e?t:this.document.createElement(t);n.parent=this,e.ignoreChildTypes.includes(n.type)||this.children.push(n)}},{key:"matchesSelector",value:function(e){var t=this.node;if("function"===typeof t.matches)return t.matches(e);var n=t.getAttribute("class");return!(!n||""===n)&&n.split(" ").some((function(t){if(".".concat(t)===e)return!0}))}},{key:"addStylesFromStyleDefinition",value:function(){var e=this.document,t=e.styles,n=e.stylesSpecificity;for(var r in t)if("@"!==r[0]&&this.matchesSelector(r)){var i=t[r],o=n[r];if(i)for(var a in i){var s=this.stylesSpecificity[a];"undefined"===typeof s&&(s="000"),o>=s&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(e,t){var n=t.reduce((function(t,n){var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(""),[].concat(k()(t),[[n,i]])}),[]);return n}},{key:"restoreStyles",value:function(e,t){t.forEach((function(t){var n=i()(t,2),r=n[0],o=n[1];e.getStyle(r,!0).setValue(o)}))}}]),e}();function Ne(e){return function(){var t,n=x()(e);if(Le()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Le(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}Me.ignoreChildTypes=["title"];var De=function(e){C()(n,e);var t=Ne(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o}return n}(Me);function je(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Fe(t){return"undefined"===typeof e?t:t.trim().split(",").map(je).join(",")}function Be(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function qe(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}var ze=function(){function e(t,n,r,i,o,a){f()(this,e);var s=a?"string"===typeof a?e.parse(a):a:{};this.fontFamily=o||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=n||s.fontVariant}return p()(e,[{key:"toString",value:function(){return[Be(this.fontStyle),this.fontVariant,qe(this.fontWeight),this.fontSize,Fe(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r="",o="",a="",s="",l="",c=P(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return c.forEach((function(t){switch(!0){case!u.fontStyle&&e.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&e.variants.includes(t):"inherit"!==t&&(o=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&e.weights.includes(t):"inherit"!==t&&(a=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:if("inherit"!==t){var n=t.split("/"),c=i()(n,1);s=c[0]}u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(l+=t)}})),new e(r,o,a,s,l,n)}}]),e}();ze.styles="normal|italic|oblique|inherit",ze.variants="normal|small-caps|inherit",ze.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Ue=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;f()(this,e),this.x1=t,this.y1=n,this.x2=r,this.y2=i,this.addPoint(t,n),this.addPoint(r,i)}return p()(e,[{key:"addPoint",value:function(e,t){"undefined"!==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"undefined"!==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}},{key:"addX",value:function(e){this.addPoint(e,null)}},{key:"addY",value:function(e){this.addPoint(null,e)}},{key:"addBoundingBox",value:function(e){if(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;this.addPoint(t,n),this.addPoint(r,i)}}},{key:"sumCubic",value:function(e,t,n,r,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*r+Math.pow(e,3)*i}},{key:"bezierCurveAdd",value:function(e,t,n,r,i){var o=6*t-12*n+6*r,a=-3*t+9*n-9*r+3*i,s=3*n-3*t;if(0!==a){var l=Math.pow(o,2)-4*s*a;if(!(l<0)){var c=(-o+Math.sqrt(l))/(2*a);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,r,i)):this.addY(this.sumCubic(c,t,n,r,i)));var u=(-o-Math.sqrt(l))/(2*a);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,i)):this.addY(this.sumCubic(u,t,n,r,i)))}}else{if(0===o)return;var d=-s/o;0<d&&d<1&&(e?this.addX(this.sumCubic(d,t,n,r,i)):this.addY(this.sumCubic(d,t,n,r,i)))}}},{key:"addBezierCurve",value:function(e,t,n,r,i,o,a,s){this.addPoint(e,t),this.addPoint(a,s),this.bezierCurveAdd(!0,e,n,i,a),this.bezierCurveAdd(!1,t,r,o,s)}},{key:"addQuadraticCurve",value:function(e,t,n,r,i,o){var a=e+2/3*(n-e),s=t+2/3*(r-t),l=a+1/3*(i-e),c=s+1/3*(o-t);this.addBezierCurve(e,t,a,l,s,c,i,o)}},{key:"isPointInBox",value:function(e,t){var n=this.x1,r=this.y1,i=this.x2,o=this.y2;return n<=e&&e<=i&&r<=t&&t<=o}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),e}();function Ge(e){return function(){var t,n=x()(e);if(Ve()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Ve(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var We=function(e){C()(n,e);var t=Ge(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.modifiedEmSizeStack=!1,e}return p()(n,[{key:"calculateOpacity",value:function(){var e=1,t=this;while(t){var n=t.getStyle("opacity",!1,!0);n.hasValue()&&(e*=n.getNumber()),t=t.parent}return e}},{key:"setContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this.getStyle("fill"),r=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var a=n.getFillStyleDefinition(this,r);a&&(e.fillStyle=a)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var s=n.getColor();"inherit"!==s&&(e.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(r.hasValue()){var l=new se(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,o);c&&(e.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var u=i.getString();"inherit"!==u&&(e.strokeStyle="none"===u?"rgba(0,0,0,0)":u)}if(o.hasValue()){var d=new se(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=d}var f=this.getStyle("stroke-width");if(f.hasValue()){var h=f.getPixels();e.lineWidth=h||X}var p=this.getStyle("stroke-linecap"),m=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),v=this.getStyle("paint-order"),y=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),m.hasValue()&&(e.lineJoin=m.getString()),g.hasValue()&&(e.miterLimit=g.getNumber()),v.hasValue()&&(e.paintOrder=v.getValue()),y.hasValue()&&"none"!==y.getString()){var _=L(y.getString());"undefined"!==typeof e.setLineDash?e.setLineDash(_):"undefined"!==typeof e.webkitLineDash?e.webkitLineDash=_:"undefined"===typeof e.mozDash||1===_.length&&0===_[0]||(e.mozDash=_);var w=b.getPixels();"undefined"!==typeof e.lineDashOffset?e.lineDashOffset=w:"undefined"!==typeof e.webkitLineDashOffset?e.webkitLineDashOffset=w:"undefined"!==typeof e.mozDashOffset&&(e.mozDashOffset=w)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof e.font){var x=this.getStyle("font"),S=this.getStyle("font-style"),C=this.getStyle("font-variant"),E=this.getStyle("font-weight"),k=this.getStyle("font-size"),O=this.getStyle("font-family"),T=new ze(S.getString(),C.getString(),E.getString(),k.hasValue()?"".concat(k.getPixels(!0),"px"):"",O.getString(),ze.parse(x.getString(),e.font));S.setValue(T.fontStyle),C.setValue(T.fontVariant),E.setValue(T.fontWeight),k.setValue(T.fontSize),O.setValue(T.fontFamily),e.font=T.toString(),k.isPixels()&&(this.document.emSize=k.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){T()(x()(n.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(Me);function He(e){return function(){var t,n=x()(e);if($e()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function $e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ke=function(e){C()(n,e);var t=He(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,(this instanceof n?this.constructor:void 0)===n||i),o.type="text",o.x=0,o.y=0,o.measureCache=-1,o}return p()(n,[{key:"setContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];T()(x()(n.prototype),"setContext",this).call(this,e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}},{key:"initializeCoordinates",value:function(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var t=this.getAttribute("dx"),n=this.getAttribute("dy");t.hasValue()&&(this.x+=t.getPixels("x")),n.hasValue()&&(this.y+=n.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}},{key:"getBoundingBox",value:function(e){var t=this;if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var n=null;return this.children.forEach((function(r,i){var o=t.getChildBoundingBox(e,t,t,i);n?n.addBoundingBox(o):n=o})),n}},{key:"getFontSize",value:function(){var e=this.document,t=this.parent,n=ze.parse(e.ctx.font).fontSize,r=t.getStyle("font-size").getNumber(n);return r}},{key:"getTElementBoundingBox",value:function(e){var t=this.getFontSize();return new Ue(this.x,this.y-t,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,t,n){var r=t[n],i=null;if(e.isArabic){var o=t.length,a=t[n-1],s=t[n+1],l="isolated";(0===n||" "===a)&&n<o-2&&" "!==s&&(l="terminal"),n>0&&" "!==a&&n<o-2&&" "!==s&&(l="medial"),n>0&&" "!==a&&(n===o-1||" "===s)&&(l="initial"),"undefined"!==typeof e.glyphs[r]&&(i=e.glyphs[r][l],i||"glyph"!==e.glyphs[r].type||(i=e.glyphs[r]))}else i=e.glyphs[r];return i||(i=e.missingGlyph),i}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,o=P(t.value||t.text||t.textContent||"");return 0===r&&(o=M(o)),r===i&&(o=N(o)),o}},{key:"renderChildren",value:function(e){var t=this;if("text"===this.type){this.initializeCoordinates(e),this.children.forEach((function(n,r){t.renderChild(e,t,t,r)}));var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}},{key:"renderTElementChildren",value:function(e){var t=this.document,n=this.parent,r=this.getText(),i=n.getStyle("font-family").getDefinition();if(i)for(var o=i.fontFace.unitsPerEm,a=ze.parse(t.ctx.font),s=n.getStyle("font-size").getNumber(a.fontSize),l=n.getStyle("font-style").getString(a.fontStyle),c=s/o,u=i.isRTL?r.split("").reverse().join(""):r,d=L(n.getAttribute("dx").getString()),f=u.length,h=0;h<f;h++){var p=this.getGlyph(i,u,h);e.translate(this.x,this.y),e.scale(c,-c);var m=e.lineWidth;e.lineWidth=e.lineWidth*o/s,"italic"===l&&e.transform(1,0,.4,1,0,0),p.render(e),"italic"===l&&e.transform(1,0,-.4,1,0,0),e.lineWidth=m,e.scale(1/c,-1/c),e.translate(-this.x,-this.y),this.x+=s*(p.horizAdvX||i.horizAdvX)/o,"undefined"===typeof d[h]||isNaN(d[h])||(this.x+=d[h])}else{var g=this.x,v=this.y;"stroke"===e.paintOrder?(e.strokeStyle&&e.strokeText(r,g,v),e.fillStyle&&e.fillText(r,g,v)):(e.fillStyle&&e.fillText(r,g,v),e.strokeStyle&&e.strokeText(r,g,v))}}},{key:"getAnchorDelta",value:function(e,t,n){var r=this.getStyle("text-anchor").getString("start");if("start"!==r){for(var i=t.children,o=i.length,a=null,s=0,l=n;l<o;l++){if(a=i[l],l>n&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue())break;s+=a.measureTextRecursive(e)}return-1*("end"===r?s:s/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,t,n,r){var i=n.children[r];if("function"!==typeof i.measureText)return i;e.save(),i.setContext(e,!0);var o=i.getAttribute("x"),a=i.getAttribute("y"),s=i.getAttribute("dx"),l=i.getAttribute("dy"),c=i.getAttribute("text-anchor").getString("start");if(0===r&&"textNode"!==i.type&&(o.hasValue()||o.setValue(t.getAttribute("x").getValue("0")),a.hasValue()||a.setValue(t.getAttribute("y").getValue("0")),s.hasValue()||s.setValue(t.getAttribute("dx").getValue("0")),l.hasValue()||l.setValue(t.getAttribute("dy").getValue("0"))),o.hasValue()){if(i.x=o.getPixels("x")+t.getAnchorDelta(e,n,r),"start"!==c){var u=i.measureTextRecursive(e);i.x+=-1*("end"===c?u:u/2)}s.hasValue()&&(i.x+=s.getPixels("x"))}else{if("start"!==c){var d=i.measureTextRecursive(e);t.x+=-1*("end"===c?d:d/2)}s.hasValue()&&(t.x+=s.getPixels("x")),i.x=t.x}return t.x=i.x+i.measureText(e),a.hasValue()?(i.y=a.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),i.y=t.y),t.y=i.y,i.clearContext(e),e.restore(),i}},{key:"getChildBoundingBox",value:function(e,t,n,r){var i=this.adjustChildCoordinates(e,t,n,r),o=i.getBoundingBox(e);return o?(i.children.forEach((function(n,r){var a=t.getChildBoundingBox(e,t,i,r);o.addBoundingBox(a)})),o):null}},{key:"renderChild",value:function(e,t,n,r){var i=this.adjustChildCoordinates(e,t,n,r);i.render(e),i.children.forEach((function(n,r){t.renderChild(e,t,i,r)}))}},{key:"measureTextRecursive",value:function(e){var t=this.children.reduce((function(t,n){return t+n.measureTextRecursive(e)}),this.measureText(e));return t}},{key:"measureText",value:function(e){var t=this.measureCache;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}},{key:"measureTargetText",value:function(e,t){if(!t.length)return 0;var n=this.parent,r=n.getStyle("font-family").getDefinition();if(r){for(var i=this.getFontSize(),o=r.isRTL?t.split("").reverse().join(""):t,a=L(n.getAttribute("dx").getString()),s=o.length,l=0,c=0;c<s;c++){var u=this.getGlyph(r,o,c);l+=(u.horizAdvX||r.horizAdvX)*i/r.fontFace.unitsPerEm,"undefined"===typeof a[c]||isNaN(a[c])||(l+=a[c])}return l}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var d=e.measureText(t),f=d.width;return this.clearContext(e),e.restore(),f}}]),n}(We);function Xe(e){return function(){var t,n=x()(e);if(Ye()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Ye(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Je=function(e){C()(n,e);var t=Xe(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,(this instanceof n?this.constructor:void 0)===n||i),o.type="tspan",o.text=o.children.length>0?"":o.getTextFromNode(),o}return p()(n,[{key:"getText",value:function(){return this.text}}]),n}(Ke);function Qe(e){return function(){var t,n=x()(e);if(Ze()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Ze(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var et=function(e){C()(n,e);var t=Qe(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="textNode",e}return n}(Je);function tt(e){var t=e.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $2 $3 ");return P(t).trim()}var nt=function(){function e(t){f()(this,e),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=tt(t).split(" ")}return p()(e,[{key:"reset",value:function(){this.i=-1,this.command="",this.previousCommand="",this.start=new ce(0,0),this.control=new ce(0,0),this.current=new ce(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){var e=this.i,t=this.tokens;return e>=t.length-1}},{key:"isCommandOrEnd",value:function(){if(this.isEnd())return!0;var e=this.i,t=this.tokens;return/^[A-Za-z]$/.test(t[e+1])}},{key:"isRelativeCommand",value:function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function(){var e=new ce(this.getScalar(),this.getScalar());return this.makeAbsolute(e)}},{key:"getAsControlPoint",value:function(){var e=this.getPoint();return this.control=e,e}},{key:"getAsCurrentPoint",value:function(){var e=this.getPoint();return this.current=e,e}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.toLowerCase();if("c"!==e&&"s"!==e&&"q"!==e&&"t"!==e)return this.current;var t=this.current,n=t.x,r=t.y,i=this.control,o=i.x,a=i.y,s=new ce(2*n-o,2*r-a);return s}},{key:"makeAbsolute",value:function(e){if(this.isRelativeCommand()){var t=this.current,n=t.x,r=t.y;e.x+=n,e.y+=r}return e}},{key:"addMarker",value:function(e,t,n){var r=this.points,i=this.angles;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,t){this.points.push(e),this.angles.push(t)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,t=e.length,n=0;n<t;n++)if(!e[n])for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}return e}}]),e}();function rt(e){return function(){var t,n=x()(e);if(it()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function it(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ot=function(e){C()(n,e);var t=rt(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="path",o.pathParser=null,o.pathParser=new nt(o.getAttribute("d").getString()),o}return p()(n,[{key:"path",value:function(e){var t=this.pathParser,n=new Ue;t.reset(),e&&e.beginPath();while(!t.isEnd())switch(t.nextCommand(),t.command){case"M":case"m":this.pathM(e,n);break;case"L":case"l":this.pathL(e,n);break;case"H":case"h":this.pathH(e,n);break;case"V":case"v":this.pathV(e,n);break;case"C":case"c":this.pathC(e,n);break;case"S":case"s":this.pathS(e,n);break;case"Q":case"q":this.pathQ(e,n);break;case"T":case"t":this.pathT(e,n);break;case"A":case"a":this.pathA(e,n);break;case"Z":case"z":this.pathZ(e,n);break}return n}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,t=e.getMarkerPoints(),n=e.getMarkerAngles(),r=t.map((function(e,t){return[e,n[t]]}));return r}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&e.stroke();var n=this.getMarkers();if(n){var r=n.length-1,o=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(o.isUrlDefinition()){var l=o.getDefinition(),c=i()(n[0],2),u=c[0],d=c[1];l.render(e,u,d)}if(a.isUrlDefinition())for(var f=a.getDefinition(),h=1;h<r;h++){var p=i()(n[h],2),m=p[0],g=p[1];f.render(e,m,g)}if(s.isUrlDefinition()){var v=s.getDefinition(),y=i()(n[r],2),b=y[0],_=y[1];v.render(e,b,_)}}}},{key:"pathM",value:function(e,t){var n=this.pathParser,r=n.getAsCurrentPoint(),i=r.x,o=r.y;n.addMarker(r),t.addPoint(i,o),e&&e.moveTo(i,o),n.start=n.current;while(!n.isCommandOrEnd()){var a=n.getAsCurrentPoint(),s=a.x,l=a.y;n.addMarker(a,n.start),t.addPoint(s,l),e&&e.lineTo(s,l)}}},{key:"pathL",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=n.getAsCurrentPoint(),o=i.x,a=i.y;n.addMarker(i,r),t.addPoint(o,a),e&&e.lineTo(o,a)}}},{key:"pathH",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=new ce((n.isRelativeCommand()?r.x:0)+n.getScalar(),r.y);n.addMarker(i,r),n.current=i,t.addPoint(i.x,i.y),e&&e.lineTo(i.x,i.y)}}},{key:"pathV",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=new ce(r.x,(n.isRelativeCommand()?r.y:0)+n.getScalar());n.addMarker(i,r),n.current=i,t.addPoint(i.x,i.y),e&&e.lineTo(i.x,i.y)}}},{key:"pathC",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=n.getPoint(),o=n.getAsControlPoint(),a=n.getAsCurrentPoint();n.addMarker(a,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}}},{key:"pathS",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=n.getReflectedControlPoint(),o=n.getAsControlPoint(),a=n.getAsCurrentPoint();n.addMarker(a,o,i),t.addBezierCurve(r.x,r.y,i.x,i.y,o.x,o.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}}},{key:"pathQ",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=n.getAsControlPoint(),o=n.getAsCurrentPoint();n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}}},{key:"pathT",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=n.getReflectedControlPoint();n.control=i;var o=n.getAsCurrentPoint();n.addMarker(o,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}}},{key:"pathA",value:function(e,t){var n=this.pathParser;while(!n.isCommandOrEnd()){var r=n.current,i=n.getScalar(),o=n.getScalar(),a=n.getScalar()*(Math.PI/180),s=n.getScalar(),l=n.getScalar(),c=n.getAsCurrentPoint(),u=new ce(Math.cos(a)*(r.x-c.x)/2+Math.sin(a)*(r.y-c.y)/2,-Math.sin(a)*(r.x-c.x)/2+Math.cos(a)*(r.y-c.y)/2),d=Math.pow(u.x,2)/Math.pow(i,2)+Math.pow(u.y,2)/Math.pow(o,2);d>1&&(i*=Math.sqrt(d),o*=Math.sqrt(d));var f=(s===l?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(o,2)-Math.pow(i,2)*Math.pow(u.y,2)-Math.pow(o,2)*Math.pow(u.x,2))/(Math.pow(i,2)*Math.pow(u.y,2)+Math.pow(o,2)*Math.pow(u.x,2)));isNaN(f)&&(f=0);var h=new ce(f*i*u.y/o,f*-o*u.x/i),p=new ce((r.x+c.x)/2+Math.cos(a)*h.x-Math.sin(a)*h.y,(r.y+c.y)/2+Math.sin(a)*h.x+Math.cos(a)*h.y),m=Q([1,0],[(u.x-h.x)/i,(u.y-h.y)/o]),g=[(u.x-h.x)/i,(u.y-h.y)/o],v=[(-u.x-h.x)/i,(-u.y-h.y)/o],y=Q(g,v);J(g,v)<=-1&&(y=Math.PI),J(g,v)>=1&&(y=0);var b=1-l?1:-1,_=m+b*(y/2),w=new ce(p.x+i*Math.cos(_),p.y+o*Math.sin(_));if(n.addMarkerAngle(w,_-b*Math.PI/2),n.addMarkerAngle(c,_-b*Math.PI),t.addPoint(c.x,c.y),e&&!isNaN(m)&&!isNaN(y)){var x=i>o?i:o,S=i>o?1:i/o,C=i>o?o/i:1;e.translate(p.x,p.y),e.rotate(a),e.scale(S,C),e.arc(0,0,x,m,m+y,Boolean(1-l)),e.scale(1/S,1/C),e.rotate(-a),e.translate(-p.x,-p.y)}}}},{key:"pathZ",value:function(e,t){var n=this.pathParser;e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath(),n.current=n.start}}]),n}(We);function at(e){return function(){var t,n=x()(e);if(st()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function st(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var lt=function(e){C()(n,e);var t=at(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="svg",e.root=!1,e}return p()(n,[{key:"clearContext",value:function(e){T()(x()(n.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function(e){var t=this.document,r=t.screen,i=t.window,o=e.canvas;if(r.setDefaults(e),o.style&&"undefined"!==typeof e.font&&i&&"undefined"!==typeof i.getComputedStyle){e.font=i.getComputedStyle(o).getPropertyValue("font");var a=new se(t,"fontSize",ze.parse(e.font).fontSize);a.hasValue()&&(t.rootEmSize=a.getPixels("y"),t.emSize=t.rootEmSize)}T()(x()(n.prototype),"setContext",this).call(this,e),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var s=r.viewPort,l=s.width,c=s.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),d=this.getAttribute("refY"),f=this.getAttribute("viewBox"),h=f.hasValue()?L(f.getString()):null,p=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),m=0,g=0,v=0,y=0;h&&(m=h[0],g=h[1]),this.root||(l=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=m,y=g,m=0,g=0)),r.viewPort.setCurrent(l,c),h&&(l=h[2],c=h[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:l,height:r.viewPort.height,desiredHeight:c,minX:m,minY:g,refX:u.getValue(),refY:d.getValue(),clip:p,clipX:v,clipY:y}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(l,c))}},{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),s=r.getNumber(0),l=i.getNumber(0);if(n)if("string"===typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(e),i.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(s||e," ").concat(l||t)),a.hasValue()){var u=this.getStyle("width"),d=this.getStyle("height");u.hasValue()&&u.setValue("".concat(e,"px")),d.hasValue()&&d.setValue("".concat(t,"px"))}}}]),n}(We);function ct(e){return function(){var t,n=x()(e);if(ut()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function ut(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var dt=function(e){C()(n,e);var t=ct(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="rect",e}return p()(n,[{key:"path",value:function(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),s=o.getPixels("x"),l=a.getPixels("y");if(o.hasValue()&&!a.hasValue()&&(l=s),a.hasValue()&&!o.hasValue()&&(s=l),s=Math.min(s,r/2),l=Math.min(l,i/2),e){var c=(Math.sqrt(2)-1)/3*4;e.beginPath(),i>0&&r>0&&(e.moveTo(t+s,n),e.lineTo(t+r-s,n),e.bezierCurveTo(t+r-s+c*s,n,t+r,n+l-c*l,t+r,n+l),e.lineTo(t+r,n+i-l),e.bezierCurveTo(t+r,n+i-l+c*l,t+r-s+c*s,n+i,t+r-s,n+i),e.lineTo(t+s,n+i),e.bezierCurveTo(t+s-c*s,n+i,t,n+i-l+c*l,t,n+i-l),e.lineTo(t,n+l),e.bezierCurveTo(t,n+l-c*l,t+s-c*s,n,t+s,n),e.closePath())}return new Ue(t,n,t+r,n+i)}},{key:"getMarkers",value:function(){return null}}]),n}(ot);function ft(e){return function(){var t,n=x()(e);if(ht()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function ht(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var pt=function(e){C()(n,e);var t=ft(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="circle",e}return p()(n,[{key:"path",value:function(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,2*Math.PI,!1),e.closePath()),new Ue(t-r,n-r,t+r,n+r)}},{key:"getMarkers",value:function(){return null}}]),n}(ot);function mt(e){return function(){var t,n=x()(e);if(gt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function gt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var vt=function(e){C()(n,e);var t=mt(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="ellipse",e}return p()(n,[{key:"path",value:function(e){var t=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,o),e.bezierCurveTo(i+n,o+t*r,i+t*n,o+r,i,o+r),e.bezierCurveTo(i-t*n,o+r,i-n,o+t*r,i-n,o),e.bezierCurveTo(i-n,o-t*r,i-t*n,o-r,i,o-r),e.bezierCurveTo(i+t*n,o-r,i+n,o-t*r,i+n,o),e.closePath()),new Ue(i-n,o-r,i+n,o+r)}},{key:"getMarkers",value:function(){return null}}]),n}(ot);function yt(e){return function(){var t,n=x()(e);if(bt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function bt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _t=function(e){C()(n,e);var t=yt(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="line",e}return p()(n,[{key:"getPoints",value:function(){return[new ce(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new ce(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var t=this.getPoints(),n=i()(t,2),r=n[0],o=r.x,a=r.y,s=n[1],l=s.x,c=s.y;return e&&(e.beginPath(),e.moveTo(o,a),e.lineTo(l,c)),new Ue(o,a,l,c)}},{key:"getMarkers",value:function(){var e=this.getPoints(),t=i()(e,2),n=t[0],r=t[1],o=n.angleTo(r);return[[n,o],[r,o]]}}]),n}(ot);function wt(e){return function(){var t,n=x()(e);if(xt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function xt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var St=function(e){C()(n,e);var t=wt(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="polyline",o.points=[],o.points=ce.parsePath(o.getAttribute("points").getString()),o}return p()(n,[{key:"path",value:function(e){var t=this.points,n=i()(t,1),r=n[0],o=r.x,a=r.y,s=new Ue(o,a);return e&&(e.beginPath(),e.moveTo(o,a)),t.forEach((function(t){var n=t.x,r=t.y;s.addPoint(n,r),e&&e.lineTo(n,r)})),s}},{key:"getMarkers",value:function(){var e=this.points,t=e.length-1,n=[];return e.forEach((function(r,i){i!==t&&n.push([r,r.angleTo(e[i+1])])})),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}]),n}(ot);function Ct(e){return function(){var t,n=x()(e);if(Et()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Et(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var kt=function(e){C()(n,e);var t=Ct(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="polygon",e}return p()(n,[{key:"path",value:function(e){var t=T()(x()(n.prototype),"path",this).call(this,e),r=i()(this.points,1),o=r[0],a=o.x,s=o.y;return e&&(e.lineTo(a,s),e.closePath()),t}}]),n}(St);function Ot(e){return function(){var t,n=x()(e);if(Tt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Tt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var It=function(e){C()(n,e);var t=Ot(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="pattern",e}return p()(n,[{key:"createPattern",value:function(e,t,n){var r=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new lt(this.document,null);o.attributes.viewBox=new se(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new se(this.document,"width","".concat(r,"px")),o.attributes.height=new se(this.document,"height","".concat(i,"px")),o.attributes.transform=new se(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(r,i),s=a.getContext("2d"),l=this.getAttribute("x"),c=this.getAttribute("y");l.hasValue()&&c.hasValue()&&s.translate(l.getPixels("x",!0),c.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var u=-1;u<=1;u++)for(var d=-1;d<=1;d++)s.save(),o.attributes.x=new se(this.document,"x",u*a.width),o.attributes.y=new se(this.document,"y",d*a.height),o.render(s),s.restore();var f=e.createPattern(a,"repeat");return f}}]),n}(Me);function At(e){return function(){var t,n=x()(e);if(Rt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Rt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Pt=function(e){C()(n,e);var t=At(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="marker",e}return p()(n,[{key:"render",value:function(e,t,n){if(t){var r=t.x,i=t.y,o=this.getAttribute("orient").getValue("auto"),a=this.getAttribute("markerUnits").getValue("strokeWidth");e.translate(r,i),"auto"===o&&e.rotate(n),"strokeWidth"===a&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new lt(this.document,null);s.type=this.type,s.attributes.viewBox=new se(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new se(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new se(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new se(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new se(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new se(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new se(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new se(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(e),e.restore(),"strokeWidth"===a&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===o&&e.rotate(-n),e.translate(-r,-i)}}}]),n}(Me);function Mt(e){return function(){var t,n=x()(e);if(Nt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Nt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Lt=function(e){C()(n,e);var t=Mt(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="defs",e}return p()(n,[{key:"render",value:function(){}}]),n}(Me);function Dt(e){return function(){var t,n=x()(e);if(jt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function jt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ft=function(e){C()(n,e);var t=Dt(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="g",e}return p()(n,[{key:"getBoundingBox",value:function(e){var t=new Ue;return this.children.forEach((function(n){t.addBoundingBox(n.getBoundingBox(e))})),t}}]),n}(We);function Bt(e){return function(){var t,n=x()(e);if(qt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function qt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var zt=function(e){C()(n,e);var t=Bt(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.attributesToInherit=["gradientUnits"],o.stops=[];var a=A()(o),s=a.stops,l=a.children;return l.forEach((function(e){"stop"===e.type&&s.push(e)})),o}return p()(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,t,n){var r=this,o=this;this.getHrefAttribute().hasValue()&&(o=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(o));var a=o,s=a.stops,l=this.getGradient(e,t);if(!l)return this.addParentOpacity(n,s[s.length-1].color);if(s.forEach((function(e){l.addColorStop(e.offset,r.addParentOpacity(n,e.color))})),this.getAttribute("gradientTransform").hasValue()){var c=this.document,u=c.screen,d=u.MAX_VIRTUAL_PIXELS,f=u.viewPort,h=i()(f.viewPorts,1),p=h[0],m=new dt(c,null);m.attributes.x=new se(c,"x",-d/3),m.attributes.y=new se(c,"y",-d/3),m.attributes.width=new se(c,"width",d),m.attributes.height=new se(c,"height",d);var g=new Ft(c,null);g.attributes.transform=new se(c,"transform",this.getAttribute("gradientTransform").getValue()),g.children=[m];var v=new lt(c,null);v.attributes.x=new se(c,"x",0),v.attributes.y=new se(c,"y",0),v.attributes.width=new se(c,"width",p.width),v.attributes.height=new se(c,"height",p.height),v.children=[g];var y=c.createCanvas(p.width,p.height),b=y.getContext("2d");return b.fillStyle=l,v.render(b),b.createPattern(y,"no-repeat")}return l}},{key:"inheritStopContainer",value:function(e){var t=this;this.attributesToInherit.forEach((function(n){!t.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&t.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())}))}},{key:"addParentOpacity",value:function(e,t){if(e.hasValue()){var n=new se(this.document,"color",t);return n.addOpacity(e).getColor()}return t}}]),n}(Me);function Ut(e){return function(){var t,n=x()(e);if(Gt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Gt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Vt=function(e){C()(n,e);var t=Ut(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="linearGradient",o.attributesToInherit.push("x1","y1","x2","y2"),o}return p()(n,[{key:"getGradient",value:function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=n?t.getBoundingBox(e):null;if(n&&!r)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=n?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=n?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=n?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=n?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&o===s?null:e.createLinearGradient(i,o,a,s)}}]),n}(zt);function Wt(e){return function(){var t,n=x()(e);if(Ht()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Ht(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var $t=function(e){C()(n,e);var t=Wt(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="radialGradient",o.attributesToInherit.push("cx","cy","r","fx","fy","fr"),o}return p()(n,[{key:"getGradient",value:function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=n?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,s=o;this.getAttribute("fx").hasValue()&&(a=n?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=n?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return e.createRadialGradient(a,s,c,i,o,l)}}]),n}(zt);function Kt(e){return function(){var t,n=x()(e);if(Xt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Xt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Yt=function(e){C()(n,e);var t=Kt(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.type="stop";var a=Math.max(0,Math.min(1,o.getAttribute("offset").getNumber())),s=o.getStyle("stop-opacity"),l=o.getStyle("stop-color",!0);return""===l.getString()&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),o.offset=a,o.color=l.getColor(),o}return n}(Me);function Jt(e){return function(){var t,n=x()(e);if(Qt()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Qt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Zt=function(e){C()(n,e);var t=Jt(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="animate",o.duration=0,o.initialValue=null,o.initialUnits="",o.removed=!1,o.frozen=!1,e.screen.animations.push(A()(o)),o.begin=o.getAttribute("begin").getMilliseconds(),o.maxDuration=o.begin+o.getAttribute("dur").getMilliseconds(),o.from=o.getAttribute("from"),o.to=o.getAttribute("to"),o.values=o.getAttribute("values"),o.values.hasValue()&&o.values.setValue(o.values.getString().split(";")),o}return p()(n,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,t=this.getProgress(),n=t.progress,r=t.from,i=t.to,o=r.getNumber()+(i.getNumber()-r.getNumber())*n;return"%"===e&&(o*=100),"".concat(o).concat(e)}},{key:"update",value:function(e){var t=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var o=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var s=a.getString();o="".concat(s,"(").concat(o,")")}n.setValue(o),i=!0}return i}},{key:"getProgress",value:function(){var e=this.document,t=this.values,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=n.progress*(t.getValue().length-1),i=Math.floor(r),o=Math.ceil(r);n.from=new se(e,"from",parseFloat(t.getValue()[i])),n.to=new se(e,"to",parseFloat(t.getValue()[o])),n.progress=(r-i)/(o-i)}else n.from=this.from,n.to=this.to;return n}}]),n}(Me);function en(e){return function(){var t,n=x()(e);if(tn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function tn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var nn=function(e){C()(n,e);var t=en(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="animateColor",e}return p()(n,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,n=e.from,r=e.to,i=new y.a(n.getColor()),o=new y.a(r.getColor());if(i.ok&&o.ok){var a=i.r+(o.r-i.r)*t,s=i.g+(o.g-i.g)*t,l=i.b+(o.b-i.b)*t;return"rgb(".concat(parseInt(a,10),", ").concat(parseInt(s,10),", ").concat(parseInt(l,10),")")}return this.getAttribute("from").getColor()}}]),n}(Zt);function rn(e){return function(){var t,n=x()(e);if(on()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function on(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var an=function(e){C()(n,e);var t=rn(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="animateTransform",e}return p()(n,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,n=e.from,r=e.to,i=L(n.getString()),o=L(r.getString()),a=i.map((function(e,n){var r=o[n];return e+(r-e)*t})).join(" ");return a}}]),n}(Zt);function sn(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=ln(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function ln(e,t){if(e){if("string"===typeof e)return cn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cn(e,t):void 0}}function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function un(e){return function(){var t,n=x()(e);if(dn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function dn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var fn=function(e){C()(n,e);var t=un(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.type="font",o.glyphs={},o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber();var a,s=e.definitions,l=A()(o),c=l.children,u=sn(c);try{for(u.s();!(a=u.n()).done;){var d=a.value;switch(d.type){case"font-face":o.fontFace=d;var h=d.getStyle("font-family");h.hasValue()&&(s[h.getString()]=A()(o));break;case"missing-glyph":o.missingGlyph=d;break;case"glyph":var p=d;p.arabicForm?(o.isRTL=!0,o.isArabic=!0,"undefined"===typeof o.glyphs[p.unicode]&&(o.glyphs[p.unicode]={}),o.glyphs[p.unicode][p.arabicForm]=p):o.glyphs[p.unicode]=p;break;default:}}}catch(m){u.e(m)}finally{u.f()}return o}return p()(n,[{key:"render",value:function(){}}]),n}(Me);function hn(e){return function(){var t,n=x()(e);if(pn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function pn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var mn=function(e){C()(n,e);var t=hn(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="font-face",o.ascent=o.getAttribute("ascent").getNumber(),o.descent=o.getAttribute("descent").getNumber(),o.unitsPerEm=o.getAttribute("units-per-em").getNumber(),o}return n}(Me);function gn(e){return function(){var t,n=x()(e);if(vn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function vn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var yn=function(e){C()(n,e);var t=gn(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="missing-glyph",e.horizAdvX=0,e}return n}(ot);function bn(e){return function(){var t,n=x()(e);if(_n()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function _n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var wn=function(e){C()(n,e);var t=bn(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="glyph",o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber(),o.unicode=o.getAttribute("unicode").getString(),o.arabicForm=o.getAttribute("arabic-form").getString(),o}return n}(ot);function xn(e){return function(){var t,n=x()(e);if(Sn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Sn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cn=function(e){C()(n,e);var t=xn(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="tref",e}return p()(n,[{key:"getText",value:function(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}]),n}(Ke);function En(e){return function(){var t,n=x()(e);if(kn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function kn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var On=function(e){C()(n,e);var t=En(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.type="a";var a=r.childNodes,s=a[0],l=a.length>0&&Array.from(a).every((function(e){return 3===e.nodeType}));return o.hasText=l,o.text=l?o.getTextFromNode(s):"",o}return p()(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){T()(x()(n.prototype),"renderChildren",this).call(this,e);var t=this.document,r=this.x,i=this.y,o=t.screen.mouse,a=new se(t,"fontSize",ze.parse(t.ctx.font).fontSize);o.isWorking()&&o.checkBoundingBox(this,new Ue(r,i-a.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new Ft(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}]),n}(Ke);function Tn(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=In(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function In(e,t){if(e){if("string"===typeof e)return An(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?An(e,t):void 0}}function An(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rn(e){return function(){var t,n=x()(e);if(Pn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Pn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Mn=function(e){C()(n,e);var t=Rn(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.type="textPath",o.textWidth=0,o.textHeight=0,o.pathLength=-1,o.glyphInfo=null,o.letterSpacingCache=[],o.measuresCache=new Map([["",0]]);var a=o.getHrefAttribute().getDefinition();return o.text=o.getTextFromNode(),o.dataArray=o.parsePathData(a),o}return p()(n,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(e){var t=this.dataArray;e&&e.beginPath(),t.forEach((function(t){var n=t.command,r=t.points;switch(n){case"L":e&&e.lineTo(r[0],r[1]);break;case"M":e&&e.moveTo(r[0],r[1]);break;case"C":e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case"Q":e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case"A":var i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=r[6],d=r[7],f=a>s?a:s,h=a>s?1:a/s,p=a>s?s/a:1;e&&(e.translate(i,o),e.rotate(u),e.scale(h,p),e.arc(0,0,f,l,l+c,Boolean(1-d)),e.scale(1/h,1/p),e.rotate(-u),e.translate(-i,-o));break;case"z":e&&e.closePath();break}}))}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),r=this.glyphInfo,i=e.fillStyle;"underline"===t&&e.beginPath(),r.forEach((function(i,o){var a=i.p0,s=i.p1,l=i.text;e.save(),e.translate(a.x,a.y),e.rotate(r[o].rotation),e.fillStyle&&e.fillText(l,0,0),e.strokeStyle&&e.strokeText(l,0,0),e.restore(),"underline"===t&&(0===o&&e.moveTo(a.x,a.y+n/8),e.lineTo(s.x,s.y+n/5))})),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,t,n,r,i,o,a,s){var l=o,c=this.measureText(e,a);" "===a&&"justify"===t&&n<r&&(c+=(r-n)/i),s>-1&&(l+=this.getLetterSpacingAt(s));var u=this.textHeight/20,d={p0:this.getEquidistantPointOnPath(l,u),p1:this.getEquidistantPointOnPath(l+c,u)};return l+=c,{offset:l,segment:d}}},{key:"measureText",value:function(e,t){var n=this.measuresCache,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}},{key:"setTextData",value:function(e){var t=this;if(!this.glyphInfo){var n=this.getText(),r=n.split(""),i=n.split(" ").length-1,o=L(this.parent.getAttribute("dx").getString("0")),a=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),c=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(c=s.getPixels()):c=l.getPixels();var u=[],d=n.length;this.letterSpacingCache=u;for(var f=0;f<d;f++)u.push("undefined"!==typeof o[f]?o[f]:c);var h=u.reduce((function(e,t){return e+t||0}),0);this.textWidth=this.measureText(e),this.textHeight=this.getFontSize();var p=Math.max(this.textWidth+h,0);this.glyphInfo=[];var m=this.getPathLength(),g=this.getStyle("startOffset").getNumber(0)*m,v=0;"middle"!==a&&"center"!==a||(v=-p/2),"end"!==a&&"right"!==a||(v=-p),v+=g,r.forEach((function(n,o){var s=t.findSegmentToFitChar(e,a,p,m,i,v,n,o),l=s.offset,c=s.segment;if(v=l,c.p0&&c.p1){var u=t.getLineLength(c.p0.x,c.p0.y,c.p1.x,c.p1.y),d=0,f=t.getPointOnLine(d+u/2,c.p0.x,c.p0.y,c.p1.x,c.p1.y),h=Math.atan2(c.p1.y-c.p0.y,c.p1.x-c.p0.x);t.glyphInfo.push({transposeX:f.x,transposeY:f.y,text:r[o],p0:c.p0,p1:c.p1,rotation:h})}}))}}},{key:"parsePathData",value:function(e){if(this.pathLength=-1,!e)return[];var t=[],n=e.pathParser;n.reset();while(!n.isEnd()){var r=n.current,i=r?r.x:0,o=r?r.y:0,a="",s=[];n.nextCommand();var l=n.command.toUpperCase();switch(n.command){case"M":case"m":a=this.pathM(n,s);break;case"L":case"l":a=this.pathL(n,s);break;case"H":case"h":a=this.pathH(n,s);break;case"V":case"v":a=this.pathV(n,s);break;case"C":case"c":this.pathC(n,s);break;case"S":case"s":a=this.pathS(n,s);break;case"Q":case"q":this.pathQ(n,s);break;case"T":case"t":a=this.pathT(n,s);break;case"A":case"a":s=this.pathA(n);break;case"Z":case"z":n.current=n.start;break}"Z"!==l?t.push({command:a||l,points:s,start:{x:i,y:o},pathLength:this.calcLength(i,o,a||l,s)}):t.push({command:"z",points:[],pathLength:0})}return t}},{key:"pathM",value:function(e,t){var n=e.getAsCurrentPoint();t.push(n.x,n.y),e.start=e.current;while(!e.isCommandOrEnd()){var r=e.getAsCurrentPoint();return t.push(r.x,r.y),"L"}}},{key:"pathL",value:function(e,t){while(!e.isCommandOrEnd()){var n=e.getAsCurrentPoint();t.push(n.x,n.y)}return"L"}},{key:"pathH",value:function(e,t){while(!e.isCommandOrEnd()){var n=e.current,r=new ce((e.isRelativeCommand()?n.x:0)+e.getScalar(),n.y);t.push(r.x,r.y),e.current=r}return"L"}},{key:"pathV",value:function(e,t){while(!e.isCommandOrEnd()){var n=e.current,r=new ce(n.x,(e.isRelativeCommand()?n.y:0)+e.getScalar());t.push(r.x,r.y),e.current=r}return"L"}},{key:"pathC",value:function(e,t){while(!e.isCommandOrEnd()){var n=e.getPoint(),r=e.getAsControlPoint(),i=e.getAsCurrentPoint();t.push(n.x,n.y,r.x,r.y,i.x,i.y)}}},{key:"pathS",value:function(e,t){while(!e.isCommandOrEnd()){var n=e.getReflectedControlPoint(),r=e.getAsControlPoint(),i=e.getAsCurrentPoint();t.push(n.x,n.y,r.x,r.y,i.x,i.y)}return"C"}},{key:"pathQ",value:function(e,t){while(!e.isCommandOrEnd()){var n=e.getAsControlPoint(),r=e.getAsCurrentPoint();t.push(n.x,n.y,r.x,r.y)}}},{key:"pathT",value:function(e,t){while(!e.isCommandOrEnd()){var n=e.getReflectedControlPoint();e.control=n;var r=e.getAsCurrentPoint();t.push(n.x,n.y,r.x,r.y)}return"Q"}},{key:"pathA",value:function(e){while(!e.isCommandOrEnd()){var t=e.current,n=e.getScalar(),r=e.getScalar(),i=e.getScalar()*(Math.PI/180),o=e.getScalar(),a=e.getScalar(),s=e.getAsCurrentPoint(),l=new ce(Math.cos(i)*(t.x-s.x)/2+Math.sin(i)*(t.y-s.y)/2,-Math.sin(i)*(t.x-s.x)/2+Math.cos(i)*(t.y-s.y)/2),c=Math.pow(l.x,2)/Math.pow(n,2)+Math.pow(l.y,2)/Math.pow(r,2);c>1&&(n*=Math.sqrt(c),r*=Math.sqrt(c));var u=(o===a?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(r,2)-Math.pow(n,2)*Math.pow(l.y,2)-Math.pow(r,2)*Math.pow(l.x,2))/(Math.pow(n,2)*Math.pow(l.y,2)+Math.pow(r,2)*Math.pow(l.x,2)));isNaN(u)&&(u=0);var d=new ce(u*n*l.y/r,u*-r*l.x/n),f=new ce((t.x+s.x)/2+Math.cos(i)*d.x-Math.sin(i)*d.y,(t.y+s.y)/2+Math.sin(i)*d.x+Math.cos(i)*d.y),h=Q([1,0],[(l.x-d.x)/n,(l.y-d.y)/r]),p=[(l.x-d.x)/n,(l.y-d.y)/r],m=[(-l.x-d.x)/n,(-l.y-d.y)/r],g=Q(p,m);return J(p,m)<=-1&&(g=Math.PI),J(p,m)>=1&&(g=0),0===a&&g>0&&(g-=2*Math.PI),1===a&&g<0&&(g+=2*Math.PI),[f.x,f.y,n,r,h,g,i,a]}}},{key:"calcLength",value:function(e,t,n,r){var i=0,o=null,a=null,s=0;switch(n){case"L":return this.getLineLength(e,t,r[0],r[1]);case"C":for(i=0,o=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)a=this.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"Q":for(i=0,o=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)a=this.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"A":i=0;var l=r[4],c=r[5],u=r[4]+c,d=Math.PI/180;if(Math.abs(l-u)<d&&(d=Math.abs(l-u)),o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),c<0)for(s=l-d;s>u;s-=d)a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=l+d;s<u;s+=d)a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),i}return 0}},{key:"getPointOnLine",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,s=(i-n)/(r-t+X),l=Math.sqrt(e*e/(1+s*s));r<t&&(l*=-1);var c=s*l,u=null;if(r===t)u={x:o,y:a+c};else if((a-n)/(o-t+X)===s)u={x:o+l,y:a+c};else{var d=0,f=0,h=this.getLineLength(t,n,r,i);if(h<X)return null;var p=(o-t)*(r-t)+(a-n)*(i-n);p/=h*h,d=t+p*(r-t),f=n+p*(i-n);var m=this.getLineLength(o,a,d,f),g=Math.sqrt(e*e-m*m);l=Math.sqrt(g*g/(1+s*s)),r<t&&(l*=-1),c=s*l,u={x:d+l,y:f+c}}return u}},{key:"getPointOnPath",value:function(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var i,o=this.dataArray,a=Tn(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(!s||!(s.pathLength<5e-5||n+s.pathLength+5e-5<e)){var l=e-n,c=0;switch(s.command){case"L":r=this.getPointOnLine(l,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case"A":var u=s.points[4],d=s.points[5],f=s.points[4]+d;if(c=u+l/s.pathLength*d,d<0&&c<f||d>=0&&c>f)break;r=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],c,s.points[6]);break;case"C":c=l/s.pathLength,c>1&&(c=1),r=this.getPointOnCubicBezier(c,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case"Q":c=l/s.pathLength,c>1&&(c=1),r=this.getPointOnQuadraticBezier(c,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3]);break;default:}if(r)return r;break}n+=s.pathLength}}catch(h){a.e(h)}finally{a.f()}return null}},{key:"getLineLength",value:function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(e,t){return t.pathLength>0?e+t.pathLength:e}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,t,n,r,i,o,a,s,l){var c=s*Z(e)+o*ee(e)+r*te(e)+t*ne(e),u=l*Z(e)+a*ee(e)+i*te(e)+n*ne(e);return{x:c,y:u}}},{key:"getPointOnQuadraticBezier",value:function(e,t,n,r,i,o,a){var s=o*re(e)+r*ie(e)+t*oe(e),l=a*re(e)+i*ie(e)+n*oe(e);return{x:s,y:l}}},{key:"getPointOnEllipticalArc",value:function(e,t,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),l={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(l.x*a-l.y*s),y:t+(l.x*s+l.y*a)}}},{key:"buildEquidistantCache",value:function(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var o=0,a=0;a<=n;a+=r){var s=this.getPointOnPath(a),l=this.getPointOnPath(a+r);s&&l&&(o+=this.getLineLength(s.x,s.y,l.x,l.y),o>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:a}),o-=i))}}}},{key:"getEquidistantPointOnPath",value:function(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}]),n}(Ke);function Nn(e){return function(){var t,n=x()(e);if(Ln()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Ln(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Dn=function(e){C()(n,e);var t=Nn(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.type="image",o.loaded=!1;var a=o.getHrefAttribute().getString();if(!a)return _()(o);var s=/\.svg$/.test(a);return e.images.push(A()(o)),s?o.loadSvg(a):o.loadImage(a),o.isSvg=s,o}return p()(n,[{key:"loadImage",value:function(){var e=l()(a.a.mark((function e(t){var n;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.document.createImage(t);case 3:n=e.sent,this.image=n,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.error('Error while loading image "'.concat(t,'":'),e.t0);case 10:this.loaded=!0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"loadSvg",value:function(){var e=l()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.document.fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:r=e.sent,this.image=r,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),console.error('Error while loading image "'.concat(t,'":'),e.t0);case 13:this.loaded=!0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"renderChildren",value:function(e){var t=this.document,n=this.image,r=this.loaded,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(r&&n&&a&&s){if(e.save(),this.isSvg)t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:o,scaleWidth:a,scaleHeight:s}).render();else{var l=this.image;e.translate(i,o),t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:l.width,height:s,desiredHeight:l.height}),this.loaded&&("undefined"===typeof l.complete||l.complete)&&e.drawImage(l,0,0)}e.restore()}}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new Ue(e,t,e+n,t+r)}}]),n}(We);function jn(e){return function(){var t,n=x()(e);if(Fn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Fn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Bn=function(e){C()(n,e);var t=jn(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="symbol",e}return p()(n,[{key:"render",value:function(e){}}]),n}(We),qn=function(){function e(t){f()(this,e),this.document=t,this.loaded=!1,t.fonts.push(this)}return p()(e,[{key:"load",value:function(){var e=l()(a.a.mark((function e(t,n){var r,i,o;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=this.document,e.next=4,r.canvg.parser.load(n);case 4:i=e.sent,o=i.getElementsByTagName("font"),Array.from(o).forEach((function(e){var n=r.createElement(e);r.definitions[t]=n})),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.error('Error while loading font "'.concat(n,'":'),e.t0);case 12:this.loaded=!0;case 13:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t,n){return e.apply(this,arguments)}return t}()}]),e}();function zn(e){return function(){var t,n=x()(e);if(Un()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Un(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Gn=function(e){C()(n,e);var t=zn(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.type="style";var a=P(Array.from(r.childNodes).map((function(e){return e.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=a.split("}");return s.forEach((function(t){var n=t.trim();if(n){var r=n.split("{"),i=r[0].split(","),o=r[1].split(";");i.forEach((function(t){var n=t.trim();if(n){var r=e.styles[n]||{};if(o.forEach((function(t){var n=t.indexOf(":"),i=t.substr(0,n).trim(),o=t.substr(n+1,t.length-n).trim();i&&o&&(r[i]=new se(e,i,o))})),e.styles[n]=r,e.stylesSpecificity[n]=K(n),"@font-face"===n){var i=r["font-family"].getString().replace(/"|'/g,""),a=r.src.getString().split(",");a.forEach((function(t){if(t.indexOf('format("svg")')>0){var n=F(t);n&&new qn(e).load(i,n)}}))}}}))}})),o}return n}(Me);function Vn(e){return function(){var t,n=x()(e);if(Wn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Wn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}Gn.parseExternalUrl=F;var Hn=function(e){C()(n,e);var t=Vn(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="use",e}return p()(n,[{key:"setContext",value:function(e){T()(x()(n.prototype),"setContext",this).call(this,e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}},{key:"path",value:function(e){var t=this.element;t&&t.path(e)}},{key:"renderChildren",value:function(e){var t=this.document,n=this.element;if(n){var r=n;if("symbol"===n.type&&(r=new lt(t,null),r.attributes.viewBox=new se(t,"viewBox",n.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new se(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new se(t,"overflow",n.getAttribute("overflow").getString()),r.children=n.children),"svg"===r.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(r.attributes.width=new se(t,"width",i.getString())),o.hasValue()&&(r.attributes.height=new se(t,"height",o.getString()))}var a=r.parent;r.parent=this,r.render(e),r.parent=a}}},{key:"getBoundingBox",value:function(e){var t=this.element;return t?t.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,t=this.element;return Pe.fromElement(e,t)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),n}(We);function $n(e){return function(){var t,n=x()(e);if(Kn()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Kn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Xn(e,t,n,r,i,o){return e[n*r*4+4*t+o]}function Yn(e,t,n,r,i,o,a){e[n*r*4+4*t+o]=a}function Jn(e,t,n){var r=e[t];return r*(r<0?n-255:n)}function Qn(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}var Zn=function(e){C()(n,e);var t=$n(n);function n(e,r,i){var o;f()(this,n),o=t.call(this,e,r,i),o.type="feColorMatrix";var a=L(o.getAttribute("values").getString());switch(o.getAttribute("type").getString("matrix")){case"saturate":var s=a[0];a=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var l=a[0]*Math.PI/180;a=[Qn(l,.213,.787,-.213),Qn(l,.715,-.715,-.715),Qn(l,.072,-.072,.928),0,0,Qn(l,.213,-.213,.143),Qn(l,.715,.285,.14),Qn(l,.072,-.072,-.283),0,0,Qn(l,.213,-.213,-.787),Qn(l,.715,-.715,.715),Qn(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return o.matrix=a,o.includeOpacity=o.getAttribute("includeOpacity").hasValue(),o}return p()(n,[{key:"apply",value:function(e,t,n,r,i){for(var o=this.includeOpacity,a=this.matrix,s=e.getImageData(0,0,r,i),l=0;l<i;l++)for(var c=0;c<r;c++){var u=Xn(s.data,c,l,r,i,0),d=Xn(s.data,c,l,r,i,1),f=Xn(s.data,c,l,r,i,2),h=Xn(s.data,c,l,r,i,3),p=Jn(a,0,u)+Jn(a,1,d)+Jn(a,2,f)+Jn(a,3,h)+Jn(a,4,1),m=Jn(a,5,u)+Jn(a,6,d)+Jn(a,7,f)+Jn(a,8,h)+Jn(a,9,1),g=Jn(a,10,u)+Jn(a,11,d)+Jn(a,12,f)+Jn(a,13,h)+Jn(a,14,1),v=Jn(a,15,u)+Jn(a,16,d)+Jn(a,17,f)+Jn(a,18,h)+Jn(a,19,1);o&&(p=m=g=0,v*=h/255),Yn(s.data,c,l,r,i,0,p),Yn(s.data,c,l,r,i,1,m),Yn(s.data,c,l,r,i,2,g),Yn(s.data,c,l,r,i,3,v)}e.clearRect(0,0,r,i),e.putImageData(s,0,0)}}]),n}(Me);function er(e){return function(){var t,n=x()(e);if(tr()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function tr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var nr=function(e){C()(n,e);var t=er(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="mask",e}return p()(n,[{key:"apply",value:function(e,t){var r=this.document,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var l=new Ue;this.children.forEach((function(t){l.addBoundingBox(t.getBoundingBox(e))})),i=Math.floor(l.x1),o=Math.floor(l.y1),a=Math.floor(l.width),s=Math.floor(l.height)}var c=this.removeStyles(t,n.ignoreStyles),u=r.createCanvas(i+a,o+s),d=u.getContext("2d");r.screen.setDefaults(d),this.renderChildren(d),new Zn(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(d,0,0,i+a,o+s);var f=r.createCanvas(i+a,o+s),h=f.getContext("2d");r.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=d.createPattern(u,"no-repeat"),h.fillRect(0,0,i+a,o+s),e.fillStyle=h.createPattern(f,"no-repeat"),e.fillRect(0,0,i+a,o+s),this.restoreStyles(t,c)}},{key:"render",value:function(e){}}]),n}(Me);function rr(e){return function(){var t,n=x()(e);if(ir()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function ir(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}nr.ignoreStyles=["mask","transform","clip-path"];var or=function(){},ar=function(e){C()(n,e);var t=rr(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="clipPath",e}return p()(n,[{key:"apply",value:function(e){var t=this.document,n=Reflect.getPrototypeOf(e),r=e.beginPath,i=e.closePath;n&&(n.beginPath=or,n.closePath=or),Reflect.apply(r,e,[]),this.children.forEach((function(r){if("undefined"!==typeof r.path){var o="undefined"!==typeof r.elementTransform?r.elementTransform():null;o||(o=Pe.fromElement(t,r)),o&&o.apply(e),r.path(e),n&&(n.closePath=i),o&&o.unapply(e)}})),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}},{key:"render",value:function(e){}}]),n}(Me);function sr(e){return function(){var t,n=x()(e);if(lr()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function lr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var cr=function(e){C()(n,e);var t=sr(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="filter",e}return p()(n,[{key:"apply",value:function(e,t){var r=this.document,i=this.children,o=t.getBoundingBox(e);if(o){var a=0,s=0;i.forEach((function(e){var t=e.extraFilterDistance||0;a=Math.max(a,t),s=Math.max(s,t)}));var l=Math.floor(o.width),c=Math.floor(o.height),u=l+2*a,d=c+2*s;if(!(u<1||d<1)){var f=Math.floor(o.x),h=Math.floor(o.y),p=this.removeStyles(t,n.ignoreStyles),m=r.createCanvas(u,d),g=m.getContext("2d");r.screen.setDefaults(g),g.translate(-f+a,-h+s),t.render(g),i.forEach((function(e){"function"===typeof e.apply&&e.apply(g,0,0,u,d)})),e.drawImage(m,0,0,u,d,f-a,h-s,u,d),this.restoreStyles(t,p)}}}},{key:"render",value:function(e){}}]),n}(Me);function ur(e){return function(){var t,n=x()(e);if(dr()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function dr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}cr.ignoreStyles=["filter","transform","clip-path"];var fr=function(e){C()(n,e);var t=ur(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="feDropShadow",o.addStylesFromStyleDefinition(),o}return p()(n,[{key:"apply",value:function(e,t,n,r,i){}}]),n}(Me);function hr(e){return function(){var t,n=x()(e);if(pr()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function pr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var mr=function(e){C()(n,e);var t=hr(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="feMorphology",e}return p()(n,[{key:"apply",value:function(e,t,n,r,i){}}]),n}(Me);function gr(e){return function(){var t,n=x()(e);if(vr()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function vr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var yr=function(e){C()(n,e);var t=gr(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="feComposite",e}return p()(n,[{key:"apply",value:function(e,t,n,r,i){}}]),n}(Me);function br(e){return function(){var t,n=x()(e);if(_r()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function _r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var wr=function(e){C()(n,e);var t=br(n);function n(e,r,i){var o;return f()(this,n),o=t.call(this,e,r,i),o.type="feGaussianBlur",o.blurRadius=Math.floor(o.getAttribute("stdDeviation").getNumber()),o.extraFilterDistance=o.blurRadius,o}return p()(n,[{key:"apply",value:function(e,t,n,r,i){var o=this.document,a=this.blurRadius,s=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),s&&(l.style.display="none",s.appendChild(l)),Object(R["a"])(l,t,n,r,i,a),s&&s.removeChild(l)}}]),n}(Me);function xr(e){return function(){var t,n=x()(e);if(Sr()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function Sr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cr=function(e){C()(n,e);var t=xr(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="title",e}return n}(Me);function Er(e){return function(){var t,n=x()(e);if(kr()){var r=x()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _()(this,t)}}function kr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Or=function(e){C()(n,e);var t=Er(n);function n(){var e;return f()(this,n),e=t.apply(this,arguments),e.type="desc",e}return n}(Me),Tr={svg:lt,rect:dt,circle:pt,ellipse:vt,line:_t,polyline:St,polygon:kt,path:ot,pattern:It,marker:Pt,defs:Lt,linearGradient:Vt,radialGradient:$t,stop:Yt,animate:Zt,animateColor:nn,animateTransform:an,font:fn,"font-face":mn,"missing-glyph":yn,glyph:wn,text:Ke,tspan:Je,tref:Cn,a:On,textPath:Mn,image:Dn,g:Ft,symbol:Bn,style:Gn,use:Hn,mask:nr,clipPath:ar,filter:cr,feDropShadow:fr,feMorphology:mr,feComposite:yr,feColorMatrix:Zn,feGaussianBlur:wr,title:Cr,desc:Or};function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rr(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function Pr(e){return Mr.apply(this,arguments)}function Mr(){return Mr=l()(a.a.mark((function e(t){var n,r,i=arguments;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=document.createElement("img"),n&&(r.crossOrigin="Anonymous"),e.abrupt("return",new Promise((function(e,n){r.onload=function(){e(r)},r.onerror=function(){n()},r.src=t})));case 4:case"end":return e.stop()}}),e)}))),Mr.apply(this,arguments)}var Nr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.rootEmSize,i=void 0===r?12:r,o=n.emSize,a=void 0===o?12:o,s=n.createCanvas,l=void 0===s?e.createCanvas:s,c=n.createImage,u=void 0===c?e.createImage:c,d=n.anonymousCrossOrigin;f()(this,e),this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=i,this.emSize=a,this.createCanvas=l,this.createImage=this.bindCreateImage(u,d),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return p()(e,[{key:"bindCreateImage",value:function(e,t){return"boolean"===typeof t?function(n,r){return e(n,"boolean"===typeof r?r:t)}:e}},{key:"popEmSize",value:function(){var e=this.emSizeStack;e.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every((function(e){return e.loaded}))}},{key:"isFontsLoaded",value:function(){return this.fonts.every((function(e){return e.loaded}))}},{key:"createDocumentElement",value:function(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}},{key:"createElement",value:function(t){var n=t.nodeName.replace(/^[^:]+:/,""),r=e.elementTypes[n];return"undefined"!==typeof r?new r(this,t):new De(this,t)}},{key:"createTextNode",value:function(e){return new et(this,e)}},{key:"setViewBox",value:function(e){this.screen.setViewBox(Ar({document:this},e))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var e=this.emSizeStack;return e[e.length-1]},set:function(e){var t=this.emSizeStack;t.push(e)}}]),e}();function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Nr.createCanvas=Rr,Nr.createImage=Pr,Nr.elementTypes=Tr;var jr=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};f()(this,e),this.parser=new ge(r),this.screen=new he(t,r),this.options=r;var i=new Nr(this,r),o=i.createDocumentElement(n);this.document=i,this.documentElement=o}return p()(e,[{key:"fork",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.from(t,n,Dr({},this.options,{},r))}},{key:"forkString",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.fromString(t,n,Dr({},this.options,{},r))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var e=l()(a.a.mark((function e(){var t,n=arguments;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},this.start(Dr({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),e.next=4,this.ready();case 4:this.stop();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.documentElement,n=this.screen,r=this.options;n.start(t,Dr({enableRedraw:!0},r,{},e))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,n)}}],[{key:"from",value:function(){var t=l()(a.a.mark((function t(n,r){var i,o,s,l=arguments;return a.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=l.length>2&&void 0!==l[2]?l[2]:{},o=new ge(i),t.next=4,o.parse(r);case 4:return s=t.sent,t.abrupt("return",new e(n,s,i));case 6:case"end":return t.stop()}}),t)})));function n(e,n){return t.apply(this,arguments)}return n}()},{key:"fromString",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new ge(r),o=i.parseFromString(n);return new e(t,o,r)}}]),e}();t["a"]=jr}).call(this,n("f28c"))},"0d7e":function(e,t,n){"use strict";n("43a9")},"0e1f":function(e,t,n){var r=n("9c2cc"),i=n("5b1a"),o=n("7caa").f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},"0e40":function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"0e9a":function(e,t,n){"use strict";n("f009")},"0ec0":function(e,t,n){"use strict";var r=n("da5c"),i=n("cef7"),o=n("57cb"),a=n("38f3"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(t){var n=e.call(this)||this;return n.eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return s(t,e),t.prototype.addEventListener=function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}},t.prototype.dispatchEvent=function(e){var t="string"===typeof e?new i["a"](e):e,n=t.type;t.target||(t.target=this.eventTarget_||this);var r,a=this.listeners_&&this.listeners_[n];if(a){var s=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});n in s||(s[n]=0,l[n]=0),++s[n];for(var c=0,u=a.length;c<u;++c)if(r="handleEvent"in a[c]?a[c].handleEvent(t):a[c].call(this,t),!1===r||t.propagationStopped){r=!1;break}if(--s[n],0===s[n]){var d=l[n];delete l[n];while(d--)this.removeEventListener(n,o["c"]);delete s[n]}return r}},t.prototype.disposeInternal=function(){this.listeners_&&Object(a["b"])(this.listeners_)},t.prototype.getListeners=function(e){return this.listeners_&&this.listeners_[e]||void 0},t.prototype.hasListener=function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)},t.prototype.removeEventListener=function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=o["c"],++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}},t}(r["a"]);t["a"]=l},"0ed5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:"corn表达式",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleSubmit,cancel:e.close}},[n("div",{staticClass:"card-container"},[n("a-tabs",{attrs:{type:"card"}},[n("a-tab-pane",{key:"1",attrs:{type:"card"}},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 秒")],1),n("a-radio-group",{model:{value:e.result.second.cronEvery,callback:function(t){e.$set(e.result.second,"cronEvery",t)},expression:"result.second.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一秒钟")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n              "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.second.incrementIncrement,callback:function(t){e.$set(e.result.second,"incrementIncrement",t)},expression:"result.second.incrementIncrement"}}),e._v("\n              秒执行 从\n              "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.second.incrementStart,callback:function(t){e.$set(e.result.second,"incrementStart",t)},expression:"result.second.incrementStart"}}),e._v("\n              秒开始\n            ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"3"}},[e._v("具体秒数(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.second.specificSpecific,callback:function(t){e.$set(e.result.second,"specificSpecific",t)},expression:"result.second.specificSpecific"}},e._l(60,(function(t,r){return n("a-select-option",{key:r,attrs:{value:r}},[e._v(e._s(r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("周期从\n              "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.second.rangeStart,callback:function(t){e.$set(e.result.second,"rangeStart",t)},expression:"result.second.rangeStart"}}),e._v("\n              到\n              "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.second.rangeEnd,callback:function(t){e.$set(e.result.second,"rangeEnd",t)},expression:"result.second.rangeEnd"}}),e._v("\n              秒\n            ")],1)],1)],1)],1),n("a-tab-pane",{key:"2"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v("分")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.minute.cronEvery,callback:function(t){e.$set(e.result.minute,"cronEvery",t)},expression:"result.minute.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一分钟")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.minute.incrementIncrement,callback:function(t){e.$set(e.result.minute,"incrementIncrement",t)},expression:"result.minute.incrementIncrement"}}),e._v("\n                分执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.minute.incrementStart,callback:function(t){e.$set(e.result.minute,"incrementStart",t)},expression:"result.minute.incrementStart"}}),e._v("\n                分开始\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"3"}},[e._v("具体分钟数(可多选)")]),n("a-select",{staticStyle:{width:"340px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.minute.specificSpecific,callback:function(t){e.$set(e.result.minute,"specificSpecific",t)},expression:"result.minute.specificSpecific"}},e._l(Array(60),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r}},[e._v(" "+e._s(r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("周期从\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.minute.rangeStart,callback:function(t){e.$set(e.result.minute,"rangeStart",t)},expression:"result.minute.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.minute.rangeEnd,callback:function(t){e.$set(e.result.minute,"rangeEnd",t)},expression:"result.minute.rangeEnd"}}),e._v("\n                分\n              ")],1)],1)],1)],1)]),n("a-tab-pane",{key:"3"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 时")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.hour.cronEvery,callback:function(t){e.$set(e.result.hour,"cronEvery",t)},expression:"result.hour.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一小时")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.incrementIncrement,callback:function(t){e.$set(e.result.hour,"incrementIncrement",t)},expression:"result.hour.incrementIncrement"}}),e._v("\n                小时执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.incrementStart,callback:function(t){e.$set(e.result.hour,"incrementStart",t)},expression:"result.hour.incrementStart"}}),e._v("\n                小时开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"3"}},[e._v("具体小时数(可多选)")]),n("a-select",{staticStyle:{width:"340px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.hour.specificSpecific,callback:function(t){e.$set(e.result.hour,"specificSpecific",t)},expression:"result.hour.specificSpecific"}},e._l(Array(24),(function(t,r){return n("a-select-option",{key:r},[e._v(e._s(r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("周期从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.rangeStart,callback:function(t){e.$set(e.result.hour,"rangeStart",t)},expression:"result.hour.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.rangeEnd,callback:function(t){e.$set(e.result.hour,"rangeEnd",t)},expression:"result.hour.rangeEnd"}}),e._v("\n                小时\n              ")],1)],1)],1)],1)]),n("a-tab-pane",{key:"4"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v("  天")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.day.cronEvery,callback:function(t){e.$set(e.result.day,"cronEvery",t)},expression:"result.day.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一天")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:7},model:{value:e.result.week.incrementIncrement,callback:function(t){e.$set(e.result.week,"incrementIncrement",t)},expression:"result.week.incrementIncrement"}}),e._v("\n                周执行 从\n                "),n("a-select",{attrs:{size:"small"},model:{value:e.result.week.incrementStart,callback:function(t){e.$set(e.result.week,"incrementStart",t)},expression:"result.week.incrementStart"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1),e._v("\n                开始\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"3"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.incrementIncrement,callback:function(t){e.$set(e.result.day,"incrementIncrement",t)},expression:"result.day.incrementIncrement"}}),e._v("\n                天执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.incrementStart,callback:function(t){e.$set(e.result.day,"incrementStart",t)},expression:"result.day.incrementStart"}}),e._v("\n                天开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"4"}},[e._v("具体星期几(可多选)")]),n("a-select",{staticStyle:{width:"340px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.week.specificSpecific,callback:function(t){e.$set(e.result.week,"specificSpecific",t)},expression:"result.week.specificSpecific"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"5"}},[e._v("具体天数(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.day.specificSpecific,callback:function(t){e.$set(e.result.day,"specificSpecific",t)},expression:"result.day.specificSpecific"}},e._l(Array(31),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(r+1))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"6"}},[e._v("在这个月的最后一天")])],1),n("a-row",[n("a-radio",{attrs:{value:"7"}},[e._v("在这个月的最后一个工作日")])],1),n("a-row",[n("a-radio",{attrs:{value:"8"}},[e._v("在这个月的最后一个\n                "),n("a-select",{attrs:{size:"small"},model:{value:e.result.day.cronLastSpecificDomDay,callback:function(t){e.$set(e.result.day,"cronLastSpecificDomDay",t)},expression:"result.day.cronLastSpecificDomDay"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1)],1)],1),n("a-row",[n("a-radio",{attrs:{value:"9"}},[e._v("\n                在本月底前\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.cronDaysBeforeEomMinus,callback:function(t){e.$set(e.result.day,"cronDaysBeforeEomMinus",t)},expression:"result.day.cronDaysBeforeEomMinus"}}),e._v("\n                天\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"10"}},[e._v("最近的工作日(周一至周五)至本月\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.cronDaysNearestWeekday,callback:function(t){e.$set(e.result.day,"cronDaysNearestWeekday",t)},expression:"result.day.cronDaysNearestWeekday"}}),e._v("\n                日\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"11"}},[e._v("在这个月的第\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:5},model:{value:e.result.week.cronNthDayNth,callback:function(t){e.$set(e.result.week,"cronNthDayNth",t)},expression:"result.week.cronNthDayNth"}}),e._v("\n                个\n                "),n("a-select",{attrs:{size:"small"},model:{value:e.result.week.cronNthDayDay,callback:function(t){e.$set(e.result.week,"cronNthDayDay",t)},expression:"result.week.cronNthDayDay"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1)],1)],1)],1)],1)]),n("a-tab-pane",{key:"5"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 月")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.month.cronEvery,callback:function(t){e.$set(e.result.month,"cronEvery",t)},expression:"result.month.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一月")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:12},model:{value:e.result.month.incrementIncrement,callback:function(t){e.$set(e.result.month,"incrementIncrement",t)},expression:"result.month.incrementIncrement"}}),e._v("\n                月执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:12},model:{value:e.result.month.incrementStart,callback:function(t){e.$set(e.result.month,"incrementStart",t)},expression:"result.month.incrementStart"}}),e._v("\n                月开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"3"}},[e._v("具体月数(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",filterable:"",mode:"multiple"},model:{value:e.result.month.specificSpecific,callback:function(t){e.$set(e.result.month,"specificSpecific",t)},expression:"result.month.specificSpecific"}},e._l(Array(12),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(r+1))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("从\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:12},model:{value:e.result.month.rangeStart,callback:function(t){e.$set(e.result.month,"rangeStart",t)},expression:"result.month.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:12},model:{value:e.result.month.rangeEnd,callback:function(t){e.$set(e.result.month,"rangeEnd",t)},expression:"result.month.rangeEnd"}}),e._v("\n                月之间的每个月\n              ")],1)],1)],1)],1)]),n("a-tab-pane",{key:"6"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 年")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.year.cronEvery,callback:function(t){e.$set(e.result.year,"cronEvery",t)},expression:"result.year.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一年")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:99},model:{value:e.result.year.incrementIncrement,callback:function(t){e.$set(e.result.year,"incrementIncrement",t)},expression:"result.year.incrementIncrement"}}),e._v("\n                年执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:2019,max:2119},model:{value:e.result.year.incrementStart,callback:function(t){e.$set(e.result.year,"incrementStart",t)},expression:"result.year.incrementStart"}}),e._v("\n                年开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"3"}},[e._v("具体年份(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",filterable:"",mode:"multiple"},model:{value:e.result.year.specificSpecific,callback:function(t){e.$set(e.result.year,"specificSpecific",t)},expression:"result.year.specificSpecific"}},e._l(Array(100),(function(t,r){return n("a-select-option",{key:r,attrs:{value:2019+r}},[e._v(e._s(2019+r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("从\n                "),n("a-input-number",{attrs:{size:"small",min:2019,max:2119},model:{value:e.result.year.rangeStart,callback:function(t){e.$set(e.result.year,"rangeStart",t)},expression:"result.year.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:2019,max:2119},model:{value:e.result.year.rangeEnd,callback:function(t){e.$set(e.result.year,"rangeEnd",t)},expression:"result.year.rangeEnd"}}),e._v("\n                年之间的每一年\n              ")],1)],1)],1)],1)])],1),n("div",{staticClass:"bottom"},[n("span",{staticClass:"value"},[e._v(e._s(this.cron))])])],1)])},i=[],o=(n("c5f6"),n("55dd"),n("6762"),n("2fdb"),n("28a5"),n("6b54"),{name:"VueCron",props:["data"],data:function(){return{visible:!1,confirmLoading:!1,size:"large",weekDays:["天","一","二","三","四","五","六"].map((function(e){return"星期"+e})),result:{second:{},minute:{},hour:{},day:{},week:{},month:{},year:{}},defaultValue:{second:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:0,specificSpecific:[]},minute:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:"0",specificSpecific:[]},hour:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:"0",rangeEnd:"0",specificSpecific:[]},day:{cronEvery:"",incrementStart:1,incrementIncrement:"1",rangeStart:"",rangeEnd:"",specificSpecific:[],cronLastSpecificDomDay:1,cronDaysBeforeEomMinus:1,cronDaysNearestWeekday:1},week:{cronEvery:"",incrementStart:1,incrementIncrement:1,specificSpecific:[],cronNthDayDay:1,cronNthDayNth:1},month:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:1,specificSpecific:[]},year:{cronEvery:"",incrementStart:2017,incrementIncrement:1,rangeStart:2019,rangeEnd:2019,specificSpecific:[]},label:""}}},computed:{modalWidth:function(){return 608},secondsText:function(){var e="",t=this.result.second.cronEvery||"";switch(t.toString()){case"1":e="*";break;case"2":e=this.result.second.incrementStart+"/"+this.result.second.incrementIncrement;break;case"3":this.result.second.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.second.rangeStart+"-"+this.result.second.rangeEnd;break}return e},minutesText:function(){var e="",t=this.result.minute.cronEvery||"";switch(t.toString()){case"1":e="*";break;case"2":e=this.result.minute.incrementStart+"/"+this.result.minute.incrementIncrement;break;case"3":this.result.minute.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.minute.rangeStart+"-"+this.result.minute.rangeEnd;break}return e},hoursText:function(){var e="",t=this.result.hour.cronEvery||"";switch(t.toString()){case"1":e="*";break;case"2":e=this.result.hour.incrementStart+"/"+this.result.hour.incrementIncrement;break;case"3":this.result.hour.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.hour.rangeStart+"-"+this.result.hour.rangeEnd;break}return e},daysText:function(){var e="",t=this.result.day.cronEvery||"";switch(t.toString()){case"1":break;case"2":case"4":case"11":e="?";break;case"3":e=this.result.day.incrementStart+"/"+this.result.day.incrementIncrement;break;case"5":this.result.day.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"6":e="L";break;case"7":e="LW";break;case"8":e=this.result.day.cronLastSpecificDomDay+"L";break;case"9":e="L-"+this.result.day.cronDaysBeforeEomMinus;break;case"10":e=this.result.day.cronDaysNearestWeekday+"W";break}return e},weeksText:function(){var e="",t=this.result.day.cronEvery||"";switch(t.toString()){case"1":case"3":case"5":e="?";break;case"2":e=this.result.week.incrementStart+"/"+this.result.week.incrementIncrement;break;case"4":this.result.week.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"6":case"7":case"8":case"9":case"10":e="?";break;case"11":e=this.result.week.cronNthDayDay+"#"+this.result.week.cronNthDayNth;break}return e},monthsText:function(){var e="",t=this.result.month.cronEvery||"";switch(t.toString()){case"1":e="*";break;case"2":e=this.result.month.incrementStart+"/"+this.result.month.incrementIncrement;break;case"3":this.result.month.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.month.rangeStart+"-"+this.result.month.rangeEnd;break}return e},yearsText:function(){var e="",t=this.result.year.cronEvery||"";switch(t.toString()){case"1":e="*";break;case"2":e=this.result.year.incrementStart+"/"+this.result.year.incrementIncrement;break;case"3":this.result.year.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.year.rangeStart+"-"+this.result.year.rangeEnd;break}return e},cron:function(){return"".concat(this.secondsText||"*"," ").concat(this.minutesText||"*"," ").concat(this.hoursText||"*"," ").concat(this.daysText||"*"," ").concat(this.monthsText||"*"," ").concat(this.weeksText||"?"," ").concat(this.yearsText||"*")}},watch:{visible:{handler:function(){var e=this.data;e?(this.secondsReverseExp(e),this.minutesReverseExp(e),this.hoursReverseExp(e),this.daysReverseExp(e),this.daysReverseExp(e),this.monthsReverseExp(e),this.yearReverseExp(e),JSON.parse(JSON.stringify(e))):this.result=JSON.parse(JSON.stringify(this.defaultValue))}}},methods:{show:function(){this.visible=!0},handleSubmit:function(){this.$emit("ok",this.cron),this.close(),this.visible=!1},close:function(){this.visible=!1},secondsReverseExp:function(e){var t=e.split(" ")[0],n={cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:0,specificSpecific:[]};switch(!0){case t.includes("*"):n.cronEvery="1";break;case t.includes("/"):n.cronEvery="2",n.incrementStart=t.split("/")[0],n.incrementIncrement=t.split("/")[1];break;case t.includes(","):n.cronEvery="3",n.specificSpecific=t.split(",").map(Number).sort();break;case t.includes("-"):n.cronEvery="4",n.rangeStart=t.split("-")[0],n.rangeEnd=t.split("-")[1];break;default:n.cronEvery="1"}this.result.second=n},minutesReverseExp:function(e){var t=e.split(" ")[1],n={cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:0,specificSpecific:[]};switch(!0){case t.includes("*"):n.cronEvery="1";break;case t.includes("/"):n.cronEvery="2",n.incrementStart=t.split("/")[0],n.incrementIncrement=t.split("/")[1];break;case t.includes(","):n.cronEvery="3",n.specificSpecific=t.split(",").map(Number).sort();break;case t.includes("-"):n.cronEvery="4",n.rangeStart=t.split("-")[0],n.rangeEnd=t.split("-")[1];break;default:n.cronEvery="1"}this.result.minute=n},hoursReverseExp:function(e){var t=e.split(" ")[2],n={cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:"0",specificSpecific:[]};switch(!0){case t.includes("*"):n.cronEvery="1";break;case t.includes("/"):n.cronEvery="2",n.incrementStart=t.split("/")[0],n.incrementIncrement=t.split("/")[1];break;case t.includes(","):n.cronEvery="3",n.specificSpecific=t.split(",").map(Number).sort();break;case t.includes("-"):n.cronEvery="4",n.rangeStart=t.split("-")[0],n.rangeEnd=t.split("-")[1];break;default:n.cronEvery="1"}this.result.hour=n},daysReverseExp:function(e){var t=e.split(" ")[3],n=e.split(" ")[5],r={cronEvery:"",incrementStart:1,incrementIncrement:1,rangeStart:1,rangeEnd:1,specificSpecific:[],cronLastSpecificDomDay:1,cronDaysBeforeEomMinus:1,cronDaysNearestWeekday:1},i={cronEvery:"",incrementStart:1,incrementIncrement:1,specificSpecific:[],cronNthDayDay:1,cronNthDayNth:"1"};if(t.includes("?"))switch(!0){case n.includes("/"):r.cronEvery="2",i.incrementStart=n.split("/")[0],i.incrementIncrement=n.split("/")[1];break;case n.includes(","):r.cronEvery="4",i.specificSpecific=n.split(",").map(Number).sort();break;case"#":r.cronEvery="11",i.cronNthDayDay=n.split("#")[0],i.cronNthDayNth=n.split("#")[1];break;default:r.cronEvery="1",i.cronEvery="1"}else switch(!0){case t.includes("*"):r.cronEvery="1";break;case t.includes("?"):break;case t.includes("/"):r.cronEvery="3",r.incrementStart=t.split("/")[0],r.incrementIncrement=t.split("/")[1];break;case t.includes(","):r.cronEvery="5",r.specificSpecific=t.split(",").map(Number).sort();break;case t.includes("LW"):r.cronEvery="7";break;case t.includes("L-"):r.cronEvery="9",r.cronDaysBeforeEomMinus=t.split("L-")[1];break;case t.includes("L"):1==t.len?(r.cronEvery="6",r.cronLastSpecificDomDay="1"):(r.cronEvery="8",r.cronLastSpecificDomDay=Number(t.split("L")[0]));break;case t.includes("W"):r.cronEvery="10",r.cronDaysNearestWeekday=t.split("W")[0];break;default:r.cronEvery="1"}this.result.day=r,this.result.week=i},monthsReverseExp:function(e){var t=e.split(" ")[4],n={cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:1,specificSpecific:[]};switch(!0){case t.includes("*"):n.cronEvery="1";break;case t.includes("/"):n.cronEvery="2",n.incrementStart=t.split("/")[0],n.incrementIncrement=t.split("/")[1];break;case t.includes(","):n.cronEvery="3",n.specificSpecific=t.split(",").map(Number).sort();break;case t.includes("-"):n.cronEvery="4",n.rangeStart=t.split("-")[0],n.rangeEnd=t.split("-")[1];break;default:n.cronEvery="1"}this.result.month=n},yearReverseExp:function(e){var t=e.split(" ")[6],n={cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:2019,rangeEnd:2019,specificSpecific:[]};switch(!0){case t.includes("*"):n.cronEvery="1";break;case t.includes("/"):n.cronEvery="2",n.incrementStart=t.split("/")[0],n.incrementIncrement=t.split("/")[1];break;case t.includes(","):n.cronEvery="3",n.specificSpecific=t.split(",").map(Number).sort();break;case t.includes("-"):n.cronEvery="4",n.rangeStart=t.split("-")[0],n.rangeEnd=t.split("-")[1];break;default:n.cronEvery="1"}this.result.year=n}}}),a=o,s=(n("2e44"),n("bd48"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"30474588",null);t["default"]=l.exports},"0f9d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"}},[n("a-select",{staticStyle:{width:"calc(100% - 178px)"},attrs:{mode:"multiple",placeholder:"Please select",value:e.nameList}}),n("span",{staticStyle:{display:"inline-block",width:"170px",float:"right",overflow:"hidden"}},[n("a-button",{staticStyle:{width:"81px"},attrs:{type:"primary",icon:"search"},on:{click:e.handleSelect}},[e._v("选择")]),n("a-button",{staticStyle:{"margin-left":"8px",width:"81px"},attrs:{type:"primary",icon:"reload"},on:{click:e.selectReset}},[e._v("清空")])],1),n("j-select-multi-user-modal",{ref:"selectModal",on:{selectFinished:e.selectOK}})],1)},i=[],o=(n("7f7f"),n("06db")),a={name:"JSelectMultiUser",components:{JSelectMultiUserModal:o["default"]},props:{value:{type:String,required:!1}},data:function(){return{selectList:[]}},computed:{nameList:function(){for(var e=[],t=0;t<this.selectList.length;t++)e.push(this.selectList[t].name);var n="";return e.length>0&&(n=e.join(",")),this.$emit("change",n),e}},model:{prop:"value",event:"change"},methods:{handleSelect:function(){this.$refs.selectModal.add()},selectReset:function(){this.selectList=[]},selectOK:function(e){this.selectList=e}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},"0fd38":function(e,t,n){},1:function(e,t){},"102e":function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"104f":function(e,t,n){},"10d3":function(e,t,n){"use strict";n("2658")},"10d8":function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"10d9":function(e,t){function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},1146:function(e,t,n){(function(r,i,o){function a(t){t.version="0.16.8";var a=1200,s=1252;"undefined"===typeof cptable&&("undefined"!==typeof r?r.cptable=n("2244"):"undefined"!==typeof window&&(window.cptable=n("2244")));for(var l=[874,932,936,949,950],c=0;c<=8;++c)l.push(1250+c);var u={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},d=function(e){-1!=l.indexOf(e)&&(s=u[0]=e)};function f(){d(1252)}var h=function(e){a=e,d(e)};function p(){h(1200),f()}function m(e){for(var t=[],n=0,r=e.length;n<r;++n)t[n]=e.charCodeAt(n);return t}function g(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}function v(e){for(var t=[],n=0;n<e.length>>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var y=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?g(e.slice(2)):254==t&&255==n?v(e.slice(2)):65279==t?e.slice(1):e},b=function(e){return String.fromCharCode(e)},_=function(e){return String.fromCharCode(e)};"undefined"!==typeof cptable&&(h=function(e){a=e,d(e)},y=function(e){return 255===e.charCodeAt(0)&&254===e.charCodeAt(1)?cptable.utils.decode(1200,m(e.slice(2))):e},b=function(e){return 1200===a?String.fromCharCode(e):cptable.utils.decode(a,[255&e,e>>8])[0]},_=function(e){return cptable.utils.decode(s,[e])[0]});var w=null,x=!0,S=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(t){for(var n="",r=0,i=0,o=0,a=0,s=0,l=0,c=0,u=0;u<t.length;)r=t.charCodeAt(u++),a=r>>2,i=t.charCodeAt(u++),s=(3&r)<<4|i>>4,o=t.charCodeAt(u++),l=(15&i)<<2|o>>6,c=63&o,isNaN(i)?l=c=64:isNaN(o)&&(c=64),n+=e.charAt(a)+e.charAt(s)+e.charAt(l)+e.charAt(c);return n},decode:function(t){var n="",r=0,i=0,o=0,a=0,s=0,l=0,c=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<t.length;)a=e.indexOf(t.charAt(u++)),s=e.indexOf(t.charAt(u++)),r=a<<2|s>>4,n+=String.fromCharCode(r),l=e.indexOf(t.charAt(u++)),i=(15&s)<<4|l>>2,64!==l&&(n+=String.fromCharCode(i)),c=e.indexOf(t.charAt(u++)),o=(3&l)<<6|c,64!==c&&(n+=String.fromCharCode(o));return n}}}(),C="undefined"!==typeof i&&"undefined"!==typeof o&&"undefined"!==typeof o.versions&&!!o.versions.node,E=function(){};if("undefined"!==typeof i){var k=!i.from;if(!k)try{i.from("foo","utf8")}catch(uv){k=!0}E=k?function(e,t){return t?new i(e,t):new i(e)}:i.from.bind(i),i.alloc||(i.alloc=function(e){return new i(e)}),i.allocUnsafe||(i.allocUnsafe=function(e){return new i(e)})}function O(e){return C?i.alloc(e):new Array(e)}function T(e){return C?i.allocUnsafe(e):new Array(e)}var I=function(e){return C?E(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function A(e){if("undefined"===typeof ArrayBuffer)return I(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function R(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function P(e){if("undefined"===typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}function M(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return M(new Uint8Array(e));for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}var N=function(e){return[].concat.apply([],e)},L=/\u0000/g,D=/[\u0001-\u0006]/g,j={},F=function(e){function t(e){var t="",n=e.length-1;while(n>=0)t+=e.charAt(n--);return t}function n(e,t){var n="";while(n.length<t)n+=e;return n}function r(e,t){var r=""+e;return r.length>=t?r:n("0",t-r.length)+r}function i(e,t){var r=""+e;return r.length>=t?r:n(" ",t-r.length)+r}function o(e,t){var r=""+e;return r.length>=t?r:r+n(" ",t-r.length)}function a(e,t){var r=""+Math.round(e);return r.length>=t?r:n("0",t-r.length)+r}function s(e,t){var r=""+e;return r.length>=t?r:n("0",t-r.length)+r}e.version="0.11.2";var l=Math.pow(2,32);function c(e,t){if(e>l||e<-l)return a(e,t);var n=Math.round(e);return s(n,t)}function u(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var d=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],f=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function h(e){e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "'}var p={};h(p);var m=[],g=0;for(g=5;g<=8;++g)m[g]=32+g;for(g=23;g<=26;++g)m[g]=0;for(g=27;g<=31;++g)m[g]=14;for(g=50;g<=58;++g)m[g]=14;for(g=59;g<=62;++g)m[g]=g-58;for(g=67;g<=68;++g)m[g]=g-58;for(g=72;g<=75;++g)m[g]=g-58;for(g=67;g<=68;++g)m[g]=g-57;for(g=76;g<=78;++g)m[g]=g-56;for(g=79;g<=81;++g)m[g]=g-34;var v=[];function y(e,t,n){var r=e<0?-1:1,i=e*r,o=0,a=1,s=0,l=1,c=0,u=0,d=Math.floor(i);while(c<t){if(d=Math.floor(i),s=d*a+o,u=d*c+l,i-d<5e-8)break;i=1/(i-d),o=a,a=s,l=c,c=u}if(u>t&&(c>t?(u=l,s=o):(u=c,s=a)),!n)return[0,r*s,u];var f=Math.floor(r*s/u);return[f,r*s-f*u,u]}function b(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),o=0,a=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),r<60&&(o=(o+6)%7),n&&(o=O(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}v[5]=v[63]='"$"#,##0_);\\("$"#,##0\\)',v[6]=v[64]='"$"#,##0_);[Red]\\("$"#,##0\\)',v[7]=v[65]='"$"#,##0.00_);\\("$"#,##0.00\\)',v[8]=v[66]='"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',v[41]='_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',v[42]='_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',v[43]='_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',v[44]='_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)',e.parse_date_code=b;var _=new Date(1899,11,31,0,0,0),w=_.getTime(),x=new Date(1900,2,1,0,0,0);function S(e,t){var n=e.getTime();return t?n-=1262304e5:e>=x&&(n+=864e5),(n-(w+6e4*(e.getTimezoneOffset()-_.getTimezoneOffset())))/864e5}function C(e){return e.toString(10)}e._general_int=C;var E=function(){var e=/(?:\.0*|(\.\d*[1-9])0+)$/;function t(t){return-1==t.indexOf(".")?t:t.replace(e,"$1")}var n=/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,r=/(E[+-])(\d)$/;function i(e){return-1==e.indexOf("E")?e:e.replace(n,"$1E").replace(r,"$10$2")}function o(e){var n=e<0?12:11,r=t(e.toFixed(12));return r.length<=n?r:(r=e.toPrecision(10),r.length<=n?r:e.toExponential(5))}function a(e){var n=t(e.toFixed(11));return n.length>(e<0?12:11)||"0"===n||"-0"===n?e.toPrecision(6):n}function s(e){var n,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return n=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?o(e):10===r?e.toFixed(10).substr(0,12):a(e),t(i(n.toUpperCase()))}return s}();function k(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):E(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return B(14,S(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function O(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function T(e,t,n,i){var o,a="",s=0,l=0,c=n.y,u=0;switch(e){case 98:c=n.y+543;case 121:switch(t.length){case 1:case 2:o=c%100,u=2;break;default:o=c%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:o=n.m,u=t.length;break;case 3:return f[n.m-1][1];case 5:return f[n.m-1][0];default:return f[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,u=t.length;break;case 3:return d[n.q][0];default:return d[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(l=i>=2?3===i?1e3:100:1===i?10:1,s=Math.round(l*(n.S+n.u)),s>=60*l&&(s=0),"s"===t?0===s?"0":""+s/l:(a=r(s,2+i),"ss"===t?a.substr(0,2):"."+a.substr(2,t.length-1))):r(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}u=3===t.length?1:2;break;case 101:o=c,u=1;break}var h=u>0?r(o,u):"";return h}function I(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}e._general_num=E,e._general=k;var A=function(){var e=/%/g;function a(t,r,i){var o=r.replace(e,""),a=r.length-o.length;return A(t,o,i*Math.pow(10,2*a))+n("%",a)}function s(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return A(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function l(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+l(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),-1===n.indexOf("e")){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o);while("0."===n.substr(0,2))n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var u=/# (\?+)( ?)\/( ?)(\d+)/;function d(e,t,o){var a=parseInt(e[4],10),s=Math.round(t*a),l=Math.floor(s/a),c=s-l*a,u=a;return o+(0===l?"":""+l)+" "+(0===c?n(" ",e[1].length+1+e[4].length):i(c,e[1].length)+e[2]+"/"+e[3]+r(u,e[4].length))}function f(e,t,r){return r+(0===t?"":""+t)+n(" ",e[1].length+2+e[4].length)}var h=/^#*0*\.([0#]+)/,p=/\).*[0#]/,m=/\(###\) ###\\?-####/;function g(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function v(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function b(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function _(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function w(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function x(e,f,S){if(40===e.charCodeAt(0)&&!f.match(p)){var C=f.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return S>=0?x("n",C,S):"("+x("n",C,-S)+")"}if(44===f.charCodeAt(f.length-1))return s(e,f,S);if(-1!==f.indexOf("%"))return a(e,f,S);if(-1!==f.indexOf("E"))return l(f,S);if(36===f.charCodeAt(0))return"$"+x(e,f.substr(" "==f.charAt(1)?2:1),S);var E,k,O,T,R=Math.abs(S),P=S<0?"-":"";if(f.match(/^00+$/))return P+c(R,f.length);if(f.match(/^[#?]+$/))return E=c(S,0),"0"===E&&(E=""),E.length>f.length?E:g(f.substr(0,f.length-E.length))+E;if(k=f.match(u))return d(k,R,P);if(f.match(/^#+0+$/))return P+c(R,f.length-f.indexOf("0"));if(k=f.match(h))return E=v(S,k[1].length).replace(/^([^\.]+)$/,"$1."+g(k[1])).replace(/\.$/,"."+g(k[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",g(k[1]).length-t.length)})),-1!==f.indexOf("0.")?E:E.replace(/^0\./,".");if(f=f.replace(/^#+([0.])/,"$1"),k=f.match(/^(0*)\.(#*)$/))return P+v(R,k[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,k[1].length?"0.":".");if(k=f.match(/^#{1,3},##0(\.?)$/))return P+I(c(R,0));if(k=f.match(/^#,##0\.([#0]*0)$/))return S<0?"-"+x(e,f,-S):I(""+(Math.floor(S)+_(S,k[1].length)))+"."+r(b(S,k[1].length),k[1].length);if(k=f.match(/^#,#*,#0/))return x(e,f.replace(/^#,#*,/,""),S);if(k=f.match(/^([0#]+)(\\?-([0#]+))+$/))return E=t(x(e,f.replace(/[\\-]/g,""),S)),O=0,t(t(f.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return O<E.length?E.charAt(O++):"0"===e?"0":""})));if(f.match(m))return E=x(e,"##########",S),"("+E.substr(0,3)+") "+E.substr(3,3)+"-"+E.substr(6);var M="";if(k=f.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return O=Math.min(k[4].length,7),T=y(R,Math.pow(10,O)-1,!1),E=""+P,M=A("n",k[1],T[1])," "==M.charAt(M.length-1)&&(M=M.substr(0,M.length-1)+"0"),E+=M+k[2]+"/"+k[3],M=o(T[2],O),M.length<k[4].length&&(M=g(k[4].substr(k[4].length-M.length))+M),E+=M,E;if(k=f.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return O=Math.min(Math.max(k[1].length,k[4].length),7),T=y(R,Math.pow(10,O)-1,!0),P+(T[0]||(T[1]?"":"0"))+" "+(T[1]?i(T[1],O)+k[2]+"/"+k[3]+o(T[2],O):n(" ",2*O+1+k[2].length+k[3].length));if(k=f.match(/^[#0?]+$/))return E=c(S,0),f.length<=E.length?E:g(f.substr(0,f.length-E.length))+E;if(k=f.match(/^([#0?]+)\.([#0]+)$/)){E=""+S.toFixed(Math.min(k[2].length,10)).replace(/([^0])0+$/,"$1"),O=E.indexOf(".");var N=f.indexOf(".")-O,L=f.length-E.length-N;return g(f.substr(0,N)+E+f.substr(f.length-L))}if(k=f.match(/^00,000\.([#0]*0)$/))return O=b(S,k[1].length),S<0?"-"+x(e,f,-S):I(w(S)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?r(0,3-e.length):"")+e}))+"."+r(O,k[1].length);switch(f){case"###,##0.00":return x(e,"#,##0.00",S);case"###,###":case"##,###":case"#,###":var D=I(c(R,0));return"0"!==D?P+D:"";case"###,###.00":return x(e,"###,##0.00",S).replace(/^0\./,".");case"#,###.00":return x(e,"#,##0.00",S).replace(/^0\./,".");default:}throw new Error("unsupported format |"+f+"|")}function S(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return A(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function C(t,r,i){var o=r.replace(e,""),a=r.length-o.length;return A(t,o,i*Math.pow(10,2*a))+n("%",a)}function E(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+E(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),!n.match(/[Ee]/)){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function k(e,a,s){if(40===e.charCodeAt(0)&&!a.match(p)){var l=a.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return s>=0?k("n",l,s):"("+k("n",l,-s)+")"}if(44===a.charCodeAt(a.length-1))return S(e,a,s);if(-1!==a.indexOf("%"))return C(e,a,s);if(-1!==a.indexOf("E"))return E(a,s);if(36===a.charCodeAt(0))return"$"+k(e,a.substr(" "==a.charAt(1)?2:1),s);var c,d,v,b,_=Math.abs(s),w=s<0?"-":"";if(a.match(/^00+$/))return w+r(_,a.length);if(a.match(/^[#?]+$/))return c=""+s,0===s&&(c=""),c.length>a.length?c:g(a.substr(0,a.length-c.length))+c;if(d=a.match(u))return f(d,_,w);if(a.match(/^#+0+$/))return w+r(_,a.length-a.indexOf("0"));if(d=a.match(h))return c=(""+s).replace(/^([^\.]+)$/,"$1."+g(d[1])).replace(/\.$/,"."+g(d[1])),c=c.replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",g(d[1]).length-t.length)})),-1!==a.indexOf("0.")?c:c.replace(/^0\./,".");if(a=a.replace(/^#+([0.])/,"$1"),d=a.match(/^(0*)\.(#*)$/))return w+(""+_).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,d[1].length?"0.":".");if(d=a.match(/^#{1,3},##0(\.?)$/))return w+I(""+_);if(d=a.match(/^#,##0\.([#0]*0)$/))return s<0?"-"+k(e,a,-s):I(""+s)+"."+n("0",d[1].length);if(d=a.match(/^#,#*,#0/))return k(e,a.replace(/^#,#*,/,""),s);if(d=a.match(/^([0#]+)(\\?-([0#]+))+$/))return c=t(k(e,a.replace(/[\\-]/g,""),s)),v=0,t(t(a.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return v<c.length?c.charAt(v++):"0"===e?"0":""})));if(a.match(m))return c=k(e,"##########",s),"("+c.substr(0,3)+") "+c.substr(3,3)+"-"+c.substr(6);var x="";if(d=a.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return v=Math.min(d[4].length,7),b=y(_,Math.pow(10,v)-1,!1),c=""+w,x=A("n",d[1],b[1])," "==x.charAt(x.length-1)&&(x=x.substr(0,x.length-1)+"0"),c+=x+d[2]+"/"+d[3],x=o(b[2],v),x.length<d[4].length&&(x=g(d[4].substr(d[4].length-x.length))+x),c+=x,c;if(d=a.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return v=Math.min(Math.max(d[1].length,d[4].length),7),b=y(_,Math.pow(10,v)-1,!0),w+(b[0]||(b[1]?"":"0"))+" "+(b[1]?i(b[1],v)+d[2]+"/"+d[3]+o(b[2],v):n(" ",2*v+1+d[2].length+d[3].length));if(d=a.match(/^[#0?]+$/))return c=""+s,a.length<=c.length?c:g(a.substr(0,a.length-c.length))+c;if(d=a.match(/^([#0]+)\.([#0]+)$/)){c=""+s.toFixed(Math.min(d[2].length,10)).replace(/([^0])0+$/,"$1"),v=c.indexOf(".");var O=a.indexOf(".")-v,T=a.length-c.length-O;return g(a.substr(0,O)+c+a.substr(a.length-T))}if(d=a.match(/^00,000\.([#0]*0)$/))return s<0?"-"+k(e,a,-s):I(""+s).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?r(0,3-e.length):"")+e}))+"."+r(0,d[1].length);switch(a){case"###,###":case"##,###":case"#,###":var R=I(""+_);return"0"!==R?w+R:"";default:if(a.match(/\.[0#?]*$/))return k(e,a.slice(0,a.lastIndexOf(".")),s)+g(a.slice(a.lastIndexOf(".")))}throw new Error("unsupported format |"+a+"|")}return function(e,t,n){return(0|n)===n?k(e,t,n):x(e,t,n)}}();function R(e){for(var t=[],n=!1,r=0,i=0;r<e.length;++r)switch(e.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:t[t.length]=e.substr(i,r-i),i=r+1}if(t[t.length]=e.substr(i),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}e._split=R;var P=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function M(e){var t=0,n="",r="";while(t<e.length)switch(n=e.charAt(t)){case"G":u(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":r=n;while("]"!==e.charAt(t++)&&t<e.length)r+=e.charAt(t);if(r.match(P))return!0;break;case".":case"0":case"#":while(t<e.length&&("0#?.,E+-%".indexOf(n=e.charAt(++t))>-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===n);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1);break;case" ":++t;break;default:++t;break}return!1}function N(e,t,n,r){var i,o,a,s=[],l="",c=0,d="",f="t",h="H";while(c<e.length)switch(d=e.charAt(c)){case"G":if(!u(e,c))throw new Error("unrecognized character "+d+" in "+e);s[s.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(a=e.charCodeAt(++c))&&c<e.length;)l+=String.fromCharCode(a);s[s.length]={t:"t",v:l},++c;break;case"\\":var p=e.charAt(++c),m="("===p||")"===p?p:"t";s[s.length]={t:m,v:p},++c;break;case"_":s[s.length]={t:"t",v:" "},c+=2;break;case"@":s[s.length]={t:"T",v:t},++c;break;case"B":case"b":if("1"===e.charAt(c+1)||"2"===e.charAt(c+1)){if(null==i&&(i=b(t,n,"2"===e.charAt(c+1)),null==i))return"";s[s.length]={t:"X",v:e.substr(c,2)},f=d,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":d=d.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==i&&(i=b(t,n),null==i))return"";l=d;while(++c<e.length&&e.charAt(c).toLowerCase()===d)l+=d;"m"===d&&"h"===f.toLowerCase()&&(d="M"),"h"===d&&(d=h),s[s.length]={t:d,v:l},f=d;break;case"A":case"a":case"上":var g={t:d,v:d};if(null==i&&(i=b(t,n)),"A/P"===e.substr(c,3).toUpperCase()?(null!=i&&(g.v=i.H>=12?"P":"A"),g.t="T",h="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=i&&(g.v=i.H>=12?"PM":"AM"),g.t="T",c+=5,h="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=i&&(g.v=i.H>=12?"下午":"上午"),g.t="T",c+=5,h="h"):(g.t="t",++c),null==i&&"T"===g.t)return"";s[s.length]=g,f=d;break;case"[":l=d;while("]"!==e.charAt(c++)&&c<e.length)l+=e.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(P)){if(null==i&&(i=b(t,n),null==i))return"";s[s.length]={t:"Z",v:l.toLowerCase()},f=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",M(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){l=d;while(++c<e.length&&"0"===(d=e.charAt(c)))l+=d;s[s.length]={t:"s",v:l};break}case"0":case"#":l=d;while(++c<e.length&&"0#?.,E+-%".indexOf(d=e.charAt(c))>-1)l+=d;s[s.length]={t:"n",v:l};break;case"?":l=d;while(e.charAt(++c)===d)l+=d;s[s.length]={t:d,v:l},f=d;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===r?"t":d,v:d},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=d;while(c<e.length&&"0123456789".indexOf(e.charAt(++c))>-1)l+=e.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:d,v:d},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(d))throw new Error("unrecognized character "+d+" in "+e);s[s.length]={t:"t",v:d},++c;break}var v,y=0,_=0;for(c=s.length-1,f="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=h,f="h",y<1&&(y=1);break;case"s":(v=s[c].v.match(/\.0+$/))&&(_=Math.max(_,v[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":f=s[c].t;break;case"m":"s"===f&&(s[c].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&s[c].v.match(/[Hh]/)&&(y=1),y<2&&s[c].v.match(/[Mm]/)&&(y=2),y<3&&s[c].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M);break}var w,x="";for(c=0;c<s.length;++c)switch(s[c].t){case"t":case"T":case" ":case"D":break;case"X":s[c].v="",s[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[c].v=T(s[c].t.charCodeAt(0),s[c].v,i,_),s[c].t="t";break;case"n":case"?":w=c+1;while(null!=s[w]&&("?"===(d=s[w].t)||"D"===d||(" "===d||"t"===d)&&null!=s[w+1]&&("?"===s[w+1].t||"t"===s[w+1].t&&"/"===s[w+1].v)||"("===s[c].t&&(" "===d||"n"===d||")"===d)||"t"===d&&("/"===s[w].v||" "===s[w].v&&null!=s[w+1]&&"?"==s[w+1].t)))s[c].v+=s[w].v,s[w]={v:"",t:";"},++w;x+=s[c].v,c=w-1;break;case"G":s[c].t="t",s[c].v=k(t,n);break}var S,C,E="";if(x.length>0){40==x.charCodeAt(0)?(S=t<0&&45===x.charCodeAt(0)?-t:t,C=A("n",x,S)):(S=t<0&&r>1?-t:t,C=A("n",x,S),S<0&&s[0]&&"t"==s[0].t&&(C=C.substr(1),s[0].v="-"+s[0].v)),w=C.length-1;var O=s.length;for(c=0;c<s.length;++c)if(null!=s[c]&&"t"!=s[c].t&&s[c].v.indexOf(".")>-1){O=c;break}var I=s.length;if(O===s.length&&-1===C.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(w>=s[c].v.length-1?(w-=s[c].v.length,s[c].v=C.substr(w+1,s[c].v.length)):w<0?s[c].v="":(s[c].v=C.substr(0,w+1),w=-1),s[c].t="t",I=c);w>=0&&I<s.length&&(s[I].v=C.substr(0,w+1)+s[I].v)}else if(O!==s.length&&-1===C.indexOf("E")){for(w=C.indexOf(".")-1,c=O;c>=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(o=s[c].v.indexOf(".")>-1&&c===O?s[c].v.indexOf(".")-1:s[c].v.length-1,E=s[c].v.substr(o+1);o>=0;--o)w>=0&&("0"===s[c].v.charAt(o)||"#"===s[c].v.charAt(o))&&(E=C.charAt(w--)+E);s[c].v=E,s[c].t="t",I=c}for(w>=0&&I<s.length&&(s[I].v=C.substr(0,w+1)+s[I].v),w=C.indexOf(".")+1,c=O;c<s.length;++c)if(null!=s[c]&&(-1!=="n?(".indexOf(s[c].t)||c===O)){for(o=s[c].v.indexOf(".")>-1&&c===O?s[c].v.indexOf(".")+1:0,E=s[c].v.substr(0,o);o<s[c].v.length;++o)w<C.length&&(E+=C.charAt(w++));s[c].v=E,s[c].t="t",I=c}}}for(c=0;c<s.length;++c)null!=s[c]&&"n?".indexOf(s[c].t)>-1&&(S=r>1&&t<0&&c>0&&"-"===s[c-1].v?-t:t,s[c].v=A(s[c].t,s[c].v,S),s[c].t="t");var R="";for(c=0;c!==s.length;++c)null!=s[c]&&(R+=s[c].v);return R}e.is_date=M,e._eval=N;var L=/\[[=<>]/,D=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function j(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function F(e,t){var n=R(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!==typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break;case 4:break}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(L)||null!=n[1].match(L)){var a=n[0].match(D),s=n[1].match(D);return j(t,a)?[r,n[0]]:j(t,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,o]}function B(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:p)[e],null==r&&(r=n.table&&n.table[m[e]]||p[m[e]]),null==r&&(r=v[e]||"General");break}if(u(r,0))return k(t,n);t instanceof Date&&(t=S(t,n.date1904));var i=F(r,t);if(u(i[1]))return k(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return N(i[1],t,n,i[0])}function q(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(void 0!=p[n]){if(p[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return p[t]=e,t}e.load=q,e._table=p,e.get_table=function(){return p},e.load_table=function(e){for(var t=0;392!=t;++t)void 0!==e[t]&&q(e[t],t)},e.init_table=h,e.format=B};F(j);var B={"General Number":"General","General Date":j._table[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":j._table[15],"Short Date":j._table[14],"Long Time":j._table[19],"Medium Time":j._table[18],"Short Time":j._table[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:j._table[2],Standard:j._table[4],Percent:j._table[10],Scientific:j._table[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'},q={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},z=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function U(e){var t="number"==typeof e?j._table[e]:e;return t=t.replace(z,"(\\d+)"),new RegExp("^"+t+"$")}function G(e,t,n){var r=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(z)||[]).forEach((function(e,t){var c=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=c;break;case"d":o=c;break;case"h":a=c;break;case"s":l=c;break;case"m":a>=0?s=c:i=c;break}})),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var c=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==a&&-1==s&&-1==l?c:-1==r&&-1==i&&-1==o?u:c+"T"+u}var V,W=!0;(function(e){e(V={})})((function(e){function t(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=n,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var n=t();function r(e,t){for(var r=-1^t,i=e.length-1,o=0;o<i;)r=r>>>8^n[255&(r^e.charCodeAt(o++))],r=r>>>8^n[255&(r^e.charCodeAt(o++))];return o===i&&(r=r>>>8^n[255&(r^e.charCodeAt(o))]),-1^r}function i(e,t){if(e.length>1e4)return o(e,t);for(var r=-1^t,i=e.length-3,a=0;a<i;)r=r>>>8^n[255&(r^e[a++])],r=r>>>8^n[255&(r^e[a++])],r=r>>>8^n[255&(r^e[a++])],r=r>>>8^n[255&(r^e[a++])];while(a<i+3)r=r>>>8^n[255&(r^e[a++])];return-1^r}function o(e,t){for(var r=-1^t,i=e.length-7,o=0;o<i;)r=r>>>8^n[255&(r^e[o++])],r=r>>>8^n[255&(r^e[o++])],r=r>>>8^n[255&(r^e[o++])],r=r>>>8^n[255&(r^e[o++])],r=r>>>8^n[255&(r^e[o++])],r=r>>>8^n[255&(r^e[o++])],r=r>>>8^n[255&(r^e[o++])],r=r>>>8^n[255&(r^e[o++])];while(o<i+7)r=r>>>8^n[255&(r^e[o++])];return-1^r}function a(e,t){for(var r,i,o=-1^t,a=0,s=e.length;a<s;)r=e.charCodeAt(a++),r<128?o=o>>>8^n[255&(o^r)]:r<2048?(o=o>>>8^n[255&(o^(192|r>>6&31))],o=o>>>8^n[255&(o^(128|63&r))]):r>=55296&&r<57344?(r=64+(1023&r),i=1023&e.charCodeAt(a++),o=o>>>8^n[255&(o^(240|r>>8&7))],o=o>>>8^n[255&(o^(128|r>>2&63))],o=o>>>8^n[255&(o^(128|i>>6&15|(3&r)<<4))],o=o>>>8^n[255&(o^(128|63&i))]):(o=o>>>8^n[255&(o^(224|r>>12&15))],o=o>>>8^n[255&(o^(128|r>>6&63))],o=o>>>8^n[255&(o^(128|63&r))]);return-1^o}e.table=n,e.bstr=r,e.buf=i,e.str=a}));var H,K=function(){var e,t={};function r(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,o=0,a=Math.min(n.length,r.length);i<a;++i){if(o=n[i].length-r[i].length)return o;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}function i(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:i(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function o(e){if("/"==e.charAt(e.length-1))return o(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function a(e,t){"string"===typeof t&&(t=new Date(t));var n=t.getHours();n=n<<6|t.getMinutes(),n=n<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=r<<4|t.getMonth()+1,r=r<<5|t.getDate(),e.write_shift(2,r)}function s(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n;n>>>=5;var o=15&n;n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(o-1),r.setDate(i);var a=31&t;t>>>=5;var s=63&t;return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(a<<1),r}function l(e){Zt(e,0);var t={},n=0;while(e.l<=e.length-4){var r=e.read_shift(2),i=e.read_shift(2),o=e.l+i,a={};switch(r){case 21589:n=e.read_shift(1),1&n&&(a.mtime=e.read_shift(4)),i>5&&(2&n&&(a.atime=e.read_shift(4)),4&n&&(a.ctime=e.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));break}e.l=o,t[r]=a}return t}function c(){return e||(e=n(1))}function u(e,t){if(80==e[0]&&75==e[1])return Oe(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n=3,r=512,i=0,o=0,a=0,s=0,l=0,c=[],u=e.slice(0,512);Zt(u,0);var m=d(u);switch(n=m[0],n){case 3:r=512;break;case 4:r=4096;break;case 0:if(0==m[1])return Oe(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==r&&(u=e.slice(0,r),Zt(u,28));var v=e.slice(0,r);f(u,n);var _=u.read_shift(4,"i");if(3===n&&0!==_)throw new Error("# Directory Sectors: Expected 0 saw "+_);u.l+=4,a=u.read_shift(4,"i"),u.l+=4,u.chk("00100000","Mini Stream Cutoff Size: "),s=u.read_shift(4,"i"),i=u.read_shift(4,"i"),l=u.read_shift(4,"i"),o=u.read_shift(4,"i");for(var w=-1,x=0;x<109;++x){if(w=u.read_shift(4,"i"),w<0)break;c[x]=w}var S=h(e,r);g(l,o,S,r,c);var C=y(S,a,c,r);C[a].name="!Directory",i>0&&s!==F&&(C[s].name="!MiniFAT"),C[c[0]].name="!FAT",C.fat_addrs=c,C.ssz=r;var E={},k=[],O=[],T=[];b(a,C,S,k,i,E,O,s),p(O,T,k),k.shift();var I={FileIndex:O,FullPaths:T};return t&&t.raw&&(I.raw={header:v,sectors:S}),I}function d(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(B,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function f(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function h(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}function p(e,t,n){for(var r=0,i=0,o=0,a=0,s=0,l=n.length,c=[],u=[];r<l;++r)c[r]=u[r]=r,t[r]=n[r];for(;s<u.length;++s)r=u[s],i=e[r].L,o=e[r].R,a=e[r].C,c[r]===r&&(-1!==i&&c[i]!==i&&(c[r]=c[i]),-1!==o&&c[o]!==o&&(c[r]=c[o])),-1!==a&&(c[a]=r),-1!==i&&r!=c[r]&&(c[i]=c[r],u.lastIndexOf(i)<s&&u.push(i)),-1!==o&&r!=c[r]&&(c[o]=c[r],u.lastIndexOf(o)<s&&u.push(o));for(r=1;r<l;++r)c[r]===r&&(-1!==o&&c[o]!==o?c[r]=c[o]:-1!==i&&c[i]!==i&&(c[r]=c[i]));for(r=1;r<l;++r)if(0!==e[r].type){if(s=r,s!=c[s])do{s=c[s],t[r]=t[s]+"/"+t[r]}while(0!==s&&-1!==c[s]&&s!=c[s]);c[r]=-1}for(t[0]+="/",r=1;r<l;++r)2!==e[r].type&&(t[r]+="/")}function m(e,t,n){var r=e.start,i=e.size,o=[],a=r;while(n&&i>0&&a>=0)o.push(t.slice(a*j,a*j+j)),i-=j,a=Wt(n,4*a);return 0===o.length?tn(0):N(o).slice(0,e.size)}function g(e,t,n,r,i){var o=F;if(e===F){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var a=n[e],s=(r>>>2)-1;if(!a)return;for(var l=0;l<s;++l){if((o=Wt(a,4*l))===F)break;i.push(o)}g(Wt(a,r-4),t-1,n,r,i)}}function v(e,t,n,r,i){var o=[],a=[];i||(i=[]);var s=r-1,l=0,c=0;for(l=t;l>=0;){i[l]=!0,o[o.length]=l,a.push(e[l]);var u=n[Math.floor(4*l/r)];if(c=4*l&s,r<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[u])break;l=Wt(e[u],c)}return{nodes:o,data:xt([a])}}function y(e,t,n,r){var i=e.length,o=[],a=[],s=[],l=[],c=r-1,u=0,d=0,f=0,h=0;for(u=0;u<i;++u)if(s=[],f=u+t,f>=i&&(f-=i),!a[f]){l=[];var p=[];for(d=f;d>=0;){p[d]=!0,a[d]=!0,s[s.length]=d,l.push(e[d]);var m=n[Math.floor(4*d/r)];if(h=4*d&c,r<4+h)throw new Error("FAT boundary crossed: "+d+" 4 "+r);if(!e[m])break;if(d=Wt(e[m],h),p[d])break}o[f]={nodes:s,data:xt([l])}}return o}function b(e,t,n,r,i,o,a,s){for(var l,c=0,u=r.length?2:0,d=t[e].data,f=0,h=0;f<d.length;f+=128){var p=d.slice(f,f+128);Zt(p,64),h=p.read_shift(2),l=Ct(p,0,h-u),r.push(l);var g={name:l,type:p.read_shift(1),color:p.read_shift(1),L:p.read_shift(4,"i"),R:p.read_shift(4,"i"),C:p.read_shift(4,"i"),clsid:p.read_shift(16),state:p.read_shift(4,"i"),start:0,size:0},y=p.read_shift(2)+p.read_shift(2)+p.read_shift(2)+p.read_shift(2);0!==y&&(g.ct=_(p,p.l-8));var b=p.read_shift(2)+p.read_shift(2)+p.read_shift(2)+p.read_shift(2);0!==b&&(g.mt=_(p,p.l-8)),g.start=p.read_shift(4,"i"),g.size=p.read_shift(4,"i"),g.size<0&&g.start<0&&(g.size=g.type=0,g.start=F,g.name=""),5===g.type?(c=g.start,i>0&&c!==F&&(t[c].name="!StreamData")):g.size>=4096?(g.storage="fat",void 0===t[g.start]&&(t[g.start]=v(n,g.start,t.fat_addrs,t.ssz)),t[g.start].name=g.name,g.content=t[g.start].data.slice(0,g.size)):(g.storage="minifat",g.size<0?g.size=0:c!==F&&g.start!==F&&t[c]&&(g.content=m(g,t[c].data,(t[s]||{}).data))),g.content&&Zt(g.content,0),o[l]=g,a.push(g)}}function _(e,t){return new Date(1e3*(Vt(e,t+4)/1e7*Math.pow(2,32)+Vt(e,t)/1e7-11644473600))}function w(t,n){return c(),u(e.readFileSync(t),n)}function x(e,t){switch(t&&t.type||"base64"){case"file":return w(e,t);case"base64":return u(I(S.decode(e)),t);case"binary":return u(I(e),t)}return u(e,t)}function E(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),k(e)}function k(e){var t="Sh33tJ5";if(!K.find(e,"/"+t)){var n=tn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),A(e)}}function A(e,t){E(e);for(var n=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var l=e.FileIndex[s];switch(l.type){case 0:a?n=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(l.R*l.L*l.C)&&(n=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(n=!0);break;default:n=!0;break}}if(n||t){var c=new Date(1987,1,19),u=0,d=[];for(s=0;s<e.FullPaths.length;++s)0!==e.FileIndex[s].type&&d.push([e.FullPaths[s],e.FileIndex[s]]);for(s=0;s<d.length;++s){var f=i(d[s][0]);for(a=!1,u=0;u<d.length;++u)d[u][0]===f&&(a=!0);a||d.push([f,{name:o(f).replace("/",""),type:1,clsid:z,ct:c,mt:c,content:null}])}for(d.sort((function(e,t){return r(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],s=0;s<d.length;++s)e.FullPaths[s]=d[s][0],e.FileIndex[s]=d[s][1];for(s=0;s<d.length;++s){var h=e.FileIndex[s],p=e.FullPaths[s];if(h.name=o(p).replace("/",""),h.L=h.R=h.C=-(h.color=1),h.size=h.content?h.content.length:0,h.start=0,h.clsid=h.clsid||z,0===s)h.C=d.length>1?1:-1,h.size=0,h.type=5;else if("/"==p.slice(-1)){for(u=s+1;u<d.length;++u)if(i(e.FullPaths[u])==p)break;for(h.C=u>=d.length?-1:u,u=s+1;u<d.length;++u)if(i(e.FullPaths[u])==i(p))break;h.R=u>=d.length?-1:u,h.type=1}else i(e.FullPaths[s+1]||"")==i(p)&&(h.R=s+1),h.type=2}}}function R(e,t){var n=t||{};if(A(e),"zip"==n.fileType)return Ie(e,n);var r=function(e){for(var t=0,n=0,r=0;r<e.FileIndex.length;++r){var i=e.FileIndex[r];if(i.content){var o=i.content.length;o>0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}var a=e.FullPaths.length+3>>2,s=t+7>>3,l=t+127>>7,c=s+n+a+l,u=c+127>>7,d=u<=109?0:Math.ceil((u-109)/127);while(c+u+d+127>>7>u)d=++u<=109?0:Math.ceil((u-109)/127);var f=[1,d,u,l,a,n,t,0];return e.FileIndex[0].size=t<<6,f[7]=(e.FileIndex[0].start=f[0]+f[1]+f[2]+f[3]+f[4]+f[5])+(f[6]+7>>3),f}(e),i=tn(r[7]<<9),o=0,a=0;for(o=0;o<8;++o)i.write_shift(1,q[o]);for(o=0;o<8;++o)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),o=0;o<3;++o)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,r[2]),i.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:F),i.write_shift(4,r[3]),i.write_shift(-4,r[1]?r[0]-1:F),i.write_shift(4,r[1]),o=0;o<109;++o)i.write_shift(-4,o<r[2]?r[1]+o:-1);if(r[1])for(a=0;a<r[1];++a){for(;o<236+127*a;++o)i.write_shift(-4,o<r[2]?r[1]+o:-1);i.write_shift(-4,a===r[1]-1?F:a+1)}var s=function(e){for(a+=e;o<a-1;++o)i.write_shift(-4,o+1);e&&(++o,i.write_shift(-4,F))};for(a=o=0,a+=r[1];o<a;++o)i.write_shift(-4,U.DIFSECT);for(a+=r[2];o<a;++o)i.write_shift(-4,U.FATSECT);s(r[3]),s(r[4]);for(var l=0,c=0,u=e.FileIndex[0];l<e.FileIndex.length;++l)u=e.FileIndex[l],u.content&&(c=u.content.length,c<4096||(u.start=a,s(c+511>>9)));s(r[6]+7>>3);while(511&i.l)i.write_shift(-4,U.ENDOFCHAIN);for(a=o=0,l=0;l<e.FileIndex.length;++l)u=e.FileIndex[l],u.content&&(c=u.content.length,!c||c>=4096||(u.start=a,s(c+63>>6)));while(511&i.l)i.write_shift(-4,U.ENDOFCHAIN);for(o=0;o<r[4]<<2;++o){var d=e.FullPaths[o];if(d&&0!==d.length){u=e.FileIndex[o],0===o&&(u.start=u.size?u.start-1:F);var f=0===o&&n.root||u.name;if(c=2*(f.length+1),i.write_shift(64,f,"utf16le"),i.write_shift(2,c),i.write_shift(1,u.type),i.write_shift(1,u.color),i.write_shift(-4,u.L),i.write_shift(-4,u.R),i.write_shift(-4,u.C),u.clsid)i.write_shift(16,u.clsid,"hex");else for(l=0;l<4;++l)i.write_shift(4,0);i.write_shift(4,u.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,u.start),i.write_shift(4,u.size),i.write_shift(4,0)}else{for(l=0;l<17;++l)i.write_shift(4,0);for(l=0;l<3;++l)i.write_shift(4,-1);for(l=0;l<12;++l)i.write_shift(4,0)}}for(o=1;o<e.FileIndex.length;++o)if(u=e.FileIndex[o],u.size>=4096){for(i.l=u.start+1<<9,l=0;l<u.size;++l)i.write_shift(1,u.content[l]);for(;511&l;++l)i.write_shift(1,0)}for(o=1;o<e.FileIndex.length;++o)if(u=e.FileIndex[o],u.size>0&&u.size<4096){for(l=0;l<u.size;++l)i.write_shift(1,u.content[l]);for(;63&l;++l)i.write_shift(1,0)}while(i.l<i.length)i.write_shift(1,0);return i}function P(e,t){var n=e.FullPaths.map((function(e){return e.toUpperCase()})),r=n.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),i=!1;47===t.charCodeAt(0)?(i=!0,t=n[0].slice(0,-1)+t):i=-1!==t.indexOf("/");var o=t.toUpperCase(),a=!0===i?n.indexOf(o):r.indexOf(o);if(-1!==a)return e.FileIndex[a];var s=!o.match(D);for(o=o.replace(L,""),s&&(o=o.replace(D,"!")),a=0;a<n.length;++a){if((s?n[a].replace(D,"!"):n[a]).replace(L,"")==o)return e.FileIndex[a];if((s?r[a].replace(D,"!"):r[a]).replace(L,"")==o)return e.FileIndex[a]}return null}t.version="1.1.4";var M,j=64,F=-2,B="d0cf11e0a1b11ae1",q=[208,207,17,224,161,177,26,225],z="00000000000000000000000000000000",U={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:F,FREESECT:-1,HEADER_SIGNATURE:B,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:z,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function G(t,n,r){c();var i=R(t,r);e.writeFileSync(n,i)}function W(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=String.fromCharCode(e[n]);return t.join("")}function H(t,n){var r=R(t,n);switch(n&&n.type){case"file":return c(),e.writeFileSync(n.filename,r),r;case"binary":return W(r);case"base64":return S.encode(W(r))}return r}function $(e){try{var t=e.InflateRaw,n=new t;if(n._processChunk(new Uint8Array([3,0]),n._finishFlushFlag),!n.bytesRead)throw new Error("zlib does not expose bytesRead");M=e}catch(uv){console.error("cannot use native zlib: "+(uv.message||uv))}}function X(e,t){if(!M)return Ee(e,t);var n=M.InflateRaw,r=new n,i=r._processChunk(e.slice(e.l),r._finishFlushFlag);return e.l+=r.bytesRead,i}function Y(e){return M?M.deflateRawSync(e):he(e)}var J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Q=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Z=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ee(e){var t=139536&(e<<1|e<<11)|558144&(e<<5|e<<15);return 255&(t>>16|t>>8|t)}for(var te="undefined"!==typeof Uint8Array,ne=te?new Uint8Array(256):[],re=0;re<256;++re)ne[re]=ee(re);function ie(e,t){var n=ne[255&e];return t<=8?n>>>8-t:(n=n<<8|ne[e>>8&255],t<=16?n>>>16-t:(n=n<<8|ne[e>>16&255],n>>>24-t))}function oe(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function ae(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function se(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}function le(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function ce(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function ue(e,t,n){var r=7&t,i=t>>>3,o=(1<<n)-1,a=e[i]>>>r;return n<8-r?a&o:(a|=e[i+1]<<8-r,n<16-r?a&o:(a|=e[i+2]<<16-r,n<24-r||(a|=e[i+3]<<24-r),a&o))}function de(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(C){var o=T(r);if(e.copy)e.copy(o);else for(;i<e.length;++i)o[i]=e[i];return o}if(te){var a=new Uint8Array(r);if(a.set)a.set(e);else for(;i<e.length;++i)a[i]=e[i];return a}return e.length=r,e}function fe(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}var he=function(){var e=function(){return function(e,t){var n=0;while(n<e.length){var r=Math.min(65535,e.length-n),i=n+r==e.length;t.write_shift(1,+i),t.write_shift(2,r),t.write_shift(2,65535&~r);while(r-- >0)t[t.l++]=e[n++]}return t.l}}();return function(t){var n=tn(50+Math.floor(1.1*t.length)),r=e(t,n);return n.slice(0,r)}}();function pe(e,t,n){var r=1,i=0,o=0,a=0,s=0,l=e.length,c=te?new Uint16Array(32):fe(32);for(o=0;o<32;++o)c[o]=0;for(o=l;o<n;++o)e[o]=0;l=e.length;var u=te?new Uint16Array(l):fe(l);for(o=0;o<l;++o)c[i=e[o]]++,r<i&&(r=i),u[o]=0;for(c[0]=0,o=1;o<=r;++o)c[o+16]=s=s+c[o-1]<<1;for(o=0;o<l;++o)s=e[o],0!=s&&(u[o]=c[s+16]++);var d=0;for(o=0;o<l;++o)if(d=e[o],0!=d)for(s=ie(u[o],r)>>r-d,a=(1<<r+4-d)-1;a>=0;--a)t[s|a<<d]=15&d|o<<4;return r}var me=te?new Uint16Array(512):fe(512),ge=te?new Uint16Array(32):fe(32);if(!te){for(var ve=0;ve<512;++ve)me[ve]=0;for(ve=0;ve<32;++ve)ge[ve]=0}(function(){for(var e=[],t=0;t<32;t++)e.push(5);pe(e,ge,32);var n=[];for(t=0;t<=143;t++)n.push(8);for(;t<=255;t++)n.push(9);for(;t<=279;t++)n.push(7);for(;t<=287;t++)n.push(8);pe(n,me,288)})();var ye=te?new Uint16Array(32768):fe(32768),be=te?new Uint16Array(32768):fe(32768),_e=te?new Uint16Array(128):fe(128),we=1,xe=1;function Se(e,t){var n=le(e,t)+257;t+=5;var r=le(e,t)+1;t+=5;var i=se(e,t)+4;t+=4;for(var o=0,a=te?new Uint8Array(19):fe(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=te?new Uint8Array(8):fe(8),u=te?new Uint8Array(8):fe(8),d=a.length,f=0;f<i;++f)a[J[f]]=o=ae(e,t),l<o&&(l=o),c[o]++,t+=3;var h=0;for(c[0]=0,f=1;f<=l;++f)u[f]=h=h+c[f-1]<<1;for(f=0;f<d;++f)0!=(h=a[f])&&(s[f]=u[h]++);var p=0;for(f=0;f<d;++f)if(p=a[f],0!=p){h=ne[s[f]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)_e[h|m<<p]=7&p|f<<3}var g=[];for(l=1;g.length<n+r;)switch(h=_e[ce(e,t)],t+=7&h,h>>>=3){case 16:o=3+oe(e,t),t+=2,h=g[g.length-1];while(o-- >0)g.push(h);break;case 17:o=3+ae(e,t),t+=3;while(o-- >0)g.push(0);break;case 18:o=11+ce(e,t),t+=7;while(o-- >0)g.push(0);break;default:g.push(h),l<h&&(l=h);break}var v=g.slice(0,n),y=g.slice(n);for(f=n;f<286;++f)v[f]=0;for(f=r;f<30;++f)y[f]=0;return we=pe(v,ye,286),xe=pe(y,be,30),t}function Ce(e,t){if(3==e[0]&&!(3&e[1]))return[O(t),2];var n=0,r=0,i=T(t||1<<18),o=0,a=i.length>>>0,s=0,l=0;while(0==(1&r))if(r=ae(e,n),n+=3,r>>>1!=0)for(r>>>1==1?(s=9,l=5):(n=Se(e,n),s=we,l=xe),!t&&a<o+32767&&(i=de(i,o+32767),a=i.length);;){var c=ue(e,n,s),u=r>>>1==1?me[c]:ye[c];if(n+=15&u,u>>>=4,0===(u>>>8&255))i[o++]=u;else{if(256==u)break;u-=257;var d=u<8?0:u-4>>2;d>5&&(d=0);var f=o+Q[u];d>0&&(f+=ue(e,n,d),n+=d),c=ue(e,n,l),u=r>>>1==1?ge[c]:be[c],n+=15&u,u>>>=4;var h=u<4?0:u-2>>1,p=Z[u];h>0&&(p+=ue(e,n,h),n+=h),!t&&a<f&&(i=de(i,f),a=i.length);while(o<f)i[o]=i[o-p],++o}}else{7&n&&(n+=8-(7&n));var m=e[n>>>3]|e[1+(n>>>3)]<<8;if(n+=32,!t&&a<o+m&&(i=de(i,o+m),a=i.length),"function"===typeof e.copy)e.copy(i,o,n>>>3,(n>>>3)+m),o+=m,n+=8*m;else while(m-- >0)i[o++]=e[n>>>3],n+=8}return[t?i:i.slice(0,o),n+7>>>3]}function Ee(e,t){var n=e.slice(e.l||0),r=Ce(n,t);return e.l+=r[1],r[0]}function ke(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function Oe(e,t){var n=e;Zt(n,0);var r=[],i=[],o={FileIndex:r,FullPaths:i};E(o,{root:t.root});var a=n.length-4;while((80!=n[a]||75!=n[a+1]||5!=n[a+2]||6!=n[a+3])&&a>=0)--a;n.l=a+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var c=n.read_shift(4);for(n.l=c,a=0;a<s;++a){n.l+=20;var u=n.read_shift(4),d=n.read_shift(4),f=n.read_shift(2),h=n.read_shift(2),p=n.read_shift(2);n.l+=8;var m=n.read_shift(4),g=l(n.slice(n.l+f,n.l+f+h));n.l+=f+h+p;var v=n.l;n.l=m+4,Te(n,u,d,o,g),n.l=v}return o}function Te(e,t,n,r,i){e.l+=2;var o=e.read_shift(2),a=e.read_shift(2),c=s(e);if(8257&o)throw new Error("Unsupported ZIP encryption");for(var u=e.read_shift(4),d=e.read_shift(4),f=e.read_shift(4),h=e.read_shift(2),p=e.read_shift(2),m="",g=0;g<h;++g)m+=String.fromCharCode(e[e.l++]);if(p){var v=l(e.slice(e.l,e.l+p));(v[21589]||{}).mt&&(c=v[21589].mt),((i||{})[21589]||{}).mt&&(c=i[21589].mt)}e.l+=p;var y=e.slice(e.l,e.l+d);switch(a){case 8:y=X(e,f);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+a)}var b=!1;8&o&&(u=e.read_shift(4),134695760==u&&(u=e.read_shift(4),b=!0),d=e.read_shift(4),f=e.read_shift(4)),d!=t&&ke(b,"Bad compressed size: "+t+" != "+d),f!=n&&ke(b,"Bad uncompressed size: "+n+" != "+f);var _=V.buf(y,0);u>>0!=_>>0&&ke(b,"Bad CRC32 checksum: "+u+" != "+_),Re(r,m,y,{unsafe:!0,mt:c})}function Ie(e,t){var n=t||{},r=[],i=[],o=tn(1),s=n.compression?8:0,l=0,c=!1;c&&(l|=8);var u=0,d=0,f=0,h=0,p=e.FullPaths[0],m=p,g=e.FileIndex[0],v=[],y=0;for(u=1;u<e.FullPaths.length;++u)if(m=e.FullPaths[u].slice(p.length),g=e.FileIndex[u],g.size&&g.content&&"Sh33tJ5"!=m){var b=f,_=tn(m.length);for(d=0;d<m.length;++d)_.write_shift(1,127&m.charCodeAt(d));_=_.slice(0,_.l),v[h]=V.buf(g.content,0);var w=g.content;8==s&&(w=Y(w)),o=tn(30),o.write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),g.mt?a(o,g.mt):o.write_shift(4,0),o.write_shift(-4,8&l?0:v[h]),o.write_shift(4,8&l?0:w.length),o.write_shift(4,8&l?0:g.content.length),o.write_shift(2,_.length),o.write_shift(2,0),f+=o.length,r.push(o),f+=_.length,r.push(_),f+=w.length,r.push(w),8&l&&(o=tn(12),o.write_shift(-4,v[h]),o.write_shift(4,w.length),o.write_shift(4,g.content.length),f+=o.l,r.push(o)),o=tn(46),o.write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,v[h]),o.write_shift(4,w.length),o.write_shift(4,g.content.length),o.write_shift(2,_.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,b),y+=o.l,i.push(o),y+=_.length,i.push(_),++h}return o=tn(22),o.write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,h),o.write_shift(2,h),o.write_shift(4,y),o.write_shift(4,f),o.write_shift(2,0),N([N(r),N(i),o])}function Ae(e){var t={};return E(t,e),t}function Re(e,t,n,r){var i=r&&r.unsafe;i||E(e);var a=!i&&K.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),a={name:o(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),i||K.utils.cfb_gc(e)}return a.content=n,a.size=n?n.length:0,r&&(r.CLSID&&(a.clsid=r.CLSID),r.mt&&(a.mt=r.mt),r.ct&&(a.ct=r.ct)),a}function Pe(e,t){E(e);var n=K.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1}function Me(e,t,n){E(e);var r=K.find(e,t);if(r)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==r)return e.FileIndex[i].name=o(n),e.FullPaths[i]=n,!0;return!1}function Ne(e){A(e,!0)}return t.find=P,t.read=x,t.parse=u,t.write=H,t.writeFile=G,t.utils={cfb_new:Ae,cfb_add:Re,cfb_del:Pe,cfb_mov:Me,cfb_gc:Ne,ReadShift:$t,CheckField:Qt,prep_blob:Zt,bconcat:N,use_zlib:$,_deflateRaw:he,_inflateRaw:Ee,consts:U},t}();"undefined"===typeof W&&(e.exports=K);try{H=n(1)}catch(uv){}function X(e){return"string"===typeof e?A(e):Array.isArray(e)?P(e):e}function Y(e,t,n){if("undefined"!==typeof H&&H.writeFileSync)return n?H.writeFileSync(e,t,n):H.writeFileSync(e,t);var r="utf8"==n?et(t):t;if("undefined"!==typeof IE_SaveFile)return IE_SaveFile(r,e);if("undefined"!==typeof Blob){var i=new Blob([X(r)],{type:"application/octet-stream"});if("undefined"!==typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if("undefined"!==typeof saveAs)return saveAs(i,e);if("undefined"!==typeof URL&&"undefined"!==typeof document&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(i);if("object"===typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),chrome.downloads.download({url:o,filename:e,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=e,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),o}}if("undefined"!==typeof $&&"undefined"!==typeof File&&"undefined"!==typeof Folder)try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=R(t)),s.write(t),s.close(),t}catch(uv){if(!uv.message||!uv.message.match(/onstruct/))throw uv}throw new Error("cannot save file "+e)}function J(e){if("undefined"!==typeof H)return H.readFileSync(e);if("undefined"!==typeof $&&"undefined"!==typeof File&&"undefined"!==typeof Folder)try{var t=File(e);t.open("r"),t.encoding="binary";var n=t.read();return t.close(),n}catch(uv){if(!uv.message||!uv.message.match(/onstruct/))throw uv}throw new Error("Cannot access file "+e)}function Q(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;++r)Object.prototype.hasOwnProperty.call(e,t[r])&&n.push(t[r]);return n}function Z(e,t){for(var n=[],r=Q(e),i=0;i!==r.length;++i)null==n[e[r[i]][t]]&&(n[e[r[i]][t]]=r[i]);return n}function ee(e){for(var t=[],n=Q(e),r=0;r!==n.length;++r)t[e[n[r]]]=n[r];return t}function te(e){for(var t=[],n=Q(e),r=0;r!==n.length;++r)t[e[n[r]]]=parseInt(n[r],10);return t}function ne(e){for(var t=[],n=Q(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}var re=new Date(1899,11,30,0,0,0);function ie(e,t){var n=e.getTime();t&&(n-=1263168e5);var r=re.getTime()+6e4*(e.getTimezoneOffset()-re.getTimezoneOffset());return(n-r)/864e5}var oe=new Date,ae=re.getTime()+6e4*(oe.getTimezoneOffset()-re.getTimezoneOffset()),se=oe.getTimezoneOffset();function le(e){var t=new Date;return t.setTime(24*e*60*60*1e3+ae),t.getTimezoneOffset()!==se&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-se)),t}function ce(e){var t=0,n=0,r=!1,i=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var o=1;o!=i.length;++o)if(i[o]){switch(n=1,o>3&&(r=!0),i[o].slice(i[o].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[o].slice(i[o].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60;case"S":break}t+=n*parseInt(i[o],10)}return t}var ue=new Date("2017-02-19T19:06:09.000Z");isNaN(ue.getFullYear())&&(ue=new Date("2/19/17"));var de=2017==ue.getFullYear();function fe(e,t){var n=new Date(e);if(de)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==ue.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function he(e){for(var t="",n=0;n!=e.length;++n)t+=String.fromCharCode(e[n]);return t}function pe(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=pe(e[n]));return t}function me(e,t){var n="";while(n.length<t)n+=e;return n}function ge(e){var t=Number(e);if(!isNaN(t))return t;if(!/\d/.test(e))return t;var n=1,r=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(t=Number(r))?(r=r.replace(/[(](.*)[)]/,(function(e,t){return n=-n,t})),isNaN(t=Number(r))?t:t/n):t/n}function ve(e){var t=new Date(e),n=new Date(NaN),r=t.getYear(),i=t.getMonth(),o=t.getDate();return isNaN(o)||r<0||r>8099?n:(i>0||o>1)&&101!=r||e.toLowerCase().match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)?t:e.match(/[^-0-9:,\/\\]/)?n:t}var ye,be=5=="abacaba".split(/(:?b)/i).length;function _e(e,t,n){if(be||"string"==typeof t)return e.split(t);for(var r=e.split(t),i=[r[0]],o=1;o<r.length;++o)i.push(n),i.push(r[o]);return i}function we(e){return e?e.data?y(e.data):e.asNodeBuffer&&C?y(e.asNodeBuffer().toString("binary")):e.asBinary?y(e.asBinary()):e._data&&e._data.getContent?y(he(Array.prototype.slice.call(e._data.getContent(),0))):e.content&&e.type?y(he(e.content)):null:null}function xe(e){if(!e)return null;if(e.data)return m(e.data);if(e.asNodeBuffer&&C)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?m(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function Se(e){return e&&".bin"===e.name.slice(-4)?xe(e):we(e)}function Ce(e,t){for(var n=e.FullPaths||Q(e.files),r=t.toLowerCase(),i=r.replace(/\//g,"\\"),o=0;o<n.length;++o){var a=n[o].toLowerCase();if(r==a||i==a)return e.files[n[o]]}return null}function Ee(e,t){var n=Ce(e,t);if(null==n)throw new Error("Cannot find file "+t+" in zip");return n}function ke(e,t,n){if(!n)return Se(Ee(e,t));if(!t)return null;try{return ke(e,t)}catch(uv){return null}}function Oe(e,t,n){if(!n)return we(Ee(e,t));if(!t)return null;try{return Oe(e,t)}catch(uv){return null}}function Te(e){for(var t=e.FullPaths||Q(e.files),n=[],r=0;r<t.length;++r)"/"!=t[r].slice(-1)&&n.push(t[r]);return n.sort()}function Ie(e,t,n){e.FullPaths?K.utils.cfb_add(e,t,n):e.file(t,n)}function Ae(){return ye?new ye:K.utils.cfb_new()}function Re(e,t){var n;if(ye)switch(t.type){case"base64":n=new ye(e,{base64:!0});break;case"binary":case"array":n=new ye(e,{base64:!1});break;case"buffer":n=new ye(e);break;default:throw new Error("Unrecognized type "+t.type)}else switch(t.type){case"base64":n=K.read(e,{type:"base64"});break;case"binary":n=K.read(e,{type:"binary"});break;case"buffer":case"array":n=K.read(e,{type:"buffer"});break;default:throw new Error("Unrecognized type "+t.type)}return n}function Pe(e,t){if("/"==e.charAt(0))return e.slice(1);var n=t.split("/");"/"!=t.slice(-1)&&n.pop();var r=e.split("/");while(0!==r.length){var i=r.shift();".."===i?n.pop():"."!==i&&n.push(i)}return n.join("/")}"undefined"!==typeof JSZipSync&&(ye=JSZipSync),e.exports&&"undefined"===typeof ye&&(ye=n("15a4"));var Me='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Ne=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Le=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s?[\/\?]?>/gm;Me.match(Le)||(Le=/<[^>]*>/g);var De=/<\w*:/,je=/<(\/?)\w+:/;function Fe(e,t,n){for(var r={},i=0,o=0;i!==e.length;++i)if(32===(o=e.charCodeAt(i))||10===o||13===o)break;if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var a=e.match(Ne),s=0,l="",c=0,u="",d="",f=1;if(a)for(c=0;c!=a.length;++c){for(d=a[c],o=0;o!=d.length;++o)if(61===d.charCodeAt(o))break;u=d.slice(0,o).trim();while(32==d.charCodeAt(o+1))++o;for(f=34==(i=d.charCodeAt(o+1))||39==i?1:0,l=d.slice(o+1+f,d.length-f),s=0;s!=u.length;++s)if(58===u.charCodeAt(s))break;if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=l,n||(r[u.toLowerCase()]=l);else{var h=(5===s&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(s+1);if(r[h]&&"ext"==u.slice(s-3,s))continue;r[h]=l,n||(r[h.toLowerCase()]=l)}}return r}function Be(e){return e.replace(je,"<$1")}var qe={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},ze=ee(qe),Ue=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",o=i.indexOf("<![CDATA[");if(-1==o)return i.replace(e,(function(e,t){return qe[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var a=i.indexOf("]]>");return n(i.slice(0,o))+i.slice(o+9,a)+n(i.slice(a+3))}}(),Ge=/[&<>'"]/g,Ve=/[\u0000-\u0008\u000b-\u001f]/g;function We(e){var t=e+"";return t.replace(Ge,(function(e){return ze[e]})).replace(Ve,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function He(e){return We(e).replace(/ /g,"_x0020_")}var $e=/[\u0000-\u001f]/g;function Ke(e){var t=e+"";return t.replace(Ge,(function(e){return ze[e]})).replace(/\n/g,"<br/>").replace($e,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function Xe(e){var t=e+"";return t.replace(Ge,(function(e){return ze[e]})).replace($e,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var Ye=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}(),Je=function(){return function(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}}();function Qe(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}var Ze=function(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0;while(n<e.length)r=e.charCodeAt(n++),r<128?t+=String.fromCharCode(r):(i=e.charCodeAt(n++),r>191&&r<224?(a=(31&r)<<6,a|=63&i,t+=String.fromCharCode(a)):(o=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o):(a=e.charCodeAt(n++),s=((7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t},et=function(e){var t=[],n=0,r=0,i=0;while(n<e.length)switch(r=e.charCodeAt(n++),!0){case r<128:t.push(String.fromCharCode(r));break;case r<2048:t.push(String.fromCharCode(192+(r>>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")};if(C){var tt=function(e){var t,n,r,o=i.alloc(2*e.length),a=1,s=0,l=0;for(n=0;n<e.length;n+=a)a=1,(r=e.charCodeAt(n))<128?t=r:r<224?(t=64*(31&r)+(63&e.charCodeAt(n+1)),a=2):r<240?(t=4096*(15&r)+64*(63&e.charCodeAt(n+1))+(63&e.charCodeAt(n+2)),a=3):(a=4,t=262144*(7&r)+4096*(63&e.charCodeAt(n+1))+64*(63&e.charCodeAt(n+2))+(63&e.charCodeAt(n+3)),t-=65536,l=55296+(t>>>10&1023),t=56320+(1023&t)),0!==l&&(o[s++]=255&l,o[s++]=l>>>8,l=0),o[s++]=t%256,o[s++]=t>>>8;return o.slice(0,s).toString("ucs2")},nt="foo bar baz☃🍣";Ze(nt)==tt(nt)&&(Ze=tt);var rt=function(e){return E(e,"binary").toString("utf8")};Ze(nt)==rt(nt)&&(Ze=rt),et=function(e){return E(e,"utf8").toString("binary")}}var it=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",n||"")}}(),ot=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),r=0;r<e.length;++r)n=n.replace(e[r][0],e[r][1]);return n}}(),at=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),st=/<\/?(?:vt:)?variant>/g,lt=/<(?:vt:)([^>]*)>([\s\S]*)</;function ct(e,t){var n=Fe(e),r=e.match(at(n.baseType))||[],i=[];if(r.length!=n.size){if(t.WTF)throw new Error("unexpected vector length "+r.length+" != "+n.size);return i}return r.forEach((function(e){var t=e.replace(st,"").match(lt);t&&i.push({v:Ze(t[2]),t:t[1]})})),i}var ut=/(^\s|\s$|\n)/;function dt(e,t){return"<"+e+(t.match(ut)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function ft(e){return Q(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function ht(e,t,n){return"<"+e+(null!=n?ft(n):"")+(null!=t?(t.match(ut)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function pt(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(uv){if(t)throw uv}return""}function mt(e,t){switch(typeof e){case"string":var n=ht("vt:lpwstr",We(e));return t&&(n=n.replace(/&quot;/g,"_x0022_")),n;case"number":return ht((0|e)==e?"vt:i4":"vt:r8",We(String(e)));case"boolean":return ht("vt:bool",e?"true":"false")}if(e instanceof Date)return ht("vt:filetime",pt(e));throw new Error("Unable to serialize "+e)}var gt={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema",main:["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"]},vt={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function yt(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],o=5;o>=0;--o)i=256*i+e[t+o];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function bt(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=r?-t:t;isFinite(a)?0==a?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?i=-1022:(o-=Math.pow(2,52),i+=1023)):(i=2047,o=isNaN(t)?26985:0);for(var s=0;s<=5;++s,o/=256)e[n+s]=255&o;e[n+6]=(15&i)<<4|15&o,e[n+7]=i>>4|r}var _t,wt,xt=function(e){for(var t=[],n=10240,r=0;r<e[0].length;++r)if(e[0][r])for(var i=0,o=e[0][r].length;i<o;i+=n)t.push.apply(t,e[0][r].slice(i,i+n));return t},St=xt,Ct=function(e,t,n){for(var r=[],i=t;i<n;i+=2)r.push(String.fromCharCode(Ut(e,i)));return r.join("").replace(L,"")},Et=Ct,kt=function(e,t,n){for(var r=[],i=t;i<t+n;++i)r.push(("0"+e[i].toString(16)).slice(-2));return r.join("")},Ot=kt,Tt=function(e,t,n){for(var r=[],i=t;i<n;i++)r.push(String.fromCharCode(zt(e,i)));return r.join("")},It=Tt,At=function(e,t){var n=Vt(e,t);return n>0?Tt(e,t+4,t+4+n-1):""},Rt=At,Pt=function(e,t){var n=Vt(e,t);return n>0?Tt(e,t+4,t+4+n-1):""},Mt=Pt,Nt=function(e,t){var n=2*Vt(e,t);return n>0?Tt(e,t+4,t+4+n-1):""},Lt=Nt;_t=wt=function(e,t){var n=Vt(e,t);return n>0?Ct(e,t+4,t+4+n):""};var Dt,jt,Ft=function(e,t){var n=Vt(e,t);return n>0?Tt(e,t+4,t+4+n):""},Bt=Ft;Dt=jt=function(e,t){return yt(e,t)};var qt=function(e){return Array.isArray(e)};C&&(Ct=function(e,t,n){return i.isBuffer(e)?e.toString("utf16le",t,n).replace(L,""):Et(e,t,n)},kt=function(e,t,n){return i.isBuffer(e)?e.toString("hex",t,t+n):Ot(e,t,n)},At=function(e,t){if(!i.isBuffer(e))return Rt(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},Pt=function(e,t){if(!i.isBuffer(e))return Mt(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},Nt=function(e,t){if(!i.isBuffer(e))return Lt(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},_t=function(e,t){if(!i.isBuffer(e))return wt(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},Ft=function(e,t){if(!i.isBuffer(e))return Bt(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},Tt=function(e,t,n){return i.isBuffer(e)?e.toString("utf8",t,n):It(e,t,n)},xt=function(e){return e[0].length>0&&i.isBuffer(e[0][0])?i.concat(e[0]):St(e)},N=function(e){return i.isBuffer(e[0])?i.concat(e):[].concat.apply([],e)},Dt=function(e,t){return i.isBuffer(e)?e.readDoubleLE(t):jt(e,t)},qt=function(e){return i.isBuffer(e)||Array.isArray(e)}),"undefined"!==typeof cptable&&(Ct=function(e,t,n){return cptable.utils.decode(1200,e.slice(t,n)).replace(L,"")},Tt=function(e,t,n){return cptable.utils.decode(65001,e.slice(t,n))},At=function(e,t){var n=Vt(e,t);return n>0?cptable.utils.decode(s,e.slice(t+4,t+4+n-1)):""},Pt=function(e,t){var n=Vt(e,t);return n>0?cptable.utils.decode(a,e.slice(t+4,t+4+n-1)):""},Nt=function(e,t){var n=2*Vt(e,t);return n>0?cptable.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},_t=function(e,t){var n=Vt(e,t);return n>0?cptable.utils.decode(1200,e.slice(t+4,t+4+n)):""},Ft=function(e,t){var n=Vt(e,t);return n>0?cptable.utils.decode(65001,e.slice(t+4,t+4+n)):""});var zt=function(e,t){return e[t]},Ut=function(e,t){return 256*e[t+1]+e[t]},Gt=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Vt=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Wt=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Ht=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function $t(e,t){var n,r,o,s,l,c,u="",d=[];switch(t){case"dbcs":if(c=this.l,C&&i.isBuffer(this))u=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)u+=String.fromCharCode(Ut(this,c)),c+=2;e*=2;break;case"utf8":u=Tt(this,this.l,this.l+e);break;case"utf16le":e*=2,u=Ct(this,this.l,this.l+e);break;case"wstr":if("undefined"===typeof cptable)return $t.call(this,e,"dbcs");u=cptable.utils.decode(a,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":u=At(this,this.l),e=4+Vt(this,this.l);break;case"lpstr-cp":u=Pt(this,this.l),e=4+Vt(this,this.l);break;case"lpwstr":u=Nt(this,this.l),e=4+2*Vt(this,this.l);break;case"lpp4":e=4+Vt(this,this.l),u=_t(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Vt(this,this.l),u=Ft(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":e=0,u="";while(0!==(o=zt(this,this.l+e++)))d.push(b(o));u=d.join("");break;case"_wstr":e=0,u="";while(0!==(o=Ut(this,this.l+e)))d.push(b(o)),e+=2;e+=2,u=d.join("");break;case"dbcs-cont":for(u="",c=this.l,l=0;l<e;++l){if(this.lens&&-1!==this.lens.indexOf(c))return o=zt(this,c),this.l=c+1,s=$t.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),d.join("")+s;d.push(b(Ut(this,c))),c+=2}u=d.join(""),e*=2;break;case"cpstr":if("undefined"!==typeof cptable){u=cptable.utils.decode(a,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(u="",c=this.l,l=0;l!=e;++l){if(this.lens&&-1!==this.lens.indexOf(c))return o=zt(this,c),this.l=c+1,s=$t.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),d.join("")+s;d.push(b(zt(this,c))),c+=1}u=d.join("");break;default:switch(e){case 1:return n=zt(this,this.l),this.l++,n;case 2:return n=("i"===t?Gt:Ut)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===t||0===(128&this[this.l+3])?(n=(e>0?Wt:Ht)(this,this.l),this.l+=4,n):(r=Vt(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return r=8==e?Dt(this,this.l):Dt([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:u=kt(this,this.l,e);break}}return this.l+=e,u}var Kt=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},Xt=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Yt=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Jt(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)Yt(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){if("undefined"!==typeof cptable&&874==s)for(i=0;i!=t.length;++i){var o=cptable.utils.encode(s,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===n){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var l=t.charCodeAt(i);this[this.l++]=255&l,this[this.l++]=l>>8}while(this.l<a)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,Kt(this,t,this.l);break;case 8:if(r=8,"f"===n){bt(this,t,this.l);break}case 16:break;case-4:r=4,Xt(this,t,this.l);break}}return this.l+=r,this}function Qt(e,t){var n=kt(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Zt(e,t){e.l=t,e.read_shift=$t,e.chk=Qt,e.write_shift=Jt}function en(e,t){e.l+=t}function tn(e){var t=O(e);return Zt(t,0),t}function nn(e,t,n){if(e){var r,i,o;Zt(e,e.l||0);var a=e.length,s=0,l=0;while(e.l<a){s=e.read_shift(1),128&s&&(s=(127&s)+((127&e.read_shift(1))<<7));var c=Mm[s]||Mm[65535];for(r=e.read_shift(1),o=127&r,i=1;i<4&&128&r;++i)o+=(127&(r=e.read_shift(1)))<<7*i;l=e.l+o;var u=(c.f||en)(e,o,n);if(e.l=l,t(u,c.n,s))return}}}function rn(){var e=[],t=C?256:2048,n=function(e){var t=tn(e);return Zt(t,0),t},r=n(t),i=function(){r&&(r.length>r.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},o=function(e){return r&&e<r.length-r.l?r:(i(),r=n(Math.max(e+1,t)))},a=function(){return i(),xt([e])},s=function(e){i(),r=e,null==r.l&&(r.l=r.length),o(t)};return{next:o,push:s,end:a,_bufs:e}}function on(e,t,n,r){var i,o=+Nm[t];if(!isNaN(o)){r||(r=Mm[o].p||(n||[]).length||0),i=1+(o>=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var a=e.next(i);o<=127?a.write_shift(1,o):(a.write_shift(1,128+(127&o)),a.write_shift(1,o>>7));for(var s=0;4!=s;++s){if(!(r>=128)){a.write_shift(1,r);break}a.write_shift(1,128+(127&r)),r>>=7}r>0&&qt(n)&&e.push(n)}}function an(e,t,n){var r=pe(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){while(r.c>=256)r.c-=256;while(r.r>=65536)r.r-=65536}return r}function sn(e,t,n){var r=pe(e);return r.s=an(r.s,t.s,n),r.e=an(r.e,t.s,n),r}function ln(e,t){if(e.cRel&&e.c<0){e=pe(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=pe(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var n=xn(e);return e.cRel||null==e.cRel||(n=yn(n)),e.rRel||null==e.rRel||(n=pn(n)),n}function cn(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?ln(e.s,t.biff)+":"+ln(e.e,t.biff):(e.s.rRel?"":"$")+hn(e.s.r)+":"+(e.e.rRel?"":"$")+hn(e.e.r):(e.s.cRel?"":"$")+vn(e.s.c)+":"+(e.e.cRel?"":"$")+vn(e.e.c)}var un={},dn=function(e,t){var r;if("undefined"!==typeof t)r=t;else{try{r=n(2)}catch(uv){r=null}}e.rc4=function(e,t){var n=new Array(256),r=0,i=0,o=0,a=0;for(i=0;256!=i;++i)n[i]=i;for(i=0;256!=i;++i)o=o+n[i]+e[i%e.length].charCodeAt(0)&255,a=n[i],n[i]=n[o],n[o]=a;i=o=0;var s=O(t.length);for(r=0;r!=t.length;++r)i=i+1&255,o=(o+n[i])%256,a=n[i],n[i]=n[o],n[o]=a,s[r]=t[r]^n[n[i]+n[o]&255];return s},e.md5=function(e){if(!r)throw new Error("Unsupported crypto");return r.createHash("md5").update(e).digest("hex")}};function fn(e){return parseInt(mn(e),10)-1}function hn(e){return""+(e+1)}function pn(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function mn(e){return e.replace(/\$(\d+)$/,"$1")}function gn(e){for(var t=bn(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function vn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function yn(e){return e.replace(/^([A-Z])/,"$$$1")}function bn(e){return e.replace(/^\$([A-Z])/,"$1")}function _n(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function wn(e){for(var t=0,n=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function xn(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function Sn(e){var t=e.indexOf(":");return-1==t?{s:wn(e),e:wn(e)}:{s:wn(e.slice(0,t)),e:wn(e.slice(t+1))}}function Cn(e,t){return"undefined"===typeof t||"number"===typeof t?Cn(e.s,e.e):("string"!==typeof e&&(e=xn(e)),"string"!==typeof t&&(t=xn(t)),e==t?e:e+":"+t)}function En(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,o=e.length;for(n=0;r<o;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.s.c=--n,n=0;r<o;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}if(t.s.r=--n,r===o||58===e.charCodeAt(++r))return t.e.c=t.s.c,t.e.r=t.s.r,t;for(n=0;r!=o;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.e.c=--n,n=0;r!=o;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return t.e.r=--n,t}function kn(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=j.format(e.z,n?ie(t):t)}catch(uv){}try{return e.w=j.format((e.XF||{}).numFmtId||(n?14:0),n?ie(t):t)}catch(uv){return""+t}}function On(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),kn(e,void 0==t?e.v:t))}function Tn(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function In(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=w&&null==i&&(i=w);var o=e||(i?[]:{}),a=0,s=0;if(o&&null!=r.origin){if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?wn(r.origin):r.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=En(o["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==a&&(c.e.r=a=u.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=t[d].length;++f)if("undefined"!==typeof t[d][f]){var h={v:t[d][f]},p=a+d,m=s+f;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r<p&&(c.e.r=p),c.e.c<m&&(c.e.c=m),!t[d][f]||"object"!==typeof t[d][f]||Array.isArray(t[d][f])||t[d][f]instanceof Date)if(Array.isArray(h.v)&&(h.f=t[d][f][1],h.v=h.v[0]),null===h.v)if(h.f)h.t="n";else{if(!r.sheetStubs)continue;h.t="z"}else"number"===typeof h.v?h.t="n":"boolean"===typeof h.v?h.t="b":h.v instanceof Date?(h.z=r.dateNF||j._table[14],r.cellDates?(h.t="d",h.w=j.format(h.z,ie(h.v))):(h.t="n",h.v=ie(h.v),h.w=j.format(h.z,h.v))):h.t="s";else h=t[d][f];if(i)o[p]||(o[p]=[]),o[p][m]&&o[p][m].z&&(h.z=o[p][m].z),o[p][m]=h;else{var g=xn({c:m,r:p});o[g]&&o[g].z&&(h.z=o[g].z),o[g]=h}}}return c.s.c<1e7&&(o["!ref"]=Cn(c)),o}function An(e,t){return In(null,e,t)}function Rn(e,t){return t||(t=tn(4)),t.write_shift(4,e),t}function Pn(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function Mn(e,t){var n=!1;return null==t&&(n=!0,t=tn(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function Nn(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Ln(e,t){return t||(t=tn(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function Dn(e,t){var n=e.l,r=e.read_shift(1),i=Pn(e),o=[],a={t:i,h:i};if(0!==(1&r)){for(var s=e.read_shift(4),l=0;l!=s;++l)o.push(Nn(e));a.r=o}else a.r=[{ich:0,ifnt:0}];return e.l=n+t,a}function jn(e,t){var n=!1;return null==t&&(n=!0,t=tn(15+4*e.t.length)),t.write_shift(1,0),Mn(e.t,t),n?t.slice(0,t.l):t}dn(un,"undefined"!==typeof crypto?crypto:void 0);var Fn=Dn;function Bn(e,t){var n=!1;return null==t&&(n=!0,t=tn(23+4*e.t.length)),t.write_shift(1,1),Mn(e.t,t),t.write_shift(4,1),Ln({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function qn(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function zn(e,t){return null==t&&(t=tn(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Un=Pn,Gn=Mn;function Vn(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function Wn(e,t){var n=!1;return null==t&&(n=!0,t=tn(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var Hn=Pn,$n=Vn,Kn=Wn;function Xn(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4,t[0]&=252;var i=0===r?Dt([0,0,0,0,t[0],t[1],t[2],t[3]],0):Wt(t,0)>>2;return n?i/100:i}function Yn(e,t){null==t&&(t=tn(4));var n=0,r=0,i=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?i:e)<<2)+(n+2))}function Jn(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function Qn(e,t){return t||(t=tn(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Zn=Jn,er=Qn;function tr(e){return e.read_shift(8,"f")}function nr(e,t){return(t||tn(8)).write_shift(8,e,"f")}function rr(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var c=Pr[i];c&&(t.rgb=fl(c));break;case 2:t.rgb=fl([a,s,l]);break;case 3:t.theme=i;break}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}function ir(e,t){if(t||(t=tn(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function or(e){var t=e.read_shift(1);e.l++;var n={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return n}function ar(e,t){t||(t=tn(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,n),t.write_shift(1,0),t}function sr(e,t){var n={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return n[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function lr(e){return sr(e,1)}function cr(e){return sr(e,2)}var ur=2,dr=3,fr=11,hr=12,pr=19,mr=30,gr=64,vr=65,yr=71,br=4096,_r=80,wr=81,xr=[_r,wr],Sr={1:{n:"CodePage",t:ur},2:{n:"Category",t:_r},3:{n:"PresentationFormat",t:_r},4:{n:"ByteCount",t:dr},5:{n:"LineCount",t:dr},6:{n:"ParagraphCount",t:dr},7:{n:"SlideCount",t:dr},8:{n:"NoteCount",t:dr},9:{n:"HiddenCount",t:dr},10:{n:"MultimediaClipCount",t:dr},11:{n:"ScaleCrop",t:fr},12:{n:"HeadingPairs",t:br|hr},13:{n:"TitlesOfParts",t:br|mr},14:{n:"Manager",t:_r},15:{n:"Company",t:_r},16:{n:"LinksUpToDate",t:fr},17:{n:"CharacterCount",t:dr},19:{n:"SharedDoc",t:fr},22:{n:"HyperlinksChanged",t:fr},23:{n:"AppVersion",t:dr,p:"version"},24:{n:"DigSig",t:vr},26:{n:"ContentType",t:_r},27:{n:"ContentStatus",t:_r},28:{n:"Language",t:_r},29:{n:"Version",t:_r},255:{}},Cr={1:{n:"CodePage",t:ur},2:{n:"Title",t:_r},3:{n:"Subject",t:_r},4:{n:"Author",t:_r},5:{n:"Keywords",t:_r},6:{n:"Comments",t:_r},7:{n:"Template",t:_r},8:{n:"LastAuthor",t:_r},9:{n:"RevNumber",t:_r},10:{n:"EditTime",t:gr},11:{n:"LastPrinted",t:gr},12:{n:"CreatedDate",t:gr},13:{n:"ModifiedDate",t:gr},14:{n:"PageCount",t:dr},15:{n:"WordCount",t:dr},16:{n:"CharCount",t:dr},17:{n:"Thumbnail",t:yr},18:{n:"Application",t:_r},19:{n:"DocSecurity",t:dr},255:{}},Er={2147483648:{n:"Locale",t:pr},2147483651:{n:"Behavior",t:pr},1919054434:{}};(function(){for(var e in Er)Object.prototype.hasOwnProperty.call(Er,e)&&(Sr[e]=Cr[e]=Er[e])})();var kr=Z(Sr,"n"),Or=Z(Cr,"n"),Tr={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Ir=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Ar(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Rr=Ar([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Pr=pe(Rr),Mr={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Nr=te(Mr),Lr={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.sheetMetadata":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"TODO","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"vba","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Dr=function(){var e={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};return Q(e).forEach((function(t){["xlsm","xlam"].forEach((function(n){e[t][n]||(e[t][n]=e[t].xlsx)}))})),Q(e).forEach((function(t){Q(e[t]).forEach((function(n){Lr[e[t][n]]=t}))})),e}(),jr=ne(Lr);function Fr(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function Br(e){var t=Fr();if(!e||!e.match)return t;var n={};if((e.match(Le)||[]).forEach((function(e){var r=Fe(e);switch(r[0].replace(De,"<")){case"<?xml":break;case"<Types":t.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":n[r.Extension]=r.ContentType;break;case"<Override":void 0!==t[Lr[r.ContentType]]&&t[Lr[r.ContentType]].push(r.PartName);break}})),t.xmlns!==gt.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}gt.CT="http://schemas.openxmlformats.org/package/2006/content-types";var qr=ht("Types",null,{xmlns:gt.CT,"xmlns:xsd":gt.xsd,"xmlns:xsi":gt.xsi}),zr=[["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels",jr.rels[0]]].map((function(e){return ht("Default",null,{Extension:e[0],ContentType:e[1]})}));function Ur(e,t){var n,r=[];r[r.length]=Me,r[r.length]=qr,r=r.concat(zr);var i=function(i){e[i]&&e[i].length>0&&(n=e[i][0],r[r.length]=ht("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Dr[i][t.bookType||"xlsx"]}))},o=function(n){(e[n]||[]).forEach((function(e){r[r.length]=ht("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Dr[n][t.bookType||"xlsx"]})}))},a=function(t){(e[t]||[]).forEach((function(e){r[r.length]=ht("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:jr[t][0]})}))};return i("workbooks"),o("sheets"),o("charts"),a("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(a),a("vba"),a("comments"),a("drawings"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var Gr={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Vr(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Wr(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(Le)||[]).forEach((function(e){var i=Fe(e);if("<Relationship"===i[0]){var o={};o.Type=i.Type,o.Target=i.Target,o.Id=i.Id,o.TargetMode=i.TargetMode;var a="External"===i.TargetMode?i.Target:Pe(i.Target,t);n[a]=o,r[i.Id]=o}})),n["!id"]=r,n}gt.RELS="http://schemas.openxmlformats.org/package/2006/relationships";var Hr=ht("Relationships",null,{xmlns:gt.RELS});function $r(e){var t=[Me,Hr];return Q(e["!id"]).forEach((function(n){t[t.length]=ht("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}var Kr=[Gr.HLINK,Gr.XPATH,Gr.XMISS];function Xr(e,t,n,r,i,o){if(i||(i={}),e["!id"]||(e["!id"]={}),t<0)for(t=1;e["!id"]["rId"+t];++t);if(i.Id="rId"+t,i.Type=r,i.Target=n,o?i.TargetMode=o:Kr.indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}var Yr="application/vnd.oasis.opendocument.spreadsheet";function Jr(e,t){var n,r,i=am(e);while(n=sm.exec(i))switch(n[3]){case"manifest":break;case"file-entry":if(r=Fe(n[0],!1),"/"==r.path&&r.type!==Yr)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}function Qr(e){var t=[Me];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<e.length;++n)t.push('  <manifest:file-entry manifest:full-path="'+e[n][0]+'" manifest:media-type="'+e[n][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}function Zr(e,t,n){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n',"  </rdf:Description>\n"].join("")}function ei(e,t){return['  <rdf:Description rdf:about="'+e+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n',"  </rdf:Description>\n"].join("")}function ti(e){var t=[Me];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var n=0;n!=e.length;++n)t.push(Zr(e[n][0],e[n][1])),t.push(ei("",e[n][0]));return t.push(Zr("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}var ni=function(){var e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+t.version+"</meta:generator></office:meta></office:document-meta>";return function(){return e}}(),ri=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];gt.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Gr.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";var ii=function(){for(var e=new Array(ri.length),t=0;t<ri.length;++t){var n=ri[t],r="(?:"+n[0].slice(0,n[0].indexOf(":"))+":)"+n[0].slice(n[0].indexOf(":")+1);e[t]=new RegExp("<"+r+"[^>]*>([\\s\\S]*?)</"+r+">")}return e}();function oi(e){var t={};e=Ze(e);for(var n=0;n<ri.length;++n){var r=ri[n],i=e.match(ii[n]);null!=i&&i.length>0&&(t[r[1]]=Ue(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=fe(t[r[1]]))}return t}var ai=ht("cp:coreProperties",null,{"xmlns:cp":gt.CORE_PROPS,"xmlns:dc":gt.dc,"xmlns:dcterms":gt.dcterms,"xmlns:dcmitype":gt.dcmitype,"xmlns:xsi":gt.xsi});function si(e,t,n,r,i){null==i[e]&&null!=t&&""!==t&&(i[e]=t,t=We(t),r[r.length]=n?ht(e,t,n):dt(e,t))}function li(e,t){var n=t||{},r=[Me,ai],i={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&si("dcterms:created","string"===typeof e.CreatedDate?e.CreatedDate:pt(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),null!=e.ModifiedDate&&si("dcterms:modified","string"===typeof e.ModifiedDate?e.ModifiedDate:pt(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var o=0;o!=ri.length;++o){var a=ri[o],s=n.Props&&null!=n.Props[a[1]]?n.Props[a[1]]:e?e[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&si(a[0],s,null,r,i)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var ci=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];gt.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",Gr.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";var ui=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function di(e,t,n,r){var i=[];if("string"==typeof e)i=ct(e,r);else for(var o=0;o<e.length;++o)i=i.concat(e[o].map((function(e){return{v:e}})));var a="string"==typeof t?ct(t,r).map((function(e){return e.v})):t,s=0,l=0;if(a.length>0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=a.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=a.slice(s,s+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=a.slice(s,s+l);break}s+=l}}function fi(e,t,n){var r={};return t||(t={}),e=Ze(e),ci.forEach((function(n){var i=(e.match(it(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Ue(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var o=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));o&&o.length>0&&(r[n[1]]=o[1]);break}})),r.HeadingPairs&&r.TitlesOfParts&&di(r.HeadingPairs,r.TitlesOfParts,t,n),t}var hi=ht("Properties",null,{xmlns:gt.EXT_PROPS,"xmlns:vt":gt.vt});function pi(e){var t=[],n=ht;return e||(e={}),e.Application="SheetJS",t[t.length]=Me,t[t.length]=hi,ci.forEach((function(r){if(void 0!==e[r[1]]){var i;switch(r[2]){case"string":i=We(String(e[r[1]]));break;case"bool":i=e[r[1]]?"true":"false";break}void 0!==i&&(t[t.length]=n(r[0],i))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+We(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}gt.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Gr.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";var mi=/<[^>]+>[^<]*/g;function gi(e,t){var n={},r="",i=e.match(mi);if(i)for(var o=0;o!=i.length;++o){var a=i[o],s=Fe(a);switch(s[0]){case"<?xml":break;case"<Properties":break;case"<property":r=Ue(s.name);break;case"</property>":r=null;break;default:if(0===a.indexOf("<vt:")){var l=a.split(">"),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[r]=Ue(u);break;case"bool":n[r]=Qe(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=fe(u);break;case"cy":case"error":n[r]=Ue(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",a,c,l)}}else if("</"===a.slice(0,2));else if(t.WTF)throw new Error(a)}}return n}var vi=ht("Properties",null,{xmlns:gt.CUST_PROPS,"xmlns:vt":gt.vt});function yi(e){var t=[Me,vi];if(!e)return t.join("");var n=1;return Q(e).forEach((function(r){++n,t[t.length]=ht("property",mt(e[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:We(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var bi={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},_i=ee(bi);function wi(e,t,n){t=_i[t]||t,e[t]=n}function xi(e,t){var n=[];return Q(bi).map((function(e){for(var t=0;t<ri.length;++t)if(ri[t][1]==e)return ri[t];for(t=0;t<ci.length;++t)if(ci[t][1]==e)return ci[t];throw e})).forEach((function(r){if(null!=e[r[1]]){var i=t&&t.Props&&null!=t.Props[r[1]]?t.Props[r[1]]:e[r[1]];switch(r[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}"number"==typeof i?i=String(i):!0===i||!1===i?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),n.push(dt(bi[r[1]]||r[1],i))}})),ht("DocumentProperties",n.join(""),{xmlns:vt.o})}function Si(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",i=[];return e&&Q(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var r=0;r<ri.length;++r)if(t==ri[r][1])return;for(r=0;r<ci.length;++r)if(t==ci[r][1])return;for(r=0;r<n.length;++r)if(t==n[r])return;var o=e[t],a="string";"number"==typeof o?(a="float",o=String(o)):!0===o||!1===o?(a="boolean",o=o?"1":"0"):o=String(o),i.push(ht(He(t),o,{"dt:dt":a}))}})),t&&Q(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],o="string";"number"==typeof r?(o="float",r=String(r)):!0===r||!1===r?(o="boolean",r=r?"1":"0"):r instanceof Date?(o="dateTime.tz",r=r.toISOString()):r=String(r),i.push(ht(He(n),r,{"dt:dt":o}))}})),"<"+r+' xmlns="'+vt.o+'">'+i.join("")+"</"+r+">"}function Ci(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Ei(e){var t="string"==typeof e?new Date(Date.parse(e)):e,n=t.getTime()/1e3+11644473600,r=n%Math.pow(2,32),i=(n-r)/Math.pow(2,32);r*=1e7,i*=1e7;var o=r/Math.pow(2,32)|0;o>0&&(r%=Math.pow(2,32),i+=o);var a=tn(8);return a.write_shift(4,r),a.write_shift(4,i),a}function ki(e,t,n){var r=e.l,i=e.read_shift(0,"lpstr-cp");if(n)while(e.l-r&3)++e.l;return i}function Oi(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function Ti(e,t,n){return 31===t?Oi(e):ki(e,t,n)}function Ii(e,t,n){return Ti(e,t,!1===n?0:4)}function Ai(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return Ti(e,t,0)}function Ri(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r)n[r]=e.read_shift(0,"lpstr-cp").replace(L,"");return n}function Pi(e){return Ri(e)}function Mi(e){var t=Bi(e,wr),n=Bi(e,dr);return[t,n]}function Ni(e){for(var t=e.read_shift(4),n=[],r=0;r!=t/2;++r)n.push(Mi(e));return n}function Li(e){return Ni(e)}function Di(e,t){for(var n=e.read_shift(4),r={},i=0;i!=n;++i){var o=e.read_shift(4),a=e.read_shift(4);r[o]=e.read_shift(a,1200===t?"utf16le":"utf8").replace(L,"").replace(D,"!"),1200===t&&a%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),r}function ji(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function Fi(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Bi(e,t,n){var r,i=e.read_shift(2),o=n||{};if(e.l+=2,t!==hr&&i!==t&&-1===xr.indexOf(t))throw new Error("Expected type "+t+" saw "+i);switch(t===hr?i:t){case 2:return r=e.read_shift(2,"i"),o.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i"),r;case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4),r;case 30:return ki(e,i,4).replace(L,"");case 31:return Oi(e);case 64:return Ci(e);case 65:return ji(e);case 71:return Fi(e);case 80:return Ii(e,i,!o.raw).replace(L,"");case 81:return Ai(e,i).replace(L,"");case 4108:return Li(e);case 4126:return Pi(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function qi(e,t){var n=tn(4),r=tn(4);switch(n.write_shift(4,80==e?31:e),e){case 3:r.write_shift(-4,t);break;case 5:r=tn(8),r.write_shift(8,t,"f");break;case 11:r.write_shift(4,t?1:0);break;case 64:r=Ei(t);break;case 31:case 80:r=tn(4+2*(t.length+1)+(t.length%2?0:2)),r.write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");while(r.l!=r.length)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return N([n,r])}function zi(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0,s=0,l=-1,c={};for(a=0;a!=i;++a){var u=e.read_shift(4),d=e.read_shift(4);o[a]=[u,d+n]}o.sort((function(e,t){return e[1]-t[1]}));var f={};for(a=0;a!=i;++a){if(e.l!==o[a][1]){var p=!0;if(a>0&&t)switch(t[o[a-1][0]].t){case 2:e.l+2===o[a][1]&&(e.l+=2,p=!1);break;case 80:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break;case 4108:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break}if((!t||0==a)&&e.l<=o[a][1]&&(p=!1,e.l=o[a][1]),p)throw new Error("Read Error: Expected address "+o[a][1]+" at "+e.l+" :"+a)}if(t){var m=t[o[a][0]];if(f[m.n]=Bi(e,m.t,{raw:!0}),"version"===m.p&&(f[m.n]=String(f[m.n]>>16)+"."+("0000"+String(65535&f[m.n])).slice(-4)),"CodePage"==m.n)switch(f[m.n]){case 0:f[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(s=f[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[m.n])}}else if(1===o[a][0]){if(s=f.CodePage=Bi(e,ur),h(s),-1!==l){var g=e.l;e.l=o[l][1],c=Di(e,s),e.l=g}}else if(0===o[a][0]){if(0===s){l=a,e.l=o[a+1][1];continue}c=Di(e,s)}else{var v,y=c[o[a][0]];switch(e[e.l]){case 65:e.l+=4,v=ji(e);break;case 30:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=Yi(e,4);break;case 64:e.l+=4,v=fe(Ci(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[y]=v}}return e.l=n+r,f}var Ui=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"].concat(ui);function Gi(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Vi(e,t,n){var r=tn(8),i=[],o=[],a=8,s=0,l=tn(8),c=tn(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),o.push(l),i.push(c),a+=8+l.length,!t){c=tn(8),c.write_shift(4,0),i.unshift(c);var u=[tn(4)];for(u[0].write_shift(4,e.length),s=0;s<e.length;++s){var d=e[s][0];l=tn(8+2*(d.length+1)+(d.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,d.length+1),l.write_shift(0,d,"dbcs");while(l.l!=l.length)l.write_shift(1,0);u.push(l)}l=N(u),o.unshift(l),a+=8+l.length}for(s=0;s<e.length;++s)if((!t||t[e[s][0]])&&!(Ui.indexOf(e[s][0])>-1)&&null!=e[s][1]){var f=e[s][1],h=0;if(t){h=+t[e[s][0]];var p=n[h];if("version"==p.p&&"string"==typeof f){var m=f.split(".");f=(+m[0]<<16)+(+m[1]||0)}l=qi(p.t,f)}else{var g=Gi(f);-1==g&&(g=31,f=String(f)),l=qi(g,f)}o.push(l),c=tn(8),c.write_shift(4,t?h:2+s),i.push(c),a+=8+l.length}var v=8*(o.length+1);for(s=0;s<o.length;++s)i[s].write_shift(4,v),v+=o[s].length;return r.write_shift(4,a),r.write_shift(4,o.length),N([r].concat(i).concat(o))}function Wi(e,t,n){var r=e.content;if(!r)return{};Zt(r,0);var i,o,a,s,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==K.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(i=r.read_shift(4),1!==i&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(o=r.read_shift(16),s=r.read_shift(4),1===i&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);2===i&&(a=r.read_shift(16),l=r.read_shift(4));var d,f=zi(r,t),h={SystemIdentifier:c};for(var p in f)h[p]=f[p];if(h.FMTID=o,1===i)return h;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{d=zi(r,null)}catch(uv){}for(p in d)h[p]=d[p];return h.FMTID=[o,a],h}function Hi(e,t,n,r,i,o){var a=tn(i?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,K.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,i?2:1),a.write_shift(16,t,"hex"),a.write_shift(4,i?68:48);var l=Vi(e,n,r);if(s.push(l),i){var c=Vi(i,null,null);a.write_shift(16,o,"hex"),a.write_shift(4,68+l.length),s.push(c)}return N(s)}function $i(e,t){return e.read_shift(t),null}function Ki(e,t){t||(t=tn(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}function Xi(e,t,n){var r=[],i=e.l+t;while(e.l<i)r.push(n(e,i-e.l));if(i!==e.l)throw new Error("Slurp error");return r}function Yi(e,t){return 1===e.read_shift(t)}function Ji(e,t){return t||(t=tn(2)),t.write_shift(2,+!!e),t}function Qi(e){return e.read_shift(2,"u")}function Zi(e,t){return t||(t=tn(2)),t.write_shift(2,e),t}function eo(e,t){return Xi(e,t,Qi)}function to(e){var t=e.read_shift(1),n=e.read_shift(1);return 1===n?t:1===t}function no(e,t,n){return n||(n=tn(2)),n.write_shift(1,+e),n.write_shift(1,"e"==t?1:0),n}function ro(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),i="sbcs-cont",o=a;if(n&&n.biff>=8&&(a=1200),n&&8!=n.biff)12==n.biff&&(i="wstr");else{var s=e.read_shift(1);s&&(i="dbcs-cont")}n.biff>=2&&n.biff<=5&&(i="cpstr");var l=r?e.read_shift(r,i):"";return a=o,l}function io(e){var t=a;a=1200;var n,r=e.read_shift(2),i=e.read_shift(1),o=4&i,s=8&i,l=1+(1&i),c=0,u={};s&&(c=e.read_shift(2)),o&&(n=e.read_shift(4));var d=2==l?"dbcs-cont":"sbcs-cont",f=0===r?"":e.read_shift(r,d);return s&&(e.l+=4*c),o&&(e.l+=n),u.t=f,s||(u.raw="<t>"+u.t+"</t>",u.r=u.t),a=t,u}function oo(e){var t=e.t||"",n=1,r=tn(3+(n>1?2:0));r.write_shift(2,t.length),r.write_shift(1,1|(n>1?8:0)),n>1&&r.write_shift(2,n);var i=tn(2*t.length);i.write_shift(2*t.length,t,"utf16le");var o=[r,i];return N(o)}function ao(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return r=0===i?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),r}function so(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):ao(e,r,n)}function lo(e,t,n){if(n.biff>5)return so(e,t,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function co(e,t,n){return n||(n=tn(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function uo(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}function fo(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(L,"");return r&&(e.l+=24),i}function ho(e){e.l+=2;var t=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var n=e.read_shift(4);if(0===n)return t.replace(/\\/g,"/");var r=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(r>>1,"utf16le").replace(L,"");return i}function po(e,t){var n=e.read_shift(16);switch(t-=16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return fo(e,t);case"0303000000000000c000000000000046":return ho(e,t);default:throw new Error("Unsupported Moniker "+n)}}function mo(e){var t=e.read_shift(4),n=t>0?e.read_shift(t,"utf16le").replace(L,""):"";return n}function go(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var o,a,s,l,c,u,d="";16&i&&(o=mo(e,n-e.l)),128&i&&(a=mo(e,n-e.l)),257===(257&i)&&(s=mo(e,n-e.l)),1===(257&i)&&(l=po(e,n-e.l)),8&i&&(d=mo(e,n-e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=Ci(e)),e.l=n;var f=a||s||l||"";f&&d&&(f+="#"+d),f||(f="#"+d);var h={Target:f};return c&&(h.guid=c),u&&(h.time=u),o&&(h.Tooltip=o),h}function vo(e){var t=tn(512),n=0,r=e.Target,i=r.indexOf("#")>-1?31:23;switch(r.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(n=0;n<o.length;++n)t.write_shift(4,o[n]);if(28==i){for(r=r.slice(1),t.write_shift(4,r.length+1),n=0;n<r.length;++n)t.write_shift(2,r.charCodeAt(n));t.write_shift(2,0)}else if(2&i){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));for(t.write_shift(4,2*(r.length+1)),n=0;n<r.length;++n)t.write_shift(2,r.charCodeAt(n));t.write_shift(2,0)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<o.length;++n)t.write_shift(1,parseInt(o[n],16));var a=0;while("../"==r.slice(3*a,3*a+3)||"..\\"==r.slice(3*a,3*a+3))++a;for(t.write_shift(2,a),t.write_shift(4,r.length+1),n=0;n<r.length;++n)t.write_shift(1,255&r.charCodeAt(n));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),n=0;n<6;++n)t.write_shift(4,0)}return t.slice(0,t.l)}function yo(e){var t=e.read_shift(1),n=e.read_shift(1),r=e.read_shift(1),i=e.read_shift(1);return[t,n,r,i]}function bo(e,t){var n=yo(e,t);return n[3]=0,n}function _o(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return{r:t,c:n,ixfe:r}}function wo(e,t,n,r){return r||(r=tn(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function xo(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}function So(e,t,n){return 0===t?"":lo(e,t,n)}function Co(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),o=e.read_shift(r,"i"),a=e.read_shift(r,"i");return[i,o,a]}function Eo(e){var t=e.read_shift(2),n=Xn(e);return[t,n]}function ko(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=ro(e,t,n),o=e.read_shift(2);if(r-=e.l,o!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+o);return e.l+=o,i}function Oo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function To(e,t){return t||(t=tn(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Io(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(1),i=e.read_shift(1);return{s:{c:r,r:t},e:{c:i,r:n}}}var Ao=Io;function Ro(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function Po(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Mo(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function No(e){e.l+=2,e.l+=e.read_shift(2)}var Lo={0:No,4:No,5:No,6:No,7:Mo,8:No,9:No,10:No,11:No,12:No,13:Po,14:No,15:No,16:No,17:No,18:No,19:No,20:No,21:Ro};function Do(e,t){var n=e.l+t,r=[];while(e.l<n){var i=e.read_shift(2);e.l-=2;try{r.push(Lo[i](e,n-e.l))}catch(uv){return e.l=n,r}}return e.l!=n&&(e.l=n),r}function jo(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),t-=2,t>=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function Fo(e,t,n){var r=1536,i=16;switch(n.bookType){case"biff8":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var o=tn(i);return o.write_shift(2,r),o.write_shift(2,t),i>4&&o.write_shift(2,29282),i>6&&o.write_shift(2,1997),i>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function Bo(e,t){return 0===t||e.read_shift(2),1200}function qo(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=lo(e,0,n);return e.read_shift(t+r-e.l),i}function zo(e,t){var n=!t||8==t.biff,r=tn(n?112:54);r.write_shift(8==t.biff?2:1,7),n&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(n?0:536870912));while(r.l<r.length)r.write_shift(1,n?0:32);return r}function Uo(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r}}function Go(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),o=e.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule";break}var a=ro(e,0,n);return 0===a.length&&(a="Sheet1"),{pos:r,hs:i,dt:o,name:a}}function Vo(e,t){var n=!t||t.biff>=8?2:1,r=tn(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function Wo(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0;a!=i&&e.l<n;++a)o.push(io(e));return o.Count=r,o.Unique=i,o}function Ho(e,t){var n=tn(8);n.write_shift(4,e.Count),n.write_shift(4,e.Unique);for(var r=[],i=0;i<e.length;++i)r[i]=oo(e[i],t);var o=N([n].concat(r));return o.parts=[n.length].concat(r.map((function(e){return e.length}))),o}function $o(e,t){var n={};return n.dsst=e.read_shift(2),e.l+=t-2,n}function Ko(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var n=e.read_shift(2);e.l+=4;var r=e.read_shift(1);return e.l+=3,7&r&&(t.level=7&r),32&r&&(t.hidden=!0),64&r&&(t.hpt=n/20),t}function Xo(e){var t=xo(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);var n=e.read_shift(4);return 0!==n}function Yo(e){return e.read_shift(2),e.read_shift(4)}function Jo(e,t,n){var r=0;n&&2==n.biff||(r=e.read_shift(2));var i=e.read_shift(2);n&&2==n.biff&&(r=1-(i>>15),i&=32767);var o={Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3};return[o,i]}function Qo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,n],Dim:[r,i],Flags:o,CurTab:a,FirstTab:s,Selected:l,TabRatio:c}}function Zo(){var e=tn(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function ea(e,t,n){if(n&&n.biff>=2&&n.biff<5)return{};var r=e.read_shift(2);return{RTL:64&r}}function ta(e){var t=tn(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function na(){}function ra(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return r.name=ro(e,0,n),r}function ia(e,t){var n=e.name||"Arial",r=t&&5==t.biff,i=r?15+n.length:16+2*n.length,o=tn(i);return o.write_shift(2,20*(e.sz||12)),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,n.length),r||o.write_shift(1,1),o.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),o}function oa(e){var t=_o(e);return t.isst=e.read_shift(4),t}function aa(e,t,n,r){var i=tn(10);return wo(e,t,r,i),i.write_shift(4,n),i}function sa(e,t,n){var r=e.l+t,i=_o(e,6);2==n.biff&&e.l++;var o=so(e,r-e.l,n);return i.val=o,i}function la(e,t,n,r,i){var o=!i||8==i.biff,a=tn(+o+8+(1+o)*n.length);return wo(e,t,r,a),a.write_shift(2,n.length),o&&a.write_shift(1,1),a.write_shift((1+o)*n.length,n,o?"utf16le":"sbcs"),a}function ca(e,t,n){var r=e.read_shift(2),i=lo(e,0,n);return[r,i]}function ua(e,t,n,r){var i=n&&5==n.biff;r||(r=tn(i?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(i?1:2,t.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var o=r.length>r.l?r.slice(0,r.l):r;return null==o.l&&(o.l=o.length),o}var da=lo;function fa(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,o=e.read_shift(i),a=e.read_shift(i),s=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:o,c:s},e:{r:a,c:l}}}function ha(e,t){var n=8!=t.biff&&t.biff?2:4,r=tn(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}function pa(e){var t=e.read_shift(2),n=e.read_shift(2),r=Eo(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}function ma(e,t){var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),o=[];while(e.l<n)o.push(Eo(e));if(e.l!==n)throw new Error("MulRK read error");var a=e.read_shift(2);if(o.length!=a-i+1)throw new Error("MulRK length mismatch");return{r:r,c:i,C:a,rkrec:o}}function ga(e,t){var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),o=[];while(e.l<n)o.push(e.read_shift(2));if(e.l!==n)throw new Error("MulBlank read error");var a=e.read_shift(2);if(o.length!=a-i+1)throw new Error("MulBlank length mismatch");return{r:r,c:i,C:a,ixfe:o}}function va(e,t,n,r){var i={},o=e.read_shift(4),a=e.read_shift(4),s=e.read_shift(4),l=e.read_shift(2);return i.patternType=Ir[s>>26],r.cellStyles?(i.alc=7&o,i.fWrap=o>>3&1,i.alcV=o>>4&7,i.fJustLast=o>>7&1,i.trot=o>>8&255,i.cIndent=o>>16&15,i.fShrinkToFit=o>>20&1,i.iReadOrder=o>>22&2,i.fAtrNum=o>>26&1,i.fAtrFnt=o>>27&1,i.fAtrAlc=o>>28&1,i.fAtrBdr=o>>29&1,i.fAtrPat=o>>30&1,i.fAtrProt=o>>31&1,i.dgLeft=15&a,i.dgRight=a>>4&15,i.dgTop=a>>8&15,i.dgBottom=a>>12&15,i.icvLeft=a>>16&127,i.icvRight=a>>23&127,i.grbitDiag=a>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}function ya(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,t-=6,r.data=va(e,t,r.fStyle,n),r}function ba(e,t,n,r){var i=n&&5==n.biff;return r||(r=tn(i?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4)),r.write_shift(4,0),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function _a(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function wa(e){var t=tn(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function xa(e,t,n){var r=_o(e,6);2==n.biff&&++e.l;var i=to(e,2);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}function Sa(e,t,n,r,i,o){var a=tn(8);return wo(e,t,r,a),no(n,o,a),a}function Ca(e){var t=_o(e,6),n=tr(e,8);return t.val=n,t}function Ea(e,t,n,r){var i=tn(14);return wo(e,t,r,i),nr(n,i),i}var ka=So;function Oa(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(2);if(n.sbcch=o,1025==o||14849==o)return[o,i];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);var a=ao(e,o),s=[];while(r>e.l)s.push(so(e));return[o,i,a,s]}function Ta(e,t,n){var r,i=e.read_shift(2),o={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=ko(e,t-2,n)),o.body=r||e.read_shift(t-2),"string"===typeof r&&(o.Name=r),o}var Ia=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Aa(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(1),a=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var c=ao(e,a,n);32&i&&(c=Ia[c.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var d=r==e.l||0===s?[]:Hd(e,u,n,s);return{chKey:o,Name:c,itab:l,rgce:d}}function Ra(e,t,n){if(n.biff<8)return Pa(e,t,n);var r=[],i=e.l+t,o=e.read_shift(n.biff>8?4:2);while(0!==o--)r.push(Co(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function Pa(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=ro(e,t,n);return 3==r.charCodeAt(0)?r.slice(1):r}function Ma(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=ao(e,r,n),a=ao(e,i,n);return[o,a]}e.l+=t}function Na(e,t,n){var r=Io(e,6);e.l++;var i=e.read_shift(1);return t-=8,[$d(e,t,n),i,r]}function La(e,t,n){var r=Ao(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Vd(e,t,n,r)]}function Da(e){var t=0!==e.read_shift(4),n=0!==e.read_shift(4),r=e.read_shift(4);return[t,n,r]}function ja(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=lo(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},s,a,o]}}function Fa(e,t,n){return ja(e,t,n)}function Ba(e,t){var n=[],r=e.read_shift(2);while(r--)n.push(Oo(e,t));return n}function qa(e){var t=tn(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n<e.length;++n)To(e[n],t);return t}function za(e,t,n){if(n&&n.biff<8)return Ga(e,t,n);var r=Ro(e,22),i=Do(e,t-22,r[1]);return{cmo:r,ft:i}}var Ua=[];function Ga(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var a=[];return a.push((Ua[r]||en)(e,t,n)),{cmo:[i,r,o],ft:a}}function Va(e,t,n){var r=e.l,i="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:uo(e,6,n);var a=e.read_shift(2);e.read_shift(2),Qi(e,2);var s=e.read_shift(2);e.l+=s;for(var l=1;l<e.lens.length-1;++l){if(e.l-r!=e.lens[l])throw new Error("TxO: bad continue record");var c=e[e.l],u=ao(e,e.lens[l+1]-e.lens[l]-1);if(i+=u,i.length>=(c?a:2*a))break}if(i.length!==a&&i.length!==2*a)throw new Error("cchText: "+a+" != "+i.length);return e.l=r+t,{t:i}}catch(uv){return e.l=r+t,{t:i}}}function Wa(e,t){var n=Oo(e,8);e.l+=16;var r=go(e,t-24);return[n,r]}function Ha(e){var t=tn(24),n=wn(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return N([t,vo(e[1])])}function $a(e,t){e.read_shift(2);var n=Oo(e,8),r=e.read_shift((t-10)/2,"dbcs-cont");return r=r.replace(L,""),[n,r]}function Ka(e){var t=e[1].Tooltip,n=tn(10+2*(t.length+1));n.write_shift(2,2048);var r=wn(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}function Xa(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=Tr[t]||t,t=e.read_shift(2),n[1]=Tr[t]||t,n}function Ya(e){return e||(e=tn(4)),e.write_shift(2,1),e.write_shift(2,1),e}function Ja(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(bo(e,8));return n}function Qa(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(bo(e,8));return n}function Za(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function es(e,t,n){if(!n.cellStyles)return en(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:o,w:a,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}function ts(e,t){var n={};return t<32||(e.l+=16,n.header=tr(e,8),n.footer=tr(e,8),e.l+=2),n}function ns(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}function rs(e){for(var t=tn(2*e),n=0;n<e;++n)t.write_shift(2,n+1);return t}Ua[8]=function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}};var is=_o,os=eo,as=so;function ss(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}function ls(e,t,n){var r=_o(e,6);++e.l;var i=lo(e,t-7,n);return r.t="str",r.val=i,r}function cs(e){var t=_o(e,6);++e.l;var n=tr(e,8);return t.t="n",t.val=n,t}function us(e,t,n){var r=tn(15);return Bm(r,e,t),r.write_shift(8,n,"f"),r}function ds(e){var t=_o(e,6);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}function fs(e,t,n){var r=tn(9);return Bm(r,e,t),r.write_shift(2,n),r}function hs(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}function ps(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function ms(e,t,n){var r=e.l+t,i=_o(e,6),o=e.read_shift(2),a=ao(e,o,n);return e.l=r,i.t="str",i.val=a,i}var gs=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,255:16969},t=ee({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127}),n=[2,3,48,49,131,139,140,245];function r(t,n){var r=[],i=O(1);switch(n.type){case"base64":i=I(S.decode(t));break;case"binary":i=I(t);break;case"buffer":case"array":i=t;break}Zt(i,0);var o=i.read_shift(1),a=!1,s=!1,l=!1;switch(o){case 2:case 3:break;case 48:s=!0,a=!0;break;case 49:s=!0;break;case 131:a=!0;break;case 139:a=!0;break;case 140:a=!0,l=!0;break;case 245:a=!0;break;default:throw new Error("DBF Unsupported Version: "+o.toString(16))}var c=0,u=0;2==o&&(c=i.read_shift(2)),i.l+=3,2!=o&&(c=i.read_shift(4)),2!=o&&(u=i.read_shift(2));var d=i.read_shift(2),f=1252;2!=o&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(f=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);var h=[],p={},m=u-10-(s?264:0),g=l?32:11;while(2==o?i.l<i.length&&13!=i[i.l]:i.l<m)switch(p={},p.name=cptable.utils.decode(f,i.slice(i.l,i.l+g)).replace(/[\u0000\r\n].*$/g,""),i.l+=g,p.type=String.fromCharCode(i.read_shift(1)),2==o||l||(p.offset=i.read_shift(4)),p.len=i.read_shift(1),2==o&&(p.offset=i.read_shift(2)),p.dec=i.read_shift(1),p.name.length&&h.push(p),2!=o&&(i.l+=l?13:14),p.type){case"B":s&&8==p.len||!n.WTF||console.log("Skipping "+p.name+":"+p.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+p.name+":"+p.type);break;case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":case"0":case"@":case"+":break;default:throw new Error("Unknown Field Type: "+p.type)}if(13!==i[i.l]?i.l=u-1:2==o&&(i.l=521),2!=o){if(13!==i.read_shift(1))throw new Error("DBF Terminator not found "+i.l+" "+i[i.l]);i.l=u}var v=0,y=0;for(r[0]=[],y=0;y!=h.length;++y)r[0][y]=h[y].name;while(c-- >0)if(42!==i[i.l])for(++i.l,r[++v]=[],y=0,y=0;y!=h.length;++y){var b=i.slice(i.l,i.l+h[y].len);i.l+=h[y].len,Zt(b,0);var _=cptable.utils.decode(f,b);switch(h[y].type){case"C":r[v][y]=cptable.utils.decode(f,b),r[v][y]=r[v][y].trim();break;case"D":8===_.length?r[v][y]=new Date(+_.slice(0,4),+_.slice(4,6)-1,+_.slice(6,8)):r[v][y]=_;break;case"F":r[v][y]=parseFloat(_.trim());break;case"+":case"I":r[v][y]=l?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"L":switch(_.toUpperCase()){case"Y":case"T":r[v][y]=!0;break;case"N":case"F":r[v][y]=!1;break;case" ":case"?":r[v][y]=!1;break;default:throw new Error("DBF Unrecognized L:|"+_+"|")}break;case"M":if(!a)throw new Error("DBF Unexpected MEMO for type "+o.toString(16));r[v][y]="##MEMO##"+(l?parseInt(_.trim(),10):b.read_shift(4));break;case"N":r[v][y]=+_.replace(/\u0000/g,"").trim();break;case"@":r[v][y]=new Date(b.read_shift(-8,"f")-621356832e5);break;case"T":r[v][y]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"Y":r[v][y]=b.read_shift(4,"i")/1e4;break;case"O":r[v][y]=-b.read_shift(-8,"f");break;case"B":if(s&&8==h[y].len){r[v][y]=b.read_shift(8,"f");break}case"G":case"P":b.l+=h[y].len;break;case"0":if("_NullFlags"===h[y].name)break;default:throw new Error("DBF Unsupported data type "+h[y].type)}}else i.l+=d;if(2!=o&&i.l<i.length&&26!=i[i.l++])throw new Error("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),r}function i(e,t){var n=t||{};return n.dateNF||(n.dateNF="yyyymmdd"),An(r(e,n),n)}function o(e,t){try{return Tn(i(e,t),t)}catch(uv){if(t&&t.WTF)throw uv}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function l(e,n){var r=n||{};if(+r.codepage>=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=rn(),o=tv(e,{header:1,raw:!0,cellDates:!0}),l=o[0],c=o.slice(1),u=0,d=0,f=0,p=1;for(u=0;u<l.length;++u)if(null!=u){if(++f,"number"===typeof l[u]&&(l[u]=l[u].toString(10)),"string"!==typeof l[u])throw new Error("DBF Invalid column name "+l[u]+" |"+typeof l[u]+"|");if(l.indexOf(l[u])!==u)for(d=0;d<1024;++d)if(-1==l.indexOf(l[u]+"_"+d)){l[u]+="_"+d;break}}var m=En(e["!ref"]),g=[];for(u=0;u<=m.e.c-m.s.c;++u){var v=[];for(d=0;d<c.length;++d)null!=c[d][u]&&v.push(c[d][u]);if(0!=v.length&&null!=l[u]){var y="",b="";for(d=0;d<v.length;++d){switch(typeof v[d]){case"number":b="B";break;case"string":b="C";break;case"boolean":b="L";break;case"object":b=v[d]instanceof Date?"D":"C";break;default:b="C"}if(y=y&&y!=b?"C":b,"C"==y)break}p+=a[y]||0,g[u]=y}else g[u]="?"}var _=i.next(32);for(_.write_shift(4,318902576),_.write_shift(4,c.length),_.write_shift(2,296+32*f),_.write_shift(2,p),u=0;u<4;++u)_.write_shift(4,0);for(_.write_shift(4,0|(+t[s]||3)<<8),u=0,d=0;u<l.length;++u)if(null!=l[u]){var w=i.next(32),x=(l[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);w.write_shift(1,x,"sbcs"),w.write_shift(1,"?"==g[u]?"C":g[u],"sbcs"),w.write_shift(4,d),w.write_shift(1,a[g[u]]||0),w.write_shift(1,0),w.write_shift(1,2),w.write_shift(4,0),w.write_shift(1,0),w.write_shift(4,0),w.write_shift(4,0),d+=a[g[u]]||0}var S=i.next(264);for(S.write_shift(4,13),u=0;u<65;++u)S.write_shift(4,0);for(u=0;u<c.length;++u){var C=i.next(p);for(C.write_shift(1,0),d=0;d<l.length;++d)if(null!=l[d])switch(g[d]){case"L":C.write_shift(1,null==c[u][d]?63:c[u][d]?84:70);break;case"B":C.write_shift(8,c[u][d]||0,"f");break;case"D":c[u][d]?(C.write_shift(4,("0000"+c[u][d].getFullYear()).slice(-4),"sbcs"),C.write_shift(2,("00"+(c[u][d].getMonth()+1)).slice(-2),"sbcs"),C.write_shift(2,("00"+c[u][d].getDate()).slice(-2),"sbcs")):C.write_shift(8,"00000000","sbcs");break;case"C":var E=String(c[u][d]||"");for(C.write_shift(1,E,"sbcs"),f=0;f<250-E.length;++f)C.write_shift(1,32);break}}return i.next(1).write_shift(1,26),i.end()}return{versions:n,to_workbook:o,to_sheet:i,from_sheet:l}}(),vs=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,B:180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+Q(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?_(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:_(r)};function i(e,t){switch(t.type){case"base64":return o(S.decode(e),t);case"binary":return o(e,t);case"buffer":return o(e.toString("binary"),t);case"array":return o(he(e),t)}throw new Error("Unrecognized type "+t.type)}function o(e,i){var o,a=e.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,d=[],f=[],p=null,m={},g=[],v=[],y=[],b=0;for(+i.codepage>=0&&h(+i.codepage);c!==a.length;++c){b=0;var _,w=a[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),x=w.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),S=x[0];if(w.length>0)switch(S){case"ID":break;case"E":break;case"B":break;case"O":break;case"P":"P"==x[1].charAt(0)&&f.push(w.slice(3).replace(/;;/g,";"));break;case"C":var C=!1,E=!1;for(u=1;u<x.length;++u)switch(x[u].charAt(0)){case"X":l=parseInt(x[u].slice(1))-1,E=!0;break;case"Y":for(s=parseInt(x[u].slice(1))-1,E||(l=0),o=d.length;o<=s;++o)d[o]=[];break;case"K":_=x[u].slice(1),'"'===_.charAt(0)?_=_.slice(1,_.length-1):"TRUE"===_?_=!0:"FALSE"===_?_=!1:isNaN(ge(_))?isNaN(ve(_).getDate())||(_=fe(_)):(_=ge(_),null!==p&&j.is_date(p)&&(_=le(_))),"undefined"!==typeof cptable&&"string"==typeof _&&"string"!=(i||{}).type&&(i||{}).codepage&&(_=cptable.utils.decode(i.codepage,_)),C=!0;break;case"E":var k=su(x[u].slice(1),{r:s,c:l});d[s][l]=[d[s][l],k];break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}C&&(d[s][l]=_,p=null);break;case"F":var O=0;for(u=1;u<x.length;++u)switch(x[u].charAt(0)){case"X":l=parseInt(x[u].slice(1))-1,++O;break;case"Y":for(s=parseInt(x[u].slice(1))-1,o=d.length;o<=s;++o)d[o]=[];break;case"M":b=parseInt(x[u].slice(1))/20;break;case"F":break;case"G":break;case"P":p=f[parseInt(x[u].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(y=x[u].slice(1).split(" "),o=parseInt(y[0],10);o<=parseInt(y[1],10);++o)b=parseInt(y[2],10),v[o-1]=0===b?{hidden:!0}:{wch:b},El(v[o-1]);break;case"C":l=parseInt(x[u].slice(1))-1,v[l]||(v[l]={});break;case"R":s=parseInt(x[u].slice(1))-1,g[s]||(g[s]={}),b>0?(g[s].hpt=b,g[s].hpx=Il(b)):0===b&&(g[s].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}O<1&&(p=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+w)}}return g.length>0&&(m["!rows"]=g),v.length>0&&(m["!cols"]=v),i&&i.sheetRows&&(d=d.slice(0,i.sheetRows)),[d,m]}function a(e,t){var n=i(e,t),r=n[0],o=n[1],a=An(r,t);return Q(o).forEach((function(e){a[e]=o[e]})),a}function s(e,t){return Tn(a(e,t),t)}function l(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+cu(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"")+'"';break}return i}function c(e,t){t.forEach((function(t,n){var r="F;W"+(n+1)+" "+(n+1)+" ";t.hidden?r+="0":("number"==typeof t.width&&(t.wpx=_l(t.width)),"number"==typeof t.wpx&&(t.wch=wl(t.wpx)),"number"==typeof t.wch&&(r+=Math.round(t.wch)))," "!=r.charAt(r.length-1)&&e.push(r)}))}function u(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Tl(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}function d(e,t){var n,r=["ID;PWXL;N;E"],i=[],o=En(e["!ref"]),a=Array.isArray(e),s="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),e["!cols"]&&c(r,e["!cols"]),e["!rows"]&&u(r,e["!rows"]),r.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var d=o.s.r;d<=o.e.r;++d)for(var f=o.s.c;f<=o.e.c;++f){var h=xn({r:d,c:f});n=a?(e[d]||[])[f]:e[h],n&&(null!=n.v||n.f&&!n.F)&&i.push(l(n,e,d,f,t))}return r.join(s)+s+i.join(s)+s+"E"+s}return e["|"]=254,{to_workbook:s,to_sheet:a,from_sheet:d}}(),ys=function(){function e(e,n){switch(n.type){case"base64":return t(S.decode(e),n);case"binary":return t(e,n);case"buffer":return t(e.toString("binary"),n);case"array":return t(he(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){for(var n=e.split("\n"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(r<0)){var s=n[o].trim().split(","),l=s[0],c=s[1];++o;var u=n[o].trim();switch(+l){case-1:if("BOT"===u){a[++r]=[],i=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?a[r][i]=!0:"FALSE"===u?a[r][i]=!1:isNaN(ge(c))?isNaN(ve(c).getDate())?a[r][i]=c:a[r][i]=fe(c):a[r][i]=ge(c),++i;break;case 1:u=u.slice(1,u.length-1),a[r][i++]=""!==u?u:null;break}if("EOD"===u)break}}else a[++r]=[],i=0;return t&&t.sheetRows&&(a=a.slice(0,t.sheetRows)),a}function n(t,n){return An(e(t,n),n)}function r(e,t){return Tn(n(e,t),t)}var i=function(){var e=function(e,t,n,r,i){e.push(t),e.push(n+","+r),e.push('"'+i.replace(/"/g,'""')+'"')},t=function(e,t,n,r){e.push(t+","+n),e.push(1==t?'"'+r.replace(/"/g,'""')+'"':r)};return function(n){var r,i=[],o=En(n["!ref"]),a=Array.isArray(n);e(i,"TABLE",0,1,"sheetjs"),e(i,"VECTORS",0,o.e.r-o.s.r+1,""),e(i,"TUPLES",0,o.e.c-o.s.c+1,""),e(i,"DATA",0,0,"");for(var s=o.s.r;s<=o.e.r;++s){t(i,-1,0,"BOT");for(var l=o.s.c;l<=o.e.c;++l){var c=xn({r:s,c:l});if(r=a?(n[s]||[])[l]:n[c],r)switch(r.t){case"n":var u=x?r.w:r.v;u||null==r.v||(u=r.v),null==u?x&&r.f&&!r.F?t(i,1,0,"="+r.f):t(i,1,0,""):t(i,0,u,"V");break;case"b":t(i,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(i,1,0,!x||isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=j.format(r.z||j._table[14],ie(fe(r.v)))),x?t(i,0,r.w,"V"):t(i,1,0,r.w);break;default:t(i,1,0,"")}else t(i,1,0,"")}}t(i,-1,0,"EOD");var d="\r\n",f=i.join(d);return f}}();return{to_workbook:r,to_sheet:n,from_sheet:i}}(),bs=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function t(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(t,n){for(var r=t.split("\n"),i=-1,o=-1,a=0,s=[];a!==r.length;++a){var l=r[a].trim().split(":");if("cell"===l[0]){var c=wn(l[1]);if(s.length<=c.r)for(i=s.length;i<=c.r;++i)s[i]||(s[i]=[]);switch(i=c.r,o=c.c,l[2]){case"t":s[i][o]=e(l[3]);break;case"v":s[i][o]=+l[3];break;case"vtf":var u=l[l.length-1];case"vtc":switch(l[3]){case"nl":s[i][o]=!!+l[4];break;default:s[i][o]=+l[4];break}"vtf"==l[2]&&(s[i][o]=[s[i][o],u])}}}return n&&n.sheetRows&&(s=s.slice(0,n.sheetRows)),s}function r(e,t){return An(n(e,t),t)}function i(e,t){return Tn(r(e,t),t)}var o=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),a=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),l="--SocialCalcSpreadsheetControlSave--";function c(e){if(!e||!e["!ref"])return"";for(var n,r=[],i=[],o="",a=Sn(e["!ref"]),s=Array.isArray(e),l=a.s.r;l<=a.e.r;++l)for(var c=a.s.c;c<=a.e.c;++c)if(o=xn({r:l,c:c}),n=s?(e[l]||[])[c]:e[o],n&&null!=n.v&&"z"!==n.t){switch(i=["cell",o,"t"],n.t){case"s":case"str":i.push(t(n.v));break;case"n":n.f?(i[2]="vtf",i[3]="n",i[4]=n.v,i[5]=t(n.f)):(i[2]="v",i[3]=n.v);break;case"b":i[2]="vt"+(n.f?"f":"c"),i[3]="nl",i[4]=n.v?"1":"0",i[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var u=ie(fe(n.v));i[2]="vtc",i[3]="nd",i[4]=""+u,i[5]=n.w||j.format(n.z||j._table[14],u);break;case"e":continue}r.push(i.join(":"))}return r.push("sheet:c:"+(a.e.c-a.s.c+1)+":r:"+(a.e.r-a.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}function u(e){return[o,a,s,a,c(e),l].join("\n")}return{to_workbook:i,to_sheet:r,from_sheet:u}}(),_s=function(){function e(e,t,n,r,i){i.raw?t[n][r]=e:"TRUE"===e?t[n][r]=!0:"FALSE"===e?t[n][r]=!1:""===e||(isNaN(ge(e))?isNaN(ve(e).getDate())?t[n][r]=e:t[n][r]=fe(e):t[n][r]=ge(e))}function t(t,n){var r=n||{},i=[];if(!t||0===t.length)return i;var o=t.split(/[\r\n]/),a=o.length-1;while(a>=0&&0===o[a].length)--a;for(var s=10,l=0,c=0;c<=a;++c)l=o[c].indexOf(" "),-1==l?l=o[c].length:l++,s=Math.max(s,l);for(c=0;c<=a;++c){i[c]=[];var u=0;for(e(o[c].slice(0,s).trim(),i,c,u,r),u=1;u<=(o[c].length-s)/10+1;++u)e(o[c].slice(s+10*(u-1),s+10*u).trim(),i,c,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var n={44:",",9:"\t",59:";"},r={44:3,9:2,59:1};function i(e){for(var t={},i=!1,o=0,a=0;o<e.length;++o)34==(a=e.charCodeAt(o))?i=!i:!i&&a in n&&(t[a]=(t[a]||0)+1);for(o in a=[],t)Object.prototype.hasOwnProperty.call(t,o)&&a.push([t[o],o]);if(!a.length)for(o in t=r,t)Object.prototype.hasOwnProperty.call(t,o)&&a.push([t[o],o]);return a.sort((function(e,t){return e[0]-t[0]||r[e[1]]-r[t[1]]})),n[a.pop()[1]]}function o(e,t){var n=t||{},r="";null!=w&&null==n.dense&&(n.dense=w);var o=n.dense?[]:{},a={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(r=e.charAt(4),e=e.slice(7)):13!=e.charCodeAt(5)&&10!=e.charCodeAt(5)||(r=e.charAt(4),e=e.slice(6)):r=i(e.slice(0,1024));var s=0,l=0,c=0,u=0,d=0,f=r.charCodeAt(0),h=!1,p=0;e=e.replace(/\r\n/gm,"\n");var m=null!=n.dateNF?U(n.dateNF):null;function g(){var t=e.slice(u,d),r={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),0===t.length)r.t="z";else if(n.raw)r.t="s",r.v=t;else if(0===t.trim().length)r.t="s",r.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(r.t="s",r.v=t.slice(2,-1).replace(/""/g,'"')):fu(t)?(r.t="n",r.f=t.slice(1)):(r.t="s",r.v=t);else if("TRUE"==t)r.t="b",r.v=!0;else if("FALSE"==t)r.t="b",r.v=!1;else if(isNaN(c=ge(t)))if(!isNaN(ve(t).getDate())||m&&t.match(m)){r.z=n.dateNF||j._table[14];var i=0;m&&t.match(m)&&(t=G(t,n.dateNF,t.match(m)||[]),i=1),n.cellDates?(r.t="d",r.v=fe(t,i)):(r.t="n",r.v=ie(fe(t,i))),!1!==n.cellText&&(r.w=j.format(r.z,r.v instanceof Date?ie(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=c;if("z"==r.t||(n.dense?(o[s]||(o[s]=[]),o[s][l]=r):o[xn({c:l,r:s})]=r),u=d+1,a.e.c<l&&(a.e.c=l),a.e.r<s&&(a.e.r=s),p==f)++l;else if(l=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}e:for(;d<e.length;++d)switch(p=e.charCodeAt(d)){case 34:h=!h;break;case f:case 10:case 13:if(!h&&g())break e;break;default:break}return d-u>0&&g(),o["!ref"]=Cn(a),o}function a(e,n){return n&&n.PRN?"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?o(e,n):An(t(e,n),n):o(e,n)}function s(e,t){var n="",r="string"==t.type?[0,0,0,0]:Ng(e,t);switch(t.type){case"base64":n=S.decode(e);break;case"binary":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):t.codepage&&"undefined"!==typeof cptable?cptable.utils.decode(t.codepage,e):e.toString("binary");break;case"array":n=he(e);break;case"string":n=e;break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]?n=Ze(n.slice(3)):"binary"==t.type&&"undefined"!==typeof cptable&&t.codepage&&(n=cptable.utils.decode(t.codepage,cptable.utils.encode(1252,n))),"socialcalc:version:"==n.slice(0,19)?bs.to_sheet("string"==t.type?n:Ze(n),t):a(n,t)}function l(e,t){return Tn(s(e,t),t)}function c(e){for(var t,n=[],r=En(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var l=xn({r:o,c:s});if(t=i?(e[o]||[])[s]:e[l],t&&null!=t.v){var c=(t.w||(On(t),t.w)||"").slice(0,10);while(c.length<10)c+=" ";a.push(c+(0===s?" ":""))}else a.push("          ")}n.push(a.join(""))}return n.join("\n")}return{to_workbook:l,to_sheet:s,from_sheet:c}}();function ws(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=vs.to_workbook(e,n);return n.WTF=r,i}catch(uv){if(n.WTF=r,!uv.message.match(/SYLK bad record ID/)&&r)throw uv;return _s.to_workbook(e,t)}}var xs=function(){function e(e,t,n){if(e){Zt(e,e.l||0);var r=n.Enum||v;while(e.l<e.length){var i=e.read_shift(2),o=r[i]||r[255],a=e.read_shift(2),s=e.l+a,l=(o.f||en)(e,a,n);if(e.l=s,t(l,o.n,i))return}}}function t(e,t){switch(t.type){case"base64":return n(I(S.decode(e)),t);case"binary":return n(I(e),t);case"buffer":case"array":return n(e,t)}throw"Unsupported type "+t.type}function n(t,n){if(!t)return t;var r=n||{};null!=w&&null==r.dense&&(r.dense=w);var i=r.dense?[]:{},o="Sheet1",a=0,s={},l=[o],c={s:{r:0,c:0},e:{r:0,c:0}},u=r.sheetRows||0;if(2==t[2])r.Enum=v;else if(26==t[2])r.Enum=y;else{if(14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=y,r.qpro=!0,t.l=0}return e(t,(function(e,n,d){if(2==t[2])switch(d){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:c=e;break;case 15:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:case 51:14==d&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||j._table[14],r.cellDates&&(e[1].t="d",e[1].v=le(e[1].v))),r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[xn(e[0])]=e[1];break}else switch(d){case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>a&&(i["!ref"]=Cn(c),s[o]=i,i=r.dense?[]:{},c={s:{r:0,c:0},e:{r:0,c:0}},a=e[3],o="Sheet"+(a+1),l.push(o)),u>0&&e[0].r>=u)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[xn(e[0])]=e[1],c.e.c<e[0].c&&(c.e.c=e[0].c),c.e.r<e[0].r&&(c.e.r=e[0].r);break;default:break}}),r),i["!ref"]=Cn(c),s[o]=i,{SheetNames:l,Sheets:s}}function r(e){var t={s:{c:0,r:0},e:{c:0,r:0}};return t.s.c=e.read_shift(2),t.s.r=e.read_shift(2),t.e.c=e.read_shift(2),t.e.r=e.read_shift(2),65535==t.s.c&&(t.s.c=t.e.c=t.s.r=t.e.r=0),t}function i(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),e.l++,r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function o(e,t,n){var r=e.l+t,o=i(e,t,n);if(o[1].t="s",20768==n.vers){e.l++;var a=e.read_shift(1);return o[1].v=e.read_shift(a,"utf8"),o}return n.qpro&&e.l++,o[1].v=e.read_shift(r-e.l,"cstr"),o}function a(e,t,n){var r=i(e,t,n);return r[1].v=e.read_shift(2,"i"),r}function s(e,t,n){var r=i(e,t,n);return r[1].v=e.read_shift(8,"f"),r}function l(e,t,n){var r=e.l+t,o=i(e,t,n);if(o[1].v=e.read_shift(8,"f"),n.qpro)e.l=r;else{var a=e.read_shift(2);e.l+=a}return o}function c(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function u(e,t){var n=c(e,t);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}function d(e,t){var n=c(e,t);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 4:r=(r>>3)/2e3;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break;default:throw"unknown NUMBER_18 encoding "+(7&r)}return n[1].v=r,n}function f(e,t){var n=c(e,t),r=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(2);if(65535==o)return n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(2*a-1)*((o>0?i<<o:i>>>-o)+(o>-32?r<<o+32:r>>>-(o+32))),n}function h(e,t){var n=f(e,14);return e.l+=t-14,n}function p(e,t){var n=c(e,t),r=e.read_shift(4);return n[1].v=r>>6,n}function m(e,t){var n=c(e,t),r=e.read_shift(8,"f");return n[1].v=r,n}function g(e,t){var n=m(e,14);return e.l+=t-10,n}var v={0:{n:"BOF",f:Qi},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:r},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:a},14:{n:"NUMBER",f:s},15:{n:"LABEL",f:o},16:{n:"FORMULA",f:l},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:o},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},255:{n:"",f:en}},y={0:{n:"BOF"},1:{n:"EOF"},3:{n:"??"},4:{n:"??"},5:{n:"??"},6:{n:"??"},7:{n:"??"},9:{n:"??"},10:{n:"??"},11:{n:"??"},12:{n:"??"},14:{n:"??"},15:{n:"??"},16:{n:"??"},17:{n:"??"},18:{n:"??"},19:{n:"??"},21:{n:"??"},22:{n:"LABEL16",f:u},23:{n:"NUMBER17",f:f},24:{n:"NUMBER18",f:d},25:{n:"FORMULA19",f:h},26:{n:"??"},27:{n:"??"},28:{n:"??"},29:{n:"??"},30:{n:"??"},31:{n:"??"},33:{n:"??"},37:{n:"NUMBER25",f:p},39:{n:"NUMBER27",f:m},40:{n:"FORMULA28",f:g},255:{n:"",f:en}};return{to_workbook:t}}();function Ss(e){var t={},n=e.match(Le),r=0,i=!1;if(n)for(;r!=n.length;++r){var o=Fe(n[r]);switch(o[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!o.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==o.val)break;t.cp=u[parseInt(o.val,10)];break;case"<outline":if(!o.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=o.val;break;case"<sz":t.sz=o.val;break;case"<strike":if(!o.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!o.val)break;switch(o.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting";break}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==o.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==o.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":o.rgb&&(t.color=o.rgb.slice(2,8));break;case"<family":t.family=o.val;break;case"<vertAlign":t.valign=o.val;break;case"<scheme":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(47!==o[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+o[0])}}return t}var Cs=function(){var e=it("t"),t=it("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:Ue(r[1])},o=n.match(t);return o&&(i.s=Ss(o[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),Es=function(){var e=/(\r\n|\n)/g;function t(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push('<span style="'+r.join("")+'">'),e.b&&(t.push("<b>"),n.push("</b>")),e.i&&(t.push("<i>"),n.push("</i>")),e.strike&&(t.push("<s>"),n.push("</s>"));var i=e.valign||"";return"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push("</"+i+">")),n.push("</span>"),e}function n(n){var r=[[],n.v,[]];return n.v?(n.s&&t(n.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"<br/>")+r[2].join("")):""}return function(e){return e.map(n).join("")}}(),ks=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Os=/<(?:\w+:)?r>/,Ts=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Is(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=Ue(Ze(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=Ze(e),n&&(r.h=Ke(r.t))):e.match(Os)&&(r.r=Ze(e),r.t=Ue(Ze((e.replace(Ts,"").match(ks)||[]).join("").replace(Le,""))),n&&(r.h=Es(Cs(r.r)))),r):{t:""}}var As=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Rs=/<(?:\w+:)?(?:si|sstItem)>/g,Ps=/<\/(?:\w+:)?(?:si|sstItem)>/;function Ms(e,t){var n=[],r="";if(!e)return n;var i=e.match(As);if(i){r=i[2].replace(Rs,"").split(Ps);for(var o=0;o!=r.length;++o){var a=Is(r[o].trim(),t);null!=a&&(n[n.length]=a)}i=Fe(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}Gr.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var Ns=/^\s|\s$|[\t\n\r]/;function Ls(e,t){if(!t.bookSST)return"";var n=[Me];n[n.length]=ht("sst",null,{xmlns:gt.main[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var i=e[r],o="<si>";i.r?o+=i.r:(o+="<t",i.t||(i.t=""),i.t.match(Ns)&&(o+=' xml:space="preserve"'),o+=">"+We(i.t)+"</t>"),o+="</si>",n[n.length]=o}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}function Ds(e){return[e.read_shift(4),e.read_shift(4)]}function js(e,t){var n=[],r=!1;return nn(e,(function(e,i,o){switch(o){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.indexOf("Begin")>0||i.indexOf("End"),!r||t.WTF)throw new Error("Unexpected record "+o+" "+i)}})),n}function Fs(e,t){return t||(t=tn(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var Bs=jn;function qs(e){var t=rn();on(t,"BrtBeginSst",Fs(e));for(var n=0;n<e.length;++n)on(t,"BrtSSTItem",Bs(e[n]));return on(t,"BrtEndSst"),t.end()}function zs(e){if("undefined"!==typeof cptable)return cptable.utils.encode(s,e);for(var t=[],n=e.split(""),r=0;r<n.length;++r)t[r]=n[r].charCodeAt(0);return t}function Us(e,t){var n={};return n.Major=e.read_shift(2),n.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),n}function Gs(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=Us(e,4),t.U=Us(e,4),t.W=Us(e,4),t}function Vs(e){var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),o=[];while(i-- >0)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=o,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function Ws(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(Vs(e));return t}function Hs(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(e.read_shift(0,"lpp4"));return t}function $s(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Us(e,4),t.U=Us(e,4),t.W=Us(e,4),t}function Ks(e){var t=$s(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function Xs(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function Ys(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function Js(e){var t=Us(e);switch(t.Minor){case 2:return[t.Minor,Qs(e,t)];case 3:return[t.Minor,Zs(e,t)];case 4:return[t.Minor,el(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function Qs(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var n=e.read_shift(4),r=Xs(e,n),i=Ys(e,e.length-e.l);return{t:"Std",h:r,v:i}}function Zs(){throw new Error("File is password-protected: ECMA-376 Extensible")}function el(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(Le,(function(e){var n=Fe(e);switch(Be(n[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach((function(e){r[e]=n[e]}));break;case"<dataIntegrity":r.encryptedHmacKey=n.encryptedHmacKey,r.encryptedHmacValue=n.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":r.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":r.uri=n.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":r.encs.push(n);break;default:throw n[0]}})),r}function tl(e,t){var n={},r=n.EncryptionVersionInfo=Us(e,4);if(t-=4,2!=r.Minor)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=Xs(e,i),t-=i,n.EncryptionVerifier=Ys(e,t),n}function nl(e){var t={},n=t.EncryptionVersionInfo=Us(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function rl(e){var t,n,r,i,o,a,s=0,l=zs(e),c=l.length+1;for(t=O(c),t[0]=l.length,n=1;n!=c;++n)t[n]=l[n-1];for(n=c-1;n>=0;--n)r=t[n],i=0===(16384&s)?0:1,o=s<<1&32767,a=i|o,s=a^r;return 52811^s}var il=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e){return 255&(e/2|128*e)},i=function(e,t){return r(e^t)},o=function(e){for(var r=t[e.length-1],i=104,o=e.length-1;o>=0;--o)for(var a=e[o],s=0;7!=s;++s)64&a&&(r^=n[i]),a*=2,--i;return r};return function(t){for(var n,r,a,s=zs(t),l=o(s),c=s.length,u=O(16),d=0;16!=d;++d)u[d]=0;1===(1&c)&&(n=l>>8,u[c]=i(e[0],n),--c,n=255&l,r=s[s.length-1],u[c]=i(r,n));while(c>0)--c,n=l>>8,u[c]=i(s[c],n),--c,n=255&l,u[c]=i(s[c],n);c=15,a=15-s.length;while(a>0)n=l>>8,u[c]=i(e[a],n),--c,--a,n=255&l,u[c]=i(s[c],n),--c,--a;return u}}(),ol=function(e,t,n,r,i){var o,a;for(i||(i=t),r||(r=il(e)),o=0;o!=t.length;++o)a=t[o],a^=r[n],a=255&(a>>5|a<<3),i[o]=a,++n;return[i,n,r]},al=function(e){var t=0,n=il(e);return function(e){var r=ol("",e,t,n);return t=r[1],r[0]}};function sl(e,t,n,r){var i={key:Qi(e),verificationBytes:Qi(e)};return n.password&&(i.verifier=rl(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=al(n.password)),i}function ll(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=nl(e,t):r.Data=tl(e,t),r}function cl(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?ll(e,t-2,r):sl(e,n.biff>=8?t:t-2,n,r),r}var ul=function(){function e(e,n){switch(n.type){case"base64":return t(S.decode(e),n);case"binary":return t(e,n);case"buffer":return t(e.toString("binary"),n);case"array":return t(he(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=t||{},r=n.dense?[]:{},i={s:{c:0,r:0},e:{c:0,r:0}};if(!e.match(/\\trowd/))throw new Error("RTF missing table");return r["!ref"]=Cn(i),r}function n(t,n){return Tn(e(t,n),n)}function r(e){for(var t,n=["{\\rtf1\\ansi"],r=En(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){n.push("\\trowd\\trautofit1");for(var a=r.s.c;a<=r.e.c;++a)n.push("\\cellx"+(a+1));for(n.push("\\pard\\intbl"),a=r.s.c;a<=r.e.c;++a){var s=xn({r:o,c:a});t=i?(e[o]||[])[a]:e[s],t&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(On(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}return{to_workbook:n,to_sheet:e,from_sheet:r}}();function dl(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function fl(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function hl(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=i-o;if(0===a)return[0,0,t];var s=0,l=0,c=i+o;switch(l=a/(c>1?2-c:c),i){case t:s=((n-r)/a+6)%6;break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4;break}return[s/6,l,c/2]}function pl(e){var t,n=e[0],r=e[1],i=e[2],o=2*r*(i<.5?i:1-i),a=i-o/2,s=[a,a,a],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=o*l,s[0]+=o,s[1]+=t;break;case 1:t=o*(2-l),s[0]+=t,s[1]+=o;break;case 2:t=o*(l-2),s[1]+=o,s[2]+=t;break;case 3:t=o*(4-l),s[1]+=t,s[2]+=o;break;case 4:t=o*(l-4),s[2]+=o,s[0]+=t;break;case 5:t=o*(6-l),s[2]+=t,s[0]+=o;break}for(var c=0;3!=c;++c)s[c]=Math.round(255*s[c]);return s}function ml(e,t){if(0===t)return e;var n=hl(dl(e));return n[2]=t<0?n[2]*(1+t):1-(1-n[2])*(1-t),fl(pl(n))}var gl=6,vl=15,yl=1,bl=gl;function _l(e){return Math.floor((e+Math.round(128/bl)/256)*bl)}function wl(e){return Math.floor((e-5)/bl*100+.5)/100}function xl(e){return Math.round((e*bl+5)/bl*256)/256}function Sl(e){return xl(wl(_l(e)))}function Cl(e){var t=Math.abs(e-Sl(e)),n=bl;if(t>.005)for(bl=yl;bl<vl;++bl)Math.abs(e-Sl(e))<=t&&(t=Math.abs(e-Sl(e)),n=bl);bl=n}function El(e){e.width?(e.wpx=_l(e.width),e.wch=wl(e.wpx),e.MDW=bl):e.wpx?(e.wch=wl(e.wpx),e.width=xl(e.wch),e.MDW=bl):"number"==typeof e.wch&&(e.width=xl(e.wch),e.wpx=_l(e.width),e.MDW=bl),e.customWidth&&delete e.customWidth}var kl=96,Ol=kl;function Tl(e){return 96*e/Ol}function Il(e){return e*Ol/96}var Al={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Rl(e,t,n,r){t.Borders=[];var i={},o=!1;(e[0].match(Le)||[]).forEach((function(e){var n=Fe(e);switch(Be(n[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},n.diagonalUp&&(i.diagonalUp=Qe(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=Qe(n.diagonalDown)),t.Borders.push(i);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in borders")}}))}function Pl(e,t,n,r){t.Fills=[];var i={},o=!1;(e[0].match(Le)||[]).forEach((function(e){var n=Fe(e);switch(Be(n[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":i={},t.Fills.push(i);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":n.patternType&&(i.patternType=n.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={}),n.indexed&&(i.bgColor.indexed=parseInt(n.indexed,10)),n.theme&&(i.bgColor.theme=parseInt(n.theme,10)),n.tint&&(i.bgColor.tint=parseFloat(n.tint)),n.rgb&&(i.bgColor.rgb=n.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={}),n.theme&&(i.fgColor.theme=parseInt(n.theme,10)),n.tint&&(i.fgColor.tint=parseFloat(n.tint)),null!=n.rgb&&(i.fgColor.rgb=n.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in fills")}}))}function Ml(e,t,n,r){t.Fonts=[];var i={},o=!1;(e[0].match(Le)||[]).forEach((function(e){var a=Fe(e);switch(Be(a[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(i),i={};break;case"<name":a.val&&(i.name=Ze(a.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=a.val?Qe(a.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=a.val?Qe(a.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(a.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34;break}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=a.val?Qe(a.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=a.val?Qe(a.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=a.val?Qe(a.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=a.val?Qe(a.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=a.val?Qe(a.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":a.val&&(i.sz=+a.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":a.val&&(i.vertAlign=a.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":a.val&&(i.family=parseInt(a.val,10));break;case"<family/>":case"</family>":break;case"<scheme":a.val&&(i.scheme=a.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if("1"==a.val)break;a.codepage=u[parseInt(a.val,10)];break;case"<color":if(i.color||(i.color={}),a.auto&&(i.color.auto=Qe(a.auto)),a.rgb)i.color.rgb=a.rgb.slice(-6);else if(a.indexed){i.color.index=parseInt(a.indexed,10);var s=Pr[i.color.index];if(81==i.color.index&&(s=Pr[1]),!s)throw new Error(e);i.color.rgb=s[0].toString(16)+s[1].toString(16)+s[2].toString(16)}else a.theme&&(i.color.theme=parseInt(a.theme,10),a.tint&&(i.color.tint=parseFloat(a.tint)),a.theme&&n.themeElements&&n.themeElements.clrScheme&&(i.color.rgb=ml(n.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":o=!0;break;case"</AlternateContent>":o=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+a[0]+" in fonts")}}))}function Nl(e,t,n){t.NumberFmt=[];for(var r=Q(j._table),i=0;i<r.length;++i)t.NumberFmt[r[i]]=j._table[r[i]];var o=e[0].match(Le);if(o)for(i=0;i<o.length;++i){var a=Fe(o[i]);switch(Be(a[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":var s=Ue(Ze(a.formatCode)),l=parseInt(a.numFmtId,10);if(t.NumberFmt[l]=s,l>0){if(l>392){for(l=392;l>60;--l)if(null==t.NumberFmt[l])break;t.NumberFmt[l]=s}j.load(s,l)}break;case"</numFmt>":break;default:if(n.WTF)throw new Error("unrecognized "+a[0]+" in numFmts")}}}function Ll(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=ht("numFmt",null,{numFmtId:r,formatCode:We(e[r])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=ht("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Dl=["numFmtId","fillId","fontId","borderId","xfId"],jl=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Fl(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(Le)||[]).forEach((function(e){var o=Fe(e),a=0;switch(Be(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(r=o,delete r[0],a=0;a<Dl.length;++a)r[Dl[a]]&&(r[Dl[a]]=parseInt(r[Dl[a]],10));for(a=0;a<jl.length;++a)r[jl[a]]&&(r[jl[a]]=Qe(r[jl[a]]));if(r.numFmtId>392)for(a=392;a>60;--a)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[a]){r.numFmtId=a;break}t.CellXf.push(r);break;case"</xf>":break;case"<alignment":case"<alignment/>":var s={};o.vertical&&(s.vertical=o.vertical),o.horizontal&&(s.horizontal=o.horizontal),null!=o.textRotation&&(s.textRotation=o.textRotation),o.indent&&(s.indent=o.indent),o.wrapText&&(s.wrapText=Qe(o.wrapText)),r.alignment=s;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}}))}function Bl(e){var t=[];return t[t.length]=ht("cellXfs",null),e.forEach((function(e){t[t.length]=ht("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=ht("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var ql=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,a,s){var l,c={};return o?(o=o.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,""),(l=o.match(e))&&Nl(l,c,s),(l=o.match(r))&&Ml(l,c,a,s),(l=o.match(n))&&Pl(l,c,a,s),(l=o.match(i))&&Rl(l,c,a,s),(l=o.match(t))&&Fl(l,c,s),c):c}}(),zl=ht("styleSheet",null,{xmlns:gt.main[0],"xmlns:vt":gt.vt});function Ul(e,t){var n,r=[Me,zl];return e.SSF&&null!=(n=Ll(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=Bl(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function Gl(e,t){var n=e.read_shift(2),r=Pn(e,t-2);return[n,r]}function Vl(e,t,n){n||(n=tn(6+4*t.length)),n.write_shift(2,e),Mn(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}function Wl(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=or(e,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var o=e.read_shift(2);switch(700===o&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var l=e.read_shift(1);switch(l>0&&(r.charset=l),e.l++,r.color=rr(e,8),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Pn(e,t-21),r}function Hl(e,t){t||(t=tn(153)),t.write_shift(2,20*e.sz),ar(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),ir(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),Mn(e.name,t),t.length>t.l?t.slice(0,t.l):t}Gr.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";var $l=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Kl=ee($l),Xl=en;function Yl(e,t){t||(t=tn(84));var n=Kl[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(ir({auto:1},t),ir({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Jl(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}function Ql(e,t,n){n||(n=tn(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);var r=0;return n.write_shift(1,r),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function Zl(e,t){return t||(t=tn(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var ec=en;function tc(e,t){return t||(t=tn(51)),t.write_shift(1,0),Zl(null,t),Zl(null,t),Zl(null,t),Zl(null,t),Zl(null,t),t.length>t.l?t.slice(0,t.l):t}function nc(e,t){return t||(t=tn(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),Wn(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function rc(e,t,n){var r=tn(2052);return r.write_shift(4,e),Wn(t,r),Wn(n,r),r.length>r.l?r.slice(0,r.l):r}function ic(e,t,n){var r={NumberFmt:[]};for(var i in j._table)r.NumberFmt[i]=j._table[i];r.CellXf=[],r.Fonts=[];var o=[],a=!1;return nn(e,(function(e,i,s){switch(s){case 44:r.NumberFmt[e[0]]=e[1],j.load(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=ml(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:"BrtBeginCellXFs"==o[o.length-1]&&r.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:o.push(i),a=!0;break;case 38:o.pop(),a=!1;break;default:if((i||"").indexOf("Begin")>0)o.push(i);else if((i||"").indexOf("End")>0)o.pop();else if(!a||n.WTF&&"BrtACBegin"!=o[o.length-1])throw new Error("Unexpected record "+s+" "+i)}})),r}function oc(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&(on(e,"BrtBeginFmts",Rn(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&on(e,"BrtFmt",Vl(r,t[r]))})),on(e,"BrtEndFmts"))}}function ac(e){var t=1;0!=t&&(on(e,"BrtBeginFonts",Rn(t)),on(e,"BrtFont",Hl({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),on(e,"BrtEndFonts"))}function sc(e){var t=2;0!=t&&(on(e,"BrtBeginFills",Rn(t)),on(e,"BrtFill",Yl({patternType:"none"})),on(e,"BrtFill",Yl({patternType:"gray125"})),on(e,"BrtEndFills"))}function lc(e){var t=1;0!=t&&(on(e,"BrtBeginBorders",Rn(t)),on(e,"BrtBorder",tc({})),on(e,"BrtEndBorders"))}function cc(e){var t=1;on(e,"BrtBeginCellStyleXFs",Rn(t)),on(e,"BrtXF",Ql({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),on(e,"BrtEndCellStyleXFs")}function uc(e,t){on(e,"BrtBeginCellXFs",Rn(t.length)),t.forEach((function(t){on(e,"BrtXF",Ql(t,0))})),on(e,"BrtEndCellXFs")}function dc(e){var t=1;on(e,"BrtBeginStyles",Rn(t)),on(e,"BrtStyle",nc({xfId:0,builtinId:0,name:"Normal"})),on(e,"BrtEndStyles")}function fc(e){var t=0;on(e,"BrtBeginDXFs",Rn(t)),on(e,"BrtEndDXFs")}function hc(e){var t=0;on(e,"BrtBeginTableStyles",rc(t,"TableStyleMedium9","PivotStyleMedium4")),on(e,"BrtEndTableStyles")}function pc(){}function mc(e,t){var n=rn();return on(n,"BrtBeginStyleSheet"),oc(n,e.SSF),ac(n,e),sc(n,e),lc(n,e),cc(n,e),uc(n,t.cellXfs),dc(n,e),fc(n,e),hc(n,e),pc(n,e),on(n,"BrtEndStyleSheet"),n.end()}Gr.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";var gc=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function vc(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(Le)||[]).forEach((function(e){var i=Fe(e);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":r.rgb=i.val;break;case"<a:sysClr":r.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[gc.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function yc(){}function bc(){}var _c=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,wc=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,xc=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function Sc(e,t,n){var r;t.themeElements={},[["clrScheme",_c,vc],["fontScheme",wc,yc],["fmtScheme",xc,bc]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}var Cc=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Ec(e,t){if(!e||0===e.length)return Ec(kc());var n,r={};if(!(n=e.match(Cc)))throw new Error("themeElements not found in theme");return Sc(n[0],r,t),r.raw=e,r}function kc(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Me];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Oc(e,t,n){var r=e.l+t,i=e.read_shift(4);if(124226!==i)if(n.cellStyles&&ye){var o,a=e.slice(e.l);e.l=r;try{o=new ye(a)}catch(uv){return}var s=Oe(o,"theme/theme/theme1.xml",!0);if(s)return Ec(s,n)}else e.l=r}function Tc(e){return e.read_shift(4)}function Ic(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Ac(e,4);break;case 2:t.xclrValue=yo(e,4);break;case 3:t.xclrValue=Tc(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Ac(e,t){return en(e,t)}function Rc(e,t){return en(e,t)}function Pc(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=Ic(e,n);break;case 6:r[1]=Rc(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Mc(e,t){var n=e.l+t;e.l+=2;var r=e.read_shift(2);e.l+=2;var i=e.read_shift(2),o=[];while(i-- >0)o.push(Pc(e,n-e.l));return{ixfe:r,ext:o}}function Nc(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function Lc(e){var t=[];if(!e)return t;var n=1;return(e.match(Le)||[]).forEach((function(e){var r=Fe(e);switch(r[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete r[0],r.i?n=r.i:r.i=n,t.push(r);break}})),t}function Dc(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=xn(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}function jc(e,t,n){var r=[],i=!1;return nn(e,(function(e,t,o){switch(o){case 63:r.push(e);break;default:if((t||"").indexOf("Begin")>0);else if((t||"").indexOf("End")>0);else if(!i||n.WTF)throw new Error("Unexpected record "+o+" "+t)}})),r}function Fc(){}function Bc(e,t,n,r){if(!e)return e;var i=r||{},o=!1,a=!1;nn(e,(function(e,t,n){if(!a)switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:o=!0;break;case 36:o=!1;break;default:if((t||"").indexOf("Begin")>0);else if((t||"").indexOf("End")>0);else if(!o||i.WTF)throw new Error("Unexpected record "+n.toString(16)+" "+t)}}),i)}function qc(e,t){if(!e)return"??";var n=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}Gr.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Gr.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";var zc=1024;function Uc(e,t){var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),i=[ht("xml",null,{"xmlns:v":vt.v,"xmlns:o":vt.o,"xmlns:x":vt.x,"xmlns:mv":vt.mv}).replace(/\/>/,">"),ht("o:shapelayout",ht("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ht("v:shapetype",[ht("v:stroke",null,{joinstyle:"miter"}),ht("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];while(zc<1e3*e)zc+=1e3;return t.forEach((function(e){var t=wn(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?ht("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=ht("v:fill",r,n),a={on:"t",obscured:"t"};++zc,i=i.concat(["<v:shape"+ft({id:"_x0000_s"+zc,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",o,ht("v:shadow",null,a),ht("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",dt("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),dt("x:AutoFill","False"),dt("x:Row",String(t.r)),dt("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),i.push("</xml>"),i.join("")}function Gc(e,t){var n,r=Array.isArray(e);t.forEach((function(t){var i=wn(t.ref);if(r?(e[i.r]||(e[i.r]=[]),n=e[i.r][i.c]):n=e[t.ref],!n){n={t:"z"},r?e[i.r][i.c]=n:e[t.ref]=n;var o=En(e["!ref"]||"BDWGO1000001:A1");o.s.r>i.r&&(o.s.r=i.r),o.e.r<i.r&&(o.e.r=i.r),o.s.c>i.c&&(o.s.c=i.c),o.e.c<i.c&&(o.e.c=i.c);var a=Cn(o);a!==e["!ref"]&&(e["!ref"]=a)}n.c||(n.c=[]);var s={a:t.author,t:t.t,r:t.r};t.h&&(s.h=t.h),n.c.push(s)}))}function Vc(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var o=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var o=Fe(i[0]),a={author:o.authorId&&n[o.authorId]||"sheetjsghost",ref:o.ref,guid:o.guid},s=wn(o.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Is(l[1])||{r:"",t:"",h:""};a.r=c.r,"<t></t>"==c.r&&(c.t=c.h=""),a.t=c.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(a.h=c.h),r.push(a)}}}})),r}Gr.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";var Wc=ht("comments",null,{xmlns:gt.main[0]});function Hc(e){var t=[Me,Wc],n=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var r=We(e.a);n.indexOf(r)>-1||(n.push(r),t.push("<author>"+r+"</author>"))}))})),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){e[1].forEach((function(r){t.push('<comment ref="'+e[0]+'" authorId="'+n.indexOf(We(r.a))+'"><text>'),t.push(dt("t",null==r.t?"":We(r.t))),t.push("</text></comment>")}))})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function $c(e){var t={};t.iauthor=e.read_shift(4);var n=Zn(e,16);return t.rfx=n.s,t.ref=xn(n.s),e.l+=16,t}function Kc(e,t){return null==t&&(t=tn(36)),t.write_shift(4,e[1].iauthor),er(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Xc=Pn;function Yc(e){return Mn(e.slice(0,54))}function Jc(e,t){var n=[],r=[],i={},o=!1;return nn(e,(function(e,a,s){switch(s){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if((a||"").indexOf("Begin")>0);else if((a||"").indexOf("End")>0);else if(!o||t.WTF)throw new Error("Unexpected record "+s+" "+a)}})),n}function Qc(e){var t=rn(),n=[];return on(t,"BrtBeginComments"),on(t,"BrtBeginCommentAuthors"),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),on(t,"BrtCommentAuthor",Yc(e.a)))}))})),on(t,"BrtEndCommentAuthors"),on(t,"BrtBeginCommentList"),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var i={s:wn(e[0]),e:wn(e[0])};on(t,"BrtBeginComment",Kc([i,r])),r.t&&r.t.length>0&&on(t,"BrtCommentText",Bn(r)),on(t,"BrtEndComment"),delete r.iauthor}))})),on(t,"BrtEndCommentList"),on(t,"BrtEndComments"),t.end()}var Zc="application/vnd.ms-office.vbaProject";function eu(e){var t=K.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");K.utils.cfb_add(t,i,e.FileIndex[r].content)}})),K.write(t)}function tu(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var i=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&K.utils.cfb_add(e,i,t.FileIndex[r].content)}}))}var nu=["xlsb","xlsm","xlam","biff8","xla"];function ru(){return{"!type":"dialog"}}function iu(){return{"!type":"dialog"}}function ou(){return{"!type":"macro"}}function au(){return{"!type":"macro"}}Gr.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",Gr.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";var su=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var o=!1,a=!1;0==r.length?a=!0:"["==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:"["==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return o?l+=t.c:--l,a?s+=t.r:--s,n+(o?"":"$")+vn(l)+(a?"":"$")+hn(s)}return function(r,i){return t=i,r.replace(e,n)}}(),lu=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,cu=function(){return function(e,t){return e.replace(lu,(function(e,n,r,i,o,a){var s=gn(i)-(r?0:t.c),l=fn(a)-(o?0:t.r),c=0==l?"":o?l+1:"["+l+"]",u=0==s?"":r?s+1:"["+s+"]";return n+"R"+c+"C"+u}))}}();function uu(e,t){return e.replace(lu,(function(e,n,r,i,o,a){return n+("$"==r?r+i:vn(gn(i)+t.c))+("$"==o?o+a:hn(fn(a)+t.r))}))}function du(e,t,n){var r=Sn(t),i=r.s,o=wn(n),a={r:o.r-i.r,c:o.c-i.c};return uu(e,a)}function fu(e){return 1!=e.length}function hu(e){return e.replace(/_xlfn\./g,"")}function pu(e){e.l+=1}function mu(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function gu(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return vu(e,t,n);12==n.biff&&(r=4)}var i=e.read_shift(r),o=e.read_shift(r),a=mu(e,2),s=mu(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function vu(e){var t=mu(e,2),n=mu(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function yu(e,t,n){if(n.biff<8)return vu(e,t,n);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),o=mu(e,2),a=mu(e,2);return{s:{r:r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function bu(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return _u(e,t,n);var r=e.read_shift(n&&12==n.biff?4:2),i=mu(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function _u(e){var t=mu(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function wu(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function xu(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return Su(e,t,n);var i=e.read_shift(r>=12?4:2),o=e.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)while(i>524287)i-=1048576;if(1==a)while(o>8191)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}function Su(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function Cu(e,t,n){var r=(96&e[e.l++])>>5,i=gu(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function Eu(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i"),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=gu(e,o,n);return[r,i,a]}function ku(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function Ou(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[r,i]}function Tu(e,t,n){var r=(96&e[e.l++])>>5,i=yu(e,t-1,n);return[r,i]}function Iu(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}function Au(e){var t=1&e[e.l+1],n=1;return e.l+=4,[t,n]}function Ru(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(e.read_shift(n&&2==n.biff?1:2));return i}function Pu(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Mu(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Nu(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function Lu(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}function Du(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function ju(e){return e.read_shift(2),Du(e,2)}function Fu(e){return e.read_shift(2),Du(e,2)}function Bu(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=bu(e,0,n);return[r,i]}function qu(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=xu(e,0,n);return[r,i]}function zu(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);n&&5==n.biff&&(e.l+=12);var o=bu(e,0,n);return[r,i,o]}function Uu(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[af[i],of[i],r]}function Gu(e,t,n){var r=e[e.l++],i=e.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:Vu(e);return[i,(0===o[0]?of:rf)[o[1]]]}function Vu(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function Wu(e,t,n){e.l+=n&&2==n.biff?3:4}function Hu(e,t,n){if(e.l++,n&&12==n.biff)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function $u(e){return e.l++,Mr[e.read_shift(1)]}function Ku(e){return e.l++,e.read_shift(2)}function Xu(e){return e.l++,0!==e.read_shift(1)}function Yu(e){return e.l++,tr(e,8)}function Ju(e,t,n){return e.l++,ro(e,t-1,n)}function Qu(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Yi(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Mr[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=tr(e,8);break;case 2:n[1]=lo(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Zu(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?Zn:Oo)(e,8));return i}function ed(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=Qu(e,n.biff);return a}function td(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,o]}function nd(e,t,n){if(5==n.biff)return rd(e,t,n);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[r,i,o]}function rd(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function id(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&2==n.biff?3:4;var i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function od(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function ad(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}function sd(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[r,i]}var ld=en,cd=en,ud=en;function dd(e,t,n){return e.l+=2,[wu(e,4,n)]}function fd(e){return e.l+=6,[]}var hd=dd,pd=fd,md=fd,gd=dd;function vd(e){return e.l+=2,[Qi(e),1&e.read_shift(2)]}var yd=dd,bd=vd,_d=fd,wd=dd,xd=dd,Sd=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Cd(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=Sd[n>>2&31];return{ixti:t,coltype:3&n,rt:a,idx:r,c:i,C:o}}function Ed(e){return e.l+=2,[e.read_shift(4)]}function kd(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}function Od(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}function Td(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function Id(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function Ad(e){return e.l+=4,[0,0]}var Rd={1:{n:"PtgExp",f:Hu},2:{n:"PtgTbl",f:ud},3:{n:"PtgAdd",f:pu},4:{n:"PtgSub",f:pu},5:{n:"PtgMul",f:pu},6:{n:"PtgDiv",f:pu},7:{n:"PtgPower",f:pu},8:{n:"PtgConcat",f:pu},9:{n:"PtgLt",f:pu},10:{n:"PtgLe",f:pu},11:{n:"PtgEq",f:pu},12:{n:"PtgGe",f:pu},13:{n:"PtgGt",f:pu},14:{n:"PtgNe",f:pu},15:{n:"PtgIsect",f:pu},16:{n:"PtgUnion",f:pu},17:{n:"PtgRange",f:pu},18:{n:"PtgUplus",f:pu},19:{n:"PtgUminus",f:pu},20:{n:"PtgPercent",f:pu},21:{n:"PtgParen",f:pu},22:{n:"PtgMissArg",f:pu},23:{n:"PtgStr",f:Ju},26:{n:"PtgSheet",f:kd},27:{n:"PtgEndSheet",f:Od},28:{n:"PtgErr",f:$u},29:{n:"PtgBool",f:Xu},30:{n:"PtgInt",f:Ku},31:{n:"PtgNum",f:Yu},32:{n:"PtgArray",f:Iu},33:{n:"PtgFunc",f:Uu},34:{n:"PtgFuncVar",f:Gu},35:{n:"PtgName",f:td},36:{n:"PtgRef",f:Bu},37:{n:"PtgArea",f:Cu},38:{n:"PtgMemArea",f:id},39:{n:"PtgMemErr",f:ld},40:{n:"PtgMemNoMem",f:cd},41:{n:"PtgMemFunc",f:od},42:{n:"PtgRefErr",f:ad},43:{n:"PtgAreaErr",f:ku},44:{n:"PtgRefN",f:qu},45:{n:"PtgAreaN",f:Tu},46:{n:"PtgMemAreaN",f:Td},47:{n:"PtgMemNoMemN",f:Id},57:{n:"PtgNameX",f:nd},58:{n:"PtgRef3d",f:zu},59:{n:"PtgArea3d",f:Eu},60:{n:"PtgRefErr3d",f:sd},61:{n:"PtgAreaErr3d",f:Ou},255:{}},Pd={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61};(function(){for(var e in Pd)Rd[e]=Rd[Pd[e]]})();var Md={1:{n:"PtgElfLel",f:vd},2:{n:"PtgElfRw",f:wd},3:{n:"PtgElfCol",f:hd},6:{n:"PtgElfRwV",f:xd},7:{n:"PtgElfColV",f:gd},10:{n:"PtgElfRadical",f:yd},11:{n:"PtgElfRadicalS",f:_d},13:{n:"PtgElfColS",f:pd},15:{n:"PtgElfColSV",f:md},16:{n:"PtgElfRadicalLel",f:bd},25:{n:"PtgList",f:Cd},29:{n:"PtgSxName",f:Ed},255:{}},Nd={0:{n:"PtgAttrNoop",f:Ad},1:{n:"PtgAttrSemi",f:Lu},2:{n:"PtgAttrIf",f:Mu},4:{n:"PtgAttrChoose",f:Ru},8:{n:"PtgAttrGoto",f:Pu},16:{n:"PtgAttrSum",f:Wu},32:{n:"PtgAttrBaxcel",f:Au},64:{n:"PtgAttrSpace",f:ju},65:{n:"PtgAttrSpaceSemi",f:Fu},128:{n:"PtgAttrIfError",f:Nu},255:{}};function Ld(e,t,n,r){if(r.biff<8)return en(e,t);for(var i=e.l+t,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=ed(e,0,r),o.push(n[a][1]);break;case"PtgMemArea":n[a][2]=Zu(e,n[a][1],r),o.push(n[a][2]);break;case"PtgExp":r&&12==r.biff&&(n[a][1][1]=e.read_shift(4),o.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0];default:break}return t=i-e.l,0!==t&&o.push(en(e,t)),o}function Dd(e,t,n){var r,i,o=e.l+t,a=[];while(o!=e.l)t=o-e.l,i=e[e.l],r=Rd[i],24!==i&&25!==i||(r=(24===i?Md:Nd)[e[e.l+1]]),r&&r.f?a.push([r.n,r.f(e,t,n)]):en(e,t);return a}function jd(e){for(var t=[],n=0;n<e.length;++n){for(var r=e[n],i=[],o=0;o<r.length;++o){var a=r[o];if(a)switch(a[0]){case 2:i.push('"'+a[1].replace(/"/g,'""')+'"');break;default:i.push(a[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}Nd[33]=Nd[32];var Fd={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"},Bd=new RegExp(/[^\w\u4E00-\u9FFF\u3040-\u30FF]/);function qd(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return Bd.test(e)?"'"+e+"'":e}function zd(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Ud(e,t,n){return qd(zd(e,t,n),n)}function Gd(e,t,n,r,i){var o,a,s,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},d=[],f=0,h=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,y=e[0].length;v<y;++v){var b=e[0][v];switch(b[0]){case"PtgUminus":d.push("-"+d.pop());break;case"PtgUplus":d.push("+"+d.pop());break;case"PtgPercent":d.push(d.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=d.pop(),a=d.pop(),m>=0){switch(e[0][m][1][0]){case 0:g=me(" ",e[0][m][1][1]);break;case 1:g=me("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}a+=g,m=-1}d.push(a+Fd[b[0]]+o);break;case"PtgIsect":o=d.pop(),a=d.pop(),d.push(a+" "+o);break;case"PtgUnion":o=d.pop(),a=d.pop(),d.push(a+","+o);break;case"PtgRange":o=d.pop(),a=d.pop(),d.push(a+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=an(b[1][1],u,i),d.push(ln(s,c));break;case"PtgRefN":s=n?an(b[1][1],n,i):b[1][1],d.push(ln(s,c));break;case"PtgRef3d":f=b[1][1],s=an(b[1][2],u,i),p=Ud(r,f,i);d.push(p+"!"+ln(s,c));break;case"PtgFunc":case"PtgFuncVar":var _=b[1][0],w=b[1][1];_||(_=0),_&=127;var x=0==_?[]:d.slice(-_);d.length-=_,"User"===w&&(w=x.shift()),d.push(w+"("+x.join(",")+")");break;case"PtgBool":d.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":d.push(b[1]);break;case"PtgNum":d.push(String(b[1]));break;case"PtgStr":d.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":d.push(b[1]);break;case"PtgAreaN":l=sn(b[1][1],n?{s:n}:u,i),d.push(cn(l,i));break;case"PtgArea":l=sn(b[1][1],u,i),d.push(cn(l,i));break;case"PtgArea3d":f=b[1][1],l=b[1][2],p=Ud(r,f,i),d.push(p+"!"+cn(l,i));break;case"PtgAttrSum":d.push("SUM("+d.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=b[1][2];var S=(r.names||[])[h-1]||(r[0]||[])[h],C=S?S.Name:"SH33TJSNAME"+String(h);C in sf&&(C=sf[C]),d.push(C);break;case"PtgNameX":var E,k=b[1][1];if(h=b[1][2],!(i.biff<=5)){var O="";if(14849==((r[k]||[])[0]||[])[0]||(1025==((r[k]||[])[0]||[])[0]?r[k][h]&&r[k][h].itab>0&&(O=r.SheetNames[r[k][h].itab-1]+"!"):O=r.SheetNames[h-1]+"!"),r[k]&&r[k][h])O+=r[k][h].Name;else if(r[0]&&r[0][h])O+=r[0][h].Name;else{var T=zd(r,k,i).split(";;");T[h-1]?O=T[h-1]:O+="SH33TJSERRX"}d.push(O);break}k<0&&(k=-k),r[k]&&(E=r[k][h]),E||(E={Name:"SH33TJSERRY"}),d.push(E.Name);break;case"PtgParen":var I="(",A=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:I=me(" ",e[0][m][1][1])+I;break;case 3:I=me("\r",e[0][m][1][1])+I;break;case 4:A=me(" ",e[0][m][1][1])+A;break;case 5:A=me("\r",e[0][m][1][1])+A;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}d.push(I+d.pop()+A);break;case"PtgRefErr":d.push("#REF!");break;case"PtgRefErr3d":d.push("#REF!");break;case"PtgExp":s={c:b[1][1],r:b[1][0]};var R={c:n.c,r:n.r};if(r.sharedf[xn(s)]){var P=r.sharedf[xn(s)];d.push(Gd(P,u,R,r,i))}else{var M=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.c<a[0].s.c||s.c>a[0].e.c)&&!(s.r<a[0].s.r||s.r>a[0].e.r)){d.push(Gd(a[1],u,R,r,i)),M=!0;break}M||d.push(b[1])}break;case"PtgArray":d.push("{"+jd(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":d.push("");break;case"PtgAreaErr":d.push("#REF!");break;case"PtgAreaErr3d":d.push("#REF!");break;case"PtgList":d.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var N=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&m>=0&&-1==N.indexOf(e[0][v][0])){b=e[0][m];var L=!0;switch(b[1][0]){case 4:L=!1;case 0:g=me(" ",b[1][1]);break;case 5:L=!1;case 1:g=me("\r",b[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}d.push((L?g:"")+d.pop()+(L?"":g)),m=-1}}if(d.length>1&&i.WTF)throw new Error("bad formula stack");return d[0]}function Vd(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],en(e,t-2)];var s=Dd(e,a,n);return t!==a+o&&(r=Ld(e,t-a-o,s,n)),e.l=i,[s,r]}function Wd(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],en(e,t-2)];var s=Dd(e,a,n);return t!==a+o&&(r=Ld(e,t-a-o,s,n)),e.l=i,[s,r]}function Hd(e,t,n,r){var i,o=e.l+t,a=Dd(e,r,n);return o!==e.l&&(i=Ld(e,o-e.l,a,n)),[a,i]}function $d(e,t,n){var r,i=e.l+t,o=e.read_shift(2),a=Dd(e,o,n);return 65535==o?[[],en(e,t-2)]:(t!==o+2&&(r=Ld(e,i-o-2,a,n)),[a,r])}function Kd(e){var t;if(65535!==Ut(e,e.l+6))return[tr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function Xd(e){if(null==e){var t=tn(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return nr("number"==typeof e?e:0)}function Yd(e,t,n){var r=e.l+t,i=_o(e,6);2==n.biff&&++e.l;var o=Kd(e,8),a=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var s=Wd(e,r-e.l,n);return{cell:i,val:o[0],formula:s,shared:a>>3&1,tt:o[1]}}function Jd(e,t,n,r,i){var o=wo(t,n,i),a=Xd(e.v),s=tn(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=tn(e.bf.length),u=0;u<e.bf.length;++u)c[u]=e.bf[u];var d=N([o,a,s,c]);return d}function Qd(e,t,n){var r=e.read_shift(4),i=Dd(e,r,n),o=e.read_shift(4),a=o>0?Ld(e,o,i,n):null;return[i,a]}var Zd=Qd,ef=Qd,tf=Qd,nf=Qd,rf={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},of={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},af={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0},sf={"_xlfn.ACOT":"ACOT","_xlfn.ACOTH":"ACOTH","_xlfn.AGGREGATE":"AGGREGATE","_xlfn.ARABIC":"ARABIC","_xlfn.AVERAGEIF":"AVERAGEIF","_xlfn.AVERAGEIFS":"AVERAGEIFS","_xlfn.BASE":"BASE","_xlfn.BETA.DIST":"BETA.DIST","_xlfn.BETA.INV":"BETA.INV","_xlfn.BINOM.DIST":"BINOM.DIST","_xlfn.BINOM.DIST.RANGE":"BINOM.DIST.RANGE","_xlfn.BINOM.INV":"BINOM.INV","_xlfn.BITAND":"BITAND","_xlfn.BITLSHIFT":"BITLSHIFT","_xlfn.BITOR":"BITOR","_xlfn.BITRSHIFT":"BITRSHIFT","_xlfn.BITXOR":"BITXOR","_xlfn.CEILING.MATH":"CEILING.MATH","_xlfn.CEILING.PRECISE":"CEILING.PRECISE","_xlfn.CHISQ.DIST":"CHISQ.DIST","_xlfn.CHISQ.DIST.RT":"CHISQ.DIST.RT","_xlfn.CHISQ.INV":"CHISQ.INV","_xlfn.CHISQ.INV.RT":"CHISQ.INV.RT","_xlfn.CHISQ.TEST":"CHISQ.TEST","_xlfn.COMBINA":"COMBINA","_xlfn.CONCAT":"CONCAT","_xlfn.CONFIDENCE.NORM":"CONFIDENCE.NORM","_xlfn.CONFIDENCE.T":"CONFIDENCE.T","_xlfn.COT":"COT","_xlfn.COTH":"COTH","_xlfn.COUNTIFS":"COUNTIFS","_xlfn.COVARIANCE.P":"COVARIANCE.P","_xlfn.COVARIANCE.S":"COVARIANCE.S","_xlfn.CSC":"CSC","_xlfn.CSCH":"CSCH","_xlfn.DAYS":"DAYS","_xlfn.DECIMAL":"DECIMAL","_xlfn.ECMA.CEILING":"ECMA.CEILING","_xlfn.ERF.PRECISE":"ERF.PRECISE","_xlfn.ERFC.PRECISE":"ERFC.PRECISE","_xlfn.EXPON.DIST":"EXPON.DIST","_xlfn.F.DIST":"F.DIST","_xlfn.F.DIST.RT":"F.DIST.RT","_xlfn.F.INV":"F.INV","_xlfn.F.INV.RT":"F.INV.RT","_xlfn.F.TEST":"F.TEST","_xlfn.FILTERXML":"FILTERXML","_xlfn.FLOOR.MATH":"FLOOR.MATH","_xlfn.FLOOR.PRECISE":"FLOOR.PRECISE","_xlfn.FORECAST.ETS":"FORECAST.ETS","_xlfn.FORECAST.ETS.CONFINT":"FORECAST.ETS.CONFINT","_xlfn.FORECAST.ETS.SEASONALITY":"FORECAST.ETS.SEASONALITY","_xlfn.FORECAST.ETS.STAT":"FORECAST.ETS.STAT","_xlfn.FORECAST.LINEAR":"FORECAST.LINEAR","_xlfn.FORMULATEXT":"FORMULATEXT","_xlfn.GAMMA":"GAMMA","_xlfn.GAMMA.DIST":"GAMMA.DIST","_xlfn.GAMMA.INV":"GAMMA.INV","_xlfn.GAMMALN.PRECISE":"GAMMALN.PRECISE","_xlfn.GAUSS":"GAUSS","_xlfn.HYPGEOM.DIST":"HYPGEOM.DIST","_xlfn.IFERROR":"IFERROR","_xlfn.IFNA":"IFNA","_xlfn.IFS":"IFS","_xlfn.IMCOSH":"IMCOSH","_xlfn.IMCOT":"IMCOT","_xlfn.IMCSC":"IMCSC","_xlfn.IMCSCH":"IMCSCH","_xlfn.IMSEC":"IMSEC","_xlfn.IMSECH":"IMSECH","_xlfn.IMSINH":"IMSINH","_xlfn.IMTAN":"IMTAN","_xlfn.ISFORMULA":"ISFORMULA","_xlfn.ISO.CEILING":"ISO.CEILING","_xlfn.ISOWEEKNUM":"ISOWEEKNUM","_xlfn.LOGNORM.DIST":"LOGNORM.DIST","_xlfn.LOGNORM.INV":"LOGNORM.INV","_xlfn.MAXIFS":"MAXIFS","_xlfn.MINIFS":"MINIFS","_xlfn.MODE.MULT":"MODE.MULT","_xlfn.MODE.SNGL":"MODE.SNGL","_xlfn.MUNIT":"MUNIT","_xlfn.NEGBINOM.DIST":"NEGBINOM.DIST","_xlfn.NETWORKDAYS.INTL":"NETWORKDAYS.INTL","_xlfn.NIGBINOM":"NIGBINOM","_xlfn.NORM.DIST":"NORM.DIST","_xlfn.NORM.INV":"NORM.INV","_xlfn.NORM.S.DIST":"NORM.S.DIST","_xlfn.NORM.S.INV":"NORM.S.INV","_xlfn.NUMBERVALUE":"NUMBERVALUE","_xlfn.PDURATION":"PDURATION","_xlfn.PERCENTILE.EXC":"PERCENTILE.EXC","_xlfn.PERCENTILE.INC":"PERCENTILE.INC","_xlfn.PERCENTRANK.EXC":"PERCENTRANK.EXC","_xlfn.PERCENTRANK.INC":"PERCENTRANK.INC","_xlfn.PERMUTATIONA":"PERMUTATIONA","_xlfn.PHI":"PHI","_xlfn.POISSON.DIST":"POISSON.DIST","_xlfn.QUARTILE.EXC":"QUARTILE.EXC","_xlfn.QUARTILE.INC":"QUARTILE.INC","_xlfn.QUERYSTRING":"QUERYSTRING","_xlfn.RANK.AVG":"RANK.AVG","_xlfn.RANK.EQ":"RANK.EQ","_xlfn.RRI":"RRI","_xlfn.SEC":"SEC","_xlfn.SECH":"SECH","_xlfn.SHEET":"SHEET","_xlfn.SHEETS":"SHEETS","_xlfn.SKEW.P":"SKEW.P","_xlfn.STDEV.P":"STDEV.P","_xlfn.STDEV.S":"STDEV.S","_xlfn.SUMIFS":"SUMIFS","_xlfn.SWITCH":"SWITCH","_xlfn.T.DIST":"T.DIST","_xlfn.T.DIST.2T":"T.DIST.2T","_xlfn.T.DIST.RT":"T.DIST.RT","_xlfn.T.INV":"T.INV","_xlfn.T.INV.2T":"T.INV.2T","_xlfn.T.TEST":"T.TEST","_xlfn.TEXTJOIN":"TEXTJOIN","_xlfn.UNICHAR":"UNICHAR","_xlfn.UNICODE":"UNICODE","_xlfn.VAR.P":"VAR.P","_xlfn.VAR.S":"VAR.S","_xlfn.WEBSERVICE":"WEBSERVICE","_xlfn.WEIBULL.DIST":"WEIBULL.DIST","_xlfn.WORKDAY.INTL":"WORKDAY.INTL","_xlfn.XOR":"XOR","_xlfn.Z.TEST":"Z.TEST"};function lf(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function cf(e){var t="of:="+e.replace(lu,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function uf(e){var t=e.split(":"),n=t[0].split(".")[0];return[n,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function df(e){return e.replace(/\./,"!")}var ff={},hf={};Gr.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];var pf="undefined"!==typeof Map;function mf(e,t,n){var r=0,i=e.length;if(n){if(pf?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var o=pf?n.get(t):n[t];r<o.length;++r)if(e[o[r]].t===t)return e.Count++,o[r]}else for(;r<i;++r)if(e[r].t===t)return e.Count++,r;return e[i]={t:t},e.Count++,e.Unique++,n&&(pf?(n.has(t)||n.set(t,[]),n.get(t).push(i)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(i))),i}function gf(e,t){var n={min:e+1,max:e+1},r=-1;return t.MDW&&(bl=t.MDW),null!=t.width?n.customWidth=1:null!=t.wpx?r=wl(t.wpx):null!=t.wch&&(r=t.wch),r>-1?(n.width=xl(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),n}function vf(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function yf(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],i=60,o=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){j.load(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=o;++i)if(e[i].numFmtId===r)return i;return e[o]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function bf(e,t,n,r,i,o){try{r.cellNF&&(e.z=j._table[t])}catch(uv){if(r.WTF)throw uv}if("z"!==e.t){if("d"===e.t&&"string"===typeof e.v&&(e.v=fe(e.v)),!r||!1!==r.cellText)try{if(null==j._table[t]&&j.load(q[t]||"General",t),"e"===e.t)e.w=e.w||Mr[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=j._general_int(e.v):e.w=j._general_num(e.v);else if("d"===e.t){var a=ie(e.v);e.w=(0|a)===a?j._general_int(a):j._general_num(a)}else{if(void 0===e.v)return"";e.w=j._general(e.v,hf)}else"d"===e.t?e.w=j.format(t,ie(e.v),hf):e.w=j.format(t,e.v,hf)}catch(uv){if(r.WTF)throw uv}if(r.cellStyles&&null!=n)try{e.s=o.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=ml(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=ml(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(uv){if(r.WTF&&o.Fills)throw uv}}}function _f(e,t,n){if(e&&e["!ref"]){var r=En(e["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+n+"): "+e["!ref"])}}function wf(e,t){var n=En(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=Cn(n))}var xf=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Sf=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Cf=/<(?:\w:)?hyperlink [^>]*>/gm,Ef=/"(\w*:\w*)"/,kf=/<(?:\w:)?col\b[^>]*[\/]?>/g,Of=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Tf=/<(?:\w:)?pageMargins[^>]*\/>/g,If=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Af=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Rf(e,t,n,r,i,o,a){if(!e)return e;r||(r={"!id":{}}),null!=w&&null==t.dense&&(t.dense=w);var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",d=e.match(Sf);d?(c=e.slice(0,d.index),u=e.slice(d.index+d[0].length)):c=u=e;var f=c.match(If);f&&Mf(f[0],s,i,n);var h=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(h>0){var p=c.slice(h,h+50).match(Ef);p&&wf(s,p[1])}var m=c.match(Af);m&&m[1]&&Hf(m[1],i);var g=[];if(t.cellStyles){var v=c.match(kf);v&&zf(g,v)}d&&Xf(d[1],s,t,l,o,a);var y=u.match(Of);y&&(s["!autofilter"]=Gf(y[0]));var b=[],_=u.match(xf);if(_)for(h=0;h!=_.length;++h)b[h]=En(_[h].slice(_[h].indexOf('"')+1));var x=u.match(Cf);x&&Ff(s,x,r);var S=u.match(Tf);if(S&&(s["!margins"]=Bf(Fe(S[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=Cn(l)),t.sheetRows>0&&s["!ref"]){var C=En(s["!ref"]);t.sheetRows<=+C.e.r&&(C.e.r=t.sheetRows-1,C.e.r>l.e.r&&(C.e.r=l.e.r),C.e.r<C.s.r&&(C.s.r=C.e.r),C.e.c>l.e.c&&(C.e.c=l.e.c),C.e.c<C.s.c&&(C.s.c=C.e.c),s["!fullref"]=s["!ref"],s["!ref"]=Cn(C))}return g.length>0&&(s["!cols"]=g),b.length>0&&(s["!merges"]=b),s}function Pf(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',n=0;n!=e.length;++n)t+='<mergeCell ref="'+Cn(e[n])+'"/>';return t+"</mergeCells>"}function Mf(e,t,n,r){var i=Fe(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=i.codeName)}function Nf(e,t,n,r,i){var o=!1,a={},s=null;if("xlsx"!==r.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(uv){}o=!0,a.codeName=We(l)}(o||s)&&(i[i.length]=ht("sheetPr",s,a))}var Lf=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Df=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function jf(e){var t={sheet:1};return Lf.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Df.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=rl(e.password).toString(16).toUpperCase()),ht("sheetProtection",null,t)}function Ff(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var o=Fe(Ze(t[i]),!0);if(!o.ref)return;var a=((n||{})["!id"]||[])[o.id];a?(o.Target=a.Target,o.location&&(o.Target+="#"+o.location)):(o.Target="#"+o.location,a={Target:o.Target,TargetMode:"Internal"}),o.Rel=a,o.tooltip&&(o.Tooltip=o.tooltip,delete o.tooltip);for(var s=En(o.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=xn({c:c,r:l});r?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=o):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=o)}}}function Bf(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(n){e[n]&&(t[n]=parseFloat(e[n]))})),t}function qf(e){return vf(e),ht("pageMargins",null,e)}function zf(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=Fe(t[r],!0);i.hidden&&(i.hidden=Qe(i.hidden));var o=parseInt(i.min,10)-1,a=parseInt(i.max,10)-1;delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,Cl(i.width)),El(i);while(o<=a)e[o++]=pe(i)}}function Uf(e,t){for(var n,r=["<cols>"],i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=ht("col",null,gf(i,n)));return r[r.length]="</cols>",r.join("")}function Gf(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function Vf(e,t,n,r){var i="string"==typeof e.ref?e.ref:Cn(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,a=Sn(i);a.s.r==a.e.r&&(a.e.r=Sn(t["!ref"]).e.r,i=Cn(a));for(var s=0;s<o.length;++s){var l=o[s];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==r){l.Ref="'"+n.SheetNames[r]+"'!"+i;break}}return s==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+i}),ht("autoFilter",null,{ref:i})}var Wf=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Hf(e,t){t.Views||(t.Views=[{}]),(e.match(Wf)||[]).forEach((function(e,n){var r=Fe(e);t.Views[n]||(t.Views[n]={}),Qe(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}function $f(e,t,n,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),ht("sheetViews",ht("sheetView",null,i),{})}function Kf(e,t,n,r){if(void 0===e.v&&"string"!==typeof e.f||"z"===e.t)return"";var i="",o=e.t,a=e.v;if("z"!==e.t)switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Mr[e.v];break;case"d":r&&r.cellDates?i=fe(e.v,-1).toISOString():(e=pe(e),e.t="n",i=""+(e.v=ie(fe(e.v)))),"undefined"===typeof e.z&&(e.z=j._table[14]);break;default:i=e.v;break}var s=dt("v",We(i)),l={r:t},c=yf(r.cellXfs,e,r);switch(0!==c&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(null==e.v){delete e.t;break}if(r&&r.bookSST){s=dt("v",""+mf(r.Strings,e.v,r.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=o&&(e.t=o,e.v=a),"string"==typeof e.f&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=ht("f",We(e.f),u)+(null!=e.v?s:"")}return e.l&&n["!links"].push([t,e.l]),e.c&&n["!comments"].push([t,e.c]),ht("c",s,l)}var Xf=function(){var e=/<(?:\w+:)?c[ >]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,o=it("v"),a=it("f");return function(s,l,c,u,d,f){for(var h,p,m,g,v,y=0,b="",_=[],w=[],x=0,S=0,C=0,E="",k=0,O=0,T=0,I=0,A=Array.isArray(f.CellXf),R=[],P=[],M=Array.isArray(l),N=[],L={},D=!1,F=!!c.sheetStubs,B=s.split(t),q=0,z=B.length;q!=z;++q){b=B[q].trim();var U=b.length;if(0!==U){for(y=0;y<U;++y)if(62===b.charCodeAt(y))break;if(++y,p=Fe(b.slice(0,y),!0),k=null!=p.r?parseInt(p.r,10):k+1,O=-1,!(c.sheetRows&&c.sheetRows<k)){u.s.r>k-1&&(u.s.r=k-1),u.e.r<k-1&&(u.e.r=k-1),c&&c.cellStyles&&(L={},D=!1,p.ht&&(D=!0,L.hpt=parseFloat(p.ht),L.hpx=Il(L.hpt)),"1"==p.hidden&&(D=!0,L.hidden=!0),null!=p.outlineLevel&&(D=!0,L.level=+p.outlineLevel),D&&(N[k-1]=L)),_=b.slice(y).split(e);for(var G=0;G!=_.length;++G)if("<"!=_[G].trim().charAt(0))break;for(_=_.slice(G),y=0;y!=_.length;++y)if(b=_[y].trim(),0!==b.length){if(w=b.match(n),x=y,S=0,C=0,b="<c "+("<"==b.slice(0,1)?">":"")+b,null!=w&&2===w.length){for(x=0,E=w[1],S=0;S!=E.length;++S){if((C=E.charCodeAt(S)-64)<1||C>26)break;x=26*x+C}--x,O=x}else++O;for(S=0;S!=b.length;++S)if(62===b.charCodeAt(S))break;if(++S,p=Fe(b.slice(0,S),!0),p.r||(p.r=xn({r:k-1,c:O})),E=b.slice(S),h={t:""},null!=(w=E.match(o))&&""!==w[1]&&(h.v=Ue(w[1])),c.cellFormula){if(null!=(w=E.match(a))&&""!==w[1]){if(h.f=Ue(Ze(w[1])).replace(/\r\n/g,"\n"),c.xlfn||(h.f=hu(h.f)),w[0].indexOf('t="array"')>-1)h.F=(E.match(i)||[])[1],h.F.indexOf(":")>-1&&R.push([En(h.F),h.F]);else if(w[0].indexOf('t="shared"')>-1){g=Fe(w[0]);var V=Ue(Ze(w[1]));c.xlfn||(V=hu(V)),P[parseInt(g.si,10)]=[g,V,p.r]}}else(w=E.match(/<f[^>]*\/>/))&&(g=Fe(w[0]),P[g.si]&&(h.f=du(P[g.si][1],P[g.si][2],p.r)));var W=wn(p.r);for(S=0;S<R.length;++S)W.r>=R[S][0].s.r&&W.r<=R[S][0].e.r&&W.c>=R[S][0].s.c&&W.c<=R[S][0].e.c&&(h.F=R[S][1])}if(null==p.t&&void 0===h.v)if(h.f||h.F)h.v=0,h.t="n";else{if(!F)continue;h.t="z"}else h.t=p.t||"n";switch(u.s.c>O&&(u.s.c=O),u.e.c<O&&(u.e.c=O),h.t){case"n":if(""==h.v||null==h.v){if(!F)continue;h.t="z"}else h.v=parseFloat(h.v);break;case"s":if("undefined"==typeof h.v){if(!F)continue;h.t="z"}else m=ff[parseInt(h.v,10)],h.v=m.t,h.r=m.r,c.cellHTML&&(h.h=m.h);break;case"str":h.t="s",h.v=null!=h.v?Ze(h.v):"",c.cellHTML&&(h.h=Ke(h.v));break;case"inlineStr":w=E.match(r),h.t="s",null!=w&&(m=Is(w[1]))?(h.v=m.t,c.cellHTML&&(h.h=m.h)):h.v="";break;case"b":h.v=Qe(h.v);break;case"d":c.cellDates?h.v=fe(h.v,1):(h.v=ie(fe(h.v,1)),h.t="n");break;case"e":c&&!1===c.cellText||(h.w=h.v),h.v=Nr[h.v];break}if(T=I=0,v=null,A&&void 0!==p.s&&(v=f.CellXf[p.s],null!=v&&(null!=v.numFmtId&&(T=v.numFmtId),c.cellStyles&&null!=v.fillId&&(I=v.fillId))),bf(h,T,I,c,d,f),c.cellDates&&A&&"n"==h.t&&j.is_date(j._table[T])&&(h.t="d",h.v=le(h.v)),M){var H=wn(p.r);l[H.r]||(l[H.r]=[]),l[H.r][H.c]=h}else l[p.r]=h}}}}N.length>0&&(l["!rows"]=N)}}();function Yf(e,t,n,r){var i,o,a=[],s=[],l=En(e["!ref"]),c="",u="",d=[],f=0,h=0,p=e["!rows"],m=Array.isArray(e),g={r:u},v=-1;for(h=l.s.c;h<=l.e.c;++h)d[h]=vn(h);for(f=l.s.r;f<=l.e.r;++f){for(s=[],u=hn(f),h=l.s.c;h<=l.e.c;++h){i=d[h]+u;var y=m?(e[f]||[])[h]:e[i];void 0!==y&&(null!=(c=Kf(y,i,e,t,n,r))&&s.push(c))}(s.length>0||p&&p[f])&&(g={r:u},p&&p[f]&&(o=p[f],o.hidden&&(g.hidden=1),v=-1,o.hpx?v=Tl(o.hpx):o.hpt&&(v=o.hpt),v>-1&&(g.ht=v,g.customHeight=1),o.level&&(g.outlineLevel=o.level)),a[a.length]=ht("row",s.join(""),g))}if(p)for(;f<p.length;++f)p&&p[f]&&(g={r:f+1},o=p[f],o.hidden&&(g.hidden=1),v=-1,o.hpx?v=Tl(o.hpx):o.hpt&&(v=o.hpt),v>-1&&(g.ht=v,g.customHeight=1),o.level&&(g.outlineLevel=o.level),a[a.length]=ht("row","",g));return a.join("")}var Jf=ht("worksheet",null,{xmlns:gt.main[0],"xmlns:r":gt.r});function Qf(e,t,n,r){var i=[Me,Jf],o=n.SheetNames[e],a=0,s="",l=n.Sheets[o];null==l&&(l={});var c=l["!ref"]||"A1",u=En(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=Cn(u)}r||(r={}),l["!comments"]=[];var d=[];Nf(l,n,e,t,i),i[i.length]=ht("dimension",null,{ref:c}),i[i.length]=$f(l,t,e,n),t.sheetFormat&&(i[i.length]=ht("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=Uf(l,l["!cols"])),i[a=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(s=Yf(l,t,e,n,r),s.length>0&&(i[i.length]=s)),i.length>a+1&&(i[i.length]="</sheetData>",i[a]=i[a].replace("/>",">")),null!=l["!protect"]&&(i[i.length]=jf(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=Vf(l["!autofilter"],l,n,e)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=Pf(l["!merges"]));var f,h=-1,p=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(e){e[1].Target&&(f={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(p=Xr(r,-1,We(e[1].Target).replace(/#.*$/,""),Gr.HLINK),f["r:id"]="rId"+p),(h=e[1].Target.indexOf("#"))>-1&&(f.location=We(e[1].Target.slice(h+1))),e[1].Tooltip&&(f.tooltip=We(e[1].Tooltip)),i[i.length]=ht("hyperlink",null,f))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=qf(l["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||(i[i.length]=dt("ignoredErrors",ht("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(p=Xr(r,-1,"../drawings/drawing"+(e+1)+".xml",Gr.DRAW),i[i.length]=ht("drawing",null,{"r:id":"rId"+p}),l["!drawing"]=d),l["!comments"].length>0&&(p=Xr(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Gr.VML),i[i.length]=ht("legacyDrawing",null,{"r:id":"rId"+p}),l["!legacy"]=p),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Zf(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=r,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}function eh(e,t,n){var r=tn(145),i=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var o=320;i.hpx?o=20*Tl(i.hpx):i.hpt&&(o=20*i.hpt),r.write_shift(2,o),r.write_shift(1,0);var a=0;i.level&&(a|=i.level),i.hidden&&(a|=16),(i.hpx||i.hpt)&&(a|=32),r.write_shift(1,a),r.write_shift(1,0);var s=0,l=r.l;r.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var d=-1,f=-1,h=u<<10;h<u+1<<10;++h){c.c=h;var p=Array.isArray(n)?(n[c.r]||[])[c.c]:n[xn(c)];p&&(d<0&&(d=h),f=h)}d<0||(++s,r.write_shift(4,d),r.write_shift(4,f))}var m=r.l;return r.l=l,r.write_shift(4,s),r.l=m,r.length>r.l?r.slice(0,r.l):r}function th(e,t,n,r){var i=eh(r,n,t);(i.length>17||(t["!rows"]||[])[r])&&on(e,"BrtRowHdr",i)}var nh=Zn,rh=er;function ih(){}function oh(e,t){var n={};return e.l+=19,n.name=Un(e,t-19),n}function ah(e,t){null==t&&(t=tn(84+4*e.length));for(var n=0;n<3;++n)t.write_shift(1,0);return ir({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),Gn(e,t),t.slice(0,t.l)}function sh(e){var t=qn(e);return[t]}function lh(e,t,n){return null==n&&(n=tn(8)),zn(t,n)}function ch(e){var t=qn(e),n=e.read_shift(1);return[t,n,"b"]}function uh(e,t,n){return null==n&&(n=tn(9)),zn(t,n),n.write_shift(1,e.v?1:0),n}function dh(e){var t=qn(e),n=e.read_shift(1);return[t,n,"e"]}function fh(e){var t=qn(e),n=e.read_shift(4);return[t,n,"s"]}function hh(e,t,n){return null==n&&(n=tn(12)),zn(t,n),n.write_shift(4,t.v),n}function ph(e){var t=qn(e),n=tr(e);return[t,n,"n"]}function mh(e,t,n){return null==n&&(n=tn(16)),zn(t,n),nr(e.v,n),n}function gh(e){var t=qn(e),n=Xn(e);return[t,n,"n"]}function vh(e,t,n){return null==n&&(n=tn(12)),zn(t,n),Yn(e.v,n),n}function yh(e){var t=qn(e),n=Pn(e);return[t,n,"str"]}function bh(e,t,n){return null==n&&(n=tn(12+4*e.v.length)),zn(t,n),Mn(e.v,n),n.length>n.l?n.slice(0,n.l):n}function _h(e,t,n){var r=e.l+t,i=qn(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(n.cellFormula){e.l+=2;var s=ef(e,r-e.l,n);a[3]=Gd(s,null,i,n.supbooks,n)}else e.l=r;return a}function wh(e,t,n){var r=e.l+t,i=qn(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(n.cellFormula){e.l+=2;var s=ef(e,r-e.l,n);a[3]=Gd(s,null,i,n.supbooks,n)}else e.l=r;return a}function xh(e,t,n){var r=e.l+t,i=qn(e);i.r=n["!row"];var o=tr(e),a=[i,o,"n"];if(n.cellFormula){e.l+=2;var s=ef(e,r-e.l,n);a[3]=Gd(s,null,i,n.supbooks,n)}else e.l=r;return a}function Sh(e,t,n){var r=e.l+t,i=qn(e);i.r=n["!row"];var o=Pn(e),a=[i,o,"str"];if(n.cellFormula){e.l+=2;var s=ef(e,r-e.l,n);a[3]=Gd(s,null,i,n.supbooks,n)}else e.l=r;return a}var Ch=Zn,Eh=er;function kh(e,t){return null==t&&(t=tn(4)),t.write_shift(4,e),t}function Oh(e,t){var n=e.l+t,r=Zn(e,16),i=Vn(e),o=Pn(e),a=Pn(e),s=Pn(e);e.l=n;var l={rfx:r,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function Th(e,t){var n=tn(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));er({s:wn(e[0]),e:wn(e[0])},n),Kn("rId"+t,n);var r=e[1].Target.indexOf("#"),i=-1==r?"":e[1].Target.slice(r+1);return Mn(i||"",n),Mn(e[1].Tooltip||"",n),Mn("",n),n.slice(0,n.l)}function Ih(){}function Ah(e,t,n){var r=e.l+t,i=Jn(e,16),o=e.read_shift(1),a=[i];if(a[2]=o,n.cellFormula){var s=Zd(e,r-e.l,n);a[1]=s}else e.l=r;return a}function Rh(e,t,n){var r=e.l+t,i=Zn(e,16),o=[i];if(n.cellFormula){var a=nf(e,r-e.l,n);o[1]=a,e.l=r}else e.l=r;return o}function Ph(e,t,n){null==n&&(n=tn(18));var r=gf(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var i=0;return t.hidden&&(i|=1),"number"==typeof r.width&&(i|=2),t.level&&(i|=t.level<<8),n.write_shift(2,i),n}var Mh=["left","right","top","bottom","header","footer"];function Nh(e){var t={};return Mh.forEach((function(n){t[n]=tr(e,8)})),t}function Lh(e,t){return null==t&&(t=tn(48)),vf(e),Mh.forEach((function(n){nr(e[n],t)})),t}function Dh(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function jh(e,t,n){null==n&&(n=tn(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}function Fh(e){var t=tn(24);return t.write_shift(4,4),t.write_shift(4,1),er(e,t),t}function Bh(e,t){return null==t&&(t=tn(66)),t.write_shift(2,e.password?rl(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?t.write_shift(4,null==e[n[0]]||e[n[0]]?0:1):t.write_shift(4,null!=e[n[0]]&&e[n[0]]?0:1)})),t}function qh(){}function zh(){}function Uh(e,t,n,r,i,o,a){if(!e)return e;var s=t||{};r||(r={"!id":{}}),null!=w&&null==s.dense&&(s.dense=w);var l,c,u,d,f,h,p,m,g,v,y=s.dense?[]:{},b={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=[],x=!1,S=!1,C=[];s.biff=12,s["!row"]=0;var E=0,k=!1,O=[],T={},I=s.supbooks||i.supbooks||[[]];if(I.sharedf=T,I.arrayf=O,I.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=I,i.Names))for(var A=0;A<i.Names.length;++A)I[0][A+1]=i.Names[A];var R=[],P=[],M=!1;if(nn(e,(function(e,t,w){if(!S)switch(w){case 148:l=e;break;case 0:c=e,s.sheetRows&&s.sheetRows<=c.r&&(S=!0),g=hn(f=c.r),s["!row"]=c.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=Il(e.hpt)),P[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:switch(u={t:e[2]},e[2]){case"n":u.v=e[1];break;case"s":m=ff[e[1]],u.v=m.t,u.r=m.r;break;case"b":u.v=!!e[1];break;case"e":u.v=e[1],!1!==s.cellText&&(u.w=Mr[u.v]);break;case"str":u.t="s",u.v=e[1];break}if((d=a.CellXf[e[0].iStyleRef])&&bf(u,d.numFmtId,null,s,o,a),h=e[0].c,s.dense?(y[f]||(y[f]=[]),y[f][h]=u):y[vn(h)+g]=u,s.cellFormula){for(k=!1,E=0;E<O.length;++E){var A=O[E];c.r>=A[0].s.r&&c.r<=A[0].e.r&&h>=A[0].s.c&&h<=A[0].e.c&&(u.F=Cn(A[0]),k=!0)}!k&&e.length>3&&(u.f=e[3])}if(b.s.r>c.r&&(b.s.r=c.r),b.s.c>h&&(b.s.c=h),b.e.r<c.r&&(b.e.r=c.r),b.e.c<h&&(b.e.c=h),s.cellDates&&d&&"n"==u.t&&j.is_date(j._table[d.numFmtId])){var N=j.parse_date_code(u.v);N&&(u.t="d",u.v=new Date(N.y,N.m-1,N.d,N.H,N.M,N.S,N.u))}break;case 1:if(!s.sheetStubs||x)break;u={t:"z",v:void 0},h=e[0].c,s.dense?(y[f]||(y[f]=[]),y[f][h]=u):y[vn(h)+g]=u,b.s.r>c.r&&(b.s.r=c.r),b.s.c>h&&(b.s.c=h),b.e.r<c.r&&(b.e.r=c.r),b.e.c<h&&(b.e.c=h);break;case 176:C.push(e);break;case 494:var L=r["!id"][e.relId];for(L?(e.Target=L.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=L):""==e.relId&&(e.Target="#"+e.loc),f=e.rfx.s.r;f<=e.rfx.e.r;++f)for(h=e.rfx.s.c;h<=e.rfx.e.c;++h)s.dense?(y[f]||(y[f]=[]),y[f][h]||(y[f][h]={t:"z",v:void 0}),y[f][h].l=e):(p=xn({c:h,r:f}),y[p]||(y[p]={t:"z",v:void 0}),y[p].l=e);break;case 426:if(!s.cellFormula)break;O.push(e),v=s.dense?y[f][h]:y[vn(h)+g],v.f=Gd(e[1],b,{r:c.r,c:h},I,s),v.F=Cn(e[0]);break;case 427:if(!s.cellFormula)break;T[xn(e[0].s)]=e[1],v=s.dense?y[f][h]:y[vn(h)+g],v.f=Gd(e[1],b,{r:c.r,c:h},I,s);break;case 60:if(!s.cellStyles)break;while(e.e>=e.s)R[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},M||(M=!0,Cl(e.w/256)),El(R[e.e+1]);break;case 161:y["!autofilter"]={ref:Cn(e)};break;case 476:y["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 49:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 152:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:x=!0;break;case 36:x=!1;break;case 37:_.push(t),x=!0;break;case 38:_.pop(),x=!1;break;default:if((t||"").indexOf("Begin")>0);else if((t||"").indexOf("End")>0);else if(!x||s.WTF)throw new Error("Unexpected record "+w+" "+t)}}),s),delete s.supbooks,delete s["!row"],!y["!ref"]&&(b.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(y["!ref"]=Cn(l||b)),s.sheetRows&&y["!ref"]){var N=En(y["!ref"]);s.sheetRows<=+N.e.r&&(N.e.r=s.sheetRows-1,N.e.r>b.e.r&&(N.e.r=b.e.r),N.e.r<N.s.r&&(N.s.r=N.e.r),N.e.c>b.e.c&&(N.e.c=b.e.c),N.e.c<N.s.c&&(N.s.c=N.e.c),y["!fullref"]=y["!ref"],y["!ref"]=Cn(N))}return C.length>0&&(y["!merges"]=C),R.length>0&&(y["!cols"]=R),P.length>0&&(y["!rows"]=P),y}function Gh(e,t,n,r,i,o){if(void 0!==t.v){var a="";switch(t.t){case"b":a=t.v?"1":"0";break;case"d":t=pe(t),t.z=t.z||j._table[14],t.v=ie(fe(t.v)),t.t="n";break;case"n":case"e":a=""+t.v;break;default:a=t.v;break}var s={r:n,c:r};switch(s.s=yf(i.cellXfs,t,i),t.l&&o["!links"].push([xn(s),t.l]),t.c&&o["!comments"].push([xn(s),t.c]),t.t){case"s":case"str":return void(i.bookSST?(a=mf(i.Strings,t.v,i.revStrings),s.t="s",s.v=a,on(e,"BrtCellIsst",hh(t,s))):(s.t="str",on(e,"BrtCellSt",bh(t,s))));case"n":return void(t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?on(e,"BrtCellRk",vh(t,s)):on(e,"BrtCellReal",mh(t,s)));case"b":return s.t="b",void on(e,"BrtCellBool",uh(t,s));case"e":s.t="e";break}on(e,"BrtCellBlank",lh(t,s))}}function Vh(e,t,n,r){var i,o=En(t["!ref"]||"A1"),a="",s=[];on(e,"BrtBeginSheetData");var l=Array.isArray(t),c=o.e.r;t["!rows"]&&(c=Math.max(o.e.r,t["!rows"].length-1));for(var u=o.s.r;u<=c;++u)if(a=hn(u),th(e,t,o,u),u<=o.e.r)for(var d=o.s.c;d<=o.e.c;++d){u===o.s.r&&(s[d]=vn(d)),i=s[d]+a;var f=l?(t[u]||[])[d]:t[i];f&&Gh(e,f,u,d,r,t)}on(e,"BrtEndSheetData")}function Wh(e,t){t&&t["!merges"]&&(on(e,"BrtBeginMergeCells",kh(t["!merges"].length)),t["!merges"].forEach((function(t){on(e,"BrtMergeCell",Eh(t))})),on(e,"BrtEndMergeCells"))}function Hh(e,t){t&&t["!cols"]&&(on(e,"BrtBeginColInfos"),t["!cols"].forEach((function(t,n){t&&on(e,"BrtColInfo",Ph(n,t))})),on(e,"BrtEndColInfos"))}function $h(e,t){t&&t["!ref"]&&(on(e,"BrtBeginCellIgnoreECs"),on(e,"BrtCellIgnoreEC",Fh(En(t["!ref"]))),on(e,"BrtEndCellIgnoreECs"))}function Kh(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=Xr(n,-1,t[1].Target.replace(/#.*$/,""),Gr.HLINK);on(e,"BrtHLink",Th(t,r))}})),delete t["!links"]}function Xh(e,t,n,r){if(t["!comments"].length>0){var i=Xr(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Gr.VML);on(e,"BrtLegacyDrawing",Kn("rId"+i)),t["!legacy"]=i}}function Yh(e,t,n,r){if(t["!autofilter"]){var i=t["!autofilter"],o="string"===typeof i.ref?i.ref:Cn(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,s=Sn(o);s.s.r==s.e.r&&(s.e.r=Sn(t["!ref"]).e.r,o=Cn(s));for(var l=0;l<a.length;++l){var c=a[l];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==r){c.Ref="'"+n.SheetNames[r]+"'!"+o;break}}l==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),on(e,"BrtBeginAFilter",er(En(o))),on(e,"BrtEndAFilter")}}function Jh(e,t,n){on(e,"BrtBeginWsViews"),on(e,"BrtBeginWsView",jh(t,n)),on(e,"BrtEndWsView"),on(e,"BrtEndWsViews")}function Qh(){}function Zh(e,t){t["!protect"]&&on(e,"BrtSheetProtection",Bh(t["!protect"]))}function ep(e,t,n,r){var i=rn(),o=n.SheetNames[e],a=n.Sheets[o]||{},s=o;try{n&&n.Workbook&&(s=n.Workbook.Sheets[e].CodeName||s)}catch(uv){}var l=En(a["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],on(i,"BrtBeginSheet"),n.vbaraw&&on(i,"BrtWsProp",ah(s)),on(i,"BrtWsDim",rh(l)),Jh(i,a,n.Workbook),Qh(i,a),Hh(i,a,e,t,n),Vh(i,a,e,t,n),Zh(i,a),Yh(i,a,n,e),Wh(i,a),Kh(i,a,r),a["!margins"]&&on(i,"BrtMargins",Lh(a["!margins"])),t&&!t.ignoreEC&&void 0!=t.ignoreEC||$h(i,a),Xh(i,a,e,r),on(i,"BrtEndSheet"),i.end()}function tp(e){var t,n=[],r=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=Ue((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}function np(e,t,n,r,i,o){var a=o||{"!type":"chart"};if(!e)return o;var s=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=tp(e);u.s.r=u.s.c=0,u.e.c=s,c=vn(s),t[0].forEach((function(e,n){a[c+hn(n)]={t:"n",v:e,z:t[1]},l=n})),u.e.r<l&&(u.e.r=l),++s})),s>0&&(a["!ref"]=Cn(u)),a}Gr.CHART="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",Gr.CHARTEX="http://schemas.microsoft.com/office/2014/relationships/chartEx",Gr.CS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";ht("chartsheet",null,{xmlns:gt.main[0],"xmlns:r":gt.r});function rp(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o,a={"!type":"chart","!drawel":null,"!rel":""},s=e.match(If);return s&&Mf(s[0],a,i,n),(o=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=o[1]),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}function ip(e,t){e.l+=10;var n=Pn(e,t-10);return{name:n}}function op(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o={"!type":"chart","!drawel":null,"!rel":""},a=[],s=!1;return nn(e,(function(e,r,l){switch(l){case 550:o["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(r);break;case 38:a.pop();break;default:if((r||"").indexOf("Begin")>0)a.push(r);else if((r||"").indexOf("End")>0)a.pop();else if(!s||t.WTF)throw new Error("Unexpected record "+l+" "+r)}}),t),r["!id"][o["!rel"]]&&(o["!drawel"]=r["!id"][o["!rel"]]),o}var ap=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],sp=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],lp=[],cp=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function up(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var o=t[i];if(null==r[o[0]])r[o[0]]=o[1];else switch(o[2]){case"bool":"string"==typeof r[o[0]]&&(r[o[0]]=Qe(r[o[0]]));break;case"int":"string"==typeof r[o[0]]&&(r[o[0]]=parseInt(r[o[0]],10));break}}}function dp(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=Qe(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10));break}}}function fp(e){dp(e.WBProps,ap),dp(e.CalcPr,cp),up(e.WBView,sp),up(e.Sheets,lp),hf.date1904=Qe(e.WBProps.date1904)}function hp(e){return e.Workbook&&e.Workbook.WBProps&&Qe(e.Workbook.WBProps.date1904)?"true":"false"}var pp="][*?/\\".split("");function mp(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return pp.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function gp(e,t,n){e.forEach((function(r,i){mp(r);for(var o=0;o<i;++o)if(r==e[o])throw new Error("Duplicate Sheet Name: "+r);if(n){var a=t&&t[i]&&t[i].CodeName||r;if(95==a.charCodeAt(0)&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}}))}function vp(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];gp(e.SheetNames,t,!!e.vbaraw);for(var n=0;n<e.SheetNames.length;++n)_f(e.Sheets[e.SheetNames[n]],e.SheetNames[n],n)}var yp=/<\w+:workbook/;function bp(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",o={},a=0;if(e.replace(Le,(function(s,l){var c=Fe(s);switch(Be(c[0])){case"<?xml":break;case"<workbook":s.match(yp)&&(i="xmlns"+s.match(/<(\w+):/)[1]),n.xmlns=c[i];break;case"</workbook>":break;case"<fileVersion":delete c[0],n.AppVersion=c;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":ap.forEach((function(e){if(null!=c[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=Qe(c[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:n.WBProps[e[0]]=c[e[0]]}})),c.codeName&&(n.WBProps.CodeName=Ze(c.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete c[0],n.WBView.push(c);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(c.state){case"hidden":c.Hidden=1;break;case"veryHidden":c.Hidden=2;break;default:c.Hidden=0}delete c.state,c.name=Ue(Ze(c.name)),delete c[0],n.Sheets.push(c);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":r=!0;break;case"</definedNames>":r=!1;break;case"<definedName":o={},o.Name=Ze(c.name),c.comment&&(o.Comment=c.comment),c.localSheetId&&(o.Sheet=+c.localSheetId),Qe(c.hidden||"0")&&(o.Hidden=!0),a=l+s.length;break;case"</definedName>":o.Ref=Ue(Ze(e.slice(a,l))),n.Names.push(o);break;case"<definedName/>":break;case"<calcPr":delete c[0],n.CalcPr=c;break;case"<calcPr/>":delete c[0],n.CalcPr=c;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":r=!0;break;case"</ext>":r=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":r=!0;break;case"</AlternateContent>":r=!1;break;case"<revisionPtr":break;default:if(!r&&t.WTF)throw new Error("unrecognized "+c[0]+" in workbook")}return s})),-1===gt.main.indexOf(n.xmlns))throw new Error("Unknown Namespace: "+n.xmlns);return fp(n),n}var _p=ht("workbook",null,{xmlns:gt.main[0],"xmlns:r":gt.r});function wp(e){var t=[Me];t[t.length]=_p;var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(ap.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=ht("workbookPr",null,r);var i=e.Workbook&&e.Workbook.Sheets||[],o=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",o=0;o!=e.SheetNames.length;++o){if(!i[o])break;if(!i[o].Hidden)break}o==e.SheetNames.length&&(o=0),t[t.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",o=0;o!=e.SheetNames.length;++o){var a={name:We(e.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),i[o])switch(i[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}t[t.length]=ht("sheet",null,a)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=ht("definedName",We(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function xp(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=$n(e,t-8),n.name=Pn(e),n}function Sp(e,t){return t||(t=tn(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Kn(e.strRelID,t),Mn(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function Cp(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?Pn(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}function Ep(e,t){t||(t=tn(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),Gn(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function kp(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function Op(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=Hn(e),a=tf(e,0,n),s=Vn(e);e.l=r;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function Tp(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var o=[],a=[[]];return a.SheetNames=[],a.XTI=[],nn(e,(function(e,s,l){switch(l){case 156:a.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Gd(e.Ptg,null,null,a,t),delete t.SID,delete e.Ptg,o.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:a[0].length?a.push([l,e]):a[0]=[l,e],a[a.length-1].XTI=[];break;case 362:0===a.length&&(a[0]=[],a[0].XTI=[]),a[a.length-1].XTI=a[a.length-1].XTI.concat(e),a.XTI=a.XTI.concat(e);break;case 361:break;case 3072:case 3073:case 2071:case 534:case 677:case 158:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(s),i=!0;break;case 36:r.pop(),i=!1;break;case 37:r.push(s),i=!0;break;case 38:r.pop(),i=!1;break;case 16:break;default:if((s||"").indexOf("Begin")>0);else if((s||"").indexOf("End")>0);else if(!i||t.WTF&&"BrtACBegin"!=r[r.length-1]&&"BrtFRTBegin"!=r[r.length-1])throw new Error("Unexpected record "+l+" "+s)}}),t),fp(n),n.Names=o,n.supbooks=a,n}function Ip(e,t){on(e,"BrtBeginBundleShs");for(var n=0;n!=t.SheetNames.length;++n){var r=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,i={Hidden:r,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]};on(e,"BrtBundleSh",Sp(i))}on(e,"BrtEndBundleShs")}function Ap(e,n){n||(n=tn(127));for(var r=0;4!=r;++r)n.write_shift(4,0);return Mn("SheetJS",n),Mn(t.version,n),Mn(t.version,n),Mn("7262",n),n.length=n.l,n.length>n.l?n.slice(0,n.l):n}function Rp(e,t){t||(t=tn(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var n=120;return t.write_shift(1,n),t.length>t.l?t.slice(0,t.l):t}function Pp(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n=t.Workbook.Sheets,r=0,i=-1,o=-1;r<n.length;++r)!n[r]||!n[r].Hidden&&-1==i?i=r:1==n[r].Hidden&&-1==o&&(o=r);o>i||(on(e,"BrtBeginBookViews"),on(e,"BrtBookView",Rp(i)),on(e,"BrtEndBookViews"))}}function Mp(e,t){var n=rn();return on(n,"BrtBeginBook"),on(n,"BrtFileVersion",Ap()),on(n,"BrtWbProp",Ep(e.Workbook&&e.Workbook.WBProps||null)),Pp(n,e,t),Ip(n,e,t),on(n,"BrtEndBook"),n.end()}function Np(e,t,n){return".bin"===t.slice(-4)?Tp(e,n):bp(e,n)}function Lp(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Uh(e,r,n,i,o,a,s):Rf(e,r,n,i,o,a,s)}function Dp(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?op(e,r,n,i,o,a,s):rp(e,r,n,i,o,a,s)}function jp(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?ou(e,r,n,i,o,a,s):au(e,r,n,i,o,a,s)}function Fp(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?ru(e,r,n,i,o,a,s):iu(e,r,n,i,o,a,s)}function Bp(e,t,n,r){return".bin"===t.slice(-4)?ic(e,n,r):ql(e,n,r)}function qp(e,t,n){return Ec(e,n)}function zp(e,t,n){return".bin"===t.slice(-4)?js(e,n):Ms(e,n)}function Up(e,t,n){return".bin"===t.slice(-4)?Jc(e,n):Vc(e,n)}function Gp(e,t,n){return".bin"===t.slice(-4)?jc(e,t,n):Lc(e,t,n)}function Vp(e,t,n,r){return".bin"===n.slice(-4)?Bc(e,t,n,r):Fc(e,t,n,r)}function Wp(e,t,n){return(".bin"===t.slice(-4)?Mp:wp)(e,n)}function Hp(e,t,n,r,i){return(".bin"===t.slice(-4)?ep:Qf)(e,n,r,i)}function $p(e,t,n){return(".bin"===t.slice(-4)?mc:Ul)(e,n)}function Kp(e,t,n){return(".bin"===t.slice(-4)?qs:Ls)(e,n)}function Xp(e,t,n){return(".bin"===t.slice(-4)?Qc:Hc)(e,n)}var Yp=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Jp=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Qp(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var i,o,a,s,l=e.match(Yp);if(l)for(s=0;s!=l.length;++s)i=l[s].match(Jp),-1===(o=i[1].indexOf(":"))?r[i[1]]=i[2].slice(1,i[2].length-1):(a="xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(o+1),r[a]=i[2].slice(1,i[2].length-1));return r}function Zp(e){var t=e.split(/\s+/),n={};if(1===t.length)return n;var r,i,o,a,s=e.match(Yp);if(s)for(a=0;a!=s.length;++a)r=s[a].match(Jp),-1===(i=r[1].indexOf(":"))?n[r[1]]=r[2].slice(1,r[2].length-1):(o="xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(i+1),n[o]=r[2].slice(1,r[2].length-1));return n}function em(e,t){var n=B[e]||Ue(e);return"General"===n?j._general(t):j.format(n,t)}function tm(e,t,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Qe(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=fe(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[Ue(t)]=i}function nm(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||Mr[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=j._general_int(e.v):e.w=j._general_num(e.v):e.w=j._general(e.v):e.w=em(t||"General",e.v)}catch(uv){if(n.WTF)throw uv}try{var r=B[t]||t||"General";if(n.cellNF&&(e.z=r),n.cellDates&&"n"==e.t&&j.is_date(r)){var i=j.parse_date_code(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(uv){if(n.WTF)throw uv}}}function rm(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Al[r.Pattern]||r.Pattern)}e[t.ID]=t}function im(e,t,n,r,i,o,a,s,l,c){var u="General",d=r.StyleID,f={};c=c||{};var h=[],p=0;void 0===d&&s&&(d=s.StyleID),void 0===d&&a&&(d=a.StyleID);while(void 0!==o[d]){if(o[d].nf&&(u=o[d].nf),o[d].Interior&&h.push(o[d].Interior),!o[d].Parent)break;d=o[d].Parent}switch(n.Type){case"Boolean":r.t="b",r.v=Qe(e);break;case"String":r.t="s",r.r=Ye(Ue(e)),r.v=e.indexOf("<")>-1?Ue(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(fe(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!==r.v?r.v=Ue(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=Nr[e],!1!==c.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=Ye(t||e));break}if(nm(r,u,c),!1!==c.cellFormula)if(r.Formula){var m=Ue(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=su(m,i),delete r.Formula,"RC"==r.ArrayRange?r.F=su("RC:RC",i):r.ArrayRange&&(r.F=su(r.ArrayRange,i),l.push([En(r.F),r.F]))}else for(p=0;p<l.length;++p)i.r>=l[p][0].s.r&&i.r<=l[p][0].e.r&&i.c>=l[p][0].s.c&&i.c<=l[p][0].e.c&&(r.F=l[p][1]);c.cellStyles&&(h.forEach((function(e){!f.patternType&&e.patternType&&(f.patternType=e.patternType)})),r.s=f),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function om(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function am(e){if(C&&i.isBuffer(e))return e.toString("utf8");if("string"===typeof e)return e;if("undefined"!==typeof Uint8Array&&e instanceof Uint8Array)return Ze(R(M(e)));throw new Error("Bad input format: expected Buffer or string")}var sm=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm;function lm(e,t){var n=t||{};F(j);var r=y(am(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r="undefined"!==typeof cptable?cptable.utils.decode(65001,m(r)):Ze(r));var i,o=r.slice(0,1024).toLowerCase(),a=!1;if(-1==o.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){o.indexOf("<"+e)>=0&&(a=!0)})),a)return tg.to_workbook(r,n);var s,l=[];null!=w&&null==n.dense&&(n.dense=w);var c,u={},d=[],f=n.dense?[]:{},h="",p={},g={},v=Qp('<Data ss:Type="String">'),b=0,_=0,x=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},C={},E={},k="",O=0,T=[],I={},A={},R=0,P=[],M=[],N={},L=[],D=!1,q=[],z=[],U={},G=0,V=0,W={Sheets:[],WBProps:{date1904:!1}},H={};sm.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/gm,"");var $="";while(i=sm.exec(r))switch(i[3]=($=i[3]).toLowerCase()){case"data":if("data"==$){if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&l.push([i[3],!0]);break}if(l[l.length-1][1])break;"/"===i[1]?im(r.slice(b,i.index),k,v,"comment"==l[l.length-1][0]?N:p,{c:_,r:x},C,L[_],g,q,n):(k="",v=Qp(i[0]),b=i.index+i[0].length);break;case"cell":if("/"===i[1])if(M.length>0&&(p.c=M),(!n.sheetRows||n.sheetRows>x)&&void 0!==p.v&&(n.dense?(f[x]||(f[x]=[]),f[x][_]=p):f[vn(_)+hn(x)]=p),p.HRef&&(p.l={Target:p.HRef},p.HRefScreenTip&&(p.l.Tooltip=p.HRefScreenTip),delete p.HRef,delete p.HRefScreenTip),(p.MergeAcross||p.MergeDown)&&(G=_+(0|parseInt(p.MergeAcross,10)),V=x+(0|parseInt(p.MergeDown,10)),T.push({s:{c:_,r:x},e:{c:G,r:V}})),n.sheetStubs)if(p.MergeAcross||p.MergeDown){for(var K=_;K<=G;++K)for(var X=x;X<=V;++X)(K>_||X>x)&&(n.dense?(f[X]||(f[X]=[]),f[X][K]={t:"z"}):f[vn(K)+hn(X)]={t:"z"});_=G+1}else++_;else p.MergeAcross?_=G+1:++_;else p=Zp(i[0]),p.Index&&(_=+p.Index-1),_<S.s.c&&(S.s.c=_),_>S.e.c&&(S.e.c=_),"/>"===i[0].slice(-2)&&++_,M=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(x<S.s.r&&(S.s.r=x),x>S.e.r&&(S.e.r=x),"/>"===i[0].slice(-2)&&(g=Qp(i[0]),g.Index&&(x=+g.Index-1)),_=0,++x):(g=Qp(i[0]),g.Index&&(x=+g.Index-1),U={},("0"==g.AutoFitHeight||g.Height)&&(U.hpx=parseInt(g.Height,10),U.hpt=Tl(U.hpx),z[x]=U),"1"==g.Hidden&&(U.hidden=!0,z[x]=U));break;case"worksheet":if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"));d.push(h),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(f["!ref"]=Cn(S),n.sheetRows&&n.sheetRows<=S.e.r&&(f["!fullref"]=f["!ref"],S.e.r=n.sheetRows-1,f["!ref"]=Cn(S))),T.length&&(f["!merges"]=T),L.length>0&&(f["!cols"]=L),z.length>0&&(f["!rows"]=z),u[h]=f}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=_=0,l.push([i[3],!1]),s=Qp(i[0]),h=Ue(s.Name),f=n.dense?[]:{},T=[],q=[],z=[],H={name:h,Hidden:0},W.Sheets.push(H);break;case"table":if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"))}else{if("/>"==i[0].slice(-2))break;Qp(i[0]),l.push([i[3],!1]),L=[],D=!1}break;case"style":"/"===i[1]?rm(C,E,n):E=Qp(i[0]);break;case"numberformat":E.nf=Ue(Qp(i[0]).Format||"General"),B[E.nf]&&(E.nf=B[E.nf]);for(var Y=0;392!=Y;++Y)if(j._table[Y]==E.nf)break;if(392==Y)for(Y=57;392!=Y;++Y)if(null==j._table[Y]){j.load(E.nf,Y);break}break;case"column":if("table"!==l[l.length-1][0])break;if(c=Qp(i[0]),c.Hidden&&(c.hidden=!0,delete c.Hidden),c.Width&&(c.wpx=parseInt(c.Width,10)),!D&&c.wpx>10){D=!0,bl=gl;for(var J=0;J<L.length;++J)L[J]&&El(L[J])}D&&El(c),L[c.Index-1||L.length]=c;for(var Q=0;Q<+c.Span;++Q)L[L.length]=pe(c);break;case"namedrange":if("/"===i[1])break;W.Names||(W.Names=[]);var Z=Fe(i[0]),ee={Name:Z.Name,Ref:su(Z.RefersTo.slice(1),{r:0,c:0})};W.Sheets.length>0&&(ee.Sheet=W.Sheets.length-1),W.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?k+=r.slice(O,i.index):O=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;E.Interior=Qp(i[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?wi(I,$,r.slice(R,i.index)):R=i.index+i[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"))}else l.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"));om(N),M.push(N)}else l.push([i[3],!1]),s=Qp(i[0]),N={a:s.Author};break;case"autofilter":if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var te=Qp(i[0]);f["!autofilter"]={ref:su(te.Range).replace(/\$/g,"")},l.push([i[3],!0])}break;case"name":break;case"datavalidation":if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&l.push([i[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((s=l.pop())[0]!==i[3])throw new Error("Bad state: "+s.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&l.push([i[3],!0]);break;default:if(0==l.length&&"document"==i[3])return cg(r,n);if(0==l.length&&"uof"==i[3])return cg(r,n);var ne=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ne=!1}break;case"componentoptions":switch(i[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ne=!1}break;case"excelworkbook":switch(i[3]){case"date1904":W.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ne=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":break;case"height":break;case"width":break;default:ne=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(R,i.index)){case"SheetHidden":H.Hidden=1;break;case"SheetVeryHidden":H.Hidden=2;break}else R=i.index+i[0].length;break;case"header":f["!margins"]||vf(f["!margins"]={},"xlml"),f["!margins"].header=Fe(i[0]).Margin;break;case"footer":f["!margins"]||vf(f["!margins"]={},"xlml"),f["!margins"].footer=Fe(i[0]).Margin;break;case"pagemargins":var re=Fe(i[0]);f["!margins"]||vf(f["!margins"]={},"xlml"),re.Top&&(f["!margins"].top=re.Top),re.Left&&(f["!margins"].left=re.Left),re.Right&&(f["!margins"].right=re.Right),re.Bottom&&(f["!margins"].bottom=re.Bottom);break;case"displayrighttoleft":W.Views||(W.Views=[]),W.Views[0]||(W.Views[0]={}),W.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ne=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ne=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ne=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ne=!1}break;case"querytable":switch(i[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ne=!1}break;case"datavalidation":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ne=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ne=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:ne=!1}break;case"smarttags":break;default:ne=!1;break}if(ne)break;if(i[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+l.join("|");if("customdocumentproperties"===l[l.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?tm(A,$,P,r.slice(R,i.index)):(P=i,R=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+l.join("|")}var ie={};return n.bookSheets||n.bookProps||(ie.Sheets=u),ie.SheetNames=d,ie.Workbook=W,ie.SSF=j.get_table(),ie.Props=I,ie.Custprops=A,ie}function cm(e,t){switch(Eg(t=t||{}),t.type||"base64"){case"base64":return lm(S.decode(e),t);case"binary":case"buffer":case"file":return lm(e,t);case"array":return lm(R(e),t)}}function um(e,t){var n=[];return e.Props&&n.push(xi(e.Props,t)),e.Custprops&&n.push(Si(e.Props,e.Custprops,t)),n.join("")}function dm(){return""}function fm(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(ht("NumberFormat",null,{"ss:Format":We(j._table[e.numFmtId])}));var i={"ss:ID":"s"+(21+t)};n.push(ht("Style",r.join(""),i))})),ht("Styles",n.join(""))}function hm(e){return ht("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+cu(e.Ref,{r:0,c:0})})}function pm(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r<t.length;++r){var i=t[r];null==i.Sheet&&(i.Name.match(/^_xlfn\./)||n.push(hm(i)))}return ht("Names",n.join(""))}function mm(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,o=[],a=0;a<i.length;++a){var s=i[a];s.Sheet==n&&(s.Name.match(/^_xlfn\./)||o.push(hm(s)))}return o.join("")}function gm(e,t,n,r){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(ht("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(ht("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(ht("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(ht("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o<n;++o)if(r.Workbook.Sheets[o]&&!r.Workbook.Sheets[o].Hidden)break;o==n&&i.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(dt("ProtectContents","True")),e["!protect"].objects&&i.push(dt("ProtectObjects","True")),e["!protect"].scenarios&&i.push(dt("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||i.push(dt("EnableSelection","UnlockedCells")):i.push(dt("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&i.push("<"+t[1]+"/>")}))),0==i.length?"":ht("WorksheetOptions",i.join(""),{xmlns:vt.x})}function vm(e){return e.map((function(e){var t=Je(e.t||""),n=ht("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return ht("Comment",n,{"ss:Author":e.a})})).join("")}function ym(e,t,n,r,i,o,a){if(!e||void 0==e.v&&void 0==e.f)return"";var s={};if(e.f&&(s["ss:Formula"]="="+We(cu(e.f,a))),e.F&&e.F.slice(0,t.length)==t){var l=wn(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==a.r?"":"["+(l.r-a.r)+"]")+"C"+(l.c==a.c?"":"["+(l.c-a.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=We(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=We(e.l.Tooltip))),n["!merges"])for(var c=n["!merges"],u=0;u!=c.length;++u)c[u].s.c==a.c&&c[u].s.r==a.r&&(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var d="",f="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":d="Number",f=String(e.v);break;case"b":d="Boolean",f=e.v?"1":"0";break;case"e":d="Error",f=Mr[e.v];break;case"d":d="DateTime",f=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||j._table[14]);break;case"s":d="String",f=Xe(e.v||"");break}var h=yf(r.cellXfs,e,r);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=a.c+1;var p=null!=e.v?f:"",m="z"==e.t?"":'<Data ss:Type="'+d+'">'+p+"</Data>";return(e.c||[]).length>0&&(m+=vm(e.c)),ht("Cell",m,s)}function bm(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Il(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function _m(e,t,n,r){if(!e["!ref"])return"";var i=En(e["!ref"]),o=e["!merges"]||[],a=0,s=[];e["!cols"]&&e["!cols"].forEach((function(e,t){El(e);var n=!!e.width,r=gf(t,e),i={"ss:Index":t+1};n&&(i["ss:Width"]=_l(r.width)),e.hidden&&(i["ss:Hidden"]="1"),s.push(ht("Column",null,i))}));for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var u=[bm(c,(e["!rows"]||[])[c])],d=i.s.c;d<=i.e.c;++d){var f=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>d)&&!(o[a].s.r>c)&&!(o[a].e.c<d)&&!(o[a].e.r<c)){o[a].s.c==d&&o[a].s.r==c||(f=!0);break}if(!f){var h={r:c,c:d},p=xn(h),m=l?(e[c]||[])[d]:e[p];u.push(ym(m,p,e,t,n,r,h))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}function wm(e,t,n){var r=[],i=n.SheetNames[e],o=n.Sheets[i],a=o?mm(o,t,e,n):"";return a.length>0&&r.push("<Names>"+a+"</Names>"),a=o?_m(o,t,e,n):"",a.length>0&&r.push("<Table>"+a+"</Table>"),r.push(gm(o,t,e,n)),r.join("")}function xm(e,t){t||(t={}),e.SSF||(e.SSF=j.get_table()),e.SSF&&(F(j),j.load_table(e.SSF),t.revssf=te(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],yf(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(um(e,t)),n.push(dm(e,t)),n.push(""),n.push("");for(var r=0;r<e.SheetNames.length;++r)n.push(ht("Worksheet",wm(r,t,e),{"ss:Name":We(e.SheetNames[r])}));return n[2]=fm(e,t),n[3]=pm(e,t),Me+ht("Workbook",n.join(""),{xmlns:vt.ss,"xmlns:o":vt.o,"xmlns:x":vt.x,"xmlns:ss":vt.ss,"xmlns:dt":vt.dt,"xmlns:html":vt.html})}function Sm(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=lr(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4?t:(r=n.read_shift(4),1907505652!==r?t:(t.UnicodeClipboardFormat=cr(n),r=n.read_shift(4),0==r||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr"))))))}function Cm(e,t,n,r){var i=n,o=[],a=t.slice(t.l,t.l+i);if(r&&r.enc&&r.enc.insitu)switch(e.n){case"BOF":case"FilePass":case"FileLock":case"InterfaceHdr":case"RRDInfo":case"RRDHead":case"UsrExcl":break;default:if(0===a.length)break;r.enc.insitu(a)}o.push(a),t.l+=i;var s=Lm[Ut(t,t.l)],l=0;while(null!=s&&"Continue"===s.n.slice(0,8))i=Ut(t,t.l+2),l=t.l+4,"ContinueFrt"==s.n?l+=4:"ContinueFrt"==s.n.slice(0,11)&&(l+=12),o.push(t.slice(l,t.l+4+i)),t.l+=4+i,s=Lm[Ut(t,t.l)];var c=N(o);Zt(c,0);var u=0;c.lens=[];for(var d=0;d<o.length;++d)c.lens.push(u),u+=o[d].length;return e.f(c,c.length,r)}function Em(e,t,n){if("z"!==e.t&&e.XF){var r=0;try{r=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=j._table[r])}catch(uv){if(t.WTF)throw uv}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Mr[e.v]:0===r||"General"==r?"n"===e.t?(0|e.v)===e.v?e.w=j._general_int(e.v):e.w=j._general_num(e.v):e.w=j._general(e.v):e.w=j.format(r,e.v,{date1904:!!n})}catch(uv){if(t.WTF)throw uv}if(t.cellDates&&r&&"n"==e.t&&j.is_date(j._table[r]||String(r))){var i=j.parse_date_code(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function km(e,t,n){return{v:e,ixfe:t,t:n}}function Om(e,t){var n={opts:{}},r={};null!=w&&null==t.dense&&(t.dense=w);var i,o,a,s,l,c,u,d,f=t.dense?[]:{},p={},m={},g=null,v=[],y="",b={},_="",x={},S=[],C=!0,E=[],k=[],O={Sheets:[],WBProps:{date1904:!1},Views:[{}]},T={},I=function(e){return e<8?Pr[e]:e<64&&k[e-8]||Pr[e]},A=function(e,t,n){var r,i=t.XF.data;i&&i.patternType&&n&&n.cellStyles&&(t.s={},t.s.patternType=i.patternType,(r=fl(I(i.icvFore)))&&(t.s.fgColor={rgb:r}),(r=fl(I(i.icvBack)))&&(t.s.bgColor={rgb:r}))},R=function(e,t,n){if(!(U>1)&&(n.sheetRows&&e.r>=n.sheetRows&&(C=!1),C)){if(n.cellStyles&&t.XF&&t.XF.data&&A(e,t,n),delete t.ixfe,delete t.XF,i=e,_=xn(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.r<m.s.r&&(m.s.r=e.r),e.c<m.s.c&&(m.s.c=e.c),e.r+1>m.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),n.cellFormula&&t.f)for(var r=0;r<S.length;++r)if(!(S[r][0].s.c>e.c||S[r][0].s.r>e.r)&&!(S[r][0].e.c<e.c||S[r][0].e.r<e.r)){t.F=Cn(S[r][0]),S[r][0].s.c==e.c&&S[r][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Gd(S[r][1],m,e,B,P));break}n.dense?(f[e.r]||(f[e.r]=[]),f[e.r][e.c]=t):f[_]=t}},P={enc:!1,sbcch:0,snames:[],sharedf:x,arrayf:S,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(P.password=t.password);var M=[],N=[],L=[],D=[],F=!1,B=[];B.SheetNames=P.snames,B.sharedf=P.sharedf,B.arrayf=P.arrayf,B.names=[],B.XTI=[];var q,z="",U=0,G=0,V=[],W=[];P.codepage=1200,h(1200);var H=!1;while(e.l<e.length-1){var $=e.l,K=e.read_shift(2);if(0===K&&"EOF"===z)break;var X=e.l===e.length?0:e.read_shift(2),Y=Lm[K];if(Y&&Y.f){if(t.bookSheets&&"BoundSheet8"===z&&"BoundSheet8"!==Y.n)break;if(z=Y.n,2===Y.r||12==Y.r){var J=e.read_shift(2);if(X-=2,!P.enc&&J!==K&&((255&J)<<8|J>>8)!==K)throw new Error("rt mismatch: "+J+"!="+K);12==Y.r&&(e.l+=10,X-=10)}var Z={};Z="EOF"===Y.n?Y.f(e,X,P):Cm(Y,e,X,P);var ee=Y.n;if(0==U&&"BOF"!=ee)continue;switch(ee){case"Date1904":n.opts.Date1904=O.WBProps.date1904=Z;break;case"WriteProtect":n.opts.WriteProtect=!0;break;case"FilePass":if(P.enc||(e.l=0),P.enc=Z,!t.password)throw new Error("File is password-protected");if(null==Z.valid)throw new Error("Encryption scheme unsupported");if(!Z.valid)throw new Error("Password is incorrect");break;case"WriteAccess":P.lastuser=Z;break;case"FileSharing":break;case"CodePage":var te=Number(Z);switch(te){case 21010:te=1200;break;case 32768:te=1e4;break;case 32769:te=1252;break}h(P.codepage=te),H=!0;break;case"RRTabId":P.rrtabid=Z;break;case"WinProtect":P.winlocked=Z;break;case"Template":break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":break;case"RefreshAll":case"CalcCount":case"CalcDelta":case"CalcIter":case"CalcMode":case"CalcPrecision":case"CalcSaveRecalc":n.opts[ee]=Z;break;case"CalcRefMode":P.CalcRefMode=Z;break;case"Uncalced":break;case"ForceFullCalculation":n.opts.FullCalc=Z;break;case"WsBool":Z.fDialog&&(f["!type"]="dialog");break;case"XF":E.push(Z);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":B.push([Z]),B[B.length-1].XTI=[];break;case"ExternName":B[B.length-1].push(Z);break;case"Index":break;case"Lbl":q={Name:Z.Name,Ref:Gd(Z.rgce,m,null,B,P)},Z.itab>0&&(q.Sheet=Z.itab-1),B.names.push(q),B[0]||(B[0]=[],B[0].XTI=[]),B[B.length-1].push(Z),"_xlnm._FilterDatabase"==Z.Name&&Z.itab>0&&Z.rgce&&Z.rgce[0]&&Z.rgce[0][0]&&"PtgArea3d"==Z.rgce[0][0][0]&&(W[Z.itab-1]={ref:Cn(Z.rgce[0][0][1][2])});break;case"ExternCount":P.ExternCount=Z;break;case"ExternSheet":0==B.length&&(B[0]=[],B[0].XTI=[]),B[B.length-1].XTI=B[B.length-1].XTI.concat(Z),B.XTI=B.XTI.concat(Z);break;case"NameCmt":if(P.biff<8)break;null!=q&&(q.Comment=Z[1]);break;case"Protect":f["!protect"]=Z;break;case"Password":0!==Z&&P.WTF&&console.error("Password verifier: "+Z);break;case"Prot4Rev":case"Prot4RevPass":break;case"BoundSheet8":p[Z.pos]=Z,P.snames.push(Z.name);break;case"EOF":if(--U)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,f["!ref"]=Cn(m),t.sheetRows&&t.sheetRows<=m.e.r){var ne=m.e.r;m.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=Cn(m),m.e.r=ne}m.e.r++,m.e.c++}M.length>0&&(f["!merges"]=M),N.length>0&&(f["!objects"]=N),L.length>0&&(f["!cols"]=L),D.length>0&&(f["!rows"]=D),O.Sheets.push(T)}""===y?b=f:r[y]=f,f=t.dense?[]:{};break;case"BOF":if(8===P.biff&&(P.biff={9:2,521:3,1033:4}[K]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Z.BIFFVer]||8),8==P.biff&&0==Z.BIFFVer&&16==Z.dt&&(P.biff=2),U++)break;if(C=!0,f=t.dense?[]:{},P.biff<8&&!H&&(H=!0,h(P.codepage=t.codepage||1252)),P.biff<5){""===y&&(y="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var re={pos:e.l-X,name:y};p[re.pos]=re,P.snames.push(y)}else y=(p[$]||{name:""}).name;32==Z.dt&&(f["!type"]="chart"),64==Z.dt&&(f["!type"]="macro"),M=[],N=[],P.arrayf=S=[],L=[],D=[],0,F=!1,T={Hidden:(p[$]||{hs:0}).hs,name:y};break;case"Number":case"BIFF2NUM":case"BIFF2INT":"chart"==f["!type"]&&(t.dense?(f[Z.r]||[])[Z.c]:f[xn({c:Z.c,r:Z.r})])&&++Z.c,c={ixfe:Z.ixfe,XF:E[Z.ixfe]||{},v:Z.val,t:"n"},G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:Z.c,r:Z.r},c,t);break;case"BoolErr":c={ixfe:Z.ixfe,XF:E[Z.ixfe],v:Z.val,t:Z.t},G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:Z.c,r:Z.r},c,t);break;case"RK":c={ixfe:Z.ixfe,XF:E[Z.ixfe],v:Z.rknum,t:"n"},G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:Z.c,r:Z.r},c,t);break;case"MulRk":for(var ie=Z.c;ie<=Z.C;++ie){var oe=Z.rkrec[ie-Z.c][0];c={ixfe:oe,XF:E[oe],v:Z.rkrec[ie-Z.c][1],t:"n"},G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:ie,r:Z.r},c,t)}break;case"Formula":if("String"==Z.val){g=Z;break}if(c=km(Z.val,Z.cell.ixfe,Z.tt),c.XF=E[c.ixfe],t.cellFormula){var ae=Z.formula;if(ae&&ae[0]&&ae[0][0]&&"PtgExp"==ae[0][0][0]){var se=ae[0][0][1][0],le=ae[0][0][1][1],ce=xn({r:se,c:le});x[ce]?c.f=""+Gd(Z.formula,m,Z.cell,B,P):c.F=((t.dense?(f[se]||[])[le]:f[ce])||{}).F}else c.f=""+Gd(Z.formula,m,Z.cell,B,P)}G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R(Z.cell,c,t),g=Z;break;case"String":if(!g)throw new Error("String record expects Formula");g.val=Z,c=km(Z,g.cell.ixfe,"s"),c.XF=E[c.ixfe],t.cellFormula&&(c.f=""+Gd(g.formula,m,g.cell,B,P)),G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R(g.cell,c,t),g=null;break;case"Array":S.push(Z);var ue=xn(Z[0].s);if(o=t.dense?(f[Z[0].s.r]||[])[Z[0].s.c]:f[ue],t.cellFormula&&o){if(!g)break;if(!ue||!o)break;o.f=""+Gd(Z[1],m,Z[0],B,P),o.F=Cn(Z[0])}break;case"ShrFmla":if(!C)break;if(!t.cellFormula)break;if(_){if(!g)break;x[xn(g.cell)]=Z[0],o=t.dense?(f[g.cell.r]||[])[g.cell.c]:f[xn(g.cell)],(o||{}).f=""+Gd(Z[0],m,i,B,P)}break;case"LabelSst":c=km(v[Z.isst].t,Z.ixfe,"s"),v[Z.isst].h&&(c.h=v[Z.isst].h),c.XF=E[c.ixfe],G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:Z.c,r:Z.r},c,t);break;case"Blank":t.sheetStubs&&(c={ixfe:Z.ixfe,XF:E[Z.ixfe],t:"z"},G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:Z.c,r:Z.r},c,t));break;case"MulBlank":if(t.sheetStubs)for(var de=Z.c;de<=Z.C;++de){var fe=Z.ixfe[de-Z.c];c={ixfe:fe,XF:E[fe],t:"z"},G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:de,r:Z.r},c,t)}break;case"RString":case"Label":case"BIFF2STR":c=km(Z.val,Z.ixfe,"s"),c.XF=E[c.ixfe],G>0&&(c.z=V[c.ixfe>>8&31]),Em(c,t,n.opts.Date1904),R({c:Z.c,r:Z.r},c,t);break;case"Dimensions":1===U&&(m=Z);break;case"SST":v=Z;break;case"Format":if(4==P.biff){V[G++]=Z[1];for(var he=0;he<G+163;++he)if(j._table[he]==Z[1])break;he>=163&&j.load(Z[1],G+163)}else j.load(Z[1],Z[0]);break;case"BIFF2FORMAT":V[G++]=Z;for(var pe=0;pe<G+163;++pe)if(j._table[pe]==Z)break;pe>=163&&j.load(Z,G+163);break;case"MergeCells":M=M.concat(Z);break;case"Obj":N[Z.cmo[0]]=P.lastobj=Z;break;case"TxO":P.lastobj.TxO=Z;break;case"ImData":P.lastobj.ImData=Z;break;case"HLink":for(l=Z[0].s.r;l<=Z[0].e.r;++l)for(s=Z[0].s.c;s<=Z[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[xn({c:s,r:l})],o&&(o.l=Z[1]);break;case"HLinkTooltip":for(l=Z[0].s.r;l<=Z[0].e.r;++l)for(s=Z[0].s.c;s<=Z[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[xn({c:s,r:l})],o&&o.l&&(o.l.Tooltip=Z[1]);break;case"Note":if(P.biff<=5&&P.biff>=2)break;o=t.dense?(f[Z[0].r]||[])[Z[0].c]:f[xn(Z[0])];var me=N[Z[2]];o||(t.dense?(f[Z[0].r]||(f[Z[0].r]=[]),o=f[Z[0].r][Z[0].c]={t:"z"}):o=f[xn(Z[0])]={t:"z"},m.e.r=Math.max(m.e.r,Z[0].r),m.s.r=Math.min(m.s.r,Z[0].r),m.e.c=Math.max(m.e.c,Z[0].c),m.s.c=Math.min(m.s.c,Z[0].c)),o.c||(o.c=[]),a={a:Z[1],t:me.TxO.t},o.c.push(a);break;default:switch(Y.n){case"ClrtClient":break;case"XFExt":Nc(E[Z.ixfe],Z.ext);break;case"DefColWidth":Z;break;case"DefaultRowHeight":Z[1];break;case"ColInfo":if(!P.cellStyles)break;while(Z.e>=Z.s)L[Z.e--]={width:Z.w/256},F||(F=!0,Cl(Z.w/256)),El(L[Z.e+1]);break;case"Row":var ge={};null!=Z.level&&(D[Z.r]=ge,ge.level=Z.level),Z.hidden&&(D[Z.r]=ge,ge.hidden=!0),Z.hpt&&(D[Z.r]=ge,ge.hpt=Z.hpt,ge.hpx=Il(Z.hpt));break;case"LeftMargin":case"RightMargin":case"TopMargin":case"BottomMargin":f["!margins"]||vf(f["!margins"]={}),f["!margins"][ee.slice(0,-6).toLowerCase()]=Z;break;case"Setup":f["!margins"]||vf(f["!margins"]={}),f["!margins"].header=Z.header,f["!margins"].footer=Z.footer;break;case"Window2":Z.RTL&&(O.Views[0].RTL=!0);break;case"Header":break;case"Footer":break;case"HCenter":break;case"VCenter":break;case"Pls":break;case"GCW":break;case"LHRecord":break;case"DBCell":break;case"EntExU2":break;case"SxView":break;case"Sxvd":break;case"SXVI":break;case"SXVDEx":break;case"SxIvd":break;case"SXString":break;case"Sync":break;case"Addin":break;case"SXDI":break;case"SXLI":break;case"SXEx":break;case"QsiSXTag":break;case"Selection":break;case"Feat":break;case"FeatHdr":case"FeatHdr11":break;case"Feature11":case"Feature12":case"List12":break;case"Country":u=Z;break;case"RecalcId":break;case"DxGCol":break;case"Fbi":case"Fbi2":case"GelFrame":break;case"Font":break;case"XFCRC":break;case"Style":break;case"StyleExt":break;case"Palette":k=Z;break;case"Theme":d=Z;break;case"ScenarioProtect":break;case"ObjProtect":break;case"CondFmt12":break;case"Table":break;case"TableStyles":break;case"TableStyle":break;case"TableStyleElement":break;case"SXStreamID":break;case"SXVS":break;case"DConRef":break;case"SXAddl":break;case"DConBin":break;case"DConName":break;case"SXPI":break;case"SxFormat":break;case"SxSelect":break;case"SxRule":break;case"SxFilt":break;case"SxItm":break;case"SxDXF":break;case"ScenMan":break;case"DCon":break;case"CellWatch":break;case"PrintRowCol":break;case"PrintGrid":break;case"PrintSize":break;case"XCT":break;case"CRN":break;case"Scl":break;case"SheetExt":break;case"SheetExtOptional":break;case"ObNoMacros":break;case"ObProj":break;case"CodeName":y?T.CodeName=Z||T.name:O.WBProps.CodeName=Z||"ThisWorkbook";break;case"GUIDTypeLib":break;case"WOpt":break;case"PhoneticInfo":break;case"OleObjectSize":break;case"DXF":case"DXFN":case"DXFN12":case"DXFN12List":case"DXFN12NoCB":break;case"Dv":case"DVal":break;case"BRAI":case"Series":case"SeriesText":break;case"DConn":break;case"DbOrParamQry":break;case"DBQueryExt":break;case"OleDbConn":break;case"ExtString":break;case"IFmtRecord":break;case"CondFmt":case"CF":case"CF12":case"CFEx":break;case"Excel9File":break;case"Units":break;case"InterfaceHdr":case"Mms":case"InterfaceEnd":case"DSF":break;case"BuiltInFnGroupCount":break;case"Window1":case"HideObj":case"GridSet":case"Guts":case"UserBView":case"UserSViewBegin":case"UserSViewEnd":break;case"Pane":break;default:switch(Y.n){case"Dat":case"Begin":case"End":case"StartBlock":case"EndBlock":case"Frame":case"Area":case"Axis":case"AxisLine":case"Tick":break;case"AxesUsed":case"CrtLayout12":case"CrtLayout12A":case"CrtLink":case"CrtLine":case"CrtMlFrt":case"CrtMlFrtContinue":break;case"LineFormat":case"AreaFormat":case"Chart":case"Chart3d":case"Chart3DBarShape":case"ChartFormat":case"ChartFrtInfo":break;case"PlotArea":case"PlotGrowth":break;case"SeriesList":case"SerParent":case"SerAuxTrend":break;case"DataFormat":case"SerToCrt":case"FontX":break;case"CatSerRange":case"AxcExt":case"SerFmt":break;case"ShtProps":break;case"DefaultText":case"Text":case"CatLab":break;case"DataLabExtContents":break;case"Legend":case"LegendException":break;case"Pie":case"Scatter":break;case"PieFormat":case"MarkerFormat":break;case"StartObject":case"EndObject":break;case"AlRuns":case"ObjectLink":break;case"SIIndex":break;case"AttachedLabel":case"YMult":break;case"Line":case"Bar":break;case"Surf":break;case"AxisParent":break;case"Pos":break;case"ValueRange":break;case"SXViewEx9":break;case"SXViewLink":break;case"PivotChartBits":break;case"SBaseRef":break;case"TextPropsStream":break;case"LnExt":break;case"MkrExt":break;case"CrtCoopt":break;case"Qsi":case"Qsif":case"Qsir":case"QsiSXTag":break;case"TxtQry":break;case"FilterMode":break;case"AutoFilter":case"AutoFilterInfo":break;case"AutoFilter12":break;case"DropDownObjIds":break;case"Sort":break;case"SortData":break;case"ShapePropsStream":break;case"MsoDrawing":case"MsoDrawingGroup":case"MsoDrawingSelection":break;case"WebPub":case"AutoWebPub":break;case"HeaderFooter":case"HFPicture":case"PLV":case"HorizontalPageBreaks":case"VerticalPageBreaks":break;case"Backup":case"CompressPictures":case"Compat12":break;case"Continue":case"ContinueFrt12":break;case"FrtFontList":case"FrtWrapper":break;default:switch(Y.n){case"TabIdConf":case"Radar":case"RadarArea":case"DropBar":case"Intl":case"CoordList":case"SerAuxErrBar":break;case"BIFF2FONTCLR":case"BIFF2FMTCNT":case"BIFF2FONTXTRA":break;case"BIFF2XF":case"BIFF3XF":case"BIFF4XF":break;case"BIFF4FMTCNT":case"BIFF2ROW":case"BIFF2WINDOW2":break;case"SCENARIO":case"DConBin":case"PicF":case"DataLabExt":case"Lel":case"BopPop":case"BopPopCustom":case"RealTimeData":case"Name":break;case"LHNGraph":case"FnGroupName":case"AddMenu":case"LPr":break;case"ListObj":case"ListField":break;case"RRSort":break;case"BigName":break;case"ToolbarHdr":case"ToolbarEnd":break;case"DDEObjName":break;case"FRTArchId$":break;default:if(t.WTF)throw"Unrecognized Record "+Y.n}}}}}else e.l+=X}return n.SheetNames=Q(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(n.Sheets=r),n.Sheets&&W.forEach((function(e,t){n.Sheets[n.SheetNames[t]]["!autofilter"]=e})),n.Preamble=b,n.Strings=v,n.SSF=j.get_table(),P.enc&&(n.Encryption=P.enc),d&&(n.Themes=d),n.Metadata={},void 0!==u&&(n.Metadata.Country=u),B.names.length>0&&(O.Names=B.names),n.Workbook=O,n}var Tm={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Im(e,t,n){var r=K.find(e,"!DocumentSummaryInformation");if(r&&r.size>0)try{var i=Wi(r,Sr,Tm.DSI);for(var o in i)t[o]=i[o]}catch(uv){if(n.WTF)throw uv}var a=K.find(e,"!SummaryInformation");if(a&&a.size>0)try{var s=Wi(a,Cr,Tm.SI);for(var l in s)null==t[l]&&(t[l]=s[l])}catch(uv){if(n.WTF)throw uv}t.HeadingPairs&&t.TitlesOfParts&&(di(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}function Am(e,t){var n,r=[],i=[],o=[],a=0;if(e.Props)for(n=Q(e.Props),a=0;a<n.length;++a)(Object.prototype.hasOwnProperty.call(kr,n[a])?r:Object.prototype.hasOwnProperty.call(Or,n[a])?i:o).push([n[a],e.Props[n[a]]]);if(e.Custprops)for(n=Q(e.Custprops),a=0;a<n.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},n[a])||(Object.prototype.hasOwnProperty.call(kr,n[a])?r:Object.prototype.hasOwnProperty.call(Or,n[a])?i:o).push([n[a],e.Custprops[n[a]]]);var s=[];for(a=0;a<o.length;++a)Ui.indexOf(o[a][0])>-1||null!=o[a][1]&&s.push(o[a]);i.length&&K.utils.cfb_add(t,"/SummaryInformation",Hi(i,Tm.SI,Or,Cr)),(r.length||s.length)&&K.utils.cfb_add(t,"/DocumentSummaryInformation",Hi(r,Tm.DSI,kr,Sr,s.length?s:null,Tm.UDI))}function Rm(e,t){var n,r,i,o;if(t||(t={}),Eg(t),p(),t.codepage&&d(t.codepage),e.FullPaths){if(K.find(e,"/encryption"))throw new Error("File is password-protected");n=K.find(e,"!CompObj"),r=K.find(e,"/Workbook")||K.find(e,"/Book")}else{switch(t.type){case"base64":e=I(S.decode(e));break;case"binary":e=I(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Zt(e,0),r={content:e}}if(n&&Sm(n),t.bookProps&&!t.bookSheets)i={};else{var a=C?"buffer":"array";if(r&&r.content)i=Om(r.content,t);else if((o=K.find(e,"PerfectOffice_MAIN"))&&o.content)i=xs.to_workbook(o.content,(t.type=a,t));else{if(!(o=K.find(e,"NativeContent_MAIN"))||!o.content)throw new Error("Cannot find Workbook stream");i=xs.to_workbook(o.content,(t.type=a,t))}t.bookVBA&&e.FullPaths&&K.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=eu(e))}var s={};return e.FullPaths&&Im(e,s,t),i.Props=i.Custprops=s,t.bookFiles&&(i.cfb=e),i}function Pm(e,t){var n=t||{},r=K.utils.cfb_new({root:"R"}),i="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":i="/Workbook",n.biff=8;break;case"biff5":i="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return K.utils.cfb_add(r,i,eg(e,n)),8==n.biff&&(e.Props||e.Custprops)&&Am(e,r),8==n.biff&&e.vbaraw&&tu(r,K.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}var Mm={0:{n:"BrtRowHdr",f:Zf},1:{n:"BrtCellBlank",f:sh},2:{n:"BrtCellRk",f:gh},3:{n:"BrtCellError",f:dh},4:{n:"BrtCellBool",f:ch},5:{n:"BrtCellReal",f:ph},6:{n:"BrtCellSt",f:yh},7:{n:"BrtCellIsst",f:fh},8:{n:"BrtFmlaString",f:Sh},9:{n:"BrtFmlaNum",f:xh},10:{n:"BrtFmlaBool",f:_h},11:{n:"BrtFmlaError",f:wh},16:{n:"BrtFRTArchID$",f:kp},19:{n:"BrtSSTItem",f:Dn},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIString"},25:{n:"BrtPCDIDatetime"},26:{n:"BrtPCDIIndex"},27:{n:"BrtPCDIAMissing"},28:{n:"BrtPCDIANumber"},29:{n:"BrtPCDIABoolean"},30:{n:"BrtPCDIAError"},31:{n:"BrtPCDIAString"},32:{n:"BrtPCDIADatetime"},33:{n:"BrtPCRRecord"},34:{n:"BrtPCRRecordDt"},35:{n:"BrtFRTBegin"},36:{n:"BrtFRTEnd"},37:{n:"BrtACBegin"},38:{n:"BrtACEnd"},39:{n:"BrtName",f:Op},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:Wl},44:{n:"BrtFmt",f:Gl},45:{n:"BrtFill",f:Xl},46:{n:"BrtBorder",f:ec},47:{n:"BrtXF",f:Jl},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:es},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:Dc},64:{n:"BrtDVal",f:qh},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:en,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView",f:Dh},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:oh},148:{n:"BrtWsDim",f:nh,p:16},151:{n:"BrtPane",f:Ih},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:Cp},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:xp},157:{n:"BrtCalcProp"},158:{n:"BrtBookView"},159:{n:"BrtBeginSst",f:Ds},160:{n:"BrtEndSst"},161:{n:"BrtBeginAFilter",f:Zn},162:{n:"BrtEndAFilter"},163:{n:"BrtBeginFilterColumn"},164:{n:"BrtEndFilterColumn"},165:{n:"BrtBeginFilters"},166:{n:"BrtEndFilters"},167:{n:"BrtFilter"},168:{n:"BrtColorFilter"},169:{n:"BrtIconFilter"},170:{n:"BrtTop10Filter"},171:{n:"BrtDynamicFilter"},172:{n:"BrtBeginCustomFilters"},173:{n:"BrtEndCustomFilters"},174:{n:"BrtCustomFilter"},175:{n:"BrtAFilterDateGroupItem"},176:{n:"BrtMergeCell",f:Ch},177:{n:"BrtBeginMergeCells"},178:{n:"BrtEndMergeCells"},179:{n:"BrtBeginPivotCacheDef"},180:{n:"BrtEndPivotCacheDef"},181:{n:"BrtBeginPCDFields"},182:{n:"BrtEndPCDFields"},183:{n:"BrtBeginPCDField"},184:{n:"BrtEndPCDField"},185:{n:"BrtBeginPCDSource"},186:{n:"BrtEndPCDSource"},187:{n:"BrtBeginPCDSRange"},188:{n:"BrtEndPCDSRange"},189:{n:"BrtBeginPCDFAtbl"},190:{n:"BrtEndPCDFAtbl"},191:{n:"BrtBeginPCDIRun"},192:{n:"BrtEndPCDIRun"},193:{n:"BrtBeginPivotCacheRecords"},194:{n:"BrtEndPivotCacheRecords"},195:{n:"BrtBeginPCDHierarchies"},196:{n:"BrtEndPCDHierarchies"},197:{n:"BrtBeginPCDHierarchy"},198:{n:"BrtEndPCDHierarchy"},199:{n:"BrtBeginPCDHFieldsUsage"},200:{n:"BrtEndPCDHFieldsUsage"},201:{n:"BrtBeginExtConnection"},202:{n:"BrtEndExtConnection"},203:{n:"BrtBeginECDbProps"},204:{n:"BrtEndECDbProps"},205:{n:"BrtBeginECOlapProps"},206:{n:"BrtEndECOlapProps"},207:{n:"BrtBeginPCDSConsol"},208:{n:"BrtEndPCDSConsol"},209:{n:"BrtBeginPCDSCPages"},210:{n:"BrtEndPCDSCPages"},211:{n:"BrtBeginPCDSCPage"},212:{n:"BrtEndPCDSCPage"},213:{n:"BrtBeginPCDSCPItem"},214:{n:"BrtEndPCDSCPItem"},215:{n:"BrtBeginPCDSCSets"},216:{n:"BrtEndPCDSCSets"},217:{n:"BrtBeginPCDSCSet"},218:{n:"BrtEndPCDSCSet"},219:{n:"BrtBeginPCDFGroup"},220:{n:"BrtEndPCDFGroup"},221:{n:"BrtBeginPCDFGItems"},222:{n:"BrtEndPCDFGItems"},223:{n:"BrtBeginPCDFGRange"},224:{n:"BrtEndPCDFGRange"},225:{n:"BrtBeginPCDFGDiscrete"},226:{n:"BrtEndPCDFGDiscrete"},227:{n:"BrtBeginPCDSDTupleCache"},228:{n:"BrtEndPCDSDTupleCache"},229:{n:"BrtBeginPCDSDTCEntries"},230:{n:"BrtEndPCDSDTCEntries"},231:{n:"BrtBeginPCDSDTCEMembers"},232:{n:"BrtEndPCDSDTCEMembers"},233:{n:"BrtBeginPCDSDTCEMember"},234:{n:"BrtEndPCDSDTCEMember"},235:{n:"BrtBeginPCDSDTCQueries"},236:{n:"BrtEndPCDSDTCQueries"},237:{n:"BrtBeginPCDSDTCQuery"},238:{n:"BrtEndPCDSDTCQuery"},239:{n:"BrtBeginPCDSDTCSets"},240:{n:"BrtEndPCDSDTCSets"},241:{n:"BrtBeginPCDSDTCSet"},242:{n:"BrtEndPCDSDTCSet"},243:{n:"BrtBeginPCDCalcItems"},244:{n:"BrtEndPCDCalcItems"},245:{n:"BrtBeginPCDCalcItem"},246:{n:"BrtEndPCDCalcItem"},247:{n:"BrtBeginPRule"},248:{n:"BrtEndPRule"},249:{n:"BrtBeginPRFilters"},250:{n:"BrtEndPRFilters"},251:{n:"BrtBeginPRFilter"},252:{n:"BrtEndPRFilter"},253:{n:"BrtBeginPNames"},254:{n:"BrtEndPNames"},255:{n:"BrtBeginPName"},256:{n:"BrtEndPName"},257:{n:"BrtBeginPNPairs"},258:{n:"BrtEndPNPairs"},259:{n:"BrtBeginPNPair"},260:{n:"BrtEndPNPair"},261:{n:"BrtBeginECWebProps"},262:{n:"BrtEndECWebProps"},263:{n:"BrtBeginEcWpTables"},264:{n:"BrtEndECWPTables"},265:{n:"BrtBeginECParams"},266:{n:"BrtEndECParams"},267:{n:"BrtBeginECParam"},268:{n:"BrtEndECParam"},269:{n:"BrtBeginPCDKPIs"},270:{n:"BrtEndPCDKPIs"},271:{n:"BrtBeginPCDKPI"},272:{n:"BrtEndPCDKPI"},273:{n:"BrtBeginDims"},274:{n:"BrtEndDims"},275:{n:"BrtBeginDim"},276:{n:"BrtEndDim"},277:{n:"BrtIndexPartEnd"},278:{n:"BrtBeginStyleSheet"},279:{n:"BrtEndStyleSheet"},280:{n:"BrtBeginSXView"},281:{n:"BrtEndSXVI"},282:{n:"BrtBeginSXVI"},283:{n:"BrtBeginSXVIs"},284:{n:"BrtEndSXVIs"},285:{n:"BrtBeginSXVD"},286:{n:"BrtEndSXVD"},287:{n:"BrtBeginSXVDs"},288:{n:"BrtEndSXVDs"},289:{n:"BrtBeginSXPI"},290:{n:"BrtEndSXPI"},291:{n:"BrtBeginSXPIs"},292:{n:"BrtEndSXPIs"},293:{n:"BrtBeginSXDI"},294:{n:"BrtEndSXDI"},295:{n:"BrtBeginSXDIs"},296:{n:"BrtEndSXDIs"},297:{n:"BrtBeginSXLI"},298:{n:"BrtEndSXLI"},299:{n:"BrtBeginSXLIRws"},300:{n:"BrtEndSXLIRws"},301:{n:"BrtBeginSXLICols"},302:{n:"BrtEndSXLICols"},303:{n:"BrtBeginSXFormat"},304:{n:"BrtEndSXFormat"},305:{n:"BrtBeginSXFormats"},306:{n:"BrtEndSxFormats"},307:{n:"BrtBeginSxSelect"},308:{n:"BrtEndSxSelect"},309:{n:"BrtBeginISXVDRws"},310:{n:"BrtEndISXVDRws"},311:{n:"BrtBeginISXVDCols"},312:{n:"BrtEndISXVDCols"},313:{n:"BrtEndSXLocation"},314:{n:"BrtBeginSXLocation"},315:{n:"BrtEndSXView"},316:{n:"BrtBeginSXTHs"},317:{n:"BrtEndSXTHs"},318:{n:"BrtBeginSXTH"},319:{n:"BrtEndSXTH"},320:{n:"BrtBeginISXTHRws"},321:{n:"BrtEndISXTHRws"},322:{n:"BrtBeginISXTHCols"},323:{n:"BrtEndISXTHCols"},324:{n:"BrtBeginSXTDMPS"},325:{n:"BrtEndSXTDMPs"},326:{n:"BrtBeginSXTDMP"},327:{n:"BrtEndSXTDMP"},328:{n:"BrtBeginSXTHItems"},329:{n:"BrtEndSXTHItems"},330:{n:"BrtBeginSXTHItem"},331:{n:"BrtEndSXTHItem"},332:{n:"BrtBeginMetadata"},333:{n:"BrtEndMetadata"},334:{n:"BrtBeginEsmdtinfo"},335:{n:"BrtMdtinfo"},336:{n:"BrtEndEsmdtinfo"},337:{n:"BrtBeginEsmdb"},338:{n:"BrtEndEsmdb"},339:{n:"BrtBeginEsfmd"},340:{n:"BrtEndEsfmd"},341:{n:"BrtBeginSingleCells"},342:{n:"BrtEndSingleCells"},343:{n:"BrtBeginList"},344:{n:"BrtEndList"},345:{n:"BrtBeginListCols"},346:{n:"BrtEndListCols"},347:{n:"BrtBeginListCol"},348:{n:"BrtEndListCol"},349:{n:"BrtBeginListXmlCPr"},350:{n:"BrtEndListXmlCPr"},351:{n:"BrtListCCFmla"},352:{n:"BrtListTrFmla"},353:{n:"BrtBeginExternals"},354:{n:"BrtEndExternals"},355:{n:"BrtSupBookSrc",f:$n},357:{n:"BrtSupSelf"},358:{n:"BrtSupSame"},359:{n:"BrtSupTabs"},360:{n:"BrtBeginSupBook"},361:{n:"BrtPlaceholderName"},362:{n:"BrtExternSheet",f:Ra},363:{n:"BrtExternTableStart"},364:{n:"BrtExternTableEnd"},366:{n:"BrtExternRowHdr"},367:{n:"BrtExternCellBlank"},368:{n:"BrtExternCellReal"},369:{n:"BrtExternCellBool"},370:{n:"BrtExternCellError"},371:{n:"BrtExternCellString"},372:{n:"BrtBeginEsmdx"},373:{n:"BrtEndEsmdx"},374:{n:"BrtBeginMdxSet"},375:{n:"BrtEndMdxSet"},376:{n:"BrtBeginMdxMbrProp"},377:{n:"BrtEndMdxMbrProp"},378:{n:"BrtBeginMdxKPI"},379:{n:"BrtEndMdxKPI"},380:{n:"BrtBeginEsstr"},381:{n:"BrtEndEsstr"},382:{n:"BrtBeginPRFItem"},383:{n:"BrtEndPRFItem"},384:{n:"BrtBeginPivotCacheIDs"},385:{n:"BrtEndPivotCacheIDs"},386:{n:"BrtBeginPivotCacheID"},387:{n:"BrtEndPivotCacheID"},388:{n:"BrtBeginISXVIs"},389:{n:"BrtEndISXVIs"},390:{n:"BrtBeginColInfos"},391:{n:"BrtEndColInfos"},392:{n:"BrtBeginRwBrk"},393:{n:"BrtEndRwBrk"},394:{n:"BrtBeginColBrk"},395:{n:"BrtEndColBrk"},396:{n:"BrtBrk"},397:{n:"BrtUserBookView"},398:{n:"BrtInfo"},399:{n:"BrtCUsr"},400:{n:"BrtUsr"},401:{n:"BrtBeginUsers"},403:{n:"BrtEOF"},404:{n:"BrtUCR"},405:{n:"BrtRRInsDel"},406:{n:"BrtRREndInsDel"},407:{n:"BrtRRMove"},408:{n:"BrtRREndMove"},409:{n:"BrtRRChgCell"},410:{n:"BrtRREndChgCell"},411:{n:"BrtRRHeader"},412:{n:"BrtRRUserView"},413:{n:"BrtRRRenSheet"},414:{n:"BrtRRInsertSh"},415:{n:"BrtRRDefName"},416:{n:"BrtRRNote"},417:{n:"BrtRRConflict"},418:{n:"BrtRRTQSIF"},419:{n:"BrtRRFormat"},420:{n:"BrtRREndFormat"},421:{n:"BrtRRAutoFmt"},422:{n:"BrtBeginUserShViews"},423:{n:"BrtBeginUserShView"},424:{n:"BrtEndUserShView"},425:{n:"BrtEndUserShViews"},426:{n:"BrtArrFmla",f:Ah},427:{n:"BrtShrFmla",f:Rh},428:{n:"BrtTable"},429:{n:"BrtBeginExtConnections"},430:{n:"BrtEndExtConnections"},431:{n:"BrtBeginPCDCalcMems"},432:{n:"BrtEndPCDCalcMems"},433:{n:"BrtBeginPCDCalcMem"},434:{n:"BrtEndPCDCalcMem"},435:{n:"BrtBeginPCDHGLevels"},436:{n:"BrtEndPCDHGLevels"},437:{n:"BrtBeginPCDHGLevel"},438:{n:"BrtEndPCDHGLevel"},439:{n:"BrtBeginPCDHGLGroups"},440:{n:"BrtEndPCDHGLGroups"},441:{n:"BrtBeginPCDHGLGroup"},442:{n:"BrtEndPCDHGLGroup"},443:{n:"BrtBeginPCDHGLGMembers"},444:{n:"BrtEndPCDHGLGMembers"},445:{n:"BrtBeginPCDHGLGMember"},446:{n:"BrtEndPCDHGLGMember"},447:{n:"BrtBeginQSI"},448:{n:"BrtEndQSI"},449:{n:"BrtBeginQSIR"},450:{n:"BrtEndQSIR"},451:{n:"BrtBeginDeletedNames"},452:{n:"BrtEndDeletedNames"},453:{n:"BrtBeginDeletedName"},454:{n:"BrtEndDeletedName"},455:{n:"BrtBeginQSIFs"},456:{n:"BrtEndQSIFs"},457:{n:"BrtBeginQSIF"},458:{n:"BrtEndQSIF"},459:{n:"BrtBeginAutoSortScope"},460:{n:"BrtEndAutoSortScope"},461:{n:"BrtBeginConditionalFormatting"},462:{n:"BrtEndConditionalFormatting"},463:{n:"BrtBeginCFRule"},464:{n:"BrtEndCFRule"},465:{n:"BrtBeginIconSet"},466:{n:"BrtEndIconSet"},467:{n:"BrtBeginDatabar"},468:{n:"BrtEndDatabar"},469:{n:"BrtBeginColorScale"},470:{n:"BrtEndColorScale"},471:{n:"BrtCFVO"},472:{n:"BrtExternValueMeta"},473:{n:"BrtBeginColorPalette"},474:{n:"BrtEndColorPalette"},475:{n:"BrtIndexedColor"},476:{n:"BrtMargins",f:Nh},477:{n:"BrtPrintOptions"},478:{n:"BrtPageSetup"},479:{n:"BrtBeginHeaderFooter"},480:{n:"BrtEndHeaderFooter"},481:{n:"BrtBeginSXCrtFormat"},482:{n:"BrtEndSXCrtFormat"},483:{n:"BrtBeginSXCrtFormats"},484:{n:"BrtEndSXCrtFormats"},485:{n:"BrtWsFmtInfo",f:ih},486:{n:"BrtBeginMgs"},487:{n:"BrtEndMGs"},488:{n:"BrtBeginMGMaps"},489:{n:"BrtEndMGMaps"},490:{n:"BrtBeginMG"},491:{n:"BrtEndMG"},492:{n:"BrtBeginMap"},493:{n:"BrtEndMap"},494:{n:"BrtHLink",f:Oh},495:{n:"BrtBeginDCon"},496:{n:"BrtEndDCon"},497:{n:"BrtBeginDRefs"},498:{n:"BrtEndDRefs"},499:{n:"BrtDRef"},500:{n:"BrtBeginScenMan"},501:{n:"BrtEndScenMan"},502:{n:"BrtBeginSct"},503:{n:"BrtEndSct"},504:{n:"BrtSlc"},505:{n:"BrtBeginDXFs"},506:{n:"BrtEndDXFs"},507:{n:"BrtDXF"},508:{n:"BrtBeginTableStyles"},509:{n:"BrtEndTableStyles"},510:{n:"BrtBeginTableStyle"},511:{n:"BrtEndTableStyle"},512:{n:"BrtTableStyleElement"},513:{n:"BrtTableStyleClient"},514:{n:"BrtBeginVolDeps"},515:{n:"BrtEndVolDeps"},516:{n:"BrtBeginVolType"},517:{n:"BrtEndVolType"},518:{n:"BrtBeginVolMain"},519:{n:"BrtEndVolMain"},520:{n:"BrtBeginVolTopic"},521:{n:"BrtEndVolTopic"},522:{n:"BrtVolSubtopic"},523:{n:"BrtVolRef"},524:{n:"BrtVolNum"},525:{n:"BrtVolErr"},526:{n:"BrtVolStr"},527:{n:"BrtVolBool"},528:{n:"BrtBeginCalcChain$"},529:{n:"BrtEndCalcChain$"},530:{n:"BrtBeginSortState"},531:{n:"BrtEndSortState"},532:{n:"BrtBeginSortCond"},533:{n:"BrtEndSortCond"},534:{n:"BrtBookProtection"},535:{n:"BrtSheetProtection"},536:{n:"BrtRangeProtection"},537:{n:"BrtPhoneticInfo"},538:{n:"BrtBeginECTxtWiz"},539:{n:"BrtEndECTxtWiz"},540:{n:"BrtBeginECTWFldInfoLst"},541:{n:"BrtEndECTWFldInfoLst"},542:{n:"BrtBeginECTwFldInfo"},548:{n:"BrtFileSharing"},549:{n:"BrtOleSize"},550:{n:"BrtDrawing",f:$n},551:{n:"BrtLegacyDrawing"},552:{n:"BrtLegacyDrawingHF"},553:{n:"BrtWebOpt"},554:{n:"BrtBeginWebPubItems"},555:{n:"BrtEndWebPubItems"},556:{n:"BrtBeginWebPubItem"},557:{n:"BrtEndWebPubItem"},558:{n:"BrtBeginSXCondFmt"},559:{n:"BrtEndSXCondFmt"},560:{n:"BrtBeginSXCondFmts"},561:{n:"BrtEndSXCondFmts"},562:{n:"BrtBkHim"},564:{n:"BrtColor"},565:{n:"BrtBeginIndexedColors"},566:{n:"BrtEndIndexedColors"},569:{n:"BrtBeginMRUColors"},570:{n:"BrtEndMRUColors"},572:{n:"BrtMRUColor"},573:{n:"BrtBeginDVals"},574:{n:"BrtEndDVals"},577:{n:"BrtSupNameStart"},578:{n:"BrtSupNameValueStart"},579:{n:"BrtSupNameValueEnd"},580:{n:"BrtSupNameNum"},581:{n:"BrtSupNameErr"},582:{n:"BrtSupNameSt"},583:{n:"BrtSupNameNil"},584:{n:"BrtSupNameBool"},585:{n:"BrtSupNameFmla"},586:{n:"BrtSupNameBits"},587:{n:"BrtSupNameEnd"},588:{n:"BrtEndSupBook"},589:{n:"BrtCellSmartTagProperty"},590:{n:"BrtBeginCellSmartTag"},591:{n:"BrtEndCellSmartTag"},592:{n:"BrtBeginCellSmartTags"},593:{n:"BrtEndCellSmartTags"},594:{n:"BrtBeginSmartTags"},595:{n:"BrtEndSmartTags"},596:{n:"BrtSmartTagType"},597:{n:"BrtBeginSmartTagTypes"},598:{n:"BrtEndSmartTagTypes"},599:{n:"BrtBeginSXFilters"},600:{n:"BrtEndSXFilters"},601:{n:"BrtBeginSXFILTER"},602:{n:"BrtEndSXFilter"},603:{n:"BrtBeginFills"},604:{n:"BrtEndFills"},605:{n:"BrtBeginCellWatches"},606:{n:"BrtEndCellWatches"},607:{n:"BrtCellWatch"},608:{n:"BrtBeginCRErrs"},609:{n:"BrtEndCRErrs"},610:{n:"BrtCrashRecErr"},611:{n:"BrtBeginFonts"},612:{n:"BrtEndFonts"},613:{n:"BrtBeginBorders"},614:{n:"BrtEndBorders"},615:{n:"BrtBeginFmts"},616:{n:"BrtEndFmts"},617:{n:"BrtBeginCellXFs"},618:{n:"BrtEndCellXFs"},619:{n:"BrtBeginStyles"},620:{n:"BrtEndStyles"},625:{n:"BrtBigName"},626:{n:"BrtBeginCellStyleXFs"},627:{n:"BrtEndCellStyleXFs"},628:{n:"BrtBeginComments"},629:{n:"BrtEndComments"},630:{n:"BrtBeginCommentAuthors"},631:{n:"BrtEndCommentAuthors"},632:{n:"BrtCommentAuthor",f:Xc},633:{n:"BrtBeginCommentList"},634:{n:"BrtEndCommentList"},635:{n:"BrtBeginComment",f:$c},636:{n:"BrtEndComment"},637:{n:"BrtCommentText",f:Fn},638:{n:"BrtBeginOleObjects"},639:{n:"BrtOleObject"},640:{n:"BrtEndOleObjects"},641:{n:"BrtBeginSxrules"},642:{n:"BrtEndSxRules"},643:{n:"BrtBeginActiveXControls"},644:{n:"BrtActiveX"},645:{n:"BrtEndActiveXControls"},646:{n:"BrtBeginPCDSDTCEMembersSortBy"},648:{n:"BrtBeginCellIgnoreECs"},649:{n:"BrtCellIgnoreEC"},650:{n:"BrtEndCellIgnoreECs"},651:{n:"BrtCsProp",f:ip},652:{n:"BrtCsPageSetup"},653:{n:"BrtBeginUserCsViews"},654:{n:"BrtEndUserCsViews"},655:{n:"BrtBeginUserCsView"},656:{n:"BrtEndUserCsView"},657:{n:"BrtBeginPcdSFCIEntries"},658:{n:"BrtEndPCDSFCIEntries"},659:{n:"BrtPCDSFCIEntry"},660:{n:"BrtBeginListParts"},661:{n:"BrtListPart"},662:{n:"BrtEndListParts"},663:{n:"BrtSheetCalcProp"},664:{n:"BrtBeginFnGroup"},665:{n:"BrtFnGroup"},666:{n:"BrtEndFnGroup"},667:{n:"BrtSupAddin"},668:{n:"BrtSXTDMPOrder"},669:{n:"BrtCsProtection"},671:{n:"BrtBeginWsSortMap"},672:{n:"BrtEndWsSortMap"},673:{n:"BrtBeginRRSort"},674:{n:"BrtEndRRSort"},675:{n:"BrtRRSortItem"},676:{n:"BrtFileSharingIso"},677:{n:"BrtBookProtectionIso"},678:{n:"BrtSheetProtectionIso"},679:{n:"BrtCsProtectionIso"},680:{n:"BrtRangeProtectionIso"},681:{n:"BrtDValList"},1024:{n:"BrtRwDescent"},1025:{n:"BrtKnownFonts"},1026:{n:"BrtBeginSXTupleSet"},1027:{n:"BrtEndSXTupleSet"},1028:{n:"BrtBeginSXTupleSetHeader"},1029:{n:"BrtEndSXTupleSetHeader"},1030:{n:"BrtSXTupleSetHeaderItem"},1031:{n:"BrtBeginSXTupleSetData"},1032:{n:"BrtEndSXTupleSetData"},1033:{n:"BrtBeginSXTupleSetRow"},1034:{n:"BrtEndSXTupleSetRow"},1035:{n:"BrtSXTupleSetRowItem"},1036:{n:"BrtNameExt"},1037:{n:"BrtPCDH14"},1038:{n:"BrtBeginPCDCalcMem14"},1039:{n:"BrtEndPCDCalcMem14"},1040:{n:"BrtSXTH14"},1041:{n:"BrtBeginSparklineGroup"},1042:{n:"BrtEndSparklineGroup"},1043:{n:"BrtSparkline"},1044:{n:"BrtSXDI14"},1045:{n:"BrtWsFmtInfoEx14"},1046:{n:"BrtBeginConditionalFormatting14"},1047:{n:"BrtEndConditionalFormatting14"},1048:{n:"BrtBeginCFRule14"},1049:{n:"BrtEndCFRule14"},1050:{n:"BrtCFVO14"},1051:{n:"BrtBeginDatabar14"},1052:{n:"BrtBeginIconSet14"},1053:{n:"BrtDVal14",f:zh},1054:{n:"BrtBeginDVals14"},1055:{n:"BrtColor14"},1056:{n:"BrtBeginSparklines"},1057:{n:"BrtEndSparklines"},1058:{n:"BrtBeginSparklineGroups"},1059:{n:"BrtEndSparklineGroups"},1061:{n:"BrtSXVD14"},1062:{n:"BrtBeginSXView14"},1063:{n:"BrtEndSXView14"},1064:{n:"BrtBeginSXView16"},1065:{n:"BrtEndSXView16"},1066:{n:"BrtBeginPCD14"},1067:{n:"BrtEndPCD14"},1068:{n:"BrtBeginExtConn14"},1069:{n:"BrtEndExtConn14"},1070:{n:"BrtBeginSlicerCacheIDs"},1071:{n:"BrtEndSlicerCacheIDs"},1072:{n:"BrtBeginSlicerCacheID"},1073:{n:"BrtEndSlicerCacheID"},1075:{n:"BrtBeginSlicerCache"},1076:{n:"BrtEndSlicerCache"},1077:{n:"BrtBeginSlicerCacheDef"},1078:{n:"BrtEndSlicerCacheDef"},1079:{n:"BrtBeginSlicersEx"},1080:{n:"BrtEndSlicersEx"},1081:{n:"BrtBeginSlicerEx"},1082:{n:"BrtEndSlicerEx"},1083:{n:"BrtBeginSlicer"},1084:{n:"BrtEndSlicer"},1085:{n:"BrtSlicerCachePivotTables"},1086:{n:"BrtBeginSlicerCacheOlapImpl"},1087:{n:"BrtEndSlicerCacheOlapImpl"},1088:{n:"BrtBeginSlicerCacheLevelsData"},1089:{n:"BrtEndSlicerCacheLevelsData"},1090:{n:"BrtBeginSlicerCacheLevelData"},1091:{n:"BrtEndSlicerCacheLevelData"},1092:{n:"BrtBeginSlicerCacheSiRanges"},1093:{n:"BrtEndSlicerCacheSiRanges"},1094:{n:"BrtBeginSlicerCacheSiRange"},1095:{n:"BrtEndSlicerCacheSiRange"},1096:{n:"BrtSlicerCacheOlapItem"},1097:{n:"BrtBeginSlicerCacheSelections"},1098:{n:"BrtSlicerCacheSelection"},1099:{n:"BrtEndSlicerCacheSelections"},1100:{n:"BrtBeginSlicerCacheNative"},1101:{n:"BrtEndSlicerCacheNative"},1102:{n:"BrtSlicerCacheNativeItem"},1103:{n:"BrtRangeProtection14"},1104:{n:"BrtRangeProtectionIso14"},1105:{n:"BrtCellIgnoreEC14"},1111:{n:"BrtList14"},1112:{n:"BrtCFIcon"},1113:{n:"BrtBeginSlicerCachesPivotCacheIDs"},1114:{n:"BrtEndSlicerCachesPivotCacheIDs"},1115:{n:"BrtBeginSlicers"},1116:{n:"BrtEndSlicers"},1117:{n:"BrtWbProp14"},1118:{n:"BrtBeginSXEdit"},1119:{n:"BrtEndSXEdit"},1120:{n:"BrtBeginSXEdits"},1121:{n:"BrtEndSXEdits"},1122:{n:"BrtBeginSXChange"},1123:{n:"BrtEndSXChange"},1124:{n:"BrtBeginSXChanges"},1125:{n:"BrtEndSXChanges"},1126:{n:"BrtSXTupleItems"},1128:{n:"BrtBeginSlicerStyle"},1129:{n:"BrtEndSlicerStyle"},1130:{n:"BrtSlicerStyleElement"},1131:{n:"BrtBeginStyleSheetExt14"},1132:{n:"BrtEndStyleSheetExt14"},1133:{n:"BrtBeginSlicerCachesPivotCacheID"},1134:{n:"BrtEndSlicerCachesPivotCacheID"},1135:{n:"BrtBeginConditionalFormattings"},1136:{n:"BrtEndConditionalFormattings"},1137:{n:"BrtBeginPCDCalcMemExt"},1138:{n:"BrtEndPCDCalcMemExt"},1139:{n:"BrtBeginPCDCalcMemsExt"},1140:{n:"BrtEndPCDCalcMemsExt"},1141:{n:"BrtPCDField14"},1142:{n:"BrtBeginSlicerStyles"},1143:{n:"BrtEndSlicerStyles"},1144:{n:"BrtBeginSlicerStyleElements"},1145:{n:"BrtEndSlicerStyleElements"},1146:{n:"BrtCFRuleExt"},1147:{n:"BrtBeginSXCondFmt14"},1148:{n:"BrtEndSXCondFmt14"},1149:{n:"BrtBeginSXCondFmts14"},1150:{n:"BrtEndSXCondFmts14"},1152:{n:"BrtBeginSortCond14"},1153:{n:"BrtEndSortCond14"},1154:{n:"BrtEndDVals14"},1155:{n:"BrtEndIconSet14"},1156:{n:"BrtEndDatabar14"},1157:{n:"BrtBeginColorScale14"},1158:{n:"BrtEndColorScale14"},1159:{n:"BrtBeginSxrules14"},1160:{n:"BrtEndSxrules14"},1161:{n:"BrtBeginPRule14"},1162:{n:"BrtEndPRule14"},1163:{n:"BrtBeginPRFilters14"},1164:{n:"BrtEndPRFilters14"},1165:{n:"BrtBeginPRFilter14"},1166:{n:"BrtEndPRFilter14"},1167:{n:"BrtBeginPRFItem14"},1168:{n:"BrtEndPRFItem14"},1169:{n:"BrtBeginCellIgnoreECs14"},1170:{n:"BrtEndCellIgnoreECs14"},1171:{n:"BrtDxf14"},1172:{n:"BrtBeginDxF14s"},1173:{n:"BrtEndDxf14s"},1177:{n:"BrtFilter14"},1178:{n:"BrtBeginCustomFilters14"},1180:{n:"BrtCustomFilter14"},1181:{n:"BrtIconFilter14"},1182:{n:"BrtPivotCacheConnectionName"},2048:{n:"BrtBeginDecoupledPivotCacheIDs"},2049:{n:"BrtEndDecoupledPivotCacheIDs"},2050:{n:"BrtDecoupledPivotCacheID"},2051:{n:"BrtBeginPivotTableRefs"},2052:{n:"BrtEndPivotTableRefs"},2053:{n:"BrtPivotTableRef"},2054:{n:"BrtSlicerCacheBookPivotTables"},2055:{n:"BrtBeginSxvcells"},2056:{n:"BrtEndSxvcells"},2057:{n:"BrtBeginSxRow"},2058:{n:"BrtEndSxRow"},2060:{n:"BrtPcdCalcMem15"},2067:{n:"BrtQsi15"},2068:{n:"BrtBeginWebExtensions"},2069:{n:"BrtEndWebExtensions"},2070:{n:"BrtWebExtension"},2071:{n:"BrtAbsPath15"},2072:{n:"BrtBeginPivotTableUISettings"},2073:{n:"BrtEndPivotTableUISettings"},2075:{n:"BrtTableSlicerCacheIDs"},2076:{n:"BrtTableSlicerCacheID"},2077:{n:"BrtBeginTableSlicerCache"},2078:{n:"BrtEndTableSlicerCache"},2079:{n:"BrtSxFilter15"},2080:{n:"BrtBeginTimelineCachePivotCacheIDs"},2081:{n:"BrtEndTimelineCachePivotCacheIDs"},2082:{n:"BrtTimelineCachePivotCacheID"},2083:{n:"BrtBeginTimelineCacheIDs"},2084:{n:"BrtEndTimelineCacheIDs"},2085:{n:"BrtBeginTimelineCacheID"},2086:{n:"BrtEndTimelineCacheID"},2087:{n:"BrtBeginTimelinesEx"},2088:{n:"BrtEndTimelinesEx"},2089:{n:"BrtBeginTimelineEx"},2090:{n:"BrtEndTimelineEx"},2091:{n:"BrtWorkBookPr15"},2092:{n:"BrtPCDH15"},2093:{n:"BrtBeginTimelineStyle"},2094:{n:"BrtEndTimelineStyle"},2095:{n:"BrtTimelineStyleElement"},2096:{n:"BrtBeginTimelineStylesheetExt15"},2097:{n:"BrtEndTimelineStylesheetExt15"},2098:{n:"BrtBeginTimelineStyles"},2099:{n:"BrtEndTimelineStyles"},2100:{n:"BrtBeginTimelineStyleElements"},2101:{n:"BrtEndTimelineStyleElements"},2102:{n:"BrtDxf15"},2103:{n:"BrtBeginDxfs15"},2104:{n:"brtEndDxfs15"},2105:{n:"BrtSlicerCacheHideItemsWithNoData"},2106:{n:"BrtBeginItemUniqueNames"},2107:{n:"BrtEndItemUniqueNames"},2108:{n:"BrtItemUniqueName"},2109:{n:"BrtBeginExtConn15"},2110:{n:"BrtEndExtConn15"},2111:{n:"BrtBeginOledbPr15"},2112:{n:"BrtEndOledbPr15"},2113:{n:"BrtBeginDataFeedPr15"},2114:{n:"BrtEndDataFeedPr15"},2115:{n:"BrtTextPr15"},2116:{n:"BrtRangePr15"},2117:{n:"BrtDbCommand15"},2118:{n:"BrtBeginDbTables15"},2119:{n:"BrtEndDbTables15"},2120:{n:"BrtDbTable15"},2121:{n:"BrtBeginDataModel"},2122:{n:"BrtEndDataModel"},2123:{n:"BrtBeginModelTables"},2124:{n:"BrtEndModelTables"},2125:{n:"BrtModelTable"},2126:{n:"BrtBeginModelRelationships"},2127:{n:"BrtEndModelRelationships"},2128:{n:"BrtModelRelationship"},2129:{n:"BrtBeginECTxtWiz15"},2130:{n:"BrtEndECTxtWiz15"},2131:{n:"BrtBeginECTWFldInfoLst15"},2132:{n:"BrtEndECTWFldInfoLst15"},2133:{n:"BrtBeginECTWFldInfo15"},2134:{n:"BrtFieldListActiveItem"},2135:{n:"BrtPivotCacheIdVersion"},2136:{n:"BrtSXDI15"},2137:{n:"BrtBeginModelTimeGroupings"},2138:{n:"BrtEndModelTimeGroupings"},2139:{n:"BrtBeginModelTimeGrouping"},2140:{n:"BrtEndModelTimeGrouping"},2141:{n:"BrtModelTimeGroupingCalcCol"},3072:{n:"BrtUid"},3073:{n:"BrtRevisionPtr"},5095:{n:"BrtBeginCalcFeatures"},5096:{n:"BrtEndCalcFeatures"},5097:{n:"BrtCalcFeature"},65535:{n:""}},Nm=Z(Mm,"n"),Lm={3:{n:"BIFF2NUM",f:cs},4:{n:"BIFF2STR",f:ls},6:{n:"Formula",f:Yd},9:{n:"BOF",f:jo},10:{n:"EOF",f:$i},12:{n:"CalcCount",f:Qi},13:{n:"CalcMode",f:Qi},14:{n:"CalcPrecision",f:Yi},15:{n:"CalcRefMode",f:Yi},16:{n:"CalcDelta",f:tr},17:{n:"CalcIter",f:Yi},18:{n:"Protect",f:Yi},19:{n:"Password",f:Qi},20:{n:"Header",f:ka},21:{n:"Footer",f:ka},23:{n:"ExternSheet",f:Ra},24:{n:"Lbl",f:Aa},25:{n:"WinProtect",f:Yi},26:{n:"VerticalPageBreaks"},27:{n:"HorizontalPageBreaks"},28:{n:"Note",f:Fa},29:{n:"Selection"},34:{n:"Date1904",f:Yi},35:{n:"ExternName",f:Ta},36:{n:"COLWIDTH"},38:{n:"LeftMargin",f:tr},39:{n:"RightMargin",f:tr},40:{n:"TopMargin",f:tr},41:{n:"BottomMargin",f:tr},42:{n:"PrintRowCol",f:Yi},43:{n:"PrintGrid",f:Yi},47:{n:"FilePass",f:cl},49:{n:"Font",f:ra},51:{n:"PrintSize",f:Qi},60:{n:"Continue"},61:{n:"Window1",f:Qo},64:{n:"Backup",f:Yi},65:{n:"Pane",f:na},66:{n:"CodePage",f:Qi},77:{n:"Pls"},80:{n:"DCon"},81:{n:"DConRef"},82:{n:"DConName"},85:{n:"DefColWidth",f:Qi},89:{n:"XCT"},90:{n:"CRN"},91:{n:"FileSharing"},92:{n:"WriteAccess",f:qo},93:{n:"Obj",f:za},94:{n:"Uncalced"},95:{n:"CalcSaveRecalc",f:Yi},96:{n:"Template"},97:{n:"Intl"},99:{n:"ObjProtect",f:Yi},125:{n:"ColInfo",f:es},128:{n:"Guts",f:_a},129:{n:"WsBool",f:Uo},130:{n:"GridSet",f:Qi},131:{n:"HCenter",f:Yi},132:{n:"VCenter",f:Yi},133:{n:"BoundSheet8",f:Go},134:{n:"WriteProtect"},140:{n:"Country",f:Xa},141:{n:"HideObj",f:Qi},144:{n:"Sort"},146:{n:"Palette",f:Qa},151:{n:"Sync"},152:{n:"LPr"},153:{n:"DxGCol"},154:{n:"FnGroupName"},155:{n:"FilterMode"},156:{n:"BuiltInFnGroupCount",f:Qi},157:{n:"AutoFilterInfo"},158:{n:"AutoFilter"},160:{n:"Scl",f:os},161:{n:"Setup",f:ts},174:{n:"ScenMan"},175:{n:"SCENARIO"},176:{n:"SxView"},177:{n:"Sxvd"},178:{n:"SXVI"},180:{n:"SxIvd"},181:{n:"SXLI"},182:{n:"SXPI"},184:{n:"DocRoute"},185:{n:"RecipName"},189:{n:"MulRk",f:ma},190:{n:"MulBlank",f:ga},193:{n:"Mms",f:$i},197:{n:"SXDI"},198:{n:"SXDB"},199:{n:"SXFDB"},200:{n:"SXDBB"},201:{n:"SXNum"},202:{n:"SxBool",f:Yi},203:{n:"SxErr"},204:{n:"SXInt"},205:{n:"SXString"},206:{n:"SXDtr"},207:{n:"SxNil"},208:{n:"SXTbl"},209:{n:"SXTBRGIITM"},210:{n:"SxTbpg"},211:{n:"ObProj"},213:{n:"SXStreamID"},215:{n:"DBCell"},216:{n:"SXRng"},217:{n:"SxIsxoper"},218:{n:"BookBool",f:Qi},220:{n:"DbOrParamQry"},221:{n:"ScenarioProtect",f:Yi},222:{n:"OleObjectSize"},224:{n:"XF",f:ya},225:{n:"InterfaceHdr",f:Bo},226:{n:"InterfaceEnd",f:$i},227:{n:"SXVS"},229:{n:"MergeCells",f:Ba},233:{n:"BkHim"},235:{n:"MsoDrawingGroup"},236:{n:"MsoDrawing"},237:{n:"MsoDrawingSelection"},239:{n:"PhoneticInfo"},240:{n:"SxRule"},241:{n:"SXEx"},242:{n:"SxFilt"},244:{n:"SxDXF"},245:{n:"SxItm"},246:{n:"SxName"},247:{n:"SxSelect"},248:{n:"SXPair"},249:{n:"SxFmla"},251:{n:"SxFormat"},252:{n:"SST",f:Wo},253:{n:"LabelSst",f:oa},255:{n:"ExtSST",f:$o},256:{n:"SXVDEx"},259:{n:"SXFormula"},290:{n:"SXDBEx"},311:{n:"RRDInsDel"},312:{n:"RRDHead"},315:{n:"RRDChgCell"},317:{n:"RRTabId",f:eo},318:{n:"RRDRenSheet"},319:{n:"RRSort"},320:{n:"RRDMove"},330:{n:"RRFormat"},331:{n:"RRAutoFmt"},333:{n:"RRInsertSh"},334:{n:"RRDMoveBegin"},335:{n:"RRDMoveEnd"},336:{n:"RRDInsDelBegin"},337:{n:"RRDInsDelEnd"},338:{n:"RRDConflict"},339:{n:"RRDDefName"},340:{n:"RRDRstEtxp"},351:{n:"LRng"},352:{n:"UsesELFs",f:Yi},353:{n:"DSF",f:$i},401:{n:"CUsr"},402:{n:"CbUsr"},403:{n:"UsrInfo"},404:{n:"UsrExcl"},405:{n:"FileLock"},406:{n:"RRDInfo"},407:{n:"BCUsrs"},408:{n:"UsrChk"},425:{n:"UserBView"},426:{n:"UserSViewBegin"},427:{n:"UserSViewEnd"},428:{n:"RRDUserView"},429:{n:"Qsi"},430:{n:"SupBook",f:Oa},431:{n:"Prot4Rev",f:Yi},432:{n:"CondFmt"},433:{n:"CF"},434:{n:"DVal"},437:{n:"DConBin"},438:{n:"TxO",f:Va},439:{n:"RefreshAll",f:Yi},440:{n:"HLink",f:Wa},441:{n:"Lel"},442:{n:"CodeName",f:so},443:{n:"SXFDBType"},444:{n:"Prot4RevPass",f:Qi},445:{n:"ObNoMacros"},446:{n:"Dv"},448:{n:"Excel9File",f:$i},449:{n:"RecalcId",f:Yo,r:2},450:{n:"EntExU2",f:$i},512:{n:"Dimensions",f:fa},513:{n:"Blank",f:is},515:{n:"Number",f:Ca},516:{n:"Label",f:sa},517:{n:"BoolErr",f:xa},518:{n:"Formula",f:Yd},519:{n:"String",f:as},520:{n:"Row",f:Ko},523:{n:"Index"},545:{n:"Array",f:La},549:{n:"DefaultRowHeight",f:Jo},566:{n:"Table"},574:{n:"Window2",f:ea},638:{n:"RK",f:pa},659:{n:"Style"},1030:{n:"Formula",f:Yd},1048:{n:"BigName"},1054:{n:"Format",f:ca},1084:{n:"ContinueBigName"},1212:{n:"ShrFmla",f:Na},2048:{n:"HLinkTooltip",f:$a},2049:{n:"WebPub"},2050:{n:"QsiSXTag"},2051:{n:"DBQueryExt"},2052:{n:"ExtString"},2053:{n:"TxtQry"},2054:{n:"Qsir"},2055:{n:"Qsif"},2056:{n:"RRDTQSIF"},2057:{n:"BOF",f:jo},2058:{n:"OleDbConn"},2059:{n:"WOpt"},2060:{n:"SXViewEx"},2061:{n:"SXTH"},2062:{n:"SXPIEx"},2063:{n:"SXVDTEx"},2064:{n:"SXViewEx9"},2066:{n:"ContinueFrt"},2067:{n:"RealTimeData"},2128:{n:"ChartFrtInfo"},2129:{n:"FrtWrapper"},2130:{n:"StartBlock"},2131:{n:"EndBlock"},2132:{n:"StartObject"},2133:{n:"EndObject"},2134:{n:"CatLab"},2135:{n:"YMult"},2136:{n:"SXViewLink"},2137:{n:"PivotChartBits"},2138:{n:"FrtFontList"},2146:{n:"SheetExt"},2147:{n:"BookExt",r:12},2148:{n:"SXAddl"},2149:{n:"CrErr"},2150:{n:"HFPicture"},2151:{n:"FeatHdr",f:$i},2152:{n:"Feat"},2154:{n:"DataLabExt"},2155:{n:"DataLabExtContents"},2156:{n:"CellWatch"},2161:{n:"FeatHdr11"},2162:{n:"Feature11"},2164:{n:"DropDownObjIds"},2165:{n:"ContinueFrt11"},2166:{n:"DConn"},2167:{n:"List12"},2168:{n:"Feature12"},2169:{n:"CondFmt12"},2170:{n:"CF12"},2171:{n:"CFEx"},2172:{n:"XFCRC",f:Za,r:12},2173:{n:"XFExt",f:Mc,r:12},2174:{n:"AutoFilter12"},2175:{n:"ContinueFrt12"},2180:{n:"MDTInfo"},2181:{n:"MDXStr"},2182:{n:"MDXTuple"},2183:{n:"MDXSet"},2184:{n:"MDXProp"},2185:{n:"MDXKPI"},2186:{n:"MDB"},2187:{n:"PLV"},2188:{n:"Compat12",f:Yi,r:12},2189:{n:"DXF"},2190:{n:"TableStyles",r:12},2191:{n:"TableStyle"},2192:{n:"TableStyleElement"},2194:{n:"StyleExt"},2195:{n:"NamePublish"},2196:{n:"NameCmt",f:Ma,r:12},2197:{n:"SortData"},2198:{n:"Theme",f:Oc,r:12},2199:{n:"GUIDTypeLib"},2200:{n:"FnGrp12"},2201:{n:"NameFnGrp12"},2202:{n:"MTRSettings",f:Da,r:12},2203:{n:"CompressPictures",f:$i},2204:{n:"HeaderFooter"},2205:{n:"CrtLayout12"},2206:{n:"CrtMlFrt"},2207:{n:"CrtMlFrtContinue"},2211:{n:"ForceFullCalculation",f:Xo},2212:{n:"ShapePropsStream"},2213:{n:"TextPropsStream"},2214:{n:"RichTextStream"},2215:{n:"CrtLayout12A"},4097:{n:"Units"},4098:{n:"Chart"},4099:{n:"Series"},4102:{n:"DataFormat"},4103:{n:"LineFormat"},4105:{n:"MarkerFormat"},4106:{n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:Qi},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:ns},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},4171:{n:"SerAuxTrend"},4174:{n:"IFmtRecord"},4175:{n:"Pos"},4176:{n:"AlRuns"},4177:{n:"BRAI"},4187:{n:"SerAuxErrBar"},4188:{n:"ClrtClient",f:Ja},4189:{n:"SerFmt"},4191:{n:"Chart3DBarShape"},4192:{n:"Fbi"},4193:{n:"BopPop"},4194:{n:"AxcExt"},4195:{n:"Dat"},4196:{n:"PlotGrowth"},4197:{n:"SIIndex"},4198:{n:"GelFrame"},4199:{n:"BopPopCustom"},4200:{n:"Fbi2"},0:{n:"Dimensions",f:fa},2:{n:"BIFF2INT",f:ds},5:{n:"BoolErr",f:xa},7:{n:"String",f:hs},8:{n:"BIFF2ROW"},11:{n:"Index"},22:{n:"ExternCount",f:Qi},30:{n:"BIFF2FORMAT",f:da},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:La},37:{n:"DefaultRowHeight",f:Jo},50:{n:"BIFF2FONTXTRA",f:ps},52:{n:"DDEObjName"},62:{n:"BIFF2WINDOW2"},67:{n:"BIFF2XF"},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:ss},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:ms},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:jo},536:{n:"Lbl",f:Aa},547:{n:"ExternName",f:Ta},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:jo},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}},Dm=Z(Lm,"n");function jm(e,t,n,r){var i=+t||+Dm[t];if(!isNaN(i)){var o=r||(n||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&qt(n)&&e.push(n)}}function Fm(e,t,n,r){var i=r||(n||[]).length||0;if(i<=8224)return jm(e,t,n,i);var o=+t||+Dm[t];if(!isNaN(o)){var a=n.parts||[],s=0,l=0,c=0;while(c+(a[s]||8224)<=8224)c+=a[s]||8224,s++;var u=e.next(4);u.write_shift(2,o),u.write_shift(2,c),e.push(n.slice(l,l+c)),l+=c;while(l<i){u=e.next(4),u.write_shift(2,60),c=0;while(c+(a[s]||8224)<=8224)c+=a[s]||8224,s++;u.write_shift(2,c),e.push(n.slice(l,l+c)),l+=c}}}function Bm(e,t,n){return e||(e=tn(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function qm(e,t,n,r){var i=tn(9);return Bm(i,e,t),"e"==r?(i.write_shift(1,n),i.write_shift(1,1)):(i.write_shift(1,n?1:0),i.write_shift(1,0)),i}function zm(e,t,n){var r=tn(8+2*n.length);return Bm(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}function Um(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var i="d"==t.t?ie(fe(t.v)):t.v;return void(i==(0|i)&&i>=0&&i<65536?jm(e,2,fs(n,r,i)):jm(e,3,us(n,r,i)));case"b":case"e":return void jm(e,5,qm(n,r,t.v,t.t));case"s":case"str":return void jm(e,4,zm(n,r,t.v))}jm(e,1,Bm(null,n,r))}function Gm(e,t,n,r){var i,o=Array.isArray(t),a=En(t["!ref"]||"A1"),s="",l=[];if(a.e.c>255||a.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),i=Cn(a)}for(var c=a.s.r;c<=a.e.r;++c){s=hn(c);for(var u=a.s.c;u<=a.e.c;++u){c===a.s.r&&(l[u]=vn(u)),i=l[u]+s;var d=o?(t[c]||[])[u]:t[i];d&&Um(e,d,c,u,r)}}}function Vm(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);for(var r=rn(),i=0,o=0;o<e.SheetNames.length;++o)e.SheetNames[o]==n.sheet&&(i=o);if(0==i&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return jm(r,9,Fo(e,16,n)),Gm(r,e.Sheets[e.SheetNames[i]],i,n,e),jm(r,10),r.end()}function Wm(e,t,n){jm(e,"Font",ia({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function Hm(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var i=r[0];i<=r[1];++i)null!=t[i]&&jm(e,"Format",ua(i,t[i],n))}))}function $m(e,t){var n=tn(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),jm(e,"FeatHdr",n),n=tn(39),n.write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),To(En(t["!ref"]||"A1"),n),n.write_shift(4,4),jm(e,"Feat",n)}function Km(e,t){for(var n=0;n<16;++n)jm(e,"XF",ba({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){jm(e,"XF",ba(n,0,t))}))}function Xm(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];jm(e,"HLink",Ha(r)),r[1].Tooltip&&jm(e,"HLinkTooltip",Ka(r))}delete t["!links"]}function Ym(e,t,n,r,i){var o=16+yf(i.cellXfs,t,i);if(null!=t.v||t.bf)if(t.bf)jm(e,"Formula",Jd(t,n,r,i,o));else switch(t.t){case"d":case"n":var a="d"==t.t?ie(fe(t.v)):t.v;jm(e,"Number",Ea(n,r,a,o,i));break;case"b":case"e":jm(e,517,Sa(n,r,t.v,o,i,t.t));break;case"s":case"str":if(i.bookSST){var s=mf(i.Strings,t.v,i.revStrings);jm(e,"LabelSst",aa(n,r,s,o,i))}else jm(e,"Label",la(n,r,t.v,o,i));break;default:jm(e,"Blank",wo(n,r,o))}else jm(e,"Blank",wo(n,r,o))}function Jm(e,t,n){var r,i=rn(),o=n.SheetNames[e],a=n.Sheets[o]||{},s=(n||{}).Workbook||{},l=(s.Sheets||[])[e]||{},c=Array.isArray(a),u=8==t.biff,d="",f=[],h=En(a["!ref"]||"A1"),p=u?65536:16384;if(h.e.c>255||h.e.r>=p){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,p-1)}jm(i,2057,Fo(n,16,t)),jm(i,"CalcMode",Zi(1)),jm(i,"CalcCount",Zi(100)),jm(i,"CalcRefMode",Ji(!0)),jm(i,"CalcIter",Ji(!1)),jm(i,"CalcDelta",nr(.001)),jm(i,"CalcSaveRecalc",Ji(!0)),jm(i,"PrintRowCol",Ji(!1)),jm(i,"PrintGrid",Ji(!1)),jm(i,"GridSet",Zi(1)),jm(i,"Guts",wa([0,0])),jm(i,"HCenter",Ji(!1)),jm(i,"VCenter",Ji(!1)),jm(i,512,ha(h,t)),u&&(a["!links"]=[]);for(var m=h.s.r;m<=h.e.r;++m){d=hn(m);for(var g=h.s.c;g<=h.e.c;++g){m===h.s.r&&(f[g]=vn(g)),r=f[g]+d;var v=c?(a[m]||[])[g]:a[r];v&&(Ym(i,v,m,g,t),u&&v.l&&a["!links"].push([r,v.l]))}}var y=l.CodeName||l.name||o;return u&&jm(i,"Window2",ta((s.Views||[])[0])),u&&(a["!merges"]||[]).length&&jm(i,"MergeCells",qa(a["!merges"])),u&&Xm(i,a),jm(i,"CodeName",co(y,t)),u&&$m(i,a),jm(i,"EOF"),i.end()}function Qm(e,t,n){var r=rn(),i=(e||{}).Workbook||{},o=i.Sheets||[],a=i.WBProps||{},s=8==n.biff,l=5==n.biff;if(jm(r,2057,Fo(e,5,n)),"xla"==n.bookType&&jm(r,"Addin"),jm(r,"InterfaceHdr",s?Zi(1200):null),jm(r,"Mms",Ki(2)),l&&jm(r,"ToolbarHdr"),l&&jm(r,"ToolbarEnd"),jm(r,"InterfaceEnd"),jm(r,"WriteAccess",zo("SheetJS",n)),jm(r,"CodePage",Zi(s?1200:1252)),s&&jm(r,"DSF",Zi(0)),s&&jm(r,"Excel9File"),jm(r,"RRTabId",rs(e.SheetNames.length)),s&&e.vbaraw&&jm(r,"ObProj"),s&&e.vbaraw){var c=a.CodeName||"ThisWorkbook";jm(r,"CodeName",co(c,n))}jm(r,"BuiltInFnGroupCount",Zi(17)),jm(r,"WinProtect",Ji(!1)),jm(r,"Protect",Ji(!1)),jm(r,"Password",Zi(0)),s&&jm(r,"Prot4Rev",Ji(!1)),s&&jm(r,"Prot4RevPass",Zi(0)),jm(r,"Window1",Zo(n)),jm(r,"Backup",Ji(!1)),jm(r,"HideObj",Zi(0)),jm(r,"Date1904",Ji("true"==hp(e))),jm(r,"CalcPrecision",Ji(!0)),s&&jm(r,"RefreshAll",Ji(!1)),jm(r,"BookBool",Zi(0)),Wm(r,e,n),Hm(r,e.SSF,n),Km(r,n),s&&jm(r,"UsesELFs",Ji(!1));var u=r.end(),d=rn();s&&jm(d,"Country",Ya()),s&&n.Strings&&Fm(d,"SST",Ho(n.Strings,n)),jm(d,"EOF");var f=d.end(),h=rn(),p=0,m=0;for(m=0;m<e.SheetNames.length;++m)p+=(s?12:11)+(s?2:1)*e.SheetNames[m].length;var g=u.length+p+f.length;for(m=0;m<e.SheetNames.length;++m){var v=o[m]||{};jm(h,"BoundSheet8",Vo({pos:g,hs:v.Hidden||0,dt:0,name:e.SheetNames[m]},n)),g+=t[m].length}var y=h.end();if(p!=y.length)throw new Error("BS8 "+p+" != "+y.length);var b=[];return u.length&&b.push(u),y.length&&b.push(y),f.length&&b.push(f),xt([b])}function Zm(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=j.get_table()),e&&e.SSF&&(F(j),j.load_table(e.SSF),n.revssf=te(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,kg(n),n.cellXfs=[],yf(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=Jm(i,n,e);return r.unshift(Qm(e,r,n)),xt([r])}function eg(e,t){var n=t||{};switch(n.biff||2){case 8:case 5:return Zm(e,t);case 4:case 3:case 2:return Vm(e,t)}throw new Error("invalid type "+n.bookType+" for BIFF")}var tg=function(){function e(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r=n.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var i=e.match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var o=e.match(/<\/table/i),a=i.index,s=o&&o.index||e.length,l=_e(e.slice(a,s),/(:?<tr[^>]*>)/i,"<tr>"),c=-1,u=0,d=0,f=0,h={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(a=0;a<l.length;++a){var m=l[a].trim(),g=m.slice(0,3).toLowerCase();if("<tr"!=g){if("<td"==g||"<th"==g){var v=m.split(/<\/t[dh]>/i);for(s=0;s<v.length;++s){var y=v[s].trim();if(y.match(/<t[dh]/i)){var b=y,_=0;while("<"==b.charAt(0)&&(_=b.indexOf(">"))>-1)b=b.slice(_+1);for(var x=0;x<p.length;++x){var S=p[x];S.s.c==u&&S.s.r<c&&c<=S.e.r&&(u=S.e.c+1,x=-1)}var C=Fe(y.slice(0,y.indexOf(">")));f=C.colspan?+C.colspan:1,((d=+C.rowspan)>1||f>1)&&p.push({s:{r:c,c:u},e:{r:c+(d||1)-1,c:u+f-1}});var E=C.t||"";if(b.length){if(b=ot(b),h.s.r>c&&(h.s.r=c),h.e.r<c&&(h.e.r=c),h.s.c>u&&(h.s.c=u),h.e.c<u&&(h.e.c=u),b.length){var k={t:"s",v:b};n.raw||!b.trim().length||"s"==E||("TRUE"===b?k={t:"b",v:!0}:"FALSE"===b?k={t:"b",v:!1}:isNaN(ge(b))?isNaN(ve(b).getDate())||(k={t:"d",v:fe(b)},n.cellDates||(k={t:"n",v:ie(k.v)}),k.z=n.dateNF||j._table[14]):k={t:"n",v:ge(b)}),n.dense?(r[c]||(r[c]=[]),r[c][u]=k):r[xn({r:c,c:u})]=k,u+=f}}else u+=f}}}}else{if(++c,n.sheetRows&&n.sheetRows<=c){--c;break}u=0}}return r["!ref"]=Cn(h),p.length&&(r["!merges"]=p),r}function t(t,n){return Tn(e(t,n),n)}function n(e,t,n,r){for(var i=e["!merges"]||[],o=[],a=t.s.c;a<=t.e.c;++a){for(var s=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>n||i[c].s.c>a)&&!(i[c].e.r<n||i[c].e.c<a)){if(i[c].s.r<n||i[c].s.c<a){s=-1;break}s=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(s<0)){var u=xn({r:n,c:a}),d=r.dense?(e[n]||[])[a]:e[u],f=d&&null!=d.v&&(d.h||Ke(d.w||(On(d),d.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),h.t=d&&d.t||"z",r.editable&&(f='<span contenteditable="true">'+f+"</span>"),h.id=(r.id||"sjs")+"-"+u,"z"!=h.t&&(h.v=d.v,null!=d.z&&(h.z=d.z)),o.push(ht("td",f,h))}}var p="<tr>";return p+o.join("")+"</tr>"}function r(e,t,n){var r=[];return r.join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}var i='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',o="</body></html>";function a(e,t){var a=t||{},s=null!=a.header?a.header:i,l=null!=a.footer?a.footer:o,c=[s],u=Sn(e["!ref"]);a.dense=Array.isArray(e),c.push(r(e,u,a));for(var d=u.s.r;d<=u.e.r;++d)c.push(n(e,u,d,a));return c.push("</table>"+l),c.join("")}return{to_workbook:t,to_sheet:e,_row:n,BEGIN:i,END:o,_preamble:r,from_sheet:a}}();function ng(e,t,n){var r=n||{};null!=w&&(r.dense=w);var i=0,o=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var a="string"==typeof r.origin?wn(r.origin):r.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var u=Sn(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==i&&(c.e.r=i=u.e.r+1)}var d=[],f=0,h=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,y=0,b=0;for(e["!cols"]||(e["!cols"]=[]);p<s.length&&m<l;++p){var _=s[p];if(og(_)){if(r.display)continue;h[m]={hidden:!0}}var x=_.children;for(g=v=0;g<x.length;++g){var S=x[g];if(!r.display||!og(S)){var C=S.hasAttribute("v")?S.getAttribute("v"):ot(S.innerHTML),E=S.getAttribute("z");for(f=0;f<d.length;++f){var k=d[f];k.s.c==v+o&&k.s.r<m+i&&m+i<=k.e.r&&(v=k.e.c+1-o,f=-1)}b=+S.getAttribute("colspan")||1,((y=+S.getAttribute("rowspan")||1)>1||b>1)&&d.push({s:{r:m+i,c:v+o},e:{r:m+i+(y||1)-1,c:v+o+(b||1)-1}});var O={t:"s",v:C},T=S.getAttribute("t")||"";null!=C&&(0==C.length?O.t=T||"z":r.raw||0==C.trim().length||"s"==T||("TRUE"===C?O={t:"b",v:!0}:"FALSE"===C?O={t:"b",v:!1}:isNaN(ge(C))?isNaN(ve(C).getDate())||(O={t:"d",v:fe(C)},r.cellDates||(O={t:"n",v:ie(O.v)}),O.z=r.dateNF||j._table[14]):O={t:"n",v:ge(C)})),void 0===O.z&&null!=E&&(O.z=E),r.dense?(e[m+i]||(e[m+i]=[]),e[m+i][v+o]=O):e[xn({c:v+o,r:m+i})]=O,c.e.c<v+o&&(c.e.c=v+o),v+=b}}++m}return d.length&&(e["!merges"]=(e["!merges"]||[]).concat(d)),c.e.r=Math.max(c.e.r,m-1+i),e["!ref"]=Cn(c),m>=l&&(e["!fullref"]=Cn((c.e.r=s.length-p+m-1+i,c))),e}function rg(e,t){var n=t||{},r=n.dense?[]:{};return ng(r,e,t)}function ig(e,t){return Tn(rg(e,t),t)}function og(e){var t="",n=ag(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style.display),"none"===t}function ag(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}var sg=function(){var e=function(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),n=Ue(t.replace(/<[^>]*>/g,""));return[n]},t={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};return function(n,r){var i=r||{};null!=w&&null==i.dense&&(i.dense=w);var o,a,s,l,c,u,d,f=am(n),h=[],p={name:""},m="",g=0,v={},y=[],b=i.dense?[]:{},_={value:""},x="",S=0,C=[],E=-1,k=-1,O={s:{r:1e6,c:1e7},e:{r:0,c:0}},T=0,I={},A=[],R={},P=0,M=0,N=[],L=1,D=1,j=[],F={Names:[]},B={},q=["",""],z=[],U={},G="",V=0,W=!1,H=!1,$=0;sm.lastIndex=0,f=f.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");while(c=sm.exec(f))switch(c[3]=c[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===c[1]?(O.e.c>=O.s.c&&O.e.r>=O.s.r?b["!ref"]=Cn(O):b["!ref"]="A1:A1",i.sheetRows>0&&i.sheetRows<=O.e.r&&(b["!fullref"]=b["!ref"],O.e.r=i.sheetRows-1,b["!ref"]=Cn(O)),A.length&&(b["!merges"]=A),N.length&&(b["!rows"]=N),s.name=s["名称"]||s.name,"undefined"!==typeof JSON&&JSON.stringify(s),y.push(s.name),v[s.name]=b,H=!1):"/"!==c[0].charAt(c[0].length-2)&&(s=Fe(c[0],!1),E=k=-1,O.s.r=O.s.c=1e7,O.e.r=O.e.c=0,b=i.dense?[]:{},A=[],N=[],H=!0);break;case"table-row-group":"/"===c[1]?--T:++T;break;case"table-row":case"行":if("/"===c[1]){E+=L,L=1;break}if(l=Fe(c[0],!1),l["行号"]?E=l["行号"]-1:-1==E&&(E=0),L=+l["number-rows-repeated"]||1,L<10)for($=0;$<L;++$)T>0&&(N[E+$]={level:T});k=-1;break;case"covered-table-cell":"/"!==c[1]&&++k,i.sheetStubs&&(i.dense?(b[E]||(b[E]=[]),b[E][k]={t:"z"}):b[xn({r:E,c:k})]={t:"z"}),x="",C=[];break;case"table-cell":case"数据":if("/"===c[0].charAt(c[0].length-2))++k,_=Fe(c[0],!1),D=parseInt(_["number-columns-repeated"]||"1",10),u={t:"z",v:null},_.formula&&0!=i.cellFormula&&(u.f=lf(Ue(_.formula))),"string"==(_["数据类型"]||_["value-type"])&&(u.t="s",u.v=Ue(_["string-value"]||""),i.dense?(b[E]||(b[E]=[]),b[E][k]=u):b[xn({r:E,c:k})]=u),k+=D-1;else if("/"!==c[1]){++k,D=1;var K=L?E+L-1:E;if(k>O.e.c&&(O.e.c=k),k<O.s.c&&(O.s.c=k),E<O.s.r&&(O.s.r=E),K>O.e.r&&(O.e.r=K),_=Fe(c[0],!1),z=[],U={},u={t:_["数据类型"]||_["value-type"],v:null},i.cellFormula)if(_.formula&&(_.formula=Ue(_.formula)),_["number-matrix-columns-spanned"]&&_["number-matrix-rows-spanned"]&&(P=parseInt(_["number-matrix-rows-spanned"],10)||0,M=parseInt(_["number-matrix-columns-spanned"],10)||0,R={s:{r:E,c:k},e:{r:E+P-1,c:k+M-1}},u.F=Cn(R),j.push([R,u.F])),_.formula)u.f=lf(_.formula);else for($=0;$<j.length;++$)E>=j[$][0].s.r&&E<=j[$][0].e.r&&k>=j[$][0].s.c&&k<=j[$][0].e.c&&(u.F=j[$][1]);switch((_["number-columns-spanned"]||_["number-rows-spanned"])&&(P=parseInt(_["number-rows-spanned"],10)||0,M=parseInt(_["number-columns-spanned"],10)||0,R={s:{r:E,c:k},e:{r:E+P-1,c:k+M-1}},A.push(R)),_["number-columns-repeated"]&&(D=parseInt(_["number-columns-repeated"],10)),u.t){case"boolean":u.t="b",u.v=Qe(_["boolean-value"]);break;case"float":u.t="n",u.v=parseFloat(_.value);break;case"percentage":u.t="n",u.v=parseFloat(_.value);break;case"currency":u.t="n",u.v=parseFloat(_.value);break;case"date":u.t="d",u.v=fe(_["date-value"]),i.cellDates||(u.t="n",u.v=ie(u.v)),u.z="m/d/yy";break;case"time":u.t="n",u.v=ce(_["time-value"])/86400;break;case"number":u.t="n",u.v=parseFloat(_["数据数值"]);break;default:if("string"!==u.t&&"text"!==u.t&&u.t)throw new Error("Unsupported value type "+u.t);u.t="s",null!=_["string-value"]&&(x=Ue(_["string-value"]),C=[])}}else{if(W=!1,"s"===u.t&&(u.v=x||"",C.length&&(u.R=C),W=0==S),B.Target&&(u.l=B),z.length>0&&(u.c=z,z=[]),x&&!1!==i.cellText&&(u.w=x),W&&(u.t="z",delete u.v),(!W||i.sheetStubs)&&!(i.sheetRows&&i.sheetRows<=E))for(var X=0;X<L;++X){if(D=parseInt(_["number-columns-repeated"]||"1",10),i.dense){b[E+X]||(b[E+X]=[]),b[E+X][k]=0==X?u:pe(u);while(--D>0)b[E+X][k+D]=pe(u)}else{b[xn({r:E+X,c:k})]=u;while(--D>0)b[xn({r:E+X,c:k+D})]=pe(u)}O.e.c<=k&&(O.e.c=k)}D=parseInt(_["number-columns-repeated"]||"1",10),k+=D-1,D=0,u={},x="",C=[]}B={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":if("/"===c[1]){if((o=h.pop())[0]!==c[3])throw"Bad state: "+o}else"/"!==c[0].charAt(c[0].length-2)&&h.push([c[3],!0]);break;case"annotation":if("/"===c[1]){if((o=h.pop())[0]!==c[3])throw"Bad state: "+o;U.t=x,C.length&&(U.R=C),U.a=G,z.push(U)}else"/"!==c[0].charAt(c[0].length-2)&&h.push([c[3],!1]);G="",V=0,x="",S=0,C=[];break;case"creator":"/"===c[1]?G=f.slice(V,c.index):V=c.index+c[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===c[1]){if((o=h.pop())[0]!==c[3])throw"Bad state: "+o}else"/"!==c[0].charAt(c[0].length-2)&&h.push([c[3],!1]);x="",S=0,C=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===c[1]){if(I[p.name]=m,(o=h.pop())[0]!==c[3])throw"Bad state: "+o}else"/"!==c[0].charAt(c[0].length-2)&&(m="",p=Fe(c[0],!1),h.push([c[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"master-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(h[h.length-1][0]){case"time-style":case"date-style":a=Fe(c[0],!1),m+=t[c[3]]["long"===a.style?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":a=Fe(c[0],!1),m+=t[c[3]]["long"===a.style?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if("/>"===c[0].slice(-2))break;if("/"===c[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":m+=f.slice(g,c.index);break}else g=c.index+c[0].length;break;case"named-range":a=Fe(c[0],!1),q=uf(a["cell-range-address"]);var Y={Name:a.name,Ref:q[0]+"!"+q[1]};H&&(Y.Sheet=y.length),F.Names.push(Y);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if("/"!==c[1]||_&&_["string-value"])d=Fe(c[0],!1),S=c.index+c[0].length;else{var J=e(f.slice(S,c.index),d);x=(x.length>0?x+"\n":"")+J[0]}break;case"s":break;case"database-range":if("/"===c[1])break;try{q=uf(Fe(c[0])["target-range-address"]),v[q[0]]["!autofilter"]={ref:q[1]}}catch(uv){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if("/"!==c[1]){if(B=Fe(c[0],!1),!B.href)break;B.Target=B.href,delete B.href,"#"==B.Target.charAt(0)&&B.Target.indexOf(".")>-1&&(q=uf(B.Target.slice(1)),B.Target="#"+q[0]+"!"+q[1])}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(c[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(i.WTF)throw new Error(c)}}var Q={Sheets:v,SheetNames:y,Workbook:F};return i.bookSheets&&delete Q.Sheets,Q}}();function lg(e,t){t=t||{};var n=!!Ce(e,"objectdata");n&&Jr(ke(e,"META-INF/manifest.xml"),t);var r=Oe(e,"content.xml");if(!r)throw new Error("Missing content.xml in "+(n?"ODS":"UOF")+" file");var i=sg(n?r:Ze(r),t);return Ce(e,"meta.xml")&&(i.Props=oi(ke(e,"meta.xml"))),i}function cg(e,t){return sg(e,t)}var ug=function(){var e="<office:document-styles "+ft({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+"></office:document-styles>";return function(){return Me+e}}(),dg=function(){var e=function(e){return We(e).replace(/  +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"<text:line-break/>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t="          <table:table-cell />\n",n="          <table:covered-table-cell/>\n",r=function(r,i,o){var a=[];a.push('      <table:table table:name="'+We(i.SheetNames[o])+'" table:style-name="ta1">\n');var s=0,l=0,c=Sn(r["!ref"]),u=r["!merges"]||[],d=0,f=Array.isArray(r);for(s=0;s<c.s.r;++s)a.push("        <table:table-row></table:table-row>\n");for(;s<=c.e.r;++s){for(a.push("        <table:table-row>\n"),l=0;l<c.s.c;++l)a.push(t);for(;l<=c.e.c;++l){var h=!1,p={},m="";for(d=0;d!=u.length;++d)if(!(u[d].s.c>l)&&!(u[d].s.r>s)&&!(u[d].e.c<l)&&!(u[d].e.r<s)){u[d].s.c==l&&u[d].s.r==s||(h=!0),p["table:number-columns-spanned"]=u[d].e.c-u[d].s.c+1,p["table:number-rows-spanned"]=u[d].e.r-u[d].s.r+1;break}if(h)a.push(n);else{var g=xn({r:s,c:l}),v=f?(r[s]||[])[l]:r[g];if(v&&v.f&&(p["table:formula"]=We(cf(v.f)),v.F&&v.F.slice(0,g.length)==g)){var y=Sn(v.F);p["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,p["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(v){switch(v.t){case"b":m=v.v?"TRUE":"FALSE",p["office:value-type"]="boolean",p["office:boolean-value"]=v.v?"true":"false";break;case"n":m=v.w||String(v.v||0),p["office:value-type"]="float",p["office:value"]=v.v||0;break;case"s":case"str":m=null==v.v?"":v.v,p["office:value-type"]="string";break;case"d":m=v.w||fe(v.v).toISOString(),p["office:value-type"]="date",p["office:date-value"]=fe(v.v).toISOString(),p["table:style-name"]="ce1";break;default:a.push(t);continue}var b=e(m);if(v.l&&v.l.Target){var _=v.l.Target;_="#"==_.charAt(0)?"#"+df(_.slice(1)):_,b=ht("text:a",b,{"xlink:href":_})}a.push("          "+ht("table:table-cell",ht("text:p",b,{}),p)+"\n")}else a.push(t)}}a.push("        </table:table-row>\n")}return a.push("      </table:table>\n"),a.join("")},i=function(e){e.push(" <office:automatic-styles>\n"),e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push('   <number:month number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push('   <number:day number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push("   <number:year/>\n"),e.push("  </number:date-style>\n"),e.push('  <style:style style:name="ta1" style:family="table">\n'),e.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push("  </style:style>\n"),e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")};return function(e,t){var n=[Me],o=ft({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),a=ft({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?n.push("<office:document"+o+a+">\n"):n.push("<office:document-content"+o+">\n"),i(n),n.push("  <office:body>\n"),n.push("    <office:spreadsheet>\n");for(var s=0;s!=e.SheetNames.length;++s)n.push(r(e.Sheets[e.SheetNames[s]],e,s,t));return n.push("    </office:spreadsheet>\n"),n.push("  </office:body>\n"),"fods"==t.bookType?n.push("</office:document>"):n.push("</office:document-content>"),n.join("")}}();function fg(e,t){if("fods"==t.bookType)return dg(e,t);var n=Ae(),r="",i=[],o=[];return r="mimetype",Ie(n,r,"application/vnd.oasis.opendocument.spreadsheet"),r="content.xml",Ie(n,r,dg(e,t)),i.push([r,"text/xml"]),o.push([r,"ContentFile"]),r="styles.xml",Ie(n,r,ug(e,t)),i.push([r,"text/xml"]),o.push([r,"StylesFile"]),r="meta.xml",Ie(n,r,ni()),i.push([r,"text/xml"]),o.push([r,"MetadataFile"]),r="manifest.rdf",Ie(n,r,ti(o)),i.push([r,"application/rdf+xml"]),r="META-INF/manifest.xml",Ie(n,r,Qr(i)),n}function hg(e,t){if(!t)return 0;var n=e.SheetNames.indexOf(t);if(-1==n)throw new Error("Sheet not found: "+t);return n}function pg(e){return function(t,n){var r=hg(t,n.sheet);return e.from_sheet(t.Sheets[t.SheetNames[r]],n,t)}}var mg=pg(tg),gg=pg({from_sheet:iv}),vg=pg("undefined"!==typeof vs?vs:{}),yg=pg("undefined"!==typeof ys?ys:{}),bg=pg("undefined"!==typeof _s?_s:{}),_g=pg("undefined"!==typeof ul?ul:{}),wg=pg({from_sheet:ov}),xg=pg("undefined"!==typeof gs?gs:{}),Sg=pg("undefined"!==typeof bs?bs:{});function Cg(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}var Eg=function(e){Cg([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)},kg=Cg([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]]);function Og(e){return Gr.WS.indexOf(e)>-1?"sheet":Gr.CS&&e==Gr.CS?"chart":Gr.DS&&e==Gr.DS?"dialog":Gr.MS&&e==Gr.MS?"macro":e&&e.length?e:"sheet"}function Tg(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,Og(e["!id"][t.id].Type)]}))}catch(uv){return null}return e&&0!==e.length?e:null}function Ig(e,t,n,r,i,o,a,s,l,c,u,d){try{o[r]=Wr(Oe(e,n,!0),t);var f,h=ke(e,t);switch(s){case"sheet":f=Lp(h,t,i,l,o[r],c,u,d);break;case"chart":if(f=Dp(h,t,i,l,o[r],c,u,d),!f||!f["!drawel"])break;var p=Pe(f["!drawel"].Target,t),m=Vr(p),g=qc(Oe(e,p,!0),Wr(Oe(e,m,!0),p)),v=Pe(g,p),y=Vr(v);f=np(Oe(e,v,!0),v,l,Wr(Oe(e,y,!0),v),c,f);break;case"macro":f=jp(h,t,i,l,o[r],c,u,d);break;case"dialog":f=Fp(h,t,i,l,o[r],c,u,d);break;default:throw new Error("Unrecognized sheet type "+s)}a[r]=f;var b=[];o&&o[r]&&Q(o[r]).forEach((function(n){if(o[r][n].Type==Gr.CMNT){var i=Pe(o[r][n].Target,t);if(b=Up(ke(e,i,!0),i,l),!b||!b.length)return;Gc(f,b)}}))}catch(uv){if(l.WTF)throw uv}}function Ag(e){return"/"==e.charAt(0)?e.slice(1):e}function Rg(e,t){if(F(j),t=t||{},Eg(t),Ce(e,"META-INF/manifest.xml"))return lg(e,t);if(Ce(e,"objectdata.xml"))return lg(e,t);if(Ce(e,"Index/Document.iwa"))throw new Error("Unsupported NUMBERS file");var n,r,i=Te(e),o=Br(Oe(e,"[Content_Types].xml")),a=!1;if(0===o.workbooks.length&&(r="xl/workbook.xml",ke(e,r,!0)&&o.workbooks.push(r)),0===o.workbooks.length){if(r="xl/workbook.bin",!ke(e,r,!0))throw new Error("Could not find workbook");o.workbooks.push(r),a=!0}"bin"==o.workbooks[0].slice(-3)&&(a=!0);var s={},l={};if(!t.bookSheets&&!t.bookProps){if(ff=[],o.sst)try{ff=zp(ke(e,Ag(o.sst)),o.sst,t)}catch(uv){if(t.WTF)throw uv}t.cellStyles&&o.themes.length&&(s=qp(Oe(e,o.themes[0].replace(/^\//,""),!0)||"",o.themes[0],t)),o.style&&(l=Bp(ke(e,Ag(o.style)),o.style,s,t))}o.links.map((function(n){try{var r=Wr(Oe(e,Vr(Ag(n))),n);return Vp(ke(e,Ag(n)),r,n,t)}catch(uv){}}));var c=Np(ke(e,Ag(o.workbooks[0])),o.workbooks[0],t),u={},d="";o.coreprops.length&&(d=ke(e,Ag(o.coreprops[0]),!0),d&&(u=oi(d)),0!==o.extprops.length&&(d=ke(e,Ag(o.extprops[0]),!0),d&&fi(d,u,t)));var f={};t.bookSheets&&!t.bookProps||0!==o.custprops.length&&(d=Oe(e,Ag(o.custprops[0]),!0),d&&(f=gi(d,t)));var h={};if((t.bookSheets||t.bookProps)&&(c.Sheets?n=c.Sheets.map((function(e){return e.name})):u.Worksheets&&u.SheetNames.length>0&&(n=u.SheetNames),t.bookProps&&(h.Props=u,h.Custprops=f),t.bookSheets&&"undefined"!==typeof n&&(h.SheetNames=n),t.bookSheets?h.SheetNames:t.bookProps))return h;n={};var p={};t.bookDeps&&o.calcchain&&(p=Gp(ke(e,Ag(o.calcchain)),o.calcchain,t));var m,g,v=0,y={},b=c.Sheets;u.Worksheets=b.length,u.SheetNames=[];for(var _=0;_!=b.length;++_)u.SheetNames[_]=b[_].name;var w=a?"bin":"xml",x=o.workbooks[0].lastIndexOf("/"),S=(o.workbooks[0].slice(0,x+1)+"_rels/"+o.workbooks[0].slice(x+1)+".rels").replace(/^\//,"");Ce(e,S)||(S="xl/_rels/workbook."+w+".rels");var C=Wr(Oe(e,S,!0),S);C&&(C=Tg(C,c.Sheets));var E=ke(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(v=0;v!=u.Worksheets;++v){var k="sheet";if(C&&C[v]?(m="xl/"+C[v][1].replace(/[\/]?xl\//,""),Ce(e,m)||(m=C[v][1]),Ce(e,m)||(m=S.replace(/_rels\/.*$/,"")+C[v][1]),k=C[v][2]):(m="xl/worksheets/sheet"+(v+1-E)+"."+w,m=m.replace(/sheet0\./,"sheet.")),g=m.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(v!=t.sheets)continue e;break;case"string":if(u.SheetNames[v].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var O=!1,T=0;T!=t.sheets.length;++T)"number"==typeof t.sheets[T]&&t.sheets[T]==v&&(O=1),"string"==typeof t.sheets[T]&&t.sheets[T].toLowerCase()==u.SheetNames[v].toLowerCase()&&(O=1);if(!O)continue e}}Ig(e,m,g,u.SheetNames[v],v,y,n,k,t,c,s,l)}return h={Directory:o,Workbook:c,Props:u,Custprops:f,Deps:p,Sheets:n,SheetNames:u.SheetNames,Strings:ff,Styles:l,Themes:s,SSF:j.get_table()},t&&t.bookFiles&&(h.keys=i,h.files=e.files),t&&t.bookVBA&&(o.vba.length>0?h.vbaraw=ke(e,Ag(o.vba[0]),!0):o.defaults&&o.defaults.bin===Zc&&(h.vbaraw=ke(e,"xl/vbaProject.bin",!0))),h}function Pg(e,t){var n=t||{},r="Workbook",i=K.find(e,r);try{if(r="/!DataSpaces/Version",i=K.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(Gs(i.content),r="/!DataSpaces/DataSpaceMap",i=K.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=Ws(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=K.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=Hs(i.content);if(1!=a.length||"StrongEncryptionTransform"!=a[0])throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=K.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);Ks(i.content)}catch(uv){}if(r="/EncryptionInfo",i=K.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=Js(i.content);if(r="/EncryptedPackage",i=K.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(4==s[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(s[1],i.content,n.password||"",n);if(2==s[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(s[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function Mg(e,t){if(zc=1024,"ods"==t.bookType)return fg(e,t);e&&!e.SSF&&(e.SSF=j.get_table()),e&&e.SSF&&(F(j),j.load_table(e.SSF),t.revssf=te(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,pf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=nu.indexOf(t.bookType)>-1,i=Fr();kg(t=t||{});var o=Ae(),a="",s=0;if(t.cellXfs=[],yf(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",Ie(o,a,li(e.Props,t)),i.coreprops.push(a),Xr(t.rels,2,a,Gr.CORE_PROPS),a="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c<e.SheetNames.length;++c)2!=(e.Workbook.Sheets[c]||{}).Hidden&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,Ie(o,a,pi(e.Props,t)),i.extprops.push(a),Xr(t.rels,3,a,Gr.EXT_PROPS),e.Custprops!==e.Props&&Q(e.Custprops||{}).length>0&&(a="docProps/custom.xml",Ie(o,a,yi(e.Custprops,t)),i.custprops.push(a),Xr(t.rels,4,a,Gr.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],f=(d||{})["!type"]||"sheet";switch(f){case"chart":default:a="xl/worksheets/sheet"+s+"."+n,Ie(o,a,Hp(s-1,a,t,e,u)),i.sheets.push(a),Xr(t.wbrels,-1,"worksheets/sheet"+s+"."+n,Gr.WS[0])}if(d){var h=d["!comments"],p=!1;if(h&&h.length>0){var m="xl/comments"+s+"."+n;Ie(o,m,Xp(h,m,t)),i.comments.push(m),Xr(u,-1,"../comments"+s+"."+n,Gr.CMNT),p=!0}d["!legacy"]&&p&&Ie(o,"xl/drawings/vmlDrawing"+s+".vml",Uc(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}u["!id"].rId1&&Ie(o,Vr(a),$r(u))}return null!=t.Strings&&t.Strings.length>0&&(a="xl/sharedStrings."+n,Ie(o,a,Kp(t.Strings,a,t)),i.strs.push(a),Xr(t.wbrels,-1,"sharedStrings."+n,Gr.SST)),a="xl/workbook."+n,Ie(o,a,Wp(e,a,t)),i.workbooks.push(a),Xr(t.rels,1,a,Gr.WB),a="xl/theme/theme1.xml",Ie(o,a,kc(e.Themes,t)),i.themes.push(a),Xr(t.wbrels,-1,"theme/theme1.xml",Gr.THEME),a="xl/styles."+n,Ie(o,a,$p(e,a,t)),i.styles.push(a),Xr(t.wbrels,-1,"styles."+n,Gr.STY),e.vbaraw&&r&&(a="xl/vbaProject.bin",Ie(o,a,e.vbaraw),i.vba.push(a),Xr(t.wbrels,-1,"vbaProject.bin",Gr.VBA)),Ie(o,"[Content_Types].xml",Ur(i,t)),Ie(o,"_rels/.rels",$r(t.rels)),Ie(o,"xl/_rels/workbook."+n+".rels",$r(t.wbrels)),delete t.revssf,delete t.ssf,o}function Ng(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=S.decode(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Lg(e,t){return K.find(e,"EncryptedPackage")?Pg(e,t):Rm(e,t)}function Dg(e,t){var n,r=e,o=t||{};return o.type||(o.type=C&&i.isBuffer(e)?"buffer":"base64"),n=Re(r,o),Rg(n,o)}function jg(e,t){var n=0;e:while(n<e.length)switch(e.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return cm(e.slice(n),t);default:break e}return _s.to_workbook(e,t)}function Fg(e,t){var n="",r=Ng(e,t);switch(t.type){case"base64":n=S.decode(e);break;case"binary":n=e;break;case"buffer":n=e.toString("binary");break;case"array":n=he(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]&&(n=Ze(n)),jg(n,t)}function Bg(e,t){var n=e;return"base64"==t.type&&(n=S.decode(n)),n=cptable.utils.decode(1200,n.slice(2),"str"),t.type="binary",jg(n,t)}function qg(e){return e.match(/[^\x00-\x7F]/)?et(e):e}function zg(e,t,n,r){return r?(n.type="string",_s.to_workbook(e,n)):_s.to_workbook(t,n)}function Ug(e,t){if(p(),"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer)return Ug(new Uint8Array(e),t);var n=e,r=[0,0,0,0],o=!1,a=t||{};if(a.cellStyles&&(a.cellNF=!0,a.sheetStubs=!0),hf={},a.dateNF&&(hf.dateNF=a.dateNF),a.type||(a.type=C&&i.isBuffer(e)?"buffer":"base64"),"file"==a.type&&(a.type=C?"buffer":"binary",n=J(e)),"string"==a.type&&(o=!0,a.type="binary",a.codepage=65001,n=qg(e)),"array"==a.type&&"undefined"!==typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!==typeof ArrayBuffer){var s=new ArrayBuffer(3),l=new Uint8Array(s);if(l.foo="bar",!l.foo)return a=pe(a),a.type="array",Ug(M(n),a)}switch((r=Ng(n,a))[0]){case 208:if(207===r[1]&&17===r[2]&&224===r[3]&&161===r[4]&&177===r[5]&&26===r[6]&&225===r[7])return Lg(K.read(n,a),a);break;case 9:if(r[1]<=4)return Rm(n,a);break;case 60:return cm(n,a);case 73:if(68===r[1])return ws(n,a);break;case 84:if(65===r[1]&&66===r[2]&&76===r[3])return ys.to_workbook(n,a);break;case 80:return 75===r[1]&&r[2]<9&&r[3]<9?Dg(n,a):zg(e,n,a,o);case 239:return 60===r[3]?cm(n,a):zg(e,n,a,o);case 255:if(254===r[1])return Bg(n,a);break;case 0:if(0===r[1]&&r[2]>=2&&0===r[3])return xs.to_workbook(n,a);break;case 3:case 131:case 139:case 140:return gs.to_workbook(n,a);case 123:if(92===r[1]&&114===r[2]&&116===r[3])return ul.to_workbook(n,a);break;case 10:case 13:case 32:return Fg(n,a)}return gs.versions.indexOf(r[0])>-1&&r[2]<=12&&r[3]<=31?gs.to_workbook(n,a):zg(e,n,a,o)}function Gg(e,t){var n=t||{};return n.type="file",Ug(e,n)}function Vg(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Y(t.file,K.write(e,{type:C?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return K.write(e,t)}function Wg(e,t){var n=t||{},r=Mg(e,n),i={};if(n.compression&&(i.compression="DEFLATE"),n.password)i.type=C?"nodebuffer":"string";else switch(n.type){case"base64":i.type="base64";break;case"binary":i.type="string";break;case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");case"buffer":case"file":i.type=C?"nodebuffer":"string";break;default:throw new Error("Unrecognized type "+n.type)}var o=r.FullPaths?K.write(r,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[i.type]||i.type}):r.generate(i);return n.password&&"undefined"!==typeof encrypt_agile?Vg(encrypt_agile(o,n.password),n):"file"===n.type?Y(n.file,o):"string"==n.type?Ze(o):o}function Hg(e,t){var n=t||{},r=Pm(e,n);return Vg(r,n)}function $g(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return S.encode(et(r));case"binary":return et(r);case"string":return e;case"file":return Y(t.file,r,"utf8");case"buffer":return C?E(r,"utf8"):$g(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function Kg(e,t){switch(t.type){case"base64":return S.encode(e);case"binary":return e;case"string":return e;case"file":return Y(t.file,e,"binary");case"buffer":return C?E(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function Xg(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return"base64"==t.type?S.encode(n):"string"==t.type?Ze(n):n;case"file":return Y(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Yg(e,t){p(),vp(e);var n=t||{};if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=Yg(e,n);return n.type="array",A(r)}switch(n.bookType||"xlsb"){case"xml":case"xlml":return $g(xm(e,n),n);case"slk":case"sylk":return $g(vg(e,n),n);case"htm":case"html":return $g(mg(e,n),n);case"txt":return Kg(wg(e,n),n);case"csv":return $g(gg(e,n),n,"\ufeff");case"dif":return $g(yg(e,n),n);case"dbf":return Xg(xg(e,n),n);case"prn":return $g(bg(e,n),n);case"rtf":return $g(_g(e,n),n);case"eth":return $g(Sg(e,n),n);case"fods":return $g(fg(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),Xg(eg(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),Hg(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"ods":return Wg(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function Jg(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},n=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();n.match(/^\.[a-z]+$/)&&(e.bookType=n.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function Qg(e,t,n){var r=n||{};return r.type="file",r.file=t,Jg(r),Yg(e,r)}function Zg(e,t,n,r){var i=n||{};i.type="file",i.file=e,Jg(i),i.type="buffer";var o=r;return o instanceof Function||(o=n),H.writeFile(e,Yg(t,i),o)}function ev(e,t,n,r,i,o,a,s){var l=hn(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,f=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(f,"__rowNum__",{value:n,enumerable:!1})}catch(uv){f.__rowNum__=n}else f.__rowNum__=n;if(!a||e[n])for(var h=t.s.c;h<=t.e.c;++h){var p=a?e[n][h]:e[r[h]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=o[h]){if(null==m)if(void 0!==c)f[o[h]]=c;else{if(!u||null!==m)continue;f[o[h]]=null}else f[o[h]]=u||s.rawNumbers&&"n"==p.t?m:On(p,m,s);null!=m&&(d=!1)}}else{if(void 0===c)continue;null!=o[h]&&(f[o[h]]=c)}}return{row:f,isempty:d}}function tv(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=En(u);break;case"number":l=En(e["!ref"]),l.s.r=u;break;default:l=u}r>0&&(i=0);var d=hn(l.s.r),f=[],h=[],p=0,m=0,g=Array.isArray(e),v=l.s.r,y=0,b=0;for(g&&!e[v]&&(e[v]=[]),y=l.s.c;y<=l.e.c;++y)switch(f[y]=vn(y),n=g?e[v][y]:e[f[y]+d],r){case 1:o[y]=y-l.s.c;break;case 2:o[y]=f[y];break;case 3:o[y]=c.header[y-l.s.c];break;default:for(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=On(n,null,c),m=0,b=0;b<o.length;++b)o[b]==s&&(s=a+"_"+ ++m);o[y]=s}for(v=l.s.r+i;v<=l.e.r;++v){var _=ev(e,l,v,f,r,o,g,c);(!1===_.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(h[p++]=_.row)}return h.length=p,h}var nv=/"/g;function rv(e,t,n,r,i,o,a,s){for(var l=!0,c=[],u="",d=hn(n),f=t.s.c;f<=t.e.c;++f)if(r[f]){var h=s.dense?(e[n]||[])[f]:e[r[f]+d];if(null==h)u="";else if(null!=h.v){l=!1,u=""+(s.rawNumbers&&"n"==h.t?h.v:On(h,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===o||34===m||s.forceQuotes){u='"'+u.replace(nv,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==h.f||h.F?u="":(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(nv,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(a)}function iv(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=En(e["!ref"]),o=void 0!==r.FS?r.FS:",",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),u="",d=[];r.dense=Array.isArray(e);for(var f=r.skipHidden&&e["!cols"]||[],h=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(f[p]||{}).hidden||(d[p]=vn(p));for(var m=i.s.r;m<=i.e.r;++m)(h[m]||{}).hidden||(u=rv(e,i,m,d,a,l,o,r),null!=u&&(r.strip&&(u=u.replace(c,"")),n.push(u+s)));return delete r.dense,n.join("")}function ov(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=iv(e,t);if("undefined"==typeof cptable||"string"==t.type)return n;var r=cptable.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function av(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,o=En(e["!ref"]),a="",s=[],l=[],c=Array.isArray(e);for(i=o.s.c;i<=o.e.c;++i)s[i]=vn(i);for(var u=o.s.r;u<=o.e.r;++u)for(a=hn(u),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,t=c?(e[u]||[])[i]:e[n],r="",void 0!==t){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l}function sv(e,t,n){var r,i=n||{},o=+!i.skipHeader,a=e||{},s=0,l=0;if(a&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?wn(i.origin):i.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a["!ref"]){var d=En(a["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),-1==s&&(s=d.e.r+1,u.e.r=s+t.length-1+o)}else-1==s&&(s=0,u.e.r=t.length-1+o);var f=i.header||[],h=0;t.forEach((function(e,t){Q(e).forEach((function(n){-1==(h=f.indexOf(n))&&(f[h=f.length]=n);var c=e[n],u="z",d="",p=xn({c:l+h,r:s+t+o});r=cv.sheet_get_cell(a,p),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date&&(u="d",i.cellDates||(u="n",c=ie(c)),d=i.dateNF||j._table[14]),r?(r.t=u,r.v=c,delete r.w,delete r.R,d&&(r.z=d)):a[p]=r={t:u,v:c},d&&(r.z=d)):a[p]=c}))})),u.e.c=Math.max(u.e.c,l+f.length-1);var p=hn(s);if(o)for(h=0;h<f.length;++h)a[vn(h+l)+p]={t:"s",v:f[h]};return a["!ref"]=Cn(u),a}function lv(e,t){return sv(null,e,t)}var cv={encode_col:vn,encode_row:hn,encode_cell:xn,encode_range:Cn,decode_col:gn,decode_row:fn,split_cell:_n,decode_cell:wn,decode_range:Sn,format_cell:On,get_formulae:av,make_csv:iv,make_json:tv,make_formulae:av,sheet_add_aoa:In,sheet_add_json:sv,sheet_add_dom:ng,aoa_to_sheet:An,json_to_sheet:lv,table_to_sheet:rg,table_to_book:ig,sheet_to_csv:iv,sheet_to_txt:ov,sheet_to_json:tv,sheet_to_html:tg.from_sheet,sheet_to_formulae:av,sheet_to_row_object_array:tv};(function(e){function t(t){t.forEach((function(t){e.consts[t[0]]=t[1]}))}function n(e,t,n){return null!=e[t]?e[t]:e[t]=n}function r(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var i=wn(t);return e[i.r]||(e[i.r]=[]),e[i.r][i.c]||(e[i.r][i.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return r(e,xn("number"!=typeof t?t:{r:t,c:n||0}))}function i(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}e.consts=e.consts||{},e.sheet_get_cell=r,e.book_new=function(){return{SheetNames:[],Sheets:{}}},e.book_append_sheet=function(e,t,n){if(!n)for(var r=1;r<=65535;++r,n=void 0)if(-1==e.SheetNames.indexOf(n="Sheet"+r))break;if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(mp(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");e.SheetNames.push(n),e.Sheets[n]=t},e.book_set_sheet_visibility=function(e,t,r){n(e,"Workbook",{}),n(e.Workbook,"Sheets",[]);var o=i(e,t);switch(n(e.Workbook.Sheets,o,{}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[o].Hidden=r},t([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]),e.cell_set_number_format=function(e,t){return e.z=t,e},e.cell_set_hyperlink=function(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e},e.cell_set_internal_link=function(t,n,r){return e.cell_set_hyperlink(t,"#"+n,r)},e.cell_add_comment=function(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})},e.sheet_set_array_formula=function(e,t,n){for(var i="string"!=typeof t?t:En(t),o="string"==typeof t?t:Cn(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=r(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=n)}return e}})(cv),C&&function(){var e=n(3).Readable,r=function(t,n){var r=e(),i=null==n?{}:n;if(null==t||null==t["!ref"])return r.push(null),r;var o=En(t["!ref"]),a=void 0!==i.FS?i.FS:",",s=a.charCodeAt(0),l=void 0!==i.RS?i.RS:"\n",c=l.charCodeAt(0),u=new RegExp(("|"==a?"\\|":a)+"+$"),d="",f=[];i.dense=Array.isArray(t);for(var h=i.skipHidden&&t["!cols"]||[],p=i.skipHidden&&t["!rows"]||[],m=o.s.c;m<=o.e.c;++m)(h[m]||{}).hidden||(f[m]=vn(m));var g=o.s.r,v=!1;return r._read=function(){if(!v)return v=!0,r.push("\ufeff");while(g<=o.e.r)if(++g,!(p[g-1]||{}).hidden&&(d=rv(t,o,g-1,f,s,c,a,i),null!=d)){i.strip&&(d=d.replace(u,"")),r.push(d+l);break}return g>o.e.r?r.push(null):void 0},r},i=function(t,n){var r=e(),i=n||{},o=null!=i.header?i.header:tg.BEGIN,a=null!=i.footer?i.footer:tg.END;r.push(o);var s=Sn(t["!ref"]);i.dense=Array.isArray(t),r.push(tg._preamble(t,s,i));var l=s.s.r,c=!1;return r._read=function(){if(l>s.e.r)return c||(c=!0,r.push("</table>"+a)),r.push(null);while(l<=s.e.r){r.push(tg._row(t,s,l,i)),++l;break}},r},o=function(t,n){var r=e({objectMode:!0});if(null==t||null==t["!ref"])return r.push(null),r;var i={t:"n",v:0},o=0,a=1,s=[],l=0,c="",u={s:{r:0,c:0},e:{r:0,c:0}},d=n||{},f=null!=d.range?d.range:t["!ref"];switch(1===d.header?o=1:"A"===d.header?o=2:Array.isArray(d.header)&&(o=3),typeof f){case"string":u=En(f);break;case"number":u=En(t["!ref"]),u.s.r=f;break;default:u=f}o>0&&(a=0);var h=hn(u.s.r),p=[],m=0,g=Array.isArray(t),v=u.s.r,y=0,b=0;for(g&&!t[v]&&(t[v]=[]),y=u.s.c;y<=u.e.c;++y)switch(p[y]=vn(y),i=g?t[v][y]:t[p[y]+h],o){case 1:s[y]=y-u.s.c;break;case 2:s[y]=p[y];break;case 3:s[y]=d.header[y-u.s.c];break;default:for(null==i&&(i={w:"__EMPTY",t:"s"}),c=l=On(i,null,d),m=0,b=0;b<s.length;++b)s[b]==c&&(c=l+"_"+ ++m);s[y]=c}return v=u.s.r+a,r._read=function(){if(v>u.e.r)return r.push(null);while(v<=u.e.r){var e=ev(t,u,v,p,o,s,g,d);if(++v,!1===e.isempty||(1===o?!1!==d.blankrows:d.blankrows)){r.push(e.row);break}}},r};t.stream={to_json:o,to_html:i,to_csv:r}}(),"undefined"!==typeof Rm&&(t.parse_xlscfb=Rm),t.parse_zip=Rg,t.read=Ug,t.readFile=Gg,t.readFileSync=Gg,t.write=Yg,t.writeFile=Qg,t.writeFileSync=Qg,t.writeFileAsync=Zg,t.utils=cv,t.SSF=j,"undefined"!==typeof K&&(t.CFB=K)}a(t)}).call(this,n("c8ba"),n("b639").Buffer,n("f28c"))},"11a5":function(e,t,n){"use strict";n("bf06")},"11cb":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{width:900,keyboard:!1,closable:!1,centered:!0,maskClosable:!1,mask:!1,okText:"确认",cancelText:"取消"},on:{ok:e.ok,cancel:e.cancel},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("a-tabs",[n("a-tab-pane",{key:"1",attrs:{tab:"方向性图标"}},[n("ul",e._l(e.icons.directionIcons,(function(t){return n("li",{key:t},[n("a-icon",{class:{active:e.activeIndex===t},attrs:{type:t,title:t},on:{click:function(n){return e.chooseIcon(t)}}})],1)})),0)]),n("a-tab-pane",{key:"2",attrs:{tab:"指示性图标"}},[n("ul",e._l(e.icons.suggestionIcons,(function(t){return n("li",{key:t},[n("a-icon",{class:{active:e.activeIndex===t},attrs:{type:t,title:t},on:{click:function(n){return e.chooseIcon(t)}}})],1)})),0)]),n("a-tab-pane",{key:"3",attrs:{tab:"编辑类图标"}},[n("ul",e._l(e.icons.editIcons,(function(t){return n("li",{key:t},[n("a-icon",{class:{active:e.activeIndex===t},attrs:{type:t,title:t},on:{click:function(n){return e.chooseIcon(t)}}})],1)})),0)]),n("a-tab-pane",{key:"4",attrs:{tab:"数据类图标"}},[n("ul",e._l(e.icons.dataIcons,(function(t){return n("li",{key:t},[n("a-icon",{class:{active:e.activeIndex===t},attrs:{type:t,title:t},on:{click:function(n){return e.chooseIcon(t)}}})],1)})),0)]),n("a-tab-pane",{key:"5",attrs:{tab:"网站通用图标"}},[n("ul",e._l(e.icons.webIcons,(function(t){return n("li",{key:t},[n("a-icon",{class:{active:e.activeIndex===t},attrs:{type:t,title:t},on:{click:function(n){return e.chooseIcon(t)}}})],1)})),0)]),n("a-tab-pane",{key:"6",attrs:{tab:"品牌和标识"}},[n("ul",e._l(e.icons.logoIcons,(function(t){return n("li",{key:t},[n("a-icon",{class:{active:e.activeIndex===t},attrs:{type:t,title:t},on:{click:function(n){return e.chooseIcon(t)}}})],1)})),0)])],1)],1)},i=[],o=["step-backward","step-forward","fast-backward","fast-forward","shrink","arrows-alt","down","up","left","right","caret-up","caret-down","caret-left","caret-right","up-circle","down-circle","left-circle","right-circle","up-circle-o","down-circle-o","right-circle-o","left-circle-o","double-right","double-left","vertical-left","vertical-right","forward","backward","rollback","enter","retweet","swap","swap-left","swap-right","arrow-up","arrow-down","arrow-left","arrow-right","play-circle","play-circle-o","up-square","down-square","left-square","right-square","up-square-o","down-square-o","left-square-o","right-square-o","login","logout","menu-fold","menu-unfold","border-bottom","border-horizontal","border-inner","border-left","border-right","border-top","border-verticle","pic-center","pic-left","pic-right","radius-bottomleft","radius-bottomright","radius-upleft","radius-upright","fullscreen","fullscreen-exit"],a=["question","question-circle","plus","plus-circle","pause","pause-circle","minus","minus-circle","plus-square","minus-square","info","info-circle","exclamation","exclamation-circle","close","close-circle","close-square","check","check-circle","check-square","clock-circle","warning","issues-close","stop"],s=["edit","form","copy","scissor","delete","snippets","diff","highlight","align-center","align-left","align-right","bg-colors","bold","italic","underline","strikethrough","redo","undo","zoom-in","zoom-out","font-colors","font-size","line-height","colum-height","dash","small-dash","sort-ascending","sort-descending","drag","ordered-list","radius-setting"],l=["area-chart","pie-chart","bar-chart","dot-chart","line-chart","radar-chart","heat-map","fall","rise","stock","box-plot","fund","sliders"],c=["lock","unlock","bars","book","calendar","cloud","cloud-download","code","copy","credit-card","delete","desktop","download","ellipsis","file","file-text","file-unknown","file-pdf","file-word","file-excel","file-jpg","file-ppt","file-markdown","file-add","folder","folder-open","folder-add","hdd","frown","meh","smile","inbox","laptop","appstore","link","mail","mobile","notification","paper-clip","picture","poweroff","reload","search","setting","share-alt","shopping-cart","tablet","tag","tags","to-top","upload","user","video-camera","home","loading","loading-3-quarters","cloud-upload","star","heart","environment","eye","camera","save","team","solution","phone","filter","exception","export","customer-service","qrcode","scan","like","dislike","message","pay-circle","calculator","pushpin","bulb","select","switcher","rocket","bell","disconnect","database","compass","barcode","hourglass","key","flag","layout","printer","sound","usb","skin","tool","sync","wifi","car","schedule","user-add","user-delete","usergroup-add","usergroup-delete","man","woman","shop","gift","idcard","medicine-box","red-envelope","coffee","copyright","trademark","safety","wallet","bank","trophy","contacts","global","shake","api","fork","dashboard","table","profile","alert","audit","branches","build","border","crown","experiment","fire","money-collect","property-safety","read","reconciliation","rest","security-scan","insurance","interation","safety-certificate","project","thunderbolt","block","cluster","deployment-unit","dollar","euro","pound","file-done","file-exclamation","file-protect","file-search","file-sync","gateway","gold","robot","shopping"],u=["android","apple","windows","ie","chrome","github","aliwangwang","dingding","weibo-square","weibo-circle","taobao-circle","html5","weibo","twitter","wechat","youtube","alipay-circle","taobao","skype","qq","medium-workmark","gitlab","medium","linkedin","google-plus","dropbox","facebook","codepen","amazon","google","codepen-circle","alipay","ant-design","aliyun","zhihu","slack","slack-square","behance","behance-square","dribbble","dribbble-square","instagram","yuque","alibaba","yahoo"],d={name:"Icons",props:{iconChooseVisible:{default:!1}},data:function(){return{icons:{directionIcons:o,suggestionIcons:a,editIcons:s,dataIcons:l,webIcons:c,logoIcons:u},choosedIcon:"",activeIndex:""}},computed:{show:{get:function(){return this.iconChooseVisible},set:function(){}}},methods:{reset:function(){this.activeIndex=""},chooseIcon:function(e){this.activeIndex=e,this.choosedIcon=e,this.$message.success("选中 ".concat(e))},ok:function(){""!==this.choosedIcon?(this.reset(),this.$emit("choose",this.choosedIcon)):this.$message.warning("尚未选择任何图标")},cancel:function(){this.reset(),this.$emit("close")}}},f=d,h=(n("3ab1"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,"ea6fbdbc",null);t["default"]=p.exports},"11da":function(e,t,n){"use strict";n("07d3")},"120b":function(e,t,n){},1219:function(e,t,n){},1300:function(e,t,n){"use strict";function r(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}var a="6.5.0"},1342:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",[n("div",{staticStyle:{"background-color":"#fff"}},[n("a-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"reload"},on:{click:function(t){return e.getTreeOption()}}},[e._v("\n        切换分类树\n      ")]),n("a-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"reload"},on:{click:function(t){return e.getOption()}}},[e._v("\n        切换部门树\n      ")])],1),n("a-tree",{staticClass:"tree",staticStyle:{display:"inline-block",width:"300px","background-color":"#fff","margin-right":"10px",float:"right"},attrs:{expandedKeys:e.expandedKeys,treeData:e.treeData},on:{expand:e.onExpand,select:e.onSelect}})],1),n("div",{staticStyle:{width:"100%"}},[n("div",{staticClass:"componentName",attrs:{id:"componentName"}},[e._v(e._s(e.componentName))]),n(e.currentTabComponent,{tag:"component",staticClass:"componentMain"})],1)])},i=[],o=n("0fea"),a=[],s={components:{},data:function(){return{expandedKeys:[],autoExpandParent:!0,checkedKeys:["0-0-0"],selectedKeys:[],treeData:a,url:{get:"/sys/category/getTreeByDept",getNo:"/sys/category/getTree"},currentTabComponent:{},componentName:""}},beforeMount:function(){this.getOption()},watch:{checkedKeys:function(e){console.log("onCheck",e)}},methods:{getTreeOption:function(){var e=this,t={param:"减灾救灾"};Object(o["d"])(this.url.getNo,t).then((function(t){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);Object.assign(e.$data,t.data),e.treeData=t.data;var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return n("2a68")("./views"+i.url)},e.componentName=i.title}))},getOption:function(){var e=this,t={param:"减灾救灾"};Object(o["d"])(this.url.get,t).then((function(t){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);e.treeData=t.data;var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return n("2a68")("./views"+i.url)},e.componentName=i.title}))},initFirst:function(e){for(var t=0;t<e.length;t++)if(null!=e[t].slots.title&&""!=e[t].slots.title){var n={};return n.url=e[t].slots.title,n.title=e[t].title,n}return this.initFirst(e[0].children)},onExpand:function(e){console.log("onExpand",e),this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){console.log("onCheck",e),this.checkedKeys=e},onSelect:function(e,t){this.selectedKeys=e;var r=t.selectedNodes[0].data.props.dataRef.slots.title,i=t.selectedNodes[0].data.props.title;null!=r&&void 0!=r&&""!=r&&(this.componentName=i,this.currentTabComponent=function(){return n("2a68")("./views"+r)})}}},l=s,c=(n("3539"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"137e":function(e,t,n){"use strict";var r=n("01d4"),i=n("869f"),o=n("35a7"),a=n("6d836"),s=n("1300"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(t){var n=e.call(this)||this;return n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=t,n.declutterExecutorGroup=null,n}return l(t,e),t.prototype.getFeatures=function(e){return Object(s["b"])()},t.prototype.prepareFrame=function(e){return Object(s["b"])()},t.prototype.renderFrame=function(e,t){return Object(s["b"])()},t.prototype.loadedTileCallback=function(e,t,n){e[t]||(e[t]={}),e[t][n.tileCoord.toString()]=n},t.prototype.createLoadedTileFinder=function(e,t,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){},t.prototype.getDataAtPixel=function(e,t,n){return Object(s["b"])()},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(e){var t=e.target;t.getState()===i["a"].LOADED&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(e){var t=e.getState();return t!=i["a"].LOADED&&t!=i["a"].ERROR&&e.addEventListener(r["a"].CHANGE,this.boundHandleImageChange_),t==i["a"].IDLE&&(e.load(),t=e.getState()),t==i["a"].LOADED},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e.getVisible()&&e.getSourceState()==a["a"].READY&&e.changed()},t}(o["a"]),u=c,d=n("3333"),f=n("070d"),h=n("a896"),p=n("0af5"),m=n("0999"),g=n("ddea"),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(e){function t(t){var n=e.call(this,t)||this;return n.container=null,n.renderedResolution,n.tempTransform=Object(h["c"])(),n.pixelTransform=Object(h["c"])(),n.inversePixelTransform=Object(h["c"])(),n.context=null,n.containerReused=!1,n}return v(t,e),t.prototype.useContainer=function(e,t,n){var r,i,o=this.getLayer().getClassName();if(e&&""===e.style.opacity&&e.className===o){var a=e.firstElementChild;a instanceof HTMLCanvasElement&&(i=a.getContext("2d"))}if(!i||0!==i.canvas.width&&i.canvas.style.transform!==t?this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1):(this.container=e,this.context=i,this.containerReused=!0),!this.container){r=document.createElement("div"),r.className=o;var s=r.style;s.position="absolute",s.width="100%",s.height="100%",i=Object(m["a"])();a=i.canvas;r.appendChild(a),s=a.style,s.position="absolute",s.left="0",s.transformOrigin="top left",this.container=r,this.context=i}},t.prototype.clip=function(e,t,n){var r=t.pixelRatio,i=t.size[0]*r/2,o=t.size[1]*r/2,a=t.viewState.rotation,s=Object(p["C"])(n),l=Object(p["D"])(n),c=Object(p["w"])(n),u=Object(p["v"])(n);Object(h["a"])(t.coordinateToPixelTransform,s),Object(h["a"])(t.coordinateToPixelTransform,l),Object(h["a"])(t.coordinateToPixelTransform,c),Object(h["a"])(t.coordinateToPixelTransform,u),e.save(),Object(g["t"])(e,-a,i,o),e.beginPath(),e.moveTo(s[0]*r,s[1]*r),e.lineTo(l[0]*r,l[1]*r),e.lineTo(c[0]*r,c[1]*r),e.lineTo(u[0]*r,u[1]*r),e.clip(),Object(g["t"])(e,a,i,o)},t.prototype.clipUnrotated=function(e,t,n){var r=Object(p["C"])(n),i=Object(p["D"])(n),o=Object(p["w"])(n),a=Object(p["v"])(n);Object(h["a"])(t.coordinateToPixelTransform,r),Object(h["a"])(t.coordinateToPixelTransform,i),Object(h["a"])(t.coordinateToPixelTransform,o),Object(h["a"])(t.coordinateToPixelTransform,a);var s=this.inversePixelTransform;Object(h["a"])(s,r),Object(h["a"])(s,i),Object(h["a"])(s,o),Object(h["a"])(s,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()},t.prototype.dispatchRenderEvent_=function(e,t,n){var r=this.getLayer();if(r.hasListener(e)){var i=new d["a"](e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}},t.prototype.preRender=function(e,t){this.dispatchRenderEvent_(f["a"].PRERENDER,e,t)},t.prototype.postRender=function(e,t){this.dispatchRenderEvent_(f["a"].POSTRENDER,e,t)},t.prototype.getRenderTransform=function(e,t,n,r,i,o,a){var s=i/2,l=o/2,c=r/t,u=-c,d=-e[0]+a,f=-e[1];return Object(h["b"])(this.tempTransform,s,l,c,u,-n,d,f)},t.prototype.getDataAtPixel=function(e,t,n){var r,i=Object(h["a"])(this.inversePixelTransform,e.slice()),o=this.context,a=this.getLayer(),s=a.getExtent();if(s){var l=Object(h["a"])(t.pixelToCoordinateTransform,e.slice());if(!Object(p["f"])(s,l))return null}try{var c=Math.round(i[0]),u=Math.round(i[1]),d=document.createElement("canvas"),f=d.getContext("2d");d.width=1,d.height=1,f.clearRect(0,0,1,1),f.drawImage(o.canvas,c,u,1,1,0,0,1,1),r=f.getImageData(0,0,1,1).data}catch(m){return"SecurityError"===m.name?new Uint8Array:r}return 0===r[3]?null:r},t}(u);t["a"]=y},"13d2":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-select",{attrs:{value:e.arrayValue,mode:"multiple",placeholder:e.placeholder},on:{change:e.onChange}},e._l(e.options,(function(t,r){return n("a-select-option",{key:r,attrs:{value:t.value}},[e._v("\n    "+e._s(t.text||t.label)+"\n  ")])})),1)},i=[],o=(n("28a5"),{name:"JSelectMultiple",props:{placeholder:{type:String,default:"",required:!1},value:{type:String,required:!1},readOnly:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!0},triggerChange:{type:Boolean,required:!1,default:!1}},data:function(){return{arrayValue:this.value?this.value.split(","):[]}},watch:{value:function(e){this.arrayValue=e?this.value.split(","):[]}},methods:{onChange:function(e){this.triggerChange?this.$emit("change",e.join(",")):this.$emit("input",e.join(","))}}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},1424:function(e,t,n){},1461:function(e,t,n){},"146a":function(e,t,n){(function(e){(function(e,t){t()})(0,(function(){"use strict";function t(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var n=setTimeout;function r(e){return Boolean(e&&"undefined"!==typeof e.length)}function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}l(t.promise,r)}else(1===e._state?l:c)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,u(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(r){if(n)return;n=!0,c(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new d(e,t,n)),n},a.prototype["finally"]=t,a.all=function(e){return new a((function(t,n){if(!r(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var o=i.length;function a(e,r){try{if(r&&("object"===typeof r||"function"===typeof r)){var s=r.then;if("function"===typeof s)return void s.call(r,(function(t){a(e,t)}),n)}i[e]=r,0===--o&&t(i)}catch(l){n(l)}}for(var s=0;s<i.length;s++)a(s,i[s])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){if(!r(e))return n(new TypeError("Promise.race accepts an array"));for(var i=0,o=e.length;i<o;i++)a.resolve(e[i]).then(t,n)}))},a._immediateFn="function"===typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof e)return e;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype["finally"]||(h.Promise.prototype["finally"]=t):h["Promise"]=a}))}).call(this,n("c8ba"))},"14db":function(e,t,n){"use strict";n("6fdf")},1520:function(e,t,n){"use strict";n("1e97")},1586:function(e,t,n){},"15a4":function(e,t,n){(function(n,r){var i,o,a,s;(function(n){if("undefined"==typeof DO_NOT_EXPORT_JSZIP)e.exports=n();else if("undefined"==typeof DO_NOT_EXPORT_JSZIP)JSZipSync=n(),o=[],i=n,a="function"===typeof i?i.apply(t,o):i,void 0===a||(e.exports=a);else{var s;"undefined"!=typeof globalThis?s=globalThis:"undefined"!=typeof window?s=window:"undefined"!=typeof r?s=r:"undefined"!=typeof $&&$.global?s=$.global:"undefined"!=typeof self&&(s=self),s.JSZipSync=n()}})((function(){return function e(t,n,r){function i(a,l){if(!n[a]){if(!t[a]){var c="function"==typeof s&&s;if(!l&&c)return s(a,!0);if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){var n=t[a][1][e];return i(n||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof s&&s,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e,t){var n,i,o,a,s,l,c,u="",d=0;while(d<e.length)n=e.charCodeAt(d++),i=e.charCodeAt(d++),o=e.charCodeAt(d++),a=n>>2,s=(3&n)<<4|i>>4,l=(15&i)<<2|o>>6,c=63&o,isNaN(i)?l=c=64:isNaN(o)&&(c=64),u=u+r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(c);return u},n.decode=function(e,t){var n,i,o,a,s,l,c,u="",d=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(d<e.length)a=r.indexOf(e.charAt(d++)),s=r.indexOf(e.charAt(d++)),l=r.indexOf(e.charAt(d++)),c=r.indexOf(e.charAt(d++)),n=a<<2|s>>4,i=(15&s)<<4|l>>2,o=(3&l)<<6|c,u+=String.fromCharCode(n),64!=l&&(u+=String.fromCharCode(i)),64!=c&&(u+=String.fromCharCode(o));return u}},{}],2:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],3:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var n="string"!==r.getTypeOf(e);"undefined"==typeof t&&(t=0);var o=0,a=0,s=0;t^=-1;for(var l=0,c=e.length;l<c;l++)s=n?e[l]:e.charCodeAt(l),a=255&(t^s),o=i[a],t=t>>>8^o;return-1^t}},{"./utils":21}],5:[function(e,t,n){"use strict";var r=e("./utils");function i(e){this.data=null,this.length=0,this.index=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=i},{"./utils":21}],6:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.comment=null},{}],7:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":21}],8:[function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e){return i.deflateRaw(e)},n.uncompress=function(e){return i.inflateRaw(e)}},{pako:24}],9:[function(e,t,n){"use strict";var r=e("./base64");function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!==typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=e("./object"),i.prototype.load=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.utils=e("./deprecatedPublicUtils"),i.base64={encode:function(e){return r.encode(e)},decode:function(e){return r.decode(e)}},i.compressions=e("./compressions"),t.exports=i},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,n){"use strict";var r=e("./base64"),i=e("./zipEntries");t.exports=function(e,t){var n,o,a,s;for(t=t||{},t.base64&&(e=r.decode(e)),o=new i(e,t),n=o.files,a=0;a<n.length;a++)s=n[a],this.file(s.fileName,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileComment.length?s.fileComment:null,createFolders:t.createFolders});return o.zipComment.length&&(this.comment=o.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(e,t,r){(function(e){"use strict";var n=function(){};if("undefined"!==typeof e){var r=!e.from;if(!r)try{e.from("foo","utf8")}catch(i){r=!0}n=r?function(t,n){return n?new e(t,n):new e(t)}:e.from.bind(e),e.alloc||(e.alloc=function(t){return new e(t)})}t.exports=function(t,r){return"number"==typeof t?e.alloc(t):n(t,r)},t.exports.test=function(t){return e.isBuffer(t)}}).call(this,"undefined"!==typeof n?n:void 0)},{}],12:[function(e,t,n){"use strict";var r=e("./uint8ArrayReader");function i(e){this.data=e,this.length=this.data.length,this.index=0}i.prototype=new r,i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=i},{"./uint8ArrayReader":18}],13:[function(e,t,n){"use strict";var r=e("./support"),i=e("./utils"),o=e("./crc32"),a=e("./signature"),s=e("./defaults"),l=e("./base64"),c=e("./compressions"),u=e("./compressedObject"),d=e("./nodeBuffer"),f=e("./utf8"),h=e("./stringWriter"),p=e("./uint8ArrayWriter"),m=function(e){if(e._data instanceof u&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===i.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},g=function(e){var t=m(e),n=i.getTypeOf(t);return"string"===n?!e.options.binary&&r.nodebuffer?d(t,"utf-8"):e.asBinary():t},v=function(e){var t=m(this);return null===t||"undefined"===typeof t?"":(this.options.base64&&(t=l.decode(t)),t=e&&this.options.binary?O.utf8decode(t):i.transformTo("string",t),e||this.options.binary||(t=i.transformTo("string",O.utf8encode(t))),t)},y=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this._data=t,this.options=n,this._initialMetadata={dir:n.dir,date:n.date}};y.prototype={asText:function(){return v.call(this,!0)},asBinary:function(){return v.call(this,!1)},asNodeBuffer:function(){var e=g(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=g(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var b=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},_=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&"undefined"===typeof n[t]&&(n[t]=arguments[e][t]);return n},w=function(e){return e=e||{},!0!==e.base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),e=_(e,s),e.date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e},x=function(e,t,n){var r,o=i.getTypeOf(t);if(n=w(n),n.createFolders&&(r=S(e))&&C.call(this,r,!0),n.dir||null===t||"undefined"===typeof t)n.base64=!1,n.binary=!1,t=null;else if("string"===o)n.binary&&!n.base64&&!0!==n.optimizedBinaryString&&(t=i.string2binary(t));else{if(n.base64=!1,n.binary=!0,!o&&!(t instanceof u))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===o&&(t=i.transformTo("uint8array",t))}var a=new y(e,t,n);return this.files[e]=a,a},S=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},C=function(e,t){return"/"!=e.slice(-1)&&(e+="/"),t="undefined"!==typeof t&&t,this.files[e]||x.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},E=function(e,t){var n,r=new u;return e._data instanceof u?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,0===r.uncompressedSize||e.dir?(t=c["STORE"],r.compressedContent="",r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n)))):(n=g(e),n&&0!==n.length&&!e.dir||(t=c["STORE"],n=""),r.uncompressedSize=n.length,r.crc32=o(n),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n))),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r},k=function(e,t,n,r){n.compressedContent;var s,l,c,u,d=i.transformTo("string",f.utf8encode(t.name)),h=t.comment||"",p=i.transformTo("string",f.utf8encode(h)),m=d.length!==t.name.length,g=p.length!==h.length,v=t.options,y="",_="",w="";c=t._initialMetadata.dir!==t.dir?t.dir:v.dir,u=t._initialMetadata.date!==t.date?t.date:v.date,s=u.getHours(),s<<=6,s|=u.getMinutes(),s<<=5,s|=u.getSeconds()/2,l=u.getFullYear()-1980,l<<=4,l|=u.getMonth()+1,l<<=5,l|=u.getDate(),m&&(_=b(1,1)+b(o(d),4)+d,y+="up"+b(_.length,2)+_),g&&(w=b(1,1)+b(this.crc32(p),4)+p,y+="uc"+b(w.length,2)+w);var x="";x+="\n\0",x+=m||g?"\0\b":"\0\0",x+=n.compressionMethod,x+=b(s,2),x+=b(l,2),x+=b(n.crc32,4),x+=b(n.compressedSize,4),x+=b(n.uncompressedSize,4),x+=b(d.length,2),x+=b(y.length,2);var S=a.LOCAL_FILE_HEADER+x+d+y,C=a.CENTRAL_FILE_HEADER+"\0"+x+b(p.length,2)+"\0\0\0\0"+(!0===c?"\0\0\0":"\0\0\0\0")+b(r,4)+d+y+p;return{fileRecord:S,dirRecord:C,compressedObject:n}},O={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,o=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=new y(r.name,r._data,_(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&o.push(i));return o},file:function(e,t,n){if(1===arguments.length){if(i.isRegExp(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}return this.filter((function(t,n){return!n.dir&&t===e}))[0]||null}return e=this.root+e,x.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=C.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){e=_(e||{},{base64:!0,compression:"STORE",type:"base64",comment:null}),i.checkSupport(e.type);var t,n,r=[],o=0,s=0,u=i.transformTo("string",this.utf8encode(e.comment||this.comment||""));for(var d in this.files)if(this.files.hasOwnProperty(d)){var f=this.files[d],m=f.options.compression||e.compression.toUpperCase(),g=c[m];if(!g)throw new Error(m+" is not a valid compression method !");var v=E.call(this,f,g),y=k.call(this,d,f,v,o);o+=y.fileRecord.length+v.compressedSize,s+=y.dirRecord.length,r.push(y)}var w="";w=a.CENTRAL_DIRECTORY_END+"\0\0\0\0"+b(r.length,2)+b(r.length,2)+b(s,4)+b(o,4)+b(u.length,2)+u;var x=e.type.toLowerCase();for(t="uint8array"===x||"arraybuffer"===x||"blob"===x||"nodebuffer"===x?new p(o+s+w.length):new h(o+s+w.length),n=0;n<r.length;n++)t.append(r[n].fileRecord),t.append(r[n].compressedObject.compressedContent);for(n=0;n<r.length;n++)t.append(r[n].dirRecord);t.append(w);var S=t.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(e.type.toLowerCase(),S);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",S));case"base64":return e.base64?l.encode(S):S;default:return S}},crc32:function(e,t){return o(e,t)},utf8encode:function(e){return i.transformTo("string",f.utf8encode(e))},utf8decode:function(e){return f.utf8decode(e)}};t.exports=O},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],15:[function(e,t,n){"use strict";var r=e("./dataReader"),i=e("./utils");function o(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0}o.prototype=new r,o.prototype.byteAt=function(e){return this.data.charCodeAt(e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=o},{"./dataReader":5,"./utils":21}],16:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){this.data=[]};i.prototype={append:function(e){e=r.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=i},{"./utils":21}],17:[function(e,t,r){(function(e){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,r.nodebuffer="undefined"!==typeof e,r.uint8array="undefined"!==typeof Uint8Array,"undefined"===typeof ArrayBuffer)r.blob=!1;else{var t=new ArrayBuffer(0);try{r.blob=0===new Blob([t],{type:"application/zip"}).size}catch(o){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;i.append(t),r.blob=0===i.getBlob("application/zip").size}catch(o){r.blob=!1}}}}).call(this,"undefined"!==typeof n?n:void 0)},{}],18:[function(e,t,n){"use strict";var r=e("./dataReader");function i(e){e&&(this.data=e,this.length=this.data.length,this.index=0)}i.prototype=new r,i.prototype.byteAt=function(e){return this.data[e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;o>=0;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=i},{"./dataReader":5}],19:[function(e,t,n){"use strict";var r=e("./utils"),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=i},{"./utils":21}],20:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodeBuffer"),a=new Array(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;a[254]=a[254]=1;var l=function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)n=e.charCodeAt(o),55296===(64512&n)&&o+1<s&&(r=e.charCodeAt(o+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),a=0,o=0;a<l;o++)n=e.charCodeAt(o),55296===(64512&n)&&o+1<s&&(r=e.charCodeAt(o+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},c=function(e,t){var n;t=t||e.length,t>e.length&&(t=e.length),n=t-1;while(n>=0&&128===(192&e[n]))n--;return n<0||0===n?t:n+a[e[n]]>t?n:t},u=function(e){var t,n,i,o,s=e.length,l=new Array(2*s);for(n=0,t=0;t<s;)if(i=e[t++],i<128)l[n++]=i;else if(o=a[i],o>4)l[n++]=65533,t+=o-1;else{i&=2===o?31:3===o?15:7;while(o>1&&t<s)i=i<<6|63&e[t++],o--;o>1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)};n.utf8encode=function(e){return i.nodebuffer?o(e,"utf-8"):l(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");e=r.transformTo(i.uint8array?"uint8array":"array",e);var t=[],n=0,o=e.length,a=65536;while(n<o){var s=c(e,Math.min(n+a,o));i.uint8array?t.push(u(e.subarray(n,s))):t.push(u(e.slice(n,s))),n=s}return t.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(e,t,n){"use strict";var r=e("./support"),i=e("./compressions"),o=e("./nodeBuffer");function a(e){return e}function s(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function l(e){var t=65536,r=[],i=e.length,a=n.getTypeOf(e),s=0,l=!0;try{switch(a){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,o(0));break}}catch(d){l=!1}if(!l){for(var c="",u=0;u<e.length;u++)c+=String.fromCharCode(e[u]);return c}while(s<i&&t>1)try{"array"===a||"nodebuffer"===a?r.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+t,i)))),s+=t}catch(d){t=Math.floor(t/2)}return r.join("")}function c(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.string2binary=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(255&e.charCodeAt(n));return t},n.arrayBuffer2Blob=function(e){n.checkSupport("blob");try{return new Blob([e],{type:"application/zip"})}catch(i){try{var t=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=new t;return r.append(e),r.getBlob("application/zip")}catch(i){throw new Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=l;var u={};u["string"]={string:a,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return u["string"]["uint8array"](e).buffer},uint8array:function(e){return s(e,new Uint8Array(e.length))},nodebuffer:function(e){return s(e,o(e.length))}},u["array"]={string:l,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o(e)}},u["arraybuffer"]={string:function(e){return l(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o(new Uint8Array(e))}},u["uint8array"]={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o(e)}},u["nodebuffer"]={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return u["nodebuffer"]["uint8array"](e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:a},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t),i=u[r][e](t);return i},n.getTypeOf=function(e){return"string"===typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.test(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){var t=r[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this browser")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)t=e.charCodeAt(n),r+="\\x"+(t<16?"0":"")+t.toString(16).toUpperCase();return r},n.findCompression=function(e){for(var t in i)if(i.hasOwnProperty(t)&&i[t].magic===e)return i[t];return null},n.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(e,t,n){"use strict";var r=e("./stringReader"),i=e("./nodeBufferReader"),o=e("./uint8ArrayReader"),a=e("./utils"),s=e("./signature"),l=e("./zipEntry"),c=e("./support"),u=e("./object");function d(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}d.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=u.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var e,t,n,r=this.zip64EndOfCentralSize-44,i=0;while(i<r)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8()},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readString(4)===s.CENTRAL_FILE_HEADER)e=new l({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(-1===e)throw new Error("Corrupted zip : can't find end of central directory");if(this.reader.setIndex(e),this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),-1===e)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(e),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(e){var t=a.getTypeOf(e);"string"!==t||c.uint8array?this.reader="nodebuffer"===t?new i(e):new o(a.transformTo("uint8array",e)):this.reader=new r(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=d},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(e,t,n){"use strict";var r=e("./stringReader"),i=e("./utils"),o=e("./compressedObject"),a=e("./object");function s(e,t){this.options=e,this.loadOptions=t}s.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(e,t,n){return function(){var r=e.index;e.setIndex(t);var i=e.readData(n);return e.setIndex(r),i}},prepareContent:function(e,t,n,r,o){return function(){var e=i.transformTo(r.uncompressInputType,this.getCompressedContent()),t=r.uncompress(e);if(t.length!==o)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readString(this.fileNameLength),e.skip(n),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(t=i.findCompression(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new o,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),a.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readString(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readString(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readString(this.fileCommentLength),this.dir=!!(16&this.externalFileAttributes)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=new r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index;this.extraFields=this.extraFields||{};while(e.index<i+this.extraFieldsLength)t=e.readInt(2),n=e.readInt(2),r=e.readString(n),this.extraFields[t]={id:t,length:n,value:r}},handleUTF8:function(){if(this.useUTF8())this.fileName=a.utf8decode(this.fileName),this.fileComment=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();null!==e&&(this.fileName=e);var t=this.findExtraFieldUnicodeComment();null!==t&&(this.fileComment=t)}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new r(e.value);return 1!==t.readInt(1)||a.crc32(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new r(e.value);return 1!==t.readInt(1)||a.crc32(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null}},t.exports=s},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,t,n){"use strict";var r=e("./lib/utils/common").assign,i=e("./lib/deflate"),o=e("./lib/inflate"),a=e("./lib/zlib/constants"),s={};r(s,i,o,a),t.exports=s},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,t,n){"use strict";var r=e("./zlib/deflate.js"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=0,c=4,u=0,d=1,f=-1,h=0,p=8,m=function(e){this.options=i.assign({level:f,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(a[n]);t.header&&r.deflateSetHeader(this.strm,t.header)};function g(e,t){var n=new m(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function v(e,t){return t=t||{},t.raw=!0,g(e,t)}function y(e,t){return t=t||{},t.gzip=!0,g(e,t)}m.prototype.push=function(e,t){var n,a,s=this.strm,f=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?c:l,s.input="string"===typeof e?o.string2buf(e):e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(f),s.next_out=0,s.avail_out=f),n=r.deflate(s,a),n!==d&&n!==u)return this.onEnd(n),this.ended=!0,!1;(0===s.avail_out||0===s.avail_in&&a===c)&&("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&n!==d);return a!==c||(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u)},m.prototype.onData=function(e){this.chunks.push(e)},m.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=m,n.deflate=g,n.deflateRaw=v,n.gzip=y},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";var r=e("./zlib/inflate.js"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=function(e){this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)};function d(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function f(e,t){return t=t||{},t.raw=!0,d(e,t)}u.prototype.push=function(e,t){var n,s,l,c,u,d=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,d.input="string"===typeof e?o.binstring2buf(e):e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(f),d.next_out=0,d.avail_out=f),n=r.inflate(d,a.Z_NO_FLUSH),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0===d.avail_out||n===a.Z_STREAM_END||0===d.avail_in&&s===a.Z_FINISH)&&("string"===this.options.to?(l=o.utf8border(d.output,d.next_out),c=d.next_out-l,u=o.buf2string(d.output,l),d.next_out=c,d.avail_out=f-c,c&&i.arraySet(d.output,d.output,l,c,0),this.onData(u)):this.onData(i.shrinkBuf(d.output,d.next_out)))}while(d.avail_in>0&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s!==a.Z_FINISH||(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=u,n.inflate=d,n.inflateRaw=f,n.ungzip=d},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;n.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],28:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(c){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)n=e.charCodeAt(o),55296===(64512&n)&&o+1<s&&(i=e.charCodeAt(o+1),56320===(64512&i)&&(n=65536+(n-55296<<10)+(i-56320),o++)),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),a=0,o=0;a<l;o++)n=e.charCodeAt(o),55296===(64512&n)&&o+1<s&&(i=e.charCodeAt(o+1),56320===(64512&i)&&(n=65536+(n-55296<<10)+(i-56320),o++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,c=new Array(2*s);for(r=0,n=0;n<s;)if(i=e[n++],i<128)c[r++]=i;else if(o=a[i],o>4)c[r++]=65533,n+=o-1;else{i&=2===o?31:3===o?15:7;while(o>1&&n<s)i=i<<6|63&e[n++],o--;o>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;t=t||e.length,t>e.length&&(t=e.length),n=t-1;while(n>=0&&128===(192&e[n]))n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t,n){"use strict";function r(e,t,n,r){var i=65535&e|0,o=e>>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}t.exports=r},{}],30:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(e,t,n){"use strict";function r(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}var i=r();function o(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}t.exports=o},{}],32:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./trees"),o=e("./adler32"),a=e("./crc32"),s=e("./messages"),l=0,c=1,u=3,d=4,f=5,h=0,p=1,m=-2,g=-3,v=-5,y=-1,b=1,_=2,w=3,x=4,S=0,C=2,E=8,k=9,O=15,T=8,I=29,A=256,R=A+1+I,P=30,M=19,N=2*R+1,L=15,D=3,j=258,F=j+D+1,B=32,q=42,z=69,U=73,G=91,V=103,W=113,H=666,$=1,K=2,X=3,Y=4,J=3;function Q(e,t){return e.msg=s[t],t}function Z(e){return(e<<1)-(e>4?9:0)}function ee(e){var t=e.length;while(--t>=0)e[t]=0}function te(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function ne(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,te(e.strm)}function re(e,t){e.pending_buf[e.pending++]=t}function ie(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function oe(e,t,n,i){var s=e.avail_in;return s>i&&(s=i),0===s?0:(e.avail_in-=s,r.arraySet(t,e.input,e.next_in,s,n),1===e.state.wrap?e.adler=o(e.adler,t,s,n):2===e.state.wrap&&(e.adler=a(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)}function ae(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-F?e.strstart-(e.w_size-F):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+j,h=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+a]===p&&c[n+a-1]===h&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(r=j-(f-o),o=f-j,r>a){if(e.match_start=t,a=r,r>=s)break;h=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!==--i);return a<=e.lookahead?a:e.lookahead}function se(e){var t,n,i,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-F)){r.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,n=e.hash_size,t=n;do{i=e.head[--t],e.head[t]=i>=s?i-s:0}while(--n);n=s,t=n;do{i=e.prev[--t],e.prev[t]=i>=s?i-s:0}while(--n);o+=s}if(0===e.strm.avail_in)break;if(n=oe(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=D){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+D-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert<D)break}}while(e.lookahead<F&&0!==e.strm.avail_in)}function le(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(se(e),0===e.lookahead&&t===l)return $;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ne(e,!1),0===e.strm.avail_out))return $;if(e.strstart-e.block_start>=e.w_size-F&&(ne(e,!1),0===e.strm.avail_out))return $}return e.insert=0,t===d?(ne(e,!0),0===e.strm.avail_out?X:Y):(e.strstart>e.block_start&&(ne(e,!1),e.strm.avail_out),$)}function ce(e,t){for(var n,r;;){if(e.lookahead<F){if(se(e),e.lookahead<F&&t===l)return $;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-F&&(e.match_length=ae(e,n)),e.match_length>=D)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ne(e,!1),0===e.strm.avail_out))return $}return e.insert=e.strstart<D-1?e.strstart:D-1,t===d?(ne(e,!0),0===e.strm.avail_out?X:Y):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?$:K}function ue(e,t){for(var n,r,o;;){if(e.lookahead<F){if(se(e),e.lookahead<F&&t===l)return $;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=D-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-F&&(e.match_length=ae(e,n),e.match_length<=5&&(e.strategy===b||e.match_length===D&&e.strstart-e.match_start>4096)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-D,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=D-1,e.strstart++,r&&(ne(e,!1),0===e.strm.avail_out))return $}else if(e.match_available){if(r=i._tr_tally(e,0,e.window[e.strstart-1]),r&&ne(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return $}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<D-1?e.strstart:D-1,t===d?(ne(e,!0),0===e.strm.avail_out?X:Y):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?$:K}function de(e,t){for(var n,r,o,a,s=e.window;;){if(e.lookahead<=j){if(se(e),e.lookahead<=j&&t===l)return $;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&e.strstart>0&&(o=e.strstart-1,r=s[o],r===s[++o]&&r===s[++o]&&r===s[++o])){a=e.strstart+j;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<a);e.match_length=j-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(n=i._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ne(e,!1),0===e.strm.avail_out))return $}return e.insert=0,t===d?(ne(e,!0),0===e.strm.avail_out?X:Y):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?$:K}function fe(e,t){for(var n;;){if(0===e.lookahead&&(se(e),0===e.lookahead)){if(t===l)return $;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ne(e,!1),0===e.strm.avail_out))return $}return e.insert=0,t===d?(ne(e,!0),0===e.strm.avail_out?X:Y):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?$:K}var he,pe=function(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i};function me(e){e.window_size=2*e.w_size,ee(e.head),e.max_lazy_match=he[e.level].max_lazy,e.good_match=he[e.level].good_length,e.nice_match=he[e.level].nice_length,e.max_chain_length=he[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}function ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=E,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*N),this.dyn_dtree=new r.Buf16(2*(2*P+1)),this.bl_tree=new r.Buf16(2*(2*M+1)),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(L+1),this.heap=new r.Buf16(2*R+1),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*R+1),ee(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ve(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=C,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?q:W,e.adler=2===t.wrap?0:1,t.last_flush=l,i._tr_init(t),h):Q(e,m)}function ye(e){var t=ve(e);return t===h&&me(e.state),t}function be(e,t){return e&&e.state?2!==e.state.wrap?m:(e.state.gzhead=t,h):m}function _e(e,t,n,i,o,a){if(!e)return m;var s=1;if(t===y&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),o<1||o>k||n!==E||i<8||i>15||t<0||t>9||a<0||a>x)return Q(e,m);8===i&&(i=9);var l=new ge;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+D-1)/D),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=l.lit_bufsize>>1,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,ye(e)}function we(e,t){return _e(e,t,E,O,T,S)}function xe(e,t){var n,r,o,s;if(!e||!e.state||t>f||t<0)return e?Q(e,m):m;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===H&&t!==d)return Q(e,0===e.avail_out?v:m);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===q)if(2===r.wrap)e.adler=0,re(r,31),re(r,139),re(r,8),r.gzhead?(re(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),re(r,255&r.gzhead.time),re(r,r.gzhead.time>>8&255),re(r,r.gzhead.time>>16&255),re(r,r.gzhead.time>>24&255),re(r,9===r.level?2:r.strategy>=_||r.level<2?4:0),re(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(re(r,255&r.gzhead.extra.length),re(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=a(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=z):(re(r,0),re(r,0),re(r,0),re(r,0),re(r,0),re(r,9===r.level?2:r.strategy>=_||r.level<2?4:0),re(r,J),r.status=W);else{var g=E+(r.w_bits-8<<4)<<8,y=-1;y=r.strategy>=_||r.level<2?0:r.level<6?1:6===r.level?2:3,g|=y<<6,0!==r.strstart&&(g|=B),g+=31-g%31,r.status=W,ie(r,g),0!==r.strstart&&(ie(r,e.adler>>>16),ie(r,65535&e.adler)),e.adler=1}if(r.status===z)if(r.gzhead.extra){o=r.pending;while(r.gzindex<(65535&r.gzhead.extra.length)){if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),te(e),o=r.pending,r.pending===r.pending_buf_size))break;re(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++}r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=U)}else r.status=U;if(r.status===U)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),te(e),o=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,re(r,s)}while(0!==s);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===s&&(r.gzindex=0,r.status=G)}else r.status=G;if(r.status===G)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),te(e),o=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,re(r,s)}while(0!==s);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===s&&(r.status=V)}else r.status=V;if(r.status===V&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&te(e),r.pending+2<=r.pending_buf_size&&(re(r,255&e.adler),re(r,e.adler>>8&255),e.adler=0,r.status=W)):r.status=W),0!==r.pending){if(te(e),0===e.avail_out)return r.last_flush=-1,h}else if(0===e.avail_in&&Z(t)<=Z(n)&&t!==d)return Q(e,v);if(r.status===H&&0!==e.avail_in)return Q(e,v);if(0!==e.avail_in||0!==r.lookahead||t!==l&&r.status!==H){var b=r.strategy===_?fe(r,t):r.strategy===w?de(r,t):he[r.level].func(r,t);if(b!==X&&b!==Y||(r.status=H),b===$||b===X)return 0===e.avail_out&&(r.last_flush=-1),h;if(b===K&&(t===c?i._tr_align(r):t!==f&&(i._tr_stored_block(r,0,0,!1),t===u&&(ee(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),te(e),0===e.avail_out))return r.last_flush=-1,h}return t!==d?h:r.wrap<=0?p:(2===r.wrap?(re(r,255&e.adler),re(r,e.adler>>8&255),re(r,e.adler>>16&255),re(r,e.adler>>24&255),re(r,255&e.total_in),re(r,e.total_in>>8&255),re(r,e.total_in>>16&255),re(r,e.total_in>>24&255)):(ie(r,e.adler>>>16),ie(r,65535&e.adler)),te(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?h:p)}function Se(e){var t;return e&&e.state?(t=e.state.status,t!==q&&t!==z&&t!==U&&t!==G&&t!==V&&t!==W&&t!==H?Q(e,m):(e.state=null,t===W?Q(e,g):h)):m}he=[new pe(0,0,0,0,le),new pe(4,4,8,4,ce),new pe(4,5,16,8,ce),new pe(4,6,32,32,ce),new pe(4,4,16,16,ue),new pe(8,16,32,32,ue),new pe(8,16,128,128,ue),new pe(8,32,128,256,ue),new pe(32,128,258,1024,ue),new pe(32,258,258,4096,ue)],n.deflateInit=we,n.deflateInit2=_e,n.deflateReset=ye,n.deflateResetKeep=ve,n.deflateSetHeader=be,n.deflate=xe,n.deflateEnd=Se,n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(e,t,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=r},{}],34:[function(e,t,n){"use strict";var r=30,i=12;t.exports=function(e,t){var n,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b,_,w,x,S,C,E,k,O,T;n=e.state,o=e.next_in,O=e.input,a=o+(e.avail_in-5),s=e.next_out,T=e.output,l=s-(t-e.avail_out),c=s+(e.avail_out-257),u=n.dmax,d=n.wsize,f=n.whave,h=n.wnext,p=n.window,m=n.hold,g=n.bits,v=n.lencode,y=n.distcode,b=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;e:do{g<15&&(m+=O[o++]<<g,g+=8,m+=O[o++]<<g,g+=8),w=v[m&b];t:for(;;){if(x=w>>>24,m>>>=x,g-=x,x=w>>>16&255,0===x)T[s++]=65535&w;else{if(!(16&x)){if(0===(64&x)){w=v[(65535&w)+(m&(1<<x)-1)];continue t}if(32&x){n.mode=i;break e}e.msg="invalid literal/length code",n.mode=r;break e}S=65535&w,x&=15,x&&(g<x&&(m+=O[o++]<<g,g+=8),S+=m&(1<<x)-1,m>>>=x,g-=x),g<15&&(m+=O[o++]<<g,g+=8,m+=O[o++]<<g,g+=8),w=y[m&_];n:for(;;){if(x=w>>>24,m>>>=x,g-=x,x=w>>>16&255,!(16&x)){if(0===(64&x)){w=y[(65535&w)+(m&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=r;break e}if(C=65535&w,x&=15,g<x&&(m+=O[o++]<<g,g+=8,g<x&&(m+=O[o++]<<g,g+=8)),C+=m&(1<<x)-1,C>u){e.msg="invalid distance too far back",n.mode=r;break e}if(m>>>=x,g-=x,x=s-l,C>x){if(x=C-x,x>f&&n.sane){e.msg="invalid distance too far back",n.mode=r;break e}if(E=0,k=p,0===h){if(E+=d-x,x<S){S-=x;do{T[s++]=p[E++]}while(--x);E=s-C,k=T}}else if(h<x){if(E+=d+h-x,x-=h,x<S){S-=x;do{T[s++]=p[E++]}while(--x);if(E=0,h<S){x=h,S-=x;do{T[s++]=p[E++]}while(--x);E=s-C,k=T}}}else if(E+=h-x,x<S){S-=x;do{T[s++]=p[E++]}while(--x);E=s-C,k=T}while(S>2)T[s++]=k[E++],T[s++]=k[E++],T[s++]=k[E++],S-=3;S&&(T[s++]=k[E++],S>1&&(T[s++]=k[E++]))}else{E=s-C;do{T[s++]=T[E++],T[s++]=T[E++],T[s++]=T[E++],S-=3}while(S>2);S&&(T[s++]=T[E++],S>1&&(T[s++]=T[E++]))}break}}break}}while(o<a&&s<c);S=g>>3,o-=S,g-=S<<3,m&=(1<<g)-1,e.next_in=o,e.next_out=s,e.avail_in=o<a?a-o+5:5-(o-a),e.avail_out=s<c?c-s+257:257-(s-c),n.hold=m,n.bits=g}},{}],35:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=0,c=1,u=2,d=4,f=5,h=6,p=0,m=1,g=2,v=-2,y=-3,b=-4,_=-5,w=8,x=1,S=2,C=3,E=4,k=5,O=6,T=7,I=8,A=9,R=10,P=11,M=12,N=13,L=14,D=15,j=16,F=17,B=18,q=19,z=20,U=21,G=22,V=23,W=24,H=25,$=26,K=27,X=28,Y=29,J=30,Q=31,Z=32,ee=852,te=592,ne=15,re=ne;function ie(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function oe(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=x,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,p):v}function se(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ae(e)):v}function le(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,se(e))):v}function ce(e,t){var n,r;return e?(r=new oe,e.state=r,r.window=null,n=le(e,t),n!==p&&(e.state=null),n):v}function ue(e){return ce(e,re)}var de,fe,he=!0;function pe(e){if(he){var t;de=new r.Buf32(512),fe=new r.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;s(c,e.lens,0,288,de,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;s(u,e.lens,0,32,fe,0,e.work,{bits:5}),he=!1}e.lencode=de,e.lenbits=9,e.distcode=fe,e.distbits=5}function me(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o=a.wsize-a.wnext,o>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),i-=o,i?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}function ge(e,t){var n,ee,te,ne,re,oe,ae,se,le,ce,ue,de,fe,he,ge,ve,ye,be,_e,we,xe,Se,Ce,Ee,ke=0,Oe=new r.Buf8(4),Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return v;n=e.state,n.mode===M&&(n.mode=N),re=e.next_out,te=e.output,ae=e.avail_out,ne=e.next_in,ee=e.input,oe=e.avail_in,se=n.hold,le=n.bits,ce=oe,ue=ae,Se=p;e:for(;;)switch(n.mode){case x:if(0===n.wrap){n.mode=N;break}while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(2&n.wrap&&35615===se){n.check=0,Oe[0]=255&se,Oe[1]=se>>>8&255,n.check=o(n.check,Oe,2,0),se=0,le=0,n.mode=S;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=J;break}if((15&se)!==w){e.msg="unknown compression method",n.mode=J;break}if(se>>>=4,le-=4,xe=8+(15&se),0===n.wbits)n.wbits=xe;else if(xe>n.wbits){e.msg="invalid window size",n.mode=J;break}n.dmax=1<<xe,e.adler=n.check=1,n.mode=512&se?R:M,se=0,le=0;break;case S:while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(n.flags=se,(255&n.flags)!==w){e.msg="unknown compression method",n.mode=J;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=J;break}n.head&&(n.head.text=se>>8&1),512&n.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,n.check=o(n.check,Oe,2,0)),se=0,le=0,n.mode=C;case C:while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}n.head&&(n.head.time=se),512&n.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,Oe[2]=se>>>16&255,Oe[3]=se>>>24&255,n.check=o(n.check,Oe,4,0)),se=0,le=0,n.mode=E;case E:while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}n.head&&(n.head.xflags=255&se,n.head.os=se>>8),512&n.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,n.check=o(n.check,Oe,2,0)),se=0,le=0,n.mode=k;case k:if(1024&n.flags){while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}n.length=se,n.head&&(n.head.extra_len=se),512&n.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,n.check=o(n.check,Oe,2,0)),se=0,le=0}else n.head&&(n.head.extra=null);n.mode=O;case O:if(1024&n.flags&&(de=n.length,de>oe&&(de=oe),de&&(n.head&&(xe=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,de,xe)),512&n.flags&&(n.check=o(n.check,ee,de,ne)),oe-=de,ne+=de,n.length-=de),n.length))break e;n.length=0,n.mode=T;case T:if(2048&n.flags){if(0===oe)break e;de=0;do{xe=ee[ne+de++],n.head&&xe&&n.length<65536&&(n.head.name+=String.fromCharCode(xe))}while(xe&&de<oe);if(512&n.flags&&(n.check=o(n.check,ee,de,ne)),oe-=de,ne+=de,xe)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=I;case I:if(4096&n.flags){if(0===oe)break e;de=0;do{xe=ee[ne+de++],n.head&&xe&&n.length<65536&&(n.head.comment+=String.fromCharCode(xe))}while(xe&&de<oe);if(512&n.flags&&(n.check=o(n.check,ee,de,ne)),oe-=de,ne+=de,xe)break e}else n.head&&(n.head.comment=null);n.mode=A;case A:if(512&n.flags){while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(se!==(65535&n.check)){e.msg="header crc mismatch",n.mode=J;break}se=0,le=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=M;break;case R:while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}e.adler=n.check=ie(se),se=0,le=0,n.mode=P;case P:if(0===n.havedict)return e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=oe,n.hold=se,n.bits=le,g;e.adler=n.check=1,n.mode=M;case M:if(t===f||t===h)break e;case N:if(n.last){se>>>=7&le,le-=7&le,n.mode=K;break}while(le<3){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}switch(n.last=1&se,se>>>=1,le-=1,3&se){case 0:n.mode=L;break;case 1:if(pe(n),n.mode=z,t===h){se>>>=2,le-=2;break e}break;case 2:n.mode=F;break;case 3:e.msg="invalid block type",n.mode=J}se>>>=2,le-=2;break;case L:se>>>=7&le,le-=7&le;while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if((65535&se)!==(se>>>16^65535)){e.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&se,se=0,le=0,n.mode=D,t===h)break e;case D:n.mode=j;case j:if(de=n.length,de){if(de>oe&&(de=oe),de>ae&&(de=ae),0===de)break e;r.arraySet(te,ee,ne,de,re),oe-=de,ne+=de,ae-=de,re+=de,n.length-=de;break}n.mode=M;break;case F:while(le<14){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(n.nlen=257+(31&se),se>>>=5,le-=5,n.ndist=1+(31&se),se>>>=5,le-=5,n.ncode=4+(15&se),se>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=J;break}n.have=0,n.mode=B;case B:while(n.have<n.ncode){while(le<3){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}n.lens[Te[n.have++]]=7&se,se>>>=3,le-=3}while(n.have<19)n.lens[Te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ce={bits:n.lenbits},Se=s(l,n.lens,0,19,n.lencode,0,n.work,Ce),n.lenbits=Ce.bits,Se){e.msg="invalid code lengths set",n.mode=J;break}n.have=0,n.mode=q;case q:while(n.have<n.nlen+n.ndist){for(;;){if(ke=n.lencode[se&(1<<n.lenbits)-1],ge=ke>>>24,ve=ke>>>16&255,ye=65535&ke,ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(ye<16)se>>>=ge,le-=ge,n.lens[n.have++]=ye;else{if(16===ye){Ee=ge+2;while(le<Ee){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(se>>>=ge,le-=ge,0===n.have){e.msg="invalid bit length repeat",n.mode=J;break}xe=n.lens[n.have-1],de=3+(3&se),se>>>=2,le-=2}else if(17===ye){Ee=ge+3;while(le<Ee){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}se>>>=ge,le-=ge,xe=0,de=3+(7&se),se>>>=3,le-=3}else{Ee=ge+7;while(le<Ee){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}se>>>=ge,le-=ge,xe=0,de=11+(127&se),se>>>=7,le-=7}if(n.have+de>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=J;break}while(de--)n.lens[n.have++]=xe}}if(n.mode===J)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=J;break}if(n.lenbits=9,Ce={bits:n.lenbits},Se=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,Ce),n.lenbits=Ce.bits,Se){e.msg="invalid literal/lengths set",n.mode=J;break}if(n.distbits=6,n.distcode=n.distdyn,Ce={bits:n.distbits},Se=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ce),n.distbits=Ce.bits,Se){e.msg="invalid distances set",n.mode=J;break}if(n.mode=z,t===h)break e;case z:n.mode=U;case U:if(oe>=6&&ae>=258){e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=oe,n.hold=se,n.bits=le,a(e,ue),re=e.next_out,te=e.output,ae=e.avail_out,ne=e.next_in,ee=e.input,oe=e.avail_in,se=n.hold,le=n.bits,n.mode===M&&(n.back=-1);break}for(n.back=0;;){if(ke=n.lencode[se&(1<<n.lenbits)-1],ge=ke>>>24,ve=ke>>>16&255,ye=65535&ke,ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(ve&&0===(240&ve)){for(be=ge,_e=ve,we=ye;;){if(ke=n.lencode[we+((se&(1<<be+_e)-1)>>be)],ge=ke>>>24,ve=ke>>>16&255,ye=65535&ke,be+ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}se>>>=be,le-=be,n.back+=be}if(se>>>=ge,le-=ge,n.back+=ge,n.length=ye,0===ve){n.mode=$;break}if(32&ve){n.back=-1,n.mode=M;break}if(64&ve){e.msg="invalid literal/length code",n.mode=J;break}n.extra=15&ve,n.mode=G;case G:if(n.extra){Ee=n.extra;while(le<Ee){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}n.length+=se&(1<<n.extra)-1,se>>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=V;case V:for(;;){if(ke=n.distcode[se&(1<<n.distbits)-1],ge=ke>>>24,ve=ke>>>16&255,ye=65535&ke,ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(0===(240&ve)){for(be=ge,_e=ve,we=ye;;){if(ke=n.distcode[we+((se&(1<<be+_e)-1)>>be)],ge=ke>>>24,ve=ke>>>16&255,ye=65535&ke,be+ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}se>>>=be,le-=be,n.back+=be}if(se>>>=ge,le-=ge,n.back+=ge,64&ve){e.msg="invalid distance code",n.mode=J;break}n.offset=ye,n.extra=15&ve,n.mode=W;case W:if(n.extra){Ee=n.extra;while(le<Ee){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}n.offset+=se&(1<<n.extra)-1,se>>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=J;break}n.mode=H;case H:if(0===ae)break e;if(de=ue-ae,n.offset>de){if(de=n.offset-de,de>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=J;break}de>n.wnext?(de-=n.wnext,fe=n.wsize-de):fe=n.wnext-de,de>n.length&&(de=n.length),he=n.window}else he=te,fe=re-n.offset,de=n.length;de>ae&&(de=ae),ae-=de,n.length-=de;do{te[re++]=he[fe++]}while(--de);0===n.length&&(n.mode=U);break;case $:if(0===ae)break e;te[re++]=n.length,ae--,n.mode=U;break;case K:if(n.wrap){while(le<32){if(0===oe)break e;oe--,se|=ee[ne++]<<le,le+=8}if(ue-=ae,e.total_out+=ue,n.total+=ue,ue&&(e.adler=n.check=n.flags?o(n.check,te,ue,re-ue):i(n.check,te,ue,re-ue)),ue=ae,(n.flags?se:ie(se))!==n.check){e.msg="incorrect data check",n.mode=J;break}se=0,le=0}n.mode=X;case X:if(n.wrap&&n.flags){while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<<le,le+=8}if(se!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=J;break}se=0,le=0}n.mode=Y;case Y:Se=m;break e;case J:Se=y;break e;case Q:return b;case Z:default:return v}return e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=oe,n.hold=se,n.bits=le,(n.wsize||ue!==e.avail_out&&n.mode<J&&(n.mode<K||t!==d))&&me(e,e.output,e.next_out,ue-e.avail_out)?(n.mode=Q,b):(ce-=e.avail_in,ue-=e.avail_out,e.total_in+=ce,e.total_out+=ue,n.total+=ue,n.wrap&&ue&&(e.adler=n.check=n.flags?o(n.check,te,ue,e.next_out-ue):i(n.check,te,ue,e.next_out-ue)),e.data_type=n.bits+(n.last?64:0)+(n.mode===M?128:0)+(n.mode===z||n.mode===D?256:0),(0===ce&&0===ue||t===d)&&Se===p&&(Se=_),Se)}function ve(e){if(!e||!e.state)return v;var t=e.state;return t.window&&(t.window=null),e.state=null,p}function ye(e,t){var n;return e&&e.state?(n=e.state,0===(2&n.wrap)?v:(n.head=t,t.done=!1,p)):v}n.inflateReset=se,n.inflateReset2=le,n.inflateResetKeep=ae,n.inflateInit=ue,n.inflateInit2=ce,n.inflate=ge,n.inflateEnd=ve,n.inflateGetHeader=ye,n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(e,t,n){"use strict";var r=e("../utils/common"),i=15,o=852,a=592,s=0,l=1,c=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,p,m,g,v,y){var b,_,w,x,S,C,E,k,O,T=y.bits,I=0,A=0,R=0,P=0,M=0,N=0,L=0,D=0,j=0,F=0,B=null,q=0,z=new r.Buf16(i+1),U=new r.Buf16(i+1),G=null,V=0;for(I=0;I<=i;I++)z[I]=0;for(A=0;A<p;A++)z[t[n+A]]++;for(M=T,P=i;P>=1;P--)if(0!==z[P])break;if(M>P&&(M=P),0===P)return m[g++]=20971520,m[g++]=20971520,y.bits=1,0;for(R=1;R<P;R++)if(0!==z[R])break;for(M<R&&(M=R),D=1,I=1;I<=i;I++)if(D<<=1,D-=z[I],D<0)return-1;if(D>0&&(e===s||1!==P))return-1;for(U[1]=0,I=1;I<i;I++)U[I+1]=U[I]+z[I];for(A=0;A<p;A++)0!==t[n+A]&&(v[U[t[n+A]]++]=A);if(e===s?(B=G=v,C=19):e===l?(B=u,q-=257,G=d,V-=257,C=256):(B=f,G=h,C=-1),F=0,A=0,I=R,S=g,N=M,L=0,w=-1,j=1<<M,x=j-1,e===l&&j>o||e===c&&j>a)return 1;for(;;){E=I-L,v[A]<C?(k=0,O=v[A]):v[A]>C?(k=G[V+v[A]],O=B[q+v[A]]):(k=96,O=0),b=1<<I-L,_=1<<N,R=_;do{_-=b,m[S+(F>>L)+_]=E<<24|k<<16|O|0}while(0!==_);b=1<<I-1;while(F&b)b>>=1;if(0!==b?(F&=b-1,F+=b):F=0,A++,0===--z[I]){if(I===P)break;I=t[n+v[A]]}if(I>M&&(F&x)!==w){0===L&&(L=M),S+=R,N=I-L,D=1<<N;while(N+L<P){if(D-=z[N+L],D<=0)break;N++,D<<=1}if(j+=1<<N,e===l&&j>o||e===c&&j>a)return 1;w=F&x,m[w]=M<<24|N<<16|S-g|0}}return 0!==F&&(m[S+F]=I-L<<24|64<<16|0),y.bits=M,0}},{"../utils/common":27}],37:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(e,t,n){"use strict";var r=e("../utils/common"),i=4,o=0,a=1,s=2;function l(e){var t=e.length;while(--t>=0)e[t]=0}var c=0,u=1,d=2,f=3,h=258,p=29,m=256,g=m+1+p,v=30,y=19,b=2*g+1,_=15,w=16,x=7,S=256,C=16,E=17,k=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],T=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=512,P=new Array(2*(g+2));l(P);var M=new Array(2*v);l(M);var N=new Array(R);l(N);var L=new Array(h-f+1);l(L);var D=new Array(p);l(D);var j=new Array(v);l(j);var F,B,q,z=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},U=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t};function G(e){return e<256?N[e]:N[256+(e>>>7)]}function V(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function W(e,t,n){e.bi_valid>w-n?(e.bi_buf|=t<<e.bi_valid&65535,V(e,e.bi_buf),e.bi_buf=t>>w-e.bi_valid,e.bi_valid+=n-w):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function H(e,t,n){W(e,n[2*t],n[2*t+1])}function $(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function K(e){16===e.bi_valid?(V(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function X(e,t){var n,r,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;o<=_;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<b;n++)r=e.heap[n],o=l[2*l[2*r+1]+1]+1,o>p&&(o=p,m++),l[2*r+1]=o,r>c||(e.bl_count[o]++,a=0,r>=h&&(a=f[r-h]),s=l[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==m){do{o=p-1;while(0===e.bl_count[o])o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--){r=e.bl_count[o];while(0!==r)i=e.heap[--n],i>c||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}}function Y(e,t,n){var r,i,o=new Array(_+1),a=0;for(r=1;r<=_;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=$(o[s]++,s))}}function J(){var e,t,n,r,i,o=new Array(_+1);for(n=0,r=0;r<p-1;r++)for(D[r]=n,e=0;e<1<<O[r];e++)L[n++]=r;for(L[n-1]=r,i=0,r=0;r<16;r++)for(j[r]=i,e=0;e<1<<T[r];e++)N[i++]=r;for(i>>=7;r<v;r++)for(j[r]=i<<7,e=0;e<1<<T[r]-7;e++)N[256+i++]=r;for(t=0;t<=_;t++)o[t]=0;e=0;while(e<=143)P[2*e+1]=8,e++,o[8]++;while(e<=255)P[2*e+1]=9,e++,o[9]++;while(e<=279)P[2*e+1]=7,e++,o[7]++;while(e<=287)P[2*e+1]=8,e++,o[8]++;for(Y(P,g+1,o),e=0;e<v;e++)M[2*e+1]=5,M[2*e]=$(e,5);F=new z(P,O,m+1,g,_),B=new z(M,T,0,v,_),q=new z(new Array(0),I,0,y,x)}function Q(e){var t;for(t=0;t<g;t++)e.dyn_ltree[2*t]=0;for(t=0;t<v;t++)e.dyn_dtree[2*t]=0;for(t=0;t<y;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*S]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Z(e){e.bi_valid>8?V(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ee(e,t,n,i){Z(e),i&&(V(e,n),V(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function te(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function ne(e,t,n){var r=e.heap[n],i=n<<1;while(i<=e.heap_len){if(i<e.heap_len&&te(t,e.heap[i+1],e.heap[i],e.depth)&&i++,te(t,r,e.heap[i],e.depth))break;e.heap[n]=e.heap[i],n=i,i<<=1}e.heap[n]=r}function re(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?H(e,i,t):(o=L[i],H(e,o+m+1,t),a=O[o],0!==a&&(i-=D[o],W(e,i,a)),r--,o=G(r),H(e,o,n),a=T[o],0!==a&&(r-=j[o],W(e,r,a)))}while(s<e.last_lit);H(e,S,t)}function ie(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=b,n=0;n<l;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;while(e.heap_len<2)i=e.heap[++e.heap_len]=c<2?++c:0,o[2*i]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)ne(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ne(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,ne(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],X(e,t),Y(o,c,e.bl_count)}function oe(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*C]++):s<=10?e.bl_tree[2*E]++:e.bl_tree[2*k]++,s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function ae(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)do{H(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(H(e,i,e.bl_tree),s--),H(e,C,e.bl_tree),W(e,s-3,2)):s<=10?(H(e,E,e.bl_tree),W(e,s-3,3)):(H(e,k,e.bl_tree),W(e,s-11,7));s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}function se(e){var t;for(oe(e,e.dyn_ltree,e.l_desc.max_code),oe(e,e.dyn_dtree,e.d_desc.max_code),ie(e,e.bl_desc),t=y-1;t>=3;t--)if(0!==e.bl_tree[2*A[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function le(e,t,n,r){var i;for(W(e,t-257,5),W(e,n-1,5),W(e,r-4,4),i=0;i<r;i++)W(e,e.bl_tree[2*A[i]+1],3);ae(e,e.dyn_ltree,t-1),ae(e,e.dyn_dtree,n-1)}function ce(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<m;t++)if(0!==e.dyn_ltree[2*t])return a;return o}var ue=!1;function de(e){ue||(J(),ue=!0),e.l_desc=new U(e.dyn_ltree,F),e.d_desc=new U(e.dyn_dtree,B),e.bl_desc=new U(e.bl_tree,q),e.bi_buf=0,e.bi_valid=0,Q(e)}function fe(e,t,n,r){W(e,(c<<1)+(r?1:0),3),ee(e,t,n,!0)}function he(e){W(e,u<<1,3),H(e,S,P),K(e)}function pe(e,t,n,r){var o,a,l=0;e.level>0?(e.strm.data_type===s&&(e.strm.data_type=ce(e)),ie(e,e.l_desc),ie(e,e.d_desc),l=se(e),o=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=o&&(o=a)):o=a=n+5,n+4<=o&&-1!==t?fe(e,t,n,r):e.strategy===i||a===o?(W(e,(u<<1)+(r?1:0),3),re(e,P,M)):(W(e,(d<<1)+(r?1:0),3),le(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),re(e,e.dyn_ltree,e.dyn_dtree)),Q(e),r&&Z(e)}function me(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(L[n]+m+1)]++,e.dyn_dtree[2*G(t)]++),e.last_lit===e.lit_bufsize-1}n._tr_init=de,n._tr_stored_block=fe,n._tr_flush_block=pe,n._tr_tally=me,n._tr_align=he},{"../utils/common":27}],39:[function(e,t,n){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=r},{}]},{},[9])(9)}))}).call(this,n("b639").Buffer,n("c8ba"))},"15dc":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称查询"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"年龄"}},[n("a-input",{attrs:{placeholder:"请输入名称查询"},model:{value:e.queryParam.age,callback:function(t){e.$set(e.queryParam,"age",t)},expression:"queryParam.age"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"字典下拉"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择用户名称",dictCode:"sex"},model:{value:e.queryParam.sex,callback:function(t){e.$set(e.queryParam,"sex",t)},expression:"queryParam.sex"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"字典表下拉"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择用户",dictCode:"sys_user,realname,id"},model:{value:e.queryParam.realname,callback:function(t){e.$set(e.queryParam,"realname",t)},expression:"queryParam.realname"}})],1)],1)]:e._e(),n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1),n("a-col",{attrs:{md:6,sm:24}},[e.superQueryFlag?[n("a-tooltip",{attrs:{title:"已有高级查询条件生效!"}},[n("button",{staticClass:"ant-btn ant-btn-primary",attrs:{disabled:!1},on:{click:e.superQuery}},[n("a-icon",{attrs:{type:"appstore",theme:"twoTone",spin:"true"}}),n("span",[e._v("高级查询")])],1)])]:n("a-button",{attrs:{type:"primary",icon:"filter"},on:{click:e.superQuery}},[e._v("高级查询")])],2)],2)],1)],1),n("div",{staticClass:"table-operator",staticStyle:{"margin-top":"5px"}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.jump}},[e._v("创建单据")]),n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.onetomany}},[e._v("一对多")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("demo")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")]),n("span",{staticStyle:{float:"right"}},[n("a",{on:{click:function(t){return e.loadData()}}},[n("a-icon",{attrs:{type:"sync"}}),e._v("刷新")],1),n("a-divider",{attrs:{type:"vertical"}}),n("a-popover",{attrs:{title:"自定义列",trigger:"click",placement:"leftBottom"}},[n("template",{slot:"content"},[n("a-checkbox-group",{attrs:{defaultValue:e.settingColumns},on:{change:e.onColSettingsChange},model:{value:e.settingColumns,callback:function(t){e.settingColumns=t},expression:"settingColumns"}},[n("a-row",[e._l(e.defColumns,(function(t,r){return["rowIndex"!=t.key&&"action"!=t.dataIndex?[n("a-col",{attrs:{span:12}},[n("a-checkbox",{attrs:{value:t.dataIndex}},[e._v(e._s(t.title))])],1)]:e._e()]}))],2)],1)],1),n("a",[n("a-icon",{attrs:{type:"setting"}}),e._v("自定义列")],1)],2)],1)]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])},[n("div",{attrs:{slot:"filterDropdown"},slot:"filterDropdown"},[n("a-card",[n("a-checkbox-group",{attrs:{defaultValue:e.settingColumns},on:{change:e.onColSettingsChange},model:{value:e.settingColumns,callback:function(t){e.settingColumns=t},expression:"settingColumns"}},[n("a-row",[e._l(e.defColumns,(function(t,r){return["rowIndex"!=t.key&&"action"!=t.dataIndex?[n("a-col",{attrs:{span:12}},[n("a-checkbox",{attrs:{value:t.dataIndex}},[e._v(e._s(t.title))])],1)]:e._e()]}))],2)],1)],1)],1),n("a-icon",{style:{fontSize:"16px",color:"#108ee9"},attrs:{slot:"filterIcon",type:"setting"},slot:"filterIcon"})],1)],1),n("jeecgDemo-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("JeecgDemoTabsModal",{ref:"jeecgDemoTabsModal",on:{ok:e.modalFormOk}}),n("j-super-query",{ref:"superQueryModal",attrs:{fieldList:e.fieldList},on:{handleSuperQuery:e.handleSuperQuery}})],1)},i=[],o=(n("ac6a"),n("6762"),n("2fdb"),n("7f7f"),n("c943")),a=n("8c6e"),s=n("3335"),l=n("89f2"),c=n("b65a"),u=n("2b0e"),d=[{type:"date",value:"birthday",text:"生日"},{type:"string",value:"name",text:"用户名"},{type:"int",value:"age",text:"年龄"}],f={name:"JeecgDemoList",mixins:[c["a"]],components:{JeecgDemoModal:o["default"],JSuperQuery:a["default"],JeecgDemoTabsModal:s["default"]},data:function(){var e=this;return{description:"用户管理页面",sexDictOptions:[],importExcelUrl:"".concat(window._CONFIG["domianURL"],"/test/jeecgDemo/importExcel"),columns:[],settingColumns:[],defColumns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"姓名",align:"center",dataIndex:"name"},{title:"关键词",align:"center",dataIndex:"keyWord"},{title:"打卡时间",align:"center",dataIndex:"punchTime"},{title:"性别",align:"center",dataIndex:"sex",customRender:function(t){return Object(l["a"])(e.sexDictOptions,t)}},{title:"年龄",align:"center",dataIndex:"age"},{title:"生日",align:"center",dataIndex:"birthday"},{title:"邮箱",align:"center",dataIndex:"email"},{title:"个人简介",align:"center",dataIndex:"content"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{filterDropdown:"filterDropdown",filterIcon:"filterIcon",customRender:"action"}}],url:{list:"/test/jeecgDemo/list",delete:"/test/jeecgDemo/delete",deleteBatch:"/test/jeecgDemo/deleteBatch",exportXlsUrl:"/test/jeecgDemo/exportXls"},fieldList:d}},methods:{initDictConfig:function(){var e=this;console.log("--我才是真的方法!--"),Object(l["c"])("sex").then((function(t){t.success&&(e.sexDictOptions=t.result)}))},onetomany:function(){this.$refs.jeecgDemoTabsModal.add(),this.$refs.jeecgDemoTabsModal.title="编辑"},jump:function(){this.$router.push({path:"/jeecg/helloworld"})},onColSettingsChange:function(e){var t=this,n=this.$route.name+":colsettings";u["default"].ls.set(n,e,6048e5),this.settingColumns=e;var r=this.defColumns.filter((function(e){return"rowIndex"==e.key||"action"==e.dataIndex||!!t.settingColumns.includes(e.dataIndex)}));this.columns=r},initColumns:function(){var e=this.$route.name+":colsettings",t=u["default"].ls.get(e);if(null==t||void 0==t){var n=[];this.defColumns.forEach((function(e,t,r){n.push(e.dataIndex)})),this.settingColumns=n,this.columns=this.defColumns}else{this.settingColumns=t;var r=this.defColumns.filter((function(e){return"rowIndex"==e.key||"action"==e.dataIndex||!!t.includes(e.dataIndex)}));this.columns=r}}},created:function(){this.initColumns()}},h=f,p=(n("d797"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"2a0a56c8",null);t["default"]=m.exports},"15e0b":function(e,t,n){"use strict";n("58a5")},"160d":function(e,t,n){"use strict";n("ad79")},1630:function(e,t,n){var r=n("8e4c"),i=n("ef6d"),o=n("a793"),a=n("7373"),s=function(e){return function(t,n,s,l){r(n);var c=i(t),u=o(c),d=a(c.length),f=e?d-1:0,h=e?-1:1;if(s<2)while(1){if(f in u){l=u[f],f+=h;break}if(f+=h,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=h)f in u&&(l=n(l,u[f],f,c));return l}};e.exports={left:s(!1),right:s(!0)}},16546:function(e,t,n){var r=n("fbee"),i=n("a550"),o=n("5b1a"),a=n("9acd"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"166f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"zibiaomodal1"},on:{ok:e.handleOk,cancel:e.close}},[n("div",{staticStyle:{height:"240px"}},[n("a-form",{attrs:{form:e.form}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"从表名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入从表名称"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"对应从表",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tablename",e.validatorRules.tablename],expression:"[ 'tablename', validatorRules.tablename]"}],attrs:{placeholder:"请输入对应从表"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"主表关联字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["relationzhu",e.validatorRules.relationzhu],expression:"[ 'relationzhu', validatorRules.relationzhu]"}],attrs:{placeholder:"请输入主表和从表关联的字段"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"从表关联字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["relationcong",e.validatorRules.relationcong],expression:"[ 'relationcong', validatorRules.relationcong]"}],attrs:{placeholder:"请输入从表和主表关联的字段"}})],1)],1),n("div",{staticStyle:{display:"none"}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"smid",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smid",e.validatorRules.smid],expression:"[ 'smid', validatorRules.smid]"}],attrs:{placeholder:"smid"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"bid",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["bid",e.validatorRules.bid],expression:"[ 'bid', validatorRules.bid]"}],attrs:{placeholder:"bid"}})],1)],1)],1)],1)],1)])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l={name:"",data:function(){return{form:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},confirmLoading:!1,validatorRules:{name:{rules:[{required:!0,message:"请输入功能名称"}]},tablename:{rules:[{required:!0,message:"请输入对应表名称"}]},districtcode:{rules:[{required:!0,message:"请输入对区县"}]},relationzhu:{rules:[{required:!0,message:"请输入主表关联字段"}]},relationcong:{rules:[{required:!0,message:"请输入从表关联字段"}]}},url:{add:"/templateEditSonCong/add",edit:"/templateEditSonCong/edit"},showDefaultParams:[],bid:""}},created:function(){},methods:{fuzhi:function(){this.form.setFieldsValue(s()(this.model,"smid","name","tablename","bid","relationzhu","relationcong"))},zhikongtwo:function(){this.form.setFieldsValue({smid:"",name:"",tablename:"",bid:"",relationzhu:"",relationcong:""})},handleOk:function(){var e=this;this.form.validateFields((function(t,n){console.log("表单提交数据",n),n.smid?Object(o["i"])(e.url.edit,n,"put").then((function(t){t.success?(e.$message.success(t.message),e.$emit("loadDatazibiao1",e.bid),e.close()):e.$message.warning(t.message)})):Object(o["i"])(e.url.add,n,"post").then((function(t){t.success?(e.$message.success(t.message),e.$emit("loadDatazibiao1",e.bid),e.close()):e.$message.warning(t.message)}))}))},close:function(){this.visible=!1,this.zhikongtwo()},add:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},{bid:e}),this.$nextTick((function(){t.fuzhi()}))},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.$nextTick((function(){t.fuzhi()}))}}},c=l,u=(n("7d71"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},"16f5":function(e,t,n){var r=n("4a43"),i=n("4b0b"),o=n("9ba1"),a=n("16546").f,s=n("3144"),l=n("ff1e"),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[c].objectID},p=function(e,t){if(!o(e,c)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[c].weakData},m=function(e){return l&&g.REQUIRED&&d(e)&&!o(e,c)&&f(e),e},g=e.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:m};r[c]=!0},"16fd":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{class:e.leftmy},[n("div",{staticClass:"leftmywidth beijingmy"},[n("div",{staticClass:"table-page-search-wrapper leftmywidth"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"地区"}},[n("city_child",{attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon},model:{value:e.queryParam.village,callback:function(t){e.$set(e.queryParam,"village",t)},expression:"queryParam.village"}})],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.myQueryParam.name,callback:function(t){e.$set(e.myQueryParam,"name",t)},expression:"myQueryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入名称",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1)],1),n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"区县"}},[n("a-input",{attrs:{placeholder:"请输入区县"},model:{value:e.queryParam.district,callback:function(t){e.$set(e.queryParam,"district",t)},expression:"queryParam.district"}})],1)],1),n("div",{staticClass:"spc-search"},[n("a-button",{staticClass:"anniu1",attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticClass:"anniu2",attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1),n("div",{staticClass:"table-operator leftmywidth"},[e.verify?e._e():n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.biancross}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")]),e.verify?e._e():n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXlsTemplate}},[e._v("导出模板")]),e.verify?e._e():n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.url.importExcelUrl,accept:".xls,.xlsx"},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0&&e.unVerify?n("a-dropdown",[1==e.verify&&0==e.cxsp?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangok()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("审核通过")],1),n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangnook()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("审核不通过")],1)],1):e._e(),e.cxsp?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangrepass()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("重新审批")],1),n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangdelete()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("删除")],1)],1):e._e(),e.verify?n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1):e._e()],1):e._e()],1),n("mapTable",{ref:"mapTable",attrs:{dataSource:e.dataSource,dataSourcegd:e.dataSourcegd,dataSource2:e.dataSource2,loading:e.loading,columns:e.columns,verify:e.verify,unVerify:e.unVerify,selectedRowKeys:e.selectedRowKeys,onSelectChange:e.onSelectChange,cxsp:e.cxsp,dataSource3:e.dataSource3},on:{handleRePassForm:function(t){return e.handleRePassForm(t)},handleDeleteFormDB2:function(t){return e.handleDeleteFormDB2(t)},rowClicknew:function(t){return e.rowClicknew(t)},handleEdit:function(t){return e.handleEdit(t)},handleDeleteForm:function(t){return e.handleDeleteForm(t)},handlePassForm:function(t){return e.handlePassForm(t)},handleNoPassForm:function(t){return e.handleNoPassForm(t)},onClearSelected:function(t){return e.onClearSelected(t)},batchDel:function(t){return e.batchDel(t)}}})],1)]),n("div",{staticStyle:{position:"absolute","z-index":"-100"}},[n("TemplateModal",{ref:"TemplateModal",attrs:{url:e.url,templatesql:e.templatesql},on:{ok:e.modalFormOk,dataSource3ziduan:function(t){return e.dataSource3ziduan(t)},yincangzuoce:function(t){return e.yincangzuoce(t)},xianshizuoce:function(t){return e.xianshizuoce(t)},handleOktshide:e.handleOktshide,closetwo:function(t){return e.closetwo(t)}}})],1),n("div",{ref:"tablediwidth",staticClass:"tabledi",attrs:{id:"tabledi"}},[n("a",{style:e.crosshair,on:{click:e.biandefault}},[n("mapChoosePoints",{ref:"mapChoosePoints",attrs:{model:e.model,pointKey:e.pointKey,iconurl:e.iconurl,visiblets:e.visiblets,loading:e.loading},on:{openedit:function(t){return e.openedit(t)},lonlatChanged:function(t){return e.lonlatChanged(t)},dataSource2add:function(t){return e.dataSource2add(t)},tdupdate:function(t){return e.tdupdate(t)},dataSource2clear:function(t){return e.dataSource2clear(t)},handleCancelts:function(t){return e.handleCancelts(t)},handleOkts:function(t){return e.handleOkts(t)}}})],1)]),n("div",{staticStyle:{position:"absolute","z-index":"-100"}},[n("TemplatesonModaltwo",{ref:"TemplatesonModaltwo",attrs:{urlcong:e.urlcong,tabs:e.tabs,templatetable:e.templatetable},on:{yincangzuoce:function(t){return e.yincangzuoce(t)},xianshizuoce:function(t){return e.xianshizuoce(t)},closetwo:function(t){return e.closetwo(t)},urlqiehuan:function(t){return e.urlqiehuan(t)}}})],1)])},i=[],o=(n("aef6"),n("7b16"),n("d9be")),a=n("6187"),s=(n("89f2"),n("cba0")),l=n("80f1"),c=n("dc6f"),u=n("b9ae"),d=n("0fea"),f=(n("eec4"),{name:"DykeList",mixins:[a["a"]],components:{city_child:o["default"],mapChoosePoints:s["default"],mapTable:l["default"],TemplateModal:c["default"],TemplatesonModaltwo:u["default"]},data:function(){return{description:"通用页面",iconurl:"",columns:[{title:"区县",align:"center",width:"20%",dataIndex:"district"},{title:"名称",align:"center",width:"50%",dataIndex:"name"},{title:"操作",dataIndex:"action",width:"30%",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/templateson/templateson/list/",nopass:"/templateson/templateson/nopass/",repass:"/templateson/templateson/repass/",pass:"/templateson/templateson/pass/",delete:"/templateson/templateson/delete/",deleteBatch:"/templateson/templateson/deleteBatch/",exportXlsUrl:"/templateson/templateson/exportXls/",importExcelUrl:"/templateson/templateson/importExcel/",exportXlsTemplateUrl:"/templateson/templateson/exportXlsTemplate/",latubiao:"/templateson/templateson/latubiao/",biaoheyan:"/templateson/templateson/biaoheyan/",add:"/templateson/templateson/add/",edit:"/templateson/templateson/edit/",notes:"/templateson/templateson/modalziduan/",weiwanshan:"/templateson/templateson/weiwanshan/"},urlcong:{list:"/templatesoncong/templatesoncong/list/",add:"/templatesoncong/templatesoncong/add/",edit:"/templatesoncong/templatesoncong/edit/",delete:"/templatesoncong/templatesoncong/delete/",deletedb2:"/templatesoncong/templatesoncong/deletedb2/",notes:"/templatesoncong/templatesoncong/modalziduan/",congbiao:"/templatesoncong/templatesoncong/congbiao/"},urlchushi:{pass:"/templateson/templateson/pass/",list:"/templatesoncong/templatesoncong/list/",add:"/templatesoncong/templatesoncong/add/",edit:"/templatesoncong/templatesoncong/edit/",delete:"/templatesoncong/templatesoncong/delete/",deletedb2:"/templatesoncong/templatesoncong/deletedb2/",notes:"/templatesoncong/templatesoncong/modalziduan/"},yemian:"主从表",tabs:[],dictOptions:{verifyStatus:[]},myQueryParam:{name:""},showDefaultParams:[]}},methods:{closetwo:function(){this.$refs.TemplateModal.visible=!1,this.$refs.TemplatesonModaltwo.visible=!1},handleEdit:function(e){var t=this;this.$refs.TemplateModal.isVerifyPass=this.verify,this.$refs.TemplateModal.edit(e),this.$refs.TemplateModal.title="编辑"+this.getCurFormTitle(),this.$refs.TemplateModal.disableSubmit=!1,Object(d["i"])(this.urlcong.notes,{},"get").then((function(e){e.success?(console.log("用户配置的从表字段↓"),console.log(e.result.notes),t.$refs.TemplatesonModaltwo.notes=e.result.notes):t.$message.warning(e.message)})),this.$refs.TemplatesonModaltwo.visible=!0,this.$refs.TemplatesonModaltwo.bianjipd(e);var n=this;setTimeout((function(){n.$refs.TemplatesonModaltwo.loadData(e.bid),n.tabletwobian()}),500)},handleAdd:function(e){this.crosshair="cursor:default",this.$refs.TemplateModal.add(e),this.$refs.TemplateModal.title="新增"+this.getCurFormTitle(),this.$refs.TemplateModal.disableSubmit=!1},tabletwobian:function(){var e=this.$route.path;(e.endsWith("emergency_data_audit")||e.endsWith("emergency_data_audited")||e.endsWith("emergency_data_unaudit"))&&this.$refs.TemplatesonModaltwo.biaotouqiehuan()}}}),h=f,p=(n("c5bc"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"06c3336c",null);t["default"]=m.exports},1720:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"菜单名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入菜单名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"vueUrl"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["vueUrl",{}],expression:"['vueUrl', {}]"}],attrs:{placeholder:"请输入vueUrl"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"白名单"}},[n("a",{on:{click:e.handleAddUserDepart}},[n("a-input",{staticStyle:{width:"100%"},attrs:{"aria-readonly":"true",mode:"multiple",placeholder:"添加用户",optionFilterProp:"children",disabled:""},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}})],1)])],1)],1),n("Select-User-Modal2",{ref:"selectUserModal",attrs:{selectedRowKeys_p:e.selectedRoles,selectedRows_p:e.selectedRows},on:{selectFinished:e.selectOK}})],1)},i=[],o=(n("28a5"),n("ade3")),a=n("4ec3"),s=n("0fea"),l=n("b81d"),c=n("88bc"),u=n.n(c),d="";var f={name:"MenuModuleModal",components:{SelectUserModal2:l["default"]},data:function(){var e;return e={selectedRole:[],selectedRoles:[],selectedRows:[],roleList:[],model:{},loading:!1,imageUrl:"",headers:{authorization:"authorization-text"},title:"操作",visible:!1},Object(o["a"])(e,"model",{}),Object(o["a"])(e,"labelCol",{xs:{span:24},sm:{span:5}}),Object(o["a"])(e,"wrapperCol",{xs:{span:24},sm:{span:16}}),Object(o["a"])(e,"confirmLoading",!1),Object(o["a"])(e,"form",this.$form.createForm(this)),Object(o["a"])(e,"validatorRules",{}),Object(o["a"])(e,"url",{add:"/menu_module/menuModule/add3",edit:"/menu_module/menuModule/edit"}),e},created:function(){this.initialRoleList()},methods:{loadUserRoles:function(e){null!=e&&""!=e&&(this.selectedRole=e.split(","))},initialRoleList:function(){var e=this;Object(a["db"])().then((function(t){t.success?e.roleList=t.result:console.log(t.message)}))},add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,e.hasOwnProperty("id")&&(this.loadUserRoles(e.selectedRole),this.picUrl="Has no pic url yet"),this.$nextTick((function(){t.form.setFieldsValue(u()(t.model,"name","imgUrl","vueUrl","selectedRoles","selectedRole"))})),this.selectedRoles=void 0==e.selectedRoles?[]:e.selectedRoles.split(","),this.selectedRows=[];for(var n=0;n<this.selectedRoles.length;n++)this.selectedRows.push({id:this.selectedRoles[n],username:this.selectedRole[n]});console.log(e),console.log(this.selectedRoles),console.log(this.selectedRole)},close:function(){this.$emit("close"),this.visible=!1,this.selectedRole=[]},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";e.model.id?(i+=e.url.edit,o="put"):(i+=e.url.add,o="post");var a=Object.assign(e.model,r);a.selectedRoles=e.selectedRoles.length>0?e.selectedRoles.join(","):"",a.selectedRole=e.selectedRole.length>0?e.selectedRole.join(","):"",console.log(a),Object(s["i"])(i,a,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()})),e.model.imgUrl=d}}))},handleCancel:function(){this.close()},handleAddUserDepart:function(){this.$refs.selectUserModal.visible=!0},selectOK:function(e){this.selectedRole=[],this.selectedRoles=[];for(var t=0;t<e.length;t++)this.selectedRole.push(e[t].username),this.selectedRoles.push(e[t].id)}}},h=f,p=n("2877"),m=Object(p["a"])(h,r,i,!1,null,"91976c50",null);t["default"]=m.exports},"17d8":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"消息标题"}},[n("a-input",{attrs:{placeholder:"请输入消息标题"},model:{value:e.queryParam.esTitle,callback:function(t){e.$set(e.queryParam,"esTitle",t)},expression:"queryParam.esTitle"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"发送内容"}},[n("a-input",{attrs:{placeholder:"请输入发送内容"},model:{value:e.queryParam.esContent,callback:function(t){e.$set(e.queryParam,"esContent",t)},expression:"queryParam.esContent"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"接收人"}},[n("a-input",{attrs:{placeholder:"请输入接收人"},model:{value:e.queryParam.esReceiver,callback:function(t){e.$set(e.queryParam,"esReceiver",t)},expression:"queryParam.esReceiver"}})],1)],1)]:e._e(),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("消息")}}},[e._v("导出")]),n("a-upload",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"esContent",fn:function(e){return n("span",{},[n("j-ellipsis",{attrs:{value:e,length:10}})],1)}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多"),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}]},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("sysMessage-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("89ba"),a=n("b65a"),s=n("d579"),l={name:"SysMessageList",mixins:[a["a"]],components:{JEllipsis:s["default"],SysMessageModal:o["default"]},data:function(){return{description:"消息管理页面",show:!1,columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"消息标题",align:"center",dataIndex:"esTitle"},{title:"发送内容",align:"center",dataIndex:"esContent",scopedSlots:{customRender:"esContent"}},{title:"接收人",align:"center",dataIndex:"esReceiver"},{title:"发送次数",align:"center",dataIndex:"esSendNum"},{title:"发送状态",align:"center",dataIndex:"esSendStatus_dictText"},{title:"发送时间",align:"center",dataIndex:"esSendTime"},{title:"发送方式",align:"center",dataIndex:"esType_dictText"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/message/sysMessage/list",delete:"/message/sysMessage/delete",deleteBatch:"/message/sysMessage/deleteBatch",exportXlsUrl:"message/sysMessage/exportXls",importExcelUrl:"message/sysMessage/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},c=l,u=(n("77c5"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"7a6e75aa",null);t["default"]=d.exports},"183a":function(e,t,n){"use strict";t["a"]={ADD:"add",REMOVE:"remove"}},"18c1":function(e,t,n){},"18d2":function(e,t,n){"use strict";var r=n("18e9");e.exports=function(e){e=e||{};var t=e.reporter,n=e.batchProcessor,i=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function o(e,t){function n(){t(e)}if(r.isIE(8))i(e).object={proxy:n},e.attachEvent("onresize",n);else{var o=l(e);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}}function a(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function s(e,o,s){s||(s=o,o=e,e=null),e=e||{};e.debug;function l(o,s){var l=a(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none","visibility: hidden"]),c=!1,u=window.getComputedStyle(o),d=o.offsetWidth,f=o.offsetHeight;function h(){function n(){if("static"===u.position){o.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,i){function o(e){return e.replace(/[^-\d\.]/g,"")}var a=r[i];"auto"!==a&&"0"!==o(a)&&(t.warn("An element that is positioned static has style."+i+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",e.important?"important":""))};n(t,o,u,"top"),n(t,o,u,"right"),n(t,o,u,"bottom"),n(t,o,u,"left")}}function a(){function e(t,n){if(!t.contentDocument){var r=i(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}c||n();var t=this;e(t,(function(e){s(o)}))}""!==u.position&&(n(u),c=!0);var d=document.createElement("object");d.style.cssText=l,d.tabIndex=-1,d.type="text/html",d.setAttribute("aria-hidden","true"),d.onload=a,r.isIE()||(d.data="about:blank"),i(o)&&(o.appendChild(d),i(o).object=d,r.isIE()&&(d.data="about:blank"))}i(o).startSize={width:d,height:f},n?n.add(h):h()}r.isIE(8)?s(o):l(o,s)}function l(e){return i(e).object}function c(e){if(i(e)){var t=l(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),i(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(e).checkForObjectDocumentTimeoutId),delete i(e).object)}}return{makeDetectable:s,addListener:o,uninstall:c}}},"18e9":function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){function t(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}if(!t())return!1;if(!e)return!0;var n=function(){var e,t=3,n=document.createElement("div"),r=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(r[0]);return t>4?t:e}();return e===n},r.isLegacyOpera=function(){return!!window.opera}},"193c":function(e,t,n){},"196d":function(e,t,n){},"19ab":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=7)}([function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];l[e]=function(){return t}})),s.computed=l}return{esModule:i,exports:o,options:s}}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=u[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function o(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(p)return m;r.parentNode.removeChild(r)}if(g){var o=h++;r=f||(f=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(19),u={},d=l&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,m=function(){},g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){p=n;var i=c(e,t);return r(i),function(t){for(var n=[],o=0;o<i.length;o++){var a=i[o],s=u[a.id];s.refs--,n.push(s)}t?(i=c(e,t),r(i)):i=[];for(o=0;o<n.length;o++){s=n[o];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete u[s.id]}}}};var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){n(17);var r=n(1)(n(4),n(14),"data-v-566a42b8",null);e.exports=r.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=r(i),a=n(11),s=r(a);t.default={name:"splitPane",components:{Resizer:o.default,Pane:s.default},props:{minPercent:{type:Number,default:10},defaultPercent:{type:Number,default:50},split:{validator:function(e){return["vertical","horizontal"].indexOf(e)>=0},required:!0},className:String},computed:{userSelect:function(){return this.active?"none":""},cursor:function(){return this.active?"vertical"===this.split?"col-resize":"row-resize":""}},watch:{defaultPercent:function(e,t){this.percent=e}},data:function(){return{active:!1,hasMoved:!1,height:null,percent:this.defaultPercent,type:"vertical"===this.split?"width":"height",resizeType:"vertical"===this.split?"left":"top"}},methods:{onClick:function(){this.hasMoved||(this.percent=50,this.$emit("resize",this.percent))},onMouseDown:function(){this.active=!0,this.hasMoved=!1},onMouseUp:function(){this.active=!1},onMouseMove:function(e){if(0!==e.buttons&&0!==e.which||(this.active=!1),this.active){var t=0,n=e.currentTarget;if("vertical"===this.split)for(;n;)t+=n.offsetLeft,n=n.offsetParent;else for(;n;)t+=n.offsetTop,n=n.offsetParent;var r="vertical"===this.split?e.pageX:e.pageY,i="vertical"===this.split?e.currentTarget.offsetWidth:e.currentTarget.offsetHeight,o=Math.floor((r-t)/i*1e4)/100;o>this.minPercent&&o<100-this.minPercent&&(this.percent=o),this.$emit("resize",this.percent),this.hasMoved=!0}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"Pane",props:{className:String},data:function(){return{classes:[this.$parent.split,this.className].join(" "),percent:50}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{split:{validator:function(e){return["vertical","horizontal"].indexOf(e)>=0},required:!0},className:String},computed:{classes:function(){return["splitter-pane-resizer",this.split,this.className].join(" ")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("split-pane",i.default)},function(e,t,n){t=e.exports=n(0)(),t.push([e.i,".splitter-pane-resizer[data-v-212fa2a4]{box-sizing:border-box;background:#000;position:absolute;opacity:.2;z-index:1;background-clip:padding-box}.splitter-pane-resizer.horizontal[data-v-212fa2a4]{height:11px;margin:-5px 0;border-top:5px solid hsla(0,0%,100%,0);border-bottom:5px solid hsla(0,0%,100%,0);cursor:row-resize;width:100%}.splitter-pane-resizer.vertical[data-v-212fa2a4]{width:11px;height:100%;margin-left:-5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}",""])},function(e,t,n){t=e.exports=n(0)(),t.push([e.i,'.clearfix[data-v-566a42b8]:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.vue-splitter-container[data-v-566a42b8]{height:100%;position:relative}.vue-splitter-container-mask[data-v-566a42b8]{z-index:9999;width:100%;height:100%;position:absolute;top:0;left:0}',""])},function(e,t,n){t=e.exports=n(0)(),t.push([e.i,".splitter-pane.vertical.splitter-paneL[data-v-815c801c]{position:absolute;left:0;height:100%;padding-right:3px}.splitter-pane.vertical.splitter-paneR[data-v-815c801c]{position:absolute;right:0;height:100%;padding-left:3px}.splitter-pane.horizontal.splitter-paneL[data-v-815c801c]{position:absolute;top:0;width:100%}.splitter-pane.horizontal.splitter-paneR[data-v-815c801c]{position:absolute;bottom:0;width:100%;padding-top:3px}",""])},function(e,t,n){n(18);var r=n(1)(n(5),n(15),"data-v-815c801c",null);e.exports=r.exports},function(e,t,n){n(16);var r=n(1)(n(6),n(13),"data-v-212fa2a4",null);e.exports=r.exports},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.classes})},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e,t,n,r=this,i=r.$createElement,o=r._self._c||i;return o("div",{staticClass:"vue-splitter-container clearfix",style:{cursor:r.cursor,userSelect:r.userSelect},on:{mouseup:r.onMouseUp,mousemove:r.onMouseMove}},[o("pane",{staticClass:"splitter-pane splitter-paneL",style:(e={},e[r.type]=r.percent+"%",e),attrs:{split:r.split}},[r._t("paneL")],2),r._v(" "),o("resizer",{style:(t={},t[r.resizeType]=r.percent+"%",t),attrs:{className:r.className,split:r.split},nativeOn:{mousedown:function(e){return r.onMouseDown(e)},click:function(e){return r.onClick(e)}}}),r._v(" "),o("pane",{staticClass:"splitter-pane splitter-paneR",style:(n={},n[r.type]=100-r.percent+"%",n),attrs:{split:r.split}},[r._t("paneR")],2),r._v(" "),r.active?o("div",{staticClass:"vue-splitter-container-mask"}):r._e()],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.classes},[e._t("default")],2)},staticRenderFns:[]}},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("a82a4610",r,!0)},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("033d59ad",r,!0)},function(e,t,n){var r=n(10);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("6816c93c",r,!0)},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],c=o[3],u={id:e+":"+i,css:s,media:l,sourceMap:c};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}}])}))},"19c0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-card",{attrs:{bordered:!1}},[r("a-col",{staticClass:"clName",attrs:{span:4}},[r("a-tree",{staticStyle:{height:"500px","overflow-y":"auto"},attrs:{treeData:e.treeData,defaultExpandAll:e.defaultExpandAll},on:{select:this.onSelect}})],1),r("a-col",{attrs:{span:2}}),r("a-col",{attrs:{span:18}},[r("a-spin",{attrs:{tip:"Loading...",spinning:e.spinning}},e._l(e.dataSource,(function(t,i){return r("div",{key:i},[r("a-row",[r("a-col",{attrs:{span:24}},[r("p",[r("a-divider",{attrs:{orientation:"left"}},[e._v(e._s(t.fileName))])],1)]),r("a-col",{attrs:{span:24}},[t.filePdfPath?[r("div",{staticStyle:{float:"left",width:"104px",height:"104px","margin-right":"10px",margin:"0 8px 8px 0"}},[r("div",{staticStyle:{width:"100%",height:"100%",position:"relative",padding:"8px"},on:{click:function(n){return e.pdfPreview(t.title)}}},[r("img",{staticStyle:{width:"100%"},attrs:{src:n("c6cf8")}})])])]:[e._v('\n              (暂无材料,点击右侧"选择文件"或"扫描上传"上传文件)\n            ')]],2)],1)],1)})),0)],1),r("pdf-preview-modal",{ref:"pdfmodal"})],1)},i=[],o=n("0fea"),a=n("9fb0"),s=n("2b0e"),l=n("588f"),c=[{id:"1",key:"1",title:"实例.pdf",fileCode:"shili",fileName:"实例",filePdfPath:"实例"}],u={name:"JeecgPdfView",components:{PdfPreviewModal:l["default"]},data:function(){return{description:"PDF预览页面",treeData:[{title:"所有PDF电子档",key:"0-0",children:c}],dataSource:c,allData:c,defaultExpandAll:!0,spinning:!1,url:{pdfList:"/api/pdfList"}}},created:function(){},methods:{loadData:function(){var e=this;this.spinning=!1,Object(o["d"])(this.url.pdfList).then((function(t){t.length>0&&(e.allData=t,e.dataSource=t,e.treeData[0].children=t),e.spinning=!1}))},pdfPreview:function(e){var t=s["default"].ls.get(a["a"]);this.headers={"X-Access-Token":t},this.$refs.pdfmodal.previewFiles(e,t)},onSelect:function(e,t){this.dataSource=[],void 0===e[0]||"0-0"===e[0]?this.dataSource=this.allData:this.dataSource.push(t.node._props.dataRef),console.log("SELECT--\x3edataSource",this.dataSource)},modalFormOk:function(){this.loadData()}}},d=u,f=(n("3769"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"22c5458d",null);t["default"]=h.exports},"1a02":function(e,t,n){var r=n("784d");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1a3d":function(e,t,n){},"1a86":function(e,t,n){},"1af9":function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n("5564"),i=n("01d4"),o=n("df4c"),a=n("070d"),s=n("6d836"),l=n("92fa5"),c=n("38f3"),u=n("e269"),d=n("1e8d"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){function t(t){var n=this,r=Object(c["a"])({},t);delete r.source,n=e.call(this,r)||this,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,t.render&&(n.render=t.render),t.map&&n.setMap(t.map),n.addEventListener(Object(u["b"])(o["a"].SOURCE),n.handleSourcePropertyChange_);var i=t.source?t.source:null;return n.setSource(i),n}return f(t,e),t.prototype.getLayersArray=function(e){var t=e||[];return t.push(this),t},t.prototype.getLayerStatesArray=function(e){var t=e||[];return t.push(this.getLayerState()),t},t.prototype.getSource=function(){return this.get(o["a"].SOURCE)||null},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():s["a"].UNDEFINED},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(d["c"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=Object(d["a"])(e,i["a"].CHANGE,this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(e){return this.renderer_.getFeatures(e)},t.prototype.render=function(e,t){var n=this.getRenderer();if(n.prepareFrame(e))return n.renderFrame(e,t)},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&(Object(d["c"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Object(d["c"])(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Object(d["a"])(e,a["a"].PRECOMPOSE,(function(e){var t=e,n=t.frameState.layerStatesArray,r=this.getLayerState(!1);Object(l["a"])(!n.some((function(e){return e.layer===r.layer})),67),n.push(r)}),this),this.mapRenderKey_=Object(d["a"])(this,i["a"].CHANGE,e.render,e),this.changed())},t.prototype.setSource=function(e){this.set(o["a"].SOURCE,e)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.setSource(null),e.prototype.disposeInternal.call(this)},t}(r["a"]);function p(e,t){if(!e.visible)return!1;var n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;var r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}t["a"]=h},"1b05":function(e,t,n){},"1b2c":function(e,t,n){var r=n("791c");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"1b3e":function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},activeOnly:{type:"boolean",default:!1,name:"active_only"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},detailed:{type:"boolean",default:!1},h:{type:"list"},help:{type:"boolean",default:!1},index:{type:"list"},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},time:{type:"enum",options:["d (Days)","h (Hours)","m (Minutes)","s (Seconds)","ms (Milliseconds)","micros (Microseconds)","nanos (Nanoseconds)"]},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1},maxDocs:{type:"number",name:"max_docs"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},"1b51":function(e,t,n){"use strict";n("6ec0")},"1b63":function(e,t,n){(function(e){e(n("56b3"),n("7b00"))})((function(e){"use strict";e.defineMode("sass",(function(t){var n=e.mimeModes["text/css"],r=n.propertyKeywords||{},i=n.colorKeywords||{},o=n.valueKeywords||{},a=n.fontProperties||{};function s(e){return new RegExp("^"+e.join("|"))}var l,c=["true","false","null","auto"],u=new RegExp("^"+c.join("|")),d=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],f=s(d),h=/^::?[a-zA-Z_][\w\-]*/;function p(e){return!e.peek()||e.match(/\s+$/,!1)}function m(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=w,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=v(e.next()),"string"):(t.tokenizer=v(")",!1),"string")}function g(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=w,w(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=w):n.skipToEnd(),"comment")}}function v(e,t){function n(r,i){var o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2),l="\\"!==o&&a===e||o===e&&"\\"!==s;return l?(o!==e&&t&&r.next(),p(r)&&(i.cursorHalf=0),i.tokenizer=w,"string"):"#"===o&&"{"===a?(i.tokenizer=y(n),r.next(),"operator"):"string"}return null==t&&(t=!0),n}function y(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):w(t,n)}}function b(e){if(0==e.indentCount){e.indentCount++;var n=e.scopes[0].offset,r=n+t.indentUnit;e.scopes.unshift({offset:r})}}function _(e){1!=e.scopes.length&&e.scopes.shift()}function w(e,t){var n=e.peek();if(e.match("/*"))return t.tokenizer=g(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=g(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=y(w),"operator";if('"'===n||"'"===n)return e.next(),t.tokenizer=v(n),"string";if(t.cursorHalf){if("#"===n&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return p(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return p(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return p(e)&&(t.cursorHalf=0),"unit";if(e.match(u))return p(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=m,p(e)&&(t.cursorHalf=0),"atom";if("$"===n)return e.next(),e.eatWhile(/[\w-]/),p(e)&&(t.cursorHalf=0),"variable-2";if("!"===n)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(f))return p(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return p(e)&&(t.cursorHalf=0),l=e.current().toLowerCase(),o.hasOwnProperty(l)?"atom":i.hasOwnProperty(l)?"keyword":r.hasOwnProperty(l)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(p(e))return t.cursorHalf=0,null}else{if("-"===n&&e.match(/^-\w+-/))return"meta";if("."===n){if(e.next(),e.match(/^[\w-]+/))return b(t),"qualifier";if("#"===e.peek())return b(t),"tag"}if("#"===n){if(e.next(),e.match(/^[\w-]+/))return b(t),"builtin";if("#"===e.peek())return b(t),"tag"}if("$"===n)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(u))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=m,"atom";if("="===n&&e.match(/^=[\w-]+/))return b(t),"meta";if("+"===n&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===n&&e.match("@extend")&&(e.match(/\s*[\w]/)||_(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return b(t),"def";if("@"===n)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){l=e.current().toLowerCase();var s=t.prevProp+"-"+l;return r.hasOwnProperty(s)?"property":r.hasOwnProperty(l)?(t.prevProp=l,"property"):a.hasOwnProperty(l)?"property":"tag"}return e.match(/ *:/,!1)?(b(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||b(t),"tag")}if(":"===n)return e.match(h)?"variable-3":(e.next(),t.cursorHalf=1,"operator")}return e.match(f)?"operator":(e.next(),null)}function x(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if("@return"!==i&&"}"!==i||_(n),null!==r){for(var o=e.pos-i.length,a=o+t.indentUnit*n.indentCount,s=[],l=0;l<n.scopes.length;l++){var c=n.scopes[l];c.offset<=a&&s.push(c)}n.scopes=s}return r}return{startState:function(){return{tokenizer:w,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){var n=x(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e){return e.scopes[0].offset}}}),"css"),e.defineMIME("text/x-sass","sass")}))},"1b92":function(e,t,n){var r=n("d75c"),i=n("5c5b"),o=n("16546"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"1bc32":function(e,t,n){"use strict";n("a26d")},"1c48":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n("7fc9");function i(e,t,n,i,o,a,s){var l=(n-t)/i;if(l<3){for(;t<n;t+=i)a[s++]=e[t],a[s++]=e[t+1];return s}var c=new Array(l);c[0]=1,c[l-1]=1;var u=[t,n-i],d=0;while(u.length>0){for(var f=u.pop(),h=u.pop(),p=0,m=e[h],g=e[h+1],v=e[f],y=e[f+1],b=h+i;b<f;b+=i){var _=e[b],w=e[b+1],x=Object(r["h"])(_,w,m,g,v,y);x>p&&(d=b,p=x)}p>o&&(c[(d-t)/i]=1,h+i<d&&u.push(h,d),d+i<f&&u.push(d,f))}for(b=0;b<l;++b)c[b]&&(a[s++]=e[t+b*i],a[s++]=e[t+b*i+1]);return s}function o(e,t,n,r,o,a,s,l){for(var c=0,u=n.length;c<u;++c){var d=n[c];s=i(e,t,d,r,o,a,s),l.push(s),t=d}return s}function a(e,t){return t*Math.round(e/t)}function s(e,t,n,r,i,o,s){if(t==n)return s;var l,c,u=a(e[t],i),d=a(e[t+1],i);t+=r,o[s++]=u,o[s++]=d;do{if(l=a(e[t],i),c=a(e[t+1],i),t+=r,t==n)return o[s++]=l,o[s++]=c,s}while(l==u&&c==d);while(t<n){var f=a(e[t],i),h=a(e[t+1],i);if(t+=r,f!=l||h!=c){var p=l-u,m=c-d,g=f-u,v=h-d;p*v==m*g&&(p<0&&g<p||p==g||p>0&&g>p)&&(m<0&&v<m||m==v||m>0&&v>m)?(l=f,c=h):(o[s++]=l,o[s++]=c,u=l,d=c,l=f,c=h)}}return o[s++]=l,o[s++]=c,s}function l(e,t,n,r,i,o,a,l){for(var c=0,u=n.length;c<u;++c){var d=n[c];a=s(e,t,d,r,i,o,a),l.push(a),t=d}return a}function c(e,t,n,r,i,o,a,s){for(var c=0,u=n.length;c<u;++c){var d=n[c],f=[];a=l(e,t,d,r,i,o,a,f),s.push(f),t=d[d.length-1]}return a}},"1cf5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{padding:"0 0 32px 32px"}},[n("h4",{style:{marginBottom:"20px"}},[e._v(e._s(e.title))]),n("v-chart",{attrs:{height:e.height,data:e.data,scale:e.scale,forceFit:!0,padding:["auto","auto","40","50"]}},[n("v-tooltip"),n("v-axis"),n("v-bar",{attrs:{position:"x*y"}})],1)],1)},i=[],o=(n("c5f6"),{name:"Bar",props:{title:{type:String,default:""},x:{type:String,default:"x"},y:{type:String,default:"y"},data:{type:Array,default:function(){return[]}},height:{type:Number,default:254}},data:function(){return{}},computed:{scale:function(){return[{dataKey:"x",title:this.x,alias:this.x},{dataKey:"y",title:this.y,alias:this.y}]}},created:function(){},methods:{}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},"1d30":function(e,t,n){"use strict";var r=n("5b1a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"1d41":function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.clone=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_clone/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1},maxDocs:{type:"number",name:"max_docs"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},"1d43":function(e,t,n){"use strict";n.r(t);for(var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"antv-chart-mini"},[n("div",{staticClass:"chart-wrapper",style:{height:46}},[n("v-chart",{attrs:{"force-fit":!0,height:e.height,data:e.data,scale:e.scale,padding:[36,0,18,0]}},[n("v-tooltip"),n("v-smooth-area",{attrs:{position:"x*y"}})],1)],1)])},i=[],o=n("5a0c"),a=n.n(o),s=[],l=(new Date).getTime(),c=0;c<10;c++)s.push({x:a()(new Date(l+864e5*c)).format("YYYY-MM-DD"),y:Math.round(10*Math.random())});var u={name:"MiniArea",props:{dataSource:{type:Array,default:function(){return[]}},x:{type:String,default:"x"},y:{type:String,default:"y"}},data:function(){return{data:[],height:100}},computed:{scale:function(){return[{dataKey:"x",title:this.x,alias:this.x},{dataKey:"y",title:this.y,alias:this.y}]}},created:function(){0===this.dataSource.length?this.data=s:this.data=this.dataSource}},d=u,f=(n("8cbe"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"1aa6f46a",null);t["default"]=h.exports},"1da1":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},"1dc5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"标题"}},[n("a-input",{attrs:{placeholder:"请输入标题"},model:{value:e.queryParam.titile,callback:function(t){e.$set(e.queryParam,"titile",t)},expression:"queryParam.titile"}})],1)],1),n("a-col",{attrs:{span:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("系统通告")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[0==r.sendStatus?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),0==r.sendStatus?n("a-divider",{attrs:{type:"vertical"}}):e._e(),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[1!=r.sendStatus?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1):e._e(),0==r.sendStatus?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定发布吗?"},on:{confirm:function(){return e.releaseData(r.id)}}},[n("a",[e._v("发布")])])],1):e._e(),1==r.sendStatus?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定撤销吗?"},on:{confirm:function(){return e.reovkeData(r.id)}}},[n("a",[e._v("撤销")])])],1):e._e()],1)],1)],1)}}])})],1),n("sysAnnouncement-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("4647"),a=n("4ec3"),s=n("b65a"),l={name:"SysAnnouncementList",mixins:[s["a"]],components:{SysAnnouncementModal:o["default"]},data:function(){return{description:"系统通告表管理页面",queryParam:{},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"标题",align:"center",dataIndex:"titile"},{title:"消息类型",align:"center",dataIndex:"msgCategory",customRender:function(e){return"1"==e?"通知公告":"2"==e?"系统消息":e}},{title:"发布人",align:"center",dataIndex:"sender"},{title:"优先级",align:"center",dataIndex:"priority",customRender:function(e){return"L"==e?"低":"M"==e?"中":"H"==e?"高":e}},{title:"通告对象",align:"center",dataIndex:"msgType",customRender:function(e){return"USER"==e?"指定用户":"ALL"==e?"全体用户":e}},{title:"发布状态",align:"center",dataIndex:"sendStatus",customRender:function(e){return 0==e?"未发布":1==e?"已发布":2==e?"已撤销":e}},{title:"发布时间",align:"center",dataIndex:"sendTime"},{title:"撤销时间",align:"center",dataIndex:"cancelTime"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/sys/annountCement/list",delete:"/sys/annountCement/delete",deleteBatch:"/sys/annountCement/deleteBatch",releaseDataUrl:"/sys/annountCement/doReleaseData",reovkeDataUrl:"sys/annountCement/doReovkeData",exportXlsUrl:"sys/annountCement/exportXls",importExcelUrl:"sys/annountCement/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{releaseData:function(e){console.log(e);var t=this;Object(a["j"])({id:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData(1)):t.$message.warning(e.message)}))},reovkeData:function(e){var t=this;Object(a["k"])({id:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData(1)):t.$message.warning(e.message)}))}}},c=l,u=(n("3cfc"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"08a6acec",null);t["default"]=d.exports},"1e0da":function(e,t,n){},"1e29":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"components-input-demo-presuffix"},[n("a-input",{attrs:{placeholder:"corn表达式"},on:{click:e.openModal,change:e.handleOK},model:{value:e.cron,callback:function(t){e.cron=t},expression:"cron"}},[n("a-icon",{attrs:{slot:"prefix",type:"schedule",title:"corn控件"},slot:"prefix"}),e.cron?n("a-icon",{attrs:{slot:"suffix",type:"close-circle",title:"清空"},on:{click:e.handleEmpty},slot:"suffix"}):e._e()],1),n("JCronModal",{ref:"innerVueCron",attrs:{data:e.cron},on:{ok:e.handleOK}})],1)},i=[],o=n("0ed5"),a={name:"JCron",components:{JCronModal:o["default"]},props:{value:{required:!1,type:String,default:function(){return"* * * * * ? *"}}},data:function(){return{cron:this.value}},watch:{value:function(e){this.cron=e}},methods:{openModal:function(){this.$refs.innerVueCron.show()},handleOK:function(e){this.cron=e,this.$emit("change",this.cron)},handleEmpty:function(){this.handleOK("")}},model:{prop:"value",event:"change"}},s=a,l=(n("2df2"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"1766d8da",null);t["default"]=c.exports},"1e8d":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n("38f3");function i(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function o(e,t,n,r){return i(e,t,n,r,!0)}function a(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Object(r["b"])(e))}},"1e94":function(e,t,n){},"1e97":function(e,t,n){},"1eb0":function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,s=2,l=1/0,c=9007199254740991,u="[object Arguments]",d="[object Array]",f="[object Boolean]",h="[object Date]",p="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",y="[object Number]",b="[object Object]",_="[object Promise]",w="[object RegExp]",x="[object Set]",S="[object String]",C="[object Symbol]",E="[object WeakMap]",k="[object ArrayBuffer]",O="[object DataView]",T="[object Float32Array]",I="[object Float64Array]",A="[object Int8Array]",R="[object Int16Array]",P="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",L="[object Uint16Array]",D="[object Uint32Array]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F=/^\w*$/,B=/^\./,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,z=/[\\^$.*+?()[\]{}|]/g,U=/\\(\\)?/g,G=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,W={};W[T]=W[I]=W[A]=W[R]=W[P]=W[M]=W[N]=W[L]=W[D]=!0,W[u]=W[d]=W[k]=W[f]=W[O]=W[h]=W[p]=W[m]=W[v]=W[y]=W[b]=W[w]=W[x]=W[S]=W[E]=!1;var H="object"==typeof e&&e&&e.Object===Object&&e,$="object"==typeof self&&self&&self.Object===Object&&self,K=H||$||Function("return this")(),X=t&&!t.nodeType&&t,Y=X&&"object"==typeof n&&n&&!n.nodeType&&n,J=Y&&Y.exports===X,Q=J&&H.process,Z=function(){try{return Q&&Q.binding("util")}catch(e){}}(),ee=Z&&Z.isTypedArray;function te(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(t(e[n],n,e))return!0;return!1}function ne(e){return function(t){return null==t?void 0:t[e]}}function re(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function ie(e){return function(t){return e(t)}}function oe(e,t){return null==e?void 0:e[t]}function ae(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function se(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function le(e,t){return function(n){return e(t(n))}}function ce(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ue=Array.prototype,de=Function.prototype,fe=Object.prototype,he=K["__core-js_shared__"],pe=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),me=de.toString,ge=fe.hasOwnProperty,ve=fe.toString,ye=RegExp("^"+me.call(ge).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),be=K.Symbol,_e=K.Uint8Array,we=fe.propertyIsEnumerable,xe=ue.splice,Se=le(Object.keys,Object),Ce=Lt(K,"DataView"),Ee=Lt(K,"Map"),ke=Lt(K,"Promise"),Oe=Lt(K,"Set"),Te=Lt(K,"WeakMap"),Ie=Lt(Object,"create"),Ae=Kt(Ce),Re=Kt(Ee),Pe=Kt(ke),Me=Kt(Oe),Ne=Kt(Te),Le=be?be.prototype:void 0,De=Le?Le.valueOf:void 0,je=Le?Le.toString:void 0;function Fe(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Be(){this.__data__=Ie?Ie(null):{}}function qe(e){return this.has(e)&&delete this.__data__[e]}function ze(e){var t=this.__data__;if(Ie){var n=t[e];return n===o?void 0:n}return ge.call(t,e)?t[e]:void 0}function Ue(e){var t=this.__data__;return Ie?void 0!==t[e]:ge.call(t,e)}function Ge(e,t){var n=this.__data__;return n[e]=Ie&&void 0===t?o:t,this}function Ve(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__=[]}function He(e){var t=this.__data__,n=ft(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xe.call(t,n,1),!0}function $e(e){var t=this.__data__,n=ft(t,e);return n<0?void 0:t[n][1]}function Ke(e){return ft(this.__data__,e)>-1}function Xe(e,t){var n=this.__data__,r=ft(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Ye(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Je(){this.__data__={hash:new Fe,map:new(Ee||Ve),string:new Fe}}function Qe(e){return Mt(this,e)["delete"](e)}function Ze(e){return Mt(this,e).get(e)}function et(e){return Mt(this,e).has(e)}function tt(e,t){return Mt(this,e).set(e,t),this}function nt(e){var t=-1,n=e?e.length:0;this.__data__=new Ye;while(++t<n)this.add(e[t])}function rt(e){return this.__data__.set(e,o),this}function it(e){return this.__data__.has(e)}function ot(e){this.__data__=new Ve(e)}function at(){this.__data__=new Ve}function st(e){return this.__data__["delete"](e)}function lt(e){return this.__data__.get(e)}function ct(e){return this.__data__.has(e)}function ut(e,t){var n=this.__data__;if(n instanceof Ve){var i=n.__data__;if(!Ee||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Ye(i)}return n.set(e,t),this}function dt(e,t){var n=en(e)||Zt(e)?re(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!ge.call(e,o)||i&&("length"==o||Ft(o,r))||n.push(o);return n}function ft(e,t){var n=e.length;while(n--)if(Qt(e[n][0],t))return n;return-1}function ht(e,t){t=Bt(t,e)?[t]:It(t);var n=0,r=t.length;while(null!=e&&n<r)e=e[$t(t[n++])];return n&&n==r?e:void 0}function pt(e){return ve.call(e)}function mt(e,t){return null!=e&&t in Object(e)}function gt(e,t,n,r,i){return e===t||(null==e||null==t||!an(e)&&!sn(t)?e!==e&&t!==t:vt(e,t,gt,n,r,i))}function vt(e,t,n,r,i,o){var a=en(e),l=en(t),c=d,f=d;a||(c=Dt(e),c=c==u?b:c),l||(f=Dt(t),f=f==u?b:f);var h=c==b&&!ae(e),p=f==b&&!ae(t),m=c==f;if(m&&!h)return o||(o=new ot),a||cn(e)?At(e,t,n,r,i,o):Rt(e,t,c,n,r,i,o);if(!(i&s)){var g=h&&ge.call(e,"__wrapped__"),v=p&&ge.call(t,"__wrapped__");if(g||v){var y=g?e.value():e,_=v?t.value():t;return o||(o=new ot),n(y,_,r,i,o)}}return!!m&&(o||(o=new ot),Pt(e,t,n,r,i,o))}function yt(e,t,n,r){var i=n.length,o=i,l=!r;if(null==e)return!o;e=Object(e);while(i--){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}while(++i<o){c=n[i];var u=c[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new ot;if(r)var p=r(d,f,u,e,t,h);if(!(void 0===p?gt(f,d,r,a|s,h):p))return!1}}return!0}function bt(e){if(!an(e)||zt(e))return!1;var t=rn(e)||ae(e)?ye:G;return t.test(Kt(e))}function _t(e){return sn(e)&&on(e.length)&&!!W[ve.call(e)]}function wt(e){return"function"==typeof e?e:null==e?pn:"object"==typeof e?en(e)?Ct(e[0],e[1]):St(e):mn(e)}function xt(e){if(!Ut(e))return Se(e);var t=[];for(var n in Object(e))ge.call(e,n)&&"constructor"!=n&&t.push(n);return t}function St(e){var t=Nt(e);return 1==t.length&&t[0][2]?Vt(t[0][0],t[0][1]):function(n){return n===e||yt(n,e,t)}}function Ct(e,t){return Bt(e)&&Gt(t)?Vt($t(e),t):function(n){var r=dn(n,e);return void 0===r&&r===t?fn(n,e):gt(t,r,void 0,a|s)}}function Et(e){return function(t){return ht(t,e)}}function kt(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;if(Ft(i))xe.call(e,i,1);else if(Bt(i,e))delete e[$t(i)];else{var a=It(i),s=Wt(e,a);null!=s&&delete s[$t(Xt(a))]}}}return e}function Ot(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r<i)o[r]=e[r+t];return o}function Tt(e){if("string"==typeof e)return e;if(ln(e))return je?je.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}function It(e){return en(e)?e:Ht(e)}function At(e,t,n,r,i,o){var l=i&s,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var f=-1,h=!0,p=i&a?new nt:void 0;o.set(e,t),o.set(t,e);while(++f<c){var m=e[f],g=t[f];if(r)var v=l?r(g,m,f,t,e,o):r(m,g,f,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!te(t,(function(e,t){if(!p.has(t)&&(m===e||n(m,e,r,i,o)))return p.add(t)}))){h=!1;break}}else if(m!==g&&!n(m,g,r,i,o)){h=!1;break}}return o["delete"](e),o["delete"](t),h}function Rt(e,t,n,r,i,o,l){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!r(new _e(e),new _e(t)));case f:case h:case y:return Qt(+e,+t);case p:return e.name==t.name&&e.message==t.message;case w:case S:return e==t+"";case v:var c=se;case x:var u=o&s;if(c||(c=ce),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;o|=a,l.set(e,t);var m=At(c(e),c(t),r,i,o,l);return l["delete"](e),m;case C:if(De)return De.call(e)==De.call(t)}return!1}function Pt(e,t,n,r,i,o){var a=i&s,l=hn(e),c=l.length,u=hn(t),d=u.length;if(c!=d&&!a)return!1;var f=c;while(f--){var h=l[f];if(!(a?h in t:ge.call(t,h)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var m=!0;o.set(e,t),o.set(t,e);var g=a;while(++f<c){h=l[f];var v=e[h],y=t[h];if(r)var b=a?r(y,v,h,t,e,o):r(v,y,h,e,t,o);if(!(void 0===b?v===y||n(v,y,r,i,o):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return o["delete"](e),o["delete"](t),m}function Mt(e,t){var n=e.__data__;return qt(t)?n["string"==typeof t?"string":"hash"]:n.map}function Nt(e){var t=hn(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,Gt(i)]}return t}function Lt(e,t){var n=oe(e,t);return bt(n)?n:void 0}Fe.prototype.clear=Be,Fe.prototype["delete"]=qe,Fe.prototype.get=ze,Fe.prototype.has=Ue,Fe.prototype.set=Ge,Ve.prototype.clear=We,Ve.prototype["delete"]=He,Ve.prototype.get=$e,Ve.prototype.has=Ke,Ve.prototype.set=Xe,Ye.prototype.clear=Je,Ye.prototype["delete"]=Qe,Ye.prototype.get=Ze,Ye.prototype.has=et,Ye.prototype.set=tt,nt.prototype.add=nt.prototype.push=rt,nt.prototype.has=it,ot.prototype.clear=at,ot.prototype["delete"]=st,ot.prototype.get=lt,ot.prototype.has=ct,ot.prototype.set=ut;var Dt=pt;function jt(e,t,n){t=Bt(t,e)?[t]:It(t);var r,i=-1,o=t.length;while(++i<o){var a=$t(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;o=e?e.length:0;return!!o&&on(o)&&Ft(a,o)&&(en(e)||Zt(e))}function Ft(e,t){return t=null==t?c:t,!!t&&("number"==typeof e||V.test(e))&&e>-1&&e%1==0&&e<t}function Bt(e,t){if(en(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ln(e))||(F.test(e)||!j.test(e)||null!=t&&e in Object(t))}function qt(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function zt(e){return!!pe&&pe in e}function Ut(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||fe;return e===n}function Gt(e){return e===e&&!an(e)}function Vt(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Wt(e,t){return 1==t.length?e:ht(e,Ot(t,0,-1))}(Ce&&Dt(new Ce(new ArrayBuffer(1)))!=O||Ee&&Dt(new Ee)!=v||ke&&Dt(ke.resolve())!=_||Oe&&Dt(new Oe)!=x||Te&&Dt(new Te)!=E)&&(Dt=function(e){var t=ve.call(e),n=t==b?e.constructor:void 0,r=n?Kt(n):void 0;if(r)switch(r){case Ae:return O;case Re:return v;case Pe:return _;case Me:return x;case Ne:return E}return t});var Ht=Jt((function(e){e=un(e);var t=[];return B.test(e)&&t.push(""),e.replace(q,(function(e,n,r,i){t.push(r?i.replace(U,"$1"):n||e)})),t}));function $t(e){if("string"==typeof e||ln(e))return e;var t=e+"";return"0"==t&&1/e==-l?"-0":t}function Kt(e){if(null!=e){try{return me.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Xt(e){var t=e?e.length:0;return t?e[t-1]:void 0}function Yt(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=wt(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return kt(e,i),n}function Jt(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(Jt.Cache||Ye),n}function Qt(e,t){return e===t||e!==e&&t!==t}function Zt(e){return nn(e)&&ge.call(e,"callee")&&(!we.call(e,"callee")||ve.call(e)==u)}Jt.Cache=Ye;var en=Array.isArray;function tn(e){return null!=e&&on(e.length)&&!rn(e)}function nn(e){return sn(e)&&tn(e)}function rn(e){var t=an(e)?ve.call(e):"";return t==m||t==g}function on(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function an(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function sn(e){return!!e&&"object"==typeof e}function ln(e){return"symbol"==typeof e||sn(e)&&ve.call(e)==C}var cn=ee?ie(ee):_t;function un(e){return null==e?"":Tt(e)}function dn(e,t,n){var r=null==e?void 0:ht(e,t);return void 0===r?n:r}function fn(e,t){return null!=e&&jt(e,t,mt)}function hn(e){return tn(e)?dt(e):xt(e)}function pn(e){return e}function mn(e){return Bt(e)?ne($t(e)):Et(e)}n.exports=Yt}).call(this,n("c8ba"),n("62e4")(e))},"1f19":function(e,t,n){"use strict";n("4842")},"1f38":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},"1f3f":function(e,t,n){"use strict";n("c93d")},"1f4c":function(e,t,n){"use strict";n("d990")},"1fb5":function(e,t,n){"use strict";t.byteLength=u,t.toByteArray=f,t.fromByteArray=m;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function f(e){for(var t,n=c(e),r=n[0],a=n[1],s=new o(d(e,r,a)),l=0,u=a>0?r-4:r,f=0;f<u;f+=4)t=i[e.charCodeAt(f)]<<18|i[e.charCodeAt(f+1)]<<12|i[e.charCodeAt(f+2)]<<6|i[e.charCodeAt(f+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[l++]=255&t),1===a&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function m(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fd5":function(e,t,n){"use strict";n("1e0da")},"1fe0":function(e,t,n){var r=n("2ace");e.exports=r},2:function(e,t){},"200f":function(e,t,n){},2035:function(e,t,n){(function(t){e.exports=a;var r=n("2ef0"),i=n("9eab"),o=n("7d33");function a(e){e=e||{},i.makeBoundMethods(this),e.log?this.log=e.log:(this.log=new o,e.log=this.log),this._config=e,this.selector=i.funcEnum(e,"selector",a.selectors,a.defaultSelector),this.Connection=i.funcEnum(e,"connectionClass",a.connectionClasses,a.defaultConnectionClass),this.deadTimeout=e.hasOwnProperty("deadTimeout")?e.deadTimeout:6e4,this.maxDeadTimeout=e.hasOwnProperty("maxDeadTimeout")?e.maxDeadTimeout:18e5,this.calcDeadTimeout=i.funcEnum(e,"calcDeadTimeout",a.calcDeadTimeoutOptions,"exponential"),this.index={},this._conns={alive:[],dead:[]},this._timeouts=[]}a.selectors=n("4c87"),a.defaultSelector="roundRobin",a.connectionClasses=n("ff05"),a.defaultConnectionClass=a.connectionClasses._default,delete a.connectionClasses._default,a.calcDeadTimeoutOptions={flat:function(e,t){return t},exponential:function(e,t){return Math.min(2*t*Math.pow(2,.5*e-1),this.maxDeadTimeout)}},a.prototype.select=function(e){if(this._conns.alive.length)if(this.selector.length>1)this.selector(this._conns.alive,e);else try{i.nextTick(e,void 0,this.selector(this._conns.alive))}catch(t){e(t)}else this._timeouts.length?this._selectDeadConnection(e):i.nextTick(e,void 0)},a.prototype.onStatusSet=i.handler((function(e,t,n){var i,o="dead"===e,a=o&&"dead"===t,s=!o&&"dead"===t,l=t===e,c=this._conns[t],u=this._conns[e];if(l&&!o)return!0;c!==u&&(r.isArray(c)&&(i=c.indexOf(n),-1!==i&&c.splice(i,1)),r.isArray(u)&&(i=u.indexOf(n),-1===i&&u.push(n))),o&&this._onConnectionDied(n,a),s&&this._onConnectionRevived(n)})),a.prototype._onConnectionRevived=function(e){for(var t,n=0;n<this._timeouts.length;n++)if(this._timeouts[n].conn===e){t=this._timeouts[n],t.id&&clearTimeout(t.id),this._timeouts.splice(n,1);break}},a.prototype._onConnectionDied=function(e,t){var n;if(t){for(var r=0;r<this._timeouts.length;r++)if(this._timeouts[r].conn===e){n=this._timeouts[r];break}}else n={conn:e,attempt:0,revive:function(t){n.attempt++,e.ping((function(n){e.setStatus(n?"dead":"alive"),t&&"function"===typeof t&&t(n)}))}},this._timeouts.push(n);n.id&&clearTimeout(n.id);var o=this.calcDeadTimeout(n.attempt,this.deadTimeout);n.id=setTimeout(n.revive,o),n.runAt=i.now()+o},a.prototype._selectDeadConnection=function(e){var n=r.sortBy(this._timeouts,"runAt"),i=this.log;t.nextTick((function r(){var o=n.shift();o?o.conn?"dead"===o.conn.status?o.revive((function(n){n?(i.warning("Unable to revive connection: "+o.conn.id),t.nextTick(r)):e(void 0,o.conn)})):e(void 0,o.conn):r():e(void 0)}))},a.prototype.getConnections=function(e,t){var n;return n=e?this._conns[e]:this._conns[this._conns.alive.length?"alive":"dead"],null==t?n.slice(0):r.shuffle(n).slice(0,t)},a.prototype.addConnection=function(e){e.id||(e.id=e.host.toString()),this.index[e.id]||(this.log.info("Adding connection to",e.id),this.index[e.id]=e,e.on("status set",this.bound.onStatusSet),e.setStatus("alive"))},a.prototype.removeConnection=function(e){e.id||(e.id=e.host.toString()),this.index[e.id]&&(delete this.index[e.id],e.setStatus("closed"),e.removeListener("status set",this.bound.onStatusSet))},a.prototype.setHosts=function(e){var t,n,i,o,a=r.clone(this.index);for(n=0;n<e.length;n++)o=e[n],i=o.toString(),this.index[i]?delete a[i]:(t=new this.Connection(o,this._config),t.id=i,this.addConnection(t));var s=r.keys(a);for(n=0;n<s.length;n++)this.removeConnection(this.index[s[n]])},a.prototype.getAllHosts=function(){return r.values(this.index).map((function(e){return e.host}))},a.prototype.close=function(){this.setHosts([])},a.prototype.empty=a.prototype.close}).call(this,n("f28c"))},2042:function(e,t,n){},2062:function(e,t,n){var r=n("6daf"),i=n("2ace");e.exports="process"==r(i.process)},2113:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"beijinga1"},[n("div",{staticClass:"leftmya1"},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:8,sm:8}},[n("a-form-item",{attrs:{label:"地区"}},[n("city_child",{attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon},model:{value:e.queryParam.village,callback:function(t){e.$set(e.queryParam,"village",t)},expression:"queryParam.village"}})],1)],1),n("a-col",{attrs:{md:8,sm:8}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.myQueryParam.name,callback:function(t){e.$set(e.myQueryParam,"name",t)},expression:"myQueryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入名称",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:8,sm:8}},[n("a-form-item",{attrs:{label:"区县"}},[n("a-input",{attrs:{placeholder:"请输入区县"},model:{value:e.queryParam.district,callback:function(t){e.$set(e.queryParam,"district",t)},expression:"queryParam.district"}})],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXlsTemplate}},[e._v("导出模板")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.url.importExcelUrl,accept:".xls,.xlsx"},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),n("a-button",{attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1),n("mapTable",{ref:"mapTable",attrs:{dataSource:e.dataSource,loading:e.loading,columns:e.columns,selectedRowKeys:e.selectedRowKeys,onSelectChange:e.onSelectChange},on:{handleEdit:function(t){return e.handleEdit(t)},handleDelete:function(t){return e.handleDelete(t)},onClearSelected:function(t){return e.onClearSelected(t)},batchDel:function(t){return e.batchDel(t)}}})],1),n("div",{staticStyle:{position:"absolute","z-index":"-100"}},[n("TemplateModal",{ref:"TemplateModal",attrs:{url:e.url},on:{ok:e.modalFormOk}})],1)])},i=[],o=(n("28a5"),n("4917"),n("7f7f"),n("be94")),a=(n("ac6a"),n("d9be")),s=n("6524"),l=n("247d"),c=n("ca00"),u=n("0fea"),d=n("2b0e"),f=n("9fb0"),h={name:"",components:{city_child:a["default"],mapTable:s["default"],TemplateModal:l["default"]},data:function(){return{columns:[{title:"区县",align:"center",width:"20%",dataIndex:"district"},{title:"名称",align:"center",width:"50%",dataIndex:"name"},{title:"操作",dataIndex:"action",width:"30%",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/templateclean/templateclean/list/",delete:"/templateclean/templateclean/delete/",deleteBatch:"/templateclean/templateclean/deleteBatch/",vertifyBatch:"/columnInfo/vertify/",exportXlsUrl:"/templateclean/templateclean/exportXls/",importExcelUrl:"/templateclean/templateclean/importExcel/",exportXlsTemplateUrl:"/templateclean/templateclean/exportXlsTemplate/",biaoheyan:"/templateclean/templateclean/biaoheyan/",add:"/templateclean/templateclean/add/",edit:"/templateclean/templateclean/edit/",notes:"/templateclean/templateclean/modalziduan/"},yemian:"单表",myQueryParam:{name:""},showDefaultParams:[],tokenHeader:{"X-Access-Token":d["default"].ls.get(f["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],loading:!1,selectedRowKeys:[],selectionRows:[],templatetable:"",tablename:""}},created:function(){this.urlbiao()},mounted:function(){},methods:{loadData:function(){var e=this;if(this.url.list){var t=this.getQueryParams();this.loading=!0,Object(u["d"])(this.url.list,t).then((function(t){"true"==t.success?(e.dataSource=t.result.records,console.log("数据获取完成"+e.dataSource.length)):e.$message.warning(t.success),e.loading=!1}))}else this.$message.error("请设置url.list属性!")},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams));var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),Object(c["b"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData()},searchReset:function(){this.queryParam={},this.loadData()},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(u["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDelete:function(e){var t=this;this.url.delete?Object(u["a"])(this.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)})):this.$message.error("请设置url.delete属性!")},handleEdit:function(e){this.$refs.TemplateModal.edit(e),this.$refs.TemplateModal.disableSubmit=!1},handleAdd:function(e){this.$refs.TemplateModal.add(e),this.$refs.TemplateModal.disableSubmit=!1},modalFormOk:function(){this.loadData()},handleExportXls:function(){var e=this,t=this.tablename,n=Object(o["a"])({},this.queryParam);this.selectedRowKeys&&this.selectedRowKeys.length>0&&(n["selections"]=this.selectedRowKeys.join(",")),console.log("导出参数",n),Object(u["b"])(this.url.exportXlsUrl,n).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),t+".xls");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else e.$message.warning("文件下载失败")}))},handleExportXlsTemplate:function(){var e=this,t=this.tablename;Object(u["b"])(this.url.exportXlsTemplateUrl).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),t+".xlsx");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t+".xlsx"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else e.$message.warning("文件下载失败")}))},handleImportExcel:function(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?e.file.response.success?(this.$message.success("".concat(e.file.name," 文件上传成功")),this.loadData()):this.$message.error("".concat(e.file.name," ").concat(e.file.response.message,".")):"error"===e.file.status&&this.$message.error("文件上传失败: ".concat(e.file.msg," "))},getMsgFormSon:function(e){console.log("data",e),this.queryParam.village=e.village,this.queryParam.city=e.city,this.queryParam.street=e.street,this.queryParam.district=e.district},handleDeleteFormDB2:function(e){if(this.url.delete){var t=this;Object(u["a"])(t.url.delete+"db2",{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},urlbiao:function(){var e=this,t=this.$store.state.templatetable;this.templatetable=t,console.log("给该功能配置的表名称by @:"+this.templatetable);var n=this.$store.state.templatesql;console.log("给该功能配置的额外查询条件:"+n),void 0==t?this.$message.warning("该功能未配置对应表名称"):("主从表"==this.yemian||(n.length>0&&"null"!=n&&" "!=n?this.url.list=this.url.list+this.templatetable+"/"+n:this.url.list=this.url.list+this.templatetable+"/kong"),this.url.nopass=this.url.nopass+this.templatetable,this.url.repass=this.url.repass+this.templatetable,this.url.pass=this.url.pass+this.templatetable,this.url.delete=this.url.delete+this.templatetable,this.url.deleteBatch=this.url.deleteBatch+this.templatetable,this.url.exportXlsUrl=this.url.exportXlsUrl+this.templatetable,this.url.importExcelUrl=this.url.importExcelUrl+this.templatetable,this.url.exportXlsTemplateUrl=this.url.exportXlsTemplateUrl+this.templatetable,this.url.latubiao=this.url.latubiao+this.templatetable,this.url.biaoheyan=this.url.biaoheyan+this.templatetable,this.url.add=this.url.add+this.templatetable,this.url.edit=this.url.edit+this.templatetable,this.url.notes=this.url.notes+this.templatetable,this.url.weiwanshan=this.url.weiwanshan+this.templatetable,"主从表"==this.yemian&&(console.log("主从表编辑页,url改变"),this.urlbiaotwo()),"单表"==this.yemian&&console.log("单表编辑页"),Object(u["d"])(this.url.biaoheyan,"").then((function(t){t.success?(e.tablename=t.message,e.loadData()):e.$message.warning(t.message)})))},urlbiaotwo:function(){var e=this;this.urlcong.congbiao=this.urlcong.congbiao+this.templatetable,Object(u["d"])(this.urlcong.congbiao,"").then((function(t){if(t.success){for(var n='"'+t.result.congbiao[0].tablename+'"',r="",i=0;i<t.result.congbiao.length;i++){var o=t.result.congbiao[i].tablename,a=o.match(/^.*[A-Z]+.*$/);null==a||(o='"'+o+'"'),r+=0==i?o:","+o}console.log("从表编辑页所有从表:"+r);var s=e.$store.state.templatesql;s.length>0&&"null"!=s&&" "!=s?e.url.list=e.url.list+e.templatetable+"/"+n+"/"+s:e.url.list=e.url.list+e.templatetable+"/"+n+"/kong",e.url.pass=e.url.pass+"/"+r,e.urlcong.list=e.urlcong.list+e.templatetable+"/"+n,e.urlcong.add=e.urlcong.add+e.templatetable+"/"+n,e.urlcong.edit=e.urlcong.edit+e.templatetable+"/"+n,e.urlcong.delete=e.urlcong.delete+e.templatetable+"/"+n,e.urlcong.notes=e.urlcong.notes+e.templatetable+"/"+n,e.urlcong.deletedb2=e.urlcong.deletedb2+n,e.tabs=t.result.congbiao,console.log("从表tab页数据↓"),console.log(e.tabs)}else e.$message.warning(t.message)}))},urlqiehuan:function(e){var t=e.split(","),n=t[0],r=t[1];console.log("动态-切换tab页时动态变更所有接口连接:"+n+" save_code:"+r),this.urlcong.list=this.urlchushi.list+this.templatetable+"/"+n,this.urlcong.add=this.urlchushi.add+this.templatetable+"/"+n,this.urlcong.edit=this.urlchushi.edit+this.templatetable+"/"+n,this.urlcong.delete=this.urlchushi.delete+this.templatetable+"/"+n,this.urlcong.notes=this.urlchushi.notes+this.templatetable+"/"+n,this.urlcong.deletedb2=this.urlchushi.deletedb2+n,this.shujuqiehuan(r)},shujuqiehuan:function(e){var t=this;Object(u["d"])(this.urlcong.list,{save_code:e}).then((function(e){e.success?(console.log("从表对应数据重新获取完成:"+e.result.records.length),t.$refs.TemplatesonModaltwo.$refs.TemplateeditsonTabletwo.dataSource=e.result.records):(t.$message.warning(e.message),t.$refs.TemplatesonModaltwo.$refs.TemplateeditsonTabletwo.dataSource=[]),t.loading=!1}))}},watch:{"myQueryParam.name":{handler:function(e,t){this.queryParam.name="*"+this.myQueryParam.name+"*"},deep:!0},"queryParam.name":{handler:function(e,t){void 0==e&&(this.myQueryParam.name="")},deep:!0},"queryParam.village":{handler:function(e,t){void 0==e&&(this.showDefaultParams=[])},deep:!0}}},p=h,m=(n("d0a1"),n("0580"),n("2877")),g=Object(m["a"])(p,r,i,!1,null,"d52e67d8",null);t["default"]=g.exports},2143:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1e3,visible:e.visible,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"企业名称",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["qymc",{rules:[{required:!0,message:"请输入企业名称!"}]}],expression:"['qymc', {rules: [{ required: true, message: '请输入企业名称!' }]}]"}],attrs:{placeholder:"请输入企业名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"社会统一信用代码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["socialCode",{rules:[{required:!0,message:"请输入社会统一信用代码!"}]}],expression:"['socialCode', {rules: [{ required: true, message: '请输入社会统一信用代码!' }]}]"}],attrs:{placeholder:"请输入社会统一信用代码"}})],1)],1)],1)],1)},i=[],o=n("be94"),a=n("0fea"),s=n("2dab"),l=n("88bc"),c=n.n(l),u=(n("c1df"),{name:"JeecgOrderDMainModal",components:{JDate:s["default"]},data:function(){return{title:"操作",visible:!1,orderMainModel:{jeecgOrderCustomerList:[{}],jeecgOrderTicketList:[{}]},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/yuanqu/enterprise/add",edit:"/yuanqu/enterprise/edit",orderCustomerList:"/yuanqu/enterprise/listOrderCustomerByMainId",orderTicketList:"/yuanqu/enterprise/listOrderTicketByMainId"}}},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.orderMainModel=Object.assign({},e),console.log(this.orderMainModel.id),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(c()(t.orderMainModel,"qymc","socialCode"))})),console.log(this.orderMainModel)},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",s="";e.orderMainModel.id?(i+=e.url.edit,s="put"):(i+=e.url.add,s="post");var l=Object.assign(e.orderMainModel,r),c=Object(o["a"])({},l);console.log(c),Object(a["i"])(i,c,s).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),d=u,f=(n("8983"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"725b7224",null);t["default"]=h.exports},2148:function(e,t,n){},"21bc":function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n("3900"),i=n("01d4"),o=n("cd7e"),a=n("9f5e"),s=n("1af9"),l=n("0999"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this,n.ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var a=void 0!==r.className?r.className:"ol-attribution",s=void 0!==r.tipLabel?r.tipLabel:"Attributions",l=void 0!==r.expandClassName?r.expandClassName:a+"-expand",c=void 0!==r.collapseLabel?r.collapseLabel:"»",u=void 0!==r.collapseClassName?r.collapseClassName:a+"-collpase";"string"===typeof c?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=c,n.collapseLabel_.className=u):n.collapseLabel_=c;var d=void 0!==r.label?r.label:"i";"string"===typeof d?(n.label_=document.createElement("span"),n.label_.textContent=d,n.label_.className=l):n.label_=d;var f=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,h=document.createElement("button");h.setAttribute("type","button"),h.title=s,h.appendChild(f),h.addEventListener(i["a"].CLICK,n.handleClick_.bind(n),!1);var p=a+" "+o["d"]+" "+o["b"]+(n.collapsed_&&n.collapsible_?" "+o["a"]:"")+(n.collapsible_?"":" ol-uncollapsible"),m=n.element;return m.className=p,m.appendChild(n.ulElement_),m.appendChild(h),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return c(t,e),t.prototype.collectSourceAttributions_=function(e){for(var t={},n=[],r=!0,i=e.layerStatesArray,o=0,a=i.length;o<a;++o){var l=i[o];if(Object(s["b"])(l,e.viewState)){var c=l.layer.getSource();if(c){var u=c.getAttributions();if(u){var d=u(e);if(d)if(r=r&&!1!==c.getAttributionsCollapsible(),Array.isArray(d))for(var f=0,h=d.length;f<h;++f)d[f]in t||(n.push(d[f]),t[d[f]]=!0);else d in t||(n.push(d),t[d]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(r),n},t.prototype.updateElement_=function(e){if(e){var t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(a["b"])(t,this.renderedAttributions_)){Object(l["b"])(this.ulElement_);for(var r=0,i=t.length;r<i;++r){var o=document.createElement("li");o.innerHTML=t[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},t.prototype.handleToggle_=function(){this.element.classList.toggle(o["a"]),this.collapsed_?Object(l["e"])(this.collapseLabel_,this.label_):Object(l["e"])(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.render=function(e){this.updateElement_(e.frameState)},t}(r["a"]),d=u,f=n("e300"),h=n("ca42"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var a=void 0!==r.className?r.className:"ol-rotate",s=void 0!==r.label?r.label:"⇧",l=void 0!==r.compassClassName?r.compassClassName:"ol-compass";n.label_=null,"string"===typeof s?(n.label_=document.createElement("span"),n.label_.className=l,n.label_.textContent=s):(n.label_=s,n.label_.classList.add(l));var c=r.tipLabel?r.tipLabel:"Reset rotation",u=document.createElement("button");u.className=a+"-reset",u.setAttribute("type","button"),u.title=c,u.appendChild(n.label_),u.addEventListener(i["a"].CLICK,n.handleClick_.bind(n),!1);var d=a+" "+o["d"]+" "+o["b"],f=n.element;return f.className=d,f.appendChild(u),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(o["c"]),n}return p(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var e=this.getMap(),t=e.getView();if(t){var n=t.getRotation();void 0!==n&&(this.duration_>0&&n%(2*Math.PI)!==0?t.animate({rotation:0,duration:this.duration_,easing:h["b"]}):t.setRotation(0))}},t.prototype.render=function(e){var t=e.frameState;if(t){var n=t.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(o["c"]);i||0!==n?i&&0!==n&&this.element.classList.remove(o["c"]):this.element.classList.add(o["c"])}this.label_.style.transform=r}this.rotation_=n}},t}(r["a"]),g=m,v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),target:r.target})||this;var a=void 0!==r.className?r.className:"ol-zoom",s=void 0!==r.delta?r.delta:1,l=void 0!==r.zoomInClassName?r.zoomInClassName:a+"-in",c=void 0!==r.zoomOutClassName?r.zoomOutClassName:a+"-out",u=void 0!==r.zoomInLabel?r.zoomInLabel:"+",d=void 0!==r.zoomOutLabel?r.zoomOutLabel:"−",f=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",h=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=l,p.setAttribute("type","button"),p.title=f,p.appendChild("string"===typeof u?document.createTextNode(u):u),p.addEventListener(i["a"].CLICK,n.handleClick_.bind(n,s),!1);var m=document.createElement("button");m.className=c,m.setAttribute("type","button"),m.title=h,m.appendChild("string"===typeof d?document.createTextNode(d):d),m.addEventListener(i["a"].CLICK,n.handleClick_.bind(n,-s),!1);var g=a+" "+o["d"]+" "+o["b"],v=n.element;return v.className=g,v.appendChild(p),v.appendChild(m),n.duration_=void 0!==r.duration?r.duration:250,n}return v(t,e),t.prototype.handleClick_=function(e,t){t.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var t=this.getMap(),n=t.getView();if(n){var r=n.getZoom();if(void 0!==r){var i=n.getConstrainedZoom(r+e);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:i,duration:this.duration_,easing:h["b"]})):n.setZoom(i)}}},t}(r["a"]),b=y;function _(e){var t=e||{},n=new f["a"],r=void 0===t.zoom||t.zoom;r&&n.push(new b(t.zoomOptions));var i=void 0===t.rotate||t.rotate;i&&n.push(new g(t.rotateOptions));var o=void 0===t.attribution||t.attribution;return o&&n.push(new d(t.attributionOptions)),n}},"21dd":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("1342"),a={name:"emergency_resource_index_dept",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("f18f"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"4c6fe7d9",null);t["default"]=c.exports},2244:function(e,t,n){(function(t){var n={version:"1.14.0"};n[437]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[620]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖܢ٥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[737]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[850]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[852]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[857]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[861]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[865]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[866]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[874]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[895]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ČüéďäĎŤčěĚĹÍľǪÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[932]=function(){var e,t=[],n={},r=[];for(r[0]="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚��������������������������������".split(""),e=0;e!=r[0].length;++e)65533!==r[0][e].charCodeAt(0)&&(n[r[0][e]]=0+e,t[0+e]=r[0][e]);for(r[129]="���������������������������������������������������������������� 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+-±×�÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓�����������∈∋⊆⊇⊂⊃∪∩��������∧∨¬⇒⇔∀∃�����������∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬�������ʼn♯♭♪†‡¶����◯���".split(""),e=0;e!=r[129].length;++e)65533!==r[129][e].charCodeAt(0)&&(n[r[129][e]]=33024+e,t[33024+e]=r[129][e]);for(r[130]="�������������������������������������������������������������������������������0123456789�������ABCDEFGHIJKLMNOPQRSTUVWXYZ�������abcdefghijklmnopqrstuvwxyz����ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん��������������".split(""),e=0;e!=r[130].length;++e)65533!==r[130][e].charCodeAt(0)&&(n[r[130][e]]=33280+e,t[33280+e]=r[130][e]);for(r[131]="����������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミ�ムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ��������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�����������������������������������������".split(""),e=0;e!=r[131].length;++e)65533!==r[131][e].charCodeAt(0)&&(n[r[131][e]]=33536+e,t[33536+e]=r[131][e]);for(r[132]="����������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмн�опрстуфхцчшщъыьэюя�������������─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂�����������������������������������������������������������������".split(""),e=0;e!=r[132].length;++e)65533!==r[132][e].charCodeAt(0)&&(n[r[132][e]]=33792+e,t[33792+e]=r[132][e]);for(r[135]="����������������������������������������������������������������①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡��������㍻�〝〟№㏍℡㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪���������������������������������������������������������������������������������������������������".split(""),e=0;e!=r[135].length;++e)65533!==r[135][e].charCodeAt(0)&&(n[r[135][e]]=34560+e,t[34560+e]=r[135][e]);for(r[136]="���������������������������������������������������������������������������������������������������������������������������������������������������������������亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭���".split(""),e=0;e!=r[136].length;++e)65533!==r[136][e].charCodeAt(0)&&(n[r[136][e]]=34816+e,t[34816+e]=r[136][e]);for(r[137]="����������������������������������������������������������������院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円�園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改���".split(""),e=0;e!=r[137].length;++e)65533!==r[137][e].charCodeAt(0)&&(n[r[137][e]]=35072+e,t[35072+e]=r[137][e]);for(r[138]="����������������������������������������������������������������魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫�橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄���".split(""),e=0;e!=r[138].length;++e)65533!==r[138][e].charCodeAt(0)&&(n[r[138][e]]=35328+e,t[35328+e]=r[138][e]);for(r[139]="����������������������������������������������������������������機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救�朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈���".split(""),e=0;e!=r[139].length;++e)65533!==r[139][e].charCodeAt(0)&&(n[r[139][e]]=35584+e,t[35584+e]=r[139][e]);for(r[140]="����������������������������������������������������������������掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨�劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向���".split(""),e=0;e!=r[140].length;++e)65533!==r[140][e].charCodeAt(0)&&(n[r[140][e]]=35840+e,t[35840+e]=r[140][e]);for(r[141]="����������������������������������������������������������������后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降�項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷���".split(""),e=0;e!=r[141].length;++e)65533!==r[141][e].charCodeAt(0)&&(n[r[141][e]]=36096+e,t[36096+e]=r[141][e]);for(r[142]="����������������������������������������������������������������察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止�死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周���".split(""),e=0;e!=r[142].length;++e)65533!==r[142][e].charCodeAt(0)&&(n[r[142][e]]=36352+e,t[36352+e]=r[142][e]);for(r[143]="����������������������������������������������������������������宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳�準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾���".split(""),e=0;e!=r[143].length;++e)65533!==r[143][e].charCodeAt(0)&&(n[r[143][e]]=36608+e,t[36608+e]=r[143][e]);for(r[144]="����������������������������������������������������������������拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨�逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線���".split(""),e=0;e!=r[144].length;++e)65533!==r[144][e].charCodeAt(0)&&(n[r[144][e]]=36864+e,t[36864+e]=r[144][e]);for(r[145]="����������������������������������������������������������������繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻�操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只���".split(""),e=0;e!=r[145].length;++e)65533!==r[145][e].charCodeAt(0)&&(n[r[145][e]]=37120+e,t[37120+e]=r[145][e]);for(r[146]="����������������������������������������������������������������叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄�逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓���".split(""),e=0;e!=r[146].length;++e)65533!==r[146][e].charCodeAt(0)&&(n[r[146][e]]=37376+e,t[37376+e]=r[146][e]);for(r[147]="����������������������������������������������������������������邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬�凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入���".split(""),e=0;e!=r[147].length;++e)65533!==r[147][e].charCodeAt(0)&&(n[r[147][e]]=37632+e,t[37632+e]=r[147][e]);for(r[148]="����������������������������������������������������������������如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅�楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美���".split(""),e=0;e!=r[148].length;++e)65533!==r[148][e].charCodeAt(0)&&(n[r[148][e]]=37888+e,t[37888+e]=r[148][e]);for(r[149]="����������������������������������������������������������������鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷�斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋���".split(""),e=0;e!=r[149].length;++e)65533!==r[149][e].charCodeAt(0)&&(n[r[149][e]]=38144+e,t[38144+e]=r[149][e]);for(r[150]="����������������������������������������������������������������法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆�摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒���".split(""),e=0;e!=r[150].length;++e)65533!==r[150][e].charCodeAt(0)&&(n[r[150][e]]=38400+e,t[38400+e]=r[150][e]);for(r[151]="����������������������������������������������������������������諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲�沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯���".split(""),e=0;e!=r[151].length;++e)65533!==r[151][e].charCodeAt(0)&&(n[r[151][e]]=38656+e,t[38656+e]=r[151][e]);for(r[152]="����������������������������������������������������������������蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕��������������������������������������������弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲���".split(""),e=0;e!=r[152].length;++e)65533!==r[152][e].charCodeAt(0)&&(n[r[152][e]]=38912+e,t[38912+e]=r[152][e]);for(r[153]="����������������������������������������������������������������僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭�凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨���".split(""),e=0;e!=r[153].length;++e)65533!==r[153][e].charCodeAt(0)&&(n[r[153][e]]=39168+e,t[39168+e]=r[153][e]);for(r[154]="����������������������������������������������������������������咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸�噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩���".split(""),e=0;e!=r[154].length;++e)65533!==r[154][e].charCodeAt(0)&&(n[r[154][e]]=39424+e,t[39424+e]=r[154][e]);for(r[155]="����������������������������������������������������������������奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀�它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏���".split(""),e=0;e!=r[155].length;++e)65533!==r[155][e].charCodeAt(0)&&(n[r[155][e]]=39680+e,t[39680+e]=r[155][e]);for(r[156]="����������������������������������������������������������������廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠�怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛���".split(""),e=0;e!=r[156].length;++e)65533!==r[156][e].charCodeAt(0)&&(n[r[156][e]]=39936+e,t[39936+e]=r[156][e]);for(r[157]="����������������������������������������������������������������戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫�捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼���".split(""),e=0;e!=r[157].length;++e)65533!==r[157][e].charCodeAt(0)&&(n[r[157][e]]=40192+e,t[40192+e]=r[157][e]);for(r[158]="����������������������������������������������������������������曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎�梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣���".split(""),e=0;e!=r[158].length;++e)65533!==r[158][e].charCodeAt(0)&&(n[r[158][e]]=40448+e,t[40448+e]=r[158][e]);for(r[159]="����������������������������������������������������������������檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯�麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌���".split(""),e=0;e!=r[159].length;++e)65533!==r[159][e].charCodeAt(0)&&(n[r[159][e]]=40704+e,t[40704+e]=r[159][e]);for(r[224]="����������������������������������������������������������������漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝�烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱���".split(""),e=0;e!=r[224].length;++e)65533!==r[224][e].charCodeAt(0)&&(n[r[224][e]]=57344+e,t[57344+e]=r[224][e]);for(r[225]="����������������������������������������������������������������瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿�痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬���".split(""),e=0;e!=r[225].length;++e)65533!==r[225][e].charCodeAt(0)&&(n[r[225][e]]=57600+e,t[57600+e]=r[225][e]);for(r[226]="����������������������������������������������������������������磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰�窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆���".split(""),e=0;e!=r[226].length;++e)65533!==r[226][e].charCodeAt(0)&&(n[r[226][e]]=57856+e,t[57856+e]=r[226][e]);for(r[227]="����������������������������������������������������������������紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷�縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋���".split(""),e=0;e!=r[227].length;++e)65533!==r[227][e].charCodeAt(0)&&(n[r[227][e]]=58112+e,t[58112+e]=r[227][e]);for(r[228]="����������������������������������������������������������������隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤�艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈���".split(""),e=0;e!=r[228].length;++e)65533!==r[228][e].charCodeAt(0)&&(n[r[228][e]]=58368+e,t[58368+e]=r[228][e]);for(r[229]="����������������������������������������������������������������蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬�蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞���".split(""),e=0;e!=r[229].length;++e)65533!==r[229][e].charCodeAt(0)&&(n[r[229][e]]=58624+e,t[58624+e]=r[229][e]);for(r[230]="����������������������������������������������������������������襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧�諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊���".split(""),e=0;e!=r[230].length;++e)65533!==r[230][e].charCodeAt(0)&&(n[r[230][e]]=58880+e,t[58880+e]=r[230][e]);for(r[231]="����������������������������������������������������������������蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜�轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮���".split(""),e=0;e!=r[231].length;++e)65533!==r[231][e].charCodeAt(0)&&(n[r[231][e]]=59136+e,t[59136+e]=r[231][e]);for(r[232]="����������������������������������������������������������������錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙�閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰���".split(""),e=0;e!=r[232].length;++e)65533!==r[232][e].charCodeAt(0)&&(n[r[232][e]]=59392+e,t[59392+e]=r[232][e]);for(r[233]="����������������������������������������������������������������顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃�騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈���".split(""),e=0;e!=r[233].length;++e)65533!==r[233][e].charCodeAt(0)&&(n[r[233][e]]=59648+e,t[59648+e]=r[233][e]);for(r[234]="����������������������������������������������������������������鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯�黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙�������������������������������������������������������������������������������������������".split(""),e=0;e!=r[234].length;++e)65533!==r[234][e].charCodeAt(0)&&(n[r[234][e]]=59904+e,t[59904+e]=r[234][e]);for(r[237]="����������������������������������������������������������������纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏�塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱���".split(""),e=0;e!=r[237].length;++e)65533!==r[237][e].charCodeAt(0)&&(n[r[237][e]]=60672+e,t[60672+e]=r[237][e]);for(r[238]="����������������������������������������������������������������犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙�蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑��ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ¬¦'"���".split(""),e=0;e!=r[238].length;++e)65533!==r[238][e].charCodeAt(0)&&(n[r[238][e]]=60928+e,t[60928+e]=r[238][e]);for(r[250]="����������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊�兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯���".split(""),e=0;e!=r[250].length;++e)65533!==r[250][e].charCodeAt(0)&&(n[r[250][e]]=64e3+e,t[64e3+e]=r[250][e]);for(r[251]="����������������������������������������������������������������涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神�祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙���".split(""),e=0;e!=r[251].length;++e)65533!==r[251][e].charCodeAt(0)&&(n[r[251][e]]=64256+e,t[64256+e]=r[251][e]);for(r[252]="����������������������������������������������������������������髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=r[252].length;++e)65533!==r[252][e].charCodeAt(0)&&(n[r[252][e]]=64512+e,t[64512+e]=r[252][e]);return{enc:n,dec:t}}(),n[936]=function(){var e,t=[],n={},r=[];for(r[0]="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=r[0].length;++e)65533!==r[0][e].charCodeAt(0)&&(n[r[0][e]]=0+e,t[0+e]=r[0][e]);for(r[129]="����������������������������������������������������������������丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪乫乬乭乮乯乲乴乵乶乷乸乹乺乻乼乽乿亀亁亂亃亄亅亇亊�亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂伃伄伅伆伇伈伋伌伒伓伔伕伖伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾伿佀佁佂佄佅佇佈佉佊佋佌佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢�".split(""),e=0;e!=r[129].length;++e)65533!==r[129][e].charCodeAt(0)&&(n[r[129][e]]=33024+e,t[33024+e]=r[129][e]);for(r[130]="����������������������������������������������������������������侤侫侭侰侱侲侳侴侶侷侸侹侺侻侼侽侾俀俁係俆俇俈俉俋俌俍俒俓俔俕俖俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿倀倁倂倃倄倅倆倇倈倉倊�個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯倰倱倲倳倴倵倶倷倸倹倻倽倿偀偁偂偄偅偆偉偊偋偍偐偑偒偓偔偖偗偘偙偛偝偞偟偠偡偢偣偤偦偧偨偩偪偫偭偮偯偰偱偲偳側偵偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎傏傐傑傒傓傔傕傖傗傘備傚傛傜傝傞傟傠傡傢傤傦傪傫傭傮傯傰傱傳傴債傶傷傸傹傼�".split(""),e=0;e!=r[130].length;++e)65533!==r[130][e].charCodeAt(0)&&(n[r[130][e]]=33280+e,t[33280+e]=r[130][e]);for(r[131]="����������������������������������������������������������������傽傾傿僀僁僂僃僄僅僆僇僈僉僊僋僌働僎僐僑僒僓僔僕僗僘僙僛僜僝僞僟僠僡僢僣僤僥僨僩僪僫僯僰僱僲僴僶僷僸價僺僼僽僾僿儀儁儂儃億儅儈�儉儊儌儍儎儏儐儑儓儔儕儖儗儘儙儚儛儜儝儞償儠儢儣儤儥儦儧儨儩優儫儬儭儮儯儰儱儲儳儴儵儶儷儸儹儺儻儼儽儾兂兇兊兌兎兏児兒兓兗兘兙兛兝兞兟兠兡兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦冧冨冩冪冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒凓凔凕凖凗�".split(""),e=0;e!=r[131].length;++e)65533!==r[131][e].charCodeAt(0)&&(n[r[131][e]]=33536+e,t[33536+e]=r[131][e]);for(r[132]="����������������������������������������������������������������凘凙凚凜凞凟凢凣凥処凧凨凩凪凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄剅剆則剈剉剋剎剏剒剓剕剗剘�剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳剴創剶剷剸剹剺剻剼剾劀劃劄劅劆劇劉劊劋劌劍劎劏劑劒劔劕劖劗劘劙劚劜劤劥劦劧劮劯劰労劵劶劷劸効劺劻劼劽勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務勚勛勜勝勞勠勡勢勣勥勦勧勨勩勪勫勬勭勮勯勱勲勳勴勵勶勷勸勻勼勽匁匂匃匄匇匉匊匋匌匎�".split(""),e=0;e!=r[132].length;++e)65533!==r[132][e].charCodeAt(0)&&(n[r[132][e]]=33792+e,t[33792+e]=r[132][e]);for(r[133]="����������������������������������������������������������������匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯匰匱匲匳匴匵匶匷匸匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏�厐厑厒厓厔厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯厰厱厲厳厴厵厷厸厹厺厼厽厾叀參叄叅叆叇収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝呞呟呠呡呣呥呧呩呪呫呬呭呮呯呰呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡�".split(""),e=0;e!=r[133].length;++e)65533!==r[133][e].charCodeAt(0)&&(n[r[133][e]]=34048+e,t[34048+e]=r[133][e]);for(r[134]="����������������������������������������������������������������咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠員哢哣哤哫哬哯哰哱哴哵哶哷哸哹哻哾唀唂唃唄唅唈唊唋唌唍唎唒唓唕唖唗唘唙唚唜唝唞唟唡唥唦�唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋啌啍啎問啑啒啓啔啗啘啙啚啛啝啞啟啠啢啣啨啩啫啯啰啱啲啳啴啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠喡喢喣喤喥喦喨喩喪喫喬喭單喯喰喲喴営喸喺喼喿嗀嗁嗂嗃嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗嗘嗙嗚嗛嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸嗹嗺嗻嗼嗿嘂嘃嘄嘅�".split(""),e=0;e!=r[134].length;++e)65533!==r[134][e].charCodeAt(0)&&(n[r[134][e]]=34304+e,t[34304+e]=r[134][e]);for(r[135]="����������������������������������������������������������������嘆嘇嘊嘋嘍嘐嘑嘒嘓嘔嘕嘖嘗嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀噁噂噃噄噅噆噇噈噉噊噋噏噐噑噒噓噕噖噚噛噝噞噟噠噡�噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽噾噿嚀嚁嚂嚃嚄嚇嚈嚉嚊嚋嚌嚍嚐嚑嚒嚔嚕嚖嚗嚘嚙嚚嚛嚜嚝嚞嚟嚠嚡嚢嚤嚥嚦嚧嚨嚩嚪嚫嚬嚭嚮嚰嚱嚲嚳嚴嚵嚶嚸嚹嚺嚻嚽嚾嚿囀囁囂囃囄囅囆囇囈囉囋囌囍囎囏囐囑囒囓囕囖囘囙囜団囥囦囧囨囩囪囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國圌圍圎圏圐圑�".split(""),e=0;e!=r[135].length;++e)65533!==r[135][e].charCodeAt(0)&&(n[r[135][e]]=34560+e,t[34560+e]=r[135][e]);for(r[136]="����������������������������������������������������������������園圓圔圕圖圗團圙圚圛圝圞圠圡圢圤圥圦圧圫圱圲圴圵圶圷圸圼圽圿坁坃坄坅坆坈坉坋坒坓坔坕坖坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀�垁垇垈垉垊垍垎垏垐垑垔垕垖垗垘垙垚垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹垺垻垼垽垾垿埀埁埄埅埆埇埈埉埊埌埍埐埑埓埖埗埛埜埞埡埢埣埥埦埧埨埩埪埫埬埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥堦堧堨堩堫堬堭堮堯報堲堳場堶堷堸堹堺堻堼堽�".split(""),e=0;e!=r[136].length;++e)65533!==r[136][e].charCodeAt(0)&&(n[r[136][e]]=34816+e,t[34816+e]=r[136][e]);for(r[137]="����������������������������������������������������������������堾堿塀塁塂塃塅塆塇塈塉塊塋塎塏塐塒塓塕塖塗塙塚塛塜塝塟塠塡塢塣塤塦塧塨塩塪塭塮塯塰塱塲塳塴塵塶塷塸塹塺塻塼塽塿墂墄墆墇墈墊墋墌�墍墎墏墐墑墔墕墖増墘墛墜墝墠墡墢墣墤墥墦墧墪墫墬墭墮墯墰墱墲墳墴墵墶墷墸墹墺墻墽墾墿壀壂壃壄壆壇壈壉壊壋壌壍壎壏壐壒壓壔壖壗壘壙壚壛壜壝壞壟壠壡壢壣壥壦壧壨壩壪壭壯壱売壴壵壷壸壺壻壼壽壾壿夀夁夃夅夆夈変夊夋夌夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻�".split(""),e=0;e!=r[137].length;++e)65533!==r[137][e].charCodeAt(0)&&(n[r[137][e]]=35072+e,t[35072+e]=r[137][e]);for(r[138]="����������������������������������������������������������������夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛奜奝奞奟奡奣奤奦奧奨奩奪奫奬奭奮奯奰奱奲奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦�妧妬妭妰妱妳妴妵妶妷妸妺妼妽妿姀姁姂姃姄姅姇姈姉姌姍姎姏姕姖姙姛姞姟姠姡姢姤姦姧姩姪姫姭姮姯姰姱姲姳姴姵姶姷姸姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪娫娬娭娮娯娰娳娵娷娸娹娺娻娽娾娿婁婂婃婄婅婇婈婋婌婍婎婏婐婑婒婓婔婖婗婘婙婛婜婝婞婟婠�".split(""),e=0;e!=r[138].length;++e)65533!==r[138][e].charCodeAt(0)&&(n[r[138][e]]=35328+e,t[35328+e]=r[138][e]);for(r[139]="����������������������������������������������������������������婡婣婤婥婦婨婩婫婬婭婮婯婰婱婲婳婸婹婻婼婽婾媀媁媂媃媄媅媆媇媈媉媊媋媌媍媎媏媐媑媓媔媕媖媗媘媙媜媝媞媟媠媡媢媣媤媥媦媧媨媩媫媬�媭媮媯媰媱媴媶媷媹媺媻媼媽媿嫀嫃嫄嫅嫆嫇嫈嫊嫋嫍嫎嫏嫐嫑嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬嫭嫮嫯嫰嫲嫳嫴嫵嫶嫷嫸嫹嫺嫻嫼嫽嫾嫿嬀嬁嬂嬃嬄嬅嬆嬇嬈嬊嬋嬌嬍嬎嬏嬐嬑嬒嬓嬔嬕嬘嬙嬚嬛嬜嬝嬞嬟嬠嬡嬢嬣嬤嬥嬦嬧嬨嬩嬪嬫嬬嬭嬮嬯嬰嬱嬳嬵嬶嬸嬹嬺嬻嬼嬽嬾嬿孁孂孃孄孅孆孇�".split(""),e=0;e!=r[139].length;++e)65533!==r[139][e].charCodeAt(0)&&(n[r[139][e]]=35584+e,t[35584+e]=r[139][e]);for(r[140]="����������������������������������������������������������������孈孉孊孋孌孍孎孏孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏�寑寔寕寖寗寘寙寚寛寜寠寢寣實寧審寪寫寬寭寯寱寲寳寴寵寶寷寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧屨屩屪屫屬屭屰屲屳屴屵屶屷屸屻屼屽屾岀岃岄岅岆岇岉岊岋岎岏岒岓岕岝岞岟岠岡岤岥岦岧岨�".split(""),e=0;e!=r[140].length;++e)65533!==r[140][e].charCodeAt(0)&&(n[r[140][e]]=35840+e,t[35840+e]=r[140][e]);for(r[141]="����������������������������������������������������������������岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅峆峇峈峉峊峌峍峎峏峐峑峓峔峕峖峗峘峚峛峜峝峞峟峠峢峣峧峩峫峬峮峯峱峲峳峴峵島峷峸峹峺峼峽峾峿崀�崁崄崅崈崉崊崋崌崍崏崐崑崒崓崕崗崘崙崚崜崝崟崠崡崢崣崥崨崪崫崬崯崰崱崲崳崵崶崷崸崹崺崻崼崿嵀嵁嵂嵃嵄嵅嵆嵈嵉嵍嵎嵏嵐嵑嵒嵓嵔嵕嵖嵗嵙嵚嵜嵞嵟嵠嵡嵢嵣嵤嵥嵦嵧嵨嵪嵭嵮嵰嵱嵲嵳嵵嵶嵷嵸嵹嵺嵻嵼嵽嵾嵿嶀嶁嶃嶄嶅嶆嶇嶈嶉嶊嶋嶌嶍嶎嶏嶐嶑嶒嶓嶔嶕嶖嶗嶘嶚嶛嶜嶞嶟嶠�".split(""),e=0;e!=r[141].length;++e)65533!==r[141][e].charCodeAt(0)&&(n[r[141][e]]=36096+e,t[36096+e]=r[141][e]);for(r[142]="����������������������������������������������������������������嶡嶢嶣嶤嶥嶦嶧嶨嶩嶪嶫嶬嶭嶮嶯嶰嶱嶲嶳嶴嶵嶶嶸嶹嶺嶻嶼嶽嶾嶿巀巁巂巃巄巆巇巈巉巊巋巌巎巏巐巑巒巓巔巕巖巗巘巙巚巜巟巠巣巤巪巬巭�巰巵巶巸巹巺巻巼巿帀帄帇帉帊帋帍帎帒帓帗帞帟帠帡帢帣帤帥帨帩帪師帬帯帰帲帳帴帵帶帹帺帾帿幀幁幃幆幇幈幉幊幋幍幎幏幐幑幒幓幖幗幘幙幚幜幝幟幠幣幤幥幦幧幨幩幪幫幬幭幮幯幰幱幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨庩庪庫庬庮庯庰庱庲庴庺庻庼庽庿廀廁廂廃廄廅�".split(""),e=0;e!=r[142].length;++e)65533!==r[142][e].charCodeAt(0)&&(n[r[142][e]]=36352+e,t[36352+e]=r[142][e]);for(r[143]="����������������������������������������������������������������廆廇廈廋廌廍廎廏廐廔廕廗廘廙廚廜廝廞廟廠廡廢廣廤廥廦廧廩廫廬廭廮廯廰廱廲廳廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤�弨弫弬弮弰弲弳弴張弶強弸弻弽弾弿彁彂彃彄彅彆彇彈彉彊彋彌彍彎彏彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢徣徤徥徦徧復徫徬徯徰徱徲徳徴徶徸徹徺徻徾徿忀忁忂忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇�".split(""),e=0;e!=r[143].length;++e)65533!==r[143][e].charCodeAt(0)&&(n[r[143][e]]=36608+e,t[36608+e]=r[143][e]);for(r[144]="����������������������������������������������������������������怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰怱怲怳怴怶怷怸怹怺怽怾恀恄恅恆恇恈恉恊恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀�悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽悾悿惀惁惂惃惄惇惈惉惌惍惎惏惐惒惓惔惖惗惙惛惞惡惢惣惤惥惪惱惲惵惷惸惻惼惽惾惿愂愃愄愅愇愊愋愌愐愑愒愓愔愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬愭愮愯愰愱愲愳愴愵愶愷愸愹愺愻愼愽愾慀慁慂慃慄慅慆�".split(""),e=0;e!=r[144].length;++e)65533!==r[144][e].charCodeAt(0)&&(n[r[144][e]]=36864+e,t[36864+e]=r[144][e]);for(r[145]="����������������������������������������������������������������慇慉態慍慏慐慒慓慔慖慗慘慙慚慛慜慞慟慠慡慣慤慥慦慩慪慫慬慭慮慯慱慲慳慴慶慸慹慺慻慼慽慾慿憀憁憂憃憄憅憆憇憈憉憊憌憍憏憐憑憒憓憕�憖憗憘憙憚憛憜憞憟憠憡憢憣憤憥憦憪憫憭憮憯憰憱憲憳憴憵憶憸憹憺憻憼憽憿懀懁懃懄懅懆懇應懌懍懎懏懐懓懕懖懗懘懙懚懛懜懝懞懟懠懡懢懣懤懥懧懨懩懪懫懬懭懮懯懰懱懲懳懴懶懷懸懹懺懻懼懽懾戀戁戂戃戄戅戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸戹戺戻戼扂扄扅扆扊�".split(""),e=0;e!=r[145].length;++e)65533!==r[145][e].charCodeAt(0)&&(n[r[145][e]]=37120+e,t[37120+e]=r[145][e]);for(r[146]="����������������������������������������������������������������扏扐払扖扗扙扚扜扝扞扟扠扡扢扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋抌抍抎抏抐抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁�拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳挴挵挶挷挸挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖捗捘捙捚捛捜捝捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙掚掛掜掝掞掟採掤掦掫掯掱掲掵掶掹掻掽掿揀�".split(""),e=0;e!=r[146].length;++e)65533!==r[146][e].charCodeAt(0)&&(n[r[146][e]]=37376+e,t[37376+e]=r[146][e]);for(r[147]="����������������������������������������������������������������揁揂揃揅揇揈揊揋揌揑揓揔揕揗揘揙揚換揜揝揟揢揤揥揦揧揨揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆搇搈搉搊損搎搑搒搕搖搗搘搙搚搝搟搢搣搤�搥搧搨搩搫搮搯搰搱搲搳搵搶搷搸搹搻搼搾摀摂摃摉摋摌摍摎摏摐摑摓摕摖摗摙摚摛摜摝摟摠摡摢摣摤摥摦摨摪摫摬摮摯摰摱摲摳摴摵摶摷摻摼摽摾摿撀撁撃撆撈撉撊撋撌撍撎撏撐撓撔撗撘撚撛撜撝撟撠撡撢撣撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆擇擈擉擊擋擌擏擑擓擔擕擖擙據�".split(""),e=0;e!=r[147].length;++e)65533!==r[147][e].charCodeAt(0)&&(n[r[147][e]]=37632+e,t[37632+e]=r[147][e]);for(r[148]="����������������������������������������������������������������擛擜擝擟擠擡擣擥擧擨擩擪擫擬擭擮擯擰擱擲擳擴擵擶擷擸擹擺擻擼擽擾擿攁攂攃攄攅攆攇攈攊攋攌攍攎攏攐攑攓攔攕攖攗攙攚攛攜攝攞攟攠攡�攢攣攤攦攧攨攩攪攬攭攰攱攲攳攷攺攼攽敀敁敂敃敄敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數敹敺敻敼敽敾敿斀斁斂斃斄斅斆斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱斲斳斴斵斶斷斸斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘旙旚旛旜旝旞旟旡旣旤旪旫�".split(""),e=0;e!=r[148].length;++e)65533!==r[148][e].charCodeAt(0)&&(n[r[148][e]]=37888+e,t[37888+e]=r[148][e]);for(r[149]="����������������������������������������������������������������旲旳旴旵旸旹旻旼旽旾旿昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷昸昹昺昻昽昿晀時晄晅晆晇晈晉晊晍晎晐晑晘�晙晛晜晝晞晠晢晣晥晧晩晪晫晬晭晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘暙暚暛暜暞暟暠暡暢暣暤暥暦暩暪暫暬暭暯暰暱暲暳暵暶暷暸暺暻暼暽暿曀曁曂曃曄曅曆曇曈曉曊曋曌曍曎曏曐曑曒曓曔曕曖曗曘曚曞曟曠曡曢曣曤曥曧曨曪曫曬曭曮曯曱曵曶書曺曻曽朁朂會�".split(""),e=0;e!=r[149].length;++e)65533!==r[149][e].charCodeAt(0)&&(n[r[149][e]]=38144+e,t[38144+e]=r[149][e]);for(r[150]="����������������������������������������������������������������朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠朡朢朣朤朥朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗杘杙杚杛杝杢杣杤杦杧杫杬杮東杴杶�杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹枺枻枼枽枾枿柀柂柅柆柇柈柉柊柋柌柍柎柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵柶柷柸柹柺査柼柾栁栂栃栄栆栍栐栒栔栕栘栙栚栛栜栞栟栠栢栣栤栥栦栧栨栫栬栭栮栯栰栱栴栵栶栺栻栿桇桋桍桏桒桖桗桘桙桚桛�".split(""),e=0;e!=r[150].length;++e)65533!==r[150][e].charCodeAt(0)&&(n[r[150][e]]=38400+e,t[38400+e]=r[150][e]);for(r[151]="����������������������������������������������������������������桜桝桞桟桪桬桭桮桯桰桱桲桳桵桸桹桺桻桼桽桾桿梀梂梄梇梈梉梊梋梌梍梎梐梑梒梔梕梖梘梙梚梛梜條梞梟梠梡梣梤梥梩梪梫梬梮梱梲梴梶梷梸�梹梺梻梼梽梾梿棁棃棄棅棆棇棈棊棌棎棏棐棑棓棔棖棗棙棛棜棝棞棟棡棢棤棥棦棧棨棩棪棫棬棭棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆椇椈椉椊椌椏椑椓椔椕椖椗椘椙椚椛検椝椞椡椢椣椥椦椧椨椩椪椫椬椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃楄楅楆楇楈楉楊楋楌楍楎楏楐楑楒楓楕楖楘楙楛楜楟�".split(""),e=0;e!=r[151].length;++e)65533!==r[151][e].charCodeAt(0)&&(n[r[151][e]]=38656+e,t[38656+e]=r[151][e]);for(r[152]="����������������������������������������������������������������楡楢楤楥楧楨楩楪楬業楯楰楲楳楴極楶楺楻楽楾楿榁榃榅榊榋榌榎榏榐榑榒榓榖榗榙榚榝榞榟榠榡榢榣榤榥榦榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽�榾榿槀槂槃槄槅槆槇槈槉構槍槏槑槒槓槕槖槗様槙槚槜槝槞槡槢槣槤槥槦槧槨槩槪槫槬槮槯槰槱槳槴槵槶槷槸槹槺槻槼槾樀樁樂樃樄樅樆樇樈樉樋樌樍樎樏樐樑樒樓樔樕樖標樚樛樜樝樞樠樢樣樤樥樦樧権樫樬樭樮樰樲樳樴樶樷樸樹樺樻樼樿橀橁橂橃橅橆橈橉橊橋橌橍橎橏橑橒橓橔橕橖橗橚�".split(""),e=0;e!=r[152].length;++e)65533!==r[152][e].charCodeAt(0)&&(n[r[152][e]]=38912+e,t[38912+e]=r[152][e]);for(r[153]="����������������������������������������������������������������橜橝橞機橠橢橣橤橦橧橨橩橪橫橬橭橮橯橰橲橳橴橵橶橷橸橺橻橽橾橿檁檂檃檅檆檇檈檉檊檋檌檍檏檒檓檔檕檖檘檙檚檛檜檝檞檟檡檢檣檤檥檦�檧檨檪檭檮檯檰檱檲檳檴檵檶檷檸檹檺檻檼檽檾檿櫀櫁櫂櫃櫄櫅櫆櫇櫈櫉櫊櫋櫌櫍櫎櫏櫐櫑櫒櫓櫔櫕櫖櫗櫘櫙櫚櫛櫜櫝櫞櫟櫠櫡櫢櫣櫤櫥櫦櫧櫨櫩櫪櫫櫬櫭櫮櫯櫰櫱櫲櫳櫴櫵櫶櫷櫸櫹櫺櫻櫼櫽櫾櫿欀欁欂欃欄欅欆欇欈欉權欋欌欍欎欏欐欑欒欓欔欕欖欗欘欙欚欛欜欝欞欟欥欦欨欩欪欫欬欭欮�".split(""),e=0;e!=r[153].length;++e)65533!==r[153][e].charCodeAt(0)&&(n[r[153][e]]=39168+e,t[39168+e]=r[153][e]);for(r[154]="����������������������������������������������������������������欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍歎歏歐歑歒歓歔歕歖歗歘歚歛歜歝歞歟歠歡歨歩歫歬歭歮歯歰歱歲歳歴歵歶歷歸歺歽歾歿殀殅殈�殌殎殏殐殑殔殕殗殘殙殜殝殞殟殠殢殣殤殥殦殧殨殩殫殬殭殮殯殰殱殲殶殸殹殺殻殼殽殾毀毃毄毆毇毈毉毊毌毎毐毑毘毚毜毝毞毟毠毢毣毤毥毦毧毨毩毬毭毮毰毱毲毴毶毷毸毺毻毼毾毿氀氁氂氃氄氈氉氊氋氌氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋汌汍汎汏汑汒汓汖汘�".split(""),e=0;e!=r[154].length;++e)65533!==r[154][e].charCodeAt(0)&&(n[r[154][e]]=39424+e,t[39424+e]=r[154][e]);for(r[155]="����������������������������������������������������������������汙汚汢汣汥汦汧汫汬汭汮汯汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘�泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟洠洡洢洣洤洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽浾浿涀涁涃涄涆涇涊涋涍涏涐涒涖涗涘涙涚涜涢涥涬涭涰涱涳涴涶涷涹涺涻涼涽涾淁淂淃淈淉淊�".split(""),e=0;e!=r[155].length;++e)65533!==r[155][e].charCodeAt(0)&&(n[r[155][e]]=39680+e,t[39680+e]=r[155][e]);for(r[156]="����������������������������������������������������������������淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽淾淿渀渁渂渃渄渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵�渶渷渹渻渼渽渾渿湀湁湂湅湆湇湈湉湊湋湌湏湐湑湒湕湗湙湚湜湝湞湠湡湢湣湤湥湦湧湨湩湪湬湭湯湰湱湲湳湴湵湶湷湸湹湺湻湼湽満溁溂溄溇溈溊溋溌溍溎溑溒溓溔溕準溗溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪滫滬滭滮滯�".split(""),e=0;e!=r[156].length;++e)65533!==r[156][e].charCodeAt(0)&&(n[r[156][e]]=39936+e,t[39936+e]=r[156][e]);for(r[157]="����������������������������������������������������������������滰滱滲滳滵滶滷滸滺滻滼滽滾滿漀漁漃漄漅漇漈漊漋漌漍漎漐漑漒漖漗漘漙漚漛漜漝漞漟漡漢漣漥漦漧漨漬漮漰漲漴漵漷漸漹漺漻漼漽漿潀潁潂�潃潄潅潈潉潊潌潎潏潐潑潒潓潔潕潖潗潙潚潛潝潟潠潡潣潤潥潧潨潩潪潫潬潯潰潱潳潵潶潷潹潻潽潾潿澀澁澂澃澅澆澇澊澋澏澐澑澒澓澔澕澖澗澘澙澚澛澝澞澟澠澢澣澤澥澦澨澩澪澫澬澭澮澯澰澱澲澴澵澷澸澺澻澼澽澾澿濁濃濄濅濆濇濈濊濋濌濍濎濏濐濓濔濕濖濗濘濙濚濛濜濝濟濢濣濤濥�".split(""),e=0;e!=r[157].length;++e)65533!==r[157][e].charCodeAt(0)&&(n[r[157][e]]=40192+e,t[40192+e]=r[157][e]);for(r[158]="����������������������������������������������������������������濦濧濨濩濪濫濬濭濰濱濲濳濴濵濶濷濸濹濺濻濼濽濾濿瀀瀁瀂瀃瀄瀅瀆瀇瀈瀉瀊瀋瀌瀍瀎瀏瀐瀒瀓瀔瀕瀖瀗瀘瀙瀜瀝瀞瀟瀠瀡瀢瀤瀥瀦瀧瀨瀩瀪�瀫瀬瀭瀮瀯瀰瀱瀲瀳瀴瀶瀷瀸瀺瀻瀼瀽瀾瀿灀灁灂灃灄灅灆灇灈灉灊灋灍灎灐灑灒灓灔灕灖灗灘灙灚灛灜灝灟灠灡灢灣灤灥灦灧灨灩灪灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞炟炠炡炢炣炤炥炦炧炨炩炪炰炲炴炵炶為炾炿烄烅烆烇烉烋烌烍烎烏烐烑烒烓烔烕烖烗烚�".split(""),e=0;e!=r[158].length;++e)65533!==r[158][e].charCodeAt(0)&&(n[r[158][e]]=40448+e,t[40448+e]=r[158][e]);for(r[159]="����������������������������������������������������������������烜烝烞烠烡烢烣烥烪烮烰烱烲烳烴烵烶烸烺烻烼烾烿焀焁焂焃焄焅焆焇焈焋焌焍焎焏焑焒焔焗焛焜焝焞焟焠無焢焣焤焥焧焨焩焪焫焬焭焮焲焳焴�焵焷焸焹焺焻焼焽焾焿煀煁煂煃煄煆煇煈煉煋煍煏煐煑煒煓煔煕煖煗煘煙煚煛煝煟煠煡煢煣煥煩煪煫煬煭煯煰煱煴煵煶煷煹煻煼煾煿熀熁熂熃熅熆熇熈熉熋熌熍熎熐熑熒熓熕熖熗熚熛熜熝熞熡熢熣熤熥熦熧熩熪熫熭熮熯熰熱熲熴熶熷熸熺熻熼熽熾熿燀燁燂燄燅燆燇燈燉燊燋燌燍燏燐燑燒燓�".split(""),e=0;e!=r[159].length;++e)65533!==r[159][e].charCodeAt(0)&&(n[r[159][e]]=40704+e,t[40704+e]=r[159][e]);for(r[160]="����������������������������������������������������������������燖燗燘燙燚燛燜燝燞營燡燢燣燤燦燨燩燪燫燬燭燯燰燱燲燳燴燵燶燷燸燺燻燼燽燾燿爀爁爂爃爄爅爇爈爉爊爋爌爍爎爏爐爑爒爓爔爕爖爗爘爙爚�爛爜爞爟爠爡爢爣爤爥爦爧爩爫爭爮爯爲爳爴爺爼爾牀牁牂牃牄牅牆牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅犆犇犈犉犌犎犐犑犓犔犕犖犗犘犙犚犛犜犝犞犠犡犢犣犤犥犦犧犨犩犪犫犮犱犲犳犵犺犻犼犽犾犿狀狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛�".split(""),e=0;e!=r[160].length;++e)65533!==r[160][e].charCodeAt(0)&&(n[r[160][e]]=40960+e,t[40960+e]=r[160][e]);for(r[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),e=0;e!=r[161].length;++e)65533!==r[161][e].charCodeAt(0)&&(n[r[161][e]]=41216+e,t[41216+e]=r[161][e]);for(r[162]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),e=0;e!=r[162].length;++e)65533!==r[162][e].charCodeAt(0)&&(n[r[162][e]]=41472+e,t[41472+e]=r[162][e]);for(r[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=r[163].length;++e)65533!==r[163][e].charCodeAt(0)&&(n[r[163][e]]=41728+e,t[41728+e]=r[163][e]);for(r[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=r[164].length;++e)65533!==r[164][e].charCodeAt(0)&&(n[r[164][e]]=41984+e,t[41984+e]=r[164][e]);for(r[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=r[165].length;++e)65533!==r[165][e].charCodeAt(0)&&(n[r[165][e]]=42240+e,t[42240+e]=r[165][e]);for(r[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������︵︶︹︺︿﹀︽︾﹁﹂﹃﹄��︻︼︷︸︱�︳︴����������".split(""),e=0;e!=r[166].length;++e)65533!==r[166][e].charCodeAt(0)&&(n[r[166][e]]=42496+e,t[42496+e]=r[166][e]);for(r[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=r[167].length;++e)65533!==r[167][e].charCodeAt(0)&&(n[r[167][e]]=42752+e,t[42752+e]=r[167][e]);for(r[168]="����������������������������������������������������������������ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇�█▉▊▋▌▍▎▏▓▔▕▼▽◢◣◤◥☉⊕〒〝〞�����������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ�ńň�ɡ����ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),e=0;e!=r[168].length;++e)65533!==r[168][e].charCodeAt(0)&&(n[r[168][e]]=43008+e,t[43008+e]=r[168][e]);for(r[169]="����������������������������������������������������������������〡〢〣〤〥〦〧〨〩㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦�℡㈱�‐���ー゛゜ヽヾ〆ゝゞ﹉﹊﹋﹌﹍﹎﹏﹐﹑﹒﹔﹕﹖﹗﹙﹚﹛﹜﹝﹞﹟﹠﹡�﹢﹣﹤﹥﹦﹨﹩﹪﹫�������������〇�������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),e=0;e!=r[169].length;++e)65533!==r[169][e].charCodeAt(0)&&(n[r[169][e]]=43264+e,t[43264+e]=r[169][e]);for(r[170]="����������������������������������������������������������������狜狝狟狢狣狤狥狦狧狪狫狵狶狹狽狾狿猀猂猄猅猆猇猈猉猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀獁獂獃獄獅獆獇獈�獉獊獋獌獎獏獑獓獔獕獖獘獙獚獛獜獝獞獟獡獢獣獤獥獦獧獨獩獪獫獮獰獱�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[170].length;++e)65533!==r[170][e].charCodeAt(0)&&(n[r[170][e]]=43520+e,t[43520+e]=r[170][e]);for(r[171]="����������������������������������������������������������������獲獳獴獵獶獷獸獹獺獻獼獽獿玀玁玂玃玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣玤玥玦玧玨玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃珄珅珆珇�珋珌珎珒珓珔珕珖珗珘珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳珴珵珶珷�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[171].length;++e)65533!==r[171][e].charCodeAt(0)&&(n[r[171][e]]=43776+e,t[43776+e]=r[171][e]);for(r[172]="����������������������������������������������������������������珸珹珺珻珼珽現珿琀琁琂琄琇琈琋琌琍琎琑琒琓琔琕琖琗琘琙琜琝琞琟琠琡琣琤琧琩琫琭琯琱琲琷琸琹琺琻琽琾琿瑀瑂瑃瑄瑅瑆瑇瑈瑉瑊瑋瑌瑍�瑎瑏瑐瑑瑒瑓瑔瑖瑘瑝瑠瑡瑢瑣瑤瑥瑦瑧瑨瑩瑪瑫瑬瑮瑯瑱瑲瑳瑴瑵瑸瑹瑺�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[172].length;++e)65533!==r[172][e].charCodeAt(0)&&(n[r[172][e]]=44032+e,t[44032+e]=r[172][e]);for(r[173]="����������������������������������������������������������������瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑璒璓璔璕璖璗璘璙璚璛璝璟璠璡璢璣璤璥璦璪璫璬璭璮璯環璱璲璳璴璵璶璷璸璹璻璼璽璾璿瓀瓁瓂瓃瓄瓅瓆瓇�瓈瓉瓊瓋瓌瓍瓎瓏瓐瓑瓓瓔瓕瓖瓗瓘瓙瓚瓛瓝瓟瓡瓥瓧瓨瓩瓪瓫瓬瓭瓰瓱瓲�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[173].length;++e)65533!==r[173][e].charCodeAt(0)&&(n[r[173][e]]=44288+e,t[44288+e]=r[173][e]);for(r[174]="����������������������������������������������������������������瓳瓵瓸瓹瓺瓻瓼瓽瓾甀甁甂甃甅甆甇甈甉甊甋甌甎甐甒甔甕甖甗甛甝甞甠甡產産甤甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘�畝畞畟畠畡畢畣畤畧畨畩畫畬畭畮畯異畱畳畵當畷畺畻畼畽畾疀疁疂疄疅疇�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[174].length;++e)65533!==r[174][e].charCodeAt(0)&&(n[r[174][e]]=44544+e,t[44544+e]=r[174][e]);for(r[175]="����������������������������������������������������������������疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦疧疨疩疪疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇�瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[175].length;++e)65533!==r[175][e].charCodeAt(0)&&(n[r[175][e]]=44800+e,t[44800+e]=r[175][e]);for(r[176]="����������������������������������������������������������������癅癆癇癈癉癊癋癎癏癐癑癒癓癕癗癘癙癚癛癝癟癠癡癢癤癥癦癧癨癩癪癬癭癮癰癱癲癳癴癵癶癷癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛�皜皝皞皟皠皡皢皣皥皦皧皨皩皪皫皬皭皯皰皳皵皶皷皸皹皺皻皼皽皾盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),e=0;e!=r[176].length;++e)65533!==r[176][e].charCodeAt(0)&&(n[r[176][e]]=45056+e,t[45056+e]=r[176][e]);for(r[177]="����������������������������������������������������������������盄盇盉盋盌盓盕盙盚盜盝盞盠盡盢監盤盦盧盨盩盪盫盬盭盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎眏眐眑眒眓眔眕眖眗眘眛眜眝眞眡眣眤眥眧眪眫�眬眮眰眱眲眳眴眹眻眽眾眿睂睄睅睆睈睉睊睋睌睍睎睏睒睓睔睕睖睗睘睙睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),e=0;e!=r[177].length;++e)65533!==r[177][e].charCodeAt(0)&&(n[r[177][e]]=45312+e,t[45312+e]=r[177][e]);for(r[178]="����������������������������������������������������������������睝睞睟睠睤睧睩睪睭睮睯睰睱睲睳睴睵睶睷睸睺睻睼瞁瞂瞃瞆瞇瞈瞉瞊瞋瞏瞐瞓瞔瞕瞖瞗瞘瞙瞚瞛瞜瞝瞞瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶瞷瞸瞹瞺�瞼瞾矀矁矂矃矄矅矆矇矈矉矊矋矌矎矏矐矑矒矓矔矕矖矘矙矚矝矞矟矠矡矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),e=0;e!=r[178].length;++e)65533!==r[178][e].charCodeAt(0)&&(n[r[178][e]]=45568+e,t[45568+e]=r[178][e]);for(r[179]="����������������������������������������������������������������矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃砄砅砆砇砈砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚�硛硜硞硟硠硡硢硣硤硥硦硧硨硩硯硰硱硲硳硴硵硶硸硹硺硻硽硾硿碀碁碂碃场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),e=0;e!=r[179].length;++e)65533!==r[179][e].charCodeAt(0)&&(n[r[179][e]]=45824+e,t[45824+e]=r[179][e]);for(r[180]="����������������������������������������������������������������碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨碩碪碫碬碭碮碯碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚磛磜磝磞磟磠磡磢磣�磤磥磦磧磩磪磫磭磮磯磰磱磳磵磶磸磹磻磼磽磾磿礀礂礃礄礆礇礈礉礊礋礌础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),e=0;e!=r[180].length;++e)65533!==r[180][e].charCodeAt(0)&&(n[r[180][e]]=46080+e,t[46080+e]=r[180][e]);for(r[181]="����������������������������������������������������������������礍礎礏礐礑礒礔礕礖礗礘礙礚礛礜礝礟礠礡礢礣礥礦礧礨礩礪礫礬礭礮礯礰礱礲礳礵礶礷礸礹礽礿祂祃祄祅祇祊祋祌祍祎祏祐祑祒祔祕祘祙祡祣�祤祦祩祪祫祬祮祰祱祲祳祴祵祶祹祻祼祽祾祿禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),e=0;e!=r[181].length;++e)65533!==r[181][e].charCodeAt(0)&&(n[r[181][e]]=46336+e,t[46336+e]=r[181][e]);for(r[182]="����������������������������������������������������������������禓禔禕禖禗禘禙禛禜禝禞禟禠禡禢禣禤禥禦禨禩禪禫禬禭禮禯禰禱禲禴禵禶禷禸禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙秚秛秜秝秞秠秡秢秥秨秪�秬秮秱秲秳秴秵秶秷秹秺秼秾秿稁稄稅稇稈稉稊稌稏稐稑稒稓稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),e=0;e!=r[182].length;++e)65533!==r[182][e].charCodeAt(0)&&(n[r[182][e]]=46592+e,t[46592+e]=r[182][e]);for(r[183]="����������������������������������������������������������������稝稟稡稢稤稥稦稧稨稩稪稫稬稭種稯稰稱稲稴稵稶稸稺稾穀穁穂穃穄穅穇穈穉穊穋穌積穎穏穐穒穓穔穕穖穘穙穚穛穜穝穞穟穠穡穢穣穤穥穦穧穨�穩穪穫穬穭穮穯穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),e=0;e!=r[183].length;++e)65533!==r[183][e].charCodeAt(0)&&(n[r[183][e]]=46848+e,t[46848+e]=r[183][e]);for(r[184]="����������������������������������������������������������������窣窤窧窩窪窫窮窯窰窱窲窴窵窶窷窸窹窺窻窼窽窾竀竁竂竃竄竅竆竇竈竉竊竌竍竎竏竐竑竒竓竔竕竗竘竚竛竜竝竡竢竤竧竨竩竪竫竬竮竰竱竲竳�竴竵競竷竸竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),e=0;e!=r[184].length;++e)65533!==r[184][e].charCodeAt(0)&&(n[r[184][e]]=47104+e,t[47104+e]=r[184][e]);for(r[185]="����������������������������������������������������������������笯笰笲笴笵笶笷笹笻笽笿筀筁筂筃筄筆筈筊筍筎筓筕筗筙筜筞筟筡筣筤筥筦筧筨筩筪筫筬筭筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆箇箈箉箊箋箌箎箏�箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹箺箻箼箽箾箿節篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),e=0;e!=r[185].length;++e)65533!==r[185][e].charCodeAt(0)&&(n[r[185][e]]=47360+e,t[47360+e]=r[185][e]);for(r[186]="����������������������������������������������������������������篅篈築篊篋篍篎篏篐篒篔篕篖篗篘篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲篳篴篵篶篸篹篺篻篽篿簀簁簂簃簄簅簆簈簉簊簍簎簐簑簒簓簔簕簗簘簙�簚簛簜簝簞簠簡簢簣簤簥簨簩簫簬簭簮簯簰簱簲簳簴簵簶簷簹簺簻簼簽簾籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),e=0;e!=r[186].length;++e)65533!==r[186][e].charCodeAt(0)&&(n[r[186][e]]=47616+e,t[47616+e]=r[186][e]);for(r[187]="����������������������������������������������������������������籃籄籅籆籇籈籉籊籋籌籎籏籐籑籒籓籔籕籖籗籘籙籚籛籜籝籞籟籠籡籢籣籤籥籦籧籨籩籪籫籬籭籮籯籰籱籲籵籶籷籸籹籺籾籿粀粁粂粃粄粅粆粇�粈粊粋粌粍粎粏粐粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴粵粶粷粸粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),e=0;e!=r[187].length;++e)65533!==r[187][e].charCodeAt(0)&&(n[r[187][e]]=47872+e,t[47872+e]=r[187][e]);for(r[188]="����������������������������������������������������������������粿糀糂糃糄糆糉糋糎糏糐糑糒糓糔糘糚糛糝糞糡糢糣糤糥糦糧糩糪糫糬糭糮糰糱糲糳糴糵糶糷糹糺糼糽糾糿紀紁紂紃約紅紆紇紈紉紋紌納紎紏紐�紑紒紓純紕紖紗紘紙級紛紜紝紞紟紡紣紤紥紦紨紩紪紬紭紮細紱紲紳紴紵紶肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),e=0;e!=r[188].length;++e)65533!==r[188][e].charCodeAt(0)&&(n[r[188][e]]=48128+e,t[48128+e]=r[188][e]);for(r[189]="����������������������������������������������������������������紷紸紹紺紻紼紽紾紿絀絁終絃組絅絆絇絈絉絊絋経絍絎絏結絑絒絓絔絕絖絗絘絙絚絛絜絝絞絟絠絡絢絣絤絥給絧絨絩絪絫絬絭絯絰統絲絳絴絵絶�絸絹絺絻絼絽絾絿綀綁綂綃綄綅綆綇綈綉綊綋綌綍綎綏綐綑綒經綔綕綖綗綘健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),e=0;e!=r[189].length;++e)65533!==r[189][e].charCodeAt(0)&&(n[r[189][e]]=48384+e,t[48384+e]=r[189][e]);for(r[190]="����������������������������������������������������������������継続綛綜綝綞綟綠綡綢綣綤綥綧綨綩綪綫綬維綯綰綱網綳綴綵綶綷綸綹綺綻綼綽綾綿緀緁緂緃緄緅緆緇緈緉緊緋緌緍緎総緐緑緒緓緔緕緖緗緘緙�線緛緜緝緞緟締緡緢緣緤緥緦緧編緩緪緫緬緭緮緯緰緱緲緳練緵緶緷緸緹緺尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),e=0;e!=r[190].length;++e)65533!==r[190][e].charCodeAt(0)&&(n[r[190][e]]=48640+e,t[48640+e]=r[190][e]);for(r[191]="����������������������������������������������������������������緻緼緽緾緿縀縁縂縃縄縅縆縇縈縉縊縋縌縍縎縏縐縑縒縓縔縕縖縗縘縙縚縛縜縝縞縟縠縡縢縣縤縥縦縧縨縩縪縫縬縭縮縯縰縱縲縳縴縵縶縷縸縹�縺縼總績縿繀繂繃繄繅繆繈繉繊繋繌繍繎繏繐繑繒繓織繕繖繗繘繙繚繛繜繝俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),e=0;e!=r[191].length;++e)65533!==r[191][e].charCodeAt(0)&&(n[r[191][e]]=48896+e,t[48896+e]=r[191][e]);for(r[192]="����������������������������������������������������������������繞繟繠繡繢繣繤繥繦繧繨繩繪繫繬繭繮繯繰繱繲繳繴繵繶繷繸繹繺繻繼繽繾繿纀纁纃纄纅纆纇纈纉纊纋續纍纎纏纐纑纒纓纔纕纖纗纘纙纚纜纝纞�纮纴纻纼绖绤绬绹缊缐缞缷缹缻缼缽缾缿罀罁罃罆罇罈罉罊罋罌罍罎罏罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),e=0;e!=r[192].length;++e)65533!==r[192][e].charCodeAt(0)&&(n[r[192][e]]=49152+e,t[49152+e]=r[192][e]);for(r[193]="����������������������������������������������������������������罖罙罛罜罝罞罠罣罤罥罦罧罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂羃羄羅羆羇羈羉羋羍羏羐羑羒羓羕羖羗羘羙羛羜羠羢羣羥羦羨義羪羫羬羭羮羱�羳羴羵羶羷羺羻羾翀翂翃翄翆翇翈翉翋翍翏翐翑習翓翖翗翙翚翛翜翝翞翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),e=0;e!=r[193].length;++e)65533!==r[193][e].charCodeAt(0)&&(n[r[193][e]]=49408+e,t[49408+e]=r[193][e]);for(r[194]="����������������������������������������������������������������翤翧翨翪翫翬翭翯翲翴翵翶翷翸翹翺翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫耬耭耮耯耰耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗�聙聛聜聝聞聟聠聡聢聣聤聥聦聧聨聫聬聭聮聯聰聲聳聴聵聶職聸聹聺聻聼聽隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),e=0;e!=r[194].length;++e)65533!==r[194][e].charCodeAt(0)&&(n[r[194][e]]=49664+e,t[49664+e]=r[194][e]);for(r[195]="����������������������������������������������������������������聾肁肂肅肈肊肍肎肏肐肑肒肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇胈胉胊胋胏胐胑胒胓胔胕胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋�脌脕脗脙脛脜脝脟脠脡脢脣脤脥脦脧脨脩脪脫脭脮脰脳脴脵脷脹脺脻脼脽脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),e=0;e!=r[195].length;++e)65533!==r[195][e].charCodeAt(0)&&(n[r[195][e]]=49920+e,t[49920+e]=r[195][e]);for(r[196]="����������������������������������������������������������������腀腁腂腃腄腅腇腉腍腎腏腒腖腗腘腛腜腝腞腟腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃膄膅膆膇膉膋膌膍膎膐膒膓膔膕膖膗膙膚膞膟膠膡膢膤膥�膧膩膫膬膭膮膯膰膱膲膴膵膶膷膸膹膼膽膾膿臄臅臇臈臉臋臍臎臏臐臑臒臓摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),e=0;e!=r[196].length;++e)65533!==r[196][e].charCodeAt(0)&&(n[r[196][e]]=50176+e,t[50176+e]=r[196][e]);for(r[197]="����������������������������������������������������������������臔臕臖臗臘臙臚臛臜臝臞臟臠臡臢臤臥臦臨臩臫臮臯臰臱臲臵臶臷臸臹臺臽臿舃與興舉舊舋舎舏舑舓舕舖舗舘舙舚舝舠舤舥舦舧舩舮舲舺舼舽舿�艀艁艂艃艅艆艈艊艌艍艎艐艑艒艓艔艕艖艗艙艛艜艝艞艠艡艢艣艤艥艦艧艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),e=0;e!=r[197].length;++e)65533!==r[197][e].charCodeAt(0)&&(n[r[197][e]]=50432+e,t[50432+e]=r[197][e]);for(r[198]="����������������������������������������������������������������艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸�苺苼苽苾苿茀茊茋茍茐茒茓茖茘茙茝茞茟茠茡茢茣茤茥茦茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),e=0;e!=r[198].length;++e)65533!==r[198][e].charCodeAt(0)&&(n[r[198][e]]=50688+e,t[50688+e]=r[198][e]);for(r[199]="����������������������������������������������������������������茾茿荁荂荄荅荈荊荋荌荍荎荓荕荖荗荘荙荝荢荰荱荲荳荴荵荶荹荺荾荿莀莁莂莃莄莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡莢莣莤莥莦莧莬莭莮�莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),e=0;e!=r[199].length;++e)65533!==r[199][e].charCodeAt(0)&&(n[r[199][e]]=50944+e,t[50944+e]=r[199][e]);for(r[200]="����������������������������������������������������������������菮華菳菴菵菶菷菺菻菼菾菿萀萂萅萇萈萉萊萐萒萓萔萕萖萗萙萚萛萞萟萠萡萢萣萩萪萫萬萭萮萯萰萲萳萴萵萶萷萹萺萻萾萿葀葁葂葃葄葅葇葈葉�葊葋葌葍葎葏葐葒葓葔葕葖葘葝葞葟葠葢葤葥葦葧葨葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),e=0;e!=r[200].length;++e)65533!==r[200][e].charCodeAt(0)&&(n[r[200][e]]=51200+e,t[51200+e]=r[200][e]);for(r[201]="����������������������������������������������������������������葽葾葿蒀蒁蒃蒄蒅蒆蒊蒍蒏蒐蒑蒒蒓蒔蒕蒖蒘蒚蒛蒝蒞蒟蒠蒢蒣蒤蒥蒦蒧蒨蒩蒪蒫蒬蒭蒮蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗�蓘蓙蓚蓛蓜蓞蓡蓢蓤蓧蓨蓩蓪蓫蓭蓮蓯蓱蓲蓳蓴蓵蓶蓷蓸蓹蓺蓻蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),e=0;e!=r[201].length;++e)65533!==r[201][e].charCodeAt(0)&&(n[r[201][e]]=51456+e,t[51456+e]=r[201][e]);for(r[202]="����������������������������������������������������������������蔃蔄蔅蔆蔇蔈蔉蔊蔋蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢蔣蔤蔥蔦蔧蔨蔩蔪蔭蔮蔯蔰蔱蔲蔳蔴蔵蔶蔾蔿蕀蕁蕂蕄蕅蕆蕇蕋蕌蕍蕎蕏蕐蕑蕒蕓蕔蕕�蕗蕘蕚蕛蕜蕝蕟蕠蕡蕢蕣蕥蕦蕧蕩蕪蕫蕬蕭蕮蕯蕰蕱蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),e=0;e!=r[202].length;++e)65533!==r[202][e].charCodeAt(0)&&(n[r[202][e]]=51712+e,t[51712+e]=r[202][e]);for(r[203]="����������������������������������������������������������������薂薃薆薈薉薊薋薌薍薎薐薑薒薓薔薕薖薗薘薙薚薝薞薟薠薡薢薣薥薦薧薩薫薬薭薱薲薳薴薵薶薸薺薻薼薽薾薿藀藂藃藄藅藆藇藈藊藋藌藍藎藑藒�藔藖藗藘藙藚藛藝藞藟藠藡藢藣藥藦藧藨藪藫藬藭藮藯藰藱藲藳藴藵藶藷藸恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),e=0;e!=r[203].length;++e)65533!==r[203][e].charCodeAt(0)&&(n[r[203][e]]=51968+e,t[51968+e]=r[203][e]);for(r[204]="����������������������������������������������������������������藹藺藼藽藾蘀蘁蘂蘃蘄蘆蘇蘈蘉蘊蘋蘌蘍蘎蘏蘐蘒蘓蘔蘕蘗蘘蘙蘚蘛蘜蘝蘞蘟蘠蘡蘢蘣蘤蘥蘦蘨蘪蘫蘬蘭蘮蘯蘰蘱蘲蘳蘴蘵蘶蘷蘹蘺蘻蘽蘾蘿虀�虁虂虃虄虅虆虇虈虉虊虋虌虒虓處虖虗虘虙虛虜虝號虠虡虣虤虥虦虧虨虩虪獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),e=0;e!=r[204].length;++e)65533!==r[204][e].charCodeAt(0)&&(n[r[204][e]]=52224+e,t[52224+e]=r[204][e]);for(r[205]="����������������������������������������������������������������虭虯虰虲虳虴虵虶虷虸蚃蚄蚅蚆蚇蚈蚉蚎蚏蚐蚑蚒蚔蚖蚗蚘蚙蚚蚛蚞蚟蚠蚡蚢蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻蚼蚽蚾蚿蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜�蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),e=0;e!=r[205].length;++e)65533!==r[205][e].charCodeAt(0)&&(n[r[205][e]]=52480+e,t[52480+e]=r[205][e]);for(r[206]="����������������������������������������������������������������蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀蝁蝂蝃蝄蝅蝆蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚蝛蝜蝝蝞蝟蝡蝢蝦蝧蝨蝩蝪蝫蝬蝭蝯蝱蝲蝳蝵�蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎螏螐螑螒螔螕螖螘螙螚螛螜螝螞螠螡螢螣螤巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),e=0;e!=r[206].length;++e)65533!==r[206][e].charCodeAt(0)&&(n[r[206][e]]=52736+e,t[52736+e]=r[206][e]);for(r[207]="����������������������������������������������������������������螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁蟂蟃蟄蟅蟇蟈蟉蟌蟍蟎蟏蟐蟔蟕蟖蟗蟘蟙蟚蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯蟰蟱蟲蟳蟴蟵蟶蟷蟸�蟺蟻蟼蟽蟿蠀蠁蠂蠄蠅蠆蠇蠈蠉蠋蠌蠍蠎蠏蠐蠑蠒蠔蠗蠘蠙蠚蠜蠝蠞蠟蠠蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),e=0;e!=r[207].length;++e)65533!==r[207][e].charCodeAt(0)&&(n[r[207][e]]=52992+e,t[52992+e]=r[207][e]);for(r[208]="����������������������������������������������������������������蠤蠥蠦蠧蠨蠩蠪蠫蠬蠭蠮蠯蠰蠱蠳蠴蠵蠶蠷蠸蠺蠻蠽蠾蠿衁衂衃衆衇衈衉衊衋衎衏衐衑衒術衕衖衘衚衛衜衝衞衟衠衦衧衪衭衯衱衳衴衵衶衸衹衺�衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗袘袙袚袛袝袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),e=0;e!=r[208].length;++e)65533!==r[208][e].charCodeAt(0)&&(n[r[208][e]]=53248+e,t[53248+e]=r[208][e]);for(r[209]="����������������������������������������������������������������袬袮袯袰袲袳袴袵袶袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚裛補裝裞裠裡裦裧裩裪裫裬裭裮裯裲裵裶裷裺裻製裿褀褁褃褄褅褆複褈�褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟褠褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),e=0;e!=r[209].length;++e)65533!==r[209][e].charCodeAt(0)&&(n[r[209][e]]=53504+e,t[53504+e]=r[209][e]);for(r[210]="����������������������������������������������������������������褸褹褺褻褼褽褾褿襀襂襃襅襆襇襈襉襊襋襌襍襎襏襐襑襒襓襔襕襖襗襘襙襚襛襜襝襠襡襢襣襤襥襧襨襩襪襫襬襭襮襯襰襱襲襳襴襵襶襷襸襹襺襼�襽襾覀覂覄覅覇覈覉覊見覌覍覎規覐覑覒覓覔覕視覗覘覙覚覛覜覝覞覟覠覡摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),e=0;e!=r[210].length;++e)65533!==r[210][e].charCodeAt(0)&&(n[r[210][e]]=53760+e,t[53760+e]=r[210][e]);for(r[211]="����������������������������������������������������������������覢覣覤覥覦覧覨覩親覫覬覭覮覯覰覱覲観覴覵覶覷覸覹覺覻覼覽覾覿觀觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴觵觶觷觸觹觺�觻觼觽觾觿訁訂訃訄訅訆計訉訊訋訌訍討訏訐訑訒訓訔訕訖託記訙訚訛訜訝印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),e=0;e!=r[211].length;++e)65533!==r[211][e].charCodeAt(0)&&(n[r[211][e]]=54016+e,t[54016+e]=r[211][e]);for(r[212]="����������������������������������������������������������������訞訟訠訡訢訣訤訥訦訧訨訩訪訫訬設訮訯訰許訲訳訴訵訶訷訸訹診註証訽訿詀詁詂詃詄詅詆詇詉詊詋詌詍詎詏詐詑詒詓詔評詖詗詘詙詚詛詜詝詞�詟詠詡詢詣詤詥試詧詨詩詪詫詬詭詮詯詰話該詳詴詵詶詷詸詺詻詼詽詾詿誀浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),e=0;e!=r[212].length;++e)65533!==r[212][e].charCodeAt(0)&&(n[r[212][e]]=54272+e,t[54272+e]=r[212][e]);for(r[213]="����������������������������������������������������������������誁誂誃誄誅誆誇誈誋誌認誎誏誐誑誒誔誕誖誗誘誙誚誛誜誝語誟誠誡誢誣誤誥誦誧誨誩說誫説読誮誯誰誱課誳誴誵誶誷誸誹誺誻誼誽誾調諀諁諂�諃諄諅諆談諈諉諊請諌諍諎諏諐諑諒諓諔諕論諗諘諙諚諛諜諝諞諟諠諡諢諣铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),e=0;e!=r[213].length;++e)65533!==r[213][e].charCodeAt(0)&&(n[r[213][e]]=54528+e,t[54528+e]=r[213][e]);for(r[214]="����������������������������������������������������������������諤諥諦諧諨諩諪諫諬諭諮諯諰諱諲諳諴諵諶諷諸諹諺諻諼諽諾諿謀謁謂謃謄謅謆謈謉謊謋謌謍謎謏謐謑謒謓謔謕謖謗謘謙謚講謜謝謞謟謠謡謢謣�謤謥謧謨謩謪謫謬謭謮謯謰謱謲謳謴謵謶謷謸謹謺謻謼謽謾謿譀譁譂譃譄譅帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),e=0;e!=r[214].length;++e)65533!==r[214][e].charCodeAt(0)&&(n[r[214][e]]=54784+e,t[54784+e]=r[214][e]);for(r[215]="����������������������������������������������������������������譆譇譈證譊譋譌譍譎譏譐譑譒譓譔譕譖譗識譙譚譛譜譝譞譟譠譡譢譣譤譥譧譨譩譪譫譭譮譯議譱譲譳譴譵譶護譸譹譺譻譼譽譾譿讀讁讂讃讄讅讆�讇讈讉變讋讌讍讎讏讐讑讒讓讔讕讖讗讘讙讚讛讜讝讞讟讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),e=0;e!=r[215].length;++e)65533!==r[215][e].charCodeAt(0)&&(n[r[215][e]]=55040+e,t[55040+e]=r[215][e]);for(r[216]="����������������������������������������������������������������谸谹谺谻谼谽谾谿豀豂豃豄豅豈豊豋豍豎豏豐豑豒豓豔豖豗豘豙豛豜豝豞豟豠豣豤豥豦豧豨豩豬豭豮豯豰豱豲豴豵豶豷豻豼豽豾豿貀貁貃貄貆貇�貈貋貍貎貏貐貑貒貓貕貖貗貙貚貛貜貝貞貟負財貢貣貤貥貦貧貨販貪貫責貭亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),e=0;e!=r[216].length;++e)65533!==r[216][e].charCodeAt(0)&&(n[r[216][e]]=55296+e,t[55296+e]=r[216][e]);for(r[217]="����������������������������������������������������������������貮貯貰貱貲貳貴貵貶買貸貹貺費貼貽貾貿賀賁賂賃賄賅賆資賈賉賊賋賌賍賎賏賐賑賒賓賔賕賖賗賘賙賚賛賜賝賞賟賠賡賢賣賤賥賦賧賨賩質賫賬�賭賮賯賰賱賲賳賴賵賶賷賸賹賺賻購賽賾賿贀贁贂贃贄贅贆贇贈贉贊贋贌贍佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),e=0;e!=r[217].length;++e)65533!==r[217][e].charCodeAt(0)&&(n[r[217][e]]=55552+e,t[55552+e]=r[217][e]);for(r[218]="����������������������������������������������������������������贎贏贐贑贒贓贔贕贖贗贘贙贚贛贜贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸赹赺赻赼赽赾赿趀趂趃趆趇趈趉趌趍趎趏趐趒趓趕趖趗趘趙趚趛趜趝趞趠趡�趢趤趥趦趧趨趩趪趫趬趭趮趯趰趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),e=0;e!=r[218].length;++e)65533!==r[218][e].charCodeAt(0)&&(n[r[218][e]]=55808+e,t[55808+e]=r[218][e]);for(r[219]="����������������������������������������������������������������跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾跿踀踁踂踃踄踆踇踈踋踍踎踐踑踒踓踕踖踗踘踙踚踛踜踠踡踤踥踦踧踨踫踭踰踲踳踴踶踷踸踻踼踾�踿蹃蹅蹆蹌蹍蹎蹏蹐蹓蹔蹕蹖蹗蹘蹚蹛蹜蹝蹞蹟蹠蹡蹢蹣蹤蹥蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),e=0;e!=r[219].length;++e)65533!==r[219][e].charCodeAt(0)&&(n[r[219][e]]=56064+e,t[56064+e]=r[219][e]);for(r[220]="����������������������������������������������������������������蹳蹵蹷蹸蹹蹺蹻蹽蹾躀躂躃躄躆躈躉躊躋躌躍躎躑躒躓躕躖躗躘躙躚躛躝躟躠躡躢躣躤躥躦躧躨躩躪躭躮躰躱躳躴躵躶躷躸躹躻躼躽躾躿軀軁軂�軃軄軅軆軇軈軉車軋軌軍軏軐軑軒軓軔軕軖軗軘軙軚軛軜軝軞軟軠軡転軣軤堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),e=0;e!=r[220].length;++e)65533!==r[220][e].charCodeAt(0)&&(n[r[220][e]]=56320+e,t[56320+e]=r[220][e]);for(r[221]="����������������������������������������������������������������軥軦軧軨軩軪軫軬軭軮軯軰軱軲軳軴軵軶軷軸軹軺軻軼軽軾軿輀輁輂較輄輅輆輇輈載輊輋輌輍輎輏輐輑輒輓輔輕輖輗輘輙輚輛輜輝輞輟輠輡輢輣�輤輥輦輧輨輩輪輫輬輭輮輯輰輱輲輳輴輵輶輷輸輹輺輻輼輽輾輿轀轁轂轃轄荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),e=0;e!=r[221].length;++e)65533!==r[221][e].charCodeAt(0)&&(n[r[221][e]]=56576+e,t[56576+e]=r[221][e]);for(r[222]="����������������������������������������������������������������轅轆轇轈轉轊轋轌轍轎轏轐轑轒轓轔轕轖轗轘轙轚轛轜轝轞轟轠轡轢轣轤轥轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆�迉迊迋迌迍迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),e=0;e!=r[222].length;++e)65533!==r[222][e].charCodeAt(0)&&(n[r[222][e]]=56832+e,t[56832+e]=r[222][e]);for(r[223]="����������������������������������������������������������������這逜連逤逥逧逨逩逪逫逬逰週進逳逴逷逹逺逽逿遀遃遅遆遈遉遊運遌過達違遖遙遚遜遝遞遟遠遡遤遦遧適遪遫遬遯遰遱遲遳遶遷選遹遺遻遼遾邁�還邅邆邇邉邊邌邍邎邏邐邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),e=0;e!=r[223].length;++e)65533!==r[223][e].charCodeAt(0)&&(n[r[223][e]]=57088+e,t[57088+e]=r[223][e]);for(r[224]="����������������������������������������������������������������郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅鄆鄇鄈鄉鄊鄋鄌鄍鄎鄏鄐鄑鄒鄓鄔鄕鄖鄗鄘鄚鄛鄜�鄝鄟鄠鄡鄤鄥鄦鄧鄨鄩鄪鄫鄬鄭鄮鄰鄲鄳鄴鄵鄶鄷鄸鄺鄻鄼鄽鄾鄿酀酁酂酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),e=0;e!=r[224].length;++e)65533!==r[224][e].charCodeAt(0)&&(n[r[224][e]]=57344+e,t[57344+e]=r[224][e]);for(r[225]="����������������������������������������������������������������酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀醁醂醃醄醆醈醊醎醏醓醔醕醖醗醘醙醜醝醞醟醠醡醤醥醦醧醨醩醫醬醰醱醲醳醶醷醸醹醻�醼醽醾醿釀釁釂釃釄釅釆釈釋釐釒釓釔釕釖釗釘釙釚釛針釞釟釠釡釢釣釤釥帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),e=0;e!=r[225].length;++e)65533!==r[225][e].charCodeAt(0)&&(n[r[225][e]]=57600+e,t[57600+e]=r[225][e]);for(r[226]="����������������������������������������������������������������釦釧釨釩釪釫釬釭釮釯釰釱釲釳釴釵釶釷釸釹釺釻釼釽釾釿鈀鈁鈂鈃鈄鈅鈆鈇鈈鈉鈊鈋鈌鈍鈎鈏鈐鈑鈒鈓鈔鈕鈖鈗鈘鈙鈚鈛鈜鈝鈞鈟鈠鈡鈢鈣鈤�鈥鈦鈧鈨鈩鈪鈫鈬鈭鈮鈯鈰鈱鈲鈳鈴鈵鈶鈷鈸鈹鈺鈻鈼鈽鈾鈿鉀鉁鉂鉃鉄鉅狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),e=0;e!=r[226].length;++e)65533!==r[226][e].charCodeAt(0)&&(n[r[226][e]]=57856+e,t[57856+e]=r[226][e]);for(r[227]="����������������������������������������������������������������鉆鉇鉈鉉鉊鉋鉌鉍鉎鉏鉐鉑鉒鉓鉔鉕鉖鉗鉘鉙鉚鉛鉜鉝鉞鉟鉠鉡鉢鉣鉤鉥鉦鉧鉨鉩鉪鉫鉬鉭鉮鉯鉰鉱鉲鉳鉵鉶鉷鉸鉹鉺鉻鉼鉽鉾鉿銀銁銂銃銄銅�銆銇銈銉銊銋銌銍銏銐銑銒銓銔銕銖銗銘銙銚銛銜銝銞銟銠銡銢銣銤銥銦銧恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),e=0;e!=r[227].length;++e)65533!==r[227][e].charCodeAt(0)&&(n[r[227][e]]=58112+e,t[58112+e]=r[227][e]);for(r[228]="����������������������������������������������������������������銨銩銪銫銬銭銯銰銱銲銳銴銵銶銷銸銹銺銻銼銽銾銿鋀鋁鋂鋃鋄鋅鋆鋇鋉鋊鋋鋌鋍鋎鋏鋐鋑鋒鋓鋔鋕鋖鋗鋘鋙鋚鋛鋜鋝鋞鋟鋠鋡鋢鋣鋤鋥鋦鋧鋨�鋩鋪鋫鋬鋭鋮鋯鋰鋱鋲鋳鋴鋵鋶鋷鋸鋹鋺鋻鋼鋽鋾鋿錀錁錂錃錄錅錆錇錈錉洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),e=0;e!=r[228].length;++e)65533!==r[228][e].charCodeAt(0)&&(n[r[228][e]]=58368+e,t[58368+e]=r[228][e]);for(r[229]="����������������������������������������������������������������錊錋錌錍錎錏錐錑錒錓錔錕錖錗錘錙錚錛錜錝錞錟錠錡錢錣錤錥錦錧錨錩錪錫錬錭錮錯錰錱録錳錴錵錶錷錸錹錺錻錼錽錿鍀鍁鍂鍃鍄鍅鍆鍇鍈鍉�鍊鍋鍌鍍鍎鍏鍐鍑鍒鍓鍔鍕鍖鍗鍘鍙鍚鍛鍜鍝鍞鍟鍠鍡鍢鍣鍤鍥鍦鍧鍨鍩鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),e=0;e!=r[229].length;++e)65533!==r[229][e].charCodeAt(0)&&(n[r[229][e]]=58624+e,t[58624+e]=r[229][e]);for(r[230]="����������������������������������������������������������������鍬鍭鍮鍯鍰鍱鍲鍳鍴鍵鍶鍷鍸鍹鍺鍻鍼鍽鍾鍿鎀鎁鎂鎃鎄鎅鎆鎇鎈鎉鎊鎋鎌鎍鎎鎐鎑鎒鎓鎔鎕鎖鎗鎘鎙鎚鎛鎜鎝鎞鎟鎠鎡鎢鎣鎤鎥鎦鎧鎨鎩鎪鎫�鎬鎭鎮鎯鎰鎱鎲鎳鎴鎵鎶鎷鎸鎹鎺鎻鎼鎽鎾鎿鏀鏁鏂鏃鏄鏅鏆鏇鏈鏉鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),e=0;e!=r[230].length;++e)65533!==r[230][e].charCodeAt(0)&&(n[r[230][e]]=58880+e,t[58880+e]=r[230][e]);for(r[231]="����������������������������������������������������������������鏎鏏鏐鏑鏒鏓鏔鏕鏗鏘鏙鏚鏛鏜鏝鏞鏟鏠鏡鏢鏣鏤鏥鏦鏧鏨鏩鏪鏫鏬鏭鏮鏯鏰鏱鏲鏳鏴鏵鏶鏷鏸鏹鏺鏻鏼鏽鏾鏿鐀鐁鐂鐃鐄鐅鐆鐇鐈鐉鐊鐋鐌鐍�鐎鐏鐐鐑鐒鐓鐔鐕鐖鐗鐘鐙鐚鐛鐜鐝鐞鐟鐠鐡鐢鐣鐤鐥鐦鐧鐨鐩鐪鐫鐬鐭鐮纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),e=0;e!=r[231].length;++e)65533!==r[231][e].charCodeAt(0)&&(n[r[231][e]]=59136+e,t[59136+e]=r[231][e]);for(r[232]="����������������������������������������������������������������鐯鐰鐱鐲鐳鐴鐵鐶鐷鐸鐹鐺鐻鐼鐽鐿鑀鑁鑂鑃鑄鑅鑆鑇鑈鑉鑊鑋鑌鑍鑎鑏鑐鑑鑒鑓鑔鑕鑖鑗鑘鑙鑚鑛鑜鑝鑞鑟鑠鑡鑢鑣鑤鑥鑦鑧鑨鑩鑪鑬鑭鑮鑯�鑰鑱鑲鑳鑴鑵鑶鑷鑸鑹鑺鑻鑼鑽鑾鑿钀钁钂钃钄钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),e=0;e!=r[232].length;++e)65533!==r[232][e].charCodeAt(0)&&(n[r[232][e]]=59392+e,t[59392+e]=r[232][e]);for(r[233]="����������������������������������������������������������������锧锳锽镃镈镋镕镚镠镮镴镵長镸镹镺镻镼镽镾門閁閂閃閄閅閆閇閈閉閊開閌閍閎閏閐閑閒間閔閕閖閗閘閙閚閛閜閝閞閟閠閡関閣閤閥閦閧閨閩閪�閫閬閭閮閯閰閱閲閳閴閵閶閷閸閹閺閻閼閽閾閿闀闁闂闃闄闅闆闇闈闉闊闋椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),e=0;e!=r[233].length;++e)65533!==r[233][e].charCodeAt(0)&&(n[r[233][e]]=59648+e,t[59648+e]=r[233][e]);for(r[234]="����������������������������������������������������������������闌闍闎闏闐闑闒闓闔闕闖闗闘闙闚闛關闝闞闟闠闡闢闣闤闥闦闧闬闿阇阓阘阛阞阠阣阤阥阦阧阨阩阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗�陘陙陚陜陝陞陠陣陥陦陫陭陮陯陰陱陳陸陹険陻陼陽陾陿隀隁隂隃隄隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),e=0;e!=r[234].length;++e)65533!==r[234][e].charCodeAt(0)&&(n[r[234][e]]=59904+e,t[59904+e]=r[234][e]);for(r[235]="����������������������������������������������������������������隌階隑隒隓隕隖隚際隝隞隟隠隡隢隣隤隥隦隨隩險隫隬隭隮隯隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖雗雘雙雚雛雜雝雞雟雡離難雤雥雦雧雫�雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗霘霙霚霛霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),e=0;e!=r[235].length;++e)65533!==r[235][e].charCodeAt(0)&&(n[r[235][e]]=60160+e,t[60160+e]=r[235][e]);for(r[236]="����������������������������������������������������������������霡霢霣霤霥霦霧霨霩霫霬霮霯霱霳霴霵霶霷霺霻霼霽霿靀靁靂靃靄靅靆靇靈靉靊靋靌靍靎靏靐靑靔靕靗靘靚靜靝靟靣靤靦靧靨靪靫靬靭靮靯靰靱�靲靵靷靸靹靺靻靽靾靿鞀鞁鞂鞃鞄鞆鞇鞈鞉鞊鞌鞎鞏鞐鞓鞕鞖鞗鞙鞚鞛鞜鞝臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),e=0;e!=r[236].length;++e)65533!==r[236][e].charCodeAt(0)&&(n[r[236][e]]=60416+e,t[60416+e]=r[236][e]);for(r[237]="����������������������������������������������������������������鞞鞟鞡鞢鞤鞥鞦鞧鞨鞩鞪鞬鞮鞰鞱鞳鞵鞶鞷鞸鞹鞺鞻鞼鞽鞾鞿韀韁韂韃韄韅韆韇韈韉韊韋韌韍韎韏韐韑韒韓韔韕韖韗韘韙韚韛韜韝韞韟韠韡韢韣�韤韥韨韮韯韰韱韲韴韷韸韹韺韻韼韽韾響頀頁頂頃頄項順頇須頉頊頋頌頍頎怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),e=0;e!=r[237].length;++e)65533!==r[237][e].charCodeAt(0)&&(n[r[237][e]]=60672+e,t[60672+e]=r[237][e]);for(r[238]="����������������������������������������������������������������頏預頑頒頓頔頕頖頗領頙頚頛頜頝頞頟頠頡頢頣頤頥頦頧頨頩頪頫頬頭頮頯頰頱頲頳頴頵頶頷頸頹頺頻頼頽頾頿顀顁顂顃顄顅顆顇顈顉顊顋題額�顎顏顐顑顒顓顔顕顖顗願顙顚顛顜顝類顟顠顡顢顣顤顥顦顧顨顩顪顫顬顭顮睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),e=0;e!=r[238].length;++e)65533!==r[238][e].charCodeAt(0)&&(n[r[238][e]]=60928+e,t[60928+e]=r[238][e]);for(r[239]="����������������������������������������������������������������顯顰顱顲顳顴颋颎颒颕颙颣風颩颪颫颬颭颮颯颰颱颲颳颴颵颶颷颸颹颺颻颼颽颾颿飀飁飂飃飄飅飆飇飈飉飊飋飌飍飏飐飔飖飗飛飜飝飠飡飢飣飤�飥飦飩飪飫飬飭飮飯飰飱飲飳飴飵飶飷飸飹飺飻飼飽飾飿餀餁餂餃餄餅餆餇铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),e=0;e!=r[239].length;++e)65533!==r[239][e].charCodeAt(0)&&(n[r[239][e]]=61184+e,t[61184+e]=r[239][e]);for(r[240]="����������������������������������������������������������������餈餉養餋餌餎餏餑餒餓餔餕餖餗餘餙餚餛餜餝餞餟餠餡餢餣餤餥餦餧館餩餪餫餬餭餯餰餱餲餳餴餵餶餷餸餹餺餻餼餽餾餿饀饁饂饃饄饅饆饇饈饉�饊饋饌饍饎饏饐饑饒饓饖饗饘饙饚饛饜饝饞饟饠饡饢饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),e=0;e!=r[240].length;++e)65533!==r[240][e].charCodeAt(0)&&(n[r[240][e]]=61440+e,t[61440+e]=r[240][e]);for(r[241]="����������������������������������������������������������������馌馎馚馛馜馝馞馟馠馡馢馣馤馦馧馩馪馫馬馭馮馯馰馱馲馳馴馵馶馷馸馹馺馻馼馽馾馿駀駁駂駃駄駅駆駇駈駉駊駋駌駍駎駏駐駑駒駓駔駕駖駗駘�駙駚駛駜駝駞駟駠駡駢駣駤駥駦駧駨駩駪駫駬駭駮駯駰駱駲駳駴駵駶駷駸駹瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),e=0;e!=r[241].length;++e)65533!==r[241][e].charCodeAt(0)&&(n[r[241][e]]=61696+e,t[61696+e]=r[241][e]);for(r[242]="����������������������������������������������������������������駺駻駼駽駾駿騀騁騂騃騄騅騆騇騈騉騊騋騌騍騎騏騐騑騒験騔騕騖騗騘騙騚騛騜騝騞騟騠騡騢騣騤騥騦騧騨騩騪騫騬騭騮騯騰騱騲騳騴騵騶騷騸�騹騺騻騼騽騾騿驀驁驂驃驄驅驆驇驈驉驊驋驌驍驎驏驐驑驒驓驔驕驖驗驘驙颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),e=0;e!=r[242].length;++e)65533!==r[242][e].charCodeAt(0)&&(n[r[242][e]]=61952+e,t[61952+e]=r[242][e]);for(r[243]="����������������������������������������������������������������驚驛驜驝驞驟驠驡驢驣驤驥驦驧驨驩驪驫驲骃骉骍骎骔骕骙骦骩骪骫骬骭骮骯骲骳骴骵骹骻骽骾骿髃髄髆髇髈髉髊髍髎髏髐髒體髕髖髗髙髚髛髜�髝髞髠髢髣髤髥髧髨髩髪髬髮髰髱髲髳髴髵髶髷髸髺髼髽髾髿鬀鬁鬂鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),e=0;e!=r[243].length;++e)65533!==r[243][e].charCodeAt(0)&&(n[r[243][e]]=62208+e,t[62208+e]=r[243][e]);for(r[244]="����������������������������������������������������������������鬇鬉鬊鬋鬌鬍鬎鬐鬑鬒鬔鬕鬖鬗鬘鬙鬚鬛鬜鬝鬞鬠鬡鬢鬤鬥鬦鬧鬨鬩鬪鬫鬬鬭鬮鬰鬱鬳鬴鬵鬶鬷鬸鬹鬺鬽鬾鬿魀魆魊魋魌魎魐魒魓魕魖魗魘魙魚�魛魜魝魞魟魠魡魢魣魤魥魦魧魨魩魪魫魬魭魮魯魰魱魲魳魴魵魶魷魸魹魺魻簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),e=0;e!=r[244].length;++e)65533!==r[244][e].charCodeAt(0)&&(n[r[244][e]]=62464+e,t[62464+e]=r[244][e]);for(r[245]="����������������������������������������������������������������魼魽魾魿鮀鮁鮂鮃鮄鮅鮆鮇鮈鮉鮊鮋鮌鮍鮎鮏鮐鮑鮒鮓鮔鮕鮖鮗鮘鮙鮚鮛鮜鮝鮞鮟鮠鮡鮢鮣鮤鮥鮦鮧鮨鮩鮪鮫鮬鮭鮮鮯鮰鮱鮲鮳鮴鮵鮶鮷鮸鮹鮺�鮻鮼鮽鮾鮿鯀鯁鯂鯃鯄鯅鯆鯇鯈鯉鯊鯋鯌鯍鯎鯏鯐鯑鯒鯓鯔鯕鯖鯗鯘鯙鯚鯛酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),e=0;e!=r[245].length;++e)65533!==r[245][e].charCodeAt(0)&&(n[r[245][e]]=62720+e,t[62720+e]=r[245][e]);for(r[246]="����������������������������������������������������������������鯜鯝鯞鯟鯠鯡鯢鯣鯤鯥鯦鯧鯨鯩鯪鯫鯬鯭鯮鯯鯰鯱鯲鯳鯴鯵鯶鯷鯸鯹鯺鯻鯼鯽鯾鯿鰀鰁鰂鰃鰄鰅鰆鰇鰈鰉鰊鰋鰌鰍鰎鰏鰐鰑鰒鰓鰔鰕鰖鰗鰘鰙鰚�鰛鰜鰝鰞鰟鰠鰡鰢鰣鰤鰥鰦鰧鰨鰩鰪鰫鰬鰭鰮鰯鰰鰱鰲鰳鰴鰵鰶鰷鰸鰹鰺鰻觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),e=0;e!=r[246].length;++e)65533!==r[246][e].charCodeAt(0)&&(n[r[246][e]]=62976+e,t[62976+e]=r[246][e]);for(r[247]="����������������������������������������������������������������鰼鰽鰾鰿鱀鱁鱂鱃鱄鱅鱆鱇鱈鱉鱊鱋鱌鱍鱎鱏鱐鱑鱒鱓鱔鱕鱖鱗鱘鱙鱚鱛鱜鱝鱞鱟鱠鱡鱢鱣鱤鱥鱦鱧鱨鱩鱪鱫鱬鱭鱮鱯鱰鱱鱲鱳鱴鱵鱶鱷鱸鱹鱺�鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾鲿鳀鳁鳂鳈鳉鳑鳒鳚鳛鳠鳡鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),e=0;e!=r[247].length;++e)65533!==r[247][e].charCodeAt(0)&&(n[r[247][e]]=63232+e,t[63232+e]=r[247][e]);for(r[248]="����������������������������������������������������������������鳣鳤鳥鳦鳧鳨鳩鳪鳫鳬鳭鳮鳯鳰鳱鳲鳳鳴鳵鳶鳷鳸鳹鳺鳻鳼鳽鳾鳿鴀鴁鴂鴃鴄鴅鴆鴇鴈鴉鴊鴋鴌鴍鴎鴏鴐鴑鴒鴓鴔鴕鴖鴗鴘鴙鴚鴛鴜鴝鴞鴟鴠鴡�鴢鴣鴤鴥鴦鴧鴨鴩鴪鴫鴬鴭鴮鴯鴰鴱鴲鴳鴴鴵鴶鴷鴸鴹鴺鴻鴼鴽鴾鴿鵀鵁鵂�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[248].length;++e)65533!==r[248][e].charCodeAt(0)&&(n[r[248][e]]=63488+e,t[63488+e]=r[248][e]);for(r[249]="����������������������������������������������������������������鵃鵄鵅鵆鵇鵈鵉鵊鵋鵌鵍鵎鵏鵐鵑鵒鵓鵔鵕鵖鵗鵘鵙鵚鵛鵜鵝鵞鵟鵠鵡鵢鵣鵤鵥鵦鵧鵨鵩鵪鵫鵬鵭鵮鵯鵰鵱鵲鵳鵴鵵鵶鵷鵸鵹鵺鵻鵼鵽鵾鵿鶀鶁�鶂鶃鶄鶅鶆鶇鶈鶉鶊鶋鶌鶍鶎鶏鶐鶑鶒鶓鶔鶕鶖鶗鶘鶙鶚鶛鶜鶝鶞鶟鶠鶡鶢�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[249].length;++e)65533!==r[249][e].charCodeAt(0)&&(n[r[249][e]]=63744+e,t[63744+e]=r[249][e]);for(r[250]="����������������������������������������������������������������鶣鶤鶥鶦鶧鶨鶩鶪鶫鶬鶭鶮鶯鶰鶱鶲鶳鶴鶵鶶鶷鶸鶹鶺鶻鶼鶽鶾鶿鷀鷁鷂鷃鷄鷅鷆鷇鷈鷉鷊鷋鷌鷍鷎鷏鷐鷑鷒鷓鷔鷕鷖鷗鷘鷙鷚鷛鷜鷝鷞鷟鷠鷡�鷢鷣鷤鷥鷦鷧鷨鷩鷪鷫鷬鷭鷮鷯鷰鷱鷲鷳鷴鷵鷶鷷鷸鷹鷺鷻鷼鷽鷾鷿鸀鸁鸂�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[250].length;++e)65533!==r[250][e].charCodeAt(0)&&(n[r[250][e]]=64e3+e,t[64e3+e]=r[250][e]);for(r[251]="����������������������������������������������������������������鸃鸄鸅鸆鸇鸈鸉鸊鸋鸌鸍鸎鸏鸐鸑鸒鸓鸔鸕鸖鸗鸘鸙鸚鸛鸜鸝鸞鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴鹵鹶鹷鹸鹹鹺鹻鹼鹽麀�麁麃麄麅麆麉麊麌麍麎麏麐麑麔麕麖麗麘麙麚麛麜麞麠麡麢麣麤麥麧麨麩麪�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[251].length;++e)65533!==r[251][e].charCodeAt(0)&&(n[r[251][e]]=64256+e,t[64256+e]=r[251][e]);for(r[252]="����������������������������������������������������������������麫麬麭麮麯麰麱麲麳麵麶麷麹麺麼麿黀黁黂黃黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰黱黲黳黴黵黶黷黸黺黽黿鼀鼁鼂鼃鼄鼅�鼆鼇鼈鼉鼊鼌鼏鼑鼒鼔鼕鼖鼘鼚鼛鼜鼝鼞鼟鼡鼣鼤鼥鼦鼧鼨鼩鼪鼫鼭鼮鼰鼱�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[252].length;++e)65533!==r[252][e].charCodeAt(0)&&(n[r[252][e]]=64512+e,t[64512+e]=r[252][e]);for(r[253]="����������������������������������������������������������������鼲鼳鼴鼵鼶鼸鼺鼼鼿齀齁齂齃齅齆齇齈齉齊齋齌齍齎齏齒齓齔齕齖齗齘齙齚齛齜齝齞齟齠齡齢齣齤齥齦齧齨齩齪齫齬齭齮齯齰齱齲齳齴齵齶齷齸�齹齺齻齼齽齾龁龂龍龎龏龐龑龒龓龔龕龖龗龘龜龝龞龡龢龣龤龥郎凉秊裏隣�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[253].length;++e)65533!==r[253][e].charCodeAt(0)&&(n[r[253][e]]=64768+e,t[64768+e]=r[253][e]);for(r[254]="����������������������������������������������������������������兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=r[254].length;++e)65533!==r[254][e].charCodeAt(0)&&(n[r[254][e]]=65024+e,t[65024+e]=r[254][e]);return{enc:n,dec:t}}(),n[949]=function(){var e,t=[],n={},r=[];for(r[0]="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=r[0].length;++e)65533!==r[0][e].charCodeAt(0)&&(n[r[0][e]]=0+e,t[0+e]=r[0][e]);for(r[129]="�����������������������������������������������������������������갂갃갅갆갋갌갍갎갏갘갞갟갡갢갣갥갦갧갨갩갪갫갮갲갳갴������갵갶갷갺갻갽갾갿걁걂걃걄걅걆걇걈걉걊걌걎걏걐걑걒걓걕������걖걗걙걚걛걝걞걟걠걡걢걣걤걥걦걧걨걩걪걫걬걭걮걯걲걳걵걶걹걻걼걽걾걿겂겇겈겍겎겏겑겒겓겕겖겗겘겙겚겛겞겢겣겤겥겦겧겫겭겮겱겲겳겴겵겶겷겺겾겿곀곂곃곅곆곇곉곊곋곍곎곏곐곑곒곓곔곖곘곙곚곛곜곝곞곟곢곣곥곦곩곫곭곮곲곴곷곸곹곺곻곾곿괁괂괃괅괇괈괉괊괋괎괐괒괓�".split(""),e=0;e!=r[129].length;++e)65533!==r[129][e].charCodeAt(0)&&(n[r[129][e]]=33024+e,t[33024+e]=r[129][e]);for(r[130]="�����������������������������������������������������������������괔괕괖괗괙괚괛괝괞괟괡괢괣괤괥괦괧괨괪괫괮괯괰괱괲괳������괶괷괹괺괻괽괾괿굀굁굂굃굆굈굊굋굌굍굎굏굑굒굓굕굖굗������굙굚굛굜굝굞굟굠굢굤굥굦굧굨굩굪굫굮굯굱굲굷굸굹굺굾궀궃궄궅궆궇궊궋궍궎궏궑궒궓궔궕궖궗궘궙궚궛궞궟궠궡궢궣궥궦궧궨궩궪궫궬궭궮궯궰궱궲궳궴궵궶궸궹궺궻궼궽궾궿귂귃귅귆귇귉귊귋귌귍귎귏귒귔귕귖귗귘귙귚귛귝귞귟귡귢귣귥귦귧귨귩귪귫귬귭귮귯귰귱귲귳귴귵귶귷�".split(""),e=0;e!=r[130].length;++e)65533!==r[130][e].charCodeAt(0)&&(n[r[130][e]]=33280+e,t[33280+e]=r[130][e]);for(r[131]="�����������������������������������������������������������������귺귻귽귾긂긃긄긅긆긇긊긌긎긏긐긑긒긓긕긖긗긘긙긚긛긜������긝긞긟긠긡긢긣긤긥긦긧긨긩긪긫긬긭긮긯긲긳긵긶긹긻긼������긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗깘깙깚깛깞깢깣깤깦깧깪깫깭깮깯깱깲깳깴깵깶깷깺깾깿꺀꺁꺂꺃꺆꺇꺈꺉꺊꺋꺍꺎꺏꺐꺑꺒꺓꺔꺕꺖꺗꺘꺙꺚꺛꺜꺝꺞꺟꺠꺡꺢꺣꺤꺥꺦꺧꺨꺩꺪꺫꺬꺭꺮꺯꺰꺱꺲꺳꺴꺵꺶꺷꺸꺹꺺꺻꺿껁껂껃껅껆껇껈껉껊껋껎껒껓껔껕껖껗껚껛껝껞껟껠껡껢껣껤껥�".split(""),e=0;e!=r[131].length;++e)65533!==r[131][e].charCodeAt(0)&&(n[r[131][e]]=33536+e,t[33536+e]=r[131][e]);for(r[132]="�����������������������������������������������������������������껦껧껩껪껬껮껯껰껱껲껳껵껶껷껹껺껻껽껾껿꼀꼁꼂꼃꼄꼅������꼆꼉꼊꼋꼌꼎꼏꼑꼒꼓꼔꼕꼖꼗꼘꼙꼚꼛꼜꼝꼞꼟꼠꼡꼢꼣������꼤꼥꼦꼧꼨꼩꼪꼫꼮꼯꼱꼳꼵꼶꼷꼸꼹꼺꼻꼾꽀꽄꽅꽆꽇꽊꽋꽌꽍꽎꽏꽑꽒꽓꽔꽕꽖꽗꽘꽙꽚꽛꽞꽟꽠꽡꽢꽣꽦꽧꽨꽩꽪꽫꽬꽭꽮꽯꽰꽱꽲꽳꽴꽵꽶꽷꽸꽺꽻꽼꽽꽾꽿꾁꾂꾃꾅꾆꾇꾉꾊꾋꾌꾍꾎꾏꾒꾓꾔꾖꾗꾘꾙꾚꾛꾝꾞꾟꾠꾡꾢꾣꾤꾥꾦꾧꾨꾩꾪꾫꾬꾭꾮꾯꾰꾱꾲꾳꾴꾵꾶꾷꾺꾻꾽꾾�".split(""),e=0;e!=r[132].length;++e)65533!==r[132][e].charCodeAt(0)&&(n[r[132][e]]=33792+e,t[33792+e]=r[132][e]);for(r[133]="�����������������������������������������������������������������꾿꿁꿂꿃꿄꿅꿆꿊꿌꿏꿐꿑꿒꿓꿕꿖꿗꿘꿙꿚꿛꿝꿞꿟꿠꿡������꿢꿣꿤꿥꿦꿧꿪꿫꿬꿭꿮꿯꿲꿳꿵꿶꿷꿹꿺꿻꿼꿽꿾꿿뀂뀃������뀅뀆뀇뀈뀉뀊뀋뀍뀎뀏뀑뀒뀓뀕뀖뀗뀘뀙뀚뀛뀞뀟뀠뀡뀢뀣뀤뀥뀦뀧뀩뀪뀫뀬뀭뀮뀯뀰뀱뀲뀳뀴뀵뀶뀷뀸뀹뀺뀻뀼뀽뀾뀿끀끁끂끃끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞끟끠끡끢끣끤끥끦끧끨끩끪끫끬끭끮끯끰끱끲끳끴끵끶끷끸끹끺끻끾끿낁낂낃낅낆낇낈낉낊낋낎낐낒낓낔낕낖낗낛낝낞낣낤�".split(""),e=0;e!=r[133].length;++e)65533!==r[133][e].charCodeAt(0)&&(n[r[133][e]]=34048+e,t[34048+e]=r[133][e]);for(r[134]="�����������������������������������������������������������������낥낦낧낪낰낲낶낷낹낺낻낽낾낿냀냁냂냃냆냊냋냌냍냎냏냒������냓냕냖냗냙냚냛냜냝냞냟냡냢냣냤냦냧냨냩냪냫냬냭냮냯냰������냱냲냳냴냵냶냷냸냹냺냻냼냽냾냿넀넁넂넃넄넅넆넇넊넍넎넏넑넔넕넖넗넚넞넟넠넡넢넦넧넩넪넫넭넮넯넰넱넲넳넶넺넻넼넽넾넿녂녃녅녆녇녉녊녋녌녍녎녏녒녓녖녗녙녚녛녝녞녟녡녢녣녤녥녦녧녨녩녪녫녬녭녮녯녰녱녲녳녴녵녶녷녺녻녽녾녿놁놃놄놅놆놇놊놌놎놏놐놑놕놖놗놙놚놛놝�".split(""),e=0;e!=r[134].length;++e)65533!==r[134][e].charCodeAt(0)&&(n[r[134][e]]=34304+e,t[34304+e]=r[134][e]);for(r[135]="�����������������������������������������������������������������놞놟놠놡놢놣놤놥놦놧놩놪놫놬놭놮놯놰놱놲놳놴놵놶놷놸������놹놺놻놼놽놾놿뇀뇁뇂뇃뇄뇅뇆뇇뇈뇉뇊뇋뇍뇎뇏뇑뇒뇓뇕������뇖뇗뇘뇙뇚뇛뇞뇠뇡뇢뇣뇤뇥뇦뇧뇪뇫뇭뇮뇯뇱뇲뇳뇴뇵뇶뇷뇸뇺뇼뇾뇿눀눁눂눃눆눇눉눊눍눎눏눐눑눒눓눖눘눚눛눜눝눞눟눡눢눣눤눥눦눧눨눩눪눫눬눭눮눯눰눱눲눳눵눶눷눸눹눺눻눽눾눿뉀뉁뉂뉃뉄뉅뉆뉇뉈뉉뉊뉋뉌뉍뉎뉏뉐뉑뉒뉓뉔뉕뉖뉗뉙뉚뉛뉝뉞뉟뉡뉢뉣뉤뉥뉦뉧뉪뉫뉬뉭뉮�".split(""),e=0;e!=r[135].length;++e)65533!==r[135][e].charCodeAt(0)&&(n[r[135][e]]=34560+e,t[34560+e]=r[135][e]);for(r[136]="�����������������������������������������������������������������뉯뉰뉱뉲뉳뉶뉷뉸뉹뉺뉻뉽뉾뉿늀늁늂늃늆늇늈늊늋늌늍늎������늏늒늓늕늖늗늛늜늝늞늟늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷������늸늹늺늻늼늽늾늿닀닁닂닃닄닅닆닇닊닋닍닎닏닑닓닔닕닖닗닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉댊댋댌댍댎댏댒댖댗댘댙댚댛댝댞댟댠댡댢댣댤댥댦댧댨댩댪댫댬댭댮댯댰댱댲댳댴댵댶댷댸댹댺댻댼댽댾댿덀덁덂덃덄덅덆덇덈덉덊덋덌덍덎덏덐덑덒덓덗덙덚덝덠덡덢덣�".split(""),e=0;e!=r[136].length;++e)65533!==r[136][e].charCodeAt(0)&&(n[r[136][e]]=34816+e,t[34816+e]=r[136][e]);for(r[137]="�����������������������������������������������������������������덦덨덪덬덭덯덲덳덵덶덷덹덺덻덼덽덾덿뎂뎆뎇뎈뎉뎊뎋뎍������뎎뎏뎑뎒뎓뎕뎖뎗뎘뎙뎚뎛뎜뎝뎞뎟뎢뎣뎤뎥뎦뎧뎩뎪뎫뎭������뎮뎯뎰뎱뎲뎳뎴뎵뎶뎷뎸뎹뎺뎻뎼뎽뎾뎿돀돁돂돃돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩돪돫돬돭돮돯돰돱돲돳돴돵돶돷돸돹돺돻돽돾돿됀됁됂됃됄됅됆됇됈됉됊됋됌됍됎됏됑됒됓됔됕됖됗됙됚됛됝됞됟됡됢됣됤됥됦됧됪됬됭됮됯됰됱됲됳됵됶됷됸됹됺됻됼됽됾됿둀둁둂둃둄�".split(""),e=0;e!=r[137].length;++e)65533!==r[137][e].charCodeAt(0)&&(n[r[137][e]]=35072+e,t[35072+e]=r[137][e]);for(r[138]="�����������������������������������������������������������������둅둆둇둈둉둊둋둌둍둎둏둒둓둕둖둗둙둚둛둜둝둞둟둢둤둦������둧둨둩둪둫둭둮둯둰둱둲둳둴둵둶둷둸둹둺둻둼둽둾둿뒁뒂������뒃뒄뒅뒆뒇뒉뒊뒋뒌뒍뒎뒏뒐뒑뒒뒓뒔뒕뒖뒗뒘뒙뒚뒛뒜뒞뒟뒠뒡뒢뒣뒥뒦뒧뒩뒪뒫뒭뒮뒯뒰뒱뒲뒳뒴뒶뒸뒺뒻뒼뒽뒾뒿듁듂듃듅듆듇듉듊듋듌듍듎듏듑듒듓듔듖듗듘듙듚듛듞듟듡듢듥듧듨듩듪듫듮듰듲듳듴듵듶듷듹듺듻듼듽듾듿딀딁딂딃딄딅딆딇딈딉딊딋딌딍딎딏딐딑딒딓딖딗딙딚딝�".split(""),e=0;e!=r[138].length;++e)65533!==r[138][e].charCodeAt(0)&&(n[r[138][e]]=35328+e,t[35328+e]=r[138][e]);for(r[139]="�����������������������������������������������������������������딞딟딠딡딢딣딦딫딬딭딮딯딲딳딵딶딷딹딺딻딼딽딾딿땂땆������땇땈땉땊땎땏땑땒땓땕땖땗땘땙땚땛땞땢땣땤땥땦땧땨땩땪������땫땬땭땮땯땰땱땲땳땴땵땶땷땸땹땺땻땼땽땾땿떀떁떂떃떄떅떆떇떈떉떊떋떌떍떎떏떐떑떒떓떔떕떖떗떘떙떚떛떜떝떞떟떢떣떥떦떧떩떬떭떮떯떲떶떷떸떹떺떾떿뗁뗂뗃뗅뗆뗇뗈뗉뗊뗋뗎뗒뗓뗔뗕뗖뗗뗙뗚뗛뗜뗝뗞뗟뗠뗡뗢뗣뗤뗥뗦뗧뗨뗩뗪뗫뗭뗮뗯뗰뗱뗲뗳뗴뗵뗶뗷뗸뗹뗺뗻뗼뗽뗾뗿�".split(""),e=0;e!=r[139].length;++e)65533!==r[139][e].charCodeAt(0)&&(n[r[139][e]]=35584+e,t[35584+e]=r[139][e]);for(r[140]="�����������������������������������������������������������������똀똁똂똃똄똅똆똇똈똉똊똋똌똍똎똏똒똓똕똖똗똙똚똛똜똝������똞똟똠똡똢똣똤똦똧똨똩똪똫똭똮똯똰똱똲똳똵똶똷똸똹똺������똻똼똽똾똿뙀뙁뙂뙃뙄뙅뙆뙇뙉뙊뙋뙌뙍뙎뙏뙐뙑뙒뙓뙔뙕뙖뙗뙘뙙뙚뙛뙜뙝뙞뙟뙠뙡뙢뙣뙥뙦뙧뙩뙪뙫뙬뙭뙮뙯뙰뙱뙲뙳뙴뙵뙶뙷뙸뙹뙺뙻뙼뙽뙾뙿뚀뚁뚂뚃뚄뚅뚆뚇뚈뚉뚊뚋뚌뚍뚎뚏뚐뚑뚒뚓뚔뚕뚖뚗뚘뚙뚚뚛뚞뚟뚡뚢뚣뚥뚦뚧뚨뚩뚪뚭뚮뚯뚰뚲뚳뚴뚵뚶뚷뚸뚹뚺뚻뚼뚽뚾뚿뛀뛁뛂�".split(""),e=0;e!=r[140].length;++e)65533!==r[140][e].charCodeAt(0)&&(n[r[140][e]]=35840+e,t[35840+e]=r[140][e]);for(r[141]="�����������������������������������������������������������������뛃뛄뛅뛆뛇뛈뛉뛊뛋뛌뛍뛎뛏뛐뛑뛒뛓뛕뛖뛗뛘뛙뛚뛛뛜뛝������뛞뛟뛠뛡뛢뛣뛤뛥뛦뛧뛨뛩뛪뛫뛬뛭뛮뛯뛱뛲뛳뛵뛶뛷뛹뛺������뛻뛼뛽뛾뛿뜂뜃뜄뜆뜇뜈뜉뜊뜋뜌뜍뜎뜏뜐뜑뜒뜓뜔뜕뜖뜗뜘뜙뜚뜛뜜뜝뜞뜟뜠뜡뜢뜣뜤뜥뜦뜧뜪뜫뜭뜮뜱뜲뜳뜴뜵뜶뜷뜺뜼뜽뜾뜿띀띁띂띃띅띆띇띉띊띋띍띎띏띐띑띒띓띖띗띘띙띚띛띜띝띞띟띡띢띣띥띦띧띩띪띫띬띭띮띯띲띴띶띷띸띹띺띻띾띿랁랂랃랅랆랇랈랉랊랋랎랓랔랕랚랛랝랞�".split(""),e=0;e!=r[141].length;++e)65533!==r[141][e].charCodeAt(0)&&(n[r[141][e]]=36096+e,t[36096+e]=r[141][e]);for(r[142]="�����������������������������������������������������������������랟랡랢랣랤랥랦랧랪랮랯랰랱랲랳랶랷랹랺랻랼랽랾랿럀럁������럂럃럄럅럆럈럊럋럌럍럎럏럐럑럒럓럔럕럖럗럘럙럚럛럜럝������럞럟럠럡럢럣럤럥럦럧럨럩럪럫럮럯럱럲럳럵럶럷럸럹럺럻럾렂렃렄렅렆렊렋렍렎렏렑렒렓렔렕렖렗렚렜렞렟렠렡렢렣렦렧렩렪렫렭렮렯렰렱렲렳렶렺렻렼렽렾렿롁롂롃롅롆롇롈롉롊롋롌롍롎롏롐롒롔롕롖롗롘롙롚롛롞롟롡롢롣롥롦롧롨롩롪롫롮롰롲롳롴롵롶롷롹롺롻롽롾롿뢀뢁뢂뢃뢄�".split(""),e=0;e!=r[142].length;++e)65533!==r[142][e].charCodeAt(0)&&(n[r[142][e]]=36352+e,t[36352+e]=r[142][e]);for(r[143]="�����������������������������������������������������������������뢅뢆뢇뢈뢉뢊뢋뢌뢎뢏뢐뢑뢒뢓뢔뢕뢖뢗뢘뢙뢚뢛뢜뢝뢞뢟������뢠뢡뢢뢣뢤뢥뢦뢧뢩뢪뢫뢬뢭뢮뢯뢱뢲뢳뢵뢶뢷뢹뢺뢻뢼뢽������뢾뢿룂룄룆룇룈룉룊룋룍룎룏룑룒룓룕룖룗룘룙룚룛룜룞룠룢룣룤룥룦룧룪룫룭룮룯룱룲룳룴룵룶룷룺룼룾룿뤀뤁뤂뤃뤅뤆뤇뤈뤉뤊뤋뤌뤍뤎뤏뤐뤑뤒뤓뤔뤕뤖뤗뤙뤚뤛뤜뤝뤞뤟뤡뤢뤣뤤뤥뤦뤧뤨뤩뤪뤫뤬뤭뤮뤯뤰뤱뤲뤳뤴뤵뤶뤷뤸뤹뤺뤻뤾뤿륁륂륃륅륆륇륈륉륊륋륍륎륐륒륓륔륕륖륗�".split(""),e=0;e!=r[143].length;++e)65533!==r[143][e].charCodeAt(0)&&(n[r[143][e]]=36608+e,t[36608+e]=r[143][e]);for(r[144]="�����������������������������������������������������������������륚륛륝륞륟륡륢륣륤륥륦륧륪륬륮륯륰륱륲륳륶륷륹륺륻륽������륾륿릀릁릂릃릆릈릋릌릏릐릑릒릓릔릕릖릗릘릙릚릛릜릝릞������릟릠릡릢릣릤릥릦릧릨릩릪릫릮릯릱릲릳릵릶릷릸릹릺릻릾맀맂맃맄맅맆맇맊맋맍맓맔맕맖맗맚맜맟맠맢맦맧맩맪맫맭맮맯맰맱맲맳맶맻맼맽맾맿먂먃먄먅먆먇먉먊먋먌먍먎먏먐먑먒먓먔먖먗먘먙먚먛먜먝먞먟먠먡먢먣먤먥먦먧먨먩먪먫먬먭먮먯먰먱먲먳먴먵먶먷먺먻먽먾먿멁멃멄멅멆�".split(""),e=0;e!=r[144].length;++e)65533!==r[144][e].charCodeAt(0)&&(n[r[144][e]]=36864+e,t[36864+e]=r[144][e]);for(r[145]="�����������������������������������������������������������������멇멊멌멏멐멑멒멖멗멙멚멛멝멞멟멠멡멢멣멦멪멫멬멭멮멯������멲멳멵멶멷멹멺멻멼멽멾멿몀몁몂몆몈몉몊몋몍몎몏몐몑몒������몓몔몕몖몗몘몙몚몛몜몝몞몟몠몡몢몣몤몥몦몧몪몭몮몯몱몳몴몵몶몷몺몼몾몿뫀뫁뫂뫃뫅뫆뫇뫉뫊뫋뫌뫍뫎뫏뫐뫑뫒뫓뫔뫕뫖뫗뫚뫛뫜뫝뫞뫟뫠뫡뫢뫣뫤뫥뫦뫧뫨뫩뫪뫫뫬뫭뫮뫯뫰뫱뫲뫳뫴뫵뫶뫷뫸뫹뫺뫻뫽뫾뫿묁묂묃묅묆묇묈묉묊묋묌묎묐묒묓묔묕묖묗묙묚묛묝묞묟묡묢묣묤묥묦묧�".split(""),e=0;e!=r[145].length;++e)65533!==r[145][e].charCodeAt(0)&&(n[r[145][e]]=37120+e,t[37120+e]=r[145][e]);for(r[146]="�����������������������������������������������������������������묨묪묬묭묮묯묰묱묲묳묷묹묺묿뭀뭁뭂뭃뭆뭈뭊뭋뭌뭎뭑뭒������뭓뭕뭖뭗뭙뭚뭛뭜뭝뭞뭟뭠뭢뭤뭥뭦뭧뭨뭩뭪뭫뭭뭮뭯뭰뭱������뭲뭳뭴뭵뭶뭷뭸뭹뭺뭻뭼뭽뭾뭿뮀뮁뮂뮃뮄뮅뮆뮇뮉뮊뮋뮍뮎뮏뮑뮒뮓뮔뮕뮖뮗뮘뮙뮚뮛뮜뮝뮞뮟뮠뮡뮢뮣뮥뮦뮧뮩뮪뮫뮭뮮뮯뮰뮱뮲뮳뮵뮶뮸뮹뮺뮻뮼뮽뮾뮿믁믂믃믅믆믇믉믊믋믌믍믎믏믑믒믔믕믖믗믘믙믚믛믜믝믞믟믠믡믢믣믤믥믦믧믨믩믪믫믬믭믮믯믰믱믲믳믴믵믶믷믺믻믽믾밁�".split(""),e=0;e!=r[146].length;++e)65533!==r[146][e].charCodeAt(0)&&(n[r[146][e]]=37376+e,t[37376+e]=r[146][e]);for(r[147]="�����������������������������������������������������������������밃밄밅밆밇밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵������밶밷밹밺밻밼밽밾밿뱂뱆뱇뱈뱊뱋뱎뱏뱑뱒뱓뱔뱕뱖뱗뱘뱙������뱚뱛뱜뱞뱟뱠뱡뱢뱣뱤뱥뱦뱧뱨뱩뱪뱫뱬뱭뱮뱯뱰뱱뱲뱳뱴뱵뱶뱷뱸뱹뱺뱻뱼뱽뱾뱿벀벁벂벃벆벇벉벊벍벏벐벑벒벓벖벘벛벜벝벞벟벢벣벥벦벩벪벫벬벭벮벯벲벶벷벸벹벺벻벾벿볁볂볃볅볆볇볈볉볊볋볌볎볒볓볔볖볗볙볚볛볝볞볟볠볡볢볣볤볥볦볧볨볩볪볫볬볭볮볯볰볱볲볳볷볹볺볻볽�".split(""),e=0;e!=r[147].length;++e)65533!==r[147][e].charCodeAt(0)&&(n[r[147][e]]=37632+e,t[37632+e]=r[147][e]);for(r[148]="�����������������������������������������������������������������볾볿봀봁봂봃봆봈봊봋봌봍봎봏봑봒봓봕봖봗봘봙봚봛봜봝������봞봟봠봡봢봣봥봦봧봨봩봪봫봭봮봯봰봱봲봳봴봵봶봷봸봹������봺봻봼봽봾봿뵁뵂뵃뵄뵅뵆뵇뵊뵋뵍뵎뵏뵑뵒뵓뵔뵕뵖뵗뵚뵛뵜뵝뵞뵟뵠뵡뵢뵣뵥뵦뵧뵩뵪뵫뵬뵭뵮뵯뵰뵱뵲뵳뵴뵵뵶뵷뵸뵹뵺뵻뵼뵽뵾뵿붂붃붅붆붋붌붍붎붏붒붔붖붗붘붛붝붞붟붠붡붢붣붥붦붧붨붩붪붫붬붭붮붯붱붲붳붴붵붶붷붹붺붻붼붽붾붿뷀뷁뷂뷃뷄뷅뷆뷇뷈뷉뷊뷋뷌뷍뷎뷏뷐뷑�".split(""),e=0;e!=r[148].length;++e)65533!==r[148][e].charCodeAt(0)&&(n[r[148][e]]=37888+e,t[37888+e]=r[148][e]);for(r[149]="�����������������������������������������������������������������뷒뷓뷖뷗뷙뷚뷛뷝뷞뷟뷠뷡뷢뷣뷤뷥뷦뷧뷨뷪뷫뷬뷭뷮뷯뷱������뷲뷳뷵뷶뷷뷹뷺뷻뷼뷽뷾뷿븁븂븄븆븇븈븉븊븋븎븏븑븒븓������븕븖븗븘븙븚븛븞븠븡븢븣븤븥븦븧븨븩븪븫븬븭븮븯븰븱븲븳븴븵븶븷븸븹븺븻븼븽븾븿빀빁빂빃빆빇빉빊빋빍빏빐빑빒빓빖빘빜빝빞빟빢빣빥빦빧빩빫빬빭빮빯빲빶빷빸빹빺빾빿뺁뺂뺃뺅뺆뺇뺈뺉뺊뺋뺎뺒뺓뺔뺕뺖뺗뺚뺛뺜뺝뺞뺟뺠뺡뺢뺣뺤뺥뺦뺧뺩뺪뺫뺬뺭뺮뺯뺰뺱뺲뺳뺴뺵뺶뺷�".split(""),e=0;e!=r[149].length;++e)65533!==r[149][e].charCodeAt(0)&&(n[r[149][e]]=38144+e,t[38144+e]=r[149][e]);for(r[150]="�����������������������������������������������������������������뺸뺹뺺뺻뺼뺽뺾뺿뻀뻁뻂뻃뻄뻅뻆뻇뻈뻉뻊뻋뻌뻍뻎뻏뻒뻓������뻕뻖뻙뻚뻛뻜뻝뻞뻟뻡뻢뻦뻧뻨뻩뻪뻫뻭뻮뻯뻰뻱뻲뻳뻴뻵������뻶뻷뻸뻹뻺뻻뻼뻽뻾뻿뼀뼂뼃뼄뼅뼆뼇뼊뼋뼌뼍뼎뼏뼐뼑뼒뼓뼔뼕뼖뼗뼚뼞뼟뼠뼡뼢뼣뼤뼥뼦뼧뼨뼩뼪뼫뼬뼭뼮뼯뼰뼱뼲뼳뼴뼵뼶뼷뼸뼹뼺뼻뼼뼽뼾뼿뽂뽃뽅뽆뽇뽉뽊뽋뽌뽍뽎뽏뽒뽓뽔뽖뽗뽘뽙뽚뽛뽜뽝뽞뽟뽠뽡뽢뽣뽤뽥뽦뽧뽨뽩뽪뽫뽬뽭뽮뽯뽰뽱뽲뽳뽴뽵뽶뽷뽸뽹뽺뽻뽼뽽뽾뽿뾀뾁뾂�".split(""),e=0;e!=r[150].length;++e)65533!==r[150][e].charCodeAt(0)&&(n[r[150][e]]=38400+e,t[38400+e]=r[150][e]);for(r[151]="�����������������������������������������������������������������뾃뾄뾅뾆뾇뾈뾉뾊뾋뾌뾍뾎뾏뾐뾑뾒뾓뾕뾖뾗뾘뾙뾚뾛뾜뾝������뾞뾟뾠뾡뾢뾣뾤뾥뾦뾧뾨뾩뾪뾫뾬뾭뾮뾯뾱뾲뾳뾴뾵뾶뾷뾸������뾹뾺뾻뾼뾽뾾뾿뿀뿁뿂뿃뿄뿆뿇뿈뿉뿊뿋뿎뿏뿑뿒뿓뿕뿖뿗뿘뿙뿚뿛뿝뿞뿠뿢뿣뿤뿥뿦뿧뿨뿩뿪뿫뿬뿭뿮뿯뿰뿱뿲뿳뿴뿵뿶뿷뿸뿹뿺뿻뿼뿽뿾뿿쀀쀁쀂쀃쀄쀅쀆쀇쀈쀉쀊쀋쀌쀍쀎쀏쀐쀑쀒쀓쀔쀕쀖쀗쀘쀙쀚쀛쀜쀝쀞쀟쀠쀡쀢쀣쀤쀥쀦쀧쀨쀩쀪쀫쀬쀭쀮쀯쀰쀱쀲쀳쀴쀵쀶쀷쀸쀹쀺쀻쀽쀾쀿�".split(""),e=0;e!=r[151].length;++e)65533!==r[151][e].charCodeAt(0)&&(n[r[151][e]]=38656+e,t[38656+e]=r[151][e]);for(r[152]="�����������������������������������������������������������������쁀쁁쁂쁃쁄쁅쁆쁇쁈쁉쁊쁋쁌쁍쁎쁏쁐쁒쁓쁔쁕쁖쁗쁙쁚쁛������쁝쁞쁟쁡쁢쁣쁤쁥쁦쁧쁪쁫쁬쁭쁮쁯쁰쁱쁲쁳쁴쁵쁶쁷쁸쁹������쁺쁻쁼쁽쁾쁿삀삁삂삃삄삅삆삇삈삉삊삋삌삍삎삏삒삓삕삖삗삙삚삛삜삝삞삟삢삤삦삧삨삩삪삫삮삱삲삷삸삹삺삻삾샂샃샄샆샇샊샋샍샎샏샑샒샓샔샕샖샗샚샞샟샠샡샢샣샦샧샩샪샫샭샮샯샰샱샲샳샶샸샺샻샼샽샾샿섁섂섃섅섆섇섉섊섋섌섍섎섏섑섒섓섔섖섗섘섙섚섛섡섢섥섨섩섪섫섮�".split(""),e=0;e!=r[152].length;++e)65533!==r[152][e].charCodeAt(0)&&(n[r[152][e]]=38912+e,t[38912+e]=r[152][e]);for(r[153]="�����������������������������������������������������������������섲섳섴섵섷섺섻섽섾섿셁셂셃셄셅셆셇셊셎셏셐셑셒셓셖셗������셙셚셛셝셞셟셠셡셢셣셦셪셫셬셭셮셯셱셲셳셵셶셷셹셺셻������셼셽셾셿솀솁솂솃솄솆솇솈솉솊솋솏솑솒솓솕솗솘솙솚솛솞솠솢솣솤솦솧솪솫솭솮솯솱솲솳솴솵솶솷솸솹솺솻솼솾솿쇀쇁쇂쇃쇅쇆쇇쇉쇊쇋쇍쇎쇏쇐쇑쇒쇓쇕쇖쇙쇚쇛쇜쇝쇞쇟쇡쇢쇣쇥쇦쇧쇩쇪쇫쇬쇭쇮쇯쇲쇴쇵쇶쇷쇸쇹쇺쇻쇾쇿숁숂숃숅숆숇숈숉숊숋숎숐숒숓숔숕숖숗숚숛숝숞숡숢숣�".split(""),e=0;e!=r[153].length;++e)65533!==r[153][e].charCodeAt(0)&&(n[r[153][e]]=39168+e,t[39168+e]=r[153][e]);for(r[154]="�����������������������������������������������������������������숤숥숦숧숪숬숮숰숳숵숶숷숸숹숺숻숼숽숾숿쉀쉁쉂쉃쉄쉅������쉆쉇쉉쉊쉋쉌쉍쉎쉏쉒쉓쉕쉖쉗쉙쉚쉛쉜쉝쉞쉟쉡쉢쉣쉤쉦������쉧쉨쉩쉪쉫쉮쉯쉱쉲쉳쉵쉶쉷쉸쉹쉺쉻쉾슀슂슃슄슅슆슇슊슋슌슍슎슏슑슒슓슔슕슖슗슙슚슜슞슟슠슡슢슣슦슧슩슪슫슮슯슰슱슲슳슶슸슺슻슼슽슾슿싀싁싂싃싄싅싆싇싈싉싊싋싌싍싎싏싐싑싒싓싔싕싖싗싘싙싚싛싞싟싡싢싥싦싧싨싩싪싮싰싲싳싴싵싷싺싽싾싿쌁쌂쌃쌄쌅쌆쌇쌊쌋쌎쌏�".split(""),e=0;e!=r[154].length;++e)65533!==r[154][e].charCodeAt(0)&&(n[r[154][e]]=39424+e,t[39424+e]=r[154][e]);for(r[155]="�����������������������������������������������������������������쌐쌑쌒쌖쌗쌙쌚쌛쌝쌞쌟쌠쌡쌢쌣쌦쌧쌪쌫쌬쌭쌮쌯쌰쌱쌲������쌳쌴쌵쌶쌷쌸쌹쌺쌻쌼쌽쌾쌿썀썁썂썃썄썆썇썈썉썊썋썌썍������썎썏썐썑썒썓썔썕썖썗썘썙썚썛썜썝썞썟썠썡썢썣썤썥썦썧썪썫썭썮썯썱썳썴썵썶썷썺썻썾썿쎀쎁쎂쎃쎅쎆쎇쎉쎊쎋쎍쎎쎏쎐쎑쎒쎓쎔쎕쎖쎗쎘쎙쎚쎛쎜쎝쎞쎟쎠쎡쎢쎣쎤쎥쎦쎧쎨쎩쎪쎫쎬쎭쎮쎯쎰쎱쎲쎳쎴쎵쎶쎷쎸쎹쎺쎻쎼쎽쎾쎿쏁쏂쏃쏄쏅쏆쏇쏈쏉쏊쏋쏌쏍쏎쏏쏐쏑쏒쏓쏔쏕쏖쏗쏚�".split(""),e=0;e!=r[155].length;++e)65533!==r[155][e].charCodeAt(0)&&(n[r[155][e]]=39680+e,t[39680+e]=r[155][e]);for(r[156]="�����������������������������������������������������������������쏛쏝쏞쏡쏣쏤쏥쏦쏧쏪쏫쏬쏮쏯쏰쏱쏲쏳쏶쏷쏹쏺쏻쏼쏽쏾������쏿쐀쐁쐂쐃쐄쐅쐆쐇쐉쐊쐋쐌쐍쐎쐏쐑쐒쐓쐔쐕쐖쐗쐘쐙쐚������쐛쐜쐝쐞쐟쐠쐡쐢쐣쐥쐦쐧쐨쐩쐪쐫쐭쐮쐯쐱쐲쐳쐵쐶쐷쐸쐹쐺쐻쐾쐿쑀쑁쑂쑃쑄쑅쑆쑇쑉쑊쑋쑌쑍쑎쑏쑐쑑쑒쑓쑔쑕쑖쑗쑘쑙쑚쑛쑜쑝쑞쑟쑠쑡쑢쑣쑦쑧쑩쑪쑫쑭쑮쑯쑰쑱쑲쑳쑶쑷쑸쑺쑻쑼쑽쑾쑿쒁쒂쒃쒄쒅쒆쒇쒈쒉쒊쒋쒌쒍쒎쒏쒐쒑쒒쒓쒕쒖쒗쒘쒙쒚쒛쒝쒞쒟쒠쒡쒢쒣쒤쒥쒦쒧쒨쒩�".split(""),e=0;e!=r[156].length;++e)65533!==r[156][e].charCodeAt(0)&&(n[r[156][e]]=39936+e,t[39936+e]=r[156][e]);for(r[157]="�����������������������������������������������������������������쒪쒫쒬쒭쒮쒯쒰쒱쒲쒳쒴쒵쒶쒷쒹쒺쒻쒽쒾쒿쓀쓁쓂쓃쓄쓅������쓆쓇쓈쓉쓊쓋쓌쓍쓎쓏쓐쓑쓒쓓쓔쓕쓖쓗쓘쓙쓚쓛쓜쓝쓞쓟������쓠쓡쓢쓣쓤쓥쓦쓧쓨쓪쓫쓬쓭쓮쓯쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂씃씄씅씆씇씈씉씊씋씍씎씏씑씒씓씕씖씗씘씙씚씛씝씞씟씠씡씢씣씤씥씦씧씪씫씭씮씯씱씲씳씴씵씶씷씺씼씾씿앀앁앂앃앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩앪앫앬앭앮앯앲앶앷앸앹앺앻앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔�".split(""),e=0;e!=r[157].length;++e)65533!==r[157][e].charCodeAt(0)&&(n[r[157][e]]=40192+e,t[40192+e]=r[157][e]);for(r[158]="�����������������������������������������������������������������얖얙얚얛얝얞얟얡얢얣얤얥얦얧얨얪얫얬얭얮얯얰얱얲얳얶������얷얺얿엀엁엂엃엋엍엏엒엓엕엖엗엙엚엛엜엝엞엟엢엤엦엧������엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑옒옓옔옕옖옗옚옝옞옟옠옡옢옣옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉왊왋왌왍왎왏왒왖왗왘왙왚왛왞왟왡왢왣왤왥왦왧왨왩왪왫왭왮왰왲왳왴왵왶왷왺왻왽왾왿욁욂욃욄욅욆욇욊욌욎욏욐욑욒욓욖욗욙욚욛욝욞욟욠욡욢욣욦�".split(""),e=0;e!=r[158].length;++e)65533!==r[158][e].charCodeAt(0)&&(n[r[158][e]]=40448+e,t[40448+e]=r[158][e]);for(r[159]="�����������������������������������������������������������������욨욪욫욬욭욮욯욲욳욵욶욷욻욼욽욾욿웂웄웆웇웈웉웊웋웎������웏웑웒웓웕웖웗웘웙웚웛웞웟웢웣웤웥웦웧웪웫웭웮웯웱웲������웳웴웵웶웷웺웻웼웾웿윀윁윂윃윆윇윉윊윋윍윎윏윐윑윒윓윖윘윚윛윜윝윞윟윢윣윥윦윧윩윪윫윬윭윮윯윲윴윶윸윹윺윻윾윿읁읂읃읅읆읇읈읉읋읎읐읙읚읛읝읞읟읡읢읣읤읥읦읧읩읪읬읭읮읯읰읱읲읳읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛잜잝잞잟잢잧잨잩잪잫잮잯잱잲잳잵잶잷�".split(""),e=0;e!=r[159].length;++e)65533!==r[159][e].charCodeAt(0)&&(n[r[159][e]]=40704+e,t[40704+e]=r[159][e]);for(r[160]="�����������������������������������������������������������������잸잹잺잻잾쟂쟃쟄쟅쟆쟇쟊쟋쟍쟏쟑쟒쟓쟔쟕쟖쟗쟙쟚쟛쟜������쟞쟟쟠쟡쟢쟣쟥쟦쟧쟩쟪쟫쟭쟮쟯쟰쟱쟲쟳쟴쟵쟶쟷쟸쟹쟺������쟻쟼쟽쟾쟿젂젃젅젆젇젉젋젌젍젎젏젒젔젗젘젙젚젛젞젟젡젢젣젥젦젧젨젩젪젫젮젰젲젳젴젵젶젷젹젺젻젽젾젿졁졂졃졄졅졆졇졊졋졎졏졐졑졒졓졕졖졗졘졙졚졛졜졝졞졟졠졡졢졣졤졥졦졧졨졩졪졫졬졭졮졯졲졳졵졶졷졹졻졼졽졾졿좂좄좈좉좊좎좏좐좑좒좓좕좖좗좘좙좚좛좜좞좠좢좣좤�".split(""),e=0;e!=r[160].length;++e)65533!==r[160][e].charCodeAt(0)&&(n[r[160][e]]=40960+e,t[40960+e]=r[160][e]);for(r[161]="�����������������������������������������������������������������좥좦좧좩좪좫좬좭좮좯좰좱좲좳좴좵좶좷좸좹좺좻좾좿죀죁������죂죃죅죆죇죉죊죋죍죎죏죐죑죒죓죖죘죚죛죜죝죞죟죢죣죥������죦죧죨죩죪죫죬죭죮죯죰죱죲죳죴죶죷죸죹죺죻죾죿줁줂줃줇줈줉줊줋줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈〉《》「」『』【】±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬�".split(""),e=0;e!=r[161].length;++e)65533!==r[161][e].charCodeAt(0)&&(n[r[161][e]]=41216+e,t[41216+e]=r[161][e]);for(r[162]="�����������������������������������������������������������������줐줒줓줔줕줖줗줙줚줛줜줝줞줟줠줡줢줣줤줥줦줧줨줩줪줫������줭줮줯줰줱줲줳줵줶줷줸줹줺줻줼줽줾줿쥀쥁쥂쥃쥄쥅쥆쥇������쥈쥉쥊쥋쥌쥍쥎쥏쥒쥓쥕쥖쥗쥙쥚쥛쥜쥝쥞쥟쥢쥤쥥쥦쥧쥨쥩쥪쥫쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®������������������������".split(""),e=0;e!=r[162].length;++e)65533!==r[162][e].charCodeAt(0)&&(n[r[162][e]]=41472+e,t[41472+e]=r[162][e]);for(r[163]="�����������������������������������������������������������������쥱쥲쥳쥵쥶쥷쥸쥹쥺쥻쥽쥾쥿즀즁즂즃즄즅즆즇즊즋즍즎즏������즑즒즓즔즕즖즗즚즜즞즟즠즡즢즣즤즥즦즧즨즩즪즫즬즭즮������즯즰즱즲즳즴즵즶즷즸즹즺즻즼즽즾즿짂짃짅짆짉짋짌짍짎짏짒짔짗짘짛!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[₩]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=r[163].length;++e)65533!==r[163][e].charCodeAt(0)&&(n[r[163][e]]=41728+e,t[41728+e]=r[163][e]);for(r[164]="�����������������������������������������������������������������짞짟짡짣짥짦짨짩짪짫짮짲짳짴짵짶짷짺짻짽짾짿쨁쨂쨃쨄������쨅쨆쨇쨊쨎쨏쨐쨑쨒쨓쨕쨖쨗쨙쨚쨛쨜쨝쨞쨟쨠쨡쨢쨣쨤쨥������쨦쨧쨨쨪쨫쨬쨭쨮쨯쨰쨱쨲쨳쨴쨵쨶쨷쨸쨹쨺쨻쨼쨽쨾쨿쩀쩁쩂쩃쩄쩅쩆ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅤㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ�".split(""),e=0;e!=r[164].length;++e)65533!==r[164][e].charCodeAt(0)&&(n[r[164][e]]=41984+e,t[41984+e]=r[164][e]);for(r[165]="�����������������������������������������������������������������쩇쩈쩉쩊쩋쩎쩏쩑쩒쩓쩕쩖쩗쩘쩙쩚쩛쩞쩢쩣쩤쩥쩦쩧쩩쩪������쩫쩬쩭쩮쩯쩰쩱쩲쩳쩴쩵쩶쩷쩸쩹쩺쩻쩼쩾쩿쪀쪁쪂쪃쪅쪆������쪇쪈쪉쪊쪋쪌쪍쪎쪏쪐쪑쪒쪓쪔쪕쪖쪗쪙쪚쪛쪜쪝쪞쪟쪠쪡쪢쪣쪤쪥쪦쪧ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ�����ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������".split(""),e=0;e!=r[165].length;++e)65533!==r[165][e].charCodeAt(0)&&(n[r[165][e]]=42240+e,t[42240+e]=r[165][e]);for(r[166]="�����������������������������������������������������������������쪨쪩쪪쪫쪬쪭쪮쪯쪰쪱쪲쪳쪴쪵쪶쪷쪸쪹쪺쪻쪾쪿쫁쫂쫃쫅������쫆쫇쫈쫉쫊쫋쫎쫐쫒쫔쫕쫖쫗쫚쫛쫜쫝쫞쫟쫡쫢쫣쫤쫥쫦쫧������쫨쫩쫪쫫쫭쫮쫯쫰쫱쫲쫳쫵쫶쫷쫸쫹쫺쫻쫼쫽쫾쫿쬀쬁쬂쬃쬄쬅쬆쬇쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃╄╅╆╇╈╉╊���������������������������".split(""),e=0;e!=r[166].length;++e)65533!==r[166][e].charCodeAt(0)&&(n[r[166][e]]=42496+e,t[42496+e]=r[166][e]);for(r[167]="�����������������������������������������������������������������쬋쬌쬍쬎쬏쬑쬒쬓쬕쬖쬗쬙쬚쬛쬜쬝쬞쬟쬢쬣쬤쬥쬦쬧쬨쬩������쬪쬫쬬쬭쬮쬯쬰쬱쬲쬳쬴쬵쬶쬷쬸쬹쬺쬻쬼쬽쬾쬿쭀쭂쭃쭄������쭅쭆쭇쭊쭋쭍쭎쭏쭑쭒쭓쭔쭕쭖쭗쭚쭛쭜쭞쭟쭠쭡쭢쭣쭥쭦쭧쭨쭩쭪쭫쭬㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙㎚㎛㎜㎝㎞㎟㎠㎡㎢㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰㎱㎲㎳㎴㎵㎶㎷㎸㎹㎀㎁㎂㎃㎄㎺㎻㎼㎽㎾㎿㎐㎑㎒㎓㎔Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆����������������".split(""),e=0;e!=r[167].length;++e)65533!==r[167][e].charCodeAt(0)&&(n[r[167][e]]=42752+e,t[42752+e]=r[167][e]);for(r[168]="�����������������������������������������������������������������쭭쭮쭯쭰쭱쭲쭳쭴쭵쭶쭷쭺쭻쭼쭽쭾쭿쮀쮁쮂쮃쮄쮅쮆쮇쮈������쮉쮊쮋쮌쮍쮎쮏쮐쮑쮒쮓쮔쮕쮖쮗쮘쮙쮚쮛쮝쮞쮟쮠쮡쮢쮣������쮤쮥쮦쮧쮨쮩쮪쮫쮬쮭쮮쮯쮰쮱쮲쮳쮴쮵쮶쮷쮹쮺쮻쮼쮽쮾쮿쯀쯁쯂쯃쯄ÆÐªĦ�IJ�ĿŁØŒºÞŦŊ�㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭㉮㉯㉰㉱㉲㉳㉴㉵㉶㉷㉸㉹㉺㉻ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮½⅓⅔¼¾⅛⅜⅝⅞�".split(""),e=0;e!=r[168].length;++e)65533!==r[168][e].charCodeAt(0)&&(n[r[168][e]]=43008+e,t[43008+e]=r[168][e]);for(r[169]="�����������������������������������������������������������������쯅쯆쯇쯈쯉쯊쯋쯌쯍쯎쯏쯐쯑쯒쯓쯕쯖쯗쯘쯙쯚쯛쯜쯝쯞쯟������쯠쯡쯢쯣쯥쯦쯨쯪쯫쯬쯭쯮쯯쯰쯱쯲쯳쯴쯵쯶쯷쯸쯹쯺쯻쯼������쯽쯾쯿찀찁찂찃찄찅찆찇찈찉찊찋찎찏찑찒찓찕찖찗찘찙찚찛찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂¹²³⁴ⁿ₁₂₃₄�".split(""),e=0;e!=r[169].length;++e)65533!==r[169][e].charCodeAt(0)&&(n[r[169][e]]=43264+e,t[43264+e]=r[169][e]);for(r[170]="�����������������������������������������������������������������찥찦찪찫찭찯찱찲찳찴찵찶찷찺찿챀챁챂챃챆챇챉챊챋챍챎������챏챐챑챒챓챖챚챛챜챝챞챟챡챢챣챥챧챩챪챫챬챭챮챯챱챲������챳챴챶챷챸챹챺챻챼챽챾챿첀첁첂첃첄첅첆첇첈첉첊첋첌첍첎첏첐첑첒첓ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=r[170].length;++e)65533!==r[170][e].charCodeAt(0)&&(n[r[170][e]]=43520+e,t[43520+e]=r[170][e]);for(r[171]="�����������������������������������������������������������������첔첕첖첗첚첛첝첞첟첡첢첣첤첥첦첧첪첮첯첰첱첲첳첶첷첹������첺첻첽첾첿쳀쳁쳂쳃쳆쳈쳊쳋쳌쳍쳎쳏쳑쳒쳓쳕쳖쳗쳘쳙쳚������쳛쳜쳝쳞쳟쳠쳡쳢쳣쳥쳦쳧쳨쳩쳪쳫쳭쳮쳯쳱쳲쳳쳴쳵쳶쳷쳸쳹쳺쳻쳼쳽ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=r[171].length;++e)65533!==r[171][e].charCodeAt(0)&&(n[r[171][e]]=43776+e,t[43776+e]=r[171][e]);for(r[172]="�����������������������������������������������������������������쳾쳿촀촂촃촄촅촆촇촊촋촍촎촏촑촒촓촔촕촖촗촚촜촞촟촠������촡촢촣촥촦촧촩촪촫촭촮촯촰촱촲촳촴촵촶촷촸촺촻촼촽촾������촿쵀쵁쵂쵃쵄쵅쵆쵇쵈쵉쵊쵋쵌쵍쵎쵏쵐쵑쵒쵓쵔쵕쵖쵗쵘쵙쵚쵛쵝쵞쵟АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=r[172].length;++e)65533!==r[172][e].charCodeAt(0)&&(n[r[172][e]]=44032+e,t[44032+e]=r[172][e]);for(r[173]="�����������������������������������������������������������������쵡쵢쵣쵥쵦쵧쵨쵩쵪쵫쵮쵰쵲쵳쵴쵵쵶쵷쵹쵺쵻쵼쵽쵾쵿춀������춁춂춃춄춅춆춇춉춊춋춌춍춎춏춐춑춒춓춖춗춙춚춛춝춞춟������춠춡춢춣춦춨춪춫춬춭춮춯춱춲춳춴춵춶춷춸춹춺춻춼춽춾춿췀췁췂췃췅�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[173].length;++e)65533!==r[173][e].charCodeAt(0)&&(n[r[173][e]]=44288+e,t[44288+e]=r[173][e]);for(r[174]="�����������������������������������������������������������������췆췇췈췉췊췋췍췎췏췑췒췓췔췕췖췗췘췙췚췛췜췝췞췟췠췡������췢췣췤췥췦췧췩췪췫췭췮췯췱췲췳췴췵췶췷췺췼췾췿츀츁츂������츃츅츆츇츉츊츋츍츎츏츐츑츒츓츕츖츗츘츚츛츜츝츞츟츢츣츥츦츧츩츪츫�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[174].length;++e)65533!==r[174][e].charCodeAt(0)&&(n[r[174][e]]=44544+e,t[44544+e]=r[174][e]);for(r[175]="�����������������������������������������������������������������츬츭츮츯츲츴츶츷츸츹츺츻츼츽츾츿칀칁칂칃칄칅칆칇칈칉������칊칋칌칍칎칏칐칑칒칓칔칕칖칗칚칛칝칞칢칣칤칥칦칧칪칬������칮칯칰칱칲칳칶칷칹칺칻칽칾칿캀캁캂캃캆캈캊캋캌캍캎캏캒캓캕캖캗캙�����������������������������������������������������������������������������������������������".split(""),e=0;e!=r[175].length;++e)65533!==r[175][e].charCodeAt(0)&&(n[r[175][e]]=44800+e,t[44800+e]=r[175][e]);for(r[176]="�����������������������������������������������������������������캚캛캜캝캞캟캢캦캧캨캩캪캫캮캯캰캱캲캳캴캵캶캷캸캹캺������캻캼캽캾캿컀컂컃컄컅컆컇컈컉컊컋컌컍컎컏컐컑컒컓컔컕������컖컗컘컙컚컛컜컝컞컟컠컡컢컣컦컧컩컪컭컮컯컰컱컲컳컶컺컻컼컽컾컿가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆�".split(""),e=0;e!=r[176].length;++e)65533!==r[176][e].charCodeAt(0)&&(n[r[176][e]]=45056+e,t[45056+e]=r[176][e]);for(r[177]="�����������������������������������������������������������������켂켃켅켆켇켉켊켋켌켍켎켏켒켔켖켗켘켙켚켛켝켞켟켡켢켣������켥켦켧켨켩켪켫켮켲켳켴켵켶켷켹켺켻켼켽켾켿콀콁콂콃콄������콅콆콇콈콉콊콋콌콍콎콏콐콑콒콓콖콗콙콚콛콝콞콟콠콡콢콣콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸�".split(""),e=0;e!=r[177].length;++e)65533!==r[177][e].charCodeAt(0)&&(n[r[177][e]]=45312+e,t[45312+e]=r[177][e]);for(r[178]="�����������������������������������������������������������������콭콮콯콲콳콵콶콷콹콺콻콼콽콾콿쾁쾂쾃쾄쾆쾇쾈쾉쾊쾋쾍������쾎쾏쾐쾑쾒쾓쾔쾕쾖쾗쾘쾙쾚쾛쾜쾝쾞쾟쾠쾢쾣쾤쾥쾦쾧쾩������쾪쾫쾬쾭쾮쾯쾱쾲쾳쾴쾵쾶쾷쾸쾹쾺쾻쾼쾽쾾쾿쿀쿁쿂쿃쿅쿆쿇쿈쿉쿊쿋깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙�".split(""),e=0;e!=r[178].length;++e)65533!==r[178][e].charCodeAt(0)&&(n[r[178][e]]=45568+e,t[45568+e]=r[178][e]);for(r[179]="�����������������������������������������������������������������쿌쿍쿎쿏쿐쿑쿒쿓쿔쿕쿖쿗쿘쿙쿚쿛쿜쿝쿞쿟쿢쿣쿥쿦쿧쿩������쿪쿫쿬쿭쿮쿯쿲쿴쿶쿷쿸쿹쿺쿻쿽쿾쿿퀁퀂퀃퀅퀆퀇퀈퀉퀊������퀋퀌퀍퀎퀏퀐퀒퀓퀔퀕퀖퀗퀙퀚퀛퀜퀝퀞퀟퀠퀡퀢퀣퀤퀥퀦퀧퀨퀩퀪퀫퀬끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝�".split(""),e=0;e!=r[179].length;++e)65533!==r[179][e].charCodeAt(0)&&(n[r[179][e]]=45824+e,t[45824+e]=r[179][e]);for(r[180]="�����������������������������������������������������������������퀮퀯퀰퀱퀲퀳퀶퀷퀹퀺퀻퀽퀾퀿큀큁큂큃큆큈큊큋큌큍큎큏������큑큒큓큕큖큗큙큚큛큜큝큞큟큡큢큣큤큥큦큧큨큩큪큫큮큯������큱큲큳큵큶큷큸큹큺큻큾큿킀킂킃킄킅킆킇킈킉킊킋킌킍킎킏킐킑킒킓킔뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥�".split(""),e=0;e!=r[180].length;++e)65533!==r[180][e].charCodeAt(0)&&(n[r[180][e]]=46080+e,t[46080+e]=r[180][e]);for(r[181]="�����������������������������������������������������������������킕킖킗킘킙킚킛킜킝킞킟킠킡킢킣킦킧킩킪킫킭킮킯킰킱킲������킳킶킸킺킻킼킽킾킿탂탃탅탆탇탊탋탌탍탎탏탒탖탗탘탙탚������탛탞탟탡탢탣탥탦탧탨탩탪탫탮탲탳탴탵탶탷탹탺탻탼탽탾탿턀턁턂턃턄덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸�".split(""),e=0;e!=r[181].length;++e)65533!==r[181][e].charCodeAt(0)&&(n[r[181][e]]=46336+e,t[46336+e]=r[181][e]);for(r[182]="�����������������������������������������������������������������턅턆턇턈턉턊턋턌턎턏턐턑턒턓턔턕턖턗턘턙턚턛턜턝턞턟������턠턡턢턣턤턥턦턧턨턩턪턫턬턭턮턯턲턳턵턶턷턹턻턼턽턾������턿텂텆텇텈텉텊텋텎텏텑텒텓텕텖텗텘텙텚텛텞텠텢텣텤텥텦텧텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗�".split(""),e=0;e!=r[182].length;++e)65533!==r[182][e].charCodeAt(0)&&(n[r[182][e]]=46592+e,t[46592+e]=r[182][e]);for(r[183]="�����������������������������������������������������������������텮텯텰텱텲텳텴텵텶텷텸텹텺텻텽텾텿톀톁톂톃톅톆톇톉톊������톋톌톍톎톏톐톑톒톓톔톕톖톗톘톙톚톛톜톝톞톟톢톣톥톦톧������톩톪톫톬톭톮톯톲톴톶톷톸톹톻톽톾톿퇁퇂퇃퇄퇅퇆퇇퇈퇉퇊퇋퇌퇍퇎퇏래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩�".split(""),e=0;e!=r[183].length;++e)65533!==r[183][e].charCodeAt(0)&&(n[r[183][e]]=46848+e,t[46848+e]=r[183][e]);for(r[184]="�����������������������������������������������������������������퇐퇑퇒퇓퇔퇕퇖퇗퇙퇚퇛퇜퇝퇞퇟퇠퇡퇢퇣퇤퇥퇦퇧퇨퇩퇪������퇫퇬퇭퇮퇯퇰퇱퇲퇳퇵퇶퇷퇹퇺퇻퇼퇽퇾퇿툀툁툂툃툄툅툆������툈툊툋툌툍툎툏툑툒툓툔툕툖툗툘툙툚툛툜툝툞툟툠툡툢툣툤툥툦툧툨툩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼�".split(""),e=0;e!=r[184].length;++e)65533!==r[184][e].charCodeAt(0)&&(n[r[184][e]]=47104+e,t[47104+e]=r[184][e]);for(r[185]="�����������������������������������������������������������������툪툫툮툯툱툲툳툵툶툷툸툹툺툻툾퉀퉂퉃퉄퉅퉆퉇퉉퉊퉋퉌������퉍퉎퉏퉐퉑퉒퉓퉔퉕퉖퉗퉘퉙퉚퉛퉝퉞퉟퉠퉡퉢퉣퉥퉦퉧퉨������퉩퉪퉫퉬퉭퉮퉯퉰퉱퉲퉳퉴퉵퉶퉷퉸퉹퉺퉻퉼퉽퉾퉿튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바박밖밗반받발밝밞밟밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗�".split(""),e=0;e!=r[185].length;++e)65533!==r[185][e].charCodeAt(0)&&(n[r[185][e]]=47360+e,t[47360+e]=r[185][e]);for(r[186]="�����������������������������������������������������������������튍튎튏튒튓튔튖튗튘튙튚튛튝튞튟튡튢튣튥튦튧튨튩튪튫튭������튮튯튰튲튳튴튵튶튷튺튻튽튾틁틃틄틅틆틇틊틌틍틎틏틐틑������틒틓틕틖틗틙틚틛틝틞틟틠틡틢틣틦틧틨틩틪틫틬틭틮틯틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤�".split(""),e=0;e!=r[186].length;++e)65533!==r[186][e].charCodeAt(0)&&(n[r[186][e]]=47616+e,t[47616+e]=r[186][e]);for(r[187]="�����������������������������������������������������������������틻틼틽틾틿팂팄팆팇팈팉팊팋팏팑팒팓팕팗팘팙팚팛팞팢팣������팤팦팧팪팫팭팮팯팱팲팳팴팵팶팷팺팾팿퍀퍁퍂퍃퍆퍇퍈퍉������퍊퍋퍌퍍퍎퍏퍐퍑퍒퍓퍔퍕퍖퍗퍘퍙퍚퍛퍜퍝퍞퍟퍠퍡퍢퍣퍤퍥퍦퍧퍨퍩빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤�".split(""),e=0;e!=r[187].length;++e)65533!==r[187][e].charCodeAt(0)&&(n[r[187][e]]=47872+e,t[47872+e]=r[187][e]);for(r[188]="�����������������������������������������������������������������퍪퍫퍬퍭퍮퍯퍰퍱퍲퍳퍴퍵퍶퍷퍸퍹퍺퍻퍾퍿펁펂펃펅펆펇������펈펉펊펋펎펒펓펔펕펖펗펚펛펝펞펟펡펢펣펤펥펦펧펪펬펮������펯펰펱펲펳펵펶펷펹펺펻펽펾펿폀폁폂폃폆폇폊폋폌폍폎폏폑폒폓폔폕폖샥샨샬샴샵샷샹섀섄섈섐섕서석섞섟선섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭�".split(""),e=0;e!=r[188].length;++e)65533!==r[188][e].charCodeAt(0)&&(n[r[188][e]]=48128+e,t[48128+e]=r[188][e]);for(r[189]="�����������������������������������������������������������������폗폙폚폛폜폝폞폟폠폢폤폥폦폧폨폩폪폫폮폯폱폲폳폵폶폷������폸폹폺폻폾퐀퐂퐃퐄퐅퐆퐇퐉퐊퐋퐌퐍퐎퐏퐐퐑퐒퐓퐔퐕퐖������퐗퐘퐙퐚퐛퐜퐞퐟퐠퐡퐢퐣퐤퐥퐦퐧퐨퐩퐪퐫퐬퐭퐮퐯퐰퐱퐲퐳퐴퐵퐶퐷숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰�".split(""),e=0;e!=r[189].length;++e)65533!==r[189][e].charCodeAt(0)&&(n[r[189][e]]=48384+e,t[48384+e]=r[189][e]);for(r[190]="�����������������������������������������������������������������퐸퐹퐺퐻퐼퐽퐾퐿푁푂푃푅푆푇푈푉푊푋푌푍푎푏푐푑푒푓������푔푕푖푗푘푙푚푛푝푞푟푡푢푣푥푦푧푨푩푪푫푬푮푰푱푲������푳푴푵푶푷푺푻푽푾풁풃풄풅풆풇풊풌풎풏풐풑풒풓풕풖풗풘풙풚풛풜풝쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄업없엇었엉엊엌엎�".split(""),e=0;e!=r[190].length;++e)65533!==r[190][e].charCodeAt(0)&&(n[r[190][e]]=48640+e,t[48640+e]=r[190][e]);for(r[191]="�����������������������������������������������������������������풞풟풠풡풢풣풤풥풦풧풨풪풫풬풭풮풯풰풱풲풳풴풵풶풷풸������풹풺풻풼풽풾풿퓀퓁퓂퓃퓄퓅퓆퓇퓈퓉퓊퓋퓍퓎퓏퓑퓒퓓퓕������퓖퓗퓘퓙퓚퓛퓝퓞퓠퓡퓢퓣퓤퓥퓦퓧퓩퓪퓫퓭퓮퓯퓱퓲퓳퓴퓵퓶퓷퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염엽엾엿였영옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨�".split(""),e=0;e!=r[191].length;++e)65533!==r[191][e].charCodeAt(0)&&(n[r[191][e]]=48896+e,t[48896+e]=r[191][e]);for(r[192]="�����������������������������������������������������������������퓾퓿픀픁픂픃픅픆픇픉픊픋픍픎픏픐픑픒픓픖픘픙픚픛픜픝������픞픟픠픡픢픣픤픥픦픧픨픩픪픫픬픭픮픯픰픱픲픳픴픵픶픷������픸픹픺픻픾픿핁핂핃핅핆핇핈핉핊핋핎핐핒핓핔핕핖핗핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응읒읓읔읕읖읗의읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊�".split(""),e=0;e!=r[192].length;++e)65533!==r[192][e].charCodeAt(0)&&(n[r[192][e]]=49152+e,t[49152+e]=r[192][e]);for(r[193]="�����������������������������������������������������������������핤핦핧핪핬핮핯핰핱핲핳핶핷핹핺핻핽핾핿햀햁햂햃햆햊햋������햌햍햎햏햑햒햓햔햕햖햗햘햙햚햛햜햝햞햟햠햡햢햣햤햦햧������햨햩햪햫햬햭햮햯햰햱햲햳햴햵햶햷햸햹햺햻햼햽햾햿헀헁헂헃헄헅헆헇점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓�".split(""),e=0;e!=r[193].length;++e)65533!==r[193][e].charCodeAt(0)&&(n[r[193][e]]=49408+e,t[49408+e]=r[193][e]);for(r[194]="�����������������������������������������������������������������헊헋헍헎헏헑헓헔헕헖헗헚헜헞헟헠헡헢헣헦헧헩헪헫헭헮������헯헰헱헲헳헶헸헺헻헼헽헾헿혂혃혅혆혇혉혊혋혌혍혎혏혒������혖혗혘혙혚혛혝혞혟혡혢혣혥혦혧혨혩혪혫혬혮혯혰혱혲혳혴혵혶혷혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻�".split(""),e=0;e!=r[194].length;++e)65533!==r[194][e].charCodeAt(0)&&(n[r[194][e]]=49664+e,t[49664+e]=r[194][e]);for(r[195]="�����������������������������������������������������������������혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝홞홟홠홡������홢홣홤홥홦홨홪홫홬홭홮홯홲홳홵홶홷홸홹홺홻홼홽홾홿횀������횁횂횄횆횇횈횉횊횋횎횏횑횒횓횕횖횗횘횙횚횛횜횞횠횢횣횤횥횦횧횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층�".split(""),e=0;e!=r[195].length;++e)65533!==r[195][e].charCodeAt(0)&&(n[r[195][e]]=49920+e,t[49920+e]=r[195][e]);for(r[196]="�����������������������������������������������������������������횫횭횮횯횱횲횳횴횵횶횷횸횺횼횽횾횿훀훁훂훃훆훇훉훊훋������훍훎훏훐훒훓훕훖훘훚훛훜훝훞훟훡훢훣훥훦훧훩훪훫훬훭������훮훯훱훲훳훴훶훷훸훹훺훻훾훿휁휂휃휅휆휇휈휉휊휋휌휍휎휏휐휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼�".split(""),e=0;e!=r[196].length;++e)65533!==r[196][e].charCodeAt(0)&&(n[r[196][e]]=50176+e,t[50176+e]=r[196][e]);for(r[197]="�����������������������������������������������������������������휕휖휗휚휛휝휞휟휡휢휣휤휥휦휧휪휬휮휯휰휱휲휳휶휷휹������휺휻휽휾휿흀흁흂흃흅흆흈흊흋흌흍흎흏흒흓흕흚흛흜흝흞������흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵흶흷흸흹흺흻흾흿힀힂힃힄힅힆힇힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜�".split(""),e=0;e!=r[197].length;++e)65533!==r[197][e].charCodeAt(0)&&(n[r[197][e]]=50432+e,t[50432+e]=r[197][e]);for(r[198]="�����������������������������������������������������������������힍힎힏힑힒힓힔힕힖힗힚힜힞힟힠힡힢힣������������������������������������������������������������������������������퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁�".split(""),e=0;e!=r[198].length;++e)65533!==r[198][e].charCodeAt(0)&&(n[r[198][e]]=50688+e,t[50688+e]=r[198][e]);for(r[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠�".split(""),e=0;e!=r[199].length;++e)65533!==r[199][e].charCodeAt(0)&&(n[r[199][e]]=50944+e,t[50944+e]=r[199][e]);for(r[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝�".split(""),e=0;e!=r[200].length;++e)65533!==r[200][e].charCodeAt(0)&&(n[r[200][e]]=51200+e,t[51200+e]=r[200][e]);for(r[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕�".split(""),e=0;e!=r[202].length;++e)65533!==r[202][e].charCodeAt(0)&&(n[r[202][e]]=51712+e,t[51712+e]=r[202][e]);for(r[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢�".split(""),e=0;e!=r[203].length;++e)65533!==r[203][e].charCodeAt(0)&&(n[r[203][e]]=51968+e,t[51968+e]=r[203][e]);for(r[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械�".split(""),e=0;e!=r[204].length;++e)65533!==r[204][e].charCodeAt(0)&&(n[r[204][e]]=52224+e,t[52224+e]=r[204][e]);for(r[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜�".split(""),e=0;e!=r[205].length;++e)65533!==r[205][e].charCodeAt(0)&&(n[r[205][e]]=52480+e,t[52480+e]=r[205][e]);for(r[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾�".split(""),e=0;e!=r[206].length;++e)65533!==r[206][e].charCodeAt(0)&&(n[r[206][e]]=52736+e,t[52736+e]=r[206][e]);for(r[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴�".split(""),e=0;e!=r[207].length;++e)65533!==r[207][e].charCodeAt(0)&&(n[r[207][e]]=52992+e,t[52992+e]=r[207][e]);for(r[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣�".split(""),e=0;e!=r[208].length;++e)65533!==r[208][e].charCodeAt(0)&&(n[r[208][e]]=53248+e,t[53248+e]=r[208][e]);for(r[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩羅蘿螺裸邏那樂洛烙珞落諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉�".split(""),e=0;e!=r[209].length;++e)65533!==r[209][e].charCodeAt(0)&&(n[r[209][e]]=53504+e,t[53504+e]=r[209][e]);for(r[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������納臘蠟衲囊娘廊朗浪狼郎乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧老蘆虜路露駑魯鷺碌祿綠菉錄鹿論壟弄濃籠聾膿農惱牢磊腦賂雷尿壘屢樓淚漏累縷陋嫩訥杻紐勒肋凜凌稜綾能菱陵尼泥匿溺多茶�".split(""),e=0;e!=r[210].length;++e)65533!==r[210][e].charCodeAt(0)&&(n[r[210][e]]=53760+e,t[53760+e]=r[210][e]);for(r[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃�".split(""),e=0;e!=r[211].length;++e)65533!==r[211][e].charCodeAt(0)&&(n[r[211][e]]=54016+e,t[54016+e]=r[211][e]);for(r[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅�".split(""),e=0;e!=r[212].length;++e)65533!==r[212][e].charCodeAt(0)&&(n[r[212][e]]=54272+e,t[54272+e]=r[212][e]);for(r[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣�".split(""),e=0;e!=r[213].length;++e)65533!==r[213][e].charCodeAt(0)&&(n[r[213][e]]=54528+e,t[54528+e]=r[213][e]);for(r[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼�".split(""),e=0;e!=r[214].length;++e)65533!==r[214][e].charCodeAt(0)&&(n[r[214][e]]=54784+e,t[54784+e]=r[214][e]);for(r[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬�".split(""),e=0;e!=r[215].length;++e)65533!==r[215][e].charCodeAt(0)&&(n[r[215][e]]=55040+e,t[55040+e]=r[215][e]);for(r[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅�".split(""),e=0;e!=r[216].length;++e)65533!==r[216][e].charCodeAt(0)&&(n[r[216][e]]=55296+e,t[55296+e]=r[216][e]);for(r[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文�".split(""),e=0;e!=r[217].length;++e)65533!==r[217][e].charCodeAt(0)&&(n[r[217][e]]=55552+e,t[55552+e]=r[217][e]);for(r[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑�".split(""),e=0;e!=r[218].length;++e)65533!==r[218][e].charCodeAt(0)&&(n[r[218][e]]=55808+e,t[55808+e]=r[218][e]);for(r[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖�".split(""),e=0;e!=r[219].length;++e)65533!==r[219][e].charCodeAt(0)&&(n[r[219][e]]=56064+e,t[56064+e]=r[219][e]);for(r[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦�".split(""),e=0;e!=r[220].length;++e)65533!==r[220][e].charCodeAt(0)&&(n[r[220][e]]=56320+e,t[56320+e]=r[220][e]);for(r[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥�".split(""),e=0;e!=r[221].length;++e)65533!==r[221][e].charCodeAt(0)&&(n[r[221][e]]=56576+e,t[56576+e]=r[221][e]);for(r[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索�".split(""),e=0;e!=r[222].length;++e)65533!==r[222][e].charCodeAt(0)&&(n[r[222][e]]=56832+e,t[56832+e]=r[222][e]);for(r[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署�".split(""),e=0;e!=r[223].length;++e)65533!==r[223][e].charCodeAt(0)&&(n[r[223][e]]=57088+e,t[57088+e]=r[223][e]);for(r[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬�".split(""),e=0;e!=r[224].length;++e)65533!==r[224][e].charCodeAt(0)&&(n[r[224][e]]=57344+e,t[57344+e]=r[224][e]);for(r[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁�".split(""),e=0;e!=r[225].length;++e)65533!==r[225][e].charCodeAt(0)&&(n[r[225][e]]=57600+e,t[57600+e]=r[225][e]);for(r[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧�".split(""),e=0;e!=r[226].length;++e)65533!==r[226][e].charCodeAt(0)&&(n[r[226][e]]=57856+e,t[57856+e]=r[226][e]);for(r[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁�".split(""),e=0;e!=r[227].length;++e)65533!==r[227][e].charCodeAt(0)&&(n[r[227][e]]=58112+e,t[58112+e]=r[227][e]);for(r[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額�".split(""),e=0;e!=r[228].length;++e)65533!==r[228][e].charCodeAt(0)&&(n[r[228][e]]=58368+e,t[58368+e]=r[228][e]);for(r[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬�".split(""),e=0;e!=r[229].length;++e)65533!==r[229][e].charCodeAt(0)&&(n[r[229][e]]=58624+e,t[58624+e]=r[229][e]);for(r[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒�".split(""),e=0;e!=r[230].length;++e)65533!==r[230][e].charCodeAt(0)&&(n[r[230][e]]=58880+e,t[58880+e]=r[230][e]);for(r[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳�".split(""),e=0;e!=r[231].length;++e)65533!==r[231][e].charCodeAt(0)&&(n[r[231][e]]=59136+e,t[59136+e]=r[231][e]);for(r[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療�".split(""),e=0;e!=r[232].length;++e)65533!==r[232][e].charCodeAt(0)&&(n[r[232][e]]=59392+e,t[59392+e]=r[232][e]);for(r[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓�".split(""),e=0;e!=r[233].length;++e)65533!==r[233][e].charCodeAt(0)&&(n[r[233][e]]=59648+e,t[59648+e]=r[233][e]);for(r[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜�".split(""),e=0;e!=r[234].length;++e)65533!==r[234][e].charCodeAt(0)&&(n[r[234][e]]=59904+e,t[59904+e]=r[234][e]);for(r[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼�".split(""),e=0;e!=r[235].length;++e)65533!==r[235][e].charCodeAt(0)&&(n[r[235][e]]=60160+e,t[60160+e]=r[235][e]);for(r[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄�".split(""),e=0;e!=r[236].length;++e)65533!==r[236][e].charCodeAt(0)&&(n[r[236][e]]=60416+e,t[60416+e]=r[236][e]);for(r[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長�".split(""),e=0;e!=r[237].length;++e)65533!==r[237][e].charCodeAt(0)&&(n[r[237][e]]=60672+e,t[60672+e]=r[237][e]);for(r[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱�".split(""),e=0;e!=r[238].length;++e)65533!==r[238][e].charCodeAt(0)&&(n[r[238][e]]=60928+e,t[60928+e]=r[238][e]);for(r[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖�".split(""),e=0;e!=r[239].length;++e)65533!==r[239][e].charCodeAt(0)&&(n[r[239][e]]=61184+e,t[61184+e]=r[239][e]);for(r[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫�".split(""),e=0;e!=r[240].length;++e)65533!==r[240][e].charCodeAt(0)&&(n[r[240][e]]=61440+e,t[61440+e]=r[240][e]);for(r[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只�".split(""),e=0;e!=r[241].length;++e)65533!==r[241][e].charCodeAt(0)&&(n[r[241][e]]=61696+e,t[61696+e]=r[241][e]);for(r[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯�".split(""),e=0;e!=r[242].length;++e)65533!==r[242][e].charCodeAt(0)&&(n[r[242][e]]=61952+e,t[61952+e]=r[242][e]);for(r[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策�".split(""),e=0;e!=r[243].length;++e)65533!==r[243][e].charCodeAt(0)&&(n[r[243][e]]=62208+e,t[62208+e]=r[243][e]);for(r[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢�".split(""),e=0;e!=r[244].length;++e)65533!==r[244][e].charCodeAt(0)&&(n[r[244][e]]=62464+e,t[62464+e]=r[244][e]);for(r[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃�".split(""),e=0;e!=r[245].length;++e)65533!==r[245][e].charCodeAt(0)&&(n[r[245][e]]=62720+e,t[62720+e]=r[245][e]);for(r[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託�".split(""),e=0;e!=r[246].length;++e)65533!==r[246][e].charCodeAt(0)&&(n[r[246][e]]=62976+e,t[62976+e]=r[246][e]);for(r[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑�".split(""),e=0;e!=r[247].length;++e)65533!==r[247][e].charCodeAt(0)&&(n[r[247][e]]=63232+e,t[63232+e]=r[247][e]);for(r[248]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃�".split(""),e=0;e!=r[248].length;++e)65533!==r[248][e].charCodeAt(0)&&(n[r[248][e]]=63488+e,t[63488+e]=r[248][e]);for(r[249]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航�".split(""),e=0;e!=r[249].length;++e)65533!==r[249][e].charCodeAt(0)&&(n[r[249][e]]=63744+e,t[63744+e]=r[249][e]);for(r[250]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型�".split(""),e=0;e!=r[250].length;++e)65533!==r[250][e].charCodeAt(0)&&(n[r[250][e]]=64e3+e,t[64e3+e]=r[250][e]);for(r[251]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵�".split(""),e=0;e!=r[251].length;++e)65533!==r[251][e].charCodeAt(0)&&(n[r[251][e]]=64256+e,t[64256+e]=r[251][e]);for(r[252]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆�".split(""),e=0;e!=r[252].length;++e)65533!==r[252][e].charCodeAt(0)&&(n[r[252][e]]=64512+e,t[64512+e]=r[252][e]);for(r[253]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰�".split(""),e=0;e!=r[253].length;++e)65533!==r[253][e].charCodeAt(0)&&(n[r[253][e]]=64768+e,t[64768+e]=r[253][e]);return{enc:n,dec:t}}(),n[950]=function(){var e,t=[],n={},r=[];for(r[0]="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=r[0].length;++e)65533!==r[0][e].charCodeAt(0)&&(n[r[0][e]]=0+e,t[0+e]=r[0][e]);for(r[161]="���������������������������������������������������������������� ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚����������������������������������﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢﹣﹤﹥﹦~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/�".split(""),e=0;e!=r[161].length;++e)65533!==r[161][e].charCodeAt(0)&&(n[r[161][e]]=41216+e,t[41216+e]=r[161][e]);for(r[162]="����������������������������������������������������������������\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁▂▃▄▅▆▇█▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭����������������������������������╮╰╯═╞╪╡◢◣◥◤╱╲╳0123456789ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ〡〢〣〤〥〦〧〨〩十卄卅ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv�".split(""),e=0;e!=r[162].length;++e)65533!==r[162][e].charCodeAt(0)&&(n[r[162][e]]=41472+e,t[41472+e]=r[162][e]);for(r[163]="����������������������������������������������������������������wxyzΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏ����������������������������������ㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ˙ˉˊˇˋ���������������������������������€������������������������������".split(""),e=0;e!=r[163].length;++e)65533!==r[163][e].charCodeAt(0)&&(n[r[163][e]]=41728+e,t[41728+e]=r[163][e]);for(r[164]="����������������������������������������������������������������一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才����������������������������������丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙�".split(""),e=0;e!=r[164].length;++e)65533!==r[164][e].charCodeAt(0)&&(n[r[164][e]]=41984+e,t[41984+e]=r[164][e]);for(r[165]="����������������������������������������������������������������世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外����������������������������������央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全�".split(""),e=0;e!=r[165].length;++e)65533!==r[165][e].charCodeAt(0)&&(n[r[165][e]]=42240+e,t[42240+e]=r[165][e]);for(r[166]="����������������������������������������������������������������共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年����������������������������������式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣�".split(""),e=0;e!=r[166].length;++e)65533!==r[166][e].charCodeAt(0)&&(n[r[166][e]]=42496+e,t[42496+e]=r[166][e]);for(r[167]="����������������������������������������������������������������作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍����������������������������������均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠�".split(""),e=0;e!=r[167].length;++e)65533!==r[167][e].charCodeAt(0)&&(n[r[167][e]]=42752+e,t[42752+e]=r[167][e]);for(r[168]="����������������������������������������������������������������杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒����������������������������������芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵�".split(""),e=0;e!=r[168].length;++e)65533!==r[168][e].charCodeAt(0)&&(n[r[168][e]]=43008+e,t[43008+e]=r[168][e]);for(r[169]="����������������������������������������������������������������咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居����������������������������������屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊�".split(""),e=0;e!=r[169].length;++e)65533!==r[169][e].charCodeAt(0)&&(n[r[169][e]]=43264+e,t[43264+e]=r[169][e]);for(r[170]="����������������������������������������������������������������昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠����������������������������������炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附�".split(""),e=0;e!=r[170].length;++e)65533!==r[170][e].charCodeAt(0)&&(n[r[170][e]]=43520+e,t[43520+e]=r[170][e]);for(r[171]="����������������������������������������������������������������陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品����������������������������������哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷�".split(""),e=0;e!=r[171].length;++e)65533!==r[171][e].charCodeAt(0)&&(n[r[171][e]]=43776+e,t[43776+e]=r[171][e]);for(r[172]="����������������������������������������������������������������拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗����������������������������������活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄�".split(""),e=0;e!=r[172].length;++e)65533!==r[172][e].charCodeAt(0)&&(n[r[172][e]]=44032+e,t[44032+e]=r[172][e]);for(r[173]="����������������������������������������������������������������耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥����������������������������������迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪�".split(""),e=0;e!=r[173].length;++e)65533!==r[173][e].charCodeAt(0)&&(n[r[173][e]]=44288+e,t[44288+e]=r[173][e]);for(r[174]="����������������������������������������������������������������哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙����������������������������������恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓�".split(""),e=0;e!=r[174].length;++e)65533!==r[174][e].charCodeAt(0)&&(n[r[174][e]]=44544+e,t[44544+e]=r[174][e]);for(r[175]="����������������������������������������������������������������浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷����������������������������������砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃�".split(""),e=0;e!=r[175].length;++e)65533!==r[175][e].charCodeAt(0)&&(n[r[175][e]]=44800+e,t[44800+e]=r[175][e]);for(r[176]="����������������������������������������������������������������虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡����������������������������������陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀�".split(""),e=0;e!=r[176].length;++e)65533!==r[176][e].charCodeAt(0)&&(n[r[176][e]]=45056+e,t[45056+e]=r[176][e]);for(r[177]="����������������������������������������������������������������娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽����������������������������������情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺�".split(""),e=0;e!=r[177].length;++e)65533!==r[177][e].charCodeAt(0)&&(n[r[177][e]]=45312+e,t[45312+e]=r[177][e]);for(r[178]="����������������������������������������������������������������毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶����������������������������������瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼�".split(""),e=0;e!=r[178].length;++e)65533!==r[178][e].charCodeAt(0)&&(n[r[178][e]]=45568+e,t[45568+e]=r[178][e]);for(r[179]="����������������������������������������������������������������莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途����������������������������������部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠�".split(""),e=0;e!=r[179].length;++e)65533!==r[179][e].charCodeAt(0)&&(n[r[179][e]]=45824+e,t[45824+e]=r[179][e]);for(r[180]="����������������������������������������������������������������婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍����������������������������������插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋�".split(""),e=0;e!=r[180].length;++e)65533!==r[180][e].charCodeAt(0)&&(n[r[180][e]]=46080+e,t[46080+e]=r[180][e]);for(r[181]="����������������������������������������������������������������溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘����������������������������������窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁�".split(""),e=0;e!=r[181].length;++e)65533!==r[181][e].charCodeAt(0)&&(n[r[181][e]]=46336+e,t[46336+e]=r[181][e]);for(r[182]="����������������������������������������������������������������詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑����������������������������������間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼�".split(""),e=0;e!=r[182].length;++e)65533!==r[182][e].charCodeAt(0)&&(n[r[182][e]]=46592+e,t[46592+e]=r[182][e]);for(r[183]="����������������������������������������������������������������媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業����������������������������������楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督�".split(""),e=0;e!=r[183].length;++e)65533!==r[183][e].charCodeAt(0)&&(n[r[183][e]]=46848+e,t[46848+e]=r[183][e]);for(r[184]="����������������������������������������������������������������睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫����������������������������������腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊�".split(""),e=0;e!=r[184].length;++e)65533!==r[184][e].charCodeAt(0)&&(n[r[184][e]]=47104+e,t[47104+e]=r[184][e]);for(r[185]="����������������������������������������������������������������辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴����������������������������������飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇�".split(""),e=0;e!=r[185].length;++e)65533!==r[185][e].charCodeAt(0)&&(n[r[185][e]]=47360+e,t[47360+e]=r[185][e]);for(r[186]="����������������������������������������������������������������愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢����������������������������������滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬�".split(""),e=0;e!=r[186].length;++e)65533!==r[186][e].charCodeAt(0)&&(n[r[186][e]]=47616+e,t[47616+e]=r[186][e]);for(r[187]="����������������������������������������������������������������罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤����������������������������������說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜�".split(""),e=0;e!=r[187].length;++e)65533!==r[187][e].charCodeAt(0)&&(n[r[187][e]]=47872+e,t[47872+e]=r[187][e]);for(r[188]="����������������������������������������������������������������劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂����������������������������������慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃�".split(""),e=0;e!=r[188].length;++e)65533!==r[188][e].charCodeAt(0)&&(n[r[188][e]]=48128+e,t[48128+e]=r[188][e]);for(r[189]="����������������������������������������������������������������瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯����������������������������������翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞�".split(""),e=0;e!=r[189].length;++e)65533!==r[189][e].charCodeAt(0)&&(n[r[189][e]]=48384+e,t[48384+e]=r[189][e]);for(r[190]="����������������������������������������������������������������輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉����������������������������������鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡�".split(""),e=0;e!=r[190].length;++e)65533!==r[190][e].charCodeAt(0)&&(n[r[190][e]]=48640+e,t[48640+e]=r[190][e]);for(r[191]="����������������������������������������������������������������濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊����������������������������������縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚�".split(""),e=0;e!=r[191].length;++e)65533!==r[191][e].charCodeAt(0)&&(n[r[191][e]]=48896+e,t[48896+e]=r[191][e]);for(r[192]="����������������������������������������������������������������錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇����������������������������������嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬�".split(""),e=0;e!=r[192].length;++e)65533!==r[192][e].charCodeAt(0)&&(n[r[192][e]]=49152+e,t[49152+e]=r[192][e]);for(r[193]="����������������������������������������������������������������瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪����������������������������������薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁�".split(""),e=0;e!=r[193].length;++e)65533!==r[193][e].charCodeAt(0)&&(n[r[193][e]]=49408+e,t[49408+e]=r[193][e]);for(r[194]="����������������������������������������������������������������駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘����������������������������������癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦�".split(""),e=0;e!=r[194].length;++e)65533!==r[194][e].charCodeAt(0)&&(n[r[194][e]]=49664+e,t[49664+e]=r[194][e]);for(r[195]="����������������������������������������������������������������鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸����������������������������������獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類�".split(""),e=0;e!=r[195].length;++e)65533!==r[195][e].charCodeAt(0)&&(n[r[195][e]]=49920+e,t[49920+e]=r[195][e]);for(r[196]="����������������������������������������������������������������願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼����������������������������������纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴�".split(""),e=0;e!=r[196].length;++e)65533!==r[196][e].charCodeAt(0)&&(n[r[196][e]]=50176+e,t[50176+e]=r[196][e]);for(r[197]="����������������������������������������������������������������護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬����������������������������������禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒�".split(""),e=0;e!=r[197].length;++e)65533!==r[197][e].charCodeAt(0)&&(n[r[197][e]]=50432+e,t[50432+e]=r[197][e]);for(r[198]="����������������������������������������������������������������讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲���������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=r[198].length;++e)65533!==r[198][e].charCodeAt(0)&&(n[r[198][e]]=50688+e,t[50688+e]=r[198][e]);for(r[201]="����������������������������������������������������������������乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕����������������������������������氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋�".split(""),e=0;e!=r[201].length;++e)65533!==r[201][e].charCodeAt(0)&&(n[r[201][e]]=51456+e,t[51456+e]=r[201][e]);for(r[202]="����������������������������������������������������������������汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘����������������������������������吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇�".split(""),e=0;e!=r[202].length;++e)65533!==r[202][e].charCodeAt(0)&&(n[r[202][e]]=51712+e,t[51712+e]=r[202][e]);for(r[203]="����������������������������������������������������������������杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓����������������������������������芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢�".split(""),e=0;e!=r[203].length;++e)65533!==r[203][e].charCodeAt(0)&&(n[r[203][e]]=51968+e,t[51968+e]=r[203][e]);for(r[204]="����������������������������������������������������������������坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋����������������������������������怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲�".split(""),e=0;e!=r[204].length;++e)65533!==r[204][e].charCodeAt(0)&&(n[r[204][e]]=52224+e,t[52224+e]=r[204][e]);for(r[205]="����������������������������������������������������������������泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺����������������������������������矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏�".split(""),e=0;e!=r[205].length;++e)65533!==r[205][e].charCodeAt(0)&&(n[r[205][e]]=52480+e,t[52480+e]=r[205][e]);for(r[206]="����������������������������������������������������������������哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛����������������������������������峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺�".split(""),e=0;e!=r[206].length;++e)65533!==r[206][e].charCodeAt(0)&&(n[r[206][e]]=52736+e,t[52736+e]=r[206][e]);for(r[207]="����������������������������������������������������������������柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂����������������������������������洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀�".split(""),e=0;e!=r[207].length;++e)65533!==r[207][e].charCodeAt(0)&&(n[r[207][e]]=52992+e,t[52992+e]=r[207][e]);for(r[208]="����������������������������������������������������������������穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪����������������������������������苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱�".split(""),e=0;e!=r[208].length;++e)65533!==r[208][e].charCodeAt(0)&&(n[r[208][e]]=53248+e,t[53248+e]=r[208][e]);for(r[209]="����������������������������������������������������������������唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧����������������������������������恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤�".split(""),e=0;e!=r[209].length;++e)65533!==r[209][e].charCodeAt(0)&&(n[r[209][e]]=53504+e,t[53504+e]=r[209][e]);for(r[210]="����������������������������������������������������������������毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸����������������������������������牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐�".split(""),e=0;e!=r[210].length;++e)65533!==r[210][e].charCodeAt(0)&&(n[r[210][e]]=53760+e,t[53760+e]=r[210][e]);for(r[211]="����������������������������������������������������������������笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢����������������������������������荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐�".split(""),e=0;e!=r[211].length;++e)65533!==r[211][e].charCodeAt(0)&&(n[r[211][e]]=54016+e,t[54016+e]=r[211][e]);for(r[212]="����������������������������������������������������������������酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅����������������������������������唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏�".split(""),e=0;e!=r[212].length;++e)65533!==r[212][e].charCodeAt(0)&&(n[r[212][e]]=54272+e,t[54272+e]=r[212][e]);for(r[213]="����������������������������������������������������������������崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟����������������������������������捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉�".split(""),e=0;e!=r[213].length;++e)65533!==r[213][e].charCodeAt(0)&&(n[r[213][e]]=54528+e,t[54528+e]=r[213][e]);for(r[214]="����������������������������������������������������������������淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏����������������������������������痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟�".split(""),e=0;e!=r[214].length;++e)65533!==r[214][e].charCodeAt(0)&&(n[r[214][e]]=54784+e,t[54784+e]=r[214][e]);for(r[215]="����������������������������������������������������������������耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷����������������������������������蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪�".split(""),e=0;e!=r[215].length;++e)65533!==r[215][e].charCodeAt(0)&&(n[r[215][e]]=55040+e,t[55040+e]=r[215][e]);for(r[216]="����������������������������������������������������������������釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷����������������������������������堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔�".split(""),e=0;e!=r[216].length;++e)65533!==r[216][e].charCodeAt(0)&&(n[r[216][e]]=55296+e,t[55296+e]=r[216][e]);for(r[217]="����������������������������������������������������������������惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒����������������������������������晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞�".split(""),e=0;e!=r[217].length;++e)65533!==r[217][e].charCodeAt(0)&&(n[r[217][e]]=55552+e,t[55552+e]=r[217][e]);for(r[218]="����������������������������������������������������������������湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖����������������������������������琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥�".split(""),e=0;e!=r[218].length;++e)65533!==r[218][e].charCodeAt(0)&&(n[r[218][e]]=55808+e,t[55808+e]=r[218][e]);for(r[219]="����������������������������������������������������������������罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳����������������������������������菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺�".split(""),e=0;e!=r[219].length;++e)65533!==r[219][e].charCodeAt(0)&&(n[r[219][e]]=56064+e,t[56064+e]=r[219][e]);for(r[220]="����������������������������������������������������������������軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈����������������������������������隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆�".split(""),e=0;e!=r[220].length;++e)65533!==r[220][e].charCodeAt(0)&&(n[r[220][e]]=56320+e,t[56320+e]=r[220][e]);for(r[221]="����������������������������������������������������������������媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤����������������������������������搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼�".split(""),e=0;e!=r[221].length;++e)65533!==r[221][e].charCodeAt(0)&&(n[r[221][e]]=56576+e,t[56576+e]=r[221][e]);for(r[222]="����������������������������������������������������������������毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓����������������������������������煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓�".split(""),e=0;e!=r[222].length;++e)65533!==r[222][e].charCodeAt(0)&&(n[r[222][e]]=56832+e,t[56832+e]=r[222][e]);for(r[223]="����������������������������������������������������������������稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯����������������������������������腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤�".split(""),e=0;e!=r[223].length;++e)65533!==r[223][e].charCodeAt(0)&&(n[r[223][e]]=57088+e,t[57088+e]=r[223][e]);for(r[224]="����������������������������������������������������������������觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿����������������������������������遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠�".split(""),e=0;e!=r[224].length;++e)65533!==r[224][e].charCodeAt(0)&&(n[r[224][e]]=57344+e,t[57344+e]=r[224][e]);for(r[225]="����������������������������������������������������������������凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠����������������������������������寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉�".split(""),e=0;e!=r[225].length;++e)65533!==r[225][e].charCodeAt(0)&&(n[r[225][e]]=57600+e,t[57600+e]=r[225][e]);for(r[226]="����������������������������������������������������������������榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊����������������������������������漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓�".split(""),e=0;e!=r[226].length;++e)65533!==r[226][e].charCodeAt(0)&&(n[r[226][e]]=57856+e,t[57856+e]=r[226][e]);for(r[227]="����������������������������������������������������������������禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞����������������������������������耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻�".split(""),e=0;e!=r[227].length;++e)65533!==r[227][e].charCodeAt(0)&&(n[r[227][e]]=58112+e,t[58112+e]=r[227][e]);for(r[228]="����������������������������������������������������������������裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍����������������������������������銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘�".split(""),e=0;e!=r[228].length;++e)65533!==r[228][e].charCodeAt(0)&&(n[r[228][e]]=58368+e,t[58368+e]=r[228][e]);for(r[229]="����������������������������������������������������������������噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉����������������������������������憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒�".split(""),e=0;e!=r[229].length;++e)65533!==r[229][e].charCodeAt(0)&&(n[r[229][e]]=58624+e,t[58624+e]=r[229][e]);for(r[230]="����������������������������������������������������������������澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙����������������������������������獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟�".split(""),e=0;e!=r[230].length;++e)65533!==r[230][e].charCodeAt(0)&&(n[r[230][e]]=58880+e,t[58880+e]=r[230][e]);for(r[231]="����������������������������������������������������������������膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢����������������������������������蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧�".split(""),e=0;e!=r[231].length;++e)65533!==r[231][e].charCodeAt(0)&&(n[r[231][e]]=59136+e,t[59136+e]=r[231][e]);for(r[232]="����������������������������������������������������������������踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓����������������������������������銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮�".split(""),e=0;e!=r[232].length;++e)65533!==r[232][e].charCodeAt(0)&&(n[r[232][e]]=59392+e,t[59392+e]=r[232][e]);for(r[233]="����������������������������������������������������������������噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺����������������������������������憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸�".split(""),e=0;e!=r[233].length;++e)65533!==r[233][e].charCodeAt(0)&&(n[r[233][e]]=59648+e,t[59648+e]=r[233][e]);for(r[234]="����������������������������������������������������������������澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙����������������������������������瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘�".split(""),e=0;e!=r[234].length;++e)65533!==r[234][e].charCodeAt(0)&&(n[r[234][e]]=59904+e,t[59904+e]=r[234][e]);for(r[235]="����������������������������������������������������������������蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠����������������������������������諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌�".split(""),e=0;e!=r[235].length;++e)65533!==r[235][e].charCodeAt(0)&&(n[r[235][e]]=60160+e,t[60160+e]=r[235][e]);for(r[236]="����������������������������������������������������������������錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕����������������������������������魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎�".split(""),e=0;e!=r[236].length;++e)65533!==r[236][e].charCodeAt(0)&&(n[r[236][e]]=60416+e,t[60416+e]=r[236][e]);for(r[237]="����������������������������������������������������������������檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶����������������������������������瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞�".split(""),e=0;e!=r[237].length;++e)65533!==r[237][e].charCodeAt(0)&&(n[r[237][e]]=60672+e,t[60672+e]=r[237][e]);for(r[238]="����������������������������������������������������������������蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞����������������������������������謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜�".split(""),e=0;e!=r[238].length;++e)65533!==r[238][e].charCodeAt(0)&&(n[r[238][e]]=60928+e,t[60928+e]=r[238][e]);for(r[239]="����������������������������������������������������������������鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰����������������������������������鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶�".split(""),e=0;e!=r[239].length;++e)65533!==r[239][e].charCodeAt(0)&&(n[r[239][e]]=61184+e,t[61184+e]=r[239][e]);for(r[240]="����������������������������������������������������������������璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒����������������������������������臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧�".split(""),e=0;e!=r[240].length;++e)65533!==r[240][e].charCodeAt(0)&&(n[r[240][e]]=61440+e,t[61440+e]=r[240][e]);for(r[241]="����������������������������������������������������������������蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪����������������������������������鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰�".split(""),e=0;e!=r[241].length;++e)65533!==r[241][e].charCodeAt(0)&&(n[r[241][e]]=61696+e,t[61696+e]=r[241][e]);for(r[242]="����������������������������������������������������������������徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛����������������������������������礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕�".split(""),e=0;e!=r[242].length;++e)65533!==r[242][e].charCodeAt(0)&&(n[r[242][e]]=61952+e,t[61952+e]=r[242][e]);for(r[243]="����������������������������������������������������������������譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦����������������������������������鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲�".split(""),e=0;e!=r[243].length;++e)65533!==r[243][e].charCodeAt(0)&&(n[r[243][e]]=62208+e,t[62208+e]=r[243][e]);for(r[244]="����������������������������������������������������������������嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩����������������������������������禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿�".split(""),e=0;e!=r[244].length;++e)65533!==r[244][e].charCodeAt(0)&&(n[r[244][e]]=62464+e,t[62464+e]=r[244][e]);for(r[245]="����������������������������������������������������������������鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛����������������������������������鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥�".split(""),e=0;e!=r[245].length;++e)65533!==r[245][e].charCodeAt(0)&&(n[r[245][e]]=62720+e,t[62720+e]=r[245][e]);for(r[246]="����������������������������������������������������������������蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺����������������������������������騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚�".split(""),e=0;e!=r[246].length;++e)65533!==r[246][e].charCodeAt(0)&&(n[r[246][e]]=62976+e,t[62976+e]=r[246][e]);for(r[247]="����������������������������������������������������������������糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊����������������������������������驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾�".split(""),e=0;e!=r[247].length;++e)65533!==r[247][e].charCodeAt(0)&&(n[r[247][e]]=63232+e,t[63232+e]=r[247][e]);for(r[248]="����������������������������������������������������������������讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏����������������������������������齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚�".split(""),e=0;e!=r[248].length;++e)65533!==r[248][e].charCodeAt(0)&&(n[r[248][e]]=63488+e,t[63488+e]=r[248][e]);for(r[249]="����������������������������������������������������������������纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊����������������������������������龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓�".split(""),e=0;e!=r[249].length;++e)65533!==r[249][e].charCodeAt(0)&&(n[r[249][e]]=63744+e,t[63744+e]=r[249][e]);return{enc:n,dec:t}}(),n[1250]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1251]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1252]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1253]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1254]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1255]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ�ֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1256]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1257]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1258]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[1e4]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[10006]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[10007]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[10008]=function(){var e,t=[],n={},r=[];for(r[0]="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€���������������������������������������������������������������������������������������".split(""),e=0;e!=r[0].length;++e)65533!==r[0][e].charCodeAt(0)&&(n[r[0][e]]=0+e,t[0+e]=r[0][e]);for(r[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。・ˉˇ¨〃々―~�…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),e=0;e!=r[161].length;++e)65533!==r[161][e].charCodeAt(0)&&(n[r[161][e]]=41216+e,t[41216+e]=r[161][e]);for(r[162]="���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),e=0;e!=r[162].length;++e)65533!==r[162][e].charCodeAt(0)&&(n[r[162][e]]=41472+e,t[41472+e]=r[162][e]);for(r[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=r[163].length;++e)65533!==r[163][e].charCodeAt(0)&&(n[r[163][e]]=41728+e,t[41728+e]=r[163][e]);for(r[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=r[164].length;++e)65533!==r[164][e].charCodeAt(0)&&(n[r[164][e]]=41984+e,t[41984+e]=r[164][e]);for(r[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=r[165].length;++e)65533!==r[165][e].charCodeAt(0)&&(n[r[165][e]]=42240+e,t[42240+e]=r[165][e]);for(r[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω���������������������������������������".split(""),e=0;e!=r[166].length;++e)65533!==r[166][e].charCodeAt(0)&&(n[r[166][e]]=42496+e,t[42496+e]=r[166][e]);for(r[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=r[167].length;++e)65533!==r[167][e].charCodeAt(0)&&(n[r[167][e]]=42752+e,t[42752+e]=r[167][e]);for(r[168]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüê����������ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),e=0;e!=r[168].length;++e)65533!==r[168][e].charCodeAt(0)&&(n[r[168][e]]=43008+e,t[43008+e]=r[168][e]);for(r[169]="��������������������������������������������������������������������������������������������������������������������������������������������������������������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),e=0;e!=r[169].length;++e)65533!==r[169][e].charCodeAt(0)&&(n[r[169][e]]=43264+e,t[43264+e]=r[169][e]);for(r[176]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),e=0;e!=r[176].length;++e)65533!==r[176][e].charCodeAt(0)&&(n[r[176][e]]=45056+e,t[45056+e]=r[176][e]);for(r[177]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),e=0;e!=r[177].length;++e)65533!==r[177][e].charCodeAt(0)&&(n[r[177][e]]=45312+e,t[45312+e]=r[177][e]);for(r[178]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),e=0;e!=r[178].length;++e)65533!==r[178][e].charCodeAt(0)&&(n[r[178][e]]=45568+e,t[45568+e]=r[178][e]);for(r[179]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),e=0;e!=r[179].length;++e)65533!==r[179][e].charCodeAt(0)&&(n[r[179][e]]=45824+e,t[45824+e]=r[179][e]);for(r[180]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),e=0;e!=r[180].length;++e)65533!==r[180][e].charCodeAt(0)&&(n[r[180][e]]=46080+e,t[46080+e]=r[180][e]);for(r[181]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),e=0;e!=r[181].length;++e)65533!==r[181][e].charCodeAt(0)&&(n[r[181][e]]=46336+e,t[46336+e]=r[181][e]);for(r[182]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),e=0;e!=r[182].length;++e)65533!==r[182][e].charCodeAt(0)&&(n[r[182][e]]=46592+e,t[46592+e]=r[182][e]);for(r[183]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),e=0;e!=r[183].length;++e)65533!==r[183][e].charCodeAt(0)&&(n[r[183][e]]=46848+e,t[46848+e]=r[183][e]);for(r[184]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),e=0;e!=r[184].length;++e)65533!==r[184][e].charCodeAt(0)&&(n[r[184][e]]=47104+e,t[47104+e]=r[184][e]);for(r[185]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),e=0;e!=r[185].length;++e)65533!==r[185][e].charCodeAt(0)&&(n[r[185][e]]=47360+e,t[47360+e]=r[185][e]);for(r[186]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),e=0;e!=r[186].length;++e)65533!==r[186][e].charCodeAt(0)&&(n[r[186][e]]=47616+e,t[47616+e]=r[186][e]);for(r[187]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),e=0;e!=r[187].length;++e)65533!==r[187][e].charCodeAt(0)&&(n[r[187][e]]=47872+e,t[47872+e]=r[187][e]);for(r[188]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),e=0;e!=r[188].length;++e)65533!==r[188][e].charCodeAt(0)&&(n[r[188][e]]=48128+e,t[48128+e]=r[188][e]);for(r[189]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),e=0;e!=r[189].length;++e)65533!==r[189][e].charCodeAt(0)&&(n[r[189][e]]=48384+e,t[48384+e]=r[189][e]);for(r[190]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),e=0;e!=r[190].length;++e)65533!==r[190][e].charCodeAt(0)&&(n[r[190][e]]=48640+e,t[48640+e]=r[190][e]);for(r[191]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),e=0;e!=r[191].length;++e)65533!==r[191][e].charCodeAt(0)&&(n[r[191][e]]=48896+e,t[48896+e]=r[191][e]);for(r[192]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),e=0;e!=r[192].length;++e)65533!==r[192][e].charCodeAt(0)&&(n[r[192][e]]=49152+e,t[49152+e]=r[192][e]);for(r[193]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),e=0;e!=r[193].length;++e)65533!==r[193][e].charCodeAt(0)&&(n[r[193][e]]=49408+e,t[49408+e]=r[193][e]);for(r[194]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),e=0;e!=r[194].length;++e)65533!==r[194][e].charCodeAt(0)&&(n[r[194][e]]=49664+e,t[49664+e]=r[194][e]);for(r[195]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),e=0;e!=r[195].length;++e)65533!==r[195][e].charCodeAt(0)&&(n[r[195][e]]=49920+e,t[49920+e]=r[195][e]);for(r[196]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),e=0;e!=r[196].length;++e)65533!==r[196][e].charCodeAt(0)&&(n[r[196][e]]=50176+e,t[50176+e]=r[196][e]);for(r[197]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),e=0;e!=r[197].length;++e)65533!==r[197][e].charCodeAt(0)&&(n[r[197][e]]=50432+e,t[50432+e]=r[197][e]);for(r[198]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),e=0;e!=r[198].length;++e)65533!==r[198][e].charCodeAt(0)&&(n[r[198][e]]=50688+e,t[50688+e]=r[198][e]);for(r[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),e=0;e!=r[199].length;++e)65533!==r[199][e].charCodeAt(0)&&(n[r[199][e]]=50944+e,t[50944+e]=r[199][e]);for(r[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),e=0;e!=r[200].length;++e)65533!==r[200][e].charCodeAt(0)&&(n[r[200][e]]=51200+e,t[51200+e]=r[200][e]);for(r[201]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),e=0;e!=r[201].length;++e)65533!==r[201][e].charCodeAt(0)&&(n[r[201][e]]=51456+e,t[51456+e]=r[201][e]);for(r[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),e=0;e!=r[202].length;++e)65533!==r[202][e].charCodeAt(0)&&(n[r[202][e]]=51712+e,t[51712+e]=r[202][e]);for(r[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),e=0;e!=r[203].length;++e)65533!==r[203][e].charCodeAt(0)&&(n[r[203][e]]=51968+e,t[51968+e]=r[203][e]);for(r[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),e=0;e!=r[204].length;++e)65533!==r[204][e].charCodeAt(0)&&(n[r[204][e]]=52224+e,t[52224+e]=r[204][e]);for(r[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),e=0;e!=r[205].length;++e)65533!==r[205][e].charCodeAt(0)&&(n[r[205][e]]=52480+e,t[52480+e]=r[205][e]);for(r[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),e=0;e!=r[206].length;++e)65533!==r[206][e].charCodeAt(0)&&(n[r[206][e]]=52736+e,t[52736+e]=r[206][e]);for(r[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),e=0;e!=r[207].length;++e)65533!==r[207][e].charCodeAt(0)&&(n[r[207][e]]=52992+e,t[52992+e]=r[207][e]);for(r[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),e=0;e!=r[208].length;++e)65533!==r[208][e].charCodeAt(0)&&(n[r[208][e]]=53248+e,t[53248+e]=r[208][e]);for(r[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),e=0;e!=r[209].length;++e)65533!==r[209][e].charCodeAt(0)&&(n[r[209][e]]=53504+e,t[53504+e]=r[209][e]);for(r[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),e=0;e!=r[210].length;++e)65533!==r[210][e].charCodeAt(0)&&(n[r[210][e]]=53760+e,t[53760+e]=r[210][e]);for(r[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),e=0;e!=r[211].length;++e)65533!==r[211][e].charCodeAt(0)&&(n[r[211][e]]=54016+e,t[54016+e]=r[211][e]);for(r[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),e=0;e!=r[212].length;++e)65533!==r[212][e].charCodeAt(0)&&(n[r[212][e]]=54272+e,t[54272+e]=r[212][e]);for(r[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),e=0;e!=r[213].length;++e)65533!==r[213][e].charCodeAt(0)&&(n[r[213][e]]=54528+e,t[54528+e]=r[213][e]);for(r[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),e=0;e!=r[214].length;++e)65533!==r[214][e].charCodeAt(0)&&(n[r[214][e]]=54784+e,t[54784+e]=r[214][e]);for(r[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),e=0;e!=r[215].length;++e)65533!==r[215][e].charCodeAt(0)&&(n[r[215][e]]=55040+e,t[55040+e]=r[215][e]);for(r[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),e=0;e!=r[216].length;++e)65533!==r[216][e].charCodeAt(0)&&(n[r[216][e]]=55296+e,t[55296+e]=r[216][e]);for(r[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),e=0;e!=r[217].length;++e)65533!==r[217][e].charCodeAt(0)&&(n[r[217][e]]=55552+e,t[55552+e]=r[217][e]);for(r[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),e=0;e!=r[218].length;++e)65533!==r[218][e].charCodeAt(0)&&(n[r[218][e]]=55808+e,t[55808+e]=r[218][e]);for(r[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),e=0;e!=r[219].length;++e)65533!==r[219][e].charCodeAt(0)&&(n[r[219][e]]=56064+e,t[56064+e]=r[219][e]);for(r[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),e=0;e!=r[220].length;++e)65533!==r[220][e].charCodeAt(0)&&(n[r[220][e]]=56320+e,t[56320+e]=r[220][e]);for(r[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),e=0;e!=r[221].length;++e)65533!==r[221][e].charCodeAt(0)&&(n[r[221][e]]=56576+e,t[56576+e]=r[221][e]);for(r[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),e=0;e!=r[222].length;++e)65533!==r[222][e].charCodeAt(0)&&(n[r[222][e]]=56832+e,t[56832+e]=r[222][e]);for(r[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),e=0;e!=r[223].length;++e)65533!==r[223][e].charCodeAt(0)&&(n[r[223][e]]=57088+e,t[57088+e]=r[223][e]);for(r[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),e=0;e!=r[224].length;++e)65533!==r[224][e].charCodeAt(0)&&(n[r[224][e]]=57344+e,t[57344+e]=r[224][e]);for(r[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),e=0;e!=r[225].length;++e)65533!==r[225][e].charCodeAt(0)&&(n[r[225][e]]=57600+e,t[57600+e]=r[225][e]);for(r[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),e=0;e!=r[226].length;++e)65533!==r[226][e].charCodeAt(0)&&(n[r[226][e]]=57856+e,t[57856+e]=r[226][e]);for(r[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),e=0;e!=r[227].length;++e)65533!==r[227][e].charCodeAt(0)&&(n[r[227][e]]=58112+e,t[58112+e]=r[227][e]);for(r[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),e=0;e!=r[228].length;++e)65533!==r[228][e].charCodeAt(0)&&(n[r[228][e]]=58368+e,t[58368+e]=r[228][e]);for(r[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),e=0;e!=r[229].length;++e)65533!==r[229][e].charCodeAt(0)&&(n[r[229][e]]=58624+e,t[58624+e]=r[229][e]);for(r[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),e=0;e!=r[230].length;++e)65533!==r[230][e].charCodeAt(0)&&(n[r[230][e]]=58880+e,t[58880+e]=r[230][e]);for(r[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),e=0;e!=r[231].length;++e)65533!==r[231][e].charCodeAt(0)&&(n[r[231][e]]=59136+e,t[59136+e]=r[231][e]);for(r[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),e=0;e!=r[232].length;++e)65533!==r[232][e].charCodeAt(0)&&(n[r[232][e]]=59392+e,t[59392+e]=r[232][e]);for(r[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),e=0;e!=r[233].length;++e)65533!==r[233][e].charCodeAt(0)&&(n[r[233][e]]=59648+e,t[59648+e]=r[233][e]);for(r[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),e=0;e!=r[234].length;++e)65533!==r[234][e].charCodeAt(0)&&(n[r[234][e]]=59904+e,t[59904+e]=r[234][e]);for(r[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),e=0;e!=r[235].length;++e)65533!==r[235][e].charCodeAt(0)&&(n[r[235][e]]=60160+e,t[60160+e]=r[235][e]);for(r[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),e=0;e!=r[236].length;++e)65533!==r[236][e].charCodeAt(0)&&(n[r[236][e]]=60416+e,t[60416+e]=r[236][e]);for(r[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),e=0;e!=r[237].length;++e)65533!==r[237][e].charCodeAt(0)&&(n[r[237][e]]=60672+e,t[60672+e]=r[237][e]);for(r[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),e=0;e!=r[238].length;++e)65533!==r[238][e].charCodeAt(0)&&(n[r[238][e]]=60928+e,t[60928+e]=r[238][e]);for(r[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),e=0;e!=r[239].length;++e)65533!==r[239][e].charCodeAt(0)&&(n[r[239][e]]=61184+e,t[61184+e]=r[239][e]);for(r[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),e=0;e!=r[240].length;++e)65533!==r[240][e].charCodeAt(0)&&(n[r[240][e]]=61440+e,t[61440+e]=r[240][e]);for(r[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),e=0;e!=r[241].length;++e)65533!==r[241][e].charCodeAt(0)&&(n[r[241][e]]=61696+e,t[61696+e]=r[241][e]);for(r[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),e=0;e!=r[242].length;++e)65533!==r[242][e].charCodeAt(0)&&(n[r[242][e]]=61952+e,t[61952+e]=r[242][e]);for(r[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),e=0;e!=r[243].length;++e)65533!==r[243][e].charCodeAt(0)&&(n[r[243][e]]=62208+e,t[62208+e]=r[243][e]);for(r[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),e=0;e!=r[244].length;++e)65533!==r[244][e].charCodeAt(0)&&(n[r[244][e]]=62464+e,t[62464+e]=r[244][e]);for(r[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),e=0;e!=r[245].length;++e)65533!==r[245][e].charCodeAt(0)&&(n[r[245][e]]=62720+e,t[62720+e]=r[245][e]);for(r[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),e=0;e!=r[246].length;++e)65533!==r[246][e].charCodeAt(0)&&(n[r[246][e]]=62976+e,t[62976+e]=r[246][e]);for(r[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),e=0;e!=r[247].length;++e)65533!==r[247][e].charCodeAt(0)&&(n[r[247][e]]=63232+e,t[63232+e]=r[247][e]);return{enc:n,dec:t}}(),n[10029]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[10079]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),n[10081]=function(){for(var e="\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ",t=[],n={},r=0;r!=e.length;++r)65533!==e.charCodeAt(r)&&(n[e.charAt(r)]=r),t[r]=e.charAt(r);return{enc:n,dec:t}}(),e.exports&&"undefined"===typeof DO_NOT_EXPORT_CODEPAGE&&(e.exports=n),function(t,r){"use strict";if("undefined"===typeof n){var i=n;e.exports&&"undefined"===typeof DO_NOT_EXPORT_CODEPAGE?e.exports=r(i):t.cptable=r(i)}else n=r(n)}(this,(function(e){"use strict";var n={1200:"utf16le",1201:"utf16be",12e3:"utf32le",12001:"utf32be",16969:"utf64le",20127:"ascii",65e3:"utf7",65001:"utf8"},r=[874,1250,1251,1252,1253,1254,1255,1256,1e4],i=[932,936,949,950],o=[65001],a={},s={},l={},c={},u=function(e){return String.fromCharCode(e)},d=function(e){return e.charCodeAt(0)},f="undefined"!==typeof t,h=function(){};if(f){var p=!t.from;if(!p)try{t.from("foo","utf8")}catch(N){p=!0}h=p?function(e,n){return n?new t(e,n):new t(e)}:t.from.bind(t),t.allocUnsafe||(t.allocUnsafe=function(e){return new t(e)});var m=1024,g=t.allocUnsafe(m),v=function(e){for(var n=t.allocUnsafe(65536),r=0;r<65536;++r)n[r]=0;for(var i=Object.keys(e),o=i.length,a=0,s=i[a];a<o;++a)(s=i[a])&&(n[s.charCodeAt(0)]=e[s]);return n},y=function(n){var r=v(e[n].enc);return function(e,n){var i,o=e.length,a=0,s=0,l=0,c=0;if("string"===typeof e)for(i=t.allocUnsafe(o),a=0;a<o;++a)i[a]=r[e.charCodeAt(a)];else if(t.isBuffer(e)){for(i=t.allocUnsafe(2*o),s=0,a=0;a<o;++a)l=e[a],l<128?i[s++]=r[l]:l<224?(i[s++]=r[((31&l)<<6)+(63&e[a+1])],++a):l<240?(i[s++]=r[((15&l)<<12)+((63&e[a+1])<<6)+(63&e[a+2])],a+=2):(c=((7&l)<<18)+((63&e[a+1])<<12)+((63&e[a+2])<<6)+(63&e[a+3]),a+=3,c<65536?i[s++]=r[c]:(c-=65536,i[s++]=r[55296+(c>>10&1023)],i[s++]=r[56320+(1023&c)]));i=i.slice(0,s)}else for(i=t.allocUnsafe(o),a=0;a<o;++a)i[a]=r[e[a].charCodeAt(0)];return n&&"buf"!==n?"arr"!==n?i.toString("binary"):[].slice.call(i):i}},b=function(n){var r=e[n].dec,i=t.allocUnsafe(131072),o=0,a="";for(o=0;o<r.length;++o)if(a=r[o]){var s=a.charCodeAt(0);i[2*o]=255&s,i[2*o+1]=s>>8}return function(e){var n=e.length,r=0,o=0;if(2*n>m&&(m=2*n,g=t.allocUnsafe(m)),t.isBuffer(e))for(r=0;r<n;r++)o=2*e[r],g[2*r]=i[o],g[2*r+1]=i[o+1];else if("string"===typeof e)for(r=0;r<n;r++)o=2*e.charCodeAt(r),g[2*r]=i[o],g[2*r+1]=i[o+1];else for(r=0;r<n;r++)o=2*e[r],g[2*r]=i[o],g[2*r+1]=i[o+1];return g.slice(0,2*n).toString("ucs2")}},_=function(n){for(var r=e[n].enc,i=t.allocUnsafe(131072),o=0;o<131072;++o)i[o]=0;for(var a=Object.keys(r),s=0,l=a[s];s<a.length;++s)if(l=a[s]){var c=l.charCodeAt(0);i[2*c]=255&r[l],i[2*c+1]=r[l]>>8}return function(e,n){var r=e.length,o=t.allocUnsafe(2*r),a=0,s=0,l=0,c=0,u=0;if("string"===typeof e){for(a=c=0;a<r;++a)s=2*e.charCodeAt(a),o[c++]=i[s+1]||i[s],i[s+1]>0&&(o[c++]=i[s]);o=o.slice(0,c)}else if(t.isBuffer(e)){for(a=c=0;a<r;++a)u=e[a],u<128?s=u:u<224?(s=((31&u)<<6)+(63&e[a+1]),++a):u<240?(s=((15&u)<<12)+((63&e[a+1])<<6)+(63&e[a+2]),a+=2):(s=((7&u)<<18)+((63&e[a+1])<<12)+((63&e[a+2])<<6)+(63&e[a+3]),a+=3),s<65536?(s*=2,o[c++]=i[s+1]||i[s],i[s+1]>0&&(o[c++]=i[s])):(l=s-65536,s=2*(55296+(l>>10&1023)),o[c++]=i[s+1]||i[s],i[s+1]>0&&(o[c++]=i[s]),s=2*(56320+(1023&l)),o[c++]=i[s+1]||i[s],i[s+1]>0&&(o[c++]=i[s]));o=o.slice(0,c)}else for(a=c=0;a<r;a++)s=2*e[a].charCodeAt(0),o[c++]=i[s+1]||i[s],i[s+1]>0&&(o[c++]=i[s]);return n&&"buf"!==n?"arr"!==n?o.toString("binary"):[].slice.call(o):o}},w=function(n){var r,i=e[n].dec,o=t.allocUnsafe(131072),a=0,s=0,l=0,c=0;for(c=0;c<65536;++c)o[2*c]=255,o[2*c+1]=253;for(a=0;a<i.length;++a)(r=i[a])&&(s=r.charCodeAt(0),l=2*a,o[l]=255&s,o[l+1]=s>>8);return function(e){var n=e.length,r=t.allocUnsafe(2*n),i=0,a=0,s=0;if(t.isBuffer(e))for(i=0;i<n;i++)a=2*e[i],255===o[a]&&253===o[a+1]&&(a=2*((e[i]<<8)+e[i+1]),++i),r[s++]=o[a],r[s++]=o[a+1];else if("string"===typeof e)for(i=0;i<n;i++)a=2*e.charCodeAt(i),255===o[a]&&253===o[a+1]&&(a=2*((e.charCodeAt(i)<<8)+e.charCodeAt(i+1)),++i),r[s++]=o[a],r[s++]=o[a+1];else for(i=0;i<n;i++)a=2*e[i],255===o[a]&&253===o[a+1]&&(a=2*((e[i]<<8)+e[i+1]),++i),r[s++]=o[a],r[s++]=o[a+1];return r.slice(0,s).toString("ucs2")}};a[65001]=function e(n){if("string"===typeof n)return e(n.split("").map(d));var r=n.length,i=0,o=0;4*r>m&&(m=4*r,g=t.allocUnsafe(m));var a=0;r>=3&&239==n[0]&&187==n[1]&&191==n[2]&&(a=3);for(var s=1,l=0,c=0;a<r;a+=s)s=1,c=n[a],c<128?i=c:c<224?(i=64*(31&c)+(63&n[a+1]),s=2):c<240?(i=((15&c)<<12)+64*(63&n[a+1])+(63&n[a+2]),s=3):(i=262144*(7&c)+((63&n[a+1])<<12)+64*(63&n[a+2])+(63&n[a+3]),s=4),i<65536?(g[l++]=255&i,g[l++]=i>>8):(i-=65536,o=55296+(i>>10&1023),i=56320+(1023&i),g[l++]=255&o,g[l++]=o>>>8,g[l++]=255&i,g[l++]=i>>>8&255);return g.slice(0,l).toString("ucs2")},s[65001]=function(e,n){if(f&&t.isBuffer(e))return n&&"buf"!==n?"arr"!==n?e.toString("binary"):[].slice.call(e):e;var r=e.length,i=0,o=0,a=0,s="string"===typeof e;4*r>m&&(m=4*r,g=t.allocUnsafe(m));for(var l=0;l<r;++l)i=s?e.charCodeAt(l):e[l].charCodeAt(0),i<=127?g[a++]=i:i<=2047?(g[a++]=192+(i>>6),g[a++]=128+(63&i)):i>=55296&&i<=57343?(i-=55296,++l,o=(s?e.charCodeAt(l):e[l].charCodeAt(0))-56320+(i<<10),g[a++]=240+(o>>>18&7),g[a++]=144+(o>>>12&63),g[a++]=128+(o>>>6&63),g[a++]=128+(63&o)):(g[a++]=224+(i>>12),g[a++]=128+(i>>6&63),g[a++]=128+(63&i));return n&&"buf"!==n?"arr"!==n?g.slice(0,a).toString("binary"):[].slice.call(g,0,a):g.slice(0,a)}}var x=function(){if(f){if(l[r[0]])return;var t=0,n=0;for(t=0;t<r.length;++t)n=r[t],e[n]&&(l[n]=b(n),c[n]=y(n));for(t=0;t<i.length;++t)n=i[t],e[n]&&(l[n]=w(n),c[n]=_(n));for(t=0;t<o.length;++t)n=o[t],a[n]&&(l[n]=a[n]),s[n]&&(c[n]=s[n])}},S=function(e,t){return""},C=function(e){delete l[e],delete c[e]},E=function(){if(f){if(!l[r[0]])return;r.forEach(C),i.forEach(C),o.forEach(C)}I=S,A=0},k={encache:x,decache:E,sbcs:r,dbcs:i};x();var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'(),-./:?",I=S,A=0,R=function r(i,o,a){if(i===A&&I)return I(o,a);if(c[i])return I=c[A=i],I(o,a);f&&t.isBuffer(o)&&(o=o.toString("utf8"));var s,l=o.length,d=f?t.allocUnsafe(4*l):[],p=0,m=0,g=0,v=0,y=e[i],b="",_="string"===typeof o;if(y&&(s=y.enc))for(m=0;m<l;++m,++g)p=s[_?o.charAt(m):o[m]],p>255?(d[g]=p>>8,d[++g]=255&p):d[g]=255&p;else{if(!(b=n[i]))throw new Error("Unrecognized CP: "+i);switch(b){case"utf8":if(f&&_){d=h(o,b),g=d.length;break}for(m=0;m<l;++m,++g)p=_?o.charCodeAt(m):o[m].charCodeAt(0),p<=127?d[g]=p:p<=2047?(d[g]=192+(p>>6),d[++g]=128+(63&p)):p>=55296&&p<=57343?(p-=55296,v=(_?o.charCodeAt(++m):o[++m].charCodeAt(0))-56320+(p<<10),d[g]=240+(v>>>18&7),d[++g]=144+(v>>>12&63),d[++g]=128+(v>>>6&63),d[++g]=128+(63&v)):(d[g]=224+(p>>12),d[++g]=128+(p>>6&63),d[++g]=128+(63&p));break;case"ascii":if(f&&"string"===typeof o){d=h(o,b),g=d.length;break}for(m=0;m<l;++m,++g){if(p=_?o.charCodeAt(m):o[m].charCodeAt(0),!(p<=127))throw new Error("bad ascii "+p);d[g]=p}break;case"utf16le":if(f&&"string"===typeof o){d=h(o,b),g=d.length;break}for(m=0;m<l;++m)p=_?o.charCodeAt(m):o[m].charCodeAt(0),d[g++]=255&p,d[g++]=p>>8;break;case"utf16be":for(m=0;m<l;++m)p=_?o.charCodeAt(m):o[m].charCodeAt(0),d[g++]=p>>8,d[g++]=255&p;break;case"utf32le":for(m=0;m<l;++m)p=_?o.charCodeAt(m):o[m].charCodeAt(0),p>=55296&&p<=57343&&(p=65536+(p-55296<<10)+(o[++m].charCodeAt(0)-56320)),d[g++]=255&p,p>>=8,d[g++]=255&p,p>>=8,d[g++]=255&p,p>>=8,d[g++]=255&p;break;case"utf32be":for(m=0;m<l;++m)p=_?o.charCodeAt(m):o[m].charCodeAt(0),p>=55296&&p<=57343&&(p=65536+(p-55296<<10)+(o[++m].charCodeAt(0)-56320)),d[g+3]=255&p,p>>=8,d[g+2]=255&p,p>>=8,d[g+1]=255&p,p>>=8,d[g]=255&p,g+=4;break;case"utf7":for(m=0;m<l;m++){var w=_?o.charAt(m):o[m].charAt(0);if("+"!==w)if(T.indexOf(w)>-1)d[g++]=w.charCodeAt(0);else{var x=r(1201,w);d[g++]=43,d[g++]=O.charCodeAt(x[0]>>2),d[g++]=O.charCodeAt(((3&x[0])<<4)+((x[1]||0)>>4)),d[g++]=O.charCodeAt(((15&x[1])<<2)+((x[2]||0)>>6)),d[g++]=45}else d[g++]=43,d[g++]=45}break;default:throw new Error("Unsupported magic: "+i+" "+n[i])}}return d=d.slice(0,g),f?a&&"buf"!==a?"arr"!==a?d.toString("binary"):[].slice.call(d):d:"str"==a?d.map(u).join(""):d},P=function r(i,o){var a;if(a=l[i])return a(o);if("string"===typeof o)return r(i,o.split("").map(d));var s,c=o.length,u=new Array(c),h="",p=0,m=0,g=1,v=0,y=0,b=e[i],_="";if(b&&(s=b.dec))for(m=0;m<c;m+=g){if(g=2,h=s[(o[m]<<8)+o[m+1]],h||(g=1,h=s[o[m]]),!h)throw new Error("Unrecognized code: "+o[m]+" "+o[m+g-1]+" "+m+" "+g+" "+s[o[m]]);u[v++]=h}else{if(!(_=n[i]))throw new Error("Unrecognized CP: "+i);switch(_){case"utf8":for(c>=3&&239==o[0]&&187==o[1]&&191==o[2]&&(m=3);m<c;m+=g)g=1,o[m]<128?p=o[m]:o[m]<224?(p=64*(31&o[m])+(63&o[m+1]),g=2):o[m]<240?(p=((15&o[m])<<12)+64*(63&o[m+1])+(63&o[m+2]),g=3):(p=262144*(7&o[m])+((63&o[m+1])<<12)+64*(63&o[m+2])+(63&o[m+3]),g=4),p<65536||(p-=65536,y=55296+(p>>10&1023),p=56320+(1023&p),u[v++]=String.fromCharCode(y)),u[v++]=String.fromCharCode(p);break;case"ascii":if(f&&t.isBuffer(o))return o.toString(_);for(m=0;m<c;m++)u[m]=String.fromCharCode(o[m]);v=c;break;case"utf16le":if(c>=2&&255==o[0]&&254==o[1]&&(m=2),f&&t.isBuffer(o))return o.toString(_);for(g=2;m+1<c;m+=g)u[v++]=String.fromCharCode((o[m+1]<<8)+o[m]);break;case"utf16be":for(c>=2&&254==o[0]&&255==o[1]&&(m=2),g=2;m+1<c;m+=g)u[v++]=String.fromCharCode((o[m]<<8)+o[m+1]);break;case"utf32le":for(c>=4&&255==o[0]&&254==o[1]&&0===o[2]&&0===o[3]&&(m=4),g=4;m<c;m+=g)p=(o[m+3]<<24)+(o[m+2]<<16)+(o[m+1]<<8)+o[m],p>65535?(p-=65536,u[v++]=String.fromCharCode(55296+(p>>10&1023)),u[v++]=String.fromCharCode(56320+(1023&p))):u[v++]=String.fromCharCode(p);break;case"utf32be":for(c>=4&&255==o[3]&&254==o[2]&&0===o[1]&&0===o[0]&&(m=4),g=4;m<c;m+=g)p=(o[m]<<24)+(o[m+1]<<16)+(o[m+2]<<8)+o[m+3],p>65535?(p-=65536,u[v++]=String.fromCharCode(55296+(p>>10&1023)),u[v++]=String.fromCharCode(56320+(1023&p))):u[v++]=String.fromCharCode(p);break;case"utf7":for(c>=4&&43==o[0]&&47==o[1]&&118==o[2]&&(c>=5&&56==o[3]&&45==o[4]?m=5:56!=o[3]&&57!=o[3]&&43!=o[3]&&47!=o[3]||(m=4));m<c;m+=g)if(43===o[m])if(g=1,45!==o[m+1]){while(String.fromCharCode(o[m+g]).match(/[A-Za-z0-9+\/]/))g++;var w=0;45===o[m+g]&&(++g,w=1);for(var x=[],S="",C=0,E=0,k=0,T=0,I=0,A=0,R=0,P=1;P<g-w;){if(T=O.indexOf(String.fromCharCode(o[m+P++])),I=O.indexOf(String.fromCharCode(o[m+P++])),C=T<<2|I>>4,x.push(C),A=O.indexOf(String.fromCharCode(o[m+P++])),-1===A)break;if(E=(15&I)<<4|A>>2,x.push(E),R=O.indexOf(String.fromCharCode(o[m+P++])),-1===R)break;k=(3&A)<<6|R,R<64&&x.push(k)}for(S=r(1201,x),P=0;P<S.length;++P)u[v++]=S.charAt(P)}else g=2,u[v++]="+";else g=1,u[v++]=String.fromCharCode(o[m]);break;default:throw new Error("Unsupported magic: "+i+" "+n[i])}}return u.slice(0,v).join("")},M=function(t){return!(!e[t]&&!n[t])};return e.utils={decode:P,encode:R,hascp:M,magic:n,cache:k},e}))}).call(this,n("b639").Buffer)},2285:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:"数据规则/按钮权限配置",width:"365",closable:!1,visible:e.visible},on:{close:e.onClose}},[n("a-tabs",{attrs:{defaultActiveKey:"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"数据规则"}},[e.dataruleList.length>0?n("a-checkbox-group",{model:{value:e.dataruleChecked,callback:function(t){e.dataruleChecked=t},expression:"dataruleChecked"}},[n("a-row",[e._l(e.dataruleList,(function(t,r){return n("a-col",{key:"dr"+r,attrs:{span:24}},[n("a-checkbox",{attrs:{value:t.id}},[e._v(e._s(t.ruleName))])],1)})),n("a-col",{attrs:{span:24}},[n("div",{staticStyle:{width:"100%","margin-top":"15px"}},[n("a-button",{attrs:{type:"primary",size:"small",icon:"save"},on:{click:e.saveDataruleForRole}},[e._v("点击保存")])],1)])],2)],1):n("div",[n("h3",[e._v("无配置信息!")])])],1)],1)],1)},i=[],o=(n("28a5"),n("290c")),a=n("da05"),s=n("0fea"),l={name:"RoleDataruleModal",components:{ACol:a["b"],ARow:o["a"]},data:function(){return{functionId:"",roleId:"",visible:!1,tabList:[{key:"1",tab:"数据规则"},{key:"2",tab:"按钮权限"}],activeTabKey:"1",url:{datarule:"/sys/role/datarule"},dataruleList:[],dataruleChecked:[]}},methods:{loadData:function(){var e=this;Object(s["d"])("".concat(this.url.datarule,"/").concat(this.functionId,"/").concat(this.roleId)).then((function(t){if(console.log(t),t.success){e.dataruleList=t.result.datarule;var n=t.result.drChecked;n&&(e.dataruleChecked=n.split(","))}}))},saveDataruleForRole:function(){var e=this;this.dataruleChecked&&0!=this.dataruleChecked.length||this.$message.warning("请注意,现未勾选任何数据权限!");var t={permissionId:this.functionId,roleId:this.roleId,dataRuleIds:this.dataruleChecked.join(",")};console.log("保存数据权限",t),Object(s["j"])(this.url.datarule,t).then((function(t){t.success?e.$message.success(t.message):e.$message.error(t.message)}))},show:function(e,t){this.onReset(),this.functionId=e,this.roleId=t,this.visible=!0,this.loadData()},onClose:function(){this.visible=!1,this.onReset()},onTabChange:function(e){this.activeTabKey=e},onReset:function(){this.functionId="",this.roleId="",this.dataruleList=[],this.dataruleChecked=[]}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"5fa38486",null);t["default"]=d.exports},"2286b":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"zibiaomodal1"},on:{ok:e.handleOk,cancel:e.close}},[n("div",{staticStyle:{height:"170px"}},[n("a-form",{attrs:{form:e.form}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"字段名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入字段名称"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["zd",e.validatorRules.zd],expression:"[ 'zd', validatorRules.zd]"}],attrs:{placeholder:"请输入字段"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"是否必填",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["sfbt",e.validatorRules.sfbt],expression:"[ 'sfbt', validatorRules.sfbt]"}],attrs:{type:"list","trigger-change":!0,dictCode:"sfbt_pz",placeholder:"请选择是否必填"}})],1)],1),n("div",{staticStyle:{display:"none"}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"smid",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smid",e.validatorRules.smid],expression:"[ 'smid', validatorRules.smid]"}],attrs:{placeholder:"smid"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"bid",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["bid",e.validatorRules.bid],expression:"[ 'bid', validatorRules.bid]"}],attrs:{placeholder:"bid"}})],1)],1)],1)],1)],1)])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l={name:"",data:function(){return{form:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},confirmLoading:!1,validatorRules:{name:{rules:[{required:!0,message:"请输入字段名称"}]},zd:{rules:[{required:!0,message:"请输入字段"}]},sfbt:{rules:[{required:!0,message:"请选择是否必填"}]}},url:{add:"/templateEditSonCongDetail/add",edit:"/templateEditSonCongDetail/edit"},showDefaultParams:[],bid:""}},created:function(){},methods:{fuzhi:function(){this.form.setFieldsValue(s()(this.model,"smid","name","zd","sfbt","bid"))},zhikongtwo:function(){this.form.setFieldsValue({smid:"",name:"",zd:"",sfbt:"",bid:""})},handleOk:function(){var e=this;this.form.validateFields((function(t,n){console.log("表单提交数据",n),n.smid?Object(o["i"])(e.url.edit,n,"put").then((function(t){t.success?(e.$message.success(t.message),e.$emit("loadDatazibiao2",e.bid),e.close()):e.$message.warning(t.message)})):Object(o["i"])(e.url.add,n,"post").then((function(t){t.success?(e.$message.success(t.message),e.$emit("loadDatazibiao2",e.bid),e.close()):e.$message.warning(t.message)}))}))},close:function(){this.visible=!1,this.zhikongtwo()},add:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},{bid:e}),this.$nextTick((function(){t.fuzhi()}))},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.$nextTick((function(){t.fuzhi()}))}}},c=l,u=(n("4623"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},2291:function(e,t,n){"use strict";n("5950")},"22b8":function(e,t,n){},"22c5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)}}])})],1),n("menuModule-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("78e4"),a=n("b65a"),s={name:"MenuModuleList",mixins:[a["a"]],components:{MenuModuleModal:o["default"]},data:function(){return{description:"模块配置管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"菜单名称",align:"center",dataIndex:"name"},{title:"vueUrl",align:"center",dataIndex:"vueUrl"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/menu_module/menuModule/list",delete:"/menu_module/menuModule/delete",deleteBatch:"/menu_module/menuModule/deleteBatch",exportXlsUrl:"menu_module/menuModule/exportXls",importExcelUrl:"menu_module/menuModule/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},l=s,c=(n("9cc8"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"26320631",null);t["default"]=u.exports},"22d6":function(e,t,n){},2335:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"237a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"mengceng"},on:{ok:e.handleOk,cancel:e.handleCancel}},[r("a-spin",{attrs:{spinning:e.confirmLoading}},[r("a-form",{attrs:{form:e.form}},[r("a-row",{attrs:{span:"24"}},["aqsc_xwy_company"!=e.categorytable&&"smoke_device"!=e.categorytable?r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"地区",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("city_child",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{placeholder:"请输入市",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cityCode",e.validatorRules.cityCode],expression:"[ 'cityCode', validatorRules.cityCode]"}],attrs:{placeholder:"请输入市代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",e.validatorRules.district],expression:"[ 'district', validatorRules.district]"}],attrs:{placeholder:"请输入区县",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",e.validatorRules.districtCode],expression:"[ 'districtCode', validatorRules.districtCode]"}],attrs:{placeholder:"请输入区县代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",e.validatorRules.street],expression:"[ 'street', validatorRules.street]"}],attrs:{placeholder:"请输入乡镇街道",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",e.validatorRules.streetCode],expression:"[ 'streetCode', validatorRules.streetCode]"}],attrs:{placeholder:"请输入乡镇街道代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["village",e.validatorRules.village],expression:"[ 'village', validatorRules.village]"}],attrs:{placeholder:"请输入村社区",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["villageCode",e.validatorRules.villageCode],expression:"[ 'villageCode', validatorRules.villageCode]"}],attrs:{placeholder:"请输入村社区代码",hidden:""}})],1)],1):e._e(),"aqsc_xwy_company"==e.categorytable?r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"请选择网格片区",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["wgid",e.validatorRules.bt],expression:"['wgid',validatorRules.bt]"}],attrs:{placeholder:"请选择网格片区"}},e._l(e.wgs,(function(t,n){return r("a-select-option",{attrs:{value:t.id}},[e._v(e._s(t.wgname))])})),1)],1)],1):e._e(),"aqsc_xwy_company"!=e.categorytable&&"smoke_device"!=e.categorytable?r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.bt],expression:"[ 'name', validatorRules.bt]"}],attrs:{placeholder:"请输入名称"}})],1)],1):e._e(),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"经度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["longitude",e.validatorRules.bt],expression:"[ 'longitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入经度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1)],1),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"纬度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["latitude",e.validatorRules.bt],expression:"[ 'latitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入纬度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1)],1),e._l(e.notes,(function(t,n){return r("a-col",{attrs:{span:"24"}},["city"==t.zd||"name"==t.zd||"longitude"==t.zd||"latitude"==t.zd?void 0:["1"==t.sfbt?["1"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0}})],1)]:"0"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请输入"+t.name}})],1)]:"2"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.btint],expression:"[item.zd, validatorRules.btint]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name}})],1)]:"3"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm}})],1)]:e._e()]:["1"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0}})],1)]:"0"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请输入"+t.name}})],1)]:"2"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name}})],1)]:"3"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm}})],1)]:"4"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("Fileup",{ref:"Fileup",refInFor:!0,attrs:{fileList:e.fileList}})],1)]:e._e()]]],2)}))],2)],1),r("BackMap",{ref:"backMap",attrs:{model:e.model,pointKey:e.pointKey},on:{lonlatChanged:function(t){return e.lonlatChanged(t)}}})],1)],1)},i=[],o=(n("7f7f"),n("a481"),n("28a5"),n("0fea")),a=n("88bc"),s=n.n(a),l=n("2dab"),c=n("fe54"),u=n("c14a"),d=n("d9be"),f=n("de10"),h=n("7b16"),p=n("7171"),m=n("98ff"),g={name:"DykeModal",props:{url:"",templatesql:""},components:{JDate:l["default"],JSelectDepart:c["default"],JSelectUserByDep:u["default"],city_child:d["default"],mapChoosePoint:f["default"],JDictSelectTag:h["default"],BackMap:p["default"],Fileup:m["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},notes:[],wgs:[],categorytable:"",qx:"",qxmc:"",showDefaultParams:[],pointKey:"longitudeLatitude",maskClosable:!1,confirmLoading:!1,validatorRules:{city:{rules:[{required:!0,message:"请选择地区"}]},bt:{rules:[{required:!0,message:"请输入必填字段"}]},btint:{rules:[{required:!0,message:"请输入必填字段,必须为数字"}]}},fileList:[]}},mounted:function(){this.getquxian(),this.weiwanshan()},methods:{fuzhi:function(){if(this.form.setFieldsValue(this.model),this.fileList=[],null!=this.model.files)for(var e=JSON.parse(this.model.files),t=0;t<e.length;t++)this.fileList.push(e[t])},handleMapView:function(){this.$refs.backMap.visible=!0,this.$refs.backMap.disableSubmit=!1},handleMapViewFace:function(){this.$refs.backMapArea.visible=!0,this.$refs.backMapArea.disableSubmit=!1},initParams:function(){null==this.model.cityCode?"3303"==this.qx?(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.form.setFieldsValue({city:"温州市",cityCode:"3303"})):(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.showDefaultParams.push(this.qx),this.form.setFieldsValue({city:"温州市",cityCode:"3303",district:this.qxmc,districtCode:this.qx})):(this.showDefaultParams.length=0,this.showDefaultParams.push(this.model.cityCode),this.showDefaultParams.push(this.model.districtCode),this.showDefaultParams.push(this.model.streetCode),this.showDefaultParams.push(this.model.villageCode))},getMsgFormSon:function(e){console.log(e),this.form.setFieldsValue({city:e.city,cityCode:e.cityCode,district:e.district,districtCode:e.districtCode,street:e.street,streetCode:e.streetCode,village:e.village,villageCode:e.villageCode})},checkChanged:function(e){var t=this;this.model[this.checkedKey]=e,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,t.checkedKey))}))},lonlatChanged:function(e){var t=this;this.model[this.pointKey]=e;var n=e.split(",");this.model.longitude=n[0],this.model.latitude=n[1],console.log(this.model.longitude),console.log(this.model.latitude),this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,t.pointKey,"longitude","latitude"))}))},validateTemplateCode:function(e,t,n){if(console.log(e),console.log(t),!t)return n(new Error("请输入电话号码"));var r=/^\d{11}$/;if(console.log(r.test(t)),!r.test(t))return n(new Error("电话号码格式不正确"));n()},dongtaibianji:function(){var e=this;Object(o["i"])(this.url.notes,{},"get").then((function(t){t.success&&(console.log("动态编辑字段add:"+t.result),e.notes=t.result)}))},bianjipd:function(e){},add:function(e){var t=this;this.dongtaibianji(),this.queryWg();var n=this,r=e.smid;null==r?(this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.fuzhi(),t.initParams()})),this.$emit("yincangzuoce")):(e.longitudeLatitude=e.longitude+","+e.latitude,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!1,this.$nextTick((function(){t.fuzhi(),t.initParams(),n.handleOk()})))},edit:function(e){var t=this;this.queryWg(),Object(o["i"])(this.url.notes,{},"get").then((function(n){n.success&&(console.log("动态编辑字段edit:"),t.notes=n.result,t.bianjipd(e),t.form.resetFields(),t.model=Object.assign({},e),t.visible=!0,t.$nextTick((function(){t.fuzhi(),t.initParams()})),t.$emit("yincangzuoce"))}))},close:function(){this.$emit("close"),this.visible=!1,this.$emit("xianshizuoce")},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";if(e.model.smid?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post"),null!=e.model.files&&(r.files=JSON.stringify(t.fileList)),"undefined"!=typeof e.templatesql){var s=e.templatesql.replace("DATATYPE",""),l=s.replace("datatype",""),c=l.replace(/=/g,""),u=c.replace(/ /g,""),d=u.replace(/'/g,"");""!=d&&" "!=d&&(r.datatype=d)}var f=Object.assign(e.model,r);"aqsc_xwy_company"==e.categorytable&&delete f.name,console.log("表单提交数据",f),Object(o["i"])(i,f,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.$emit("handleOktshide"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))},handleCancel:function(){this.close()},popupCallback:function(e){this.fuzhi()},getquxian:function(){var e=this;Object(o["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(",");e.qxmc=r[0],e.qx=r[1]}else e.$message.warning(t.message)}))},weiwanshan:function(){var e=this;Object(o["i"])(this.url.weiwanshan,{},"get").then((function(t){t.success&&e.dataSource3ziduan(t.result.notes)}))},dataSource3ziduan:function(e){this.$emit("dataSource3ziduan",e)},queryWg:function(){var e=this;Object(o["i"])(this.url.wg,{},"get").then((function(t){console.log(t),t.success?(e.wgs=t.result.wgs,"undefined"!=typeof t.result.category.datasetname?e.categorytable=t.result.category.datasetname.split(":")[1]:e.categorytable=""):(e.wgs=[],e.categorytable="")}))}}},v=g,y=n("2877"),b=Object(y["a"])(v,r,i,!1,null,null,null);t["default"]=b.exports},2401:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){},n=function(e){return function(){return e}},r=function(e){return function(t){return!e(t)}},i=n(!1),o=n(!0),a=function(){return s},s=function(){var e=function(e){return e.isNone()},r=function(e){return e()},s=function(e){return e},l={fold:function(e,t){return e()},is:i,isSome:i,isNone:o,getOr:s,getOrThunk:r,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(void 0),or:s,orThunk:r,map:a,each:t,bind:a,exists:i,forall:o,filter:a,equals:e,equals_:e,toArray:function(){return[]},toString:n("none()")};return l}(),l=function(e){var t=n(e),r=function(){return c},a=function(t){return t(e)},c={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:o,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:r,orThunk:r,map:function(t){return l(t(e))},each:function(t){t(e)},bind:a,exists:a,forall:a,filter:function(t){return t(e)?c:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(i,(function(t){return n(e,t)}))}};return c},c=function(e){return null===e||void 0===e?s:l(e)},u={some:l,none:a,from:c},d=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},f=function(e){return function(t){return d(t)===e}},h=function(e){return function(t){return typeof t===e}},p=f("string"),m=f("array"),g=h("boolean"),v=h("function"),y=h("number"),b=Array.prototype.slice,_=Array.prototype.push,w=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},x=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},S=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},C=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],l=t(s);l!==n&&(r.push(i),i=[]),n=l,i.push(s)}return 0!==i.length&&r.push(i),r},E=function(e,t,n){return x(e,(function(e){n=t(n,e)})),n},k=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return u.some(o);if(n(o,r))break}return u.none()},O=function(e,t){return k(e,t,i)},T=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!m(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);_.apply(t,e[n])}return t},I=function(e,t){return T(w(e,t))},A=function(e){var t=b.call(e,0);return t.reverse(),t},R=function(e,t){return t>=0&&t<e.length?u.some(e[t]):u.none()},P=function(e){return R(e,0)},M=function(e){return R(e,e.length-1)},N=function(){return N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},N.apply(this,arguments)};function L(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var D=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},j=function(e,t,r,i){var o=e.isiOS()&&!0===/ipad/i.test(r),a=e.isiOS()&&!o,s=e.isiOS()||e.isAndroid(),l=s||i("(pointer:coarse)"),c=o||!a&&s&&i("(min-device-width:768px)"),u=a||s&&!c,d=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(r),f=!u&&!c&&!d;return{isiPad:n(o),isiPhone:n(a),isTablet:n(c),isPhone:n(u),isTouch:n(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:n(d),isDesktop:n(f)}},F=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},B=function(e,t){var n=F(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return U(r(1),r(2))},q=function(e,t){var n=String(t).toLowerCase();return 0===e.length?z():B(e,n)},z=function(){return U(0,0)},U=function(e,t){return{major:e,minor:t}},G={nu:U,detect:q,unknown:z},V=function(e,t){var n=String(t).toLowerCase();return O(e,(function(e){return e.search(n)}))},W=function(e,t){return V(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},H=function(e,t){return V(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},$={detectBrowser:W,detectOs:H},K=function(e,t){return-1!==e.indexOf(t)},X=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Y=function(e){return function(t){return K(t,e)}},J=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return K(e,"edge/")&&K(e,"chrome")&&K(e,"safari")&&K(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,X],search:function(e){return K(e,"chrome")&&!K(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return K(e,"msie")||K(e,"trident")}},{name:"Opera",versionRegexes:[X,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Y("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Y("firefox")},{name:"Safari",versionRegexes:[X,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(K(e,"safari")||K(e,"mobile/"))&&K(e,"applewebkit")}}],Q=[{name:"Windows",search:Y("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return K(e,"iphone")||K(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Y("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Y("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Y("linux"),versionRegexes:[]},{name:"Solaris",search:Y("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Y("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Y("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Z={browsers:n(J),oses:n(Q)},ee="Edge",te="Chrome",ne="IE",re="Opera",ie="Firefox",oe="Safari",ae=function(){return se({current:void 0,version:G.unknown()})},se=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ee),isChrome:r(te),isIE:r(ne),isOpera:r(re),isFirefox:r(ie),isSafari:r(oe)}},le={unknown:ae,nu:se,edge:n(ee),chrome:n(te),ie:n(ne),opera:n(re),firefox:n(ie),safari:n(oe)},ce="Windows",ue="iOS",de="Android",fe="Linux",he="OSX",pe="Solaris",me="FreeBSD",ge="ChromeOS",ve=function(){return ye({current:void 0,version:G.unknown()})},ye=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(ce),isiOS:r(ue),isAndroid:r(de),isOSX:r(he),isLinux:r(fe),isSolaris:r(pe),isFreeBSD:r(me),isChromeOS:r(ge)}},be={unknown:ve,nu:ye,windows:n(ce),ios:n(ue),android:n(de),linux:n(fe),osx:n(he),solaris:n(pe),freebsd:n(me),chromeos:n(ge)},_e=function(e,t){var n=Z.browsers(),r=Z.oses(),i=$.detectBrowser(n,e).fold(le.unknown,le.nu),o=$.detectOs(r,e).fold(be.unknown,be.nu),a=j(o,i,e,t);return{browser:i,os:o,deviceType:a}},we={detect:_e},xe=function(e){return window.matchMedia(e).matches},Se=D((function(){return we.detect(navigator.userAgent,xe)})),Ce=function(){return Se()},Ee=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},ke=function(e,t){return Ee(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Oe=1,Te=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Re(r.childNodes[0])},Ie=function(e,t){var n=t||document,r=n.createElement(e);return Re(r)},Ae=function(e,t){var n=t||document,r=n.createTextNode(e);return Re(r)},Re=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Pe=function(e,t,n){return u.from(e.dom.elementFromPoint(t,n)).map(Re)},Me={fromHtml:Te,fromTag:Ie,fromText:Ae,fromDom:Re,fromPoint:Pe},Ne=function(e,t){var n=e.dom;if(n.nodeType!==Oe)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Le=function(e,t){return e.dom===t.dom},De=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},je=function(e,t){return ke(e.dom,t.dom)},Fe=function(e,t){return Ce().browser.isIE()?je(e,t):De(e,t)},Be=Ne,qe=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),ze=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Ue=tinymce.util.Tools.resolve("tinymce.util.VK"),Ge=Object.keys,Ve=function(e,t){for(var n=Ge(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},We=function(e){return function(t,n){e[n]=t}},He=function(e,t,n,r){var i={};return Ve(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},$e=function(e,n){var r={};return He(e,n,We(r),t),r},Ke=("undefined"!==typeof window?window:Function("return this;")(),function(e){var t=e.dom.nodeName;return t.toLowerCase()}),Xe=function(e){return e.dom.nodeType},Ye=function(e){return function(t){return Xe(t)===e}},Je=Ye(Oe),Qe=function(e,t,n){if(!(p(n)||g(n)||y(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Ze=function(e,t){var n=e.dom;Ve(t,(function(e,t){Qe(n,t,e)}))},et=function(e){return E(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},tt=function(e){return u.from(e.dom.parentNode).map(Me.fromDom)},nt=function(e){return w(e.dom.childNodes,Me.fromDom)},rt=function(e,t){var n=e.dom.childNodes;return u.from(n[t]).map(Me.fromDom)},it=function(e){return rt(e,0)},ot=function(e){return rt(e,e.dom.childNodes.length-1)},at=function(e,t){var n=tt(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},st=function(e,t){e.dom.appendChild(t.dom)},lt=function(e,t){x(t,(function(t){at(e,t)}))},ct=function(e,t){x(t,(function(t){st(e,t)}))},ut=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},dt=function(e,t){return Me.fromDom(e.dom.cloneNode(t))},ft=function(e){return dt(e,!0)},ht=function(e,t){var n=Me.fromTag(t),r=et(e);return Ze(n,r),n},pt=function(e,t){var n=ht(e,t);at(e,n);var r=nt(e);return ct(n,r),ut(e),n},mt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),gt=tinymce.util.Tools.resolve("tinymce.util.Tools"),vt=function(e){return function(t){return t&&t.nodeName.toLowerCase()===e}},yt=function(e){return function(t){return t&&e.test(t.nodeName)}},bt=function(e){return e&&3===e.nodeType},_t=yt(/^(OL|UL|DL)$/),wt=yt(/^(OL|UL)$/),xt=vt("ol"),St=yt(/^(LI|DT|DD)$/),Ct=yt(/^(DT|DD)$/),Et=yt(/^(TH|TD)$/),kt=vt("br"),Ot=function(e){return e.parentNode.firstChild===e},Tt=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},It=function(e,t){return e&&e.nodeName in t},At=function(e,t){return!!kt(t)&&(e.isBlock(t.nextSibling)&&!kt(t.previousSibling))},Rt=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},Pt=function(e,t){return e.isChildOf(t,e.getRoot())},Mt=function(e){return e.getParam("lists_indent_on_tab",!0)},Nt=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Lt=function(e){return e.getParam("forced_root_block_attrs",{})},Dt=function(e,t){var n,r,i,o=e.dom,a=e.schema.getBlockElements(),s=o.createFragment(),l=Nt(e);if(l&&(r=o.create(l),r.tagName===l.toUpperCase()&&o.setAttribs(r,Lt(e)),It(t.firstChild,a)||s.appendChild(r)),t)while(n=t.firstChild){var c=n.nodeName;i||"SPAN"===c&&"bookmark"===n.getAttribute("data-mce-type")||(i=!0),It(n,a)?(s.appendChild(n),r=null):l?(r||(r=o.create(l),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return l?i||r.appendChild(o.create("br",{"data-mce-bogus":"1"})):s.appendChild(o.create("br")),s},jt=mt.DOM,Ft=function(e,t,n){var r=function(e){gt.each(i,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),jt.remove(e)},i=jt.select('span[data-mce-type="bookmark"]',t),o=Dt(e,n),a=jt.createRng();a.setStartAfter(n),a.setEndAfter(t);for(var s=a.extractContents(),l=s.firstChild;l;l=l.firstChild)if("LI"===l.nodeName&&e.dom.isEmpty(l)){jt.remove(l);break}e.dom.isEmpty(s)||jt.insertAfter(s,t),jt.insertAfter(o,t),Rt(e.dom,n.parentNode)&&r(n.parentNode),jt.remove(n),Rt(e.dom,t)&&jt.remove(t)},Bt=function(e,t){Be(t,"dd")?pt(t,"dt"):Be(t,"dt")&&tt(t).each((function(n){return Ft(e,n.dom,t.dom)}))},qt=function(e){Be(e,"dt")&&pt(e,"dd")},zt=function(e,t,n){x(n,"Indent"===t?qt:function(t){return Bt(e,t)})},Ut=function(e,t){if(bt(e))return{container:e,offset:t};var n=qe.getNode(e,t);return bt(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&bt(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&bt(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},Gt=function(e){var t=e.cloneRange(),n=Ut(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Ut(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},Vt=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),Wt=function(e,t){var n=t||e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",Qt(e,n))},Ht=function(e,t){return e&&1===t.length&&t[0]===e},$t=function(e){return gt.grep(e.querySelectorAll("ol,ul,dl"),(function(e){return _t(e)}))},Kt=function(e){var t=Wt(e),n=e.selection.getSelectedBlocks();return Ht(t,n)?$t(t):gt.grep(n,(function(e){return _t(e)&&t!==e}))},Xt=function(e,t){var n=gt.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",Qt(e,t));return n||t}));return Vt.unique(n)},Yt=function(e){var t=e.selection.getSelectedBlocks();return gt.grep(Xt(e,t),(function(e){return St(e)}))},Jt=function(e){return S(Yt(e),Ct)},Qt=function(e,t){var n=e.dom.getParents(t,"TD,TH"),r=n.length>0?n[0]:e.getBody();return r},Zt=function(e,t){var n=e.dom.getParents(t,"ol,ul",Qt(e,t));return M(n)},en=function(e){var t=Zt(e,e.selection.getStart()),n=S(e.selection.getSelectedBlocks(),wt);return t.toArray().concat(n)},tn=function(e){var t=en(e);return nn(e,t)},nn=function(e,t){var n=w(t,(function(t){return Zt(e,t).getOr(t)}));return Vt.unique(n)},rn=function(e,t,n){return e.isSome()&&t.isSome()?u.some(n(e.getOrDie(),t.getOrDie())):u.none()},on=function(e,t){var n=t||document,r=n.createDocumentFragment();return x(e,(function(e){r.appendChild(e.dom)})),Me.fromDom(r)},an=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},sn=function(e){return void 0!==e.style&&v(e.style.getPropertyValue)},ln=function(e,t,n){if(!p(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);sn(e)&&e.style.setProperty(t,n)},cn=function(e,t,n){var r=e.dom;ln(r,t,n)},un=function(e,t){st(e.item,t.list)},dn=function(e){for(var t=1;t<e.length;t++)un(e[t-1],e[t])},fn=function(e,t){rn(M(e),P(t),un)},hn=function(e,t){var n={list:Me.fromTag(t,e),item:Me.fromTag("li",e)};return st(n.list,n.item),n},pn=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(hn(e,t.listType));return r},mn=function(e,t){for(var n=0;n<e.length-1;n++)cn(e[n].item,"list-style-type","none");M(e).each((function(e){Ze(e.list,t.listAttributes),Ze(e.item,t.itemAttributes),ct(e.item,t.content)}))},gn=function(e,t){Ke(e.list)!==t.listType&&(e.list=pt(e.list,t.listType)),Ze(e.list,t.listAttributes)},vn=function(e,t,n){var r=Me.fromTag("li",e);return Ze(r,t),ct(r,n),r},yn=function(e,t){st(e.list,t),e.item=t},bn=function(e,t,n){var r=t.slice(0,n.depth);return M(r).each((function(t){var r=vn(e,n.itemAttributes,n.content);yn(t,r),gn(t,n)})),r},_n=function(e,t,n){var r=pn(e,n,n.depth-t.length);return dn(r),mn(r,n),fn(t,r),t.concat(r)},wn=function(e,t){var n=E(t,(function(t,n){return n.depth>t.length?_n(e,t,n):bn(e,t,n)}),[]);return P(n).map((function(e){return e.list}))},xn=function(e){return Be(e,"OL,UL")},Sn=function(e){return it(e).map(xn).getOr(!1)},Cn=function(e){return ot(e).map(xn).getOr(!1)},En=function(e){return e.depth>0},kn=function(e){return e.isSelected},On=function(e){var t=nt(e),n=Cn(e)?t.slice(0,-1):t;return w(n,ft)},Tn=function(e,t,n){return tt(e).filter(Je).map((function(r){return{depth:t,dirty:!1,isSelected:n,content:On(e),itemAttributes:et(e),listAttributes:et(r),listType:Ke(r)}}))},In=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0},An=function(e,t){e.listType=t.listType,e.listAttributes=N({},t.listAttributes)},Rn=function(e){e.listAttributes=$e(e.listAttributes,(function(e,t){return"start"!==t}))},Pn=function(e,t){var n=e[t].depth,r=function(e){return e.depth===n&&!e.dirty},i=function(e){return e.depth<n};return k(A(e.slice(0,t)),r,i).orThunk((function(){return k(e.slice(t+1),r,i)}))},Mn=function(e){return x(e,(function(t,n){Pn(e,n).fold((function(){t.dirty&&Rn(t)}),(function(e){return An(t,e)}))})),e},Nn=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Ln=function(e,t,n,r){return it(r).filter(xn).fold((function(){t.each((function(e){Le(e.start,r)&&n.set(!0)}));var i=Tn(r,e,n.get());t.each((function(e){Le(e.end,r)&&n.set(!1)}));var o=ot(r).filter(xn).map((function(r){return Dn(e,t,n,r)})).getOr([]);return i.toArray().concat(o)}),(function(r){return Dn(e,t,n,r)}))},Dn=function(e,t,n,r){return I(nt(r),(function(r){var i=xn(r)?Dn:Ln,o=e+1;return i(o,t,n,r)}))},jn=function(e,t){var n=Nn(!1),r=0;return w(e,(function(e){return{sourceList:e,entries:Dn(r,t,n,e)}}))},Fn=function(e,t){var n=Mn(t);return w(n,(function(t){var n=on(t.content);return Me.fromDom(Dt(e,n.dom))}))},Bn=function(e,t){var n=Mn(t);return wn(e.contentDocument,n).toArray()},qn=function(e,t){return I(C(t,En),(function(t){var n=P(t).map(En).getOr(!1);return n?Bn(e,t):Fn(e,t)}))},zn=function(e,t){x(S(e,kn),(function(e){return In(t,e)}))},Un=function(e){var t=w(Yt(e),Me.fromDom);return rn(O(t,r(Sn)),O(A(t),r(Sn)),(function(e,t){return{start:e,end:t}}))},Gn=function(e,t,n){var r=jn(t,Un(e));x(r,(function(t){zn(t.entries,n);var r=qn(e,t.entries);x(r,(function(t){an(e,"Indent"===n?"IndentList":"OutdentList",t.dom)})),lt(t.sourceList,r),ut(t.sourceList)}))},Vn=function(e,t){var n=w(tn(e),Me.fromDom),r=w(Jt(e),Me.fromDom),i=!1;if(n.length||r.length){var o=e.selection.getBookmark();Gn(e,n,t),zt(e,t,r),e.selection.moveToBookmark(o),e.selection.setRng(Gt(e.selection.getRng())),e.nodeChanged(),i=!0}return i},Wn=function(e){return Vn(e,"Indent")},Hn=function(e){return Vn(e,"Outdent")},$n=function(e){return Vn(e,"Flatten")},Kn=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),Xn=mt.DOM,Yn=function(e){var t={},n=function(n){var r,i,o;i=e[n?"startContainer":"endContainer"],o=e[n?"startOffset":"endOffset"],1===i.nodeType&&(r=Xn.create("span",{"data-mce-type":"bookmark"}),i.hasChildNodes()?(o=Math.min(o,i.childNodes.length-1),n?i.insertBefore(r,i.childNodes[o]):Xn.insertAfter(r,i.childNodes[o])):i.appendChild(r),i=r,o=0),t[n?"startContainer":"endContainer"]=i,t[n?"startOffset":"endOffset"]=o};return n(!0),e.collapsed||n(),t},Jn=function(e){var t=function(t){var n,r,i,o=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1};n=i=e[t?"startContainer":"endContainer"],r=e[t?"startOffset":"endOffset"],n&&(1===n.nodeType&&(r=o(n),n=n.parentNode,Xn.remove(i),!n.hasChildNodes()&&Xn.isBlock(n)&&n.appendChild(Xn.create("br"))),e[t?"startContainer":"endContainer"]=n,e[t?"startOffset":"endOffset"]=r)};t(!0),t();var n=Xn.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),Gt(n)},Qn=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Zn=function(e){return/\btox\-/.test(e.className)},er=function(e,t,n){var r=function(e){var r=k(e.parents,_t,Et).filter((function(e){return e.nodeName===t&&!Zn(e)})).isSome();n(r)},i=e.dom.getParents(e.selection.getNode());return r({parents:i}),e.on("NodeChange",r),function(){return e.off("NodeChange",r)}},tr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},nr=function(e,t){gt.each(t,(function(t,n){e.setAttribute(n,t)}))},rr=function(e,t,n){nr(t,n["list-attributes"]),gt.each(e.select("li",t),(function(e){nr(e,n["list-item-attributes"])}))},ir=function(e,t,n){tr(e,t,n),rr(e,t,n)},or=function(e,t,n){gt.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},ar=function(e,t,n,r){var i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];1===i.nodeType&&(i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i),!n&&kt(i.nextSibling)&&(i=i.nextSibling);while(i.parentNode!==r){if(Tt(e,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},sr=function(e,t,n){for(var r,i=[],o=e.dom,a=ar(e,t,!0,n),s=ar(e,t,!1,n),l=[],c=a;c;c=c.nextSibling)if(l.push(c),c===s)break;return gt.each(l,(function(t){if(Tt(e,t))return i.push(t),void(r=null);if(o.isBlock(t)||kt(t))return kt(t)&&o.remove(t),void(r=null);var a=t.nextSibling;Kn.isBookmarkNode(t)&&(_t(a)||Tt(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=o.create("p"),t.parentNode.insertBefore(r,t),i.push(r)),r.appendChild(t))})),i},lr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),i=n?n["list-style-type"]:"";return i=null===i?"":i,r===i},cr=function(e,t,n){void 0===n&&(n={});var r=e.selection.getRng(),i="LI",o=Qt(e,e.selection.getStart(!0)),a=e.dom;if("false"!==a.getContentEditable(e.selection.getNode())){t=t.toUpperCase(),"DL"===t&&(i="DT");var s=Yn(r),l=sr(e,r,o);gt.each(l,(function(r){var o,s=r.previousSibling,l=r.parentNode;St(l)||(s&&_t(s)&&s.nodeName===t&&lr(a,s,n)?(o=s,r=a.rename(r,i),s.appendChild(r)):(o=a.create(t),r.parentNode.insertBefore(o,r),o.appendChild(r),r=a.rename(r,i)),or(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),ir(a,o,n),pr(e.dom,o))})),e.selection.setRng(Jn(s))}},ur=function(e,t){return e&&t&&_t(e)&&e.nodeName===t.nodeName},dr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),i=e.getStyle(n,"list-style-type",!0);return r===i},fr=function(e,t){return e.className===t.className},hr=function(e,t,n){return ur(t,n)&&dr(e,t,n)&&fr(t,n)},pr=function(e,t){var n,r;if(n=t.nextSibling,hr(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,hr(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},mr=function(e,t,n,r){if(t.nodeName!==n){var i=e.dom.rename(t,n);ir(e.dom,i,r),an(e,Qn(n),i)}else ir(e.dom,t,r),an(e,Qn(n),t)},gr=function(e,t,n,r,i){var o=_t(t);if(o&&t.nodeName===r&&!vr(i))$n(e);else{cr(e,r,i);var a=Yn(e.selection.getRng(!0)),s=o?L([t],n):n;gt.each(s,(function(t){mr(e,t,r,i)})),e.selection.setRng(Jn(a))}},vr=function(e){return"list-style-type"in e},yr=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||vr(r)||Zn(t)){var i=Yn(e.selection.getRng(!0));ir(e.dom,t,r);var o=e.dom.rename(t,n);pr(e.dom,o),e.selection.setRng(Jn(i)),cr(e,n,r),an(e,Qn(n),o)}else $n(e);else cr(e,n,r),an(e,Qn(n),t)},br=function(e,t,n){var r=Wt(e),i=Kt(e);n=n||{},i.length>0?gr(e,r,i,t,n):yr(e,r,t,n)},_r=mt.DOM,wr=function(e,t){var n,r=t.parentNode;"LI"===r.nodeName&&r.firstChild===t&&(n=r.previousSibling,n&&"LI"===n.nodeName?(n.appendChild(t),Rt(e,r)&&_r.remove(r)):_r.setStyle(r,"listStyleType","none")),_t(r)&&(n=r.previousSibling,n&&"LI"===n.nodeName&&n.appendChild(t))},xr=function(e,t){gt.each(gt.grep(e.select("ol,ul",t)),(function(t){wr(e,t)}))},Sr=function(e,t,n,r){var i=t.startContainer,o=t.startOffset;if(bt(i)&&(n?o<i.data.length:o>0))return i;var a=e.schema.getNonEmptyElements();1===i.nodeType&&(i=qe.getNode(i,o));var s=new ze(i,r);n&&At(e.dom,i)&&s.next();while(i=s[n?"next":"prev2"]()){if("LI"===i.nodeName&&!i.hasChildNodes())return i;if(a[i.nodeName])return i;if(bt(i)&&i.data.length>0)return i}},Cr=function(e,t){var n=t.childNodes;return 1===n.length&&!_t(n[0])&&e.isBlock(n[0])},Er=function(e,t){Cr(e,t)&&e.remove(t.firstChild,!0)},kr=function(e,t,n){var r,i=Cr(e,n)?n.firstChild:n;if(Er(e,t),!Rt(e,t,!0))while(r=t.firstChild)i.appendChild(r)},Or=function(e,t,n){var r,i=t.parentNode;if(Pt(e,t)&&Pt(e,n)){_t(n.lastChild)&&(r=n.lastChild),i===n.lastChild&&kt(i.previousSibling)&&e.remove(i.previousSibling);var o=n.lastChild;o&&kt(o)&&t.hasChildNodes()&&e.remove(o),Rt(e,n,!0)&&e.$(n).empty(),kr(e,t,n),r&&n.appendChild(r);var a=Fe(Me.fromDom(n),Me.fromDom(t)),s=a?e.getParents(t,_t,n):[];e.remove(t),x(s,(function(t){Rt(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},Tr=function(e,t,n){e.dom.$(n).empty(),Or(e.dom,t,n),e.selection.setCursorLocation(n,0)},Ir=function(e,t,n,r){var i=e.dom;if(i.isEmpty(r))Tr(e,n,r);else{var o=Yn(t);Or(i,n,r),e.selection.setRng(Jn(o))}},Ar=function(e,t,n,r){var i=Yn(t);Or(e.dom,n,r);var o=Jn(i);e.selection.setRng(o)},Rr=function(e,t){var n=e.dom,r=e.selection,i=r.getStart(),o=Qt(e,i),a=n.getParent(r.getStart(),"LI",o);if(a){var s=a.parentNode;if(s===e.getBody()&&Rt(n,s))return!0;var l=Gt(r.getRng()),c=n.getParent(Sr(e,l,t,o),"LI",o);if(c&&c!==a)return e.undoManager.transact((function(){t?Ir(e,l,c,a):Ot(a)?Hn(e):Ar(e,l,a,c)})),!0;if(!c&&!t&&0===l.startOffset&&0===l.endOffset)return e.undoManager.transact((function(){$n(e)})),!0}return!1},Pr=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Mr=function(e,t){var n=e.dom,r=e.selection.getStart(),i=Qt(e,r),o=n.getParent(r,n.isBlock,i);if(o&&n.isEmpty(o)){var a=Gt(e.selection.getRng()),s=n.getParent(Sr(e,a,t,i),"LI",i);if(s)return e.undoManager.transact((function(){Pr(n,o,i),pr(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)})),!0}return!1},Nr=function(e,t){return Rr(e,t)||Mr(e,t)},Lr=function(e){var t=e.selection.getStart(),n=Qt(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||Yt(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),xr(e.dom,e.getBody())})),!0)},Dr=function(e,t){return e.selection.isCollapsed()?Nr(e,t):Lr(e)},jr=function(e){e.on("keydown",(function(t){t.keyCode===Ue.BACKSPACE?Dr(e,!1)&&t.preventDefault():t.keyCode===Ue.DELETE&&Dr(e,!0)&&t.preventDefault()}))},Fr=function(e){return{backspaceDelete:function(t){Dr(e,t)}}},Br=function(e){var t=e.dom,n=Wt(e);xt(n)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:t.getAttrib(n,"start")||"1"},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(n){var r=n.getData();e.undoManager.transact((function(){t.setAttrib(Wt(e),"start","1"===r.start?"":r.start)})),n.close()}})},qr=function(e,t){return function(){var n=e.dom.getParent(e.selection.getStart(),"UL,OL,DL");return n&&n.nodeName===t}},zr=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?Wn(e):"outdent"===n&&Hn(e)})),e.addCommand("InsertUnorderedList",(function(t,n){br(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){br(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){br(e,"DL",n)})),e.addCommand("RemoveList",(function(){$n(e)})),e.addCommand("mceListProps",(function(){Br(e)})),e.addQueryStateHandler("InsertUnorderedList",qr(e,"UL")),e.addQueryStateHandler("InsertOrderedList",qr(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",qr(e,"DL"))},Ur=function(e){e.on("keydown",(function(t){t.keyCode!==Ue.TAB||Ue.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?Hn(e):Wn(e))&&t.preventDefault()}))}))},Gr=function(e){Mt(e)&&Ur(e),jr(e)},Vr=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:function(t){return er(e,"OL",t.setActive)}}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:function(t){return er(e,"UL",t.setActive)}}))},Wr=function(e){var t={text:"List properties...",icon:"ordered-list",onAction:function(){return Br(e)},onSetup:function(t){return er(e,"OL",(function(e){return t.setDisabled(!e)}))}};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:function(t){var n=Wt(e,t);return xt(n)?["listprops"]:[]}})};function Hr(){e.add("lists",(function(e){return!1===e.hasPlugin("rtc",!0)&&(Gr(e),zr(e)),Vr(e),Wr(e),Fr(e)}))}Hr()})()},2413:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{"margin-top":"-70px"},attrs:{width:e.modalWidth,visible:e.visible,title:e.title,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleSubmit,cancel:e.close}},[n("a-row",{staticStyle:{"background-color":"#ececec",padding:"10px",margin:"-10px"},attrs:{gutter:10}},[n("a-col",{attrs:{md:24,sm:30}},[n("a-card",{attrs:{bordered:!1}},[e._v("\n        用户账号:\n        "),n("a-input",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入用户账号"},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}}),e._v("\n        真实姓名:\n        "),n("a-input",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入真实姓名"},model:{value:e.queryParam.realname,callback:function(t){e.$set(e.queryParam,"realname",t)},expression:"queryParam.realname"}}),n("a-button",{staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.onSearch()}}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{icon:"redo"},on:{click:function(t){return e.searchReset(1)}}},[e._v("重置")]),n("a-table",{ref:"table",attrs:{scroll:e.scrollTrigger,size:"middle",rowKey:"id",bordered:"",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,selectable:!1,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:"radio"}},on:{change:e.handleTableChange}})],1)],1)],1)],1)},i=[],o=(n("ac6a"),n("456d"),n("ca00")),a=n("4ec3"),s={name:"JSelectDutyUserModal",components:{},props:["modalWidth"],data:function(){return{queryParam:{username:""},columns:[{title:"用户账号",align:"center",dataIndex:"username"},{title:"真实姓名",align:"center",dataIndex:"realname"},{title:"角色名称",align:"center",dataIndex:"roleName"},{title:"性别",align:"center",dataIndex:"sex",customRender:function(e){return 1===e?"男":2===e?"女":e}},{title:"手机号码",align:"center",dataIndex:"phone"},{title:"邮箱",align:"center",dataIndex:"email"}],scrollTrigger:{},dataSource:[],selectedKeys:[],userNameArr:[],departName:"",userRolesMap:{},title:"根据部门选择用户",ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},selectedRowKeys:[],selectedRows:[],departTree:[],visible:!1,form:this.$form.createForm(this)}},created:function(){this.resetScreenSize(),this.queryUserRoleMap()},methods:{loadData:function(e){var t=this;console.log("start"),1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["w"])(n).then((function(e){e.success&&(t.dataSource=e.result.records,t.assignRoleName(t.dataSource),t.ipagination.total=e.result.total)}))},queryUserRoleMap:function(){var e=this;Object(a["cb"])().then((function(t){t.success&&(e.userRolesMap=t.result,e.loadData())}))},resetScreenSize:function(){var e=document.body.clientWidth;this.scrollTrigger=e<500?{x:800}:{}},showModal:function(){this.loadData(1),this.visible=!0,this.assignRoleName(this.dataSource),this.form.resetFields()},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return null!=e.username&&""!=e.username&&(e.username=e.username+"*"),null!=e.realname&&""!=e.realname&&(e.realname=e.realname+"*"),e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},searchReset:function(e){var t=this;0!==e&&(t.queryParam={},t.loadData(1)),t.selectedRowKeys=[],t.userNameArr=[],t.selectedKeys=[]},close:function(){this.searchReset(0),this.visible=!1},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"===n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleSubmit:function(){for(var e=this,t=0,n=this.selectedRowKeys.length;t<n;t++)this.getUserNames(this.selectedRowKeys[t]);e.$emit("ok",e.userNameArr[0]),e.close()},getUserNames:function(e){for(var t=this.dataSource,n=0,r=t.length;n<r;n++)e===t[n].id&&this.userNameArr.push(t[n].realname+"|"+e)},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onSearch:function(){this.loadData(1)},queryUserRole:function(e){var t=this.userRolesMap,n=[];for(var r in t)e===r&&n.push(t[r]);return n.join(",")},assignRoleName:function(e){for(var t="",n="",r=0,i=e.length;r<i;r++)t=this.dataSource[r].id,n=this.queryUserRole(t),this.dataSource[r].roleName=n},modalFormOk:function(){this.loadData()}}},l=s,c=(n("597b"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"4325a5bc",null);t["default"]=u.exports},"247b":function(e,t,n){var r=n("5b1a"),i=n("348a");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},"247d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"mengcenga1"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"地区",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("city_child",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{placeholder:"请输入市",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cityCode",e.validatorRules.cityCode],expression:"[ 'cityCode', validatorRules.cityCode]"}],attrs:{placeholder:"请输入市代码",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",e.validatorRules.district],expression:"[ 'district', validatorRules.district]"}],attrs:{placeholder:"请输入区县",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",e.validatorRules.districtCode],expression:"[ 'districtCode', validatorRules.districtCode]"}],attrs:{placeholder:"请输入区县代码",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",e.validatorRules.street],expression:"[ 'street', validatorRules.street]"}],attrs:{placeholder:"请输入乡镇街道",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",e.validatorRules.streetCode],expression:"[ 'streetCode', validatorRules.streetCode]"}],attrs:{placeholder:"请输入乡镇街道代码",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["village",e.validatorRules.village],expression:"[ 'village', validatorRules.village]"}],attrs:{placeholder:"请输入村社区",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["villageCode",e.validatorRules.villageCode],expression:"[ 'villageCode', validatorRules.villageCode]"}],attrs:{placeholder:"请输入村社区代码",hidden:""}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.bt],expression:"[ 'name', validatorRules.bt]"}],attrs:{placeholder:"请输入名称"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"经度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["longitude",e.validatorRules.bt],expression:"[ 'longitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入经度",disabled:""}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"纬度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["latitude",e.validatorRules.bt],expression:"[ 'latitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入纬度",disabled:""}})],1)],1),e._l(e.notes,(function(t,r){return n("a-col",{attrs:{span:"24"}},["city"==t.zd||"name"==t.zd||"longitude"==t.zd||"latitude"==t.zd?void 0:["1"==t.sfbt?["1"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0}})],1)]:"0"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请输入"+t.name}})],1)]:"2"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.btint],expression:"[item.zd, validatorRules.btint]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name}})],1)]:"3"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm}})],1)]:e._e()]:["1"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0}})],1)]:"0"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请输入"+t.name}})],1)]:"2"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name}})],1)]:"3"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm}})],1)]:e._e()]]],2)}))],2)],1)],1)],1)},i=[],o=(n("28a5"),n("aef6"),n("0fea")),a=(n("88bc"),n("d9be")),s={name:"",props:{url:""},components:{city_child:a["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:760,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},notes:[],qx:"",qxmc:"",showDefaultParams:[],confirmLoading:!1,validatorRules:{city:{rules:[{required:!0,message:"请选择地区"}]},bt:{rules:[{required:!0,message:"请输入必填字段"}]},btint:{rules:[{required:!0,message:"请输入必填字段,必须为数字"}]}},pointKey:"longitudeLatitude"}},mounted:function(){this.getquxian()},methods:{fuzhi:function(){this.form.setFieldsValue(this.model)},handleMapView:function(){this.$refs.backMap.visible=!0,this.$refs.backMap.disableSubmit=!1},initParams:function(){null==this.model.cityCode?"3303"==this.qx?(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.form.setFieldsValue({city:"温州市",cityCode:"3303"})):(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.showDefaultParams.push(this.qx),this.form.setFieldsValue({city:"温州市",cityCode:"3303",district:this.qxmc,districtCode:this.qx})):(this.showDefaultParams.length=0,this.showDefaultParams.push(this.model.cityCode),this.showDefaultParams.push(this.model.districtCode),this.showDefaultParams.push(this.model.streetCode),this.showDefaultParams.push(this.model.villageCode))},getMsgFormSon:function(e){console.log(e),this.form.setFieldsValue({city:e.city,cityCode:e.cityCode,district:e.district,districtCode:e.districtCode,street:e.street,streetCode:e.streetCode,village:e.village,villageCode:e.villageCode})},dongtaibianji:function(){var e=this;Object(o["i"])(this.url.notes,{},"get").then((function(t){t.success&&(console.log("动态编辑字段add:"+t.result.notes),e.notes=t.result.notes)}))},add:function(e){var t=this;this.dongtaibianji();var n=this,r=e.smid;null==r?(this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.fuzhi(),t.initParams()}))):(e.longitudeLatitude=e.longitude+","+e.latitude,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!1,this.$nextTick((function(){t.fuzhi(),t.initParams(),n.handleOk()})))},edit:function(e){var t=this;Object(o["i"])(this.url.notes,{},"get").then((function(n){n.success&&(console.log("动态编辑字段edit:"),console.log(n.result.notes),t.notes=n.result.notes,t.form.resetFields(),t.model=Object.assign({},e),t.visible=!0,t.$nextTick((function(){t.fuzhi(),t.initParams()})))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(e.model.longitudeLatitude=e.model.longitude+","+e.model.latitude,!n){t.confirmLoading=!0;var i="",a="";e.model.smid?(i+=e.url.edit,a="put",e.$route.path.endsWith("emergency_risk_index")||e.$route.path.endsWith("emergency_resource_index")?i+="/emergency":i+="/shenheku"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("表单提交数据",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.$emit("handleOktshide"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))},handleCancel:function(){this.close()},getquxian:function(){var e=this;Object(o["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(",");e.qxmc=r[0],e.qx=r[1]}else e.$message.warning(t.message)}))}}},l=s,c=(n("f877"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},2522:function(e,t,n){"use strict";n("df32")},"255a":function(e,t,n){"use strict";n("64df")},2560:function(e,t,n){var r=n("be46"),i=n("42b3").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"256f":function(e,t,n){"use strict";n.d(t,"a",(function(){return r["a"]})),n.d(t,"k",(function(){return P})),n.d(t,"f",(function(){return L})),n.d(t,"g",(function(){return D})),n.d(t,"b",(function(){return B})),n.d(t,"c",(function(){return q})),n.d(t,"i",(function(){return z})),n.d(t,"h",(function(){return U})),n.d(t,"n",(function(){return G})),n.d(t,"j",(function(){return $})),n.d(t,"o",(function(){return K})),n.d(t,"l",(function(){return X})),n.d(t,"d",(function(){return Y})),n.d(t,"m",(function(){return J})),n.d(t,"e",(function(){return Q}));var r=n("fced"),i=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||r["a"][this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}(),o=i,a=n("7fc9"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=6378137,c=Math.PI*l,u=[-c,-c,c,c],d=[-180,-85,180,85],f=l*Math.log(Math.tan(Math.PI/2)),h=function(e){function t(t){return e.call(this,{code:t,units:r["b"].METERS,extent:u,global:!0,worldExtent:d,getPointResolution:function(e,t){return e/Object(a["b"])(t[1]/l)}})||this}return s(t,e),t}(o),p=[new h("EPSG:3857"),new h("EPSG:102100"),new h("EPSG:102113"),new h("EPSG:900913"),new h("http://www.opengis.net/gml/srs/epsg.xml#3857")];function m(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i){o[a]=c*e[a]/180;var s=l*Math.log(Math.tan(Math.PI*(+e[a+1]+90)/360));s>f?s=f:s<-f&&(s=-f),o[a+1]=s}return o}function g(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*e[a]/c,o[a+1]=360*Math.atan(Math.exp(e[a+1]/l))/Math.PI-90;return o}var v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=6378137,b=[-180,-90,180,90],_=Math.PI*y/180,w=function(e){function t(t,n){return e.call(this,{code:t,units:r["b"].DEGREES,extent:b,axisOrientation:n,global:!0,metersPerUnit:_,worldExtent:b})||this}return v(t,e),t}(o),x=[new w("CRS:84"),new w("EPSG:4326","neu"),new w("urn:ogc:def:crs:OGC:1.3:CRS84"),new w("urn:ogc:def:crs:OGC:2:84"),new w("http://www.opengis.net/gml/srs/epsg.xml#4326","neu")],S={};function C(e){return S[e]||S[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function E(e,t){S[e]=t}n("38f3");var k={};function O(e,t,n){var r=e.getCode(),i=t.getCode();r in k||(k[r]={}),k[r][i]=n}function T(e,t){var n;return e in k&&t in k[e]&&(n=k[e][t]),n}var I=n("0af5"),A=n("790a");n("a568");function R(e,t,n){var r;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];r=t}else r=e.slice();return r}function P(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r<i;++r)t[r]=e[r];e=t}return e}function M(e){E(e.getCode(),e),O(e,e,R)}function N(e){e.forEach(M)}function L(e){return"string"===typeof e?C(e):e||null}function D(e,t,n,i){var o;e=L(e);var a=e.getPointResolutionFunc();if(a){if(o=a(t,n),i&&i!==e.getUnits()){var s=e.getMetersPerUnit();s&&(o=o*s/r["a"][i])}}else{var l=e.getUnits();if(l==r["b"].DEGREES&&!i||i==r["b"].DEGREES)o=t;else{var c=z(e,L("EPSG:4326"));if(c===P&&l!==r["b"].DEGREES)o=t*e.getMetersPerUnit();else{var u=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];u=c(u,u,2);var d=Object(A["a"])(u.slice(0,2),u.slice(2,4)),f=Object(A["a"])(u.slice(4,6),u.slice(6,8));o=(d+f)/2}s=i?r["a"][i]:e.getMetersPerUnit();void 0!==s&&(o/=s)}}return o}function j(e){N(e),e.forEach((function(t){e.forEach((function(e){t!==e&&O(t,e,R)}))}))}function F(e,t,n,r){e.forEach((function(e){t.forEach((function(t){O(e,t,n),O(t,e,r)}))}))}function B(e,t){return e?"string"===typeof e?L(e):e:L(t)}function q(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();if(e.getCode()===t.getCode())return n;var r=z(e,t);return r===R&&n}function z(e,t){var n=e.getCode(),r=t.getCode(),i=T(n,r);return i||(i=P),i}function U(e,t){var n=L(e),r=L(t);return z(n,r)}function G(e,t,n){var r=U(t,n);return r(e,void 0,e.length)}function V(e,t,n,r){var i=U(t,n);return Object(I["a"])(e,i,void 0,r)}var W=null;function H(e){W=L(e)}function $(){return W}function K(){H("EPSG:4326")}function X(e,t){return W?G(e,t,W):e}function Y(e,t){return W?G(e,W,t):e}function J(e,t){return W?V(e,t,W):e}function Q(e,t){return W?V(e,W,t):e}function Z(){j(p),j(x),F(x,p,m,g)}Z()},"25a1":function(e,t,n){var r=n("96cd");function i(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=r(e),null===e)break;return e}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"25a5":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),f=Math.max(i,Math.floor(r-l*u/s+d)),h=Math.min(o,Math.floor(r+(s-l)*u/s+d));e(n,r,f,h,a)}var p=n[r],m=i,g=o;for(t(n,i,r),a(n[o],p)>0&&t(n,i,o);m<g;){for(t(n,m,g),m++,g--;a(n[m],p)<0;)m++;for(;a(n[g],p)>0;)g--}0===a(n[i],p)?t(n,i,g):t(n,++g,o),g<=r&&(i=g+1),r<=g&&(o=g-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=p(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];s(i,e.leaf?r(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function h(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function p(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!h(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;h(e,s)&&(t.leaf?n.push(a):f(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!h(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(h(e,o)){if(t.leaf||f(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=p([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,a=this.data,s=this.toBBox(e),l=[],c=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),a.leaf){var u=i(e,a.children,t);if(-1!==u)return a.children.splice(u,1),l.push(a),this._condense(l),this}o||a.leaf||!f(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,a=n-t+1,s=this._maxEntries;if(a<=s)return o(i=p(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=p([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),c=l*Math.ceil(Math.sqrt(s));m(e,t,n,c,this.compareMinX);for(var u=t;u<=n;u+=c){var d=Math.min(u+c-1,n);m(e,u,d,l,this.compareMinY);for(var f=u;f<=d;f+=l){var h=Math.min(f+l-1,d);i.children.push(this._build(e,f,h,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],c=u(l),d=(f=e,h=l,(Math.max(h.maxX,f.maxX)-Math.min(h.minX,f.minX))*(Math.max(h.maxY,f.maxY)-Math.min(h.minY,f.minY))-c);d<o?(o=d,i=c<i?c:i,a=l):d===o&&c<i&&(i=c,a=l)}t=a||t.children[0]}var f,h;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),s(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,c,d,f=1/0,h=1/0,p=t;p<=n-t;p++){var m=a(e,0,p,this.toBBox),g=a(e,p,n,this.toBBox),v=(i=m,o=g,s=void 0,l=void 0,c=void 0,d=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,d-l)),y=u(m)+u(g);v<f?(f=v,r=p,h=y<h?y:h):v===f&&y<h&&(h=y,r=p)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=a(e,0,t,i),l=a(e,n-t,n,i),c=d(o)+d(l),u=t;u<n-t;u++){var f=e.children[u];s(o,e.leaf?i(f):f),c+=d(o)}for(var h=n-t-1;h>=t;h--){var p=e.children[h];s(l,e.leaf?i(p):p),c+=d(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}))},"25f0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-button",{attrs:{ghost:"",type:"primary",icon:"delete"},on:{click:e.batchDel}},[e._v("批量删除\n    ")]):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项  \n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{attrs:{columns:e.columns,size:"middle",pagination:!1,dataSource:e.dataSource,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleAddSub(r)}}},[e._v("添加子菜单")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDataRule(r)}}},[e._v("数据规则")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}},{key:"url",fn:function(e){return n("span",{},[n("j-ellipsis",{attrs:{value:e,length:25}})],1)}},{key:"component",fn:function(e){return n("span",{},[n("j-ellipsis",{attrs:{value:e}})],1)}}])})],1),n("permission-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("permission-data-rule-list",{ref:"PermissionDataRuleList",on:{ok:e.modalFormOk}})],1)},i=[],o=n("b90e"),a=n("4ec3"),s=n("b65a"),l=n("56cd1"),c=n("d579"),u=[{title:"菜单名称",dataIndex:"name",key:"name"},{title:"菜单类型",dataIndex:"menuType",key:"menuType",customRender:function(e){return 0==e||1==e?"菜单":2==e?"按钮/权限":e}},{title:"icon",dataIndex:"icon",key:"icon"},{title:"组件",dataIndex:"component",key:"component",scopedSlots:{customRender:"component"}},{title:"路径",dataIndex:"url",key:"url",scopedSlots:{customRender:"url"}},{title:"排序",dataIndex:"sortNo",key:"sortNo"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:150}],d={name:"PermissionList",mixins:[s["a"]],components:{PermissionDataRuleList:l["default"],PermissionModal:o["default"],JEllipsis:c["default"]},data:function(){return{description:"这是菜单管理页面",columns:u,loading:!1,url:{list:"/sys/permission/list",delete:"/sys/permission/delete",deleteBatch:"/sys/permission/deleteBatch"}}},methods:{loadData:function(){var e=this;this.dataSource=[],Object(a["B"])().then((function(t){t.success&&(console.log(t.result),e.dataSource=t.result)}))},handleDataRule:function(e){this.$refs.PermissionDataRuleList.edit(e)},handleAddSub:function(e){this.$refs.modalForm.title="添加子菜单",this.$refs.modalForm.localMenuType=1,this.$refs.modalForm.disableSubmit=!1,this.$refs.modalForm.edit({status:"1",permsType:"1",route:!0,parentId:e.id})}}},f=d,h=(n("0287"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,"d1a6bdc6",null);t["default"]=p.exports},"25f1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n("0af5");function i(e,t,n,i,a){var s=Object(r["t"])(a,(function(r){return!o(e,t,n,i,r[0],r[1])}));return!s}function o(e,t,n,r,i,o){for(var a=0,s=e[n-r],l=e[n-r+1];t<n;t+=r){var c=e[t],u=e[t+1];l<=o?u>o&&(c-s)*(o-l)-(i-s)*(u-l)>0&&a++:u<=o&&(c-s)*(o-l)-(i-s)*(u-l)<0&&a--,s=c,l=u}return 0!==a}function a(e,t,n,r,i,a){if(0===n.length)return!1;if(!o(e,t,n[0],r,i,a))return!1;for(var s=1,l=n.length;s<l;++s)if(o(e,n[s-1],n[s],r,i,a))return!1;return!0}function s(e,t,n,r,i,o){if(0===n.length)return!1;for(var s=0,l=n.length;s<l;++s){var c=n[s];if(a(e,t,c,r,i,o))return!0;t=c[c.length-1]}return!1}},2658:function(e,t,n){},"26a1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"mengcengone1"},on:{ok:e.handleOk,cancel:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"功能名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入功能名称"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"对应表名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tablename",e.validatorRules.tablename],expression:"[ 'tablename', validatorRules.tablename]"}],attrs:{placeholder:"请输入对应表名称"}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"对应区县",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtcode",e.validatorRules.districtcode],expression:"['districtcode', validatorRules.districtcode]"}],attrs:{placeholder:"请选择适用区县","trigger-change":!0,dictCode:"qxxz_pz",disabled:e.isVerifyPass}})],1)],1),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("div",{staticStyle:{"font-size":"14px",color:"red","margin-left":"65px"}},[n("div",[e._v("\n              注意事项\n            ")]),n("div",[e._v("\n              1.要配置的表必须在zs库和zs_t库都存在,表名称区分大小写。\n            ")]),n("div",[e._v("\n              2.zs库的表必须存在的字段有:审核状态:verify_status(int4),审核类型:shlx(varchar(10)),名称:name(varchar(255)),\n              经度:longitude(varchar(50)),纬度:latitude(varchar(50)),区县字段。\n            ")]),n("div",[e._v("\n              3.zs_t库的表必须存在审核状态:verify_status(int4),审核类型:shlx(varchar(10)),审核意见:shyj(varchar(255)),系统ID:rid(int4)。\n            ")]),n("div",[e._v("\n              4.zs库的字段必须和zs_t库的表字段保持一致。\n            ")]),n("div",[e._v("\n              5.主从表功能配置时必须配置主表关联字段和从表关联字段,并且要在主表的详情页配置上主表关联字段。\n            ")])])],1)],1)],1)],1)},i=[],o=(n("aef6"),n("28a5"),n("df2d"),n("0fea")),a=n("88bc"),s=n.n(a),l=n("2dab"),c=n("fe54"),u=n("c14a"),d=n("d9be"),f=n("de10"),h=n("ba3b"),p={name:"MaterialWarehouseModal",components:{JDate:l["default"],JSelectDepart:c["default"],JSelectUserByDep:u["default"],city_child:d["default"],mapChoosePoint:f["default"],BackMap:h["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},notes:[],model_notes:[],qx:"",qxmc:"",isVerifyPass:!0,confirmLoading:!1,validatorRules:{name:{rules:[{required:!0,message:"请输入功能名称"}]},tablename:{rules:[{required:!0,message:"请输入对应表名称"}]},districtcode:{rules:[{required:!0,message:"请输入对区县"}]}},url:{add:"/templateEditSon/add",edit:"/templateEditSon/edit",notes:"/columnInfo/getDBNotesField/templateedit"},showDefaultParams:[]}},created:function(){this.getquxian()},methods:{fuzhi:function(){this.form.setFieldsValue(s()(this.model,"smid","name","tablename","districtcode"))},getquxian:function(){var e=this,t=this;Object(o["c"])("/columnInfo/getQuxian").then((function(n){if(n.success){var r=n.result,i=r.split(",");t.qxmc=i[0],t.qx=i[1],"3303"==t.qx?e.isVerifyPass=!1:e.isVerifyPass=!0}else t.$message.warning(n.message)}))},close:function(){this.$emit("closetwo")},yincang:function(){this.visible=!1},dongtaibianji:function(){var e=this;Object(o["i"])(this.url.notes,{},"get").then((function(t){t.success&&(e.notes=t.result.notes)}))},add:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},{districtcode:this.qx}),this.visible=!0,this.$nextTick((function(){t.fuzhi()}))},edit:function(e){var t=this;Object(o["i"])(this.url.notes,{},"get").then((function(n){n.success&&(t.notes=n.result.notes,t.form.resetFields(),t.model=Object.assign({},e),t.visible=!0,t.$nextTick((function(){t.fuzhi()})))}))},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(e.model.longitudeLatitude=e.model.longitude+","+e.model.latitude,!n){t.confirmLoading=!0;var i="",a="";e.model.smid?(i+=e.url.edit,a="put",e.$route.path.endsWith("emergency_risk_index")||e.$route.path.endsWith("emergency_resource_index")?i+="/emergency":i+="/shenheku"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("表单提交数据",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))}}},m=p,g=(n("abfb"),n("2877")),v=Object(g["a"])(m,r,i,!1,null,null,null);t["default"]=v.exports},"26ea":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("d329"),a={name:"emergency_resource_index",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("acab"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"3a9c80f2",null);t["default"]=c.exports},"26fa":function(e,t,n){e.exports=s;var r=n("dc1f"),i=n("bbb4"),o=n("2ef0"),a=n("9eab");function s(e){if(e=e||{},e.__reused)throw new Error("Do not reuse objects to configure the elasticsearch Client class: https://github.com/elasticsearch/elasticsearch-js/issues/33");function t(){e.hasOwnProperty("log")||(e.log="warning"),e.hosts||e.host||(e.host="http://localhost:9200"),this.close=function(){this.transport.close()},this.transport=new r(e),o.each(t.prototype,o.bind((function(e,t){e.prototype instanceof i.ApiNamespace&&(this[t]=new e(this.transport,this))}),this)),delete this._namespaces}e.__reused=!0,t.prototype=a.funcEnum(e,"apiVersion",s.apis,"_default"),e.sniffEndpoint||t.prototype!==s.apis["0.90"]||(e.sniffEndpoint="/_cluster/nodes");var l=t;return e.plugins&&(l.prototype=o.cloneDeep(l.prototype),o.each(e.plugins,(function(t){l=t(l,e,{apis:n("726c"),connectors:n("ff05"),loggers:n("5823"),selectors:n("4c87"),serializers:n("793d"),Client:n("26fa"),clientAction:i,Connection:n("0074"),ConnectionPool:n("2035"),Errors:n("de57"),Host:n("4d67"),Log:n("7d33"),Logger:n("270d"),NodesToHost:n("72ce"),Transport:n("dc1f")})||l}))),new l}s.apis=n("726c")},"270d":function(e,t,n){var r=n("2ef0"),i=n("9eab");function o(e,t){this.log=e,this.listeningLevels=[],i.makeBoundMethods(this),this.log.once("closing",this.bound.cleanUpListeners),this.setupListeners(t.levels)}function a(e){return e<10?"0"+e.toString(10):e.toString(10)}function s(e,t){var n=i.repeat(" ",t||2);return(e||"").split(/\r?\n/).map((function(e){return n+e})).join("\n")}o.prototype.timestamp=function(){var e=new Date;return e.getUTCFullYear()+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"Z"},o.prototype.format=function(e,t){return e+": "+this.timestamp()+"\n"+s(t)+"\n\n"},o.prototype.write=function(){throw new Error("This should be overwritten by the logger")},o.prototype.setupListeners=function(e){this.cleanUpListeners(),this.listeningLevels=[],r.each(e,r.bind((function(e){var t="on"+i.ucfirst(e);if(!this.bound[t])throw new Error('Unable to listen for level "'+e+'"');this.listeningLevels.push(e),this.log.on(e,this.bound[t])}),this))},o.prototype.cleanUpListeners=i.handler((function(){r.each(this.listeningLevels,r.bind((function(e){this.log.removeListener(e,this.bound["on"+i.ucfirst(e)])}),this))})),o.prototype.onError=i.handler((function(e){this.write("Error"===e.name?"ERROR":e.name,e.stack)})),o.prototype.onWarning=i.handler((function(e){this.write("WARNING",e)})),o.prototype.onInfo=i.handler((function(e){this.write("INFO",e)})),o.prototype.onDebug=i.handler((function(e){this.write("DEBUG",e)})),o.prototype.onTrace=i.handler((function(e){this.write("TRACE",this._formatTraceMessage(e))})),o.prototype._formatTraceMessage=function(e){return"-> "+e.method+" "+e.url+"\n"+this._prettyJson(e.body)+"\n<- "+e.status+"\n"+this._prettyJson(e.response)},o.prototype._prettyJson=function(e){try{return"string"===typeof e&&(e=JSON.parse(e)),JSON.stringify(e,null,"  ").replace(/'/g,"\\u0027")}catch(t){return"string"===typeof e?e:""}},e.exports=o},2710:function(e,t,n){"use strict";n("104f")},2725:function(e,t,n){"use strict";n.r(t),n.d(t,"JeecgListMixin",(function(){return s}));n("7f7f"),n("ac6a");var r=n("ca00"),i=n("0fea"),o=n("2b0e"),a=n("9fb0"),s=(n("89f2"),n("d737"),n("eec4"),{data:function(){return{tokenHeader:{"X-Access-Token":o["default"].ls.get(a["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],ipagination:{current:1,pageSize:1e3},loading:!1,selectedRowKeys:[],selectionRows:[],dataSourcegd:[],columns3:[{title:"区县",align:"center",width:"15%",dataIndex:"district"},{title:"类型",align:"center",width:"15%",dataIndex:"shlx"},{title:"名称",align:"center",width:"20%",dataIndex:"name"},{title:"审核意见",align:"center",width:"30%",dataIndex:"shyj"},{title:"操作",dataIndex:"action",align:"center",width:"15%",scopedSlots:{customRender:"action"}}]}},created:function(){this.loadData()},mounted:function(){},methods:{loadData:function(){var e=this;if(this.url.list){var t=this.getQueryParams();this.loading=!0,Object(i["d"])(this.url.list,t).then((function(t){t.success&&(e.dataSource=t.result.records,console.log("数据获取完成"+e.dataSource.length),e.dataSourcechufa()),510===t.code&&e.$message.warning(t.message),e.loading=!1}))}else this.$message.error("请设置url.list属性!")},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams));var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,Object(r["b"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData(1)},searchReset:function(){this.queryParam={},this.loadData(1)},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(i["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDeleteForm:function(e){if(this.url.delete){var t=this;Object(i["a"])(t.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},modalFormOk:function(){this.loadData()},mergeArray:function(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)e[n]===t[r]&&e.splice(n,1);return e},dataSourcechufa:function(){var e=this.dataSource;if(this.dataSourcegd=[],e.length>=15)for(var t=0;t<15;t++)this.dataSourcegd.push(e[t]);else for(var n=0;n<e.length;n++)this.dataSourcegd.push(e[n]);this.$refs.mapTable.jiazai=15,console.log("数据处理完成:"+this.dataSourcegd.length)},fugaiquxian:function(){this.$refs.TemplateEditDuoxuan.visible=!0,this.$refs.TemplateEditDuoxuan.value=""}},watch:{"myQueryParam.name":{handler:function(e,t){this.queryParam.name="*"+this.myQueryParam.name+"*"},deep:!0},"queryParam.name":{handler:function(e,t){void 0==e&&(this.myQueryParam.name="")},deep:!0},"queryParam.village":{handler:function(e,t){void 0==e&&(this.showDefaultParams=[])},deep:!0}}})},"27b4":function(e,t,n){"use strict";n("8897")},2829:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFFmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcDpDcmVhdGVEYXRlPSIyMDIwLTAxLTIwVDE3OjE1OjQ4KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMC0wMS0yMFQxNzoxNjoxMiswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMC0wMS0yMFQxNzoxNjoxMiswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpmYmUyZGRjZS01N2MzLTRlNWItYWM3OC01YmQ1NmNmMzkwZTkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ZmJlMmRkY2UtNTdjMy00ZTViLWFjNzgtNWJkNTZjZjM5MGU5IiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZmJlMmRkY2UtNTdjMy00ZTViLWFjNzgtNWJkNTZjZjM5MGU5Ij4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpmYmUyZGRjZS01N2MzLTRlNWItYWM3OC01YmQ1NmNmMzkwZTkiIHN0RXZ0OndoZW49IjIwMjAtMDEtMjBUMTc6MTU6NDgrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAoTWFjaW50b3NoKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4/WsolAAAHs0lEQVRoge2Z228cVx3HP+fM7Ozsfe2117GT+JaguqlzIaGNShOMQERt2n+gVAjEEy/whPqAUKu24qWvPPGCeCHwVHiApEiE0FSqStM2zQ3akvvFt7Vje3e9l7mcw8OMr43Xu3aQFSlfabR7LvP7fb8zZ36/M78RWmseZcitJrBZPBaw1XgsYKvxyAswGw0eevq3rdjKA8eBEWAY6AfS4VgRuAlcBt4D3gXGmzX8ybkfrznWUECTOAq8CjzfwF5HeHwD+BHgA6eAt4H3N+N8M0toEPgLcBZ4idYuhhGecza0MbhREi0J8MwanlkDeBk4D7y4fFwLBWhANLCi0WJF9n8xtPV9T1bxZAVPVprm1PIdMD37NeAES+sbLRRaa4SSBOQbbU8EQgu00KFgCG393lSx11rl05IA07N/AbyxvE8LBVoghGh84VdBaAFaLBcB8Iap4r9siVMLc18GfrW8Q6MRWuL7GqXUGqetDSHBlBItNGJJ/Vumil8D/tCMjWYFDAC/WWpqtAivIhCNmthRAwDVcPkAGqQAIQQ1x8et+4tLKrAmCH19CNx4WAJ+DaQWGCipkMrA8zSpVISRkV727+1Ca3Bdr/EjrMGMSKyowdWrs5w+fYPx8SqmKVDSR2oJiFTo86WHIeAIy6KNEgqpTZTSGIZg/75t/OCVYYaGOpowtRKFQpVqxeHkqes4bmhXeEhtEPo8yjp5ohkBry791UglCaKMpqsryeGnu+nsTFAqOaz9bvTV0CoEWFHBgf1dXLxU4Oat2TAYyOXzf75ZAXnghUUaInholQbTFPT1ZWhrs7lwYRKlNVIGJF1PoTyFYQoiEQPfV7iuwjQkhimDQKs1CBBCku+Mc/vOHJ6nkVqi8Rce6uMhh8mNCji+Yo4Wi2FeSkk2EyWRsqjVPJQCKTUaUCqc5oLvewgh0EpT93yEp4IxpZGmxE6YJBJWeOWDRCiWorsZcvjdWgTXywMjyxsLhrUGIyJpy9oMDmQZGMhQmJrnXx/d45NzY3iuT19fhlLZ4YMP7jExPk9XPkGt5nLu3CgffnSPO3eLdHbEeerJDnb2pbEiBr7Si56W4duNCK53B4ZXNvXib1smSm9/mh0700xPVbhwYYJTf7uObZnkOuIcOtTNF19Oc+KPV3jh2CD79nVy+06Rd975HNfTHH6mm8OHt7N9e4onn8iRy8UozTur/ADw1GYE9D+oMx432be3i73DeQBqNZ+pqSqj90rYlkmp5OApxexcjbt3ikxNV3Fcn1LZYXS0jOMq7k9nceoeWsOePZ08d2QncyfrFIu1IKsvYaARwfWWUGp1h9aatvYozz27g/7eDJWKi+t62LZJW8Ymk41ixwxMKYjbETLpKIlEBNOU2LZJJhOlLRMlHrdQSuM6Hj09KY59b4DubYmmOCzHenfggTmpsz3B0J4cGoHvKZKpCAcPdqG1xoxIdu9qIxm3GBrq4Njzuzh4sJtce4Kv7crx3e8MoJRmaChHW3ss3IJoBgcz5PMJ/nt1hlZqVesJKAG55R22HWH37nZ6tqdx6z7RqIFl2WzvSTE/7xIxJLWaz+UrhSDR7c/T3h7j3t0iSimeGGrH96F/IE0+H8eORQBIJi127cry6flxKhV3NYc1sd4S+speJJOxeOZwN3E7iO/FkoPjKIpFh/mKh9KasbEyFy9PMjU9j2kK7s9UufKfAhOTZQCqVYdi0UErcF2N1iCF4MDXu8hkrNUubzYiuN4duELwGhhCE49HSCYtJibKXPn3FHfvlujdmaYtG+XokZ309aaRAuqOh2FIzIiJ7/m4niJqSQSSW7fnmCzM8+n5caoVl858nIH+LFHLwLYjrMrclzcj4J/AD5eagmLR4U9//pJIRDIzU2Vutko8btHTk+LgoW3UanGkEPi+xvcUTt0JgqLWuAr8MDp9dmGCifF53LpPKm2RzcbwPMXcXJ1Vj957mxFwCvCWz5uZqXLmzC18X2EYEkOCaUpqdYXva8784xZKKbq6Uvi+ZnS0hB032ZZPUiw63J+tYNsGnqOZnCwzVajieeBrhZQSsTIHeMDJzQiYICiBLG5rtQalFEpplPIQlsnwcCfffHYHiYTFzEwFX2lSaRutoLMjTiQqSCUtajWfSiVJNmuTTFp8/PEYfz99g9q8g2EI0GpxPxXi3ZDDhgVAUPpYsS+XUiClQKng6gPcvj2LryS5XAzLknzx+TQI6OvNUKt5XLxeIJ2JksvFGBstUSq7FAoVhBAYhoH5YCZvr0euGQHvA39lVQUiEAKu63PxUoGLlwpopYnFgqQ1X3FQClLJCEprymWXSEQSj5nU6z41xwdA+Xot8idpombU7BvZz4Bv8cDMHGwlwhY1R4EO9vuwNCaEpl73mS974TMaRBr54EBeAn7aDLFmqxLXgZ+saUQuHAJDgmEs9RnGQltgGAJpLM1dgzyhr+sPUwAEtaCW6zYbwOuhr6bQamHrrdDB/wuvA2+2csJGaqNvAq8A5Q2cuxbKoc2WyMPGi7sngAME0WmzOBnaanrZLMdmqtPXCPLDCEGF2W88fQVUeM4IQXi+tlESD+P7wNnwyIdkFj5w9AGZcM4ccItgY3aWYIsy9hB8Ix5/6N5iPBaw1XgsYKvxyAv4H0aS/OU2Qtr2AAAAAElFTkSuQmCC"},2832:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-tabs",{attrs:{defaultActiveKey:"1"},on:{change:e.callback}},[n("a-tab-pane",{key:"1",attrs:{tab:"柱状图"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:10}},[n("a-radio-group",{attrs:{value:e.barType},on:{change:e.statisticst}},[n("a-radio-button",{attrs:{value:"year"}},[e._v("按年统计")]),n("a-radio-button",{attrs:{value:"month"}},[e._v("按月统计")]),n("a-radio-button",{attrs:{value:"category"}},[e._v("按类别统计")]),n("a-radio-button",{attrs:{value:"cabinet"}},[e._v("按柜号统计")])],1)],1),n("a-col",{attrs:{span:14}},[(e.barType,e._e())],1),n("bar",{staticClass:"statistic",attrs:{title:"档案统计",dataSource:e.countSource,height:400}})],1)],1),n("a-tab-pane",{key:"2",attrs:{tab:"饼状图"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:10}},[n("a-radio-group",{attrs:{value:e.pieType},on:{change:e.statisticst}},[n("a-radio-button",{attrs:{value:"year"}},[e._v("按年统计")]),n("a-radio-button",{attrs:{value:"month"}},[e._v("按月统计")]),n("a-radio-button",{attrs:{value:"category"}},[e._v("按类别统计")]),n("a-radio-button",{attrs:{value:"cabinet"}},[e._v("按柜号统计")])],1)],1),n("a-col",{attrs:{span:14}},[(e.pieType,e._e())],1),n("pie",{staticClass:"statistic",attrs:{title:"档案统计",dataSource:e.countSource,height:450}})],1)],1)],1)],1)},i=[],o=n("edd9"),a=n("6cb2"),s=n("da05"),l=n("0fea"),c={name:"ArchivesStatisticst",components:{ACol:s["b"],Bar:o["default"],Pie:a["default"]},data:function(){return{description:"档案统计页面",queryParam:{},countSource:[],barType:"year",barDate:["month","month"],barValue:[],pieType:"year",pieDate:["month","month"],pieValue:[],tabStatus:"bar",url:{getYearCountInfo:"/api/report/getYearCountInfo",getMonthCountInfo:"/api/report/getMonthCountInfo",getCntrNoCountInfo:"/api/report/getCntrNoCountInfo",getCabinetCountInfo:"/api/report/getCabinetCountInfo"}}},created:function(){var e=this.url.getYearCountInfo;this.loadDate(e,"year",{})},methods:{loadDate:function(e,t,n){var r=this;Object(l["d"])(e,n,"get").then((function(e){if(e.success)r.countSource=[],"year"===t&&r.getYearCountSource(e.result),"month"===t&&r.getMonthCountSource(e.result),"category"===t&&r.getCategoryCountSource(e.result),"cabinet"===t&&r.getCabinetCountSource(e.result);else{var n=r;n.$message.warning(e.message)}}))},getYearCountSource:function(e){for(var t=0;t<e.length;t++)"bar"===this.tabStatus?this.countSource.push({x:"".concat(e[t].year,"年"),y:e[t].yearcount}):this.countSource.push({item:"".concat(e[t].year,"年"),count:e[t].yearcount})},getMonthCountSource:function(e){for(var t=0;t<e.length;t++)"bar"===this.tabStatus?this.countSource.push({x:e[t].month,y:e[t].monthcount}):this.countSource.push({item:e[t].month,count:e[t].monthcount})},getCategoryCountSource:function(e){for(var t=0;t<e.length;t++)"bar"===this.tabStatus?this.countSource.push({x:e[t].classifyname,y:e[t].cntrnocount}):this.countSource.push({item:e[t].classifyname,count:e[t].cntrnocount})},getCabinetCountSource:function(e){for(var t=0;t<e.length;t++)"bar"===this.tabStatus?this.countSource.push({x:e[t].cabinetname,y:e[t].cabinetcocunt}):this.countSource.push({item:e[t].cabinetname,count:e[t].cabinetcocunt})},callback:function(e){"1"===e?(this.tabStatus="bar",this.queryDatebar()):(this.tabStatus="pie",this.queryDatepie())},statisticst:function(e){"pie"===this.tabStatus?(this.pieType=e.target.value,this.queryDatepie()):(this.barType=e.target.value,this.queryDatebar())},queryDatebar:function(){this.barValue.length>0?this.getUrl(this.barType,{startTime:this.barValue[0]._d,endTime:this.barValue[1]._d}):this.getUrl(this.barType,{})},queryDatepie:function(){this.pieValue.length>0?this.getUrl(this.pieType,{startTime:this.pieValue[0]._d,endTime:this.pieValue[1]._d}):this.getUrl(this.pieType,{})},searchReset:function(){console.log(this.tabStatus),"pie"===this.tabStatus?this.pieValue=[]:this.barValue=[],this.getUrl(this.barType,{})},getUrl:function(e,t){var n="";"year"===e&&(n=this.url.getYearCountInfo),"month"===e&&(n=this.url.getMonthCountInfo),"category"===e&&(n=this.url.getCntrNoCountInfo),"cabinet"===e&&(n=this.url.getCabinetCountInfo),this.loadDate(n,e,t)},handleBarDate:function(e,t){this.barValue=e,this.barDate=["date"===t[0]?"month":t[0],"date"===t[1]?"month":t[1]]},handlePieDate:function(e,t){this.pieValue=e,this.pieDate=["date"===t[0]?"month":t[0],"date"===t[1]?"month":t[1]]}}},u=c,d=(n("7ebf"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"1cd87338",null);t["default"]=f.exports},2847:function(e,t,n){var r=n("c33a");function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"28a7":function(e,t,n){"use strict";var r=n("58e3"),i=n("5b1a"),o=n("7373"),a=n("5da3"),s=n("33ff"),l=n("ddf93");r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;var d,f=[],h=0;while(null!==(d=l(a,c))){var p=String(d[0]);f[h]=p,""===p&&(a.lastIndex=s(c,o(a.lastIndex),u)),h++}return 0===h?null:f}]}))},"28b3":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("7caa").f,o=n("7373"),a=n("394e"),s=n("5da3"),l=n("fd36"),c=n("8f26"),u="".startsWith,d=Math.min,f=l("startsWith"),h=!c&&!f&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!h&&!f},{startsWith:function(e){var t=String(s(this));a(e);var n=o(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},"28f8":function(e,t,n){"use strict";n("0fd38")},"293b":function(e,t,n){"use strict";n("699f")},2957:function(e,t,n){},2977:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",[n("a-tabs",{attrs:{defaultActiveKey:"1"},on:{change:e.callback}},[n("a-tab-pane",{key:"1",attrs:{tab:"登录日志"}}),n("a-tab-pane",{key:"2",attrs:{tab:"操作日志"}}),n("a-tab-pane",{key:"3",attrs:{tab:"一张图日志"}})],1)],1),n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"搜索日志"}},[n("a-input",{attrs:{placeholder:"请输入搜索关键词"},model:{value:e.queryParam.keyWord,callback:function(t){e.$set(e.queryParam,"keyWord",t)},expression:"queryParam.keyWord"}})],1)],1),n("a-col",{attrs:{md:6,sm:10}},[n("a-form-item",{attrs:{label:"创建时间",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-range-picker",{staticStyle:{width:"210px"},attrs:{format:"YYYY-MM-DD",placeholder:["开始时间","结束时间"]},on:{change:e.onDateChange,ok:e.onDateOk},model:{value:e.queryParam.createTimeRange,callback:function(t){e.$set(e.queryParam,"createTimeRange",t)},expression:"queryParam.createTimeRange"}})],1)],1),"2"===e.tabKey||"3"===e.tabKey?n("a-col",{attrs:{md:5,sm:8}},[n("a-form-item",{staticStyle:{left:"10px"},attrs:{label:"操作类型"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择操作类型",dictCode:"operate_type"},model:{value:e.queryParam.operateType,callback:function(t){e.$set(e.queryParam,"operateType",t)},expression:"queryParam.operateType"}})],1)],1):e._e(),n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-button",{staticStyle:{left:"10px"},attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px",left:"10px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1)],1),n("a-table",{ref:"table",attrs:{size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"expandedRowRender",fn:function(t){return n("div",{staticStyle:{margin:"0"}},[n("div",{staticStyle:{"margin-bottom":"5px"}},[n("a-badge",{staticStyle:{"vertical-align":"middle"},attrs:{status:"success"}}),n("span",{staticStyle:{"vertical-align":"middle"}},[e._v("请求方法:"+e._s(t.method))])],1),n("div",[n("a-badge",{staticStyle:{"vertical-align":"middle"},attrs:{status:"processing"}}),n("span",{staticStyle:{"vertical-align":"middle"}},[e._v("请求参数:"+e._s(t.requestParam))])],1)])}},{key:"logContent",fn:function(e,t){return n("span",{},[n("j-ellipsis",{attrs:{value:e,length:40}})],1)}}])})],1)},i=[],o=(n("6b54"),n("ca00")),a=n("b65a"),s=n("d579"),l={name:"LogList",mixins:[a["a"]],components:{JEllipsis:s["default"]},data:function(){return{description:"这是日志管理页面",queryParam:{ipInfo:"",createTimeRange:[],logType:"1",keyWord:""},tabKey:"1",columns:[{title:"#",dataIndex:"",key:"rowIndex",align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"日志内容",align:"left",dataIndex:"logContent",scopedSlots:{customRender:"logContent"},sorter:!0},{title:"操作人ID",dataIndex:"userid",align:"center",sorter:!0},{title:"操作人名称",dataIndex:"username",align:"center",sorter:!0},{title:"IP",dataIndex:"ip",align:"center",sorter:!0},{title:"耗时(毫秒)",dataIndex:"costTime",align:"center",sorter:!0},{title:"日志类型",dataIndex:"logType_dictText",align:"center"},{title:"创建时间",dataIndex:"createTime",align:"center",sorter:!0}],operateColumn:{title:"操作类型",dataIndex:"operateType_dictText",align:"center"},labelCol:{xs:{span:1},sm:{span:2}},wrapperCol:{xs:{span:10},sm:{span:16}},url:{list:"/sys/log/list"}}},methods:{getQueryParams:function(){console.log(this.queryParam.createTimeRange);var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,delete e.createTimeRange,Object(o["b"])(e)},searchReset:function(){var e=this,t=e.queryParam.logType;e.queryParam={},e.queryParam.logType=t,e.loadData(this.ipagination.current)},callback:function(e){2==e||3==e?(this.tabKey=e.toString(),-1==this.columns.indexOf(this.operateColumn)&&this.columns.splice(7,0,this.operateColumn)):9==this.columns.length&&(this.tabKey="1",-1!=this.columns.indexOf(this.operateColumn)&&this.columns.splice(7,1));var t=this;t.queryParam.logType=e,t.loadData()},onDateChange:function(e,t){console.log(t[0],t[1]),this.queryParam.createTime_begin=t[0],this.queryParam.createTime_end=t[1]},onDateOk:function(e){console.log(e)}}},c=l,u=(n("31b7"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"229d8e08",null);t["default"]=d.exports},"29c3":function(e,t,n){},"29f6":function(e,t,n){"use strict";t["a"]={POINT:"point",LINE:"line"}},"2a1c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:"corn表达式",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.change,cancel:e.close}},[n("div",{staticClass:"card-container"},[n("a-tabs",{attrs:{type:"card"}},[n("a-tab-pane",{key:"1",attrs:{type:"card"}},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 秒")],1),n("a-radio-group",{model:{value:e.result.second.cronEvery,callback:function(t){e.$set(e.result.second,"cronEvery",t)},expression:"result.second.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一秒钟")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n              "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.second.incrementIncrement,callback:function(t){e.$set(e.result.second,"incrementIncrement",t)},expression:"result.second.incrementIncrement"}}),e._v("\n              秒执行 从\n              "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.second.incrementStart,callback:function(t){e.$set(e.result.second,"incrementStart",t)},expression:"result.second.incrementStart"}}),e._v("\n              秒开始\n            ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"3"}},[e._v("具体秒数(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.second.specificSpecific,callback:function(t){e.$set(e.result.second,"specificSpecific",t)},expression:"result.second.specificSpecific"}},e._l(60,(function(t,r){return n("a-select-option",{key:r,attrs:{value:r}},[e._v(e._s(r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("周期从\n              "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.second.rangeStart,callback:function(t){e.$set(e.result.second,"rangeStart",t)},expression:"result.second.rangeStart"}}),e._v("\n              到\n              "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.second.rangeEnd,callback:function(t){e.$set(e.result.second,"rangeEnd",t)},expression:"result.second.rangeEnd"}}),e._v("\n              秒\n            ")],1)],1)],1)],1),n("a-tab-pane",{key:"2"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v("分")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.minute.cronEvery,callback:function(t){e.$set(e.result.minute,"cronEvery",t)},expression:"result.minute.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一分钟")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.minute.incrementIncrement,callback:function(t){e.$set(e.result.minute,"incrementIncrement",t)},expression:"result.minute.incrementIncrement"}}),e._v("\n                分执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.minute.incrementStart,callback:function(t){e.$set(e.result.minute,"incrementStart",t)},expression:"result.minute.incrementStart"}}),e._v("\n                分开始\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"3"}},[e._v("具体分钟数(可多选)")]),n("a-select",{staticStyle:{width:"340px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.minute.specificSpecific,callback:function(t){e.$set(e.result.minute,"specificSpecific",t)},expression:"result.minute.specificSpecific"}},e._l(Array(60),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r}},[e._v(" "+e._s(r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("周期从\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:60},model:{value:e.result.minute.rangeStart,callback:function(t){e.$set(e.result.minute,"rangeStart",t)},expression:"result.minute.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:59},model:{value:e.result.minute.rangeEnd,callback:function(t){e.$set(e.result.minute,"rangeEnd",t)},expression:"result.minute.rangeEnd"}}),e._v("\n                分\n              ")],1)],1)],1)],1)]),n("a-tab-pane",{key:"3"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 时")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.hour.cronEvery,callback:function(t){e.$set(e.result.hour,"cronEvery",t)},expression:"result.hour.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一小时")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.incrementIncrement,callback:function(t){e.$set(e.result.hour,"incrementIncrement",t)},expression:"result.hour.incrementIncrement"}}),e._v("\n                小时执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.incrementStart,callback:function(t){e.$set(e.result.hour,"incrementStart",t)},expression:"result.hour.incrementStart"}}),e._v("\n                小时开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"3"}},[e._v("具体小时数(可多选)")]),n("a-select",{staticStyle:{width:"340px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.hour.specificSpecific,callback:function(t){e.$set(e.result.hour,"specificSpecific",t)},expression:"result.hour.specificSpecific"}},e._l(Array(24),(function(t,r){return n("a-select-option",{key:r},[e._v(e._s(r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("周期从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.rangeStart,callback:function(t){e.$set(e.result.hour,"rangeStart",t)},expression:"result.hour.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:23},model:{value:e.result.hour.rangeEnd,callback:function(t){e.$set(e.result.hour,"rangeEnd",t)},expression:"result.hour.rangeEnd"}}),e._v("\n                小时\n              ")],1)],1)],1)],1)]),n("a-tab-pane",{key:"4"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v("  天")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.day.cronEvery,callback:function(t){e.$set(e.result.day,"cronEvery",t)},expression:"result.day.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一天")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:7},model:{value:e.result.week.incrementIncrement,callback:function(t){e.$set(e.result.week,"incrementIncrement",t)},expression:"result.week.incrementIncrement"}}),e._v("\n                周执行 从\n                "),n("a-select",{attrs:{size:"small"},model:{value:e.result.week.incrementStart,callback:function(t){e.$set(e.result.week,"incrementStart",t)},expression:"result.week.incrementStart"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1),e._v("\n                开始\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"3"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.incrementIncrement,callback:function(t){e.$set(e.result.day,"incrementIncrement",t)},expression:"result.day.incrementIncrement"}}),e._v("\n                天执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.incrementStart,callback:function(t){e.$set(e.result.day,"incrementStart",t)},expression:"result.day.incrementStart"}}),e._v("\n                天开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"4"}},[e._v("具体星期几(可多选)")]),n("a-select",{staticStyle:{width:"340px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.week.specificSpecific,callback:function(t){e.$set(e.result.week,"specificSpecific",t)},expression:"result.week.specificSpecific"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"5"}},[e._v("具体天数(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",mode:"multiple"},model:{value:e.result.day.specificSpecific,callback:function(t){e.$set(e.result.day,"specificSpecific",t)},expression:"result.day.specificSpecific"}},e._l(Array(31),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r}},[e._v(e._s(r+1))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"6"}},[e._v("在这个月的最后一天")])],1),n("a-row",[n("a-radio",{attrs:{value:"7"}},[e._v("在这个月的最后一个工作日")])],1),n("a-row",[n("a-radio",{attrs:{value:"8"}},[e._v("在这个月的最后一个\n                "),n("a-select",{attrs:{size:"small"},model:{value:e.result.day.cronLastSpecificDomDay,callback:function(t){e.$set(e.result.day,"cronLastSpecificDomDay",t)},expression:"result.day.cronLastSpecificDomDay"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1)],1)],1),n("a-row",[n("a-radio",{attrs:{value:"9"}},[n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.cronDaysBeforeEomMinus,callback:function(t){e.$set(e.result.day,"cronDaysBeforeEomMinus",t)},expression:"result.day.cronDaysBeforeEomMinus"}}),e._v("\n                在本月底前\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"10"}},[e._v("最近的工作日(周一至周五)至本月\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:31},model:{value:e.result.day.cronDaysNearestWeekday,callback:function(t){e.$set(e.result.day,"cronDaysNearestWeekday",t)},expression:"result.day.cronDaysNearestWeekday"}}),e._v("\n                日\n              ")],1)],1),n("a-row",[n("a-radio",{attrs:{value:"11"}},[e._v("在这个月的第\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:5},model:{value:e.result.week.cronNthDayNth,callback:function(t){e.$set(e.result.week,"cronNthDayNth",t)},expression:"result.week.cronNthDayNth"}}),e._v("\n                个\n                "),n("a-select",{attrs:{size:"small"},model:{value:e.result.week.cronNthDayDay,callback:function(t){e.$set(e.result.week,"cronNthDayDay",t)},expression:"result.week.cronNthDayDay"}},e._l(Array(7),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r+1}},[e._v(e._s(e.weekDays[r]))])})),1)],1)],1)],1)],1)]),n("a-tab-pane",{key:"5"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 月")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.month.cronEvery,callback:function(t){e.$set(e.result.month,"cronEvery",t)},expression:"result.month.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一月")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:12},model:{value:e.result.month.incrementIncrement,callback:function(t){e.$set(e.result.month,"incrementIncrement",t)},expression:"result.month.incrementIncrement"}}),e._v("\n                月执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:0,max:12},model:{value:e.result.month.incrementStart,callback:function(t){e.$set(e.result.month,"incrementStart",t)},expression:"result.month.incrementStart"}}),e._v("\n                月开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"3"}},[e._v("具体月数(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",filterable:"",mode:"multiple"},model:{value:e.result.month.specificSpecific,callback:function(t){e.$set(e.result.month,"specificSpecific",t)},expression:"result.month.specificSpecific"}},e._l(Array(12),(function(t,r){return n("a-select-option",{key:r,attrs:{value:r}},[e._v(e._s(r+1))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("从\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:12},model:{value:e.result.month.rangeStart,callback:function(t){e.$set(e.result.month,"rangeStart",t)},expression:"result.month.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:12},model:{value:e.result.month.rangeEnd,callback:function(t){e.$set(e.result.month,"rangeEnd",t)},expression:"result.month.rangeEnd"}}),e._v("\n                月之间的每个月\n              ")],1)],1)],1)],1)]),n("a-tab-pane",{key:"6"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"schedule"}}),e._v(" 年")],1),n("div",{staticClass:"tabBody"},[n("a-radio-group",{model:{value:e.result.year.cronEvery,callback:function(t){e.$set(e.result.year,"cronEvery",t)},expression:"result.year.cronEvery"}},[n("a-row",[n("a-radio",{attrs:{value:"1"}},[e._v("每一年")])],1),n("a-row",[n("a-radio",{attrs:{value:"2"}},[e._v("每隔\n                "),n("a-input-number",{attrs:{size:"small",min:1,max:99},model:{value:e.result.year.incrementIncrement,callback:function(t){e.$set(e.result.year,"incrementIncrement",t)},expression:"result.year.incrementIncrement"}}),e._v("\n                年执行 从\n                "),n("a-input-number",{attrs:{size:"small",min:2019,max:2119},model:{value:e.result.year.incrementStart,callback:function(t){e.$set(e.result.year,"incrementStart",t)},expression:"result.year.incrementStart"}}),e._v("\n                年开始\n              ")],1)],1),n("a-row",[n("a-radio",{staticClass:"long",attrs:{value:"3"}},[e._v("具体年份(可多选)")]),n("a-select",{staticStyle:{width:"354px"},attrs:{size:"small",filterable:"",mode:"multiple"},model:{value:e.result.year.specificSpecific,callback:function(t){e.$set(e.result.year,"specificSpecific",t)},expression:"result.year.specificSpecific"}},e._l(Array(100),(function(t,r){return n("a-select-option",{key:r,attrs:{value:2019+r}},[e._v(e._s(2019+r))])})),1)],1),n("a-row",[n("a-radio",{attrs:{value:"4"}},[e._v("从\n                "),n("a-input-number",{attrs:{size:"small",min:2019,max:2119},model:{value:e.result.year.rangeStart,callback:function(t){e.$set(e.result.year,"rangeStart",t)},expression:"result.year.rangeStart"}}),e._v("\n                到\n                "),n("a-input-number",{attrs:{size:"small",min:2019,max:2119},model:{value:e.result.year.rangeEnd,callback:function(t){e.$set(e.result.year,"rangeEnd",t)},expression:"result.year.rangeEnd"}}),e._v("\n                年之间的每一年\n              ")],1)],1)],1)],1)])],1),n("div",{staticClass:"bottom"},[n("span",{staticClass:"value"},[e._v(e._s(this.cron.label))])])],1)])},i=[],o=n("53ca"),a=(n("6b54"),n("88bc"),{name:"VueCron",props:["data","i18n"],data:function(){return{visible:!1,confirmLoading:!1,size:"large",weekDays:["天","一","二","三","四","五","六"].map((function(e){return"星期"+e})),result:{second:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:0,specificSpecific:[]},minute:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:"0",specificSpecific:[]},hour:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:"0",rangeEnd:"0",specificSpecific:[]},day:{cronEvery:"",incrementStart:1,incrementIncrement:"1",rangeStart:"",rangeEnd:"",specificSpecific:[],cronLastSpecificDomDay:1,cronDaysBeforeEomMinus:"",cronDaysNearestWeekday:""},week:{cronEvery:"",incrementStart:1,incrementIncrement:"1",specificSpecific:[],cronNthDayDay:1,cronNthDayNth:"1"},month:{cronEvery:"",incrementStart:3,incrementIncrement:5,rangeStart:1,rangeEnd:1,specificSpecific:[]},year:{cronEvery:"",incrementStart:2017,incrementIncrement:1,rangeStart:2019,rangeEnd:2019,specificSpecific:[]},label:""},output:{second:{cronEvery:"",incrementStart:"",incrementIncrement:"",rangeStart:"",rangeEnd:"",specificSpecific:[]},minute:{cronEvery:"",incrementStart:"",incrementIncrement:"",rangeStart:"",rangeEnd:"",specificSpecific:[]},hour:{cronEvery:"",incrementStart:"",incrementIncrement:"",rangeStart:"",rangeEnd:"",specificSpecific:[]},day:{cronEvery:"",incrementStart:"",incrementIncrement:"",rangeStart:"",rangeEnd:"",specificSpecific:[],cronLastSpecificDomDay:"",cronDaysBeforeEomMinus:"",cronDaysNearestWeekday:""},week:{cronEvery:"",incrementStart:"",incrementIncrement:"",specificSpecific:[],cronNthDayDay:"",cronNthDayNth:""},month:{cronEvery:"",incrementStart:"",incrementIncrement:"",rangeStart:"",rangeEnd:"",specificSpecific:[]},year:{cronEvery:"",incrementStart:"",incrementIncrement:"",rangeStart:"",rangeEnd:"",specificSpecific:[]}}}},computed:{modalWidth:function(){return 608},text:function(){return Language["cn"]},secondsText:function(){var e="",t=this.result.second.cronEvery;switch(t.toString()){case"1":e="*";break;case"2":e=this.result.second.incrementStart+"/"+this.result.second.incrementIncrement;break;case"3":this.result.second.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.second.rangeStart+"-"+this.result.second.rangeEnd;break}return e},minutesText:function(){var e="",t=this.result.minute.cronEvery;switch(t.toString()){case"1":e="*";break;case"2":e=this.result.minute.incrementStart+"/"+this.result.minute.incrementIncrement;break;case"3":this.result.minute.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.minute.rangeStart+"-"+this.result.minute.rangeEnd;break}return e},hoursText:function(){var e="",t=this.result.hour.cronEvery;switch(t.toString()){case"1":e="*";break;case"2":e=this.result.hour.incrementStart+"/"+this.result.hour.incrementIncrement;break;case"3":this.result.hour.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.hour.rangeStart+"-"+this.result.hour.rangeEnd;break}return e},daysText:function(){var e="",t=this.result.day.cronEvery;switch(t.toString()){case"1":break;case"2":case"4":case"11":e="?";break;case"3":e=this.result.day.incrementStart+"/"+this.result.day.incrementIncrement;break;case"5":this.result.day.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"6":e="L";break;case"7":e="LW";break;case"8":e=this.result.day.cronLastSpecificDomDay+"L";break;case"9":e="L-"+this.result.day.cronDaysBeforeEomMinus;break;case"10":e=this.result.day.cronDaysNearestWeekday+"W";break}return e},weeksText:function(){var e="",t=this.result.day.cronEvery;switch(t.toString()){case"1":case"3":case"5":e="?";break;case"2":e=this.result.week.incrementStart+"/"+this.result.week.incrementIncrement;break;case"4":this.result.week.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"6":case"7":case"8":case"9":case"10":e="?";break;case"11":e=this.result.week.cronNthDayDay+"#"+this.result.week.cronNthDayNth;break}return e},monthsText:function(){var e="",t=this.result.month.cronEvery;switch(t.toString()){case"1":e="*";break;case"2":e=this.result.month.incrementStart+"/"+this.result.month.incrementIncrement;break;case"3":this.result.month.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.month.rangeStart+"-"+this.result.month.rangeEnd;break}return e},yearsText:function(){var e="",t=this.result.year.cronEvery;switch(t.toString()){case"1":e="*";break;case"2":e=this.result.year.incrementStart+"/"+this.result.year.incrementIncrement;break;case"3":this.result.year.specificSpecific.map((function(t){e+=t+","})),e=e.slice(0,-1);break;case"4":e=this.result.year.rangeStart+"-"+this.result.year.rangeEnd;break}return e},cron:function(){return{value:this.result,label:"".concat(this.secondsText||"*"," ").concat(this.minutesText||"*"," ").concat(this.hoursText||"*"," ").concat(this.daysText||"*"," ").concat(this.monthsText||"*"," ").concat(this.weeksText||"*"," ").concat(this.yearsText||"*")}}},watch:{data:function(){}},methods:{show:function(){Object.assign(this.data.value,this.result),console.log("data初始化",this.data),this.visible=!0},getValue:function(){return this.cron},change:function(){console.log("返回前",this.cron),this.$emit("change",this.cron),this.close(),this.visible=!1},close:function(){this.visible=!1},rest:function(e){for(var t in e)if(console.log(e[t]),e[t]instanceof Object)this.rest(e[t]);else switch(Object(o["a"])(e[t])){case"object":e[t]=[];break;case"string":e[t]="";break;case"number":e[t]=null;break}},callback:function(e){console.log(e)}}}),s=a,l=(n("3132"),n("726d"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"15bed558",null);t["default"]=c.exports},"2a5d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),n("div",{staticClass:"map",attrs:{id:"map"}})],1)},i=[],o=(n("c5f6"),n("6b54"),n("a481"),n("28a5"),n("5bc0"),n("5eee")),a=n("a2c7"),s=n("480c"),l=n("3e6b"),c=n("d0e9"),u=n("91b1"),d=n("58315"),f=n("2ef1"),h=n("256f"),p=n("a568"),m=n("020f"),g=n("6c77"),v=n("6cbf"),y=n("8295"),b=n("83a6"),_=n("8682"),w=n("4cdf"),x=n("f403"),S=n("0af5"),C=n("78db"),E=n("84a1"),k={name:"mapChooseLine",components:{aSelect:E["default"]},data:function(){return{vector:{},source:{},map:{},raster:new s["a"]({source:new c["a"]}),centerArr:[120.6790539441963,27.9979803194757]}},mounted:function(){this.init()},created:function(){},watch:{model:{handler:function(e,t){this.vector.getSource().clear();var n=this.centerArr;void 0!=e[this.pointKey]&&(n=this.checkModel(),this.initPoint(n)),this.map.getView().animate({center:[n[0],n[1]]})},deep:!0}},methods:{chooseAddress:function(e){var t=e.split(",");this.map.getView().zoom=16,this.map.getView().animate({center:[t[0],t[1]]}),this.$emit("lonlatChanged",t[0]+","+t[1]);var n=[t[0],t[1]];this.addVectorLabel("",n)},getTdtLayer:function(e){var t,n="http://t2.tianditu.gov.cn/DataServer?T="+e+"&x={x}&y={y}&l={z}&tk=8971e4c7b3640d506c2dc111221af6a0",r=Object(h["f"])("EPSG:4326"),i=[-180,-90,180,90],o=Object(S["E"])(i)/512,a=new Array(16);for(t=0;t<16;++t)a[t]=o/Math.pow(2,t);var l=Object(S["C"])(i),c=new s["a"]({extent:[-180,-90,180,90],source:new u["a"]({tileUrlFunction:function(e){var t=e[0]+1,r=e[1],i=-e[2]-1,o=Math.pow(2,t+1);return r%=o,r*o<0&&(r+=o),n.replace("{z}",t.toString()).replace("{y}",i.toString()).replace("{x}",r.toString())},projection:r,tileGrid:new C["a"]({origin:l,resolutions:a,tileSize:256})})});return c},init:function(){Object(h["o"])(),this.initVariable();var e=this.checkModel();this.initMap(e),this.initEvent()},initVariable:function(){this.source=new d["a"],this.vector=new l["a"]({source:this.source,style:this.createLabelStyle()})},checkModel:function(){var e=this.model[this.pointKey];if(null!=e&&void 0!=e&&""!=e){var t=e.split(",");if(2==t.length){for(var n=0;n<t.length;n++)t[n]=Number(t[n]);return this.initPoint(t),t}}return this.centerArr},initMap:function(e){var t=new s["a"]({source:new f["a"]({url:"http://t3.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=394404c8b901574fdc4cdf8c18a98448"})}),n=new s["a"]({source:new f["a"]({url:"http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=394404c8b901574fdc4cdf8c18a98448"})});this.map=new o["a"]({layers:[t,n,this.vector],target:"map",view:new a["a"]({center:[e[0],e[1]],zoom:12,projection:"EPSG:4326"})})},initEvent:function(){var e=this;this.map.on("singleclick",(function(t){console.log(t);var n=e.map.getEventCoordinate(t.originalEvent);e.$emit("lonlatChanged",n[0]+","+n[1]);var r=[n[0],n[1]];e.addVectorLabel("",r)}));var t=new m["a"]({coordinateFormat:function(e){return Object(p["f"])(e,"经度:{x} 纬度:{y}",2)},projection:"EPSG:4326",className:"custom-mouse-position",target:document.getElementById("mouse-position"),undefinedHTML:"&nbsp;"});this.map.addControl(t)},addVectorLabel:function(e,t){var n=new w["a"]({geometry:new x["a"](t),name:e});n.setStyle(this.createLabelStyle(n)),this.vector.getSource().clear(),this.vector.getSource().addFeature(n)},createLabelStyle:function(e){var t=" ";return void 0!=e&&(t=e.get("name")),new g["c"]({image:new v["a"]({anchor:[.5,20],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"}),text:new y["a"]({textAlign:"center",textBaseline:"middle",font:"normal 14px 微软雅黑",text:t,fill:new b["a"]({color:"#fff"}),stroke:new _["a"]({color:"#ffcc33",width:2})}),zIndex:20})},initPoint:function(e){var t=[e[0],e[1]];this.addVectorLabel("",t)}},props:["model","pointKey"]},O=k,T=(n("f2be"),n("2877")),I=Object(T["a"])(O,r,i,!1,null,null,null);t["default"]=I.exports},"2a68":function(e,t,n){var r={"./views/404":["8cdb",9],"./views/404.vue":["8cdb",9],"./views/Home":["bb51",9],"./views/Home.vue":["bb51",9],"./views/TemplateEditSon/TemplateEditSon":["0451",9],"./views/TemplateEditSon/TemplateEditSon.vue":["0451",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongModal1":["166f",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongModal1.vue":["166f",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongModal2":["2286b",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongModal2.vue":["2286b",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongtwo":["7362",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongtwo.vue":["7362",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonDuoxuan":["6434",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonDuoxuan.vue":["6434",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonMixins":["2725",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonMixins.js":["2725",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonMixinstwo":["8f2c",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonMixinstwo.js":["8f2c",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonModal":["26a1",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonModal.vue":["26a1",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonModaltwo":["2ab0",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonModaltwo.vue":["2ab0",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonTable":["d737",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonTable.vue":["d737",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonTabletwo":["ce6e",9],"./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonTabletwo.vue":["ce6e",9],"./views/account/center/Index":["f2f0",9],"./views/account/center/Index.vue":["f2f0",9],"./views/account/center/page":["cb3d",9],"./views/account/center/page/":["cb3d",9],"./views/account/center/page/App":["2f5e",9],"./views/account/center/page/App.vue":["2f5e",9],"./views/account/center/page/Article":["b8ea",9],"./views/account/center/page/Article.vue":["b8ea",9],"./views/account/center/page/Project":["b8c5",9],"./views/account/center/page/Project.vue":["b8c5",9],"./views/account/center/page/index":["cb3d",9],"./views/account/center/page/index.js":["cb3d",9],"./views/account/settings/AvatarModal":["8d90",9],"./views/account/settings/AvatarModal.vue":["8d90",9],"./views/account/settings/BaseSetting":["33e6",9],"./views/account/settings/BaseSetting.vue":["33e6",9],"./views/account/settings/Binding":["91be",9],"./views/account/settings/Binding.vue":["91be",9],"./views/account/settings/Custom":["55c3",9],"./views/account/settings/Custom.vue":["55c3",9],"./views/account/settings/Index":["cd07",9],"./views/account/settings/Index.vue":["cd07",9],"./views/account/settings/Notification":["0c3f",9],"./views/account/settings/Notification.vue":["0c3f",9],"./views/account/settings/Security":["a9a9",9],"./views/account/settings/Security.vue":["a9a9",9],"./views/activiti/ActivitiList":["04f5",9],"./views/activiti/ActivitiList.vue":["04f5",9],"./views/activiti/modules/ActivitiModal":["0b20",9],"./views/activiti/modules/ActivitiModal.vue":["0b20",9],"./views/activiti/modules/ActivitiModal__Style#Drawer":["4489",9],"./views/activiti/modules/ActivitiModal__Style#Drawer.vue":["4489",9],"./views/aqsc/aqsc_category/aqsc_category":["6a70",9],"./views/aqsc/aqsc_category/aqsc_category.vue":["6a70",9],"./views/aqsc/aqsc_category/model/aqscCategoryModel":["2c74",9],"./views/aqsc/aqsc_category/model/aqscCategoryModel.vue":["2c74",9],"./views/aqsc/aqsc_category/modules/AqscCategoryDistrictModal":["631d",9],"./views/aqsc/aqsc_category/modules/AqscCategoryDistrictModal.vue":["631d",9],"./views/coverage/CoverageList":["09cc",9],"./views/coverage/CoverageList.vue":["09cc",9],"./views/coverage/modules/CoverageModal":["4f86",9],"./views/coverage/modules/CoverageModal.vue":["4f86",9],"./views/coverage/modules/CoverageModal__Style#Drawer":["e46f",9],"./views/coverage/modules/CoverageModal__Style#Drawer.vue":["e46f",9],"./views/dashboard/Analysis":["2f3a",9],"./views/dashboard/Analysis.vue":["2f3a",9],"./views/dashboard/Monitor":["0b56",9],"./views/dashboard/Monitor.vue":["0b56",9],"./views/dashboard/Workplace":["004c",9],"./views/dashboard/Workplace.vue":["004c",9],"./views/exception/403":["e409",9],"./views/exception/403.vue":["e409",9],"./views/exception/404":["cc89",9],"./views/exception/404.vue":["cc89",9],"./views/exception/500":["6c05",9],"./views/exception/500.vue":["6c05",9],"./views/exception/ExceptionPage":["0673",9],"./views/exception/ExceptionPage.vue":["0673",9],"./views/exception/type":["cd0a",9],"./views/exception/type.js":["cd0a",9],"./views/form/BasicForm":["6239",9],"./views/form/BasicForm.vue":["6239",9],"./views/form/advancedForm/AdvancedForm":["70d7",9],"./views/form/advancedForm/AdvancedForm.vue":["70d7",9],"./views/form/advancedForm/RepositoryForm":["cd43",9],"./views/form/advancedForm/RepositoryForm.vue":["cd43",9],"./views/form/advancedForm/TaskForm":["8dd6",9],"./views/form/advancedForm/TaskForm.vue":["8dd6",9],"./views/form/jzjz/MenuModuleList":["f949",9],"./views/form/jzjz/MenuModuleList.vue":["f949",9],"./views/form/jzjz/modules/MenuModuleModal":["34f2",9],"./views/form/jzjz/modules/MenuModuleModal.vue":["34f2",9],"./views/form/map_point_quart_line/MapPointQuartLineList":["ab7a",9],"./views/form/map_point_quart_line/MapPointQuartLineList.vue":["ab7a",9],"./views/form/map_point_quart_line/modules/MapPointQuartLineModal":["7f04",9],"./views/form/map_point_quart_line/modules/MapPointQuartLineModal.vue":["7f04",9],"./views/form/map_point_quart_line/modules/MapPointQuartLineModal__Style#Drawer":["0b36",9],"./views/form/map_point_quart_line/modules/MapPointQuartLineModal__Style#Drawer.vue":["0b36",9],"./views/form/menuindex/JZJZHomePage":["84a6",9],"./views/form/menuindex/JZJZHomePage.vue":["84a6",9],"./views/form/menuindex/MonitorHomePage":["7679",9],"./views/form/menuindex/MonitorHomePage.vue":["7679",9],"./views/form/menuindex/SafeRiskHomePage":["3d45",9],"./views/form/menuindex/SafeRiskHomePage.vue":["3d45",9],"./views/form/monitor/MenuModuleList":["c2f8",9],"./views/form/monitor/MenuModuleList.vue":["c2f8",9],"./views/form/monitor/modules/MenuModuleModal":["1720",9],"./views/form/monitor/modules/MenuModuleModal.vue":["1720",9],"./views/form/qyyqgl/JeecgOrderCustomerList":["2fe0",9],"./views/form/qyyqgl/JeecgOrderCustomerList.vue":["2fe0",9],"./views/form/qyyqgl/JeecgOrderDMainList":["6c57",9],"./views/form/qyyqgl/JeecgOrderDMainList.vue":["6c57",9],"./views/form/qyyqgl/TableExpandeSu":["5422",9],"./views/form/qyyqgl/TableExpandeSu.vue":["5422",9],"./views/form/qyyqgl/modules/JeecgOrderCustomerModal":["4dc0",9],"./views/form/qyyqgl/modules/JeecgOrderCustomerModal.vue":["4dc0",9],"./views/form/qyyqgl/modules/JeecgOrderDMainModal":["2143",9],"./views/form/qyyqgl/modules/JeecgOrderDMainModal.vue":["2143",9],"./views/form/qyyqgl/modules/planeFigureModal":["826f",9],"./views/form/qyyqgl/modules/planeFigureModal.vue":["826f",9],"./views/form/saferisk/MenuModuleList":["22c5",9],"./views/form/saferisk/MenuModuleList.vue":["22c5",9],"./views/form/saferisk/modules/MenuModuleModal":["78e4",9],"./views/form/saferisk/modules/MenuModuleModal.vue":["78e4",9],"./views/form/smoke/SmokeAlarmDeviceHisList":["f6f8",9],"./views/form/smoke/SmokeAlarmDeviceHisList.vue":["f6f8",9],"./views/form/smoke/SmokeAlarmDeviceList":["5293",9],"./views/form/smoke/SmokeAlarmDeviceList.vue":["5293",9],"./views/form/smoke/SmokeDeviceList":["46f0",9],"./views/form/smoke/SmokeDeviceList.vue":["46f0",9],"./views/form/smoke/modules/SmokeAlarmDeviceHisModal":["4f7d",9],"./views/form/smoke/modules/SmokeAlarmDeviceHisModal.vue":["4f7d",9],"./views/form/smoke/modules/SmokeAlarmDeviceModal":["ab53",9],"./views/form/smoke/modules/SmokeAlarmDeviceModal.vue":["ab53",9],"./views/form/smoke/modules/SmokeDeviceModal":["9b7d",9],"./views/form/smoke/modules/SmokeDeviceModal.vue":["9b7d",9],"./views/form/stepForm/Step1":["82ef",9],"./views/form/stepForm/Step1.vue":["82ef",9],"./views/form/stepForm/Step2":["f4a3",9],"./views/form/stepForm/Step2.vue":["f4a3",9],"./views/form/stepForm/Step3":["a462",9],"./views/form/stepForm/Step3.vue":["a462",9],"./views/form/stepForm/StepForm":["f311",9],"./views/form/stepForm/StepForm.vue":["f311",9],"./views/form/template/TemplateList":["41b8",9],"./views/form/template/TemplateList.vue":["41b8",9],"./views/form/template/XwyTemplateList":["ba5a",9],"./views/form/template/XwyTemplateList.vue":["ba5a",9],"./views/form/template/modules/Fileup":["98ff",9],"./views/form/template/modules/Fileup.vue":["98ff",9],"./views/form/template/modules/TemplateModal":["b376",9],"./views/form/template/modules/TemplateModal.vue":["b376",9],"./views/form/template/modules/XwyTemplateModal":["237a",9],"./views/form/template/modules/XwyTemplateModal.vue":["237a",9],"./views/form/template_aqjgzf/TemplateList":["2113",9],"./views/form/template_aqjgzf/TemplateList.vue":["2113",9],"./views/form/template_aqjgzf/mapTable":["6524",9],"./views/form/template_aqjgzf/mapTable.vue":["6524",9],"./views/form/template_aqjgzf/modules/TemplateModal":["247d",9],"./views/form/template_aqjgzf/modules/TemplateModal.vue":["247d",9],"./views/form/templateson/TemplatesonList":["16fd",9],"./views/form/templateson/TemplatesonList.vue":["16fd",9],"./views/form/templateson/modules/Fileup":["ab8b",9],"./views/form/templateson/modules/Fileup.vue":["ab8b",9],"./views/form/templateson/modules/TemplateeditsonTabletwo":["ba2e",9],"./views/form/templateson/modules/TemplateeditsonTabletwo.vue":["ba2e",9],"./views/form/templateson/modules/TemplatesonModal":["dc6f",9],"./views/form/templateson/modules/TemplatesonModal.vue":["dc6f",9],"./views/form/templateson/modules/TemplatesonModaltwo":["b9ae",9],"./views/form/templateson/modules/TemplatesonModaltwo.vue":["b9ae",9],"./views/form/templatety/JeecgListMixinsT":["657b",9],"./views/form/templatety/JeecgListMixinsT.js":["657b",9],"./views/form/templatety/TemplateList":["9c41",9],"./views/form/templatety/TemplateList.vue":["9c41",9],"./views/form/templatety/TemplateModal":["9df0",9],"./views/form/templatety/TemplateModal.vue":["9df0",9],"./views/form/templatety/mapTable":["d8bd",9],"./views/form/templatety/mapTable.vue":["d8bd",9],"./views/form/test_parent_test_122/TestParentTest_1List":["94f4",9],"./views/form/test_parent_test_122/TestParentTest_1List.vue":["94f4",9],"./views/form/test_parent_test_122/modules/TestParentTest_1Modal":["6a5c",9],"./views/form/test_parent_test_122/modules/TestParentTest_1Modal.vue":["6a5c",9],"./views/form/video/CompanyVideoList":["a29b",9],"./views/form/video/CompanyVideoList.vue":["a29b",9],"./views/form/video/modules/CompanyVideoModal":["f4bf",9],"./views/form/video/modules/CompanyVideoModal.vue":["f4bf",9],"./views/form/video/modules/CompanyVideoModal__Style#Drawer":["6bfc",9],"./views/form/video/modules/CompanyVideoModal__Style#Drawer.vue":["6bfc",9],"./views/form/waterbureau/start/Start":["ca84",9],"./views/form/waterbureau/start/Start.vue":["ca84",9],"./views/jeecg/ImagPreview":["8629",9],"./views/jeecg/ImagPreview.vue":["8629",9],"./views/jeecg/ImgDragSort":["042c",9],"./views/jeecg/ImgDragSort.vue":["042c",9],"./views/jeecg/ImgTurnPage":["4874",9],"./views/jeecg/ImgTurnPage.vue":["4874",9],"./views/jeecg/InterfaceTest":["ff2a",9],"./views/jeecg/InterfaceTest.vue":["ff2a",9],"./views/jeecg/JeecgDemoList":["15dc",9],"./views/jeecg/JeecgDemoList.vue":["15dc",9],"./views/jeecg/JeecgEditableTableExample":["b020",9],"./views/jeecg/JeecgEditableTableExample.vue":["b020",9],"./views/jeecg/JeecgOrderMainList":["9b15",9],"./views/jeecg/JeecgOrderMainList.vue":["9b15",9],"./views/jeecg/JeecgOrderMainListForJEditableTable":["b2da",9],"./views/jeecg/JeecgOrderMainListForJEditableTable.vue":["b2da",9],"./views/jeecg/JeecgPdfView":["19c0",9],"./views/jeecg/JeecgPdfView.vue":["19c0",9],"./views/jeecg/JeecgTreeTable":["da9b",9],"./views/jeecg/JeecgTreeTable.vue":["da9b",9],"./views/jeecg/PrintDemo":["91b6",9],"./views/jeecg/PrintDemo.vue":["91b6",9],"./views/jeecg/RowspanTable":["3826",9],"./views/jeecg/RowspanTable.vue":["3826",9],"./views/jeecg/SelectDemo":["b2b7",9],"./views/jeecg/SelectDemo.vue":["b2b7",9],"./views/jeecg/SplitPanel":["7896",9],"./views/jeecg/SplitPanel.vue":["7896",9],"./views/jeecg/TableExpandeSub":["8428",9],"./views/jeecg/TableExpandeSub.vue":["8428",9],"./views/jeecg/TableTotal":["0467",9],"./views/jeecg/TableTotal.vue":["0467",9],"./views/jeecg/helloworld":["33b1",9],"./views/jeecg/helloworld.vue":["33b1",9],"./views/jeecg/helloworld2":["2f9b",9],"./views/jeecg/helloworld2.vue":["2f9b",9],"./views/jeecg/modules/JEditableTable/DefaultTable":["ff3c",9],"./views/jeecg/modules/JEditableTable/DefaultTable.vue":["ff3c",9],"./views/jeecg/modules/JEditableTable/ReadOnlyTable":["9ba5",9],"./views/jeecg/modules/JEditableTable/ReadOnlyTable.vue":["9ba5",9],"./views/jeecg/modules/JEditableTable/ThreeLinkage":["01fe",9],"./views/jeecg/modules/JEditableTable/ThreeLinkage.vue":["01fe",9],"./views/jeecg/modules/JeecgDemoModal":["c943",9],"./views/jeecg/modules/JeecgDemoModal.vue":["c943",9],"./views/jeecg/modules/JeecgDemoTabsModal":["3335",9],"./views/jeecg/modules/JeecgDemoTabsModal.vue":["3335",9],"./views/jeecg/modules/JeecgOrderMainModal":["8a45",9],"./views/jeecg/modules/JeecgOrderMainModal.vue":["8a45",9],"./views/jeecg/modules/JeecgOrderModalForJEditableTable":["b8ad3",9],"./views/jeecg/modules/JeecgOrderModalForJEditableTable.vue":["b8ad3",9],"./views/jeecg/modules/PdfPreviewModal":["588f",9],"./views/jeecg/modules/PdfPreviewModal.vue":["588f",9],"./views/jeecg/modules/SplitPanelA":["54d3",9],"./views/jeecg/modules/SplitPanelA.vue":["54d3",9],"./views/jeecg/modules/SplitPanelB":["9606",9],"./views/jeecg/modules/SplitPanelB.vue":["9606",9],"./views/jeecg/modules/SplitPanelModal":["5d1e",9],"./views/jeecg/modules/SplitPanelModal.vue":["5d1e",9],"./views/jeecg/modules/SuperQueryModal":["f534",9],"./views/jeecg/modules/SuperQueryModal.vue":["f534",9],"./views/jeecg/modules/VueCronModal":["2a1c",9],"./views/jeecg/modules/VueCronModal.vue":["2a1c",9],"./views/jeecg/report/Analysis":["617d0",9],"./views/jeecg/report/Analysis.vue":["617d0",9],"./views/jeecg/report/ArchivesStatisticst":["2832",9],"./views/jeecg/report/ArchivesStatisticst.vue":["2832",9],"./views/jeecg/report/ViserChartDemo":["5139",9],"./views/jeecg/report/ViserChartDemo.vue":["5139",9],"./views/jeecg/tablist/JeecgOrderCustomerList":["d544",9],"./views/jeecg/tablist/JeecgOrderCustomerList.vue":["d544",9],"./views/jeecg/tablist/JeecgOrderDMainList":["6620",9],"./views/jeecg/tablist/JeecgOrderDMainList.vue":["6620",9],"./views/jeecg/tablist/JeecgOrderTicketList":["8c22",9],"./views/jeecg/tablist/JeecgOrderTicketList.vue":["8c22",9],"./views/jeecg/tablist/form/JeecgOrderCustomerModal":["39a5",9],"./views/jeecg/tablist/form/JeecgOrderCustomerModal.vue":["39a5",9],"./views/jeecg/tablist/form/JeecgOrderDMainModal":["dd9d",9],"./views/jeecg/tablist/form/JeecgOrderDMainModal.vue":["dd9d",9],"./views/jeecg/tablist/form/JeecgOrderTicketModal":["aa8e",9],"./views/jeecg/tablist/form/JeecgOrderTicketModal.vue":["aa8e",9],"./views/list/CardList":["d039",9],"./views/list/CardList.vue":["d039",9],"./views/list/PermissionList":["5aa8",9],"./views/list/PermissionList.vue":["5aa8",9],"./views/list/RoleList":["4002",9],"./views/list/RoleList.vue":["4002",9],"./views/list/StandardList":["2d51",9],"./views/list/StandardList.vue":["2d51",9],"./views/list/TableInnerEditList":["5831",9],"./views/list/TableInnerEditList.vue":["5831",9],"./views/list/TableList":["f5eb",9],"./views/list/TableList.vue":["f5eb",9],"./views/list/UserList":["5eda",9],"./views/list/UserList.vue":["5eda",9],"./views/list/modules/RoleModal":["0b38",9],"./views/list/modules/RoleModal.vue":["0b38",9],"./views/list/search/SearchLayout":["9cbf",9],"./views/list/search/SearchLayout.vue":["9cbf",9],"./views/modules/message/SysMessageList":["17d8",9],"./views/modules/message/SysMessageList.vue":["17d8",9],"./views/modules/message/SysMessageTemplateList":["fd15",9],"./views/modules/message/SysMessageTemplateList.vue":["fd15",9],"./views/modules/message/modules/SysMessageModal":["89ba",9],"./views/modules/message/modules/SysMessageModal.vue":["89ba",9],"./views/modules/message/modules/SysMessageTemplateModal":["e5ab",9],"./views/modules/message/modules/SysMessageTemplateModal.vue":["e5ab",9],"./views/modules/message/modules/SysMessageTestModal":["86a6",9],"./views/modules/message/modules/SysMessageTestModal.vue":["86a6",9],"./views/modules/monitor/DiskMonitoring":["a3fd",9],"./views/modules/monitor/DiskMonitoring.vue":["a3fd",9],"./views/modules/monitor/HttpTrace":["3d75",9],"./views/modules/monitor/HttpTrace.vue":["3d75",9],"./views/modules/monitor/JvmInfo":["6741",9],"./views/modules/monitor/JvmInfo.vue":["6741",9],"./views/modules/monitor/RedisInfo":["ebfa",9],"./views/modules/monitor/RedisInfo.vue":["ebfa",9],"./views/modules/monitor/RedisTerminal":["b02a",9],"./views/modules/monitor/RedisTerminal.vue":["b02a",9],"./views/modules/monitor/SystemInfo":["48f7",9],"./views/modules/monitor/SystemInfo.vue":["48f7",9],"./views/modules/monitor/TomcatInfo":["c3e2",9],"./views/modules/monitor/TomcatInfo.vue":["c3e2",9],"./views/modules/online/cgform/OnlCgformHeadList":["e3a7",9],"./views/modules/online/cgform/OnlCgformHeadList.vue":["e3a7",9],"./views/modules/online/cgform/auto/OnlCgformAutoList":["9937",9],"./views/modules/online/cgform/auto/OnlCgformAutoList.vue":["9937",9],"./views/modules/online/cgform/auto/OnlCgformTreeList":["725c",9],"./views/modules/online/cgform/auto/OnlCgformTreeList.vue":["725c",9],"./views/modules/online/cgform/util/TableUtils":["addb",9,"chunk-2d213cd7"],"./views/modules/online/cgform/util/TableUtils.js":["addb",9,"chunk-2d213cd7"],"./views/nullPage":["bdb3",9],"./views/nullPage.vue":["bdb3",9],"./views/profile/advanced/Advanced":["b644",9],"./views/profile/advanced/Advanced.vue":["b644",9],"./views/profile/basic/Index":["df55",9],"./views/profile/basic/Index.vue":["df55",9],"./views/publicFormIndex/aqsc_xwy_source":["a5b0",9],"./views/publicFormIndex/aqsc_xwy_source.vue":["a5b0",9],"./views/publicFormIndex/emergency_data_audit":["fa27",9],"./views/publicFormIndex/emergency_data_audit.vue":["fa27",9],"./views/publicFormIndex/emergency_data_audited":["8a84",9],"./views/publicFormIndex/emergency_data_audited.vue":["8a84",9],"./views/publicFormIndex/emergency_data_unaudit":["fdde0",9],"./views/publicFormIndex/emergency_data_unaudit.vue":["fdde0",9],"./views/publicFormIndex/emergency_resource_index":["26ea",9],"./views/publicFormIndex/emergency_resource_index.vue":["26ea",9],"./views/publicFormIndex/emergency_resource_index_dept":["21dd",9],"./views/publicFormIndex/emergency_resource_index_dept.vue":["21dd",9],"./views/publicFormIndex/emergency_risk_index":["6e0c",9],"./views/publicFormIndex/emergency_risk_index.vue":["6e0c",9],"./views/publicFormIndex/emergency_risk_index_dept":["5d50",9],"./views/publicFormIndex/emergency_risk_index_dept.vue":["5d50",9],"./views/result/Error":["f32b",9],"./views/result/Error.vue":["f32b",9],"./views/result/Result":["9a3d",9],"./views/result/Result.vue":["9a3d",9],"./views/result/Success":["3ada",9],"./views/result/Success.vue":["3ada",9],"./views/system/DataLogList":["4867",9],"./views/system/DataLogList.vue":["4867",9],"./views/system/DepartList":["c9c2",9],"./views/system/DepartList.vue":["c9c2",9],"./views/system/DepartList2":["444c",9],"./views/system/DepartList2.vue":["444c",9],"./views/system/DepartUserList":["806e",9],"./views/system/DepartUserList.vue":["806e",9],"./views/system/DictItemList":["59a0",9],"./views/system/DictItemList.vue":["59a0",9],"./views/system/DictList":["b4e3",9],"./views/system/DictList.vue":["b4e3",9],"./views/system/DutyArrangeCustom":["815a",9],"./views/system/DutyArrangeCustom.vue":["815a",9],"./views/system/IndexIconEnterPrise":["6477",9],"./views/system/IndexIconEnterPrise.vue":["6477",9],"./views/system/IndexIconList":["ce6b",9],"./views/system/IndexIconList.vue":["ce6b",9],"./views/system/IndexIconOnePicture":["e4b6",9],"./views/system/IndexIconOnePicture.vue":["e4b6",9],"./views/system/IndexIconWarehouse":["9cc3",9],"./views/system/IndexIconWarehouse.vue":["9cc3",9],"./views/system/LogList":["2977",9],"./views/system/LogList.vue":["2977",9],"./views/system/MainMenuList":["4b5c",9],"./views/system/MainMenuList.vue":["4b5c",9],"./views/system/PermissionDataRuleList":["56cd1",9],"./views/system/PermissionDataRuleList.vue":["56cd1",9],"./views/system/PermissionList":["25f0",9],"./views/system/PermissionList.vue":["25f0",9],"./views/system/QuartzJobList":["7a9d",9],"./views/system/QuartzJobList.vue":["7a9d",9],"./views/system/RoleList":["4fa6",9],"./views/system/RoleList.vue":["4fa6",9],"./views/system/RoleUserList":["01c0",9],"./views/system/RoleUserList.vue":["01c0",9],"./views/system/StreetList":["a16a",9],"./views/system/StreetList.vue":["a16a",9],"./views/system/SysAnnouncementList":["1dc5",9],"./views/system/SysAnnouncementList.vue":["1dc5",9],"./views/system/SysCategoryList":["ddf2",9],"./views/system/SysCategoryList.vue":["ddf2",9],"./views/system/SysCategoryWriteList":["df2c",9],"./views/system/SysCategoryWriteList.vue":["df2c",9],"./views/system/TuoZhuai":["60df",9],"./views/system/TuoZhuai.vue":["60df",9],"./views/system/UserAnnouncementList":["bb705",9],"./views/system/UserAnnouncementList.vue":["bb705",9],"./views/system/UserList":["0d4b",9],"./views/system/UserList.vue":["0d4b",9],"./views/system/WlgzVideoDictionaryList":["a217",9],"./views/system/WlgzVideoDictionaryList.vue":["a217",9],"./views/system/modules/CategoryDistrictModal":["f1e3",9],"./views/system/modules/CategoryDistrictModal.vue":["f1e3",9],"./views/system/modules/DataLogCompareModal":["fcbc",9],"./views/system/modules/DataLogCompareModal.vue":["fcbc",9],"./views/system/modules/DataLogModal":["b4690",9],"./views/system/modules/DataLogModal.vue":["b4690",9],"./views/system/modules/DepartModal":["c1af",9],"./views/system/modules/DepartModal.vue":["c1af",9],"./views/system/modules/DepartWindow":["c63e",9],"./views/system/modules/DepartWindow.vue":["c63e",9],"./views/system/modules/DeptBaseInfo":["e326",9],"./views/system/modules/DeptBaseInfo.vue":["e326",9],"./views/system/modules/DeptUserInfo":["5859",9],"./views/system/modules/DeptUserInfo.vue":["5859",9],"./views/system/modules/DictItemModal":["8144",9],"./views/system/modules/DictItemModal.vue":["8144",9],"./views/system/modules/DictModal":["57ed",9],"./views/system/modules/DictModal.vue":["57ed",9],"./views/system/modules/DistrictModal":["65bd",9],"./views/system/modules/DistrictModal.vue":["65bd",9],"./views/system/modules/DistrictModalHide":["c594",9],"./views/system/modules/DistrictModalHide.vue":["c594",9],"./views/system/modules/DutyArrangeCustomizedModal":["9bde",9],"./views/system/modules/DutyArrangeCustomizedModal.vue":["9bde",9],"./views/system/modules/DutyArrangeCustomizedModal__Style#Drawer":["50f0",9],"./views/system/modules/DutyArrangeCustomizedModal__Style#Drawer.vue":["50f0",9],"./views/system/modules/IndexIcon":["6852",9],"./views/system/modules/IndexIcon.vue":["6852",9],"./views/system/modules/IndexIconModal":["cb78",9],"./views/system/modules/IndexIconModal.vue":["cb78",9],"./views/system/modules/MainMenuModal":["f388",9],"./views/system/modules/MainMenuModal.vue":["f388",9],"./views/system/modules/MenuHideModal":["a9c6",9],"./views/system/modules/MenuHideModal.vue":["a9c6",9],"./views/system/modules/MenuModal":["0c7c",9],"./views/system/modules/MenuModal.vue":["0c7c",9],"./views/system/modules/PasswordModal":["ddf9",9],"./views/system/modules/PasswordModal.vue":["ddf9",9],"./views/system/modules/PermissionDataRuleModal":["7c33",9],"./views/system/modules/PermissionDataRuleModal.vue":["7c33",9],"./views/system/modules/PermissionModal":["b90e",9],"./views/system/modules/PermissionModal.vue":["b90e",9],"./views/system/modules/QuartzJobModal":["077e",9],"./views/system/modules/QuartzJobModal.vue":["077e",9],"./views/system/modules/RemarkModal":["4488",9],"./views/system/modules/RemarkModal.vue":["4488",9],"./views/system/modules/RoleDataruleModal":["2285",9],"./views/system/modules/RoleDataruleModal.vue":["2285",9],"./views/system/modules/RoleModal":["2a70",9],"./views/system/modules/RoleModal.vue":["2a70",9],"./views/system/modules/SelectUserListModal":["ed2a",9],"./views/system/modules/SelectUserListModal.vue":["ed2a",9],"./views/system/modules/SelectUserModal":["b3c4",9],"./views/system/modules/SelectUserModal.vue":["b3c4",9],"./views/system/modules/SelectUserModal2":["b81d",9],"./views/system/modules/SelectUserModal2.vue":["b81d",9],"./views/system/modules/SelectWlVideoModal":["4a0f",9],"./views/system/modules/SelectWlVideoModal.vue":["4a0f",9],"./views/system/modules/SysAnnouncementModal":["4647",9],"./views/system/modules/SysAnnouncementModal.vue":["4647",9],"./views/system/modules/SysCategoryModal":["f1cf",9],"./views/system/modules/SysCategoryModal.vue":["f1cf",9],"./views/system/modules/SysCategoryWriteModal":["ebae",9],"./views/system/modules/SysCategoryWriteModal.vue":["ebae",9],"./views/system/modules/SysUserAgentModal":["74c6",9],"./views/system/modules/SysUserAgentModal.vue":["74c6",9],"./views/system/modules/UserDepartCategory":["7153",9],"./views/system/modules/UserDepartCategory.vue":["7153",9],"./views/system/modules/UserModal":["418f",9],"./views/system/modules/UserModal.vue":["418f",9],"./views/system/modules/UserRoleCategory":["66b6",9],"./views/system/modules/UserRoleCategory.vue":["66b6",9],"./views/system/modules/UserRoleModal":["ee18",9],"./views/system/modules/UserRoleModal.vue":["ee18",9],"./views/system/modules/WlgzVideoDictionaryModal":["5ea7",9],"./views/system/modules/WlgzVideoDictionaryModal.vue":["5ea7",9],"./views/system/modules/icon/Icon.less":["e4aed",7,"chunk-66540068"],"./views/system/modules/icon/Icons":["11cb",9],"./views/system/modules/icon/Icons.vue":["11cb",9],"./views/system/video/VideoLabelSetting":["ae57",9],"./views/system/video/VideoLabelSetting.vue":["ae57",9],"./views/system/video/VideoLabelSetting1":["7f71",9],"./views/system/video/VideoLabelSetting1.vue":["7f71",9],"./views/system/video/VideoPlay":["815e",9],"./views/system/video/VideoPlay.vue":["815e",9],"./views/system/video/VideoTreeLabel":["c880",9],"./views/system/video/VideoTreeLabel.vue":["c880",9],"./views/system/video/modules/VideoMenu":["c0fa",9],"./views/system/video/modules/VideoMenu.vue":["c0fa",9],"./views/system/video/modules/WlgzVideoModal":["db99",9],"./views/system/video/modules/WlgzVideoModal.vue":["db99",9],"./views/system/video/modules/WlgzVideoModal__Style#Drawer":["f4b0",9],"./views/system/video/modules/WlgzVideoModal__Style#Drawer.vue":["f4b0",9],"./views/system/video/video":["c925",9],"./views/system/video/video.vue":["c925",9],"./views/system/video/videoTable":["a056",9],"./views/system/video/videoTable.vue":["a056",9],"./views/tongji/tongji":["0941",9],"./views/tongji/tongji.vue":["0941",9],"./views/user/Alteration":["ffc3",9],"./views/user/Alteration.vue":["ffc3",9],"./views/user/Login":["ac2a",9],"./views/user/Login.vue":["ac2a",9],"./views/user/Register":["1348",9],"./views/user/Register.vue":["1348",9],"./views/user/RegisterResult":["1037",9],"./views/user/RegisterResult.vue":["1037",9],"./views/user/Step1":["f14a",9],"./views/user/Step1.vue":["f14a",9],"./views/user/Step2":["ba6d",9],"./views/user/Step2.vue":["ba6d",9],"./views/user/Step3":["f6d9",9],"./views/user/Step3.vue":["f6d9",9],"./views/user/Step4":["8e46",9],"./views/user/Step4.vue":["8e46",9]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(i,t[1])}))}i.keys=function(){return Object.keys(r)},i.id="2a68",e.exports=i},"2a70":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{top:"5%",height:"85%","overflow-y":"hidden"},attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"角色名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["roleName",e.validatorRules.roleName],expression:"[ 'roleName', validatorRules.roleName]"}],attrs:{placeholder:"请输入角色名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"所属系统"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["productCode",{rules:[{required:!0,message:"请选择责任人"}]}],expression:"['productCode',  {rules: [{ required: true, message: '请选择责任人'}]} ]"}],attrs:{placeholder:"请选择系统"}},[n("a-select-option",{attrs:{value:"manage"}},[e._v("填报系统")]),n("a-select-option",{attrs:{value:"picture"}},[e._v("大屏")]),n("a-select-option",{attrs:{value:"duty"}},[e._v("值班值守")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"角色编码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["roleCode",e.validatorRules.roleCode],expression:"[ 'roleCode', validatorRules.roleCode]"}],attrs:{placeholder:"请输入角色编码",disabled:e.roleDisabled}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"描述"}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["description",e.validatorRules.description],expression:"[ 'description', validatorRules.description ]"}],attrs:{rows:5,placeholder:"..."}})],1)],1)],1)],1)},i=[],o=n("88bc"),a=n.n(o),s=n("4ec3"),l={name:"RoleModal",data:function(){return{title:"操作",visible:!1,roleDisabled:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{roleName:{rules:[{required:!0,message:"请输入角色名称!"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}]},roleCode:{rules:[{required:!0,message:"请输入角色名称!"},{min:0,max:64,message:"长度不超过 64 个字符",trigger:"blur"},{validator:this.validateRoleCode}]},description:{rules:[{min:0,max:126,message:"长度不超过 126 个字符",trigger:"blur"}]}}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.model.id?this.roleDisabled=!0:this.roleDisabled=!1,this.$nextTick((function(){t.form.setFieldsValue(a()(t.model,"roleName","description","roleCode","productCode"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i,o=Object.assign(e.model,r);console.log(o),i=e.model.id?Object(s["p"])(o):Object(s["d"])(o),i.then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},validateRoleCode:function(e,t,n){if(/[\u4E00-\u9FA5]/g.test(t))n("角色编码不可输入汉字!");else{var r={tableName:"sys_role",fieldName:"role_code",fieldVal:t,dataId:this.model.id};Object(s["l"])(r).then((function(e){e.success?n():n(e.message)}))}}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"dde3fa60",null);t["default"]=d.exports},"2ab0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{maskClosable:!1,title:"编辑页面配置",width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"mengcengtwoson1"},on:{ok:e.handleOktwo,cancel:e.close}},[n("div",{staticStyle:{height:"650px"}},[n("div",{staticStyle:{float:"left",width:"575px"}},[n("TemplateEditTabletwo",{ref:"TemplateEditTabletwo",attrs:{loading:e.loading,columns2:e.columns2,selectedRowKeys:e.selectedRowKeys,onSelectChange:e.onSelectChange},on:{rowClicknew:function(t){return e.rowClicknew(t)},handleDeleteFormDB2:function(t){return e.handleDeleteFormDB2(t)},zidongshengcheng:function(t){return e.zidongshengcheng(t)},zibiao:function(t){return e.zibiao(t)},up:function(t){return e.up(t)},down:function(t){return e.down(t)},batchDel:function(t){return e.batchDel(t)}}})],1),n("div",{staticStyle:{float:"left",width:"450px","margin-top":"40px","margin-left":"40px"}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.formtwo}},[n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"编辑状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-switch",{attrs:{checkedChildren:"新增",unCheckedChildren:"编辑",checked:e.visibleCheck},on:{change:e.onChose}})],1)],1)],1),n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入名称"}})],1)],1),n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"对应字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["zd",e.validatorRules.zd],expression:"[ 'zd', validatorRules.zd]"}],attrs:{placeholder:"请输入对应字段"}})],1)],1)],1),n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"是否必填",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["sfbt",e.validatorRules.sfbt],expression:"[ 'sfbt', validatorRules.sfbt]"}],attrs:{type:"list","trigger-change":!0,dictCode:"sfbt_pz",placeholder:"请选择是否必填"}})],1)],1),n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"控件类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["kjlx",e.validatorRules.kjlx],expression:"[ 'kjlx', validatorRules.kjlx]"}],attrs:{type:"list","trigger-change":!0,dictCode:"kjlx_pz",placeholder:"请选择控件类型"}})],1)],1)],1),n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["zssx",e.validatorRules.zssx],expression:"[ 'zssx', validatorRules.zssx]"}],attrs:{placeholder:"请输入展示顺序"}})],1)],1),n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"下拉编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["xlbm",e.validatorRules.xlbm],expression:"[ 'xlbm', validatorRules.xlbm]"}],attrs:{placeholder:"请输入下拉编码"}})],1)],1)],1),n("div",{staticStyle:{display:"none"}},[n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"bid",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["bid",e.validatorRules.bid],expression:"[ 'bid', validatorRules.bid]"}],attrs:{placeholder:"bid"}})],1)],1),n("a-col",{attrs:{span:"12"}},[n("a-form-item",{attrs:{label:"smid",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smid",e.validatorRules.smid],expression:"[ 'smid', validatorRules.smid]"}],attrs:{placeholder:"smid"}})],1)],1)],1)],1)],1)],1)],1)])]),n("a-modal",{attrs:{title:"提示",afterClose:e.handleCancelts},model:{value:e.visiblets,callback:function(t){e.visiblets=t},expression:"visiblets"}},[n("template",{slot:"footer"},[n("a-button",{key:"back",on:{click:e.handleCancelts}},[e._v("\n        取消\n      ")]),n("a-button",{key:"submit",attrs:{type:"primary",loading:e.loadingts},on:{click:e.handleOkts}},[e._v("\n        确认\n      ")])],1),n("p",[e._v("即将自动生成该表所有字段,会覆盖已保存数据,是否继续?")])],2),n("div",[n("TemplateEditSonCongtwo",{ref:"TemplateEditSonCongtwo",on:{handleEditSon1:function(t){return e.handleEditSon1(t)},handleDeleteFormSon1:function(t){return e.handleDeleteFormSon1(t)}}})],1)],1)},i=[],o=(n("df2d"),n("0fea"),n("88bc")),a=n.n(o),s=n("2dab"),l=n("fe54"),c=n("c14a"),u=n("d9be"),d=n("de10"),f=n("ba3b"),h=n("ce6e"),p=n("8f2c"),m=n("7362"),g={name:"MaterialWarehouseModal",mixins:[p["JeecgListMixinsTabletwo"]],components:{JDate:s["default"],JSelectDepart:l["default"],JSelectUserByDep:c["default"],city_child:u["default"],mapChoosePoint:d["default"],BackMap:f["default"],TemplateEditTabletwo:h["default"],TemplateEditSonCongtwo:m["default"]},data:function(){return{width:1125,confirmLoading:!1,validatorRules:{name:{rules:[{required:!0,message:"请输入名称"}]},zd:{rules:[{required:!0,message:"请输入对应字段"}]},sfbt:{rules:[{required:!0,message:"请输入是否必填"}]},kjlx:{rules:[{required:!0,message:"请输入控件类型"}]}},url:{add:"/templateEditSon/add",edit:"/templateEditSon/edit"},urlcong:{list:"/templateEditSonDetail/list",add:"/templateEditSonDetail/add",edit:"/templateEditSonDetail/edit",delete:"/templateEditSonDetail/delete",deleteBatch:"/templateEditSonDetail/deleteBatch",up:"/templateEditSonDetail/up",down:"/templateEditSonDetail/down",zidongshengcheng:"/templateEditSonDetail/autoGenerate/"},showDefaultParams:[],pointKey:"longitudeLatitude",maskClosable:!1}},mounted:function(){},methods:{fuzhitwo:function(e){this.formtwo.setFieldsValue(a()(e,"smid","name","zd","bid","kjlx","sfbt","zssx","xlbm"))},zhikongtwo:function(e){this.formtwo.setFieldsValue({smid:"",name:"",zd:"",bid:e,kjlx:"",sfbt:"",zssx:"",xlbm:""})},zibiao:function(){this.$refs.TemplateEditSonCongtwo.visible=!0,this.$refs.TemplateEditSonCongtwo.loadDatazibiao1(this.bid)}}},v=g,y=(n("042d"),n("2877")),b=Object(y["a"])(v,r,i,!1,null,null,null);t["default"]=b.exports},"2ace":function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},"2b01":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("fbee"),o=n("2ace"),a=n("9ba1"),s=n("4b0b"),l=n("16546").f,c=n("4ed9"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(f,u);var h=f.prototype=u.prototype;h.constructor=f;var p=h.toString,m="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=m?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},"2bcd":function(e,t,n){"use strict";n("08f0")},"2c30":function(e,t,n){"use strict";function r(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function i(e,t,n){return e+"/"+t+"/"+n}function o(e){return i(e[0],e[1],e[2])}function a(e){return e.split("/").map(Number)}function s(e){return(e[1]<<e[0])+e[2]}function l(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l}))},"2c74":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,destroyOnClose:!0,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"父级节点",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pid",e.validatorRules.pid],expression:"[ 'pid', validatorRules.pid]"}],ref:"treeSelect",staticStyle:{width:"100%"},attrs:{placeholder:"请选择","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":e.treeData}})],1),n("a-form-item",{attrs:{label:"类型名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入类型名称"}})],1),n("a-form-item",{attrs:{label:"图层url",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["url",e.validatorRules.url],expression:"[ 'url', validatorRules.url]"}],attrs:{placeholder:"请输入类型名称"}})],1),n("a-form-item",{attrs:{label:"单位",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["unit",e.validatorRules.unit],expression:"[ 'unit', validatorRules.unit]"}],attrs:{placeholder:"请输入单位"}})],1),n("a-form-item",{attrs:{label:"地理信息类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["geotype",e.validatorRules.geotype],expression:"['geotype',validatorRules.geotype]"}],attrs:{placeholder:"请选择地理类型"}},[n("a-select-option",{attrs:{value:"point"}},[e._v("点")]),n("a-select-option",{attrs:{value:"line"}},[e._v("线")]),n("a-select-option",{attrs:{value:"polygon"}},[e._v("面")])],1)],1),n("a-form-item",{attrs:{label:"数据库",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["db",e.validatorRules.db],expression:"['db',validatorRules.db]"}],attrs:{placeholder:"请选择数据库"}},[n("a-select-option",{attrs:{value:"db1"}},[e._v("host=192.168.10.150:5432 dbname=zs ")]),n("a-select-option",{attrs:{value:"db2"}},[e._v("host=192.168.10.150:5432 dbname=aqsc ")])],1)],1),n("a-form-item",{attrs:{label:"数据集名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datasetname",e.validatorRules.datasetname],expression:"[ 'datasetname', validatorRules.datasetname]"}],attrs:{placeholder:"请输入数据集名称"}})],1),n("a-form-item",{attrs:{label:"图层类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["layerType",e.validatorRules.layerType],expression:"['layerType',validatorRules.layerType]"}],attrs:{placeholder:"请选择图层类型"}},[n("a-select-option",{attrs:{value:"2dLayer"}},[e._v("二维")]),n("a-select-option",{attrs:{value:"3dLayer"}},[e._v("三维")])],1)],1),n("a-form-item",{attrs:{label:"别名",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alias",e.validatorRules.alias],expression:"[ 'alias', validatorRules.alias]"}],attrs:{placeholder:"请输入别名"}})],1),n("a-form-item",{attrs:{label:"主键字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["key",e.validatorRules.key],expression:"[ 'key', validatorRules.key]"}],attrs:{placeholder:"请输入主键字段"}})],1),n("a-form-item",{attrs:{label:"主键字段类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["keyType",e.validatorRules.keyType],expression:"['keyType',validatorRules.keyType]"}],attrs:{placeholder:"请选择主键字段类型"}},[n("a-select-option",{attrs:{value:"int"}},[e._v("int")]),n("a-select-option",{attrs:{value:"varchar"}},[e._v("varchar")])],1)],1),n("a-form-item",{attrs:{label:"列表排序字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sortKey",e.validatorRules.sortKey],expression:"[ 'sortKey', validatorRules.sortKey]"}],attrs:{placeholder:"请输入列表排序字段"}})],1),n("a-form-item",{attrs:{label:"显示的表头字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["showFieldTitle",e.validatorRules.showFieldTitle],expression:"[ 'showFieldTitle', validatorRules.showFieldTitle]"}],attrs:{placeholder:"请输入显示的表头字段"}})],1),n("a-form-item",{attrs:{label:"显示的列表字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["showField",e.validatorRules.showField],expression:"[ 'showField', validatorRules.showField]"}],attrs:{placeholder:"请输入显示的列表字段"}})],1),n("a-form-item",{attrs:{label:"显示的列表名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["showHeader",e.validatorRules.showHeader],expression:"[ 'showHeader', validatorRules.showHeader]"}],attrs:{placeholder:"请输入显示的列表名称"}})],1),n("a-form-item",{attrs:{label:"显示的图表字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["chartField",e.validatorRules.chartField],expression:"[ 'chartField', validatorRules.chartField]"}],attrs:{placeholder:"请输入显示的图表字段"}})],1),n("a-form-item",{attrs:{label:"是否显示四色图 0否 1是",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sign",e.validatorRules.sign],expression:"[ 'sign', validatorRules.sign]"}],attrs:{placeholder:"请输入是否显示四色图 0否 1是"}})],1),n("a-form-item",{attrs:{label:"地图pop提示框字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mapPopField",e.validatorRules.mapPopField],expression:"[ 'mapPopField', validatorRules.mapPopField]"}],attrs:{placeholder:"请输入地图pop提示框字段"}})],1),n("a-form-item",{attrs:{label:"地图pop提示框名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mapPopName",e.validatorRules.mapPopName],expression:"[ 'mapPopName', validatorRules.mapPopName]"}],attrs:{placeholder:"请输入地图pop提示框名称"}})],1),n("a-form-item",{attrs:{label:"图标url",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["iconUrl",e.validatorRules.iconUrl],expression:"[ 'iconUrl', validatorRules.iconUrl]"}],attrs:{placeholder:"请输入图标url"}})],1),n("a-form-item",{attrs:{label:"sqlText",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sqlText",e.validatorRules.sqlText],expression:"[ 'sqlText', validatorRules.sqlText]"}],attrs:{placeholder:"请输入sqlText"}})],1),n("a-form-item",{attrs:{label:"sqlNum",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sqlNum",e.validatorRules.sqlNum],expression:"[ 'sqlNum', validatorRules.sqlNum]"}],attrs:{placeholder:"请输入sqlNum"}})],1),n("a-form-item",{attrs:{label:"组件",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["assembly",e.validatorRules.assembly],expression:"[ 'assembly', validatorRules.assembly]"}],attrs:{placeholder:"请输入组件"}})],1),n("a-form-item",{attrs:{label:"组件详情类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["assemblyDetail",e.validatorRules.assemblyDetail],expression:"[ 'assemblyDetail', validatorRules.assemblyDetail]"}],attrs:{placeholder:"请输入组件"}})],1),n("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",e.validatorRules.sort],expression:"[ 'sort', validatorRules.sort]"}],attrs:{placeholder:"请输入排序"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("b098"),c=(n("8c8b"),{name:"aqscCategoryModel",components:{JTreeSelect:l["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{pid:{},name:{rules:[{required:!0,message:"请填写名称"}]},url:{},unit:{},key:{},keyType:{},db:{},geotype:{rules:[{required:!1,message:"请输入地理信息类型"}]},datasetname:{rules:[{required:!1,message:"请输入表名"}]},alias:{rules:[{required:!1,message:"请输入别名"}]},showFieldTitle:{},showField:{},showHeader:{},chartField:{},sign:{},layerType:{},assembly:{},assemblyDetail:{},sqlNum:{},sortKey:{},mapPopField:{rules:[{required:!1,message:"请输入地图pop提示框字段"}]},mapPopName:{rules:[{required:!1,message:"请输入地图pop提示框名称"}]},iconUrl:{rules:[{required:!1,message:"请输入图标url"}]},sqlText:{rules:[{required:!1,message:"请输入sqlText"}]},sort:{rules:[{required:!0,message:"请输入排序"}]}},url:{add:"/aqscCategory/save",edit:"/aqscCategory/update"},expandedRowKeys:[],treeData:[]}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;Object(o["d"])("/aqscCategory/getTree",{}).then((function(e){e.success&&(t.treeData=e.result)})),this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"pid","name","url","unit","geotype","sort","datasetname","sql","alias","showFieldTitle","showField","showHeader","chartField","sign","mapPopField","mapPopName","geotype","iconUrl","sqlText","assembly","assemblyDetail","key","keyType","db","layerType","sqlNum","sortKey")),t.model.type=t.model.type}))},close:function(){this.$emit("ok"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="",s=Object.assign(e.model,r);e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post",delete s.id),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.submitSuccess(s),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))},submitSuccess:function(e){if(e.id)this.$emit("ok",e);else{var t=this.$refs.treeSelect.treeDataso;this.expandedRowKeys=[],this.getExpandKeysByPid(e[this.pidField],t,t),this.$emit("ok",e,this.expandedRowKeys.reverse())}},getExpandKeysByPid:function(e,t,n){if(e&&t&&t.length>0)for(var r=0;r<t.length;r++)t[r].key==e?(this.expandedRowKeys.push(t[r].key),this.getExpandKeysByPid(t[r]["parentId"],n,n)):this.getExpandKeysByPid(e,t[r].children,n)},handleCancel:function(){this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"pid","name","url","unit","geotype","sort","datasetname","sql","alias","showFieldTitle","showField","showHeader","chartField","sign","mapPopField","mapPopName","geotype","iconUrl","sqlText","assembly","assemblyDetail","key","keyType","db","layerType","sqlNum","sortKey"))}}}),u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,null,null);t["default"]=f.exports},"2ce2":function(e,t,n){"use strict";var r=n("e300"),i=n("183a"),o=n("cef7"),a=n("f623"),s=n("4334"),l=n("57cb"),c=n("38f3"),u=n("6c77"),d=n("9f5e"),f=n("1300"),h=n("06f8"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m={SELECT:"select"},g=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.selected=n,o.deselected=r,o.mapBrowserEvent=i,o}return p(t,e),t}(o["a"]),v={},y=function(e){function t(t){var n,i=e.call(this)||this,o=t||{};if(i.boundAddFeature_=i.addFeature_.bind(i),i.boundRemoveFeature_=i.removeFeature_.bind(i),i.condition_=o.condition?o.condition:h["l"],i.addCondition_=o.addCondition?o.addCondition:h["h"],i.removeCondition_=o.removeCondition?o.removeCondition:h["h"],i.toggleCondition_=o.toggleCondition?o.toggleCondition:h["k"],i.multi_=!!o.multi&&o.multi,i.filter_=o.filter?o.filter:l["b"],i.hitTolerance_=o.hitTolerance?o.hitTolerance:0,i.style_=void 0!==o.style?o.style:b(),i.features_=o.features||new r["a"],o.layers)if("function"===typeof o.layers)n=o.layers;else{var a=o.layers;n=function(e){return Object(d["d"])(a,e)}}else n=l["b"];return i.layerFilter_=n,i.featureLayerAssociation_={},i}return p(t,e),t.prototype.addFeatureLayerAssociation_=function(e,t){this.featureLayerAssociation_[Object(f["c"])(e)]=t},t.prototype.getFeatures=function(){return this.features_},t.prototype.getHitTolerance=function(){return this.hitTolerance_},t.prototype.getLayer=function(e){return this.featureLayerAssociation_[Object(f["c"])(e)]},t.prototype.setHitTolerance=function(e){this.hitTolerance_=e},t.prototype.setMap=function(t){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),e.prototype.setMap.call(this,t),t?(this.features_.addEventListener(i["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(i["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(i["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(i["a"].REMOVE,this.boundRemoveFeature_))},t.prototype.addFeature_=function(e){var t=e.element;this.style_&&this.applySelectedStyle_(t)},t.prototype.removeFeature_=function(e){var t=e.element;this.style_&&this.restorePreviousStyle_(t)},t.prototype.getStyle=function(){return this.style_},t.prototype.applySelectedStyle_=function(e){var t=Object(f["c"])(e);t in v||(v[t]=e.getStyle()),e.setStyle(this.style_)},t.prototype.restorePreviousStyle_=function(e){for(var n=this.getMap().getInteractions().getArray(),r=n.length-1;r>=0;--r){var i=n[r];if(i!==this&&i instanceof t&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(i.getStyle())}var o=Object(f["c"])(e);e.setStyle(v[o]),delete v[o]},t.prototype.removeFeatureLayerAssociation_=function(e){delete this.featureLayerAssociation_[Object(f["c"])(e)]},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;var t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,o=e.map,a=this.getFeatures(),s=[],l=[];if(i){Object(c["b"])(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,function(e,t){if(this.filter_(e,t))return l.push(e),this.addFeatureLayerAssociation_(e,t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var u=a.getLength()-1;u>=0;--u){var f=a.item(u),h=l.indexOf(f);h>-1?l.splice(h,1):(a.remove(f),s.push(f))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(e.pixel,function(e,i){if(this.filter_(e,i))return!t&&!r||Object(d["d"])(a.getArray(),e)?(n||r)&&Object(d["d"])(a.getArray(),e)&&(s.push(e),this.removeFeatureLayerAssociation_(e)):(l.push(e),this.addFeatureLayerAssociation_(e,i)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=s.length-1;p>=0;--p)a.remove(s[p]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new g(m.SELECT,l,s,e)),!0},t}(s["a"]);function b(){var e=Object(u["b"])();return Object(d["c"])(e[a["a"].POLYGON],e[a["a"].LINE_STRING]),Object(d["c"])(e[a["a"].GEOMETRY_COLLECTION],e[a["a"].LINE_STRING]),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}t["a"]=y},"2ce7":function(e,t,n){var r=n("5ab0");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"2cef":function(e,t,n){"use strict";e.exports=function(){var e=1;function t(){return e++}return{generate:t}}},"2d33":function(e,t,n){n("303c")},"2d3a":function(e,t,n){"use strict";n("07e5")},"2d51":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-card",{attrs:{bordered:!1}},[n("a-row",[n("a-col",{attrs:{sm:8,xs:24}},[n("head-info",{attrs:{title:"我的待办",content:"8个任务",bordered:!0}})],1),n("a-col",{attrs:{sm:8,xs:24}},[n("head-info",{attrs:{title:"本周任务平均处理时间",content:"32分钟",bordered:!0}})],1),n("a-col",{attrs:{sm:8,xs:24}},[n("head-info",{attrs:{title:"本周完成任务数",content:"24个"}})],1)],1)],1),n("a-card",{staticStyle:{"margin-top":"24px"},attrs:{bordered:!1,title:"标准列表"}},[n("div",{attrs:{slot:"extra"},slot:"extra"},[n("a-radio-group",[n("a-radio-button",[e._v("全部")]),n("a-radio-button",[e._v("进行中")]),n("a-radio-button",[e._v("等待中")])],1),n("a-input-search",{staticStyle:{"margin-left":"16px",width:"272px"}})],1),n("div",{staticClass:"operate"},[n("a-button",{staticStyle:{width:"100%"},attrs:{type:"dashed",icon:"plus"}},[e._v("添加")])],1),n("a-list",{attrs:{size:"large",pagination:{showSizeChanger:!0,showQuickJumper:!0,pageSize:5,total:50}}},e._l(e.data,(function(t,r){return n("a-list-item",{key:r},[n("a-list-item-meta",{attrs:{description:t.description}},[n("a-avatar",{attrs:{slot:"avatar",size:"large",shape:"square",src:t.avatar},slot:"avatar"}),n("a",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.title))])],1),n("div",{attrs:{slot:"actions"},slot:"actions"},[n("a",[e._v("编辑")])]),n("div",{attrs:{slot:"actions"},slot:"actions"},[n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",[e._v("编辑")])]),n("a-menu-item",[n("a",[e._v("删除")])])],1),n("a",[e._v("更多"),n("a-icon",{attrs:{type:"down"}})],1)],1)],1),n("div",{staticClass:"list-content"},[n("div",{staticClass:"list-content-item"},[n("span",[e._v("Owner")]),n("p",[e._v(e._s(t.owner))])]),n("div",{staticClass:"list-content-item"},[n("span",[e._v("开始时间")]),n("p",[e._v(e._s(t.startAt))])]),n("div",{staticClass:"list-content-item"},[n("a-progress",{staticStyle:{width:"180px"},attrs:{percent:t.progress.value,status:t.progress.status?t.progress.status:null}})],1)])],1)})),1)],1)],1)},i=[],o=n("81d1"),a=[];a.push({title:"Alipay",avatar:"https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png",description:"那是一种内在的东西, 他们到达不了,也无法触及的",owner:"付晓晓",startAt:"2018-07-26 22:44",progress:{value:90}}),a.push({title:"Angular",avatar:"https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png",description:"希望是一个好东西,也许是最好的,好东西是不会消亡的",owner:"曲丽丽",startAt:"2018-07-26 22:44",progress:{value:54}}),a.push({title:"Ant Design",avatar:"https://gw.alipayobjects.com/zos/rmsportal/dURIMkkrRFpPgTuzkwnB.png",description:"生命就像一盒巧克力,结果往往出人意料",owner:"林东东",startAt:"2018-07-26 22:44",progress:{value:66}}),a.push({title:"Ant Design Pro",avatar:"https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png",description:"城镇中有那么多的酒馆,她却偏偏走进了我的酒馆",owner:"周星星",startAt:"2018-07-26 22:44",progress:{value:30}}),a.push({title:"Bootstrap",avatar:"https://gw.alipayobjects.com/zos/rmsportal/siCrBXXhmvTQGWPNLBow.png",description:"那时候我只会想自己想要什么,从不想自己拥有什么",owner:"吴加好",startAt:"2018-07-26 22:44",progress:{status:"exception",value:100}});var s={name:"StandardList",components:{HeadInfo:o["default"]},data:function(){return{data:a}}},l=s,c=(n("8343"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"64b9f314",null);t["default"]=u.exports},"2d66":function(e,t,n){},"2d96":function(e,t,n){"use strict";n("dec5")},"2dab":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-date-picker",{attrs:{disabled:e.disabled||e.readOnly,placeholder:e.placeholder,value:e.momVal,showTime:e.showTime,format:e.dateFormat,getCalendarContainer:e.getCalendarContainer},on:{change:e.handleDateChange}})},i=[],o=n("c1df"),a=n.n(o),s={name:"JDate",props:{placeholder:{type:String,default:"",required:!1},value:{type:String,required:!1},dateFormat:{type:String,default:"YYYY-MM-DD",required:!1},triggerChange:{type:Boolean,required:!1,default:!1},readOnly:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},showTime:{type:Boolean,required:!1,default:!1},getCalendarContainer:{type:Function,default:function(){return document.body}}},data:function(){var e=this.value;return{decorator:"",momVal:e?a()(e,this.dateFormat):null}},watch:{value:function(e){this.momVal=e?a()(e,this.dateFormat):null}},methods:{moment:a.a,handleDateChange:function(e,t){this.$emit("change",t)}},model:{prop:"value",event:"change"}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"2dbc":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("a793"),o=n("be46"),a=n("4042"),s=[].join,l=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},"2df2":function(e,t,n){"use strict";n("4772")},"2e44":function(e,t,n){"use strict";n("d6a2")},"2e5b":function(e,t,n){"use strict";var r=n("be46"),i=n("1b92"),o=n("0280"),a=n("510e"),s=n("8e0b"),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"2e83":function(e,t,n){"use strict";n("b8e37")},"2eac":function(e,t,n){},"2ef1":function(e,t,n){"use strict";var r=n("91b1"),i=n("089b"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(t){var n=this,r=t||{},o=void 0!==r.projection?r.projection:"EPSG:3857",a=void 0!==r.tileGrid?r.tileGrid:Object(i["a"])({extent:Object(i["b"])(o),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,imageSmoothing:r.imageSmoothing,opaque:r.opaque,projection:o,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this,n}return o(t,e),t}(r["a"]);t["a"]=a},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2f3a":function(e,t,n){"use strict";n.r(t);for(var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-header-index-wide"},[n("a-row",{attrs:{gutter:24}},[n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"总销售额",total:"¥126,560"}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("trend",{staticStyle:{"margin-right":"16px"},attrs:{flag:"up"}},[n("span",{attrs:{slot:"term"},slot:"term"},[e._v("周同比")]),e._v("\n            12%\n          ")]),n("trend",{attrs:{flag:"down"}},[n("span",{attrs:{slot:"term"},slot:"term"},[e._v("日同比")]),e._v("\n            11%\n          ")])],1),n("template",{slot:"footer"},[e._v("日均销售额"),n("span",[e._v("¥ 234.56")])])],2)],1),n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"访问量",total:e._f("NumberFormat")(8846)}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("mini-area")],1),n("template",{slot:"footer"},[e._v("日访问量"),n("span",[e._v(" "+e._s(e._f("NumberFormat")("1234")))])])],2)],1),n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"支付笔数",total:e._f("NumberFormat")(6560)}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("mini-bar",{attrs:{height:40}})],1),n("template",{slot:"footer"},[e._v("转化率 "),n("span",[e._v("60%")])])],2)],1),n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"运营活动效果",total:"78%"}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("mini-progress",{attrs:{color:"rgb(19, 194, 194)",target:80,percentage:78,height:8}})],1),n("template",{slot:"footer"},[n("trend",{staticStyle:{"margin-right":"16px"},attrs:{flag:"down"}},[n("span",{attrs:{slot:"term"},slot:"term"},[e._v("同周比")]),e._v("\n            12%\n          ")]),n("trend",{attrs:{flag:"up"}},[n("span",{attrs:{slot:"term"},slot:"term"},[e._v("日环比")]),e._v("\n            80%\n          ")])],1)],2)],1)],1),n("a-card",{attrs:{loading:e.loading,bordered:!1,"body-style":{padding:"0"}}},[n("div",{staticClass:"salesCard"},[n("a-tabs",{attrs:{"default-active-key":"1",size:"large","tab-bar-style":{marginBottom:"24px",paddingLeft:"16px"}}},[n("div",{staticClass:"extra-wrapper",attrs:{slot:"tabBarExtraContent"},slot:"tabBarExtraContent"},[n("div",{staticClass:"extra-item"},[n("a",[e._v("今日")]),n("a",[e._v("本周")]),n("a",[e._v("本月")]),n("a",[e._v("本年")])]),n("a-range-picker",{style:{width:"256px"}})],1),n("a-tab-pane",{key:"1",attrs:{loading:"true",tab:"销售额"}},[n("a-row",[n("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[n("bar",{attrs:{title:"销售额排行",dataSource:e.barData}})],1),n("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[n("rank-list",{attrs:{title:"门店销售排行榜",list:e.rankList}})],1)],1)],1),n("a-tab-pane",{key:"2",attrs:{tab:"访问量"}},[n("a-row",[n("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[n("bar",{attrs:{title:"销售额趋势",dataSource:e.barData}})],1),n("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[n("rank-list",{attrs:{title:"门店销售排行榜",list:e.rankList}})],1)],1)],1)],1)],1)]),n("a-row",[n("a-col",{attrs:{span:24}},[n("a-card",{style:{marginTop:"24px"},attrs:{loading:e.loading,bordered:!1,title:"最近一周访问次数统计"}},[n("a-row",[n("a-col",{attrs:{span:6}},[n("head-info",{attrs:{title:"今日访问IP数",content:e.loginfo.todayIp}})],1),n("a-col",{attrs:{span:2}},[n("a-spin",{staticClass:"circle-cust"},[n("a-icon",{staticStyle:{"font-size":"24px"},attrs:{slot:"indicator",type:"environment"},slot:"indicator"})],1)],1),n("a-col",{attrs:{span:6}},[n("head-info",{attrs:{title:"今日访问次数",content:e.loginfo.todayVisitCount}})],1),n("a-col",{attrs:{span:2}},[n("a-spin",{staticClass:"circle-cust"},[n("a-icon",{staticStyle:{"font-size":"24px"},attrs:{slot:"indicator",type:"team"},slot:"indicator"})],1)],1),n("a-col",{attrs:{span:6}},[n("head-info",{attrs:{title:"访问总次数",content:e.loginfo.totalVisitCount}})],1),n("a-col",{attrs:{span:2}},[n("a-spin",{staticClass:"circle-cust"},[n("a-icon",{staticStyle:{"font-size":"24px"},attrs:{slot:"indicator",type:"rise"},slot:"indicator"})],1)],1)],1),n("line-chart-multid",{attrs:{fields:e.visitFields,dataSource:e.visitInfo}})],1)],1)],1)],1)},i=[],o=(n("456d"),n("ac6a"),n("05ed")),a=n("da05"),s=n("3896"),l=n("1d43"),c=n("942d"),u=n("bf13"),d=n("0923"),f=n("edd9"),h=n("4ec6"),p=n("81d1"),m=n("611e"),g=n("4ec3"),v=[],y=0;y<7;y++)v.push({name:"白鹭岛 "+(y+1)+" 号店",total:1234.56-100*y});for(var b=[],_=0;_<12;_+=1)b.push({x:"".concat(_+1,"月"),y:Math.floor(1e3*Math.random())+200});var w={name:"Analysis",components:{ATooltip:s["a"],ACol:a["b"],ChartCard:o["default"],MiniArea:l["default"],MiniBar:c["default"],MiniProgress:u["default"],RankList:d["default"],Bar:f["default"],Trend:m["a"],LineChartMultid:h["default"],HeadInfo:p["default"]},data:function(){var e=this.$createElement;return{loading:!0,center:null,rankList:v,barData:b,loginfo:{},visitFields:["ip","visit"],visitInfo:[],indicator:e("a-icon",{attrs:{type:"loading",spin:!0},style:"font-size: 24px"})}},created:function(){var e=this;setTimeout((function(){e.loading=!e.loading}),1e3),this.initLogInfo()},methods:{initLogInfo:function(){var e=this;Object(g["x"])(null).then((function(t){t.success&&(Object.keys(t.result).forEach((function(e){t.result[e]=t.result[e]+""})),e.loginfo=t.result)})),Object(g["F"])().then((function(t){t.success&&(console.log("aaaaaa",t.result),e.visitInfo=t.result)}))}}},x=w,S=(n("8c39"),n("2877")),C=Object(S["a"])(x,r,i,!1,null,"a8088982",null);t["default"]=C.exports},"2f5e":function(e,t,n){"use strict";n.r(t);for(var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-list"},[n("a-list",{attrs:{grid:{gutter:24,lg:3,md:2,sm:1,xs:1},dataSource:e.dataSource},scopedSlots:e._u([{key:"renderItem",fn:function(t,r){return n("a-list-item",{},[n("a-card",{attrs:{hoverable:!0}},[n("a-card-meta",[n("div",{staticStyle:{"margin-bottom":"3px"},attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.title))]),n("a-avatar",{staticClass:"card-avatar",attrs:{slot:"avatar",src:t.avatar,size:"small"},slot:"avatar"}),n("div",{staticClass:"meta-cardInfo",attrs:{slot:"description"},slot:"description"},[n("div",[n("p",[e._v("活跃用户")]),n("p",[n("span",[e._v(e._s(t.activeUser)),n("span",[e._v("万")])])])]),n("div",[n("p",[e._v("新增用户")]),n("p",[e._v(e._s(e._f("NumberFormat")(t.newUser)))])])])],1),n("template",{staticClass:"ant-card-actions",slot:"actions"},[n("a",[n("a-icon",{attrs:{type:"download"}})],1),n("a",[n("a-icon",{attrs:{type:"edit"}})],1),n("a",[n("a-icon",{attrs:{type:"share-alt"}})],1),n("a",[n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link",attrs:{href:"javascript:;"}},[n("a-icon",{attrs:{type:"ellipsis"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"}},[e._v("1st menu item")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"}},[e._v("2nd menu item")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"}},[e._v("3rd menu item")])])],1)],1)],1)])],2)],1)}}])})],1)},i=[],o=[],a=0;a<11;a++)o.push({title:"Alipay",avatar:"https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png",activeUser:17,newUser:1700});var s={name:"Article",components:{},data:function(){return{dataSource:o}}},l=s,c=(n("ce31"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"748e5dcb",null);t["default"]=u.exports},"2f9b":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("\n  hello world!\n")])},i=[],o={data:function(){return{description:"表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。",value:1,form:this.$form.createForm(this)}},methods:{handleSubmit:function(e){e.preventDefault(),this.form.validateFields((function(e,t){e||console.log("Received values of form: ",t)}))}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},"2fe0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator",staticStyle:{margin:"-25px 0px 10px 0px"},attrs:{md:24,sm:24}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"avatarslot",fn:function(t,r,i){return[n("div",{staticClass:"anty-img-wrap"},[n("a-avatar",{attrs:{shape:"square",src:e.getAvatarView(r.floorIcon),icon:"user"}})],1)]}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.showPlaneFigure(r)}}},[e._v("平面图")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("jeecgOrderCustomer-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("PlaneFigureModal",{ref:"planeFigureModal"})],1)},i=[],o=n("4dc0"),a=n("6c57"),s=n("826f"),l=n("b65a"),c=n("0fea"),u={name:"JeecgOrderCustomerList",mixins:[l["a"]],components:{JeecgOrderDMainList:a["default"],JeecgOrderCustomerModal:o["default"],PlaneFigureModal:s["default"]},data:function(){return{description:"订单客户信息",columns:[{title:"楼层名称",align:"center",width:200,dataIndex:"floorName",key:"name"},{title:"楼层图片",width:200,align:"center",dataIndex:"floorIcon"},{title:"操作",key:"operation",align:"center",width:130,scopedSlots:{customRender:"action"}}],url:{list:"/yuanqu/enterprise/queryFloorListByMainId",delete:"/yuanqu/enterprise/deleteCustomer",deleteBatch:"/yuanqu/enterprise/deleteBatchCustomer"}}},methods:{showPlaneFigure:function(e){this.$refs.planeFigureModal.show(e)},loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(c["d"])(this.url.list,{id:n.mainId,pageNo:this.ipagination.current,pageSize:this.ipagination.pageSize}).then((function(e){e.success?(t.dataSource=e.result.records,t.ipagination.total=e.result.total):t.dataSource=null}))},getOrderMain:function(e){this.queryParam.mainId=e,this.loadData(1)},handleAdd:function(){this.$refs.modalForm.add(this.queryParam.mainId),this.$refs.modalForm.title="添加客户信息"}}},d=u,f=(n("2d3a"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"9adcac28",null);t["default"]=h.exports},3:function(e,t){},"303c":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("colorpicker",(function(){console.warn("Color picker plugin is now built in to the core editor, please remove it from your editor configuration")}))}t()})()},"306a":function(e,t,n){},"309c":function(e,t,n){"use strict";n("7504")},"30d2":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("394e"),o=n("5da3"),a=n("fd36");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},3132:function(e,t,n){"use strict";n("ca6c")},3144:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},3154:function(e,t,n){n("f034")},"315e":function(e,t,n){"use strict";n("d90d")},"31b7":function(e,t,n){"use strict";n("8a8d")},"31cb":function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.clone=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_clone/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1},maxDocs:{type:"number",name:"max_docs"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},"32c1":function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.clone=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_clone/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1},maxDocs:{type:"number",name:"max_docs"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},3333:function(e,t,n){"use strict";var r=n("cef7"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return i(t,e),t}(r["a"]);t["a"]=o},3335:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1200,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-card",{staticClass:"card",attrs:{bordered:!1}},[n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{label:"任务名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.name",{rules:[{required:!0,message:"请输入任务名称",whitespace:!0}]}],expression:"[ 'task.name', {rules: [{ required: true, message: '请输入任务名称', whitespace: true}]} ]"}],attrs:{placeholder:"请输入任务名称"}})],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{label:"任务描述"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.description",{rules:[{required:!0,message:"请输入任务描述",whitespace:!0}]}],expression:"['task.description', {rules: [{ required: true, message: '请输入任务描述', whitespace: true}]} ]"}],attrs:{placeholder:"请输入任务描述"}})],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{label:"执行人"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.executor",{rules:[{required:!0,message:"请选择执行人"}]}],expression:"['task.executor',{rules: [{ required: true, message: '请选择执行人'}]}  ]"}],attrs:{placeholder:"请选择执行人"}},[n("a-select-option",{attrs:{value:"黄丽丽"}},[e._v("黄丽丽")]),n("a-select-option",{attrs:{value:"李大刀"}},[e._v("李大刀")])],1)],1)],1)],1),n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{label:"责任人"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.manager",{rules:[{required:!0,message:"请选择责任人"}]}],expression:"['task.manager',  {rules: [{ required: true, message: '请选择责任人'}]} ]"}],attrs:{placeholder:"请选择责任人"}},[n("a-select-option",{attrs:{value:"王伟"}},[e._v("王伟")]),n("a-select-option",{attrs:{value:"李红军"}},[e._v("李红军")])],1)],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{label:"提醒时间"}},[n("a-time-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.time",{rules:[{required:!0,message:"请选择提醒时间"}]}],expression:"['task.time', {rules: [{ required: true, message: '请选择提醒时间'}]} ]"}],staticStyle:{width:"100%"}})],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{label:"任务类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.type",{rules:[{required:!0,message:"请选择任务类型"}]}],expression:"['task.type', {rules: [{ required: true, message: '请选择任务类型'}]} ]"}],attrs:{placeholder:"请选择任务类型"}},[n("a-select-option",{attrs:{value:"定时执行"}},[e._v("定时执行")]),n("a-select-option",{attrs:{value:"周期执行"}},[e._v("周期执行")])],1)],1)],1)],1)],1),n("a-tabs",{attrs:{defaultActiveKey:"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"Tab 1"}},[n("a-table",{attrs:{columns:e.columns,dataSource:e.data,pagination:!1,size:"middle"},scopedSlots:e._u([e._l(["name","workId","department"],(function(t,r){return{key:t,fn:function(i,o,a){return[n("a-tooltip",{attrs:{title:"必填项",defaultVisible:!1,overlayStyle:"{ color: 'red' }"}},[o.editable?n("a-input",{key:t,staticStyle:{margin:"-5px 0"},attrs:{value:i,placeholder:e.columns[r].title},on:{change:function(n){return e.handlerRowChange(n.target.value,o.key,t)}}}):[e._v(e._s(i))]],2)]}}})),{key:"operation",fn:function(t,r,i){return[r.editable?[r.isNew?n("span",[n("a",{on:{click:function(t){return e.saveRow(r.key)}}},[e._v("添加")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"是否要删除此行?"},on:{confirm:function(t){return e.removeRow(r.key)}}},[n("a",[e._v("删除")])])],1):n("span",[n("a",{on:{click:function(t){return e.saveRow(r.key)}}},[e._v("保存")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.cancelEditRow(r.key)}}},[e._v("取消")])],1)]:n("span",[n("a",{on:{click:function(t){return e.editRow(r.key)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"是否要删除此行?"},on:{confirm:function(t){return e.removeRow(r.key)}}},[n("a",[e._v("删除")])])],1)]}}],null,!0)}),n("a-button",{staticStyle:{width:"100%","margin-top":"16px","margin-bottom":"8px"},attrs:{type:"dashed",icon:"plus"},on:{click:e.newRow}},[e._v("新增成员")])],1),n("a-tab-pane",{key:"2",attrs:{tab:"Tab 2",forceRender:""}},[e._v("\n          Content of Tab Pane 2\n        ")]),n("a-tab-pane",{key:"3",attrs:{tab:"Tab 3"}},[e._v("Content of Tab Pane 3")])],1)],1)],1)],1)},i=[],o=n("2909"),a=(n("6b54"),n("0fea")),s=n("88bc"),l=n.n(s),c=n("c1df"),u=n.n(c),d={name:"JeecgDemoTabsModal",data:function(){return{title:"操作",visible:!1,model:{},columns:[{title:"成员姓名",dataIndex:"name",key:"name",width:"20%",scopedSlots:{customRender:"name"}},{title:"工号",dataIndex:"workId",key:"workId",width:"20%",scopedSlots:{customRender:"workId"}},{title:"所属部门",dataIndex:"department",key:"department",width:"40%",scopedSlots:{customRender:"department"}},{title:"操作",key:"action",scopedSlots:{customRender:"operation"}}],data:[{key:"1",name:"小明",workId:"001",editable:!1,department:"行政部"},{key:"2",name:"李莉",workId:"002",editable:!1,department:"IT部"},{key:"3",name:"王小帅",workId:"003",editable:!1,department:"财务部"}],confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/test/jeecgDemo/add",edit:"/test/jeecgDemo/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(l()(t.model,"name","keyWord","sex","age","email","content")),t.form.setFieldsValue({punchTime:t.model.punchTime?u()(t.model.punchTime,"YYYY-MM-DD HH:mm:ss"):null}),t.form.setFieldsValue({birthday:t.model.birthday?u()(t.model.birthday):null})}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";e.model.id?(i+=e.url.edit,o="put"):(i+=e.url.add,o="post");var s=Object.assign(e.model,r);s.punchTime=s.punchTime?s.punchTime.format("YYYY-MM-DD HH:mm:ss"):null,s.birthday=s.birthday?s.birthday.format():null,console.log(s),Object(a["i"])(i,s,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},newRow:function(){var e=Math.round((new Date).getTime()).toString();console.log("uuid: "+e),this.data.push({key:e,name:"",workId:"",department:"",editable:!0,isNew:!0})},removeRow:function(e){var t=this.data.filter((function(t){return t.key!==e}));this.data=t},saveRow:function(e){var t=this.data.filter((function(t){return t.key===e}))[0];t.editable=!1,t.isNew=!1},handlerRowChange:function(e,t,n){var r=Object(o["a"])(this.data),i=r.filter((function(e){return t===e.key}))[0];i&&(i[n]=e,this.data=r)},editRow:function(e){var t=this.data.filter((function(t){return t.key===e}))[0];t.editable=!t.editable},cancelEditRow:function(e){var t=this.data.filter((function(t){return t.key===e}))[0];t.editable=!1}}},f=d,h=(n("3517"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,"e1837066",null);t["default"]=p.exports},3371:function(e,t,n){"use strict";n("8264")},"33a0":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=E(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",m={};function g(){}function v(){}function y(){}var b={};b[o]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(A([])));w&&w!==n&&r.call(w,o)&&(b=w);var x=y.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;function o(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function E(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return v.prototype=x.constructor=y,y.constructor=v,v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(C.prototype),C.prototype[a]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),l(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},"33b1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[n("a-col",{attrs:{md:24,sm:24}},[n("a-form-item",{attrs:{label:"Note",labelCol:{span:7},wrapperCol:{span:15}}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["note",{rules:[{required:!0,message:"Please input your note!"}]}],expression:"['note',{rules: [{ required: true, message: 'Please input your note!' }]}]"}]})],1)],1),n("a-col",{attrs:{md:24,sm:24}},[n("a-form-item",{attrs:{label:"Gender",labelCol:{span:7},wrapperCol:{span:15}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["gender",{rules:[{required:!0,message:"Please select your gender!"}]}],expression:"['gender',{rules: [{ required: true, message: 'Please select your gender!' }]}]"}],attrs:{placeholder:"Select a option and change input text above"},on:{change:this.handleSelectChange}},[n("a-select-option",{attrs:{value:"male"}},[e._v("male")]),n("a-select-option",{attrs:{value:"female"}},[e._v("female")])],1)],1)],1),n("a-col",{attrs:{md:24,sm:24}},[n("a-form-item",{attrs:{label:"Gender",labelCol:{span:7},wrapperCol:{span:15}}},[n("a-cascader",{attrs:{options:e.areaOptions,showSearch:{filter:e.filter},placeholder:"Please select"},on:{change:e.onChange}})],1)],1),n("a-form-item",{attrs:{wrapperCol:{span:12,offset:5}}},[n("a-col",{attrs:{md:24,sm:24}},[n("a-button",{attrs:{type:"primary",htmlType:"submit"}},[e._v("Submit")])],1)],1)],1)],1)},i=[],o=n("0fea"),a={data:function(){return{formLayout:"horizontal",form:this.$form.createForm(this),areaOptions:[]}},methods:{handleSubmit:function(e){e.preventDefault(),this.form.validateFields((function(e,t){e||console.log("Received values of form: ",t)}))},handleSelectChange:function(e){console.log(e),this.form.setFieldsValue({note:"Hi, ".concat("male"===e?"man":"lady","!")})},onChange:function(e,t){console.log(e,t)},filter:function(e,t){return t.some((function(t){return t.label.toLowerCase().indexOf(e.toLowerCase())>-1}))}},created:function(){var e=this;Object(o["d"])("/api/area").then((function(t){console.log("------------"),console.log(t),e.areaOptions=t}))}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},"33e6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"account-settings-info-view"},[n("a-row",{attrs:{gutter:16}},[n("a-col",{attrs:{md:24,lg:16}},[n("a-form",{attrs:{layout:"vertical"}},[n("a-form-item",{attrs:{label:"昵称"}},[n("a-input",{attrs:{placeholder:"给自己起个名字"}})],1),n("a-form-item",{attrs:{label:"Bio"}},[n("a-textarea",{attrs:{rows:"4",placeholder:"You are not alone."}})],1),n("a-form-item",{attrs:{label:"电子邮件",required:!1}},[n("a-input",{attrs:{placeholder:"exp@admin.com"}})],1),n("a-form-item",{attrs:{label:"加密方式",required:!1}},[n("a-select",{attrs:{defaultValue:"aes-256-cfb"}},[n("a-select-option",{attrs:{value:"aes-256-cfb"}},[e._v("aes-256-cfb")]),n("a-select-option",{attrs:{value:"aes-128-cfb"}},[e._v("aes-128-cfb")]),n("a-select-option",{attrs:{value:"chacha20"}},[e._v("chacha20")])],1)],1),n("a-form-item",{attrs:{label:"连接密码",required:!1}},[n("a-input",{attrs:{placeholder:"h3gSbecd"}})],1),n("a-form-item",{attrs:{label:"登陆密码",required:!1}},[n("a-input",{attrs:{placeholder:"密码"}})],1),n("a-form-item",[n("a-button",{attrs:{type:"primary"}},[e._v("提交")]),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("保存")])],1)],1)],1),n("a-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[n("div",{staticClass:"ant-upload-preview",on:{click:function(t){return e.$refs.modal.edit(1)}}},[n("a-icon",{staticClass:"upload-icon",attrs:{type:"cloud-upload-o"}}),n("div",{staticClass:"mask"},[n("a-icon",{attrs:{type:"plus"}})],1),n("img",{attrs:{src:e.option.img}})],1)])],1),n("avatar-modal",{ref:"modal"})],1)},i=[],o=n("8d90"),a={components:{AvatarModal:o["default"]},data:function(){return{preview:{},option:{img:"/avatar2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1]}}},methods:{}},s=a,l=(n("0bd7"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"2ce253bc",null);t["default"]=c.exports},"33ff":function(e,t,n){"use strict";var r=n("ca63").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},3409:function(e,t,n){},"340dc":function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)}))}}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},3429:function(e,t,n){"use strict";var r=n("58e3"),i=n("08e1"),o=n("5b1a"),a=n("5da3"),s=n("36e7"),l=n("33ff"),c=n("7373"),u=n("ddf93"),d=n("58c6"),f=n("791c"),h=[].push,p=Math.min,m=4294967295,g=!f((function(){return!RegExp(m,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);var s,l,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,f+"g");while(s=d.call(g,r)){if(l=g.lastIndex,l>p&&(u.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=o))break;g.lastIndex===s.index&&g.lastIndex++}return p===r.length?!c&&g.test("")||u.push(""):u.push(r.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var d=o(e),f=String(this),h=s(d,RegExp),v=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),b=new h(g?d:"^(?:"+d.source+")",y),_=void 0===i?m:i>>>0;if(0===_)return[];if(0===f.length)return null===u(b,f)?[f]:[];var w=0,x=0,S=[];while(x<f.length){b.lastIndex=g?x:0;var C,E=u(b,g?f:f.slice(x));if(null===E||(C=p(c(b.lastIndex+(g?0:x)),f.length))===w)x=l(f,x,v);else{if(S.push(f.slice(w,x)),S.length===_)return S;for(var k=1;k<=E.length-1;k++)if(S.push(E[k]),S.length===_)return S;x=w=C}}return S.push(f.slice(w)),S}]}),!g)},"345d":function(e,t,n){"use strict";function r(e){return e[0]>0&&e[1]>0}function i(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}function o(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},"345e":function(e,t,n){var r=n("9c2cc"),i=n("4587"),o=n("8e4c"),a=n("5b1a"),s=n("791c"),l=i("Reflect","apply"),c=Function.apply,u=!s((function(){l((function(){}))}));r({target:"Reflect",stat:!0,forced:u},{apply:function(e,t,n){return o(e),a(n),l?l(e,t,n):c.call(e,t,n)}})},"347c":function(e,t,n){"use strict";n("899b")},"348a":function(e,t,n){var r=n("4b0b");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"34ac6":function(e,t,n){var r=n("5b1a"),i=n("8818");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){throw i(e),a}}},"34de":function(e,t,n){n("09cf")},"34e1":function(module,__webpack_exports__,__webpack_require__){"use strict";var D_psh_workspace_manage_safe_prduce_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("ade3"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c5f6"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("28a5"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__),ol_ol_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5bc0"),ol_ol_css__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(ol_ol_css__WEBPACK_IMPORTED_MODULE_4__),ol_index__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("a2c7"),ol_index__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("5eee"),ol_interaction__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("2ce2"),ol_interaction__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("c807"),ol_interaction__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("ac29"),ol_interaction__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("b2fc"),ol_layer__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("480c"),ol_layer__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("3e6b"),ol_source__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("58315"),ol_source__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("d0e9"),ol_proj__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("256f"),ol_Feature__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("4cdf"),ol_geom_Polygon__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("5bc3"),ol_style__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("6c77"),ol_style__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("83a6"),ol_style__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("8682"),ol_style__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("ce2c"),_inputSearch__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("84a1"),_supermap_iclient_ol__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("9834");__webpack_exports__["a"]=Object(D_psh_workspace_manage_safe_prduce_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["a"])({name:"mapChooseQuart",components:{aSelect:_inputSearch__WEBPACK_IMPORTED_MODULE_22__["default"]},props:{model:"",pointKey:"",iconurl:"",visiblets:"",loading:""},data:function(){return{mode_quart:{},source_quart:new ol_source__WEBPACK_IMPORTED_MODULE_13__["a"],snap_quart:{},draw_quart:{},select_quart:new ol_interaction__WEBPACK_IMPORTED_MODULE_7__["a"],modify_quart:{},tileLayer_quart:new ol_layer__WEBPACK_IMPORTED_MODULE_11__["a"]({source:new ol_source__WEBPACK_IMPORTED_MODULE_14__["a"]}),vectorLayer_quart:{},view_quart:{},_this_quart:{},center_quart:[120.6790539441963,27.9979803194757],draw_type:"LineString",arr:"",tdt_vec:{},layer:{},zhuji:{},pd:0,source:{},maps:{},centerArr:[120.6790539441963,27.8479803194757],bian:!0,dataSourceAll:"",zdname:"name"}},mounted:function(){var e=this;this.init(),this.$nextTick((function(){e.supermapin()}))},activated:function(){console.log("activated")},beforeRouteUpdate:function(){console.log("beforeRouteUpdate")},beforeRouteLeave:function(){console.log("beforeRouteLeave")},watch:{model:{handler:function(e,t){console.log("handler"),this.vectorLayer_quart.getSource().clear();var n=this.center_quart;void 0!=e[this.quartKey]&&(n=this.checkModel_quart()),this.maps.getView().setCenter([n[0],n[1]]),this.changeSelected()},deep:!0}},methods:{chooseAddress:function(e){var t=e.split(",");this.maps.getView().zoom=16,this.maps.getView().animate({center:[t[0],t[1]]})},initVarible_quart:function(){this.mode_quart=document.getElementById("mode"),this.view_quart=new ol_index__WEBPACK_IMPORTED_MODULE_5__["a"]({center:this.center_quart,zoom:12}),this.vectorLayer_quart=new ol_layer__WEBPACK_IMPORTED_MODULE_12__["a"]({source:this.source_quart}),this.modify_quart=new ol_interaction__WEBPACK_IMPORTED_MODULE_8__["a"]({features:this.select_quart.getFeatures()}),this.draw_quart=new ol_interaction__WEBPACK_IMPORTED_MODULE_9__["a"]({type:"Polygon",source:this.source_quart}),this.snap_quart=new ol_interaction__WEBPACK_IMPORTED_MODULE_10__["a"]({source:this.source_quart})},checkModel_quart:function checkModel_quart(dataSource){for(var quartStr=dataSource.longitudeLatitude,arr=eval("("+quartStr+")"),z=0;z<arr.length;z++){for(var _quartStr="",x=0;x<arr[z].length;x++){var point=arr[z][x];_quartStr+=point+","}_quartStr=_quartStr.substring(0,_quartStr.length-1);var title=dataSource.name,smid=dataSource.smid;if(null!=_quartStr&&void 0!=_quartStr&&""!=_quartStr){for(var quartArr=_quartStr.split(","),coordinates=[],i=0;i<quartArr.length;i+=2){quartArr[i]=Number(quartArr[i]),quartArr[i+1]=Number(quartArr[i+1]);var temp=[quartArr[i],quartArr[i+1]];coordinates.push(temp)}for(var coordinatesPolygon=new Array,_i=0;_i<coordinates.length;_i++){var pointTransform=[coordinates[_i][0],coordinates[_i][1]];coordinatesPolygon.push(pointTransform)}this.vectorLayer_quart.style=new ol_style__WEBPACK_IMPORTED_MODULE_18__["c"]({fill:new ol_style__WEBPACK_IMPORTED_MODULE_19__["a"]({color:"rgba(255, 255, 255, 0.2)"}),stroke:new ol_style__WEBPACK_IMPORTED_MODULE_20__["a"]({color:"red",width:2}),image:new ol_style__WEBPACK_IMPORTED_MODULE_21__["a"]({radius:10,fill:new ol_style__WEBPACK_IMPORTED_MODULE_19__["a"]({color:"#ffcc33"})})});var plygon=new ol_geom_Polygon__WEBPACK_IMPORTED_MODULE_17__["a"]([coordinatesPolygon]),feature=new ol_Feature__WEBPACK_IMPORTED_MODULE_16__["a"]({geometry:plygon,name:title,smid:smid,dataSource:dataSource});return this.vectorLayer_quart.getSource().addFeature(feature),this.view_quart=new ol_index__WEBPACK_IMPORTED_MODULE_5__["a"]({center:[quartArr[0],quartArr[1]],zoom:12,projection:"EPSG:4326"}),quartArr}}return this.center_quart},removeInteractions_quart:function(){this.maps.removeInteraction(this.modify_quart),this.maps.removeInteraction(this.select_quart),this.maps.removeInteraction(this.draw_quart),this.maps.removeInteraction(this.select_quart)},changeSelected:function(){this.removeInteractions_quart();var e=this.model[this.quartKey];null!=e&&void 0!=e&&""!=e?(document.getElementById("modify_quart").selected=!0,this.maps.addInteraction(this.select_quart),this.maps.addInteraction(this.modify_quart),this.maps.addInteraction(this.snap_quart)):(document.getElementById("draw_quart").selected=!0,this.maps.addInteraction(this.draw_quart),this.maps.addInteraction(this.snap_quart))},addVectorLabels:function(e,t){console.log("批量画范围"),"还原点位数据"==e?(console.log("还原点位数据:"+this.dataSourceAll.length),e=this.dataSourceAll):this.dataSourceAll=e,null==this.maps.disposed_?console.log("地图尚未加载完成(清除图形)"):this.cleardraw(),console.log("处理前的数据长度:"+this.dataSourceAll.length);for(var n=0;n<e.length;n++){var r=e[n].longitudeLatitude,i=r.split("[[[").length-1,o=r.split("]]]").length-1;null==r||""==r||1!=i||1!=o?this.$emit("dataSource2add",e[n]):this.checkModel_quart(e[n])}},draw:function(){alert("draw"),this.removeInteractions_quart(),this.maps.addInteraction(this.draw_quart),this.maps.addInteraction(this.snap_quart)},editdraw:function(){alert("edit-draw"),this.removeInteractions_quart(),this.maps.addInteraction(this.select_quart),this.maps.addInteraction(this.modify_quart),this.maps.addInteraction(this.snap_quart)},cleardraw:function(){this.removeInteractions_quart(),this.vectorLayer_quart.getSource().clear()},redraw:function(){this.removeInteractions_quart()},supermapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.layer=new ol_layer__WEBPACK_IMPORTED_MODULE_11__["a"]({source:new _supermap_iclient_ol__WEBPACK_IMPORTED_MODULE_23__["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.tdt_vec),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.addLayer(this.layer);var t="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYXZJ2019CGCS2000/rest/maps/YJ_YXZJ_2019_CGCS2000";this.zhuji=new ol_layer__WEBPACK_IMPORTED_MODULE_11__["a"]({source:new _supermap_iclient_ol__WEBPACK_IMPORTED_MODULE_23__["a"]({url:t,wrapX:!0}),projection:"EPSG:4326"}),this.maps.addLayer(this.zhuji),this.maps.addLayer(this.vector)},tdmapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJSGBZB2019CGCS2000/rest/maps/YJ_SG_BZB_2019_CGCS2000";this.tdt_vec=new ol_layer__WEBPACK_IMPORTED_MODULE_11__["a"]({source:new _supermap_iclient_ol__WEBPACK_IMPORTED_MODULE_23__["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.layer),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.addLayer(this.tdt_vec),this.maps.addLayer(this.vector)},yingxiang:function(){0==this.pd?(this.supermapin(),this.pd=1):(this.tdmapin(),this.pd=0)},init:function(){Object(ol_proj__WEBPACK_IMPORTED_MODULE_15__["o"])(),this.initVariable();var e=this.checkModel();this.initVarible_quart(),this.initMap(e),this.initEvent(),this.maps.addEventListener("change",this.onChange_quart)},initVariable:function(){this.source=new ol_source__WEBPACK_IMPORTED_MODULE_13__["a"]},initMap:function(e){this.arr=e,this.maps=new ol_index__WEBPACK_IMPORTED_MODULE_6__["a"]({target:"maps",view:new ol_index__WEBPACK_IMPORTED_MODULE_5__["a"]({center:[this.arr[0],this.arr[1]],zoom:9,projection:"EPSG:4326",view:this.view_quart})}),this.tdmapin()},checkModel:function(){var e=this.model[this.pointKey];if(null!=e&&void 0!=e&&""!=e){var t=e.split(",");if(2==t.length){for(var n=0;n<t.length;n++)t[n]=Number(t[n]);return this.initPoint(t),t}}return this.centerArr},changeSize:function(){this.maps.updateSize()},initEvent:function(){var e=this,t=this;this.maps.on("click",(function(n){var r=e.maps.forEachFeatureAtPixel(n.pixel,(function(e){return e}));if(r){console.log("点击标记");var i=r.get("dataSource");console.log(JSON.stringify(i)),t.$emit("openedit",i)}else{var o=t.maps.getEventCoordinate(n.originalEvent);t.$emit("lonlatChanged",o[0]+","+o[1])}})),this.maps.on("moveend",(function(t){var n=e.maps.getView().getZoom(),r=e.bian;e.bian=n>14||14==n,r!=e.bian&&(e.jujiao?e.huanyuanVectorLabelsONE():e.addVectorLabels("还原点位数据"))}))},chooseAddressmy:function(e){console.log("聚焦");var t=e.longitudeLatitude,n=JSON.parse(t),r=n[0][0];this.maps.getView().zoom=16,this.maps.getView().animate({zoom:14},{center:[r[0],r[1]]})}}},"props",["model","quartKey"])},"34f2":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"菜单名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入菜单名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"vueUrl"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["vueUrl",{}],expression:"['vueUrl', {}]"}],attrs:{placeholder:"请输入vueUrl"}})],1)],1)],1)],1)},i=[],o=n("ade3"),a=n("0fea"),s=n("88bc"),l=n.n(s),c="";var u={name:"MenuModuleModal",components:{},data:function(){var e;return e={model:{},loading:!1,imageUrl:"",headers:{authorization:"authorization-text"},title:"操作",visible:!1},Object(o["a"])(e,"model",{}),Object(o["a"])(e,"labelCol",{xs:{span:24},sm:{span:5}}),Object(o["a"])(e,"wrapperCol",{xs:{span:24},sm:{span:16}}),Object(o["a"])(e,"confirmLoading",!1),Object(o["a"])(e,"form",this.$form.createForm(this)),Object(o["a"])(e,"validatorRules",{}),Object(o["a"])(e,"url",{add:"/menu_module/menuModule/add2",edit:"/menu_module/menuModule/edit"}),e},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(l()(t.model,"name","imgUrl","vueUrl"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";e.model.id?(i+=e.url.edit,o="put"):(i+=e.url.add,o="post");var s=Object.assign(e.model,r);console.log(s),Object(a["i"])(i,s,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()})),e.model.imgUrl=c}}))},handleCancel:function(){this.close()}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"0c098daf",null);t["default"]=h.exports},3517:function(e,t,n){"use strict";n("7ca6")},3521:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"standard-table"},[n("div",{staticClass:"alert"},[n("a-alert",{attrs:{type:"info","show-icon":!0}},[n("div",{attrs:{slot:"message"},slot:"message"},[e._v("\n        已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRows.length))]),e._v("  \n        "),e._l(e.needTotalList,(function(t,r){return t.needTotal?[e._v("\n          "+e._s(t.title)+" 总计 \n          "),n("a",{key:r,staticStyle:{"font-weight":"600"}},[e._v("\n            "+e._s(t.customRender?t.customRender(t.total):t.total)+"\n          ")]),e._v("  \n        ")]:e._e()})),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])],2)])],1),n("a-table",{attrs:{size:e.size,bordered:e.bordered,loading:e.loading,columns:e.columns,dataSource:e.current,rowKey:e.rowKey,pagination:e.pagination,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.updateSelect}}})],1)},i=[],o=(n("ac6a"),n("be94")),a=(n("c5f6"),{name:"StandardTable",props:{data:{type:Function,required:!0},dataSource:{type:Array,default:function(){return[]}},columns:{type:Array,required:!0},pageSize:{type:Number,default:10},pageNum:{type:Number,default:1},pageSizeOptions:{type:Array,default:function(){return["10","20","30","40","50"]}},responseParamsName:{type:Object,default:function(){return{}}},bordered:{type:Boolean,default:!1},size:{type:String,default:"default"},rowKey:{type:String,default:""},selectedRows:{type:Array,default:null}},data:function(){return{needTotalList:[],selectedRowKeys:[],loading:!0,total:0,pageNumber:this.pageNum,currentPageSize:this.pageSize,defaultCurrent:1,sortParams:{},current:[],pagination:{},paramsName:{}}},created:function(){this.paramsName=Object.assign({},{pageNumber:"pageNo",pageSize:"pageSize",total:"totalCount",results:"data",sortColumns:"sortColumns"},this.responseParamsName),this.needTotalList=this.initTotalList(this.columns),this.loadData({pageNum:this.pageNumber})},methods:{updateSelect:function(e,t){this.selectedRowKeys=e;var n=this.needTotalList;this.needTotalList=n.map((function(e){return Object(o["a"])({},e,{total:t.reduce((function(t,n){return t+n[e.dataIndex]}),0)})})),this.$emit("change",e,t)},initTotalList:function(e){var t=[];return e.forEach((function(e){e.needTotal&&t.push(Object(o["a"])({},e,{total:0}))})),t},loadData:function(e){var t=this;t.loading=!0,e=Object.assign({},e);var n=Object.assign({},t.sortParams);n[t.paramsName.pageNumber]=e.pageNum||t.pageNumber,n[t.paramsName.pageSize]=e.pageSize||t.currentPageSize,e.pageNum&&(t.pageNumber=e.pageNum),e.pageSize&&(t.currentPageSize=e.pageSize);var r=t.data(n);r.then((function(e){if(e){var n=e[t.paramsName.results];n=n instanceof Array&&n||[],t.current=n,t.$emit("update:currentData",t.current.slice()),t.$emit("dataloaded",t.current.slice()),t.total=1*e[t.paramsName.total],t.pagination=t.pager(),t.loading=!1}else t.loading=!1}),(function(){t.loading=!1}))},onPagerChange:function(e,t){this.pageNumber=e,this.loadData({pageNum:e})},onPagerSizeChange:function(e,t){this.currentPageSize=t},onClearSelected:function(){this.selectedRowKeys=[],this.updateSelect([],[])},pager:function(){return{total:this.total,showTotal:function(e){return"共有 ".concat(e," 条")},showSizeChanger:!0,pageSizeOptions:this.pageSizeOptions,pageSize:this.pageSize,defaultCurrent:this.defaultCurrent,onChange:this.onPagerChange,onShowSizeChange:this.onPagerSizeChange}}},watch:{selectedRows:function(e){this.needTotalList=this.needTotalList.map((function(t){return Object(o["a"])({},t,{total:e.reduce((function(e,n){return e+n[t.dataIndex]}),0)})}))}}}),s=a,l=(n("d1c8"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"1cb7fdee",null);t["default"]=c.exports},3539:function(e,t,n){"use strict";n("8304")},"35a7":function(e,t,n){"use strict";var r=n("0ec0"),i=n("01d4"),o=n("1e8d"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(){var t=e.call(this)||this;return t.revision_=0,t}return a(t,e),t.prototype.changed=function(){++this.revision_,this.dispatchEvent(i["a"].CHANGE)},t.prototype.getRevision=function(){return this.revision_},t.prototype.on=function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=Object(o["a"])(this,e[i],t);return r}return Object(o["a"])(this,e,t)},t.prototype.once=function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=Object(o["b"])(this,e[i],t)}else n=Object(o["b"])(this,e,t);return t.ol_key=n,n},t.prototype.un=function(e,t){var n=t.ol_key;if(n)l(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)},t}(r["a"]);function l(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)Object(o["c"])(e[t]);else Object(o["c"])(e)}t["a"]=s},"35be":function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.clone=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_clone/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1},maxDocs:{type:"number",name:"max_docs"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},"35d2":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),e._m(0),n("div",{staticClass:"mapQuart",attrs:{id:"map_quart"}})],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mode_quart_p"},[n("select",{staticClass:"mode_quart",attrs:{id:"mode"}},[n("option",{attrs:{value:"draw",id:"draw_quart"}},[e._v("绘制一个新的形状")]),n("option",{attrs:{value:"modify",id:"modify_quart"}},[e._v("选中一个形状并修改")]),n("option",{attrs:{value:"clear",id:"clear_quart"}},[e._v("清空")])])])}],o=(n("6b54"),n("c5f6"),n("28a5"),n("5bc0"),n("a2c7")),a=n("5eee"),s=n("2ce2"),l=n("c807"),c=n("ac29"),u=n("b2fc"),d=n("480c"),f=n("3e6b"),h=n("58315"),p=n("d0e9"),m=n("2ef1"),g=n("256f"),v=n("4cdf"),y=n("5bc3"),b=n("6c77"),_=n("83a6"),w=n("8682"),x=n("ce2c"),S=n("84a1"),C={name:"mapChooseQuart",components:{aSelect:S["default"]},data:function(){return{mode_quart:{},source_quart:new h["a"],snap_quart:{},draw_quart:{},select_quart:new s["a"],modify_quart:{},tileLayer_quart:new d["a"]({source:new p["a"]}),vectorLayer_quart:{},view_quart:{},map_quart:{},_this_quart:{},center_quart:[120.6790539441963,27.9979803194757],draw_type:"LineString"}},created:function(){console.log("beforeDestroy")},beforeUpdate:function(){console.log("beforeUpdate")},beforeMount:function(){console.log("beforeMount")},mounted:function(){console.log("mounted"),this.init_quart()},activated:function(){console.log("activated")},beforeRouteUpdate:function(){console.log("beforeRouteUpdate")},beforeRouteLeave:function(){console.log("beforeRouteLeave")},watch:{model:{handler:function(e,t){console.log("handler"),this.vectorLayer_quart.getSource().clear();var n=this.center_quart;void 0!=e[this.quartKey]&&(n=this.checkModel_quart()),this.map_quart.getView().setCenter([n[0],n[1]]),this.changeSelected()},deep:!0}},methods:{chooseAddress:function(e){var t=e.split(",");this.map_quart.getView().zoom=16,this.map_quart.getView().animate({center:[t[0],t[1]]})},init_quart:function(){Object(g["o"])(),this.initVarible_quart(),this.checkModel_quart(),this.initMap_quart(),this.mode_quart.addEventListener("change",this.onChange_quart),this.onChange_quart(),this.changeSelected(),this.initEvent_quart()},initVarible_quart:function(){this.mode_quart=document.getElementById("mode"),this.view_quart=new o["a"]({center:this.center_quart,zoom:12}),this.vectorLayer_quart=new f["a"]({source:this.source_quart}),this.modify_quart=new l["a"]({features:this.select_quart.getFeatures()}),this.draw_quart=new c["a"]({type:"Polygon",source:this.source_quart}),this.snap_quart=new u["a"]({source:this.source_quart})},checkModel_quart:function(){var e=this.model[this.quartKey];if(null!=e&&void 0!=e&&""!=e){console.log("checkModel");for(var t=e.split(","),n=[],r=0;r<t.length;r+=2){t[r]=Number(t[r]),t[r+1]=Number(t[r+1]);var i=[t[r],t[r+1]];n.push(i)}for(var a=new Array,s=0;s<n.length;s++){var l=[n[s][0],n[s][1]];a.push(l)}this.vectorLayer_quart.style=new b["c"]({fill:new _["a"]({color:"rgba(255, 255, 255, 0.2)"}),stroke:new w["a"]({color:"red",width:2}),image:new x["a"]({radius:10,fill:new _["a"]({color:"#ffcc33"})})});var c=new y["a"]([a]),u=new v["a"]({geometry:c});return this.vectorLayer_quart.getSource().addFeature(u),this.view_quart=new o["a"]({center:[t[0],t[1]],zoom:12,projection:"EPSG:4326"}),t}return this.center_quart},initMap_quart:function(){var e=new d["a"]({source:new m["a"]({url:"http://t3.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=394404c8b901574fdc4cdf8c18a98448"})}),t=new d["a"]({source:new m["a"]({url:"http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=394404c8b901574fdc4cdf8c18a98448"})});this.map_quart=new a["a"]({target:"map_quart",layers:[e,t,this.vectorLayer_quart],view:this.view_quart})},initEvent_quart:function(){var e=this;this.draw_quart.on("drawend",(function(t){var n=t.feature.getGeometry();setTimeout((function(){for(var t=n.getExtent(),r=e.vectorLayer_quart.getSource().getFeaturesInExtent(t),i=0;i<r.length;i++){var o=r[i].getGeometry().getCoordinates();e.$emit("quartChanged",o.toString())}}),300)})),this.map_quart.on("singleclick",(function(t){var n=e.map_quart.getEventPixel(t.originalEvent),r=e.map_quart.forEachFeatureAtPixel(n,(function(e,t){return{feature:e,layer:t}}));if(void 0!==r&&null!==r&&null!==r.layer)for(var i=r.feature.getGeometry(),o=i.getExtent(),a=e.vectorLayer_quart.getSource().getFeaturesInExtent(o),s=0;s<a.length;s++){var l=a[s].getGeometry().getCoordinates();e.$emit("quartChanged",l.toString())}}))},onChange_quart:function(){switch(this.removeInteractions_quart(),this.mode_quart.value){case"draw":this.map_quart.addInteraction(this.draw_quart),this.map_quart.addInteraction(this.snap_quart);break;case"modify":this.map_quart.addInteraction(this.select_quart),this.map_quart.addInteraction(this.modify_quart),this.map_quart.addInteraction(this.snap_quart);break;case"clear":this.vectorLayer_quart.getSource().clear();break;default:}},removeInteractions_quart:function(){this.map_quart.removeInteraction(this.modify_quart),this.map_quart.removeInteraction(this.select_quart),this.map_quart.removeInteraction(this.draw_quart),this.map_quart.removeInteraction(this.select_quart)},changeSelected:function(){this.removeInteractions_quart();var e=this.model[this.quartKey];null!=e&&void 0!=e&&""!=e?(document.getElementById("modify_quart").selected=!0,this.map_quart.addInteraction(this.select_quart),this.map_quart.addInteraction(this.modify_quart),this.map_quart.addInteraction(this.snap_quart)):(document.getElementById("draw_quart").selected=!0,this.map_quart.addInteraction(this.draw_quart),this.map_quart.addInteraction(this.snap_quart))}},props:["model","quartKey"]},E=C,k=(n("d291"),n("2877")),O=Object(k["a"])(E,r,i,!1,null,null,null);t["default"]=O.exports},"35e86":function(e,t,n){"use strict";e.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},"35ef":function(e,t,n){var r=n("ef6d"),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,f=l.length,h=s;return void 0!==c&&(c=r(c),h=a),o.call(u,h,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var u=i(s/10);return 0===u?r:u<=f?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):r}a=l[s-1]}return void 0===a?"":a}))}},"362d":function(e,t,n){},3694:function(e,t,n){"use strict";n("a8c0")},3699:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(){},r=function(e){return function(){return e}},i=r(!1),o=r(!0),a=function(){return s},s=function(){var e=function(e){return e.isNone()},t=function(e){return e()},s=function(e){return e},l={fold:function(e,t){return e()},is:i,isSome:i,isNone:o,getOr:s,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:s,orThunk:t,map:a,each:n,bind:a,exists:i,forall:o,filter:a,equals:e,equals_:e,toArray:function(){return[]},toString:r("none()")};return l}(),l=function(e){var t=r(e),n=function(){return c},a=function(t){return t(e)},c={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:o,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return l(t(e))},each:function(t){t(e)},bind:a,exists:a,forall:a,filter:function(t){return t(e)?c:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(i,(function(t){return n(e,t)}))}};return c},c=function(e){return null===e||void 0===e?s:l(e)},u={some:l,none:a,from:c},d=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},f=function(e){return function(t){return d(t)===e}},h=f("string"),p=f("object"),m=f("array"),g=function(e){return null===e||void 0===e},v=function(e){return!g(e)},y=Array.prototype.push,b=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},_=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!m(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);y.apply(t,e[n])}return t},w=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},x=Object.keys,S=Object.hasOwnProperty,C=function(e,t){for(var n=x(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},E=function(e){return function(t,n){e[n]=t}},k=function(e,t,n,r){var i={};return C(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},O=function(e,t){var r={};return k(e,t,E(r),n),r},T=function(e,t){return I(e,t)?u.from(e[t]):u.none()},I=function(e,t){return S.call(e,t)},A=function(e){return e.getParam("media_scripts")},R=function(e){return e.getParam("audio_template_callback")},P=function(e){return e.getParam("video_template_callback")},M=function(e){return e.getParam("media_live_embeds",!0)},N=function(e){return e.getParam("media_filter_html",!0)},L=function(e){return e.getParam("media_url_resolver")},D=function(e){return e.getParam("media_alt_source",!0)},j=function(e){return e.getParam("media_poster",!0)},F=function(e){return e.getParam("media_dimensions",!0)},B=tinymce.util.Tools.resolve("tinymce.util.Tools"),q=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),z=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),U=function(e,t){if(e)for(var n=0;n<e.length;n++)if(-1!==t.indexOf(e[n].filter))return e[n]},G=q.DOM,V=function(e){return e.replace(/px$/,"")},W=function(e){var t=e.map.style,n=t?G.parseStyle(t):{};return{type:"ephox-embed-iri",source:e.map["data-ephox-embed-iri"],altsource:"",poster:"",width:T(n,"max-width").map(V).getOr(""),height:T(n,"max-height").map(V).getOr("")}},H=function(e,t){var n=w(!1),r={};return z({validate:!1,allow_conditional_comments:!0,start:function(t,i){if(n.get());else if(I(i.map,"data-ephox-embed-iri"))n.set(!0),r=W(i);else{if(r.source||"param"!==t||(r.source=i.map.movie),"iframe"!==t&&"object"!==t&&"embed"!==t&&"video"!==t&&"audio"!==t||(r.type||(r.type=t),r=B.extend(i.map,r)),"script"===t){var o=U(e,i.map.src);if(!o)return;r={type:"script",source:i.map.src,width:String(o.width),height:String(o.height)}}"source"===t&&(r.source?r.altsource||(r.altsource=i.map.src):r.source=i.map.src),"img"!==t||r.poster||(r.poster=i.map.src)}}}).parse(t),r.source=r.source||r.src||r.data,r.altsource=r.altsource||"",r.poster=r.poster||"",r},$=function(e){var t={mp3:"audio/mpeg",m4a:"audio/x-m4a",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},n=e.toLowerCase().split(".").pop(),r=t[n];return r||""},K=tinymce.util.Tools.resolve("tinymce.html.Schema"),X=tinymce.util.Tools.resolve("tinymce.html.Writer"),Y=q.DOM,J=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},Q=function(e,t){C(t,(function(t,n){var r=""+t;if(e.map[n]){var i=e.length;while(i--){var o=e[i];o.name===n&&(r?(e.map[n]=r,o.value=r):(delete e.map[n],e.splice(i,1)))}}else r&&(e.push({name:n,value:r}),e.map[n]=r)}))},Z=function(e,t){var n=t.map.style,r=n?Y.parseStyle(n):{};r["max-width"]=J(e.width),r["max-height"]=J(e.height),Q(t,{style:Y.serializeStyle(r)})},ee=["source","altsource"],te=function(e,t,n){var r,i=X(),o=w(!1),a=0;return z({validate:!1,allow_conditional_comments:!0,comment:function(e){i.comment(e)},cdata:function(e){i.cdata(e)},text:function(e,t){i.text(e,t)},start:function(e,s,l){if(o.get());else if(I(s.map,"data-ephox-embed-iri"))o.set(!0),Z(t,s);else{switch(e){case"video":case"object":case"embed":case"img":case"iframe":void 0!==t.height&&void 0!==t.width&&Q(s,{width:t.width,height:t.height});break}if(n)switch(e){case"video":Q(s,{poster:t.poster,src:""}),t.altsource&&Q(s,{src:""});break;case"iframe":Q(s,{src:t.source});break;case"source":if(a<2&&(Q(s,{src:t[ee[a]],type:t[ee[a]+"mime"]}),!t[ee[a]]))return;a++;break;case"img":if(!t.poster)return;r=!0;break}}i.start(e,s,l)},end:function(e){if(!o.get()){if("video"===e&&n)for(var s=0;s<2;s++)if(t[ee[s]]){var l=[];l.map={},a<=s&&(Q(l,{src:t[ee[s]],type:t[ee[s]+"mime"]}),i.start("source",l,!0))}if(t.poster&&"object"===e&&n&&!r){var c=[];c.map={},Q(c,{src:t.poster,width:t.width,height:t.height}),i.start("img",c,!0)}}i.end(e)}},K({})).parse(e),i.getContent()},ne=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&amp;byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],re=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},ie=function(e,t){for(var n=re(t),r=e.regex.exec(t),i=n+e.url,o=function(e){i=i.replace("$"+e,(function(){return r[e]?r[e]:""}))},a=0;a<r.length;a++)o(a);return i.replace(/\?$/,"")},oe=function(e){var t=ne.filter((function(t){return t.regex.test(e)}));return t.length>0?B.extend({},t[0],{url:ie(t[0],e)}):null},ae=function(e){var t=e.allowfullscreen?' allowFullscreen="1"':"";return'<iframe src="'+e.source+'" width="'+e.width+'" height="'+e.height+'"'+t+"></iframe>"},se=function(e){var t='<object data="'+e.source+'" width="'+e.width+'" height="'+e.height+'" type="application/x-shockwave-flash">';return e.poster&&(t+='<img src="'+e.poster+'" width="'+e.width+'" height="'+e.height+'" />'),t+="</object>",t},le=function(e,t){return t?t(e):'<audio controls="controls" src="'+e.source+'">'+(e.altsource?'\n<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</audio>"},ce=function(e,t){return t?t(e):'<video width="'+e.width+'" height="'+e.height+'"'+(e.poster?' poster="'+e.poster+'"':"")+' controls="controls">\n<source src="'+e.source+'"'+(e.sourcemime?' type="'+e.sourcemime+'"':"")+" />\n"+(e.altsource?'<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</video>"},ue=function(e){return'<script src="'+e.source+'"><\/script>'},de=function(e,t){var n=B.extend({},t);if(!n.source&&(B.extend(n,H(A(e),n.embed)),!n.source))return"";n.altsource||(n.altsource=""),n.poster||(n.poster=""),n.source=e.convertURL(n.source,"source"),n.altsource=e.convertURL(n.altsource,"source"),n.sourcemime=$(n.source),n.altsourcemime=$(n.altsource),n.poster=e.convertURL(n.poster,"poster");var r=oe(n.source);if(r&&(n.source=r.url,n.type=r.type,n.allowfullscreen=r.allowFullscreen,n.width=n.width||String(r.w),n.height=n.height||String(r.h)),n.embed)return te(n.embed,n,!0);var i=U(A(e),n.source);i&&(n.type="script",n.width=String(i.width),n.height=String(i.height));var o=R(e),a=P(e);return n.width=n.width||"300",n.height=n.height||"150",B.each(n,(function(t,r){n[r]=e.dom.encode(""+t)})),"iframe"===n.type?ae(n):"application/x-shockwave-flash"===n.sourcemime?se(n):-1!==n.sourcemime.indexOf("audio")?le(n,o):"script"===n.type?ue(n):ce(n,a)},fe=tinymce.util.Tools.resolve("tinymce.util.Promise"),he={},pe=function(e,t,n){return new fe((function(r,i){var o=function(n){return n.html&&(he[e.source]=n),r({url:e.source,html:n.html?n.html:t(e)})};he[e.source]?o(he[e.source]):n({url:e.source},o,i)}))},me=function(e,t){return new fe((function(n){n({html:t(e),url:e.source})}))},ge=function(e){return function(t){return de(e,t)}},ve=function(e,t){var n=L(e);return n?pe(t,ge(e),n):me(t,ge(e))},ye=function(e){return he.hasOwnProperty(e)},be=function(e,t){return T(t,e).bind((function(e){return T(e,"meta")}))},_e=function(e,t,n){return function(r){var i,o=function(){return T(e,r)},a=function(){return T(t,r)},s=function(e){return T(e,"value").bind((function(e){return e.length>0?u.some(e):u.none()}))},l=function(){return o().bind((function(e){return p(e)?s(e).orThunk(a):a().orThunk((function(){return u.from(e)}))}))},c=function(){return a().orThunk((function(){return o().bind((function(e){return p(e)?s(e):u.from(e)}))}))};return i={},i[r]=(r===n?l():c()).getOr(""),i}},we=function(e,t){var n={};return T(e,"dimensions").each((function(e){b(["width","height"],(function(r){T(t,r).orThunk((function(){return T(e,r)})).each((function(e){return n[r]=e}))}))})),n},xe=function(e,n){var r=n?be(n,e).getOr({}):{},i=_e(e,r,n);return t(t(t(t(t({},i("source")),i("altsource")),i("poster")),i("embed")),we(e,r))},Se=function(e){var n=t(t({},e),{source:{value:T(e,"source").getOr("")},altsource:{value:T(e,"altsource").getOr("")},poster:{value:T(e,"poster").getOr("")}});return b(["width","height"],(function(t){T(e,t).each((function(e){var r=n.dimensions||{};r[t]=e,n.dimensions=r}))})),n},Ce=function(e){return function(t){var n=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:n})}},Ee=function(e,t){return H(A(e),t)},ke=function(e){return e.getAttribute("data-mce-object")||e.getAttribute("data-ephox-embed-iri")},Oe=function(e){var n=e.selection.getNode(),r=ke(n)?e.serializer.serialize(n,{selection:!0}):"";return t({embed:r},H(A(e),r))},Te=function(e,n){return function(r){if(h(r.url)&&r.url.trim().length>0){var i=r.html,o=Ee(n,i),a=t(t({},o),{source:r.url,embed:i});e.setData(Se(a))}}},Ie=function(e,t){for(var n=e.dom.select("*[data-mce-object]"),r=0;r<t.length;r++)for(var i=n.length-1;i>=0;i--)t[r]===n[i]&&n.splice(i,1);e.selection.select(n[0])},Ae=function(e,t){var n=e.dom.select("*[data-mce-object]");e.insertContent(t),Ie(e,n),e.nodeChanged()},Re=function(e,t,n){t.embed=te(t.embed,t),t.embed&&(e.source===t.source||ye(t.source))?Ae(n,t.embed):ve(n,t).then((function(e){Ae(n,e.html)})).catch(Ce(n))},Pe=function(e){var n=Oe(e),r=w(n),i=Se(n),o=function(t,n){var r=xe(n.getData(),"source");t.source!==r.source&&(Te(v,e)({url:r.source,html:""}),ve(e,r).then(Te(v,e)).catch(Ce(e)))},a=function(t){var n=xe(t.getData()),r=Ee(e,n.embed);t.setData(Se(r))},s=function(n,r){var i=xe(n.getData(),r),o=de(e,i);n.setData(Se(t(t({},i),{embed:o})))},l=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],c=F(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],u={title:"General",name:"general",items:_([l,c])},d={type:"textarea",name:"embed",label:"Paste your embed code below:"},f={title:"Embed",items:[d]},h=[];D(e)&&h.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),j(e)&&h.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var p={title:"Advanced",name:"advanced",items:h},m=[u,f];h.length>0&&m.push(p);var g={type:"tabpanel",tabs:m},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:g,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=xe(t.getData());Re(r.get(),n,e),t.close()},onChange:function(e,t){switch(t.name){case"source":o(r.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":s(e,t.name);break}r.set(xe(e.getData()))},initialData:i})},Me=function(e){var t=function(){Pe(e)};return{showDialog:t}},Ne=function(e){var t=function(){Pe(e)};e.addCommand("mceMedia",t)},Le=tinymce.util.Tools.resolve("tinymce.html.Node"),De=tinymce.util.Tools.resolve("tinymce.Env"),je=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Fe=function(e,t){if(!1===N(e))return t;var n,r=X();return z({validate:!1,allow_conditional_comments:!1,comment:function(e){n||r.comment(e)},cdata:function(e){n||r.cdata(e)},text:function(e,t){n||r.text(e,t)},start:function(t,i,o){if(n=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=i.length-1;a>=0;a--){var s=i[a].name;0===s.indexOf("on")&&(delete i.map[s],i.splice(a,1)),"style"===s&&(i[a].value=e.dom.serializeStyle(e.dom.parseStyle(i[a].value),t))}r.start(t,i,o),n=!1}},end:function(e){n||r.end(e)}},K({})).parse(t),r.getContent()},Be=function(e){var t=e.name;return"iframe"===t||"video"===t||"audio"===t},qe=function(e,t,n,r){void 0===r&&(r=null);var i=e.attr(n);return v(i)?i:I(t,n)?null:r},ze=function(e,t,n){var r="img"===t.name||"video"===e.name,i=r?"300":null,o="audio"===e.name?"30":"150",a=r?o:null;t.attr({width:qe(e,n,"width",i),height:qe(e,n,"height",a)})},Ue=function(e,t,n,r){var i=je({forced_root_block:!1,validate:!1},e.schema).parse(r,{context:t});while(i.firstChild)n.append(i.firstChild)},Ge=function(e,t){var n=t.name,r=new Le("img",1);return r.shortEnded=!0,We(e,t,r),ze(t,r,{}),r.attr({style:t.attr("style"),src:De.transparentSrc,"data-mce-object":n,class:"mce-object mce-object-"+n}),r},Ve=function(e,t){var n=t.name,r=e.dom.parseStyle(t.attr("style")),i=O(r,(function(e,t){return"width"!==t&&"height"!==t})),o=new Le("span",1);o.attr({contentEditable:"false",style:e.dom.serializeStyle(i),"data-mce-object":n,class:"mce-preview-object mce-object-"+n}),We(e,t,o);var a=new Le(n,1);if(ze(t,a,r),a.attr({src:t.attr("src"),style:t.attr("style"),class:t.attr("class")}),"iframe"===n)a.attr({allowfullscreen:t.attr("allowfullscreen"),frameborder:"0"});else{var s=["controls","crossorigin","currentTime","loop","muted","poster","preload"];b(s,(function(e){a.attr(e,t.attr(e))}));var l=o.attr("data-mce-html");v(l)&&Ue(e,n,a,l)}var c=new Le("span",1);return c.attr("class","mce-shim"),o.append(a),o.append(c),o},We=function(e,t,n){var r=t.attributes,i=r.length;while(i--){var o=r[i].name,a=r[i].value;"width"!==o&&"height"!==o&&"style"!==o&&("data"!==o&&"src"!==o||(a=e.convertURL(a,o)),n.attr("data-mce-p-"+o,a))}var s=t.firstChild&&t.firstChild.value;s&&(n.attr("data-mce-html",escape(Fe(e,s))),n.firstChild=null)},He=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},$e=function(e){while(e=e.parent)if(e.attr("data-ephox-embed-iri")||He(e))return!0;return!1},Ke=function(e){return function(t){var n,r,i=t.length;while(i--)n=t[i],n.parent&&(n.parent.attr("data-mce-object")||("script"!==n.name||(r=U(A(e),n.attr("src")),r))&&(r&&(r.width&&n.attr("width",r.width.toString()),r.height&&n.attr("height",r.height.toString())),Be(n)&&M(e)&&De.ceFalse?$e(n)||n.replace(Ve(e,n)):$e(n)||n.replace(Ge(e,n))))}},Xe=function(e){e.on("preInit",(function(){var t=e.schema.getSpecialElements();B.each("video audio iframe object".split(" "),(function(e){t[e]=new RegExp("</"+e+"[^>]*>","gi")}));var n=e.schema.getBoolAttrs();B.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),(function(e){n[e]={}})),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Ke(e)),e.serializer.addAttributeFilter("data-mce-object",(function(t,n){var r,i,o,a,s,l,c,u,d=t.length;while(d--)if(r=t[d],r.parent){c=r.attr(n),i=new Le(c,1),"audio"!==c&&"script"!==c&&(u=r.attr("class"),u&&-1!==u.indexOf("mce-preview-object")?i.attr({width:r.firstChild.attr("width"),height:r.firstChild.attr("height")}):i.attr({width:r.attr("width"),height:r.attr("height")})),i.attr({style:r.attr("style")}),a=r.attributes,o=a.length;while(o--){var f=a[o].name;0===f.indexOf("data-mce-p-")&&i.attr(f.substr(11),a[o].value)}"script"===c&&i.attr("type","text/javascript"),s=r.attr("data-mce-html"),s&&(l=new Le("#text",3),l.raw=!0,l.value=Fe(e,unescape(s)),i.append(l)),r.replace(i)}}))})),e.on("SetContent",(function(){e.$("span.mce-preview-object").each((function(t,n){var r=e.$(n);0===r.find("span.mce-shim").length&&r.append('<span class="mce-shim"></span>')}))}))},Ye=function(e){e.on("ResolveName",(function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)}))},Je=function(e){e.on("click keyup touchend",(function(){var t=e.selection.getNode();t&&e.dom.hasClass(t,"mce-preview-object")&&e.dom.getAttrib(t,"data-mce-selected")&&t.setAttribute("data-mce-selected","2")})),e.on("ObjectSelected",(function(e){var t=e.target.getAttribute("data-mce-object");"script"===t&&e.preventDefault()})),e.on("ObjectResized",(function(e){var t,n=e.target;n.getAttribute("data-mce-object")&&(t=n.getAttribute("data-mce-html"),t&&(t=unescape(t),n.setAttribute("data-mce-html",escape(te(t,{width:String(e.width),height:String(e.height)})))))}))},Qe=function(e,t){return function(n){return e.selection.selectorChangedWithUnbind(t.join(","),n.setActive).unbind}},Ze=function(e){e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:function(){e.execCommand("mceMedia")},onSetup:Qe(e,["img[data-mce-object]","span[data-mce-object]","div[data-ephox-embed-iri]"])}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:function(){e.execCommand("mceMedia")}})};function et(){e.add("media",(function(e){return Ne(e),Ze(e),Ye(e),Xe(e),Je(e),Me(e)}))}et()})()},"36e7":function(e,t,n){var r=n("5b1a"),i=n("8e4c"),o=n("d75c"),a=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},3726:function(e,t,n){var r=n("be46"),i=n("7373"),o=n("9fa4"),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3769:function(e,t,n){"use strict";n("f705")},"37fc":function(e,t,n){"use strict";n("a743")},"381b":function(e,t,n){},3820:function(e,t,n){"use strict";t["a"]={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},3826:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-table",{ref:"table",attrs:{size:"default",bordered:"",rowKey:"id",columns:e.columns,pagination:!1,dataSource:e.dataSource}})],1)},i=[],o={name:"RowspanTable",components:{},data:function(){var e=this;return{description:"存放位置设置表管理页面",levelNum:{},gridNum:0,boxNum:0,cabinetNo:"",columns:[{title:"分组一",align:"center",dataIndex:"cabinetNo",customRender:function(t,n,r){var i={children:t,attrs:{}};return i.attrs.rowSpan=0===r?e.dataSource.length:0,i}},{title:"分组二",align:"center",dataIndex:"levelNo",customRender:function(t,n,r){var i={children:t,attrs:{}},o=parseInt(e.levelNum),a=parseInt(e.gridNum)*parseInt(e.boxNum);console.log(o);for(var s=0;s<=o;s++){if(r===s*a){console.log(1),console.log(s*a),i.attrs.rowSpan=a;break}i.attrs.rowSpan=0}return i}},{title:"分组三",align:"center",dataIndex:"gridNo",customRender:function(t,n,r){for(var i={children:t,attrs:{}},o=parseInt(e.levelNum)*parseInt(e.gridNum),a=parseInt(e.boxNum),s=0;s<=o;s++){if(r===s*a){i.attrs.rowSpan=a;break}i.attrs.rowSpan=0}return i}},{title:"字段一",align:"center",dataIndex:"boxNo"},{title:"字段二",align:"center",dataIndex:"storedNum"},{title:"字段三",align:"center",dataIndex:"maxNum"}],dataSource:[{id:"cb1dfd12cbeca3f8ba121439ee7e2411",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"1",gridNo:"1",boxNo:"1",storedNum:2,maxNum:2,unitNum:2,assignStatus:"1",storageStatus:"1",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-02"},{id:"f903d50d02904b14175dccf2a7948777",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"1",gridNo:"1",boxNo:"2",storedNum:2,maxNum:2,unitNum:2,assignStatus:"1",storageStatus:"1",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-02"},{id:"4f04c0ca4202535d678871b07e706cf6",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"1",gridNo:"2",boxNo:"1",storedNum:2,maxNum:2,unitNum:2,assignStatus:"1",storageStatus:"1",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-02"},{id:"d0c91dabedfc03efad0126e50ea72e80",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"1",gridNo:"2",boxNo:"2",storedNum:2,maxNum:2,unitNum:2,assignStatus:"1",storageStatus:"1",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-08"},{id:"1e8bfcbe4352afbab8878f9fd368e007",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"2",gridNo:"1",boxNo:"1",storedNum:1,maxNum:2,unitNum:1,assignStatus:"1",storageStatus:"0",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-08"},{id:"d76087d8d3ebc7a59d43458588f26941",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"2",gridNo:"1",boxNo:"2",storedNum:0,maxNum:2,unitNum:0,assignStatus:"1",storageStatus:"0",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-02"},{id:"7bf7754f12e1bf95edcd501cc6b85e62",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"2",gridNo:"2",boxNo:"1",storedNum:0,maxNum:2,unitNum:0,assignStatus:"1",storageStatus:"0",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-02"},{id:"9cd08d733657d5b286bec870f12f6ecf",attributeId:"e62831f314e1390edbd884e9d9e6aca6",cabinetNo:"1",levelNo:"2",gridNo:"2",boxNo:"2",storedNum:0,maxNum:2,unitNum:0,assignStatus:"1",storageStatus:"0",remark:null,createBy:"admin",createTime:"2019-04-02",updateBy:"admin",updateTime:"2019-04-02"}],isorter:{column:"createTime",order:"desc"},url:{}}},created:function(){this.loadData()},methods:{loadData:function(){this.levelNum=4,this.gridNum=2,this.boxNum=2}}},a=o,s=(n("1b51"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"cb47b3be",null);t["default"]=l.exports},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(e,t){return r(e)||i(e,t)||o()}n.d(t,"a",(function(){return a}))},"386b":function(e,t,n){var r=n("5ca1"),i=n("79e5"),o=n("be13"),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"387c":function(e,t,n){"use strict";n("7b6a")},"38f3":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}));var r="function"===typeof Object.assign?Object.assign:function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(void 0!==o&&null!==o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function i(e){for(var t in e)delete e[t]}var o="function"===typeof Object.values?Object.values:function(e){var t=[];for(var n in e)t.push(e[n]);return t};function a(e){var t;for(t in e)return!1;return!t}},3900:function(e,t,n){"use strict";var r=n("e269"),i=n("592d"),o=n("57cb"),a=n("1e8d"),s=n("0999"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(t){var n=e.call(this)||this,r=t.element;return!r||t.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],t.render&&(n.render=t.render),t.target&&n.setTarget(t.target),n}return l(t,e),t.prototype.disposeInternal=function(){Object(s["c"])(this.element),e.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&Object(s["c"])(this.element);for(var t=0,n=this.listenerKeys.length;t<n;++t)Object(a["c"])(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=e,this.map_){var r=this.target_?this.target_:e.getOverlayContainerStopEvent();r.appendChild(this.element),this.render!==o["c"]&&this.listenerKeys.push(Object(a["a"])(e,i["a"].POSTRENDER,this.render,this)),e.render()}},t.prototype.render=function(e){},t.prototype.setTarget=function(e){this.target_="string"===typeof e?document.getElementById(e):e},t}(r["a"]);t["a"]=c},"394e":function(e,t,n){var r=n("08e1");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},3981:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-chart",{attrs:{forceFit:!0,height:e.height,data:e.data,padding:[20,20,95,20],scale:e.scale}},[n("v-tooltip"),n("v-axis",{attrs:{dataKey:e.axis1Opts.dataKey,line:e.axis1Opts.line,tickLine:e.axis1Opts.tickLine,grid:e.axis1Opts.grid}}),n("v-axis",{attrs:{dataKey:e.axis2Opts.dataKey,line:e.axis2Opts.line,tickLine:e.axis2Opts.tickLine,grid:e.axis2Opts.grid}}),n("v-legend",{attrs:{dataKey:"user",marker:"circle",offset:30}}),n("v-coord",{attrs:{type:"polar",radius:"0.8"}}),n("v-line",{attrs:{position:"item*score",color:"user",size:2}}),n("v-point",{attrs:{position:"item*score",color:"user",size:4,shape:"circle"}})],1)},i=[],o=(n("c5f6"),{dataKey:"item",line:null,tickLine:null,grid:{lineStyle:{lineDash:null},hideFirstLine:!1}}),a={dataKey:"score",line:null,tickLine:null,grid:{type:"polygon",lineStyle:{lineDash:null}}},s=[{dataKey:"score",min:0,max:100},{dataKey:"user",alias:"类型"}],l=[{item:"示例一",score:40},{item:"示例二",score:20},{item:"示例三",score:67},{item:"示例四",score:43},{item:"示例五",score:90}],c={name:"Radar",props:{height:{type:Number,default:254},dataSource:{type:Array,default:function(){return[]}}},data:function(){return{axis1Opts:o,axis2Opts:a,scale:s,data:l}},watch:{dataSource:function(e){0===e.length?this.data=l:this.data=e}}},u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,"f48462e2",null);t["default"]=f.exports},3983:function(e,t,n){},"39a5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,okButtonProps:{props:{disabled:e.disableSubmit}},cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[e.editStatus?n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"客户姓名",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入客户姓名!"}]}],expression:"['name', {rules: [{ required: true, message: '请输入客户姓名!' }]}]"}],attrs:{placeholder:"请输入客户姓名",readOnly:e.disableSubmit}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"性别",hasFeedback:""}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sex",{}],expression:"['sex', {}]"}],attrs:{placeholder:"请选择性别"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("男性")]),n("a-select-option",{attrs:{value:"2"}},[e._v("女性")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"身份证号码",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["idcard",e.validatorRules.idcard],expression:"['idcard', validatorRules.idcard]"}],attrs:{placeholder:"请输入身份证号码",readOnly:e.disableSubmit}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"身份证扫描件",hasFeedback:""}},[n("a-upload",{attrs:{action:e.uploadAction,listType:"picture-card",headers:e.headers,fileList:e.fileList},on:{change:e.handleChange,preview:e.handlePreview}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v("\n            upload\n          ")],1)],1),n("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.handlePicCancel}},[n("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})]),n("br")],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"联系方式",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["telphone",e.validatorRules.telphone],expression:"[ 'telphone', validatorRules.telphone]"}],attrs:{readOnly:e.disableSubmit}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单号码",hidden:e.hiding,hasFeedback:""},model:{value:this.orderId,callback:function(t){e.$set(this,"orderId",t)},expression:"this.orderId"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderId",{}],expression:"[ 'orderId', {}]"}],attrs:{disabled:"disabled"}})],1)],1)],1):e._e()],1)},i=[],o=(n("3b2b"),n("2909")),a=n("0fea"),s=n("88bc"),l=n.n(s),c=n("2b0e"),u=n("9fb0"),d=n("8c8b"),f={name:"JeecgOrderCustomerModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},columns:[{title:"客户名",align:"center",dataIndex:"name"},{title:"性别",align:"center",dataIndex:"sex"},{title:"身份证号码",align:"center",dataIndex:"idcard"},{title:"身份证扫描件",align:"center",dataIndex:"idcardPic"},{title:"电话",dataIndex:"telphone",align:"center"},{title:"订单号码",dataIndex:"orderId",align:"center"},{title:"创建人",dataIndex:"createBy",align:"center"},{title:"创建时间",dataIndex:"createTime",align:"center"},{title:"更新时间",dataIndex:"updateBy",align:"center"},{title:"更新人",dataIndex:"updateTime",align:"center"}],fileList:[],disableSubmit:!1,selectedRowKeys:[],orderId:"",hiding:!1,headers:{},picUrl:"",picArray:[],previewVisible:!1,previewImage:"",addStatus:!1,editStatus:!1,confirmLoading:!1,form:this.$form.createForm(this),url:{add:"/test/order/addCustomer",edit:"/test/order/editCustomer",fileUpload:window._CONFIG["domianURL"]+"/sys/common/upload",imgerver:window._CONFIG["domianURL"]+"/sys/common/view",getOrderCustomerList:"/test/order/listOrderCustomerByMainId"},validatorRules:{telphone:{rules:[{validator:this.validateMobile}]},idcard:{rules:[{validator:this.validateIdCard}]}}}},computed:{uploadAction:function(){return this.url.fileUpload}},created:function(){var e=c["default"].ls.get(u["a"]);this.headers={"X-Access-Token":e}},methods:{add:function(e){this.hiding=!0,e?(this.orderId=e,this.edit({orderId:e},"")):this.$message.warning("请选择一个客户信息")},detail:function(e){this.edit(e,"d")},edit:function(e,t){var n=this;"e"==t?(this.hiding=!1,this.disableSubmit=!1):"d"==t?(this.hiding=!1,this.disableSubmit=!0):(this.hiding=!0,this.disableSubmit=!1),this.form.resetFields(),this.orderId=e.orderId;var r=Object(d["b"])(e.idcardPic);this.fileList=Object(o["a"])(r),this.model=Object.assign({},e),e.id?(this.hiding=!1,this.addStatus=!1,this.editStatus=!0,this.$nextTick((function(){n.form.setFieldsValue(l()(n.model,"id","name","sex","idcard","telphone","orderId","createBy","createTime","updateBy","updateTime"))}))):(this.addStatus=!1,this.editStatus=!0),this.visible=!0},close:function(){this.$emit("close"),this.visible=!1,this.picUrl="",this.fileList=[]},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";e.model.id?(i+=e.url.edit,o="put"):(i+=e.url.add,o="post");var s=Object.assign(e.model,r);console.log(s),s.orderId=e.orderId,s.idcardPic=Object(d["a"])(e.fileList),Object(a["i"])(i,s,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},validateMobile:function(e,t,n){!t||new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(t)?n():n("您的手机号码格式不正确!")},validateIdCard:function(e,t,n){!t||new RegExp(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/).test(t)?n():n("您的身份证号码格式不正确!")},handleChange:function(e){if(this.fileList=e.fileList,"uploading"!==e.file.status&&"done"===e.file.status){var t=e.file.response;t.success||this.$message.warning(t.message)}},handlePicCancel:function(){this.previewVisible=!1,this.previewImage=""},handlePicView:function(e){this.previewImage=this.url.imgerver+"/"+e,this.previewVisible=!0},handlePreview:function(e){this.previewImage=e.url||e.thumbUrl,this.previewVisible=!0},getIdCardView:function(e){return this.url.imgerver+"/"+e}}},h=f,p=(n("9536"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"73c59d20",null);t["default"]=m.exports},"39c7":function(e,t,n){},"3a39b":function(e,t,n){"use strict";n.d(t,"a",(function(){return ie}));var r=n("e300"),i=n("4334"),o=n("0b2d"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return a(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==o["a"].DBLCLICK){var n=e.originalEvent,r=e.map,a=e.coordinate,s=n.shiftKey?-this.delta_:this.delta_,l=r.getView();Object(i["c"])(l,s,a,this.duration_),n.preventDefault(),t=!0}return!t},t}(i["a"]),l=s,c=n("4105"),u=n("57cb"),d=n("06f8"),f=n("ca42"),h=n("a568"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(e){function t(t){var n=e.call(this,{stopDown:u["a"]})||this,r=t||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:Object(d["a"])(d["i"],d["j"]);return n.condition_=r.onFocusOnly?Object(d["a"])(d["e"],i):i,n.noKinetic_=!1,n}return p(t,e),t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var t=this.targetPointers,n=Object(c["a"])(t);if(t.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=e.map,o=i.getView();Object(h["i"])(r,o.getResolution()),Object(h["h"])(r,o.getRotation()),o.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=t.length,e.originalEvent.preventDefault()},t.prototype.handleUpEvent=function(e){var t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=t.getPixelFromCoordinateInternal(o),s=t.getCoordinateFromPixelInternal([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:f["b"]})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map,n=t.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(c["b"]),g=m,v=n("8cc5"),y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,{stopDown:u["a"]})||this,n.condition_=r.condition?r.condition:d["c"],n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return y(t,e),t.prototype.handleDragEvent=function(e){if(Object(d["g"])(e)){var t=e.map,n=t.getView();if(n.getConstraints().rotation!==v["c"]){var r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(e){if(!Object(d["g"])(e))return!0;var t=e.map,n=t.getView();return n.endInteraction(this.duration_),!1},t.prototype.handleDownEvent=function(e){if(!Object(d["g"])(e))return!1;if(Object(d["f"])(e)&&this.condition_(e)){var t=e.map;return t.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},t}(c["b"]),_=b,w=n("cef7"),x=n("da5c"),S=n("5bc3"),C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(e){function t(t){var n=e.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return C(t,e),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]],r=n.map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new S["a"]([r])},t.prototype.getGeometry=function(){return this.geometry_},t}(x["a"]),k=E,O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},I=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return O(t,e),t}(w["a"]),A=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.box_=new k(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:d["f"],n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return O(t,e),t.prototype.defaultBoxEndCondition=function(e,t,n){var r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new I(T.BOXDRAG,e.coordinate,e))},t.prototype.handleUpEvent=function(e){this.box_.setMap(null);var t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new I(t?T.BOXEND:T.BOXCANCEL,e.coordinate,e)),!1},t.prototype.handleDownEvent=function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new I(T.BOXSTART,e.coordinate,e)),!0)},t.prototype.onBoxEnd=function(e){},t}(c["b"]),R=A,P=n("0af5"),M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(e){function t(t){var n=this,r=t||{},i=r.condition?r.condition:d["k"];return n=e.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this,n.duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return M(t,e),t.prototype.onBoxEnd=function(e){var t=this.getMap(),n=t.getView(),r=t.getSize(),i=this.getGeometry().getExtent();if(this.out_){var o=n.calculateExtentInternal(r),a=Object(P["n"])([t.getPixelFromCoordinateInternal(Object(P["v"])(i)),t.getPixelFromCoordinateInternal(Object(P["D"])(i))]),s=n.getResolutionForExtentInternal(a,r);Object(P["J"])(o,1/s),i=o}var l=n.getConstrainedResolution(n.getResolutionForExtentInternal(i,r)),c=n.getConstrainedCenter(Object(P["x"])(i),l);n.animateInternal({resolution:l,center:c,duration:this.duration_,easing:f["b"]})},t}(R),L=N,D=n("01d4"),j={LEFT:37,UP:38,RIGHT:39,DOWN:40},F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.defaultCondition_=function(e){return Object(d["i"])(e)&&Object(d["m"])(e)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return F(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==D["a"].KEYDOWN){var n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(r==j.DOWN||r==j.LEFT||r==j.RIGHT||r==j.UP)){var o=e.map,a=o.getView(),s=a.getResolution()*this.pixelDelta_,l=0,c=0;r==j.DOWN?c=-s:r==j.LEFT?l=-s:r==j.RIGHT?l=s:c=s;var u=[l,c];Object(h["h"])(u,a.getRotation()),Object(i["b"])(a,u,this.duration_),n.preventDefault(),t=!0}}return!t},t}(i["a"]),q=B,z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.condition_=r.condition?r.condition:d["m"],n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return z(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==D["a"].KEYDOWN||e.type==D["a"].KEYPRESS){var n=e.originalEvent,r=n.charCode;if(this.condition_(e)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var o=e.map,a=r=="+".charCodeAt(0)?this.delta_:-this.delta_,s=o.getView();Object(i["c"])(s,a,void 0,this.duration_),n.preventDefault(),t=!0}}return!t},t}(i["a"]),G=U,V=function(){function e(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return e.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},e.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},e.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;var n=t-3;while(n>0&&this.points_[n+2]>e)n-=3;var r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},e.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},e.prototype.getAngle=function(){return this.angle_},e}(),W=V,H=n("617d"),$=n("7fc9"),K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),X={TRACKPAD:"trackpad",WHEEL:"wheel"},Y=function(e){function t(t){var n=this,r=t||{};n=e.call(this,r)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:d["d"];return n.condition_=r.onFocusOnly?Object(d["a"])(d["e"],i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return K(t,e),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var e=this.getMap().getView();e.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;var t=e.type;if(t!==D["a"].WHEEL)return!0;var n,r=e.map,i=e.originalEvent;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==D["a"].WHEEL&&(n=i.deltaY,H["b"]&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=H["a"]),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?X.TRACKPAD:X.WHEEL);var a=r.getView();if(this.mode_===X.TRACKPAD&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=n;var s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),s),!1},t.prototype.handleWheelZoom_=function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var n=-Object($["a"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(i["c"])(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(i["a"]),J=Y,Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=u["a"]),n=e.call(this,i)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return Q(t,e),t.prototype.handleDragEvent=function(e){var t=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==v["c"]){var l=a.getViewport().getBoundingClientRect(),u=Object(c["a"])(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_))}},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map,n=t.getView();return n.endInteraction(this.duration_),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(c["b"]),ee=Z,te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ne=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=u["a"]),n=e.call(this,i)||this,n.anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return te(t,e),t.prototype.handleDragEvent=function(e){var t=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;var s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t);var u=s.getViewport().getBoundingClientRect(),d=Object(c["a"])(this.targetPointers);d[0]-=u.left,d[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(d),s.render(),l.adjustResolutionInternal(t,this.anchor_)},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map,n=t.getView(),r=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,r),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(c["b"]),re=ne;function ie(e){var t=e||{},n=new r["a"],i=new W(-.005,.05,100),o=void 0===t.altShiftDragRotate||t.altShiftDragRotate;o&&n.push(new _);var a=void 0===t.doubleClickZoom||t.doubleClickZoom;a&&n.push(new l({delta:t.zoomDelta,duration:t.zoomDuration}));var s=void 0===t.dragPan||t.dragPan;s&&n.push(new g({onFocusOnly:t.onFocusOnly,kinetic:i}));var c=void 0===t.pinchRotate||t.pinchRotate;c&&n.push(new ee);var u=void 0===t.pinchZoom||t.pinchZoom;u&&n.push(new re({duration:t.zoomDuration}));var d=void 0===t.keyboard||t.keyboard;d&&(n.push(new q),n.push(new G({delta:t.zoomDelta,duration:t.zoomDuration})));var f=void 0===t.mouseWheelZoom||t.mouseWheelZoom;f&&n.push(new J({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration}));var h=void 0===t.shiftDragZoom||t.shiftDragZoom;return h&&n.push(new L({duration:t.zoomDuration})),n}},"3ab1":function(e,t,n){"use strict";n("3bf4")},"3ada":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("result",{attrs:{"is-success":!0,description:e.description,title:e.title}},[n("template",{slot:"action"},[n("a-button",{attrs:{type:"primary"}},[e._v("返回列表")]),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("查看项目")]),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("打印")])],1),n("div",[n("div",{staticStyle:{"font-size":"16px",color:"rgba(0, 0, 0, 0.85)","font-weight":"500","margin-bottom":"20px"}},[e._v("项目名称")]),n("a-row",{staticStyle:{"margin-bottom":"16px"}},[n("a-col",{attrs:{xs:24,sm:12,md:12,lg:12,xl:6}},[n("span",{staticStyle:{color:"rgba(0, 0, 0, 0.85)"}},[e._v("项目 ID:")]),e._v("\n          20180724089\n        ")]),n("a-col",{attrs:{xs:24,sm:12,md:12,lg:12,xl:6}},[n("span",{staticStyle:{color:"rgba(0, 0, 0, 0.85)"}},[e._v("负责人:")]),e._v("\n          曲丽丽是谁?\n        ")]),n("a-col",{attrs:{xs:24,sm:24,md:24,lg:24,xl:12}},[n("span",{staticStyle:{color:"rgba(0, 0, 0, 0.85)"}},[e._v("生效时间:")]),e._v("\n          2016-12-12 ~ 2017-12-12\n        ")])],1),n("a-steps",{attrs:{current:1,direction:e.isMobile()&&e.directionType.vertical||e.directionType.horizontal,progressDot:""}},[n("a-step",[n("span",{staticStyle:{"font-size":"14px"},attrs:{slot:"title"},slot:"title"},[e._v("创建项目")]),n("template",{slot:"description"},[n("div",{staticStyle:{fontSize:"12px",color:"rgba(0, 0, 0, 0.45)",position:"relative",left:"42px"},attrs:{slot:"description"},slot:"description"},[n("div",{staticStyle:{margin:"8px 0 4px"}},[e._v("\n                曲丽丽\n                "),n("a-icon",{staticStyle:{"margin-left":"8px"},attrs:{type:"dingding-o"}})],1),n("div",[e._v("2016-12-12 12:32")])])])],2),n("a-step",{attrs:{title:"部门初审"}},[n("span",{staticStyle:{"font-size":"14px"},attrs:{slot:"title"},slot:"title"},[e._v("部门初审")]),n("template",{slot:"description"},[n("div",{staticStyle:{fontSize:"12px",color:"rgba(0, 0, 0, 0.45)",position:"relative",left:"42px"},attrs:{slot:"description"},slot:"description"},[n("div",{staticStyle:{margin:"8px 0 4px"}},[e._v("\n                周毛毛\n                "),n("a-icon",{staticStyle:{"margin-left":"8px",color:"#00A0E9"},attrs:{type:"dingding-o"}})],1),n("div",[n("a",{attrs:{href:""}},[e._v("催一下")])])])])],2),n("a-step",{attrs:{title:"财务复核"}},[n("span",{staticStyle:{"font-size":"14px"},attrs:{slot:"title"},slot:"title"},[e._v("财务复核")])]),n("a-step",{attrs:{title:"完成"}},[n("span",{staticStyle:{"font-size":"14px"},attrs:{slot:"title"},slot:"title"},[e._v("完成")])])],1)],1)],2)],1)},i=[],o=n("9a3d"),a=n("ac0d"),s={horizontal:"horizontal",vertical:"vertical"},l={name:"Success",components:{Result:o["default"]},mixins:[a["b"]],data:function(){return{title:"提交成功",description:"提交结果页用于反馈一系列操作任务的处理结果,\n 如果仅是简单操作,使用 Message 全局提示反馈即可。\n 本文字区域可以展示简单的补充说明,如果有类似展示\n “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。",directionType:s}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"58ec35a0",null);t["default"]=d.exports},"3aea":function(e,t,n){n("3699")},"3b7e":function(e,t,n){},"3bd5":function(e,t,n){},"3bf4":function(e,t,n){},"3c22":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("5c38"),i=function(){function e(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return e.prototype.clear=function(){this.cache_={},this.cacheSize_=0},e.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];0!==(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(e,t,n){var r=o(e,t,n);return r in this.cache_?this.cache_[r]:null},e.prototype.set=function(e,t,n,r){var i=o(e,t,n);this.cache_[i]=r,++this.cacheSize_},e.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},e}();function o(e,t,n){var i=n?Object(r["b"])(n):"null";return t+":"+e+":"+i}var a=new i},"3ca5":function(e,t,n){var r=n("7726").parseInt,i=n("aa77").trim,o=n("fdef"),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},"3cfc":function(e,t,n){"use strict";n("96b3")},"3d45":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"left"},[n("div",{staticClass:"content"},[n("div",{staticClass:"wrapper flex"},[n("div",{staticClass:"flex-1 today"},[n("div",{staticClass:"box flex flex-y"},[n("div",[e._v("\n              区县:\n              "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},on:{change:e.change},model:{value:e.district,callback:function(t){e.district=t},expression:"district"}},e._l(e.districtList,(function(t,r){return n("a-select-option",{attrs:{value:t.code}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"title"},[e._v("左模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_1_model,callback:function(t){e.left_1_model=t},expression:"left_1_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_1_input,callback:function(t){e.left_1_input=t},expression:"left_1_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_2_model,callback:function(t){e.left_2_model=t},expression:"left_2_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_2_input,callback:function(t){e.left_2_input=t},expression:"left_2_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_3_model,callback:function(t){e.left_3_model=t},expression:"left_3_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_3_input,callback:function(t){e.left_3_input=t},expression:"left_3_input"}})],1)])])])])]),n("div",{staticClass:"flex-1 tomorrow"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("左隐藏模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_4_model,callback:function(t){e.left_4_model=t},expression:"left_4_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_4_input,callback:function(t){e.left_4_input=t},expression:"left_4_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_5_model,callback:function(t){e.left_5_model=t},expression:"left_5_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_5_input,callback:function(t){e.left_5_input=t},expression:"left_5_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_6_model,callback:function(t){e.left_6_model=t},expression:"left_6_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_6_input,callback:function(t){e.left_6_input=t},expression:"left_6_input"}})],1)])])])])])])])]),n("div",{staticClass:"center"},[n("Center")],1),n("div",{staticClass:"right"},[n("div",{staticClass:"content"},[n("div",{staticClass:"wrapper flex"},[n("div",{staticClass:"flex-1 today"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("右模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_1_model,callback:function(t){e.right_1_model=t},expression:"right_1_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_1_input,callback:function(t){e.right_1_input=t},expression:"right_1_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_2_model,callback:function(t){e.right_2_model=t},expression:"right_2_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_2_input,callback:function(t){e.right_2_input=t},expression:"right_2_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_3_model,callback:function(t){e.right_3_model=t},expression:"right_3_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_3_input,callback:function(t){e.right_3_input=t},expression:"right_3_input"}})],1)])])])])]),n("div",{staticClass:"flex-1 tomorrow"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("右隐藏模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_4_model,callback:function(t){e.right_4_model=t},expression:"right_4_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_4_input,callback:function(t){e.right_4_input=t},expression:"right_4_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_5_model,callback:function(t){e.right_5_model=t},expression:"right_5_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_5_input,callback:function(t){e.right_5_input=t},expression:"right_5_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_6_model,callback:function(t){e.right_6_model=t},expression:"right_6_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_6_input,callback:function(t){e.right_6_input=t},expression:"right_6_input"}})],1),n("div",{staticClass:"marginTop20",staticStyle:{float:"right"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleOk()}}},[e._v("确定")])],1)])])])])])])])])])},i=[],o=n("22c5"),a=n("4ec3"),s=n("0fea"),l={name:"DutyHomePage",components:{Center:o["default"]},data:function(){return{districtList:[],menuList:[],district:"",left_1_model:"",left_1_input:"",left_2_model:"",left_2_input:"",left_3_model:"",left_3_input:"",left_4_model:"",left_4_input:"",left_5_model:"",left_5_input:"",left_6_model:"",left_6_input:"",right_1_model:"",right_1_input:"",right_2_model:"",right_2_input:"",right_3_model:"",right_3_input:"",right_4_model:"",right_4_input:"",right_5_model:"",right_5_input:"",right_6_model:"",right_6_input:"",url:{add:"/menu_module/menuModule/addOrderAQFX"}}},mounted:function(){this.initData()},methods:{change:function(e){var t=this,n={param:e};Object(s["d"])("/menu_module/menuModule/getOrderList",n).then((function(e){var n=t;e.success&&(n.left_1_model=e.result[0].vueUrl,n.left_2_model=e.result[1].vueUrl,n.left_3_model=e.result[2].vueUrl,n.left_4_model=e.result[3].vueUrl,n.left_5_model=e.result[4].vueUrl,n.left_6_model=e.result[5].vueUrl,n.right_1_model=e.result[6].vueUrl,n.right_2_model=e.result[7].vueUrl,n.right_3_model=e.result[8].vueUrl,n.right_4_model=e.result[9].vueUrl,n.right_5_model=e.result[10].vueUrl,n.right_6_model=e.result[11].vueUrl,n.left_1_input=e.result[0].length,n.left_2_input=e.result[1].length,n.left_3_input=e.result[2].length,n.left_4_input=e.result[3].length,n.left_5_input=e.result[4].length,n.left_6_input=e.result[5].length,n.right_1_input=e.result[6].length,n.right_2_input=e.result[7].length,n.right_3_input=e.result[8].length,n.right_4_input=e.result[9].length,n.right_5_input=e.result[10].length,n.right_6_input=e.result[11].length)}))},initData:function(){var e=this,t=this;Object(a["s"])().then((function(n){n.success&&(t.districtList=n.result,t.district=t.districtList[0].code,Object(s["d"])("/menu_module/menuModule/getOrderList",{param:t.district}).then((function(t){var n=e;t.success&&(n.left_1_model=t.result[0].vueUrl,n.left_2_model=t.result[1].vueUrl,n.left_3_model=t.result[2].vueUrl,n.left_4_model=t.result[3].vueUrl,n.left_5_model=t.result[4].vueUrl,n.left_6_model=t.result[5].vueUrl,n.right_1_model=t.result[6].vueUrl,n.right_2_model=t.result[7].vueUrl,n.right_3_model=t.result[8].vueUrl,n.right_4_model=t.result[9].vueUrl,n.right_5_model=t.result[10].vueUrl,n.right_6_model=t.result[11].vueUrl,n.left_1_input=t.result[0].length,n.left_2_input=t.result[1].length,n.left_3_input=t.result[2].length,n.left_4_input=t.result[3].length,n.left_5_input=t.result[4].length,n.left_6_input=t.result[5].length,n.right_1_input=t.result[6].length,n.right_2_input=t.result[7].length,n.right_3_input=t.result[8].length,n.right_4_input=t.result[9].length,n.right_5_input=t.result[10].length,n.right_6_input=t.result[11].length)})))})),Object(a["y"])().then((function(e){e.success&&(t.menuList=e.result.records)}))},handleOk:function(){var e=this,t={};t.left_1_model=this.left_1_model,t.left_1_input=this.left_1_input,t.left_2_model=this.left_2_model,t.left_2_input=this.left_2_input,t.left_3_model=this.left_3_model,t.left_3_input=this.left_3_input,t.left_4_model=this.left_4_model,t.left_4_input=this.left_4_input,t.left_5_model=this.left_5_model,t.left_5_input=this.left_5_input,t.left_6_model=this.left_6_model,t.left_6_input=this.left_6_input,t.right_1_model=this.right_1_model,t.right_1_input=this.right_1_input,t.right_2_model=this.right_2_model,t.right_2_input=this.right_2_input,t.right_3_model=this.right_3_model,t.right_3_input=this.right_3_input,t.right_4_model=this.right_4_model,t.right_4_input=this.right_4_input,t.right_5_model=this.right_5_model,t.right_5_input=this.right_5_input,t.right_6_model=this.right_6_model,t.right_6_input=this.right_6_input,t.district=this.district,Object(s["j"])(this.url.add,t).then((function(t){t.success?(e.$message.success(t.message),e.$emit("ok"),e.close()):e.$message.warning(t.message)})).finally((function(){e.confirmLoading=!1}))}}},c=l,u=(n("1f4c"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"269b55af",null);t["default"]=d.exports},"3d5e":function(e,t,n){"use strict";n("22d6")},"3d75":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-skeleton",{attrs:{active:"",loading:e.loading,paragraph:{rows:17}}},[n("a-card",{staticClass:"card-area",attrs:{bordered:!1}},[n("a-alert",{attrs:{type:"info",showIcon:!0}},[n("div",{attrs:{slot:"message"},slot:"message"},[e._v("\n        共追踪到 "+e._s(e.dataSource.length)+" 条近期HTTP请求记录\n        "),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:e.handleClickUpdate}},[e._v("立即刷新")])],1)]),n("a-table",{staticStyle:{"margin-top":"20px"},attrs:{columns:e.columns,dataSource:e.dataSource,pagination:e.pagination,loading:e.tableLoading,scroll:{x:900}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"timeTaken",fn:function(t){return[n("a-tag",t<500?{attrs:{color:"green"}}:t<1e3?{attrs:{color:"cyan"}}:t<1500?{attrs:{color:"orange"}}:{attrs:{color:"red"}},[e._v(e._s(t)+" ms")])]}},{key:"responseStatus",fn:function(t){return[t<200?n("a-tag",{attrs:{color:"pink"}},[e._v(e._s(t)+" ")]):t<201?n("a-tag",{attrs:{color:"green"}},[e._v(e._s(t)+" ")]):t<399?n("a-tag",{attrs:{color:"cyan"}},[e._v(e._s(t)+" ")]):t<403?n("a-tag",{attrs:{color:"orange"}},[e._v(e._s(t)+" ")]):t<501?n("a-tag",{attrs:{color:"red"}},[e._v(e._s(t)+" ")]):n("span",[e._v(e._s(t))])]}},{key:"requestMethod",fn:function(t){return["GET"===t?n("a-tag",{attrs:{color:"#87d068"}},[e._v(e._s(t))]):"POST"===t?n("a-tag",{attrs:{color:"#2db7f5"}},[e._v(e._s(t))]):"PUT"===t?n("a-tag",{attrs:{color:"#ffba5a"}},[e._v(e._s(t))]):"DELETE"===t?n("a-tag",{attrs:{color:"#f50"}},[e._v(e._s(t))]):n("span",[e._v(e._s(t)+" ms")])]}}])})],1)],1)},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("28a5"),n("6762"),n("2fdb"),n("c1df")),a=n.n(o),s=n("0fea");a.a.locale("zh-cn");var l={data:function(){return{advanced:!1,dataSource:[],pagination:{defaultPageSize:10,defaultCurrent:1,pageSizeOptions:["10","20","30","40","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:function(e,t){return"显示 ".concat(t[0]," ~ ").concat(t[1]," 条记录,共 ").concat(e," 条记录")}},loading:!0,tableLoading:!0}},computed:{columns:function(){return[{title:"请求时间",dataIndex:"timestamp",customRender:function(e){return a()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"请求方法",dataIndex:"request.method",scopedSlots:{customRender:"requestMethod"},filters:[{text:"GET",value:"GET"},{text:"POST",value:"POST"},{text:"PUT",value:"PUT"},{text:"DELETE",value:"DELETE"}],filterMultiple:!0,onFilter:function(e,t){return t.request.method.includes(e)}},{title:"请求URL",dataIndex:"request.uri",customRender:function(e){return e.split("?")[0]}},{title:"响应状态",dataIndex:"response.status",scopedSlots:{customRender:"responseStatus"}},{title:"请求耗时",dataIndex:"timeTaken",scopedSlots:{customRender:"timeTaken"}}]}},mounted:function(){this.fetch()},methods:{handleClickUpdate:function(){this.fetch()},handleTableChange:function(){this.fetch()},fetch:function(){var e=this;this.tableLoading=!0,Object(s["d"])("actuator/httptrace").then((function(t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t.traces[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;"OPTIONS"!==l.request.method&&-1===l.request.uri.indexOf("httptrace")&&n.push(l)}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.dataSource=n})).catch((function(t){console.error(t),e.$message.error("获取HTTP信息失败")})).finally((function(){e.loading=!1,e.tableLoading=!1}))}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},"3d81":function(e,t,n){},"3de1":function(e,t,n){"use strict";n("e4df")},"3e6b":function(e,t,n){"use strict";var r=n("1af9"),i=n("25a5"),o=n.n(i),a=n("38f3"),s=n("6c77"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c={RENDER_ORDER:"renderOrder"},u=function(e){function t(t){var n=this,r=t||{},i=Object(a["a"])({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,n=e.call(this,i)||this,n.declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return l(t,e),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(c.RENDER_ORDER)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.renderDeclutter=function(e){e.declutterTree||(e.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(e)},t.prototype.setRenderOrder=function(e){this.set(c.RENDER_ORDER,e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:s["a"],this.styleFunction_=null===e?void 0:Object(s["d"])(this.style_),this.changed()},t}(r["a"]),d=u,f={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},h=[f.FILL],p=[f.STROKE],m=[f.BEGIN_PATH],g=[f.CLOSE_PATH],v=f,y=n("f623"),b=n("045d"),_=function(){function e(){}return e.prototype.drawCustom=function(e,t,n){},e.prototype.drawGeometry=function(e){},e.prototype.setStyle=function(e){},e.prototype.drawCircle=function(e,t){},e.prototype.drawFeature=function(e,t){},e.prototype.drawGeometryCollection=function(e,t){},e.prototype.drawLineString=function(e,t){},e.prototype.drawMultiLineString=function(e,t){},e.prototype.drawMultiPoint=function(e,t){},e.prototype.drawMultiPolygon=function(e,t){},e.prototype.drawPoint=function(e,t){},e.prototype.drawPolygon=function(e,t){},e.prototype.drawText=function(e,t){},e.prototype.setFillStrokeStyle=function(e,t){},e.prototype.setImageStyle=function(e,t){},e.prototype.setTextStyle=function(e,t){},e}(),w=_,x=n("e98d"),S=n("0af5"),C=n("ddea"),E=n("9f5e"),k=n("bb6c"),O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.tolerance=t,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return O(t,e),t.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))},t.prototype.appendFlatPointCoordinates=function(e,t){for(var n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=e.length;a<s;a+=t)r[0]=e[a],r[1]=e[a+1],Object(S["f"])(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o},t.prototype.appendFlatLineCoordinates=function(e,t,n,r,i,o){var a=this.coordinates,s=a.length,l=this.getBufferedMaxExtent();o&&(t+=r);var c,u,d,f=e[t],h=e[t+1],p=this.tmpCoordinate_,m=!0;for(c=t+r;c<n;c+=r)p[0]=e[c],p[1]=e[c+1],d=Object(S["i"])(l,p),d!==u?(m&&(a[s++]=f,a[s++]=h,m=!1),a[s++]=p[0],a[s++]=p[1]):d===b["a"].INTERSECTING?(a[s++]=p[0],a[s++]=p[1],m=!1):m=!0,f=p[0],h=p[1],u=d;return(i&&m||c===t+r)&&(a[s++]=f,a[s++]=h),s},t.prototype.drawCustomCoordinates_=function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(e,t,s,r,!1,!1);i.push(l),t=s}return t},t.prototype.drawCustom=function(e,t,n){this.beginGeometry(e,t);var r,i,o,a,s,l=e.getType(),c=e.getStride(),u=this.coordinates.length;if(l==y["a"].MULTI_POLYGON){r=e.getOrientedFlatCoordinates(),a=[];var d=e.getEndss();s=0;for(var f=0,h=d.length;f<h;++f){var p=[];s=this.drawCustomCoordinates_(r,s,d[f],c,p),a.push(p)}this.instructions.push([v.CUSTOM,u,a,e,n,k["c"]])}else l==y["a"].POLYGON||l==y["a"].MULTI_LINE_STRING?(o=[],r=l==y["a"].POLYGON?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),s=this.drawCustomCoordinates_(r,0,e.getEnds(),c,o),this.instructions.push([v.CUSTOM,u,o,e,n,k["b"]])):l==y["a"].LINE_STRING||l==y["a"].CIRCLE?(r=e.getFlatCoordinates(),i=this.appendFlatLineCoordinates(r,0,r.length,c,!1,!1),this.instructions.push([v.CUSTOM,u,i,e,n,k["a"]])):l==y["a"].MULTI_POINT?(r=e.getFlatCoordinates(),i=this.appendFlatPointCoordinates(r,c),i>u&&this.instructions.push([v.CUSTOM,u,i,e,n,k["a"]])):l==y["a"].POINT&&(r=e.getFlatCoordinates(),this.coordinates.push(r[0],r[1]),i=this.coordinates.length,this.instructions.push([v.CUSTOM,u,i,e,n]));this.endGeometry(t)},t.prototype.beginGeometry=function(e,t){this.beginGeometryInstruction1_=[v.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[v.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var e,t=this.hitDetectionInstructions;t.reverse();var n,r,i=t.length,o=-1;for(e=0;e<i;++e)n=t[e],r=n[0],r==v.END_GEOMETRY?o=e:r==v.BEGIN_GEOMETRY&&(n[2]=e,Object(E["h"])(this.hitDetectionInstructions,o,e),o=-1)},t.prototype.setFillStrokeStyle=function(e,t){var n=this.state;if(e){var r=e.getColor();n.fillStyle=Object(x["a"])(r||C["c"])}else n.fillStyle=void 0;if(t){var i=t.getColor();n.strokeStyle=Object(x["a"])(i||C["l"]);var o=t.getLineCap();n.lineCap=void 0!==o?o:C["e"];var a=t.getLineDash();n.lineDash=a?a.slice():C["f"];var s=t.getLineDashOffset();n.lineDashOffset=s||C["g"];var l=t.getLineJoin();n.lineJoin=void 0!==l?l:C["h"];var c=t.getWidth();n.lineWidth=void 0!==c?c:C["i"];var u=t.getMiterLimit();n.miterLimit=void 0!==u?u:C["j"],n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(e){var t=e.fillStyle,n=[v.SET_FILL_STYLE,t];return"string"!==typeof t&&n.push(!0),n},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[v.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,t){var n=e.fillStyle;"string"===typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)},t.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!Object(E["b"])(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)},t.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var t=[v.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(S["d"])(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;Object(S["c"])(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(w),I=T,A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return A(t,e),t.prototype.drawPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([v.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.drawMultiPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.appendFlatPointCoordinates(n,r);this.instructions.push([v.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(t)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,e.prototype.finish.call(this)},t.prototype.setImageStyle=function(e,t){var n=e.getAnchor(),r=e.getSize(),i=e.getHitDetectionImage(),o=e.getImage(this.pixelRatio),a=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=i,this.image_=o,this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterImageWithText_=t},t}(I),P=R,M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return M(t,e),t.prototype.drawFlatCoordinates_=function(e,t,n,r){var i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),a=[v.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],m);var o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(p),this.endGeometry(t)}},t.prototype.drawMultiLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],m);for(var o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinates_(a,l,o[c],s);this.hitDetectionInstructions.push(p),this.endGeometry(t)}},t.prototype.finish=function(){var t=this.state;return void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(p),this.reverseHitDetectionInstructions(),this.state=null,e.prototype.finish.call(this)},t.prototype.applyStroke=function(t){void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(p),t.lastStroke=this.coordinates.length),t.lastStroke=0,e.prototype.applyStroke.call(this,t),this.instructions.push(m)},t}(I),L=N,D=n("1c48"),j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return j(t,e),t.prototype.drawFlatCoordinatess_=function(e,t,n,r){var i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,s=n.length;this.instructions.push(m),this.hitDetectionInstructions.push(m);for(var l=0;l<s;++l){var c=n[l],u=this.coordinates.length,d=this.appendFlatLineCoordinates(e,t,c,r,!0,!a),f=[v.MOVE_TO_LINE_TO,u,d];this.instructions.push(f),this.hitDetectionInstructions.push(f),a&&(this.instructions.push(g),this.hitDetectionInstructions.push(g)),t=c}return o&&(this.instructions.push(h),this.hitDetectionInstructions.push(h)),a&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),t},t.prototype.drawCircle=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,C["c"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getFlatCoordinates(),a=e.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);var l=[v.CIRCLE,s];this.instructions.push(m,l),this.hitDetectionInstructions.push(m,l),void 0!==n.fillStyle&&(this.instructions.push(h),this.hitDetectionInstructions.push(h)),void 0!==n.strokeStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),this.endGeometry(t)}},t.prototype.drawPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,C["c"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getEnds(),a=e.getOrientedFlatCoordinates(),s=e.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(t)}},t.prototype.drawMultiPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,C["c"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=e.getEndss(),a=e.getOrientedFlatCoordinates(),s=e.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinatess_(a,l,o[c],s);this.endGeometry(t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=Object(D["e"])(n[r],t);return e.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(){var e=this.state,t=e.fillStyle;void 0!==t&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(I),B=F,q=n("29f6"),z=n("1300");function U(e,t,n,r,i){var o,a,s,l,c,u,d,f,h,p,m=n,g=n,v=0,y=0,b=n;for(a=n;a<r;a+=i){var _=t[a],w=t[a+1];void 0!==c&&(h=_-c,p=w-u,l=Math.sqrt(h*h+p*p),void 0!==d&&(y+=s,o=Math.acos((d*h+f*p)/(s*l)),o>e&&(y>v&&(v=y,m=b,g=a),y=0,b=a-i)),s=l,d=h,f=p),c=_,u=w}return y+=l,y>v?[b,a]:[m,g]}var G=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},W=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return G(t,e),t.prototype.finish=function(){var t=e.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},t.prototype.drawText=function(e,t){var n=this.textFillState_,r=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(n||r)){var o=this.coordinates,a=o.length,s=e.getType(),l=null,c=e.getStride();if(i.placement!==q["a"].LINE||s!=y["a"].LINE_STRING&&s!=y["a"].MULTI_LINE_STRING&&s!=y["a"].POLYGON&&s!=y["a"].MULTI_POLYGON){var u=i.overflow?null:[];switch(s){case y["a"].POINT:case y["a"].MULTI_POINT:l=e.getFlatCoordinates();break;case y["a"].LINE_STRING:l=e.getFlatMidpoint();break;case y["a"].CIRCLE:l=e.getCenter();break;case y["a"].MULTI_LINE_STRING:l=e.getFlatMidpoints(),c=2;break;case y["a"].POLYGON:l=e.getFlatInteriorPoint(),i.overflow||u.push(l[2]/this.resolution),c=3;break;case y["a"].MULTI_POLYGON:var d=e.getFlatInteriorPoints();l=[];for(E=0,k=d.length;E<k;E+=3)i.overflow||u.push(d[E+2]/this.resolution),l.push(d[E],d[E+1]);if(0===l.length)return;c=2;break;default:}M=this.appendFlatPointCoordinates(l,c);if(M===a)return;this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);var f=i.padding;if(f!=C["k"]&&(i.scale[0]<0||i.scale[1]<0)){var h=i.padding[0],p=i.padding[1],m=i.padding[2],g=i.padding[3];i.scale[0]<0&&(p=-p,g=-g),i.scale[1]<0&&(h=-h,m=-m),f=[h,p,m,g]}var b=this.pixelRatio;this.instructions.push([v.DRAW_IMAGE,a,M,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,f==C["k"]?C["k"]:f.map((function(e){return e*b})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);var _=1/b;this.hitDetectionInstructions.push([v.DRAW_IMAGE,a,M,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[_,_],NaN,this.declutterImageWithText_,f,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),this.endGeometry(t)}else{if(!Object(S["F"])(this.getBufferedMaxExtent(),e.getExtent()))return;var w=void 0;if(l=e.getFlatCoordinates(),s==y["a"].LINE_STRING)w=[l.length];else if(s==y["a"].MULTI_LINE_STRING)w=e.getEnds();else if(s==y["a"].POLYGON)w=e.getEnds().slice(0,1);else if(s==y["a"].MULTI_POLYGON){var x=e.getEndss();w=[];for(var E=0,k=x.length;E<k;++E)w.push(x[E][0])}this.beginGeometry(e,t);for(var O=i.textAlign,T=0,I=void 0,A=0,R=w.length;A<R;++A){if(void 0==O){var P=U(i.maxAngle,l,T,w[A],c);T=P[0],I=P[1]}else I=w[A];for(var E=T;E<I;E+=c)o.push(l[E],l[E+1]);var M=o.length;T=w[A],this.drawChars_(a,M),a=M}this.endGeometry(t)}}},t.prototype.saveTextStates_=function(){var e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||C["m"],textBaseline:t.textBaseline||C["n"],scale:t.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},t.prototype.drawChars_=function(e,t){var n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,l=V[r.textBaseline],c=this.textOffsetY_*s,u=this.text_,d=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([v.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,s,c,i,d*s,u,o,1]),this.hitDetectionInstructions.push([v.DRAW_CHARS,e,t,l,r.overflow,a,r.maxAngle,1,c,i,d,u,o,1/s])},t.prototype.setTextStyle=function(e,t){var n,r,i;if(e){var o=e.getFill();o?(r=this.textFillState_,r||(r={},this.textFillState_=r),r.fillStyle=Object(x["a"])(o.getColor()||C["c"])):(r=null,this.textFillState_=r);var a=e.getStroke();if(a){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);var s=a.getLineDash(),l=a.getLineDashOffset(),c=a.getWidth(),u=a.getMiterLimit();i.lineCap=a.getLineCap()||C["e"],i.lineDash=s?s.slice():C["f"],i.lineDashOffset=void 0===l?C["g"]:l,i.lineJoin=a.getLineJoin()||C["h"],i.lineWidth=void 0===c?C["i"]:c,i.miterLimit=void 0===u?C["j"]:u,i.strokeStyle=Object(x["a"])(a.getColor()||C["l"])}else i=null,this.textStrokeState_=i;n=this.textState_;var d=e.getFont()||C["d"];Object(C["s"])(d);var f=e.getScaleArray();n.overflow=e.getOverflow(),n.font=d,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.textBaseline=e.getTextBaseline()||C["n"],n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||C["k"],n.scale=void 0===f?[1,1]:f;var h=e.getOffsetX(),p=e.getOffsetY(),m=e.getRotateWithView(),g=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===h?0:h,this.textOffsetY_=void 0===p?0:p,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===g?0:g,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Object(z["c"])(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Object(z["c"])(r.fillStyle):""}else this.text_="";this.declutterImageWithText_=t},t}(I),H=W,$={Circle:B,Default:I,Image:P,LineString:L,Polygon:B,Text:H},K=function(){function e(e,t,n,r){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}return e.prototype.finish=function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var n=this.buildersByZIndex_[t];for(var r in n){var i=n[r].finish();e[t][r]=i}}return e},e.prototype.getBuilder=function(e,t){var n=void 0!==e?e.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[t];if(void 0===i){var o=$[t];i=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i}return i},e}(),X=K,Y=n("137e"),J={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"},Q=n("617d"),Z=n("a896"),ee=n("7fc9"),te=n("bef8");function ne(e,t,n,r,i,o,a,s,l,c,u,d){var f=e[t],h=e[t+1],p=0,m=0,g=0,v=0;function y(){p=f,m=h,t+=r,f=e[t],h=e[t+1],v+=g,g=Math.sqrt((f-p)*(f-p)+(h-m)*(h-m))}do{y()}while(t<n-r&&v+g<o);var b=(o-v)/g,_=Object(ee["c"])(p,f,b),w=Object(ee["c"])(m,h,b),x=t-r,S=v,C=o+s*l(c,i,u);while(t<n-r&&v+g<C)y();b=(C-v)/g;var E,k=Object(ee["c"])(p,f,b),O=Object(ee["c"])(m,h,b);if(d){var T=[_,w,k,O];Object(te["a"])(T,0,4,2,d,T,T),E=T[0]>T[2]}else E=_>k;var I,A=Math.PI,R=[],P=x+r===t;if(t=x,g=0,v=S,f=e[t],h=e[t+1],P){y();var M=Math.atan2(h-m,f-p);E&&(M+=M>0?-A:A);var N=(k+_)/2,L=(O+w)/2;return R[0]=[N,L,(C-o)/2,M,i],R}for(var D=0,j=i.length;D<j;){y();var F=Math.atan2(h-m,f-p);if(E&&(F+=F>0?-A:A),void 0!==I){var B=F-I;if(B+=B>A?-2*A:B<-A?2*A:0,Math.abs(B)>a)return null}I=F;for(var q=D,z=0;D<j;++D){var U=E?j-D-1:D,G=s*l(c,i[U],u);if(t+r<n&&v+g<o+z+G/2)break;z+=G}if(D!==q){var V=E?i.substring(j-q,j-D):i.substring(q,D);b=(o+z/2-v)/g;N=Object(ee["c"])(p,f,b),L=Object(ee["c"])(m,h,b);R.push([N,L,z/2,F,V]),o+=z}}return R}var re=n("5938"),ie=Object(S["j"])(),oe=[],ae=[],se=[],le=[];function ce(e){return e[3].declutterBox}var ue=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function de(e,t){return"start"!==t&&"end"!==t||ue.test(e)||(t="start"===t?"left":"right"),V[t]}var fe=function(){function e(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderBuffer_=i,this.renderedTransform_=Object(Z["c"])(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(e,t,n,r){var i=e+t+n+r;if(this.labels_[i])return this.labels_[i];var o=r?this.strokeStates[r]:null,a=n?this.fillStates[n]:null,s=this.textStates[t],l=this.pixelRatio,c=[s.scale[0]*l,s.scale[1]*l],u=de(e,s.textAlign||C["m"]),d=r&&o.lineWidth?o.lineWidth:0,f=e.split("\n"),h=f.length,p=[],m=Object(C["r"])(s.font,f,p),g=Object(C["q"])(s.font),v=g*h,y=m+d,b=[],_=(y+2)*c[0],w=(v+d)*c[1],x={width:_<0?Math.floor(_):Math.ceil(_),height:w<0?Math.floor(w):Math.ceil(w),contextInstructions:b};if(1==c[0]&&1==c[1]||b.push("scale",c),b.push("font",s.font),r){b.push("strokeStyle",o.strokeStyle),b.push("lineWidth",d),b.push("lineCap",o.lineCap),b.push("lineJoin",o.lineJoin),b.push("miterLimit",o.miterLimit);var S=Q["g"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;S.prototype.setLineDash&&(b.push("setLineDash",[o.lineDash]),b.push("lineDashOffset",o.lineDashOffset))}n&&b.push("fillStyle",a.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");var E,k=.5-u,O=u*y+k*d;if(r)for(E=0;E<h;++E)b.push("strokeText",[f[E],O+k*p[E],.5*(d+g)+E*g]);if(n)for(E=0;E<h;++E)b.push("fillText",[f[E],O+k*p[E],.5*(d+g)+E*g]);return this.labels_[i]=x,x},e.prototype.replayTextBackground_=function(e,t,n,r,i,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,m){a*=d[0],s*=d[1];var g,v=n-a,y=r-s,b=i+l>e?e-l:i,_=o+c>t?t-c:o,w=h[3]+b*d[0]+h[1],x=h[0]+_*d[1]+h[2],C=v-h[3],E=y-h[0];return(p||0!==u)&&(oe[0]=C,le[0]=C,oe[1]=E,ae[1]=E,ae[0]=C+w,se[0]=ae[0],se[1]=E+x,le[1]=se[1]),0!==u?(g=Object(Z["b"])(Object(Z["c"])(),n,r,1,1,u,-n,-r),Object(Z["a"])(g,oe),Object(Z["a"])(g,ae),Object(Z["a"])(g,se),Object(Z["a"])(g,le),Object(S["k"])(Math.min(oe[0],ae[0],se[0],le[0]),Math.min(oe[1],ae[1],se[1],le[1]),Math.max(oe[0],ae[0],se[0],le[0]),Math.max(oe[1],ae[1],se[1],le[1]),ie)):Object(S["k"])(Math.min(C,C+w),Math.min(E,E+x),Math.max(C,C+w),Math.max(E,E+x),ie),f&&(v=Math.round(v),y=Math.round(y)),{drawImageX:v,drawImageY:y,drawImageW:b,drawImageH:_,originX:l,originY:c,declutterBox:{minX:ie[0],minY:ie[1],maxX:ie[2],maxY:ie[3],value:m},canvasTransform:g,scale:d}},e.prototype.replayImageOrLabel_=function(e,t,n,r,i,o,a){var s=!(!o&&!a),l=r.declutterBox,c=e.canvas,u=a?a[2]*r.scale[0]/2:0,d=l.minX-u<=c.width/t&&l.maxX+u>=0&&l.minY-u<=c.height/t&&l.maxY+u>=0;return d&&(s&&this.replayTextBackground_(e,oe,ae,se,le,o,a),Object(C["o"])(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0},e.prototype.fill_=function(e){if(this.alignFill_){var t=Object(Z["a"])(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},e.prototype.setStrokeStyle_=function(e,t){e["strokeStyle"]=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(e,t,n,r){var i=this.textStates[t],o=this.createLabel(e,t,r,n),a=this.strokeStates[n],s=this.pixelRatio,l=de(e,i.textAlign||C["m"]),c=V[i.textBaseline||C["n"]],u=a&&a.lineWidth?a.lineWidth:0,d=o.width/s-2*i.scale[0],f=l*d+2*(.5-l)*u,h=c*o.height/s+2*(.5-c)*u;return{label:o,anchorX:f,anchorY:h}},e.prototype.execute_=function(e,t,n,r,i,o,a,s){var l;this.pixelCoordinates_&&Object(E["b"])(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Object(te["c"])(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Object(Z["f"])(this.renderedTransform_,n));var c,u,d,f,h,p,m,g,y,b,_,w,x,k,O,T,I=0,A=r.length,R=0,P=0,M=0,N=null,L=null,D=this.coordinateCache_,j=this.viewRotation_,F=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,B={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:j},q=this.instructions!=r||this.overlaps?0:200;while(I<A){var z=r[I],U=z[0];switch(U){case v.BEGIN_GEOMETRY:x=z[1],T=z[3],x.getGeometry()?void 0===a||Object(S["F"])(a,T.getExtent())?++I:I=z[2]+1:I=z[2];break;case v.BEGIN_PATH:P>q&&(this.fill_(e),P=0),M>q&&(e.stroke(),M=0),P||M||(e.beginPath(),f=NaN,h=NaN),++I;break;case v.CIRCLE:R=z[1];var G=l[R],W=l[R+1],H=l[R+2],$=l[R+3],K=H-G,X=$-W,Y=Math.sqrt(K*K+X*X);e.moveTo(G+Y,W),e.arc(G,W,Y,0,2*Math.PI,!0),++I;break;case v.CLOSE_PATH:e.closePath(),++I;break;case v.CUSTOM:R=z[1],c=z[2];var J=z[3],Q=z[4],ee=6==z.length?z[5]:void 0;B.geometry=J,B.feature=x,I in D||(D[I]=[]);var ie=D[I];ee?ee(l,R,c,2,ie):(ie[0]=l[R],ie[1]=l[R+1],ie.length=2),Q(ie,B),++I;break;case v.DRAW_IMAGE:R=z[1],c=z[2],g=z[3],u=z[4],d=z[5];var oe=z[6],ae=z[7],se=z[8],le=z[9],ue=z[10],de=z[11],fe=z[12],he=z[13],pe=z[14];if(!g&&z.length>=19){y=z[18],b=z[19],_=z[20],w=z[21];var me=this.drawLabelWithPointPlacement_(y,b,_,w);g=me.label,z[3]=g;var ge=z[22];u=(me.anchorX-ge)*this.pixelRatio,z[4]=u;var ve=z[23];d=(me.anchorY-ve)*this.pixelRatio,z[5]=d,oe=g.height,z[6]=oe,he=g.width,z[13]=he}var ye=void 0;z.length>24&&(ye=z[24]);var be=void 0,_e=void 0,we=void 0;z.length>16?(be=z[15],_e=z[16],we=z[17]):(be=C["k"],_e=!1,we=!1),ue&&F?de+=j:ue||F||(de-=j);for(var xe=0;R<c;R+=2)if(!(ye&&ye[xe++]<he/this.pixelRatio)){var Se=this.calculateImageOrLabelDimensions_(g.width,g.height,l[R],l[R+1],he,oe,u,d,se,le,de,fe,i,be,_e||we,x),Ce=[e,t,g,Se,ae,_e?N:null,we?L:null],Ee=void 0,ke=void 0;if(s&&pe){if(!pe[R]){pe[R]=Ce;continue}if(Ee=pe[R],delete pe[R],ke=ce(Ee),s.collides(ke))continue}s&&s.collides(Se.declutterBox)||(Ee&&(s&&s.insert(ke),this.replayImageOrLabel_.apply(this,Ee)),s&&s.insert(Se.declutterBox),this.replayImageOrLabel_.apply(this,Ce))}++I;break;case v.DRAW_CHARS:var Oe=z[1],Te=z[2],Ie=z[3],Ae=z[4];w=z[5];var Re=z[6],Pe=z[7],Me=z[8];_=z[9];var Ne=z[10];y=z[11],b=z[12];var Le=[z[13],z[13]],De=this.textStates[b],je=De.font,Fe=[De.scale[0]*Pe,De.scale[1]*Pe],Be=void 0;je in this.widths_?Be=this.widths_[je]:(Be={},this.widths_[je]=Be);var qe=Object(re["a"])(l,Oe,Te,2),ze=Math.abs(Fe[0])*Object(C["p"])(je,y,Be);if(Ae||ze<=qe){var Ue=this.textStates[b].textAlign,Ge=(qe-ze)*V[Ue],Ve=ne(l,Oe,Te,2,y,Ge,Re,Math.abs(Fe[0]),C["p"],je,Be,F?0:this.viewRotation_);e:if(Ve){var We=[],He=void 0,$e=void 0,Ke=void 0,Xe=void 0,Ye=void 0;if(_)for(He=0,$e=Ve.length;He<$e;++He){Ye=Ve[He],Ke=Ye[4],Xe=this.createLabel(Ke,b,"",_),u=Ye[2]+(Fe[0]<0?-Ne:Ne),d=Ie*Xe.height+2*(.5-Ie)*Ne*Fe[1]/Fe[0]-Me;Se=this.calculateImageOrLabelDimensions_(Xe.width,Xe.height,Ye[0],Ye[1],Xe.width,Xe.height,u,d,0,0,Ye[3],Le,!1,C["k"],!1,x);if(s&&s.collides(Se.declutterBox))break e;We.push([e,t,Xe,Se,1,null,null])}if(w)for(He=0,$e=Ve.length;He<$e;++He){Ye=Ve[He],Ke=Ye[4],Xe=this.createLabel(Ke,b,w,""),u=Ye[2],d=Ie*Xe.height-Me;Se=this.calculateImageOrLabelDimensions_(Xe.width,Xe.height,Ye[0],Ye[1],Xe.width,Xe.height,u,d,0,0,Ye[3],Le,!1,C["k"],!1,x);if(s&&s.collides(Se.declutterBox))break e;We.push([e,t,Xe,Se,1,null,null])}s&&s.load(We.map(ce));for(var Je=0,Qe=We.length;Je<Qe;++Je)this.replayImageOrLabel_.apply(this,We[Je])}}++I;break;case v.END_GEOMETRY:if(void 0!==o){x=z[1];var Ze=o(x,T);if(Ze)return Ze}++I;break;case v.FILL:q?P++:this.fill_(e),++I;break;case v.MOVE_TO_LINE_TO:for(R=z[1],c=z[2],k=l[R],O=l[R+1],p=k+.5|0,m=O+.5|0,p===f&&m===h||(e.moveTo(k,O),f=p,h=m),R+=2;R<c;R+=2)k=l[R],O=l[R+1],p=k+.5|0,m=O+.5|0,R!=c-2&&p===f&&m===h||(e.lineTo(k,O),f=p,h=m);++I;break;case v.SET_FILL_STYLE:N=z,this.alignFill_=z[2],P&&(this.fill_(e),P=0,M&&(e.stroke(),M=0)),e.fillStyle=z[1],++I;break;case v.SET_STROKE_STYLE:L=z,M&&(e.stroke(),M=0),this.setStrokeStyle_(e,z),++I;break;case v.STROKE:q?M++:e.stroke(),++I;break;default:++I;break}}P&&this.fill_(e),M&&e.stroke()},e.prototype.execute=function(e,t,n,r,i,o){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0,o)},e.prototype.executeHitDetection=function(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,1,t,this.hitDetectionInstructions,!0,r,i)},e}(),he=fe,pe=n("0999"),me=[J.POLYGON,J.CIRCLE,J.LINE_STRING,J.IMAGE,J.TEXT,J.DEFAULT],ge=function(){function e(e,t,n,r,i,o){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(Z["c"])(),this.createExecutors_(i)}return e.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},e.prototype.createExecutors_=function(e){for(var t in e){var n=this.executorsByZIndex_[t];void 0===n&&(n={},this.executorsByZIndex_[t]=n);var r=e[t],i=[this.renderBuffer_||0,this.renderBuffer_||0];for(var o in r){var a=r[o];n[o]=new he(this.resolution_,this.pixelRatio_,this.overlaps_,a,i)}}},e.prototype.hasExecutors=function(e){for(var t in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[t],r=0,i=e.length;r<i;++r)if(e[r]in n)return!0;return!1},e.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o){r=Math.round(r);var a=2*r+1,s=Object(Z["b"])(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=Object(pe["a"])(a,a));var c,u=this.hitDetectionContext_;u.canvas.width!==a||u.canvas.height!==a?(u.canvas.width=a,u.canvas.height=a):l||u.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(c=Object(S["j"])(),Object(S["r"])(c,e),Object(S["c"])(c,t*(this.renderBuffer_+r),c));var d,f=ye(r);function h(e,t){for(var n=u.getImageData(0,0,a,a).data,s=0,l=f.length;s<l;s++)if(n[f[s]]>0){if(!o||d!==J.IMAGE&&d!==J.TEXT||-1!==o.indexOf(e)){var c=(f[s]-3)/4,h=r-c%a,p=r-(c/a|0),m=i(e,t,h*h+p*p);if(m)return m}u.clearRect(0,0,a,a);break}}var p,m,g,v,y,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(E["g"]),p=b.length-1;p>=0;--p){var _=b[p].toString();for(g=this.executorsByZIndex_[_],m=me.length-1;m>=0;--m)if(d=me[m],v=g[d],void 0!==v&&(y=v.executeHitDetection(u,s,n,h,c),y))return y}},e.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return Object(te["c"])(a,0,8,2,e,a),a},e.prototype.isEmpty=function(){return Object(a["d"])(this.executorsByZIndex_)},e.prototype.execute=function(e,t,n,r,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(E["g"]),this.maxExtent_&&(e.save(),this.clip(e,n));var l,c,u,d,f,h,p=o||me;for(a&&s.reverse(),l=0,c=s.length;l<c;++l){var m=s[l].toString();for(f=this.executorsByZIndex_[m],u=0,d=p.length;u<d;++u){var g=p[u];h=f[g],void 0!==h&&h.execute(e,t,n,r,i,a)}}this.maxExtent_&&e.restore()},e}(),ve={};function ye(e){if(void 0!==ve[e])return ve[e];for(var t=2*e+1,n=e*e,r=new Array(n+1),i=0;i<=e;++i)for(var o=0;o<=e;++o){var a=i*i+o*o;if(a>n)break;var s=r[a];s||(s=[],r[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}for(var l=[],c=(i=0,r.length);i<c;++i)r[i]&&l.push.apply(l,r[i]);return ve[e]=l,l}var be=ge,_e=n("496f"),we=n("9abc"),xe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Se=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l.context_=t,l.pixelRatio_=n,l.extent_=r,l.transform_=i,l.viewRotation_=o,l.squaredTolerance_=a,l.userTransform_=s,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=Object(Z["c"])(),l}return xe(t,e),t.prototype.drawImages_=function(e,t,n,r){if(this.image_){var i=Object(te["c"])(e,t,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var c=0,u=i.length;c<u;c+=2){var d=i[c]-this.imageAnchorX_,f=i[c+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var h=d+this.imageAnchorX_,p=f+this.imageAnchorY_;Object(Z["b"])(a,h,p,1,1,l,-h,-p),o.setTransform.apply(o,a),o.translate(h,p),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,f,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=s)}},t.prototype.drawText_=function(e,t,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Object(te["c"])(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);t<n;t+=r){var s=i[t]+this.textOffsetX_,l=i[t+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var c=Object(Z["b"])(this.tmpLocalTransform_,s,l,1,1,a,-s,-l);o.setTransform.apply(o,c),o.translate(s,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}}},t.prototype.moveToLineTo_=function(e,t,n,r,i){var o=this.context_,a=Object(te["c"])(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},t.prototype.drawRings_=function(e,t,n,r){for(var i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t},t.prototype.drawCircle=function(e){if(Object(S["F"])(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=Object(we["b"])(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.setTransform=function(e){this.transform_=e},t.prototype.drawGeometry=function(e){var t=e.getType();switch(t){case y["a"].POINT:this.drawPoint(e);break;case y["a"].LINE_STRING:this.drawLineString(e);break;case y["a"].POLYGON:this.drawPolygon(e);break;case y["a"].MULTI_POINT:this.drawMultiPoint(e);break;case y["a"].MULTI_LINE_STRING:this.drawMultiLineString(e);break;case y["a"].MULTI_POLYGON:this.drawMultiPolygon(e);break;case y["a"].GEOMETRY_COLLECTION:this.drawGeometryCollection(e);break;case y["a"].CIRCLE:this.drawCircle(e);break;default:}},t.prototype.drawFeature=function(e,t){var n=t.getGeometryFunction()(e);n&&Object(S["F"])(this.extent_,n.getExtent())&&(this.setStyle(t),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(e){for(var t=e.getGeometriesArray(),n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])},t.prototype.drawPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawMultiPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawLineString=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(S["F"])(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var r=e.getFlatMidpoint();this.drawText_(r,0,2,2)}}},t.prototype.drawMultiLineString=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getExtent();if(Object(S["F"])(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var c=e.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},t.prototype.drawPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(S["F"])(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var n=e.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(S["F"])(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getOrientedFlatCoordinates(),r=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var c=e.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},t.prototype.setContextFillState_=function(e){var t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),t.setLineDash&&(Object(E["b"])(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset)),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:C["m"];n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,t){if(e){var n=e.getColor();this.fillState_={fillStyle:Object(x["a"])(n||C["c"])}}else this.fillState_=null;if(t){var r=t.getColor(),i=t.getLineCap(),o=t.getLineDash(),a=t.getLineDashOffset(),s=t.getLineJoin(),l=t.getWidth(),c=t.getMiterLimit();this.strokeState_={lineCap:void 0!==i?i:C["e"],lineDash:o||C["f"],lineDashOffset:a||C["g"],lineJoin:void 0!==s?s:C["h"],lineWidth:this.pixelRatio_*(void 0!==l?l:C["i"]),miterLimit:void 0!==c?c:C["j"],strokeStyle:Object(x["a"])(r||C["l"])}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){if(e){var t=e.getSize();if(t){var n=e.getAnchor(),r=e.getImage(1),i=e.getOrigin(),o=e.getScaleArray();this.imageAnchorX_=n[0],this.imageAnchorY_=n[1],this.imageHeight_=t[1],this.image_=r,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=[this.pixelRatio_*o[0],this.pixelRatio_*o[1]],this.imageWidth_=t[0]}else this.image_=null}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var t=e.getFill();if(t){var n=t.getColor();this.textFillState_={fillStyle:Object(x["a"])(n||C["c"])}}else this.textFillState_=null;var r=e.getStroke();if(r){var i=r.getColor(),o=r.getLineCap(),a=r.getLineDash(),s=r.getLineDashOffset(),l=r.getLineJoin(),c=r.getWidth(),u=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:C["e"],lineDash:a||C["f"],lineDashOffset:s||C["g"],lineJoin:void 0!==l?l:C["h"],lineWidth:void 0!==c?c:C["i"],miterLimit:void 0!==u?u:C["j"],strokeStyle:Object(x["a"])(i||C["l"])}}else this.textStrokeState_=null;var d=e.getFont(),f=e.getOffsetX(),h=e.getOffsetY(),p=e.getRotateWithView(),m=e.getRotation(),g=e.getScaleArray(),v=e.getText(),y=e.getTextAlign(),b=e.getTextBaseline();this.textState_={font:void 0!==d?d:C["d"],textAlign:void 0!==y?y:C["m"],textBaseline:void 0!==b?b:C["n"]},this.text_=void 0!==v?v:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==h?this.pixelRatio_*h:0,this.textRotateWithView_=void 0!==p&&p,this.textRotation_=void 0!==m?m:0,this.textScale_=[this.pixelRatio_*g[0],this.pixelRatio_*g[1]]}else this.text_=""},t}(w),Ce=Se,Ee=n("82b0"),ke=n("6cbf");function Oe(e,t,n,r,i,o,a){var s=e[0]/2,l=e[1]/2,c=Object(pe["a"])(s,l);c.imageSmoothingEnabled=!1;for(var u=c.canvas,d=new Ce(c,.5,i,null,a),f=n.length,h=Math.floor(16777215/f),p={},m=1;m<=f;++m){var g=n[m-1],v=g.getStyleFunction()||r;if(r){var b=v(g,o);if(b){Array.isArray(b)||(b=[b]);for(var _=m*h,w="#"+("000000"+_.toString(16)).slice(-6),x=0,C=b.length;x<C;++x){var k=b[x],O=k.clone(),T=O.getFill();T&&T.setColor(w);var I=O.getStroke();I&&I.setColor(w),O.setText(void 0);var A=k.getImage();if(A){var R=A.getImageSize();if(!R)continue;var P=document.createElement("canvas");P.width=R[0],P.height=R[1];var M=P.getContext("2d",{alpha:!1});M.fillStyle=w;var N=M.canvas;M.fillRect(0,0,N.width,N.height);var L=R?R[0]:N.width,D=R?R[1]:N.height,j=Object(pe["a"])(L,D);j.drawImage(N,0,0),O.setImage(new ke["a"]({img:N,imgSize:R,anchor:A.getAnchor(),anchorXUnits:Ee["a"].PIXELS,anchorYUnits:Ee["a"].PIXELS,offset:A.getOrigin(),size:A.getSize(),opacity:A.getOpacity(),scale:A.getScale(),rotation:A.getRotation(),rotateWithView:A.getRotateWithView()}))}var F=Number(O.getZIndex()),B=p[F];B||(B={},p[F]=B,B[y["a"].POLYGON]=[],B[y["a"].CIRCLE]=[],B[y["a"].LINE_STRING]=[],B[y["a"].POINT]=[]);var q=O.getGeometryFunction()(g);q&&Object(S["F"])(i,q.getExtent())&&B[q.getType().replace("Multi","")].push(q,O)}}}}for(var z=Object.keys(p).map(Number).sort(E["g"]),U=(m=0,z.length);m<U;++m){B=p[z[m]];for(var G in B){var V=B[G];for(x=0,C=V.length;x<C;x+=2){d.setStyle(V[x+1]);for(var W=0,H=t.length;W<H;++W)d.setTransform(t[W]),d.drawGeometry(V[x])}}}return c.getImageData(0,0,u.width,u.height)}function Te(e,t,n){var r=[];if(n){var i=4*(Math.round(e[0]/2)+Math.round(e[1]/2)*n.width),o=n.data[i],a=n.data[i+1],s=n.data[i+2],l=s+256*(a+256*o),c=Math.floor(16777215/t.length);l&&l%c===0&&r.push(t[l/c-1])}return r}var Ie=n("869f"),Ae=.5,Re={Point:Ge,LineString:qe,Polygon:We,MultiPoint:Ve,MultiLineString:ze,MultiPolygon:Ue,GeometryCollection:Be,Circle:Le};function Pe(e,t){return parseInt(Object(z["c"])(e),10)-parseInt(Object(z["c"])(t),10)}function Me(e,t){var n=Ne(e,t);return n*n}function Ne(e,t){return Ae*e/t}function Le(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),J.CIRCLE);s.setFillStrokeStyle(o,a),s.drawCircle(t,r)}var l=n.getText();if(l&&l.getText()){var c=(i||e).getBuilder(n.getZIndex(),J.TEXT);c.setTextStyle(l),c.drawText(t,r)}}function De(e,t,n,r,i,o,a){var s=!1,l=n.getImage();if(l){var c=l.getImageState();c==Ie["a"].LOADED||c==Ie["a"].ERROR?l.unlistenImageChange(i):(c==Ie["a"].IDLE&&l.load(),c=l.getImageState(),l.listenImageChange(i),s=!0)}return je(e,t,n,r,o,a),s}function je(e,t,n,r,i,o){var a=n.getGeometryFunction()(t);if(a){var s=a.simplifyTransformed(r,i),l=n.getRenderer();if(l)Fe(e,s,n,t);else{var c=Re[s.getType()];c(e,s,n,t,o)}}}function Fe(e,t,n,r){if(t.getType()!=y["a"].GEOMETRY_COLLECTION){var i=e.getBuilder(n.getZIndex(),J.DEFAULT);i.drawCustom(t,r,n.getRenderer())}else for(var o=t.getGeometries(),a=0,s=o.length;a<s;++a)Fe(e,o[a],n,r)}function Be(e,t,n,r,i){var o,a,s=t.getGeometriesArray();for(o=0,a=s.length;o<a;++o){var l=Re[s[o].getType()];l(e,s[o],n,r,i)}}function qe(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),J.LINE_STRING);a.setFillStrokeStyle(null,o),a.drawLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),J.TEXT);l.setTextStyle(s),l.drawText(t,r)}}function ze(e,t,n,r,i){var o=n.getStroke();if(o){var a=e.getBuilder(n.getZIndex(),J.LINE_STRING);a.setFillStrokeStyle(null,o),a.drawMultiLineString(t,r)}var s=n.getText();if(s&&s.getText()){var l=(i||e).getBuilder(n.getZIndex(),J.TEXT);l.setTextStyle(s),l.drawText(t,r)}}function Ue(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(a||o){var s=e.getBuilder(n.getZIndex(),J.POLYGON);s.setFillStrokeStyle(o,a),s.drawMultiPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var c=(i||e).getBuilder(n.getZIndex(),J.TEXT);c.setTextStyle(l),c.drawText(t,r)}}function Ge(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();if(i&&(e=i,o=a&&s&&s.getText()?{}:void 0),a){if(a.getImageState()!=Ie["a"].LOADED)return;var l=e.getBuilder(n.getZIndex(),J.IMAGE);l.setImageStyle(a,o),l.drawPoint(t,r)}if(s&&s.getText()){var c=e.getBuilder(n.getZIndex(),J.TEXT);c.setTextStyle(s,o),c.drawText(t,r)}}function Ve(e,t,n,r,i){var o,a=n.getImage(),s=n.getText();if(i&&(e=i,o=a&&s&&s.getText()?{}:void 0),a){if(a.getImageState()!=Ie["a"].LOADED)return;var l=e.getBuilder(n.getZIndex(),J.IMAGE);l.setImageStyle(a,o),l.drawMultiPoint(t,r)}if(s&&s.getText()){var c=(i||e).getBuilder(n.getZIndex(),J.TEXT);c.setTextStyle(s,o),c.drawText(t,r)}}function We(e,t,n,r,i){var o=n.getFill(),a=n.getStroke();if(o||a){var s=e.getBuilder(n.getZIndex(),J.POLYGON);s.setFillStrokeStyle(o,a),s.drawPolygon(t,r)}var l=n.getText();if(l&&l.getText()){var c=(i||e).getBuilder(n.getZIndex(),J.TEXT);c.setTextStyle(l),c.drawText(t,r)}}var He=n("256f"),$e=n("a568"),Ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xe=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.dirty_=!1,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Object(S["j"])(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n}return Ke(t,e),t.prototype.useContainer=function(t,n,r){r<1&&(t=null),e.prototype.useContainer.call(this,t,n,r)},t.prototype.renderWorlds=function(e,t,n){var r=t.extent,i=t.viewState,o=i.center,a=i.resolution,s=i.projection,l=i.rotation,c=s.getExtent(),u=this.getLayer().getSource(),d=t.pixelRatio,f=t.viewHints,h=!(f[_e["a"].ANIMATING]||f[_e["a"].INTERACTING]),p=this.context,m=Math.round(t.size[0]*d),g=Math.round(t.size[1]*d),v=u.getWrapX()&&s.canWrapX(),y=v?Object(S["E"])(c):null,b=v?Math.ceil((r[2]-c[2])/y)+1:1,_=v?Math.floor((r[0]-c[0])/y):0;do{var w=this.getRenderTransform(o,a,l,d,m,g,_*y);e.execute(p,1,w,l,h,void 0,n)}while(++_<b)},t.prototype.renderDeclutter=function(e){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,e,e.declutterTree)},t.prototype.renderFrame=function(e,t){var n=e.pixelRatio,r=e.layerStatesArray[e.layerIndex];Object(Z["e"])(this.pixelTransform,1/n,1/n),Object(Z["d"])(this.inversePixelTransform,this.pixelTransform);var i=Object(Z["g"])(this.pixelTransform);this.useContainer(t,i,r.opacity);var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return!this.containerReused&&a.width>0&&(a.width=0),this.container;var c=Math.round(e.size[0]*n),u=Math.round(e.size[1]*n);a.width!=c||a.height!=u?(a.width=c,a.height=u,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,c,u),this.preRender(o,e);var d=e.viewState,f=d.projection,h=!1;if(r.extent&&this.clipping){var p=Object(He["e"])(r.extent,f);h=!Object(S["g"])(p,e.extent)&&Object(S["F"])(p,e.extent),h&&this.clipUnrotated(o,e,p)}this.renderWorlds(s,e),h&&o.restore(),this.postRender(o,e);var m=r.opacity,g=this.container;return m!==parseFloat(g.style.opacity)&&(g.style.opacity=1===m?"":String(m)),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},t.prototype.getFeatures=function(e){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Object(Z["a"])(this.pixelTransform,n);var r=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.renderedExtent_,l=this.getLayer(),c=[],u=n[0]/2,d=n[1]/2;c.push(this.getRenderTransform(r,i,o,.5,u,d,0).slice());var f=l.getSource(),h=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!Object(S["g"])(h,s)){var p=s[0],m=Object(S["E"])(h),g=0,v=void 0;while(p<h[0])--g,v=m*g,c.push(this.getRenderTransform(r,i,o,.5,u,d,v).slice()),p+=m;g=0,p=s[2];while(p>h[2])++g,v=m*g,c.push(this.getRenderTransform(r,i,o,.5,u,d,v).slice()),p-=m}this.hitDetectionImageData_=Oe(n,c,this.renderedFeatures_,l.getStyleFunction(),s,i,o)}t(Te(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){var o=this;if(this.replayGroup_){var a,s=t.viewState.resolution,l=t.viewState.rotation,c=this.getLayer(),u={},d=function(e,t,n){var o=Object(z["c"])(e),a=u[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return u[o]=!0,i.splice(i.lastIndexOf(a),1),r(e,c,t);a.geometry=t,a.distanceSq=n}}else{if(0===n)return u[o]=!0,r(e,c,t);i.push(u[o]={feature:e,layer:c,geometry:t,distanceSq:n,callback:r})}},f=[this.replayGroup_];return this.declutterExecutorGroup&&f.push(this.declutterExecutorGroup),f.some((function(r){return a=r.forEachFeatureAtCoordinate(e,s,l,n,d,r===o.declutterExecutorGroup?t.declutterTree.all().map((function(e){return e.value})):null)})),a}},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e){var t=this.getLayer(),n=t.getSource();if(!n)return!1;var r=e.viewHints[_e["a"].ANIMATING],i=e.viewHints[_e["a"].INTERACTING],o=t.getUpdateWhileAnimating(),a=t.getUpdateWhileInteracting();if(!this.dirty_&&!o&&r||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=e.extent,l=e.viewState,c=l.projection,u=l.resolution,d=e.pixelRatio,f=t.getRevision(),h=t.getRenderBuffer(),p=t.getRenderOrder();void 0===p&&(p=Pe);var m=l.center.slice(),g=Object(S["c"])(s,h*u),v=[g.slice()],y=c.getExtent();if(n.getWrapX()&&c.canWrapX()&&!Object(S["g"])(y,e.extent)){var b=Object(S["E"])(y),_=Math.max(Object(S["E"])(g)/2,b);g[0]=y[0]-_,g[2]=y[2]+_,Object($e["l"])(m,c);var w=Object(S["K"])(v[0],c);w[0]<y[0]&&w[2]<y[2]?v.push([w[0]+b,w[1],w[2]+b,w[3]]):w[0]>y[0]&&w[2]>y[2]&&v.push([w[0]-b,w[1],w[2]-b,w[3]])}if(!this.dirty_&&this.renderedResolution_==u&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&Object(S["g"])(this.renderedExtent_,g))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var x,C=new X(Ne(u,d),g,u,d);this.getLayer().getDeclutter()&&(x=new X(Ne(u,d),g,u,d));var E,k=Object(He["j"])();if(k){for(var O=0,T=v.length;O<T;++O)n.loadFeatures(Object(He["m"])(v[O],c),u,k);E=Object(He["i"])(k,c)}else for(O=0,T=v.length;O<T;++O)n.loadFeatures(v[O],u,c);var I=Me(u,d),A=function(e){var n,r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,u)),n){var i=this.renderFeature(e,I,n,C,E,x);this.dirty_=this.dirty_||i}}.bind(this),R=Object(He["m"])(g,c),P=n.getFeaturesInExtent(R);p&&P.sort(p);for(O=0,T=P.length;O<T;++O)A(P[O]);this.renderedFeatures_=P;var M=C.finish(),N=new be(g,u,d,n.getOverlaps(),M,t.getRenderBuffer());return x&&(this.declutterExecutorGroup=new be(g,u,d,n.getOverlaps(),x.finish(),t.getRenderBuffer())),this.renderedResolution_=u,this.renderedRevision_=f,this.renderedRenderOrder_=p,this.renderedExtent_=g,this.renderedCenter_=m,this.renderedProjection_=c,this.replayGroup_=N,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,t,n,r,i,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=De(r,e,n[s],t,this.boundHandleStyleImageChange_,i,o)||a;else a=De(r,e,n,t,this.boundHandleStyleImageChange_,i,o);return a},t}(Y["a"]),Ye=Xe,Je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(e){function t(t){return e.call(this,t)||this}return Je(t,e),t.prototype.createRenderer=function(){return new Ye(this)},t}(d);t["a"]=Qe},"3e9a":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("58c6");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},"3ede":function(e,t,n){e.exports=l;var r=n("2ef0"),i=n("9eab"),o=n("0074"),a=n("de57").ConnectionFault,s=!(navigator&&/PhantomJS/i.test(navigator.userAgent));function l(e,t){o.call(this,e,t)}i.inherits(l,o);var c=r.noop;if(c="undefined"!==typeof XMLHttpRequest?function(){return new XMLHttpRequest}:r(["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"]).map((function(e){try{new window.ActiveXObject(e);return function(){return new window.ActiveXObject(e)}}catch(t){return!1}})).compact().head(),!c)throw new Error("getXhr(): XMLHttpRequest not available");l.prototype.request=function(e,t){var n,r=c(),i=this.host,o=this.log,l=i.makeUrl(e),u=i.getHeaders(e.headers),d=!1!==e.async&&s;if(r.open(e.method||"GET",l,d),u)for(var f in u)void 0!==u[f]&&r.setRequestHeader(f,u[f]);return r.onreadystatechange=function(){if(4===r.readyState){clearTimeout(n),o.trace(e.method,l,e.body,r.responseText,r.status);var i=r.status?void 0:new a(r.statusText||"Request failed to complete.");t(i,r.responseText,r.status)}},r.send(e.body||void 0),function(){r.abort()}}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},4002:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:48}},[n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"角色ID"}},[n("a-input",{attrs:{placeholder:"请输入"}})],1)],1),n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"状态"}},[n("a-select",{attrs:{placeholder:"请选择","default-value":"0"}},[n("a-select-option",{attrs:{value:"0"}},[e._v("全部")]),n("a-select-option",{attrs:{value:"1"}},[e._v("正常")]),n("a-select-option",{attrs:{value:"2"}},[e._v("禁用")])],1)],1)],1),n("a-col",{attrs:{md:8,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons"},[n("a-button",{attrs:{type:"primary"}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("重置")])],1)])],1)],1)],1),n("s-table",{ref:"table",attrs:{size:"default",columns:e.columns,data:e.loadData},scopedSlots:e._u([{key:"expandedRowRender",fn:function(t){return n("div",{staticStyle:{margin:"0"}},[n("a-row",{style:{marginBottom:"12px"},attrs:{gutter:24}},e._l(t.permissions,(function(t,r){return n("a-col",{key:r,style:{marginBottom:"12px"},attrs:{span:12}},[n("a-col",{attrs:{span:4}},[n("span",[e._v(e._s(t.permissionName)+":")])]),t.actionEntitySet.length>0?n("a-col",{attrs:{span:20}},e._l(t.actionEntitySet,(function(t,r){return n("a-tag",{key:r,attrs:{color:"cyan"}},[e._v(e._s(t.describe))])})),1):n("a-col",{attrs:{span:20}},[e._v("-")])],1)})),1)],1)}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.$refs.modal.edit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n          更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"}},[e._v("详情")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"}},[e._v("禁用")])]),n("a-menu-item",[n("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])],1)],1)],1)}}])}),n("role-modal",{ref:"modal",on:{ok:e.handleOk}})],1)},i=[],o=(n("ac6a"),n("e8c4")),a=n("0b38"),s={name:"TableList",components:{STable:o["a"],RoleModal:a["default"]},data:function(){var e=this;return{description:"列表使用场景:后台管理中的权限管理以及角色管理,可用于基于 RBAC 设计的角色权限控制,颗粒度细到每一个操作类型。",visible:!1,form:null,mdl:{},advanced:!1,queryParam:{},columns:[{title:"唯一识别码",dataIndex:"id"},{title:"角色名称",dataIndex:"name"},{title:"状态",dataIndex:"status"},{title:"创建时间",dataIndex:"createTime",sorter:!0},{title:"操作",width:"150px",dataIndex:"action",scopedSlots:{customRender:"action"}}],loadData:function(t){return e.$http.get("/api/role",{params:Object.assign(t,e.queryParam)}).then((function(e){return e.result}))},selectedRowKeys:[],selectedRows:[]}},methods:{handleEdit:function(e){this.mdl=Object.assign({},e),this.mdl.permissions.forEach((function(e){e.actionsOptions=e.actionEntitySet.map((function(e){return{label:e.describe,value:e.action,defaultCheck:e.defaultCheck}}))})),console.log(this.mdl),this.visible=!0},handleOk:function(){this.$refs.table.refresh()},onChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t},toggleAdvanced:function(){this.advanced=!this.advanced}},watch:{}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},4030:function(e,t,n){},4042:function(e,t,n){"use strict";var r=n("791c");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},"409b":function(e,t,n){},4105:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("4334"),i=n("0b2d"),o=n("38f3"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return a(t,e),t.prototype.getPointerCount=function(){return this.targetPointers.length},t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.originalEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==i["a"].POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==i["a"].POINTERUP){var n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==i["a"].POINTERDOWN){var r=this.handleDownEvent(e);this.handlingDownUpSequence=r,t=this.stopDown(r)}else e.type==i["a"].POINTERMOVE&&this.handleMoveEvent(e);return!t},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){if(c(e)){var t=e.originalEvent,n=t.pointerId.toString();e.type==i["a"].POINTERUP?delete this.trackedPointers_[n]:(e.type==i["a"].POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=t),this.targetPointers=Object(o["c"])(this.trackedPointers_)}},t}(r["a"]);function l(e){for(var t=e.length,n=0,r=0,i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return[n/t,r/t]}function c(e){var t=e.type;return t===i["a"].POINTERDOWN||t===i["a"].POINTERDRAG||t===i["a"].POINTERUP}t["b"]=s},4165:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tree-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",labelInValue:"",disabled:e.disabled,dropdownStyle:{maxHeight:"400px",overflow:"auto"},placeholder:e.placeholder,loadData:e.asyncLoadTreeData,value:e.treeValue,treeData:e.treeData},on:{change:e.onChange,search:e.onSearch}})},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("2909")),a=(n("7f7f"),n("0fea")),s={name:"JTreeDict",data:function(){return{treeData:[],treeValue:"",url_root:"/sys/category/loadTreeRoot",url_children:"/sys/category/loadTreeChildren",url_view:"/sys/category/loadOne"}},props:{value:{type:String,required:!1},placeholder:{type:String,default:"请选择",required:!1},parentCode:{type:String,default:"",required:!1},field:{type:String,default:"id",required:!1},root:{type:Object,required:!1,default:function(){return{pid:"0"}}},async:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1}},watch:{root:{handler:function(e){console.log("root-change",e)},deep:!0},parentCode:{handler:function(){this.loadRoot()}},value:{handler:function(){this.loadViewInfo()}}},created:function(){this.loadRoot(),this.loadViewInfo()},model:{prop:"value",event:"change"},methods:{loadViewInfo:function(){var e=this;if(this.value&&"0"!=this.value){var t={field:this.field,val:this.value};Object(a["d"])(this.url_view,t).then((function(t){t.success&&(e.treeValue={value:e.value,label:t.result.name})}))}else this.treeValue=""},loadRoot:function(){var e=this,t={async:this.async,pcode:this.parentCode};Object(a["d"])(this.url_root,t).then((function(t){t.success?(e.handleTreeNodeValue(t.result),console.log("aaaa",t.result),e.treeData=Object(o["a"])(t.result)):e.$message.error(t.message)}))},asyncLoadTreeData:function(e){var t=this;return new Promise((function(n){if(t.async)if(e.$vnode.children)n();else{var r=e.$vnode.key,i={pid:r};Object(a["d"])(t.url_children,i).then((function(e){e.success&&(t.handleTreeNodeValue(e.result),t.addChildren(r,e.result,t.treeData),t.treeData=Object(o["a"])(t.treeData)),n()}))}else n()}))},addChildren:function(e,t,n){if(n&&n.length>0){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.key==e){t&&0!=t.length?l.children=t:l.leaf=!0;break}this.addChildren(e,t,l.children)}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}},handleTreeNodeValue:function(e){var t="code"==this.field?"code":"key",n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;s.value=s[t],s.isLeaf=!!s.leaf,s.children&&s.children.length>0&&this.handleTreeNodeValue(s.children)}}catch(l){r=!0,i=l}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}},onChange:function(e){console.log(e),this.$emit("change",e.value),this.treeValue=e},onSearch:function(e){console.log(e)},getCurrTreeData:function(){return this.treeData}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"418f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:e.drawerWidth,placement:"right",closable:!0,visible:e.visible},on:{close:e.handleCancel}},[n("template",{slot:"title"},[n("div",{staticStyle:{width:"100%"}},[n("span",[e._v(e._s(e.title))]),n("span",{staticStyle:{display:"inline-block",width:"calc(100% - 51px)","padding-right":"10px","text-align":"right"}},[n("a-button",{staticStyle:{height:"20px",width:"20px",border:"0px"},attrs:{icon:"appstore"},on:{click:e.toggleScreen}})],1)])]),n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"用户账号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["username",e.validatorRules.username],expression:"[ 'username', validatorRules.username]"}],attrs:{placeholder:"请输入用户账号",readOnly:!!e.model.id}})],1),n("a-form-item",{attrs:{label:"用户区域",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("city_child",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",e.validatorRules.city],expression:"[ 'district', validatorRules.city]"}],attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtName",e.validatorRules.districtName],expression:"[ 'districtName', validatorRules.districtName]"}],attrs:{hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["selectDistrict",e.validatorRules.selectDistrict],expression:"[ 'selectDistrict', validatorRules.selectDistrict]"}],attrs:{hidden:""}})],1),e.model.id?e._e():[n("a-form-item",{attrs:{label:"登陆密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",e.validatorRules.password],expression:"[ 'password', validatorRules.password]"}],attrs:{type:"password",placeholder:"请输入登陆密码"}})],1),n("a-form-item",{attrs:{label:"确认密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["confirmpassword",e.validatorRules.confirmpassword],expression:"[ 'confirmpassword', validatorRules.confirmpassword]"}],attrs:{type:"password",placeholder:"请重新输入登陆密码"},on:{blur:e.handleConfirmBlur}})],1)],n("a-form-item",{attrs:{label:"用户名字",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["realname",e.validatorRules.realname],expression:"[ 'realname', validatorRules.realname]"}],attrs:{placeholder:"请输入用户名称"}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.roleDisabled,expression:"!roleDisabled"}],attrs:{label:"角色分配",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{staticStyle:{width:"100%"},attrs:{mode:"multiple",placeholder:"请选择用户角色",optionFilterProp:"children"},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}},e._l(e.roleList,(function(t,r){return n("a-select-option",{key:r.toString(),attrs:{value:t.id}},[e._v("\n            "+e._s(t.roleName)+"\n          ")])})),1)],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.departDisabled,expression:"!departDisabled"}],attrs:{label:"部门分配",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-search",{attrs:{placeholder:"点击右侧按钮选择部门",disabled:""},on:{search:e.onSearch},model:{value:e.checkedDepartNameString,callback:function(t){e.checkedDepartNameString=t},expression:"checkedDepartNameString"}},[n("a-button",{attrs:{slot:"enterButton",icon:"search"},slot:"enterButton"},[e._v("选择")])],1)],1),n("a-form-item",{attrs:{label:"头像",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-upload",{staticClass:"avatar-uploader",attrs:{listType:"picture-card",showUploadList:!1,action:e.uploadAction,data:{isup:1},headers:e.headers,beforeUpload:e.beforeUpload},on:{change:e.handleChange}},[e.picUrl?n("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:e.getAvatarView(),alt:"头像"}}):n("div",[n("a-icon",{attrs:{type:e.uploadLoading?"loading":"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v("上传")])],1)])],1),n("a-form-item",{attrs:{label:"生日",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["birthday",{initialValue:e.model.birthday?e.moment(e.model.birthday,e.dateFormat):null}],expression:"['birthday', {initialValue:!model.birthday?null:moment(model.birthday,dateFormat)}]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择生日"}})],1),n("a-form-item",{attrs:{label:"性别",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sex",{}],expression:"[ 'sex', {}]"}],attrs:{placeholder:"请选择性别"}},[n("a-select-option",{attrs:{value:1}},[e._v("男")]),n("a-select-option",{attrs:{value:2}},[e._v("女")])],1)],1),n("a-form-item",{attrs:{label:"邮箱",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["email",e.validatorRules.email],expression:"[ 'email', validatorRules.email]"}],attrs:{placeholder:"请输入邮箱"}})],1),n("a-form-item",{attrs:{label:"手机号码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",e.validatorRules.phone],expression:"[ 'phone', validatorRules.phone]"}],attrs:{placeholder:"请输入手机号码",disabled:e.isDisabledAuth("user:form:phone")}})],1),n("a-form-item",{attrs:{label:"钉钉员工号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["employeeCode",e.validatorRules.employeeCode],expression:"[ 'employeeCode', validatorRules.employeeCode]"}],attrs:{placeholder:"请输入钉钉员工号"}})],1)],2)],1),n("depart-window",{ref:"departWindow",on:{ok:e.modalFormOk}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disableSubmit,expression:"!disableSubmit"}],staticClass:"drawer-bootom-button"},[n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.handleCancel}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.confirmLoading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],2)},i=[],o=(n("3b2b"),n("28a5"),n("88bc")),a=n.n(o),s=n("c1df"),l=n.n(s),c=n("2b0e"),u=n("c63e"),d=n("9fb0"),f=n("0fea"),h=n("4ec3");n("2fdb"),n("6762"),n("ac4d"),n("8a81"),n("ac6a");function p(e,t){return!!m(e,t)||g(e)}function m(e,t){console.log("页面权限禁用--NODE--开始");var n=[];try{var r=t;if(r){var i=r.permissionList,o=!0,a=!1,s=void 0;try{for(var l,c=i[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value;"2"==u.type&&n.push(u)}}catch(y){a=!0,s=y}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}}}catch(b){}if(null===n||""===n||void 0===n||n.length<=0)return!1;for(var d=[],f=0,h=n;f<h.length;f++){var p=h[f];"2"==p.type&&d.push(p.action)}if(!d.includes(e))return!1;for(var m=0,g=n;m<g.length;m++){var v=g[m];if(e===v.action)return console.log("页面权限禁用--NODE--生效"),!0}return!1}function g(e){console.log("页面禁用权限--Global--开始");var t=[],n=[],r=JSON.parse(sessionStorage.getItem(d["n"])||"[]"),i=!0,o=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var c=s.value;"2"==c.type&&t.push(c)}}catch(A){o=!0,a=A}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}var u=JSON.parse(sessionStorage.getItem(d["m"])||"[]"),f=!0,h=!1,p=void 0;try{for(var m,g=u[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){var v=m.value;"2"==v.type&&n.push(v)}}catch(A){h=!0,p=A}finally{try{f||null==g.return||g.return()}finally{if(h)throw p}}var y=!1,b=!1;if(null!=n&&""!=n&&void 0!=n&&n.length>0)for(var _=0,w=n;_<w.length;_++){var x=w[_];if(e===x.action){if("0"==x.status){b=!0;break}y=!0;break}}if(b)return!1;if(null===t||""===t||void 0===t||t.length<=0)return y;for(var S=[],C=0,E=t;C<E.length;C++){var k=E[C];"2"==k.type&&S.push(k.action)}if(S.includes(e)){for(var O=0,T=t;O<T.length;O++){var I=T[O];e===I.action&&(console.log("页面权限解除禁用--Global--生效"),y=!1)}return y}return y}var v=n("d9be"),y={name:"RoleModal",components:{departWindow:u["default"],city_child:v["default"]},data:function(){return{departDisabled:!1,roleDisabled:!1,modalWidth:800,drawerWidth:700,modaltoggleFlag:!0,confirmDirty:!1,selectedDepartKeys:[],checkedDepartKeys:[],checkedDepartNames:[],checkedDepartNameString:"",userId:"",disableSubmit:!1,userDepartModel:{userId:"",departIdList:[]},dateFormat:"YYYY-MM-DD",validatorRules:{district:{rules:[{required:!0,message:"请选择地区"}]},username:{rules:[{required:!0,message:"请输入用户账号!"},{validator:this.validateUsername}]},password:{rules:[{required:!0,pattern:/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,message:"密码由8位数字、大小写字母和特殊符号组成!"},{validator:this.validateToNextPassword}]},confirmpassword:{rules:[{required:!0,message:"请重新输入登陆密码!"},{validator:this.compareToFirstPassword}]},realname:{rules:[{required:!0,message:"请输入用户名称!"}]},city:{rules:[{required:!0,message:"请选择用户区域!"}]},phone:{},email:{rules:[{validator:this.validateEmail}]},roles:{},employeeCode:{}},title:"操作",visible:!1,model:{},roleList:[],selectedRole:[],labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},uploadLoading:!1,confirmLoading:!1,headers:{},form:this.$form.createForm(this),picUrl:"",url:{fileUpload:window._CONFIG["domianURL"]+"/sys/common/upload",imgerver:window._CONFIG["domianURL"]+"/sys/common/view",userWithDepart:"/sys/user/userDepartList",userId:"/sys/user/generateUserId",syncUserByUserName:"/process/extActProcess/doSyncUserByUserName"},showDefaultParams:[]}},created:function(){var e=c["default"].ls.get(d["a"]);this.headers={"X-Access-Token":e}},computed:{uploadAction:function(){return this.url.fileUpload}},methods:{initParams:function(){this.showDefaultParams.length=0;var e=this.model.selectDistrict;if(e){var t=e.split("_");this.showDefaultParams.push(t[0]),this.showDefaultParams.push(t[1]),this.showDefaultParams.push(t[2]),this.showDefaultParams.push(t[3])}},getMsgFormSon:function(e){var t="",n="",r="";switch(e.length){case 1:t=e.cityCode,n=e.city,r=e.cityCode;break;case 2:t=e.districtCode,n=e.district,r=e.cityCode+"_"+e.districtCode;break;case 3:t=e.streetCode,n=e.street,r=e.cityCode+"_"+e.districtCode+"_"+e.streetCode;break;case 4:t=e.villageCode,n=e.village,r=e.cityCode+"_"+e.districtCode+"_"+e.streetCode+"_"+e.villageCode;break}this.form.setFieldsValue({district:t,districtName:n,selectDistrict:r})},isDisabledAuth:function(e){return p(e)},toggleScreen:function(){this.modaltoggleFlag?this.modalWidth=window.innerWidth:this.modalWidth=800,this.modaltoggleFlag=!this.modaltoggleFlag},initialRoleList:function(){var e=this;Object(h["db"])().then((function(t){t.success?e.roleList=t.result:console.log(t.message)}))},loadUserRoles:function(e){var t=this;Object(h["bb"])({userid:e}).then((function(e){e.success?t.selectedRole=e.result:console.log(e.message)}))},refresh:function(){this.selectedDepartKeys=[],this.checkedDepartKeys=[],this.checkedDepartNames=[],this.checkedDepartNameString="",this.userId=""},add:function(){this.picUrl="",this.refresh(),this.edit({})},edit:function(e){var t=this;this.resetScreenSize();var n=this;n.initialRoleList(),n.checkedDepartNameString="",n.form.resetFields(),e.hasOwnProperty("id")&&(n.loadUserRoles(e.id),this.picUrl="Has no pic url yet"),n.userId=e.id,n.visible=!0,n.model=Object.assign({},e),n.$nextTick((function(){n.form.setFieldsValue(a()(t.model,"username","sex","realname","email","phone","district","districtName","selectDistrict","employeeCode")),t.initParams()})),n.checkedDepartKeys=[],n.loadCheckedDeparts()},loadCheckedDeparts:function(){var e=this,t=this;t.userId&&Object(f["d"])(t.url.userWithDepart,{userId:t.userId}).then((function(n){if(t.checkedDepartNames=[],n.success){for(var r=0;r<n.result.length;r++)t.checkedDepartNames.push(n.result[r].title),e.checkedDepartNameString=e.checkedDepartNames.join(","),t.checkedDepartKeys.push(n.result[r].key);t.userDepartModel.departIdList=t.checkedDepartKeys}else console.log(n.message)}))},close:function(){this.$emit("close"),this.visible=!1,this.disableSubmit=!1,this.selectedRole=[],this.userDepartModel={userId:"",departIdList:[]},this.checkedDepartNames=[],this.checkedDepartNameString="",this.checkedDepartKeys=[],this.selectedDepartKeys=[],this.showDefaultParams=[]},moment:l.a,handleSubmit:function(){var e=this;if(""==this.checkedDepartNameString)this.$message.warning("请选择部门!");else{var t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i=t.model.avatar;r.birthday?r.birthday=r.birthday.format(e.dateFormat):r.birthday="";var o,a=Object.assign(e.model,r);a.avatar=i,a.selectedroles=e.selectedRole.length>0?e.selectedRole.join(","):"",a.selecteddeparts=e.userDepartModel.departIdList.length>0?e.userDepartModel.departIdList.join(","):"",e.model.id?o=Object(h["q"])(a):(a.id=e.userId,o=Object(h["e"])(a)),o.then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.checkedDepartNames=[],t.userDepartModel.departIdList={userId:"",departIdList:[]},t.close()}))}}))}},handleCancel:function(){this.close()},validateToNextPassword:function(e,t,n){var r=this.form,i=r.getFieldValue("confirmpassword");t&&i&&t!==i&&n("两次输入的密码不一样!"),t&&this.confirmDirty&&r.validateFields(["confirm"],{force:!0}),n()},compareToFirstPassword:function(e,t,n){var r=this.form;t&&t!==r.getFieldValue("password")?n("两次输入的密码不一样!"):n()},validatePhone:function(e,t,n){if(t)if(new RegExp(/^1[3|4|5|7|8][0-9]\d{8}$/).test(t)){var r={tableName:"sys_user",fieldName:"phone",fieldVal:t,dataId:this.userId};Object(h["l"])(r).then((function(e){e.success?n():n("手机号已存在!")}))}else n("请输入正确格式的手机号码!");else n()},validateEmail:function(e,t,n){if(t)if(new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(t)){var r={tableName:"sys_user",fieldName:"email",fieldVal:t,dataId:this.userId};Object(h["l"])(r).then((function(e){console.log(e),e.success?n():n("邮箱已存在!")}))}else n("请输入正确格式的邮箱!");else n()},validateUsername:function(e,t,n){var r={tableName:"sys_user",fieldName:"username",fieldVal:t,dataId:this.userId};Object(h["l"])(r).then((function(e){e.success?n():n("用户名已存在!")}))},handleConfirmBlur:function(e){var t=e.target.value;this.confirmDirty=this.confirmDirty||!!t},normFile:function(e){return console.log("Upload event:",e),Array.isArray(e)?e:e&&e.fileList},beforeUpload:function(e){var t=e.type;if(t.indexOf("image")<0)return this.$message.warning("请上传图片"),!1},handleChange:function(e){if(this.picUrl="","uploading"!==e.file.status){if("done"===e.file.status){var t=e.file.response;this.uploadLoading=!1,console.log(t),t.success?(this.model.avatar=t.message,this.picUrl="Has no pic url yet"):this.$message.warning(t.message)}}else this.uploadLoading=!0},getAvatarView:function(){return this.url.imgerver+"/"+this.model.avatar},onSearch:function(){this.$refs.departWindow.add(this.checkedDepartKeys,this.userId)},modalFormOk:function(e){this.checkedDepartNames=[],this.selectedDepartKeys=[],this.checkedDepartNameString="",this.userId=e.userId,this.userDepartModel.userId=e.userId;for(var t=0;t<e.departIdList.length;t++)this.selectedDepartKeys.push(e.departIdList[t].key),this.checkedDepartNames.push(e.departIdList[t].title),this.checkedDepartNameString=this.checkedDepartNames.join(",");this.userDepartModel.departIdList=this.selectedDepartKeys,this.checkedDepartKeys=this.selectedDepartKeys},resetScreenSize:function(){var e=document.body.clientWidth;this.drawerWidth=e<500?e:700}}},b=y,_=(n("94ab"),n("2877")),w=Object(_["a"])(b,r,i,!1,null,"72517c65",null);t["default"]=w.exports},"41b7":function(e,t,n){"use strict";n("7a8a")},"41b8":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{class:e.leftmy},[n("div",{staticClass:"leftmywidth beijingmy"},[n("div",{staticClass:"table-page-search-wrapper leftmywidth"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"地区"}},[n("city_child",{attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon},model:{value:e.queryParam.village,callback:function(t){e.$set(e.queryParam,"village",t)},expression:"queryParam.village"}})],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.myQueryParam.name,callback:function(t){e.$set(e.myQueryParam,"name",t)},expression:"myQueryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入名称",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1)],1),n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"区县"}},[n("a-input",{attrs:{placeholder:"请输入区县"},model:{value:e.queryParam.district,callback:function(t){e.$set(e.queryParam,"district",t)},expression:"queryParam.district"}})],1)],1),n("div",{staticClass:"spc-search"},[n("a-button",{staticClass:"anniu1",attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticClass:"anniu2",attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1),n("div",{staticClass:"table-operator leftmywidth"},[e.verify?e._e():n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.biancross}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")]),e.verify?e._e():n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXlsTemplate}},[e._v("导出模板")]),e.verify?e._e():n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.url.importExcelUrl,accept:".xls,.xlsx"},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0&&e.unVerify?n("a-dropdown",[1==e.verify&&0==e.cxsp?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangok()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("审核通过")],1),n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangnook()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("审核不通过")],1)],1):e._e(),e.cxsp?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangrepass()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("重新审批")],1),n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangdelete()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("删除")],1)],1):e._e(),e.verify?n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1):e._e()],1):e._e()],1),n("mapTable",{ref:"mapTable",attrs:{dataSource:e.dataSource,dataSourcegd:e.dataSourcegd,dataSource2:e.dataSource2,loading:e.loading,columns:e.columns,verify:e.verify,unVerify:e.unVerify,selectedRowKeys:e.selectedRowKeys,onSelectChange:e.onSelectChange,cxsp:e.cxsp,dataSource3:e.dataSource3},on:{handleRePassForm:function(t){return e.handleRePassForm(t)},handleDeleteFormDB2:function(t){return e.handleDeleteFormDB2(t)},rowClicknew:function(t){return e.rowClicknew(t)},handleEdit:function(t){return e.handleEdit(t)},handleDeleteForm:function(t){return e.handleDeleteForm(t)},handlePassForm:function(t){return e.handlePassForm(t)},handleNoPassForm:function(t){return e.handleNoPassForm(t)},onClearSelected:function(t){return e.onClearSelected(t)},batchDel:function(t){return e.batchDel(t)}}})],1)]),n("div",{staticStyle:{position:"absolute","z-index":"-100"}},[n("TemplateModal",{ref:"TemplateModal",attrs:{url:e.url,templatesql:e.templatesql},on:{ok:e.modalFormOk,dataSource3ziduan:function(t){return e.dataSource3ziduan(t)},yincangzuoce:function(t){return e.yincangzuoce(t)},xianshizuoce:function(t){return e.xianshizuoce(t)},handleOktshide:e.handleOktshide}})],1),n("div",{ref:"tablediwidth",staticClass:"tabledi",attrs:{id:"tabledi"}},[n("a",{style:e.crosshair,on:{click:e.biandefault}},[n("mapChoosePoints",{ref:"mapChoosePoints",attrs:{model:e.model,pointKey:e.pointKey,iconurl:e.iconurl,visiblets:e.visiblets,loading:e.loading},on:{openedit:function(t){return e.openedit(t)},lonlatChanged:function(t){return e.lonlatChanged(t)},dataSource2add:function(t){return e.dataSource2add(t)},tdupdate:function(t){return e.tdupdate(t)},dataSource2clear:function(t){return e.dataSource2clear(t)},handleCancelts:function(t){return e.handleCancelts(t)},handleOkts:function(t){return e.handleOkts(t)}}})],1)])])},i=[],o=(n("7b16"),n("d9be")),a=n("6187"),s=(n("89f2"),n("cba0")),l=n("80f1"),c=n("b376"),u={name:"DykeList",mixins:[a["a"]],components:{city_child:o["default"],mapChoosePoints:s["default"],mapTable:l["default"],TemplateModal:c["default"]},data:function(){return{description:"通用页面",iconurl:"",columns:[{title:"区县",align:"center",width:"20%",dataIndex:"district"},{title:"名称",align:"center",width:"50%",dataIndex:"name"},{title:"操作",dataIndex:"action",width:"30%",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/template/template/list/",nopass:"/template/template/nopass/",repass:"/template/template/repass/",pass:"/template/template/pass/",delete:"/template/template/delete/",deleteBatch:"/template/template/deleteBatch/",vertifyBatch:"/columnInfo/vertify/",exportXlsUrl:"/template/template/exportXls/",importExcelUrl:"/template/template/importExcel/",exportXlsTemplateUrl:"/template/template/exportXlsTemplate/",latubiao:"/template/template/latubiao/",biaoheyan:"/template/template/biaoheyan/",add:"/template/template/add/",edit:"/template/template/edit/",notes:"/template/template/modalziduan/",weiwanshan:"/template/template/weiwanshan/"},yemian:"单表",dictOptions:{verifyStatus:[]},myQueryParam:{name:""},showDefaultParams:[]}}},d=u,f=(n("1f19"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"2faab52d",null);t["default"]=h.exports},"41ff":function(e,t,n){var r=n("6ba5");function i(e){if(Array.isArray(e))return r(e)}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"422d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-popover",{attrs:{trigger:"click",placement:"bottomRight",overlayStyle:{width:"300px"}}},[n("template",{slot:"content"},[n("a-spin",{attrs:{spinning:e.loadding}},[n("a-tabs",e._l(e.tabs,(function(e,t){return n("a-tab-pane",{key:t,attrs:{tab:e.title}})})),1)],1)],1),n("span",{staticClass:"header-notice",on:{click:e.fetchNotice}},[n("a-badge",{attrs:{count:"12"}},[n("a-icon",{staticStyle:{"font-size":"16px",padding:"4px"},attrs:{type:"bell"}})],1)],1)],2)},i=[],o={name:"HeaderNotice",props:{tabs:{type:Array,default:null,required:!0}},data:function(){return{loadding:!1}},methods:{fetchNotice:function(){var e=this;this.loadding?this.loadding=!1:(this.loadding=!0,setTimeout((function(){e.loadding=!1}),2e3))}}},a=o,s=(n("fb72"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"781c09be",null);t["default"]=l.exports},4272:function(e,t,n){"use strict";n("7b60")},"427a":function(e,t,n){},"427a2":function(e,t,n){var r=n("9cde")["default"],i=n("f047");function o(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}e.exports=o,e.exports["default"]=e.exports,e.exports.__esModule=!0},"42b3":function(e,t,n){var r=n("6692"),i=n("6339"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"42d4":function(e,t,n){"use strict";n("1a3d")},4334:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c}));var r=n("e269"),i=n("bf62"),o=n("ca42"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t){var n=e.call(this)||this;return t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return a(t,e),t.prototype.getActive=function(){return this.get(i["a"].ACTIVE)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set(i["a"].ACTIVE,e)},t.prototype.setMap=function(e){this.map_=e},t}(r["a"]);function l(e,t,n){var r=e.getCenterInternal();if(r){var i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:o["d"],center:e.getConstrainedCenter(i)})}}function c(e,t,n,r){var i=e.getZoom();if(void 0!==i){var a=e.getConstrainedZoom(i+t),s=e.getResolutionForZoom(a);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anchor:n,duration:void 0!==r?r:250,easing:o["b"]})}}t["a"]=s},"438a":function(e,t,n){"use strict";n("2957")},"43a2":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("2ace"),o=n("9866"),a=n("5ab0"),s=n("16f5"),l=n("9ef1"),c=n("ba8b"),u=n("4b0b"),d=n("791c"),f=n("5ff1"),h=n("b9e6"),p=n("022a");e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),v=m?"set":"add",y=i[e],b=y&&y.prototype,_=y,w={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})},S=o(e,"function"!=typeof y||!(g||b.forEach&&!d((function(){(new y).entries().next()}))));if(S)_=n.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(o(e,!0)){var C=new _,E=C[v](g?{}:-0,1)!=C,k=d((function(){C.has(1)})),O=f((function(e){new y(e)})),T=!g&&d((function(){var e=new y,t=5;while(t--)e[v](t,t);return!e.has(-0)}));O||(_=t((function(t,n){c(t,_,e);var r=p(new y,t,_);return void 0!=n&&l(n,r[v],{that:r,AS_ENTRIES:m}),r})),_.prototype=b,b.constructor=_),(k||T)&&(x("delete"),x("has"),m&&x("get")),(T||E)&&x(v),g&&b.clear&&delete b.clear}return w[e]=_,r({global:!0,forced:_!=y},w),h(_,e),g||n.setStrong(_,e,m),_}},"43a9":function(e,t,n){},"43fe":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:1300,visible:e.visible,confirmLoading:!1,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("mapChooseQuart",{attrs:{model:e.model,quartKey:e.quartKey},on:{quartChanged:function(t){return e.lonlatChanged2Map(t)}}})],1)},i=[],o=n("35d2"),a={name:"BackMapArea",components:{mapChooseQuart:o["default"]},data:function(){return{visible:!1,title:"绘制区域",lnglat:"",isVerifyPass:!1}},methods:{handleOk:function(){this.isVerifyPass||this.$emit("quartChanged",this.lnglat),this.visible=!1},handleCancel:function(){this.visible=!1},lonlatChanged2Map:function(e){this.lnglat=e}},props:["model","quartKey"]},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"19f8838e",null);t["default"]=c.exports},"444c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("sysDepart-modal",{ref:"sysDepartModal",on:{ok:e.modalFormOk}})],1)},i=[],o=(n("ac6a"),n("456d"),n("c1af")),a=n("4ec3"),s=n("0fea"),l=[{title:"机构名称",dataIndex:"departName"},{title:"机构类型",align:"center",dataIndex:"orgType"},{title:"机构编码",dataIndex:"orgCode"},{title:"手机号",dataIndex:"mobile"},{title:"传真",dataIndex:"fax"},{title:"地址",dataIndex:"address"},{title:"排序",align:"center",dataIndex:"departOrder"},{title:"操作",align:"center",dataIndex:"action",scopedSlots:{customRender:"action"}}],c={name:"DepartList2",components:{SysDepartModal:o["default"]},data:function(){return{description:"jeecg 生成SysDepart代码管理页面",queryParam:{},factories:"",dataSource:[],columns:l,isorter:{column:"createTime",order:"desc"},loading:!1,selectedRowKeys:[],selectedRows:[],url:{list:"/sys/sysDepart/list",delete:"/sys/sysDepart/delete",deleteBatch:"/sys/sysDepart/deleteBatch"}}},created:function(){this.loadData()},methods:{loadData:function(){var e=this;this.dataSource=[],Object(a["L"])().then((function(t){t.success&&(e.dataSource=t.result)}))},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},handleDelete:function(e){var t=this;Object(s["a"])(t.url.delete,{id:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))},handleDetail:function(e){this.$refs.sysDepartModal.edit(e),this.$refs.sysDepartModal.title="详情",this.$refs.sysDepartModal.disableSubmit=!0},batchDel:function(){if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(s["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}},handleEdit:function(e){this.$refs.sysDepartModal.edit(e),this.$refs.sysDepartModal.title="编辑"},handleAdd:function(){this.$refs.sysDepartModal.add(),this.$refs.sysDepartModal.title="新增"},handleTableChange:function(e,t,n){console.log(n),Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.loadData()},modalFormOk:function(){this.loadData()}}},u=c,d=(n("6b65"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"3f65c8a4",null);t["default"]=f.exports},4488:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"pid"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pid",{}],expression:"['pid', {}]"}],attrs:{placeholder:"pid"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"温州市显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["wzName",{}],expression:"['wzName', {}]"}],attrs:{placeholder:"请输入温州市显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"鹿城区显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["lcName",{}],expression:"['lcName', {}]"}],attrs:{placeholder:"请输入鹿城区显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"龙湾区显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["lwName",{}],expression:"['lwName', {}]"}],attrs:{placeholder:"请输入龙湾区显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"瓯海区显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ohName",{}],expression:"['ohName', {}]"}],attrs:{placeholder:"请输入瓯海区显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"洞头区显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dtName",{}],expression:"['dtName', {}]"}],attrs:{placeholder:"请输入洞头区显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"乐清市显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["lqName",{}],expression:"['lqName', {}]"}],attrs:{placeholder:"请输入乐清市显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"瑞安市显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["raName",{}],expression:"['raName', {}]"}],attrs:{placeholder:"请输入瑞安市显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"龙港市显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["lgName",{}],expression:"['lgName', {}]"}],attrs:{placeholder:"请输入龙港市显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"永嘉县显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["yjName",{}],expression:"['yjName', {}]"}],attrs:{placeholder:"请输入永嘉县显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"文成县显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["wcName",{}],expression:"['wcName', {}]"}],attrs:{placeholder:"请输入文成县显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"平阳县显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pyName",{}],expression:"['pyName', {}]"}],attrs:{placeholder:"请输入平阳县显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"泰顺县显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tsName",{}],expression:"['tsName', {}]"}],attrs:{placeholder:"请输入泰顺县显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"苍南县显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cnName",{}],expression:"['cnName', {}]"}],attrs:{placeholder:"请输入苍南县显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"经开区显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["jkName",{}],expression:"['jkName', {}]"}],attrs:{placeholder:"请输入经开区显示备注"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"瓯江口显示备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ojName",{}],expression:"['ojName', {}]"}],attrs:{placeholder:"请输入瓯江口显示备注"}})],1)],1)],1)],1)},i=[],o=n("88bc"),a=n.n(o),s=n("0fea"),l=n("2dab"),c=n("c14a"),u={name:"RemarkModal",components:{JDate:l["default"],JSelectUserByDep:c["default"]},data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},username:"",confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{wzName:{rules:[{required:!0,message:"请输入温州市显示备注!"}]},lcName:{rules:[{required:!0,message:"请输入鹿城区显示备注!"}]},lwName:{rules:[{required:!0,message:"请输入龙湾区显示备注!"}]},ohName:{rules:[{required:!0,message:"请输入瓯海区显示备注!"}]},dtName:{rules:[{required:!0,message:"请输入洞头区显示备注!"}]},lqName:{rules:[{required:!0,message:"请输入乐清市显示备注!"}]},raName:{rules:[{required:!0,message:"请输入瑞安市显示备注!"}]},lgName:{rules:[{required:!0,message:"请输入龙港市显示备注!"}]},yjName:{rules:[{required:!0,message:"请输入永嘉县显示备注!"}]},wcName:{rules:[{required:!0,message:"请输入文成县显示备注!"}]},pyName:{rules:[{required:!0,message:"请输入平阳县显示备注!"}]},tsName:{rules:[{required:!0,message:"请输入泰顺县显示备注!"}]},cnName:{rules:[{required:!0,message:"请输入苍南县显示备注!"}]},jkName:{rules:[{required:!0,message:"请输入经开区显示备注!"}]},ojName:{rules:[{required:!0,message:"请输入瓯江口显示备注!"}]}},url:{add:"/sys/category/addRemark",edit:"/sys/sysUserAgent/edit",queryByPid:"/sys/category/queryByPid"}}},created:function(){},methods:{show:function(e){var t=this;this.form.resetFields(),this.visible=!0,this.init(e),this.model.pid=e,this.$nextTick((function(){t.form.setFieldsValue({pid:e})}))},init:function(e){var t=this,n={pid:e};Object(s["d"])(this.url.queryByPid,n).then((function(e){null!=e.result&&(console.log("获取流程节点信息",e),t.edit(e.result))}))},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(a()(t.model,"pid","wzName","lcName","lwName","ohName","dtName","lqName","raName","lgName","yjName","wcName","pyName","tsName","cnName","jkName","ojName"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";o="put",i+=e.url.add,o="post";var a=Object.assign(e.model,r);Object(s["i"])(i,a,o).then((function(e){e.success?t.$message.success(e.message):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"e9933f08",null);t["default"]=h.exports},4489:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:e.title,width:800,placement:"right",closable:!1,visible:e.visible},on:{close:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"修订号"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["revision",{}],expression:"[ 'revision', {}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"流程名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入流程名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"流程key"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["key",{}],expression:"['key', {}]"}],attrs:{placeholder:"请输入流程key"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"版本号"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["version",{}],expression:"[ 'version', {}]"}]})],1)],1)],1),n("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("确定")]),n("a-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v("取消")])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"ActivitiModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/activiti/add",edit:"/activiti/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"revision","name","key","version"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=(n("95e3"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"99a5d67c",null);t["default"]=d.exports},4505:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("iframe",{staticStyle:{"background-color":"#fff"},attrs:{id:e.id,src:e.url,frameborder:"0",width:"100%",height:"800px",scrolling:"auto"}})},i=[],o=(n("b445"),n("501f"),{name:"IframePageContent",data:function(){return{url:"",id:""}},created:function(){this.goUrl()},updated:function(){this.goUrl()},watch:{$route:function(e,t){this.goUrl()}},methods:{goUrl:function(){var e=this.$route.meta.url,t=this.$route.path;this.id=t,console.log("------url------"+e),null!==e&&void 0!==e&&(this.url=e)}}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5edaf")("keys",(function(){return function(e){return i(r(e))}}))},4578:function(e,t,n){var r=n("5da3"),i=n("9e85"),o="["+i+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},4587:function(e,t,n){var r=n("1fe0"),i=n("2ace"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},4603:function(e,t,n){"use strict";
/**!
 * Sortable 1.10.2
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function l(e,t){if(null==e)return{};var n,r,i=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){return u(e)||d(e)||f()}function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function d(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,"MultiDrag",(function(){return Ft})),n.d(t,"Sortable",(function(){return Qe})),n.d(t,"Swap",(function(){return kt}));var h="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var m=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),g=p(/Edge/i),v=p(/firefox/i),y=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),_=p(/chrome/i)&&p(/android/i),w={capture:!1,passive:!1};function x(e,t,n){e.addEventListener(t,n,!m&&w)}function S(e,t,n){e.removeEventListener(t,n,!m&&w)}function C(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function E(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&C(e,t):C(e,t))||r&&e===n)return e;if(e===n)break}while(e=E(e))}return null}var O,T=/\s+/g;function I(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(T," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(T," ")}}function A(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function R(e,t){var n="";if("string"===typeof e)n=e;else do{var r=A(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function P(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function M(){var e=document.scrollingElement;return e||document.documentElement}function N(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,c,u,d;if(e!==window&&e!==M()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,c=o.right,u=o.height,d=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!m))do{if(i&&i.getBoundingClientRect&&("none"!==A(i,"transform")||n&&"static"!==A(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(A(i,"border-top-width")),s-=f.left+parseInt(A(i,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=R(i||e),p=h&&h.a,g=h&&h.d;h&&(a/=g,s/=p,d/=p,u/=g,l=a+u,c=s+d)}return{top:a,left:s,bottom:l,right:c,width:d,height:u}}}function L(e,t,n){var r=z(e,!0),i=N(e)[t];while(r){var o=N(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===M())break;r=z(r,!1)}return!1}function D(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==Qe.ghost&&o[i]!==Qe.dragged&&k(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function j(e,t){var n=e.lastElementChild;while(n&&(n===Qe.ghost||"none"===A(n,"display")||t&&!C(n,t)))n=n.previousElementSibling;return n||null}function F(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Qe.clone||t&&!C(e,t)||n++;return n}function B(e){var t=0,n=0,r=M();if(e)do{var i=R(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function q(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function z(e,t){if(!e||!e.getBoundingClientRect)return M();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=A(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(r||t)return n;r=!0}}}while(n=n.parentNode);return M()}function U(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function G(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function V(e,t){return function(){if(!O){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),O=setTimeout((function(){O=void 0}),t)}}}function W(){clearTimeout(O),O=void 0}function H(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function $(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function K(e,t){A(e,"position","absolute"),A(e,"top",t.top),A(e,"left",t.left),A(e,"width",t.width),A(e,"height",t.height)}function X(e){A(e,"position",""),A(e,"top",""),A(e,"left",""),A(e,"width",""),A(e,"height","")}var Y="Sortable"+(new Date).getTime();function J(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==A(e,"display")&&e!==Qe.ghost){t.push({target:e,rect:N(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=R(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(q(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=N(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=R(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&G(l,s)&&!G(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=Z(u,l,c,r.options)),G(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){A(e,"transition",""),A(e,"transform","");var i=R(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,A(e,"transform","translate3d("+s+"px,"+l+"px,0)"),Q(e),A(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),A(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){A(e,"transition",""),A(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function Q(e){return e.offsetWidth}function Z(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ee.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](a({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ee.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(r){"function"===typeof r.eventProperties&&o(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ee.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function re(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[Y],t){var y,b=t.options,_="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||m||g?(y=document.createEvent("Event"),y.initEvent(r,!0,!0)):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=i||n,y.clone=o,y.oldIndex=c,y.newIndex=u,y.oldDraggableIndex=d,y.newDraggableIndex=f,y.originalEvent=h,y.pullMode=p?p.lastPutMode:void 0;var w=a({},v,ne.getEventProperties(r,t));for(var x in w)y[x]=w[x];n&&n.dispatchEvent(y),b[_]&&b[_].call(t,y)}}var ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=l(n,["evt"]);ne.pluginEvent.bind(Qe)(e,t,a({dragEl:ae,parentEl:se,ghostEl:le,rootEl:ce,nextEl:ue,lastDownEl:de,cloneEl:fe,cloneHidden:he,dragStarted:ke,putSortable:be,activeSortable:Qe.active,originalEvent:r,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve,hideGhostForTarget:Ke,unhideGhostForTarget:Xe,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(a({putSortable:be,cloneEl:fe,targetEl:ae,rootEl:ce,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve},e))}var ae,se,le,ce,ue,de,fe,he,pe,me,ge,ve,ye,be,_e,we,xe,Se,Ce,Ee,ke,Oe,Te,Ie,Ae,Re=!1,Pe=!1,Me=[],Ne=!1,Le=!1,De=[],je=!1,Fe=[],Be="undefined"!==typeof document,qe=b,ze=g||m?"cssFloat":"float",Ue=Be&&!_&&!b&&"draggable"in document.createElement("div"),Ge=function(){if(Be){if(m)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ve=function(e,t){var n=A(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=D(e,0,t),o=D(e,1,t),a=i&&A(i),s=o&&A(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+N(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[ze]||o&&"none"===n[ze]&&l+c>r)?"vertical":"horizontal"},We=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},He=function(e,t){var n;return Me.some((function(r){if(!j(r)){var i=N(r),o=r[Y].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},$e=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ke=function(){!Ge&&le&&A(le,"display","none")},Xe=function(){!Ge&&le&&A(le,"display","")};Be&&document.addEventListener("click",(function(e){if(Pe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Pe=!1,!1}),!0);var Ye=function(e){if(ae){e=e.touches?e.touches[0]:e;var t=He(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Y]._onDragOver(n)}}},Je=function(e){ae&&ae.parentNode[Y]._isOutsideThisEl(e.target)};function Qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[Y]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ve(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Qe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in $e(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ue,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?x(e,"pointerdown",this._onTapStart):(x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,J())}function Ze(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,r,i,o,a,s){var l,c,u=e[Y],d=u.options.onMove;return!window.CustomEvent||m||g?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||N(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function tt(e){e.draggable=!1}function nt(){je=!1}function rt(e,t,n){var r=N(j(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&Ie<c*i){if(!Ne&&(1===Te?l>u+c*o/2:l<d-c*o/2)&&(Ne=!0),Ne)f=!0;else if(1===Te?l<u+Ie:l>d-Ie)return-Te}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return ot(t);return f=f||a,f&&(l<u+c*o/2||l>d-c*o/2)?l>u+c/2?1:-1:0}function ot(e){return F(ae)<F(e)?1:-1}function at(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function st(e){Fe.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Fe.push(r)}}function lt(e){return setTimeout(e,0)}function ct(e){return clearTimeout(e)}Qe.prototype={constructor:Qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Oe=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(st(n),!ae&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(s=k(s,r.draggable,n,!1),(!s||!s.animated)&&de!==s)){if(pe=F(s),ge=F(s,r.draggable),"function"===typeof c){if(c.call(this,e,s,this))return oe({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),ie("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=k(l,r.trim(),n,!1),r)return oe({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ie("filter",t,{evt:e}),!0})),c))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!k(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!ae&&n.parentNode===o){var l=N(n);if(ce=o,ae=n,se=ae.parentNode,ue=ae.nextSibling,de=n,ye=a.group,Qe.dragged=ae,_e={target:ae,clientX:(t||e).clientX,clientY:(t||e).clientY},Ce=_e.clientX-l.left,Ee=_e.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ae.style["will-change"]="all",r=function(){ie("delayEnded",i,{evt:e}),Qe.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!v&&i.nativeDraggable&&(ae.draggable=!0),i._triggerDragStart(e,t),oe({sortable:i,name:"choose",originalEvent:e}),I(ae,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){P(ae,e.trim(),tt)})),x(s,"dragover",Ye),x(s,"mousemove",Ye),x(s,"touchmove",Ye),x(s,"mouseup",i._onDrop),x(s,"touchend",i._onDrop),x(s,"touchcancel",i._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ae.draggable=!0),ie("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(g||m))r();else{if(Qe.eventCanceled)return void this._onDrop();x(s,"mouseup",i._disableDelayedDrag),x(s,"touchend",i._disableDelayedDrag),x(s,"touchcancel",i._disableDelayedDrag),x(s,"mousemove",i._delayedDragTouchMoveHandler),x(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&x(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ae&&tt(ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;S(e,"mouseup",this._disableDelayedDrag),S(e,"touchend",this._disableDelayedDrag),S(e,"touchcancel",this._disableDelayedDrag),S(e,"mousemove",this._delayedDragTouchMoveHandler),S(e,"touchmove",this._delayedDragTouchMoveHandler),S(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?x(document,"pointermove",this._onTouchMove):x(document,t?"touchmove":"mousemove",this._onTouchMove):(x(ae,"dragend",this),x(ce,"dragstart",this._onDragStart));try{document.selection?lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Re=!1,ce&&ae){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&x(document,"dragover",Je);var n=this.options;!e&&I(ae,n.dragClass,!1),I(ae,n.ghostClass,!0),Qe.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(we){this._lastX=we.clientX,this._lastY=we.clientY,Ke();var e=document.elementFromPoint(we.clientX,we.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(we.clientX,we.clientY),e===t)break;t=e}if(ae.parentNode[Y]._isOutsideThisEl(e),t)do{if(t[Y]){var n=void 0;if(n=t[Y]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Xe()}},_onTouchMove:function(e){if(_e){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=le&&R(le,!0),a=le&&o&&o.a,s=le&&o&&o.d,l=qe&&Ae&&B(Ae),c=(i.clientX-_e.clientX+r.x)/(a||1)+(l?l[0]-De[0]:0)/(a||1),u=(i.clientY-_e.clientY+r.y)/(s||1)+(l?l[1]-De[1]:0)/(s||1);if(!Qe.active&&!Re){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(le){o?(o.e+=c-(xe||0),o.f+=u-(Se||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");A(le,"webkitTransform",d),A(le,"mozTransform",d),A(le,"msTransform",d),A(le,"transform",d),xe=c,Se=u,we=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!le){var e=this.options.fallbackOnBody?document.body:ce,t=N(ae,!0,qe,!0,e),n=this.options;if(qe){Ae=e;while("static"===A(Ae,"position")&&"none"===A(Ae,"transform")&&Ae!==document)Ae=Ae.parentNode;Ae!==document.body&&Ae!==document.documentElement?(Ae===document&&(Ae=M()),t.top+=Ae.scrollTop,t.left+=Ae.scrollLeft):Ae=M(),De=B(Ae)}le=ae.cloneNode(!0),I(le,n.ghostClass,!1),I(le,n.fallbackClass,!0),I(le,n.dragClass,!0),A(le,"transition",""),A(le,"transform",""),A(le,"box-sizing","border-box"),A(le,"margin",0),A(le,"top",t.top),A(le,"left",t.left),A(le,"width",t.width),A(le,"height",t.height),A(le,"opacity","0.8"),A(le,"position",qe?"absolute":"fixed"),A(le,"zIndex","100000"),A(le,"pointerEvents","none"),Qe.ghost=le,e.appendChild(le),A(le,"transform-origin",Ce/parseInt(le.style.width)*100+"% "+Ee/parseInt(le.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ie("dragStart",this,{evt:e}),Qe.eventCanceled?this._onDrop():(ie("setupClone",this),Qe.eventCanceled||(fe=$(ae),fe.draggable=!1,fe.style["will-change"]="",this._hideClone(),I(fe,this.options.chosenClass,!1),Qe.clone=fe),n.cloneId=lt((function(){ie("clone",n),Qe.eventCanceled||(n.options.removeCloneOnHide||ce.insertBefore(fe,ae),n._hideClone(),oe({sortable:n,name:"clone"}))})),!t&&I(ae,i.dragClass,!0),t?(Pe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(S(document,"mouseup",n._onDrop),S(document,"touchend",n._onDrop),S(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,ae)),x(document,"drop",n),A(ae,"transform","translateZ(0)")),Re=!0,n._dragStartId=lt(n._dragStarted.bind(n,t,e)),x(document,"selectstart",n),ke=!0,y&&A(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,l=this.options,c=l.group,u=Qe.active,d=ye===c,f=l.sort,h=be||u,p=this,m=!1;if(!je){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=k(s,l.draggable,o,!0),P("dragOver"),Qe.eventCanceled)return m;if(ae.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return D(!1);if(Pe=!1,u&&!l.disabled&&(d?f||(r=!ce.contains(ae)):be===this||(this.lastPutMode=ye.checkPull(this,u,ae,e))&&c.checkPut(this,u,ae,e))){if(i="vertical"===this._getDirection(e,s),t=N(ae),P("dragOverValid"),Qe.eventCanceled)return m;if(r)return se=ce,M(),this._hideClone(),P("revert"),Qe.eventCanceled||(ue?ce.insertBefore(ae,ue):ce.appendChild(ae)),D(!0);var g=j(o,l.draggable);if(!g||rt(e,i,this)&&!g.animated){if(g===ae)return D(!1);if(g&&o===e.target&&(s=g),s&&(n=N(s)),!1!==et(ce,o,ae,t,s,n,e,!!s))return M(),o.appendChild(ae),se=o,B(),D(!0)}else if(s.parentNode===o){n=N(s);var v,y,b=0,_=ae.parentNode!==o,w=!We(ae.animated&&ae.toRect||t,s.animated&&s.toRect||n,i),x=i?"top":"left",S=L(s,"top","top")||L(ae,"top","top"),C=S?S.scrollTop:void 0;if(Oe!==s&&(v=n[x],Ne=!1,Le=!w&&l.invertSwap||_),b=it(e,s,n,i,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Le,Oe===s),0!==b){var E=F(ae);do{E-=b,y=se.children[E]}while(y&&("none"===A(y,"display")||y===le))}if(0===b||y===s)return D(!1);Oe=s,Te=b;var O=s.nextElementSibling,T=!1;T=1===b;var R=et(ce,o,ae,t,s,n,e,T);if(!1!==R)return 1!==R&&-1!==R||(T=1===R),je=!0,setTimeout(nt,30),M(),T&&!O?o.appendChild(ae):s.parentNode.insertBefore(ae,T?O:s),S&&H(S,0,C-S.scrollTop),se=ae.parentNode,void 0===v||Le||(Ie=Math.abs(v-N(s)[x])),B(),D(!0)}if(o.contains(ae))return D(!1)}return!1}function P(l,c){ie(l,p,a({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:h,target:s,completed:D,onMove:function(n,r){return et(ce,o,ae,t,n,N(n),e,r)},changed:B},c))}function M(){P("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function D(t){return P("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==h&&(I(ae,be?be.options.ghostClass:u.options.ghostClass,!1),I(ae,l.ghostClass,!0)),be!==p&&p!==Qe.active?be=p:p===Qe.active&&be&&(be=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){P("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===ae&&!ae.animated||s===o&&!s.animated)&&(Oe=null),l.dragoverBubble||e.rootEl||s===document||(ae.parentNode[Y]._isOutsideThisEl(e.target),!t&&Ye(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function B(){me=F(ae),ve=F(ae,l.draggable),oe({sortable:p,name:"change",toEl:o,newIndex:me,newDraggableIndex:ve,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ye),S(document,"mousemove",Ye),S(document,"touchmove",Ye)},_offUpEvents:function(){var e=this.el.ownerDocument;S(e,"mouseup",this._onDrop),S(e,"touchend",this._onDrop),S(e,"pointerup",this._onDrop),S(e,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;me=F(ae),ve=F(ae,n.draggable),ie("drop",this,{evt:e}),se=ae&&ae.parentNode,me=F(ae),ve=F(ae,n.draggable),Qe.eventCanceled||(Re=!1,Le=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ct(this.cloneId),ct(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&A(document.body,"user-select",""),A(ae,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(ce===se||be&&"clone"!==be.lastPutMode)&&fe&&fe.parentNode&&fe.parentNode.removeChild(fe),ae&&(this.nativeDraggable&&S(ae,"dragend",this),tt(ae),ae.style["will-change"]="",ke&&!Re&&I(ae,be?be.options.ghostClass:this.options.ghostClass,!1),I(ae,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),ce!==se?(me>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),be&&be.save()):me!==pe&&me>=0&&(oe({sortable:this,name:"update",toEl:se,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),Qe.active&&(null!=me&&-1!==me||(me=pe,ve=ge),oe({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ie("nulling",this),ce=ae=se=le=ue=fe=de=he=_e=we=ke=me=ve=pe=ge=Oe=Te=be=ye=Qe.dragged=Qe.ghost=Qe.clone=Qe.active=null,Fe.forEach((function(e){e.checked=!0})),Fe.length=xe=Se=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ae&&(this._onDragOver(e),Ze(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],k(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||at(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];k(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return k(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&$e(n)},destroy:function(){ie("destroy",this);var e=this.el;e[Y]=null,S(e,"mousedown",this._onTapStart),S(e,"touchstart",this._onTapStart),S(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(e,"dragover",this),S(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!he){if(ie("hideClone",this),Qe.eventCanceled)return;A(fe,"display","none"),this.options.removeCloneOnHide&&fe.parentNode&&fe.parentNode.removeChild(fe),he=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(he){if(ie("showClone",this),Qe.eventCanceled)return;ce.contains(ae)&&!this.options.group.revertClone?ce.insertBefore(fe,ae):ue?ce.insertBefore(fe,ue):ce.appendChild(fe),this.options.group.revertClone&&this.animate(ae,fe),A(fe,"display",""),he=!1}}else this._hideClone()}},Be&&x(document,"touchmove",(function(e){(Qe.active||Re)&&e.cancelable&&e.preventDefault()})),Qe.utils={on:x,off:S,css:A,find:P,is:function(e,t){return!!k(e,t,e,!1)},extend:U,throttle:V,closest:k,toggleClass:I,clone:$,index:F,nextTick:lt,cancelNextTick:ct,detectDirection:Ve,getChild:D},Qe.get=function(e){return e[Y]},Qe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Qe.utils=a({},Qe.utils,e.utils)),ne.mount(e)}))},Qe.create=function(e,t){return new Qe(e,t)},Qe.version=h;var ut,dt,ft,ht,pt,mt,gt=[],vt=!1;function yt(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):this.options.supportPointer?x(document,"pointermove",this._handleFallbackAutoScroll):t.touches?x(document,"touchmove",this._handleFallbackAutoScroll):x(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),_t(),bt(),W()},nulling:function(){pt=dt=ut=vt=mt=ft=ht=null,gt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(pt=e,t||g||m||y){xt(e,this.options,o,t);var a=z(o,!0);!vt||mt&&r===ft&&i===ht||(mt&&_t(),mt=setInterval((function(){var o=z(document.elementFromPoint(r,i),!0);o!==a&&(a=o,bt()),xt(e,n.options,o,t)}),10),ft=r,ht=i)}else{if(!this.options.bubbleScroll||z(o,!0)===M())return void bt();xt(e,this.options,z(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}function bt(){gt.forEach((function(e){clearInterval(e.pid)})),gt=[]}function _t(){clearInterval(mt)}var wt,xt=V((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=M(),u=!1;dt!==n&&(dt=n,bt(),ut=t.scroll,i=t.scrollFn,!0===ut&&(ut=z(n,!0)));var d=0,f=ut;do{var h=f,p=N(h),m=p.top,g=p.bottom,v=p.left,y=p.right,b=p.width,_=p.height,w=void 0,x=void 0,S=h.scrollWidth,C=h.scrollHeight,E=A(h),k=h.scrollLeft,O=h.scrollTop;h===c?(w=b<S&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),x=_<C&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=b<S&&("auto"===E.overflowX||"scroll"===E.overflowX),x=_<C&&("auto"===E.overflowY||"scroll"===E.overflowY));var T=w&&(Math.abs(y-o)<=s&&k+b<S)-(Math.abs(v-o)<=s&&!!k),I=x&&(Math.abs(g-a)<=s&&O+_<C)-(Math.abs(m-a)<=s&&!!O);if(!gt[d])for(var R=0;R<=d;R++)gt[R]||(gt[R]={});gt[d].vx==T&&gt[d].vy==I&&gt[d].el===h||(gt[d].el=h,gt[d].vx=T,gt[d].vy=I,clearInterval(gt[d].pid),0==T&&0==I||(u=!0,gt[d].pid=setInterval(function(){r&&0===this.layer&&Qe.active._onTouchMove(pt);var t=gt[this.layer].vy?gt[this.layer].vy*l:0,n=gt[this.layer].vx?gt[this.layer].vx*l:0;"function"===typeof i&&"continue"!==i.call(Qe.dragged.parentNode[Y],n,t,e,pt,gt[this.layer].el)||H(gt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=z(f,!1)));vt=u}}),30),St=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Ct(){}function Et(){}function kt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;wt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=wt;!1!==r(n)?(I(n,l.swapClass,!0),wt=n):wt=null,c&&c!==wt&&I(c,l.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;wt&&I(wt,o.swapClass,!1),wt&&(o.swap||n&&n.options.swap)&&r!==wt&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Ot(r,wt),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){wt=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:wt}}})}function Ot(e,t){var n,r,i=e.parentNode,o=t.parentNode;i&&o&&!i.isEqualNode(t)&&!o.isEqualNode(e)&&(n=F(e),r=F(t),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r]))}Ct.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=D(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:St},o(Ct,{pluginName:"revertOnSpill"}),Et.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:St},o(Et,{pluginName:"removeOnSpill"});var Tt,It,At,Rt,Pt,Mt=[],Nt=[],Lt=!1,Dt=!1,jt=!1;function Ft(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?x(document,"pointerup",this._deselectMultiDrag):(x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag)),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";Mt.length&&It===e?Mt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;At=t},delayEnded:function(){this.isMultiDrag=~Mt.indexOf(At)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Mt.length;r++)Nt.push($(Mt[r])),Nt[r].sortableIndex=Mt[r].sortableIndex,Nt[r].draggable=!1,Nt[r].style["will-change"]="",I(Nt[r],this.options.selectedClass,!1),Mt[r]===At&&I(Nt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Mt.length&&It===t&&(qt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(qt(!1,n),Nt.forEach((function(e){A(e,"display","")})),t(),Pt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(Nt.forEach((function(e){A(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Pt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&It&&It.multiDrag._deselectMultiDrag(),Mt.forEach((function(e){e.sortableIndex=F(e)})),Mt=Mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),jt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Mt.forEach((function(e){e!==At&&A(e,"position","absolute")}));var r=N(At,!1,!0,!0);Mt.forEach((function(e){e!==At&&K(e,r)})),Dt=!0,Lt=!0}n.animateAll((function(){Dt=!1,Lt=!1,t.options.animation&&Mt.forEach((function(e){X(e)})),t.options.sort&&zt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Dt&&~Mt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Mt.length>1&&(Mt.forEach((function(e){r.addAnimationState({target:e,rect:Dt?N(e):i}),X(e),e.fromRect=i,t.removeAnimationState(e)})),Dt=!1,Bt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Lt=!1,s.animation&&Mt.length>1&&(Dt||!n&&!i.options.sort&&!a)){var l=N(At,!1,!0,!0);Mt.forEach((function(e){e!==At&&(K(e,l),o.appendChild(e))})),Dt=!0}if(!n)if(Dt||zt(),Mt.length>1){var c=Pt;i._showClone(t),i.options.animation&&!Pt&&c&&Nt.forEach((function(e){i.addAnimationState({target:e,rect:Rt}),e.fromRect=Rt,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Rt=o({},t);var i=R(At,!0);Rt.top-=i.f,Rt.left-=i.e}},dragOverAnimationComplete:function(){Dt&&(Dt=!1,zt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!jt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),I(At,c.selectedClass,!~Mt.indexOf(At)),~Mt.indexOf(At))Mt.splice(Mt.indexOf(At),1),Tt=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:At,originalEvt:t});else{if(Mt.push(At),re({sortable:i,rootEl:n,name:"select",targetEl:At,originalEvt:t}),t.shiftKey&&Tt&&i.el.contains(Tt)){var d,f,h=F(Tt),p=F(At);if(~h&&~p&&h!==p)for(p>h?(f=h,d=p):(f=p,d=h+1);f<d;f++)~Mt.indexOf(u[f])||(I(u[f],c.selectedClass,!0),Mt.push(u[f]),re({sortable:i,rootEl:n,name:"select",targetEl:u[f],originalEvt:t}))}else Tt=At;It=l}if(jt&&this.isMultiDrag){if((r[Y].options.sort||r!==n)&&Mt.length>1){var m=N(At),g=F(At,":not(."+this.options.selectedClass+")");if(!Lt&&c.animation&&(At.thisAnimationDuration=null),l.captureAnimationState(),!Lt&&(c.animation&&(At.fromRect=m,Mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==At){var t=Dt?N(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),zt(),Mt.forEach((function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++})),a===F(At))){var v=!1;Mt.forEach((function(e){e.sortableIndex===F(e)||(v=!0)})),v&&o("update")}Mt.forEach((function(e){X(e)})),l.animateAll()}It=l}(n===r||s&&"clone"!==s.lastPutMode)&&Nt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=jt=!1,Nt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),S(document,"pointerup",this._deselectMultiDrag),S(document,"mouseup",this._deselectMultiDrag),S(document,"touchend",this._deselectMultiDrag),S(document,"keydown",this._checkKeyDown),S(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof jt||!jt)&&It===this.sortable&&(!e||!k(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Mt.length){var t=Mt[0];I(t,this.options.selectedClass,!1),Mt.shift(),re({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Y];t&&t.options.multiDrag&&!~Mt.indexOf(e)&&(It&&It!==t&&(It.multiDrag._deselectMultiDrag(),It=t),I(e,t.options.selectedClass,!0),Mt.push(e))},deselect:function(e){var t=e.parentNode[Y],n=Mt.indexOf(e);t&&t.options.multiDrag&&~n&&(I(e,t.options.selectedClass,!1),Mt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Mt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=Dt&&r!==At?-1:Dt?F(r,":not(."+e.options.selectedClass+")"):F(r),n.push({multiDragElement:r,index:i})})),{items:c(Mt),clones:[].concat(Nt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Bt(e,t){Mt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function qt(e,t){Nt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function zt(){Mt.forEach((function(e){e!==At&&e.parentNode&&e.parentNode.removeChild(e)}))}Qe.mount(new yt),Qe.mount(Et,Ct),t["default"]=Qe},4611:function(e,t,n){"use strict";var r=n("791c");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},4623:function(e,t,n){"use strict";n("193c")},4647:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,okButtonProps:{props:{disabled:e.disabled}},cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"标题"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["titile",e.validatorRules.title],expression:"['titile', validatorRules.title]"}],attrs:{placeholder:"请输入标题",readOnly:e.disableSubmit}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"消息类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["msgCategory",e.validatorRules.msgCategory],expression:"[ 'msgCategory', validatorRules.msgCategory]"}],attrs:{placeholder:"请选择消息类型",disabled:e.disableSubmit}},[n("a-select-option",{attrs:{value:"1"}},[e._v("通知公告")]),n("a-select-option",{attrs:{value:"2"}},[e._v("系统消息")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"内容"}},[n("j-editor",{directives:[{name:"decorator",rawName:"v-decorator",value:["msgContent",{}],expression:"[ 'msgContent', {} ]"}],attrs:{triggerChange:""}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"开始时间"}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:["startTime",e.validatorRules.startTime],expression:"[ 'startTime', validatorRules.startTime]"}],attrs:{placeholder:"请选择开始时间",showTime:"",dateFormat:"YYYY-MM-DD HH:mm:ss"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"结束时间"}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:["endTime",e.validatorRules.endTime],expression:"[ 'endTime', validatorRules.endTime]"}],attrs:{placeholder:"请选择结束时间",showTime:"",dateFormat:"YYYY-MM-DD HH:mm:ss"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"优先级"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["priority",{}],expression:"[ 'priority', {}]"}],attrs:{placeholder:"请选择优先级",disabled:e.disableSubmit}},[n("a-select-option",{attrs:{value:"L"}},[e._v("低")]),n("a-select-option",{attrs:{value:"M"}},[e._v("中")]),n("a-select-option",{attrs:{value:"H"}},[e._v("高")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"通告对象类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["msgType",e.validatorRules.msgType],expression:"[ 'msgType', validatorRules.msgType]"}],attrs:{placeholder:"请选择通告对象类型",disabled:e.disableSubmit},on:{change:e.chooseMsgType}},[n("a-select-option",{attrs:{value:"USER"}},[e._v("指定用户")]),n("a-select-option",{attrs:{value:"ALL"}},[e._v("全体用户")])],1)],1),e.userType?n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"指定用户"}},[n("a-select",{staticStyle:{width:"100%"},attrs:{mode:"multiple",placeholder:"请选择用户"},on:{dropdownVisibleChange:e.selectUserIds},model:{value:e.selectedUser,callback:function(t){e.selectedUser=t},expression:"selectedUser"}})],1):e._e()],1)],1),n("select-user-list-modal",{ref:"UserListModal",on:{choseUser:e.choseUser}})],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("2dab"),c=n("a061"),u=n("ed2a"),d=n("c1df"),f=n.n(d),h={components:{JEditor:c["default"],JDate:l["default"],SelectUserListModal:u["default"]},name:"SysAnnouncementModal",data:function(){return{title:"操作",visible:!1,disableSubmit:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{title:{rules:[{required:!0,message:"请输入标题!"}]},msgCategory:{rules:[{required:!0,message:"请选择消息类型!"}]},msgType:{rules:[{required:!0,message:"请选择通告对象类型!"}]},endTime:{rules:[{validator:this.endTimeValidate}]},startTime:{rules:[{validator:this.startTimeValidate}]}},url:{queryByIds:"/sys/user/queryByIds",add:"/sys/annountCement/add",edit:"/sys/annountCement/edit"},userType:!1,userIds:[],selectedUser:[],disabled:!1,msgContent:""}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){this.form.resetFields(),this.model={},this.disable=!1,this.visible=!0,this.getUser(e)},getUser:function(e){var t=this;this.model=Object.assign({},e),e&&"USER"===e.msgType&&(this.userType=!0,this.userIds=e.userIds,Object(o["d"])(this.url.queryByIds,{userIds:this.userIds}).then((function(e){if(e.success){for(var n=0;n<e.result.length;n++)t.selectedUser.push(e.result[n].realname);t.$refs.UserListModal.edit(e.result,t.userIds)}}))),this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"endTime","startTime","titile","msgContent","sender","priority","msgCategory","msgType","sendStatus","delFlag"))}))},close:function(){this.$emit("close"),this.selectedUser=[],this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);e.userType&&(s.userIds=e.userIds),console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.visible=!1,this.$emit("close"),this.resetUser()},resetUser:function(){this.userType=!1,this.userIds=[],this.selectedUser=[],this.disabled=!1,this.$refs.UserListModal.edit(null,null)},selectUserIds:function(){this.$refs.UserListModal.add(this.selectedUser,this.userIds)},chooseMsgType:function(e){"USER"==e?this.userType=!0:(this.userType=!1,this.selectedUser=[],this.userIds=[])},choseUser:function(e){this.selectedUser=[],this.userIds=[];for(var t=0;t<e.length;t++)this.selectedUser.push(e[t].realname),this.userIds+=e[t].id+","},startTimeValidate:function(e,t,n){var r=this.form.getFieldValue("endTime");t&&r?f()(t).isBefore(r)?n():n("开始时间需小于结束时间"):n()},endTimeValidate:function(e,t,n){var r=this.form.getFieldValue("startTime");t&&r?f()(r).isBefore(t)?n():n("结束时间需大于开始时间"):n()}}},p=h,m=n("2877"),g=Object(m["a"])(p,r,i,!1,null,"1c14fa9b",null);t["default"]=g.exports},"466d":function(e,t){function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"46cc":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("791c"),o=n("b99f"),a=n("4b0b"),s=n("ef6d"),l=n("7373"),c=n("a1ab"),u=n("907d"),d=n("f5ee"),f=n("d75c"),h=n("68d2"),p=f("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=h>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},_=!v||!y;r({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],b(o)){if(i=l(o.length),f+i>m)throw TypeError(g);for(n=0;n<i;n++,f++)n in o&&c(d,f,o[n])}else{if(f>=m)throw TypeError(g);c(d,f++,o)}return d.length=f,d}})},"46f0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"设备id"}},[n("a-input",{attrs:{placeholder:"请输入设备id"},model:{value:e.queryParam.deviceId,callback:function(t){e.$set(e.queryParam,"deviceId",t)},expression:"queryParam.deviceId"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"设备名称"}},[n("a-input",{attrs:{placeholder:"请输入设备名称"},model:{value:e.queryParam.deviceName,callback:function(t){e.$set(e.queryParam,"deviceName",t)},expression:"queryParam.deviceName"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"设备完整区域路径"}},[n("a-input",{attrs:{placeholder:"请输入设备完整区域路径"},model:{value:e.queryParam.path,callback:function(t){e.$set(e.queryParam,"path",t)},expression:"queryParam.path"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"设备地址"}},[n("a-input",{attrs:{placeholder:"请输入设备地址"},model:{value:e.queryParam.addr,callback:function(t){e.$set(e.queryParam,"addr",t)},expression:"queryParam.addr"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"安装地址"}},[n("a-input",{attrs:{placeholder:"请输入安装地址"},model:{value:e.queryParam.location,callback:function(t){e.$set(e.queryParam,"location",t)},expression:"queryParam.location"}})],1)],1)]:e._e(),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),n("a",{staticStyle:{"margin-left":"8px"},on:{click:e.handleToggleSearch}},[e._v("\n              "+e._s(e.toggleSearchStatus?"收起":"展开")+"\n              "),n("a-icon",{attrs:{type:e.toggleSearchStatus?"up":"down"}})],1)],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("烟感设备")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("smokeDevice-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("9b7d"),a=n("b65a"),s={name:"SmokeDeviceList",mixins:[a["a"]],components:{SmokeDeviceModal:o["default"]},data:function(){return{description:"烟感设备管理页面",columns:[{title:"序号",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"设备名称",align:"center",dataIndex:"deviceName"},{title:"设备地址",align:"center",dataIndex:"addr"},{title:"安装地址",align:"center",dataIndex:"location"},{title:"设备状态:",align:"center",dataIndex:"deviceState"},{title:"最高告警等级",align:"center",dataIndex:"alarmState"},{title:"所属单位名称",align:"center",dataIndex:"coName"},{title:"是否失联",align:"center",dataIndex:"lost"},{title:"烟感编号",align:"center",dataIndex:"smokeNo"},{title:"第一联系人",align:"center",dataIndex:"property"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/emergency.base.support.biz.smoke/smokeDevice/list",delete:"/emergency.base.support.biz.smoke/smokeDevice/delete",deleteBatch:"/emergency.base.support.biz.smoke/smokeDevice/deleteBatch",exportXlsUrl:"emergency.base.support.biz.smoke/smokeDevice/exportXls",importExcelUrl:"emergency.base.support.biz.smoke/smokeDevice/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"5fd99479",null);t["default"]=u.exports},4772:function(e,t,n){},"47e7":function(e,t,n){"use strict";n("8a1b")},"47ef":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("e1bd").filter,o=n("f5ee"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"480c":function(e,t,n){"use strict";var r=n("1af9"),i={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},o=n("38f3"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t){var n=this,r=t||{},i=Object(o["a"])({},r);return delete i.preload,delete i.useInterimTilesOnError,n=e.call(this,i)||this,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return a(t,e),t.prototype.getPreload=function(){return this.get(i.PRELOAD)},t.prototype.setPreload=function(e){this.set(i.PRELOAD,e)},t.prototype.getUseInterimTilesOnError=function(){return this.get(i.USE_INTERIM_TILES_ON_ERROR)},t.prototype.setUseInterimTilesOnError=function(e){this.set(i.USE_INTERIM_TILES_ON_ERROR,e)},t}(r["a"]),l=s,c=n("137e"),u=n("dc07"),d=n("acc1"),f=n("a896"),h=n("0af5"),p=n("ddea"),m=n("256f"),g=n("1300"),v=n("9f5e"),y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(e){function t(t){var n=e.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(h["j"])(),n.tmpTileRange_=new u["b"](0,0,0,0),n}return y(t,e),t.prototype.isDrawableTile=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return n==d["a"].LOADED||n==d["a"].EMPTY||n==d["a"].ERROR&&!r},t.prototype.getTile=function(e,t,n,r){var i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),s=a.getSource(),l=s.getTile(e,t,n,i,o);return l.getState()==d["a"].ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):l.setState(d["a"].LOADED)),this.isDrawableTile(l)||(l=l.getInterimTile()),l},t.prototype.loadedTileCallback=function(t,n,r){return!!this.isDrawableTile(r)&&e.prototype.loadedTileCallback.call(this,t,n,r)},t.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(e,t){var n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,a=r.resolution,s=r.center,l=r.rotation,c=e.pixelRatio,u=this.getLayer(),y=u.getSource(),b=y.getRevision(),_=y.getTileGridForProjection(i),w=_.getZForResolution(a,y.zDirection),x=_.getResolution(w),S=e.extent,C=n.extent&&Object(m["e"])(n.extent,i);C&&(S=Object(h["B"])(S,Object(m["e"])(n.extent,i)));var E=y.getTilePixelRatio(c),k=Math.round(e.size[0]*E),O=Math.round(e.size[1]*E);if(l){var T=Math.round(Math.sqrt(k*k+O*O));k=T,O=T}var I=x*k/2/E,A=x*O/2/E,R=[s[0]-I,s[1]-A,s[0]+I,s[1]+A],P=_.getTileRangeForExtentAndZ(S,w),M={};M[w]={};var N=this.createLoadedTileFinder(y,i,M),L=this.tmpExtent,D=this.tmpTileRange_;this.newTiles_=!1;for(var j=P.minX;j<=P.maxX;++j)for(var F=P.minY;F<=P.maxY;++F){var B=this.getTile(w,j,F,e);if(this.isDrawableTile(B)){var q=Object(g["c"])(this);if(B.getState()==d["a"].LOADED){M[w][B.tileCoord.toString()]=B;var z=B.inTransition(q);this.newTiles_||!z&&-1!==this.renderedTiles.indexOf(B)||(this.newTiles_=!0)}if(1===B.getAlpha(q,e.time))continue}var U=_.getTileCoordChildTileRange(B.tileCoord,D,L),G=!1;U&&(G=N(w+1,U)),G||_.forEachTileCoordParentTileRange(B.tileCoord,N,D,L)}var V=x/a;Object(f["b"])(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/E,1/E,l,-k/2,-O/2);var W=Object(p["b"])(this.pixelTransform);this.useContainer(t,W,n.opacity);var H=this.context,$=H.canvas;Object(f["d"])(this.inversePixelTransform,this.pixelTransform),Object(f["b"])(this.tempTransform,k/2,O/2,V,V,0,-k/2,-O/2),$.width!=k||$.height!=O?($.width=k,$.height=O):this.containerReused||H.clearRect(0,0,k,O),C&&this.clipUnrotated(H,e,C),Object(o["a"])(H,y.getContextOptions()),this.preRender(H,e),this.renderedTiles.length=0;var K,X,Y,J=Object.keys(M).map(Number);J.sort(v["g"]),1!==n.opacity||this.containerReused&&!y.getOpaque(e.viewState.projection)?(K=[],X=[]):J=J.reverse();for(var Q=J.length-1;Q>=0;--Q){var Z=J[Q],ee=y.getTilePixelSize(Z,c,i),te=_.getResolution(Z),ne=te/x,re=ee[0]*ne*V,ie=ee[1]*ne*V,oe=_.getTileCoordForCoordAndZ(Object(h["C"])(R),Z),ae=_.getTileCoordExtent(oe),se=Object(f["a"])(this.tempTransform,[E*(ae[0]-R[0])/x,E*(R[3]-ae[3])/x]),le=E*y.getGutterForProjection(i),ce=M[Z];for(var ue in ce){B=ce[ue];var de=B.tileCoord,fe=se[0]-(oe[1]-de[1])*re,he=Math.round(fe+re),pe=se[1]-(oe[2]-de[2])*ie,me=Math.round(pe+ie),ge=(j=Math.round(fe),F=Math.round(pe),he-j),ve=me-F,ye=w===Z;z=ye&&1!==B.getAlpha(Object(g["c"])(this),e.time);if(!z)if(K){H.save(),Y=[j,F,j+ge,F,j+ge,F+ve,j,F+ve];for(var be=0,_e=K.length;be<_e;++be)if(w!==Z&&Z<X[be]){var we=K[be];H.beginPath(),H.moveTo(Y[0],Y[1]),H.lineTo(Y[2],Y[3]),H.lineTo(Y[4],Y[5]),H.lineTo(Y[6],Y[7]),H.moveTo(we[6],we[7]),H.lineTo(we[4],we[5]),H.lineTo(we[2],we[3]),H.lineTo(we[0],we[1]),H.clip()}K.push(Y),X.push(Z)}else H.clearRect(j,F,ge,ve);this.drawTileImage(B,e,j,F,ge,ve,le,ye,n.opacity),K&&!z&&H.restore(),this.renderedTiles.push(B),this.updateUsedTiles(e.usedTiles,y,B)}}return this.renderedRevision=b,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!Object(h["p"])(this.renderedExtent_,R),this.renderedExtent_=R,this.renderedPixelRatio=c,this.renderedProjection=i,this.manageTilePyramid(e,y,_,c,i,S,w,u.getPreload()),this.scheduleExpireCache(e,y),this.postRender(H,e),n.extent&&H.restore(),W!==$.style.transform&&($.style.transform=W),this.container},t.prototype.drawTileImage=function(e,t,n,r,i,o,a,s,l){var c=this.getTileImage(e);if(c){var u=Object(g["c"])(this),d=s?e.getAlpha(u,t.time):1,f=l*d,h=f!==this.context.globalAlpha;h&&(this.context.save(),this.context.globalAlpha=f),this.context.drawImage(c,a,a,c.width-2*a,c.height-2*a,n,r,i,o),h&&this.context.restore(),1!==d?t.animate=!0:s&&e.endTransition(u)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getTileImage=function(e){return e.getImage()},t.prototype.scheduleExpireCache=function(e,t){if(t.canExpireCache()){var n=function(e,t,n){var r=Object(g["c"])(e);r in n.usedTiles&&e.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,t);e.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(e,t,n){var r=Object(g["c"])(t);r in e||(e[r]={}),e[r][n.getKey()]=!0},t.prototype.manageTilePyramid=function(e,t,n,r,i,o,a,s,l){var c=Object(g["c"])(t);c in e.wantedTiles||(e.wantedTiles[c]={});var u,f,h,p,m,v,y=e.wantedTiles[c],b=e.tileQueue,_=n.getMinZoom(),w=0;for(v=_;v<=a;++v)for(f=n.getTileRangeForExtentAndZ(o,v,f),h=n.getResolution(v),p=f.minX;p<=f.maxX;++p)for(m=f.minY;m<=f.maxY;++m)a-v<=s?(++w,u=t.getTile(v,p,m,r,i),u.getState()==d["a"].IDLE&&(y[u.getKey()]=!0,b.isKeyQueued(u.getKey())||b.enqueue([u,c,n.getTileCoordCenter(u.tileCoord),h])),void 0!==l&&l(u)):t.useTile(v,p,m,i);t.updateCacheSize(w,i)},t}(c["a"]);b.prototype.getLayer;var _=b,w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(e){function t(t){return e.call(this,t)||this}return w(t,e),t.prototype.createRenderer=function(){return new _(this)},t}(l);t["a"]=x},"480d":function(e,t,n){"use strict";n("3b7e")},4842:function(e,t,n){},4867:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"表名"}},[n("a-input",{attrs:{placeholder:"请输入表名"},model:{value:e.queryParam.dataTable,callback:function(t){e.$set(e.queryParam,"dataTable",t)},expression:"queryParam.dataTable"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"数据ID"}},[n("a-input",{attrs:{placeholder:"请输入ID"},model:{value:e.queryParam.dataId,callback:function(t){e.$set(e.queryParam,"dataId",t)},expression:"queryParam.dataId"}})],1)],1),n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-button",{attrs:{type:"primary"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(t){return e.handleCompare()}}},[e._v("数据比较")])],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项  \n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"dataContent",fn:function(e,t){return n("span",{},[n("j-ellipsis",{attrs:{value:e,length:80}})],1)}}])})],1),n("data-log-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("b4690"),a=n("b65a"),s=n("d579"),l={name:"DataLogList",mixins:[a["a"]],components:{JEllipsis:s["default"],DataLogModal:o["default"]},data:function(){return{description:"数据日志管理页面",columns:[{title:"表名",align:"center",dataIndex:"dataTable"},{title:"数据ID",align:"center",dataIndex:"dataId"},{title:"版本号",align:"center",dataIndex:"dataVersion"},{title:"数据内容",align:"center",dataIndex:"dataContent",width:"120px",scopedSlots:{customRender:"dataContent"}},{title:"创建人",align:"center",dataIndex:"createBy"}],url:{list:"/sys/dataLog/list"}}},methods:{handleCompare:function(){return this.selectionRows&&2==this.selectionRows.length?this.selectionRows[0].dataId!=this.selectionRows[1].dataId?(this.openNotifIcon("请选择相同的数据库表和数据ID进行比较"),!1):(this.$refs.modalForm.addModal(this.selectionRows),void(this.$refs.modalForm.title="数据比较")):(this.openNotifIcon("请选择两条数据"),!1)},openNotifIcon:function(e){this.$notification["warning"]({message:"提示信息",description:e})}}},c=l,u=(n("b8a2"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"3d073d3c",null);t["default"]=d.exports},4874:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{"min-width":"800px","overflow-x":"auto"},attrs:{title:"树形结构图片翻页查看"}},[n("a-row",[n("a-col",{attrs:{span:5}},[n("a-tree",{style:{height:"500px","border-right":"2px solid #c1c1c1","overflow-y":"auto"},attrs:{showLine:"",treeData:e.treeData,expandedKeys:[e.expandedKeys[0]],selectedKeys:e.selectedKeys},on:{expand:e.onExpand,select:this.onSelect}})],1),n("a-col",{attrs:{span:19}},[n("a-row",{staticStyle:{"margin-top":"10px"}},[n("a-col",{staticStyle:{"padding-left":"2%","margin-bottom":"10px"},attrs:{span:24}},[n("a-button",{attrs:{type:"primary"},on:{click:e.prev}},[n("a-icon",{attrs:{type:"left"}}),e._v("上一页")],1),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary"},on:{click:e.next}},[e._v("下一页"),n("a-icon",{attrs:{type:"right"}})],1),n("span",{staticStyle:{"margin-left":"15%","font-weight":"bolder"}},[e._v(e._s(e.navName))])],1),n("a-col",{staticStyle:{"padding-left":"2%"},attrs:{span:24}},[n("img",{attrs:{src:e.imgUrl,preview:""}})])],1)],1)],1)],1)},i=[],o=(n("55dd"),n("b76a")),a=n.n(o),s={name:"ImgTurnPage",components:{draggable:a.a},data:function(){return{description:"图片翻页",treeData:[{title:"第一页",key:"0-0",children:[{title:"1页",key:"0-0-0",imgUrl:"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2735633715,2749454924&fm=27&gp=0.jpg"},{title:"2页",key:"0-0-1",imgUrl:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3967239004,1951414302&fm=27&gp=0.jpg"}]},{title:"第二页",key:"0-1",children:[{title:"1页",key:"0-1-0",imgUrl:"https://ss0.bdstatic.com/6Ox1bjeh1BF3odCf/it/u=3660968530,985748925&fm=191&app=48&size=h300&n=0&g=4n&f=JPEG?sec=1853310920&t=5e64af964be378c6c2a3b0acc65dfe24"},{title:"2页",key:"0-1-1",imgUrl:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=889120611,3801177793&fm=27&gp=0.jpg"}]},{title:"第三页",key:"0-2",children:[{title:"1页",key:"0-2-0",imgUrl:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2445468140,2491956848&fm=27&gp=0.jpg"}]}],selectedKeys:[],expandedKeys:[],sort:0,imgUrl:"",navName:"",imgList:[]}},created:function(){this.getImgList()},methods:{getImgList:function(){for(var e=0,t=0;t<this.treeData.length;t++)for(var n=0;n<this.treeData[t].children.length;n++)this.imgList.push({key:this.treeData[t].children[n].key,pkey:this.treeData[t].key,sort:e++,imgUrl:this.treeData[t].children[n].imgUrl,navName:this.treeData[t].title+"/"+this.treeData[t].children[n].title});this.setValue(this.imgList[this.sort])},onSelect:function(e,t){for(var n=0;n<this.imgList.length;n++)if(this.imgList[n].key===e[0]){this.sort=this.imgList[n].sort,this.setValue(this.imgList[n]);break}},onExpand:function(e){this.expandedKeys=[],null!==e&&""!==e&&(this.expandedKeys[0]=e[1])},prev:function(){0===this.sort?this.sort=this.imgList.length-1:this.sort=this.sort-1,this.setValue(this.imgList[this.sort])},next:function(){this.sort===this.imgList.length-1?this.sort=0:this.sort=this.sort+1,this.setValue(this.imgList[this.sort])},setValue:function(e){this.selectedKeys=[],this.imgUrl=e.imgUrl,this.selectedKeys[0]=e.key,this.expandedKeys[0]=e.pkey,this.navName=e.navName}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"bf90459c",null);t["default"]=u.exports},"487a":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e="@@InfiniteScroll",t=function(e,t){var n,r,i,o,a,s=function(){e.apply(o,a),r=n};return function(){if(o=this,a=arguments,n=Date.now(),i&&(clearTimeout(i),i=null),r){var e=t-(n-r);e<0?s():i=setTimeout((function(){s()}),e)}else s()}},n=function(e){return e===window?Math.max(window.pageYOffset||0,document.documentElement.scrollTop):e.scrollTop},r=document.defaultView.getComputedStyle,i=function(e){var t=e;while(t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&1===t.nodeType){var n=r(t).overflowY;if("scroll"===n||"auto"===n)return t;t=t.parentNode}return window},o=function(e){return e===window?document.documentElement.clientHeight:e.clientHeight},a=function(e){return e===window?n(window):e.getBoundingClientRect().top+n(window)},s=function(e){var t=e.parentNode;while(t){if("HTML"===t.tagName)return!0;if(11===t.nodeType)return!1;t=t.parentNode}return!1},l=function(){if(!this.binded){this.binded=!0;var e=this,n=e.el,r=n.getAttribute("infinite-scroll-throttle-delay"),o=200;r&&(o=Number(e.vm[r]||r),(isNaN(o)||o<0)&&(o=200)),e.throttleDelay=o,e.scrollEventTarget=i(n),e.scrollListener=t(c.bind(e),e.throttleDelay),e.scrollEventTarget.addEventListener("scroll",e.scrollListener),this.vm.$on("hook:beforeDestroy",(function(){e.scrollEventTarget.removeEventListener("scroll",e.scrollListener)}));var a=n.getAttribute("infinite-scroll-disabled"),s=!1;a&&(this.vm.$watch(a,(function(t){e.disabled=t,!t&&e.immediateCheck&&c.call(e)})),s=Boolean(e.vm[a])),e.disabled=s;var l=n.getAttribute("infinite-scroll-distance"),u=0;l&&(u=Number(e.vm[l]||l),isNaN(u)&&(u=0)),e.distance=u;var d=n.getAttribute("infinite-scroll-immediate-check"),f=!0;d&&(f=Boolean(e.vm[d])),e.immediateCheck=f,f&&c.call(e);var h=n.getAttribute("infinite-scroll-listen-for-event");h&&e.vm.$on(h,(function(){c.call(e)}))}},c=function(e){var t=this.scrollEventTarget,r=this.el,i=this.distance;if(!0===e||!this.disabled){var s=n(t),l=s+o(t),c=!1;if(t===r)c=t.scrollHeight-l<=i;else{var u=a(r)-a(t)+r.offsetHeight+s;c=l+i>=u}c&&this.expression&&this.expression()}},u={bind:function(t,n,r){t[e]={el:t,vm:r.context,expression:n.value};var i=arguments;t[e].vm.$on("hook:mounted",(function(){t[e].vm.$nextTick((function(){s(t)&&l.call(t[e],i),t[e].bindTryCount=0;var n=function n(){t[e].bindTryCount>10||(t[e].bindTryCount++,s(t)?l.call(t[e],i):setTimeout(n,50))};n()}))}))},unbind:function(t){t&&t[e]&&t[e].scrollEventTarget&&t[e].scrollEventTarget.removeEventListener("scroll",t[e].scrollListener)}},d=function(e){e.directive("InfiniteScroll",u)};return window.Vue&&(window.infiniteScroll=u,Vue.use(d)),u.install=d,u}))},"489a":function(e,t,n){"use strict";n("5c70")},"48f7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-skeleton",{attrs:{active:"",loading:e.loading,paragraph:{rows:17}}},[n("a-card",{attrs:{bordered:!1}},[n("a-alert",{attrs:{type:"info",showIcon:!0}},[n("div",{attrs:{slot:"message"},slot:"message"},[e._v("\n        上次更新时间:"+e._s(this.time)+"\n        "),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:e.handleClickUpdate}},[e._v("立即更新")])],1)]),n("a-table",{staticStyle:{"margin-top":"20px"},attrs:{rowKey:"id",size:"middle",columns:e.columns,dataSource:e.dataSource,pagination:!1,loading:e.tableLoading},scopedSlots:e._u([{key:"param",fn:function(t,r){return[n("a-tag",{attrs:{color:e.textInfo[r.param].color}},[e._v(e._s(t))])]}},{key:"text",fn:function(t,n){return[e._v("\n        "+e._s(e.textInfo[n.param].text)+"\n      ")]}},{key:"value",fn:function(t,n){return[e._v("\n        "+e._s(t)+" "+e._s(e.textInfo[n.param].unit)+"\n      ")]}}])})],1)],1)},i=[],o=(n("c5f6"),n("7f7f"),n("ac6a"),n("5df3"),n("c1df")),a=n.n(o),s=n("0fea");a.a.locale("zh-cn");var l={data:function(){return{time:"",loading:!0,tableLoading:!0,columns:[{title:"参数",width:"30%",dataIndex:"param",scopedSlots:{customRender:"param"}},{title:"描述",width:"40%",dataIndex:"text",scopedSlots:{customRender:"text"}},{title:"当前值",width:"30%",dataIndex:"value",scopedSlots:{customRender:"value"}}],dataSource:[],textInfo:{"system.cpu.count":{color:"green",text:"CPU 数量",unit:"核"},"system.cpu.usage":{color:"green",text:"系统 CPU 使用率",unit:"%"},"process.start.time":{color:"purple",text:"应用启动时间点",unit:""},"process.uptime":{color:"purple",text:"应用已运行时间",unit:"秒"},"process.cpu.usage":{color:"purple",text:"当前应用 CPU 使用率",unit:"%"}},moreInfo:{}}},mounted:function(){this.loadTomcatInfo()},methods:{handleClickUpdate:function(){this.loadTomcatInfo()},loadTomcatInfo:function(){var e=this;this.tableLoading=!0,this.time=a()().format("YYYY年MM月DD日 HH时mm分ss秒"),Promise.all([Object(s["d"])("actuator/metrics/system.cpu.count"),Object(s["d"])("actuator/metrics/system.cpu.usage"),Object(s["d"])("actuator/metrics/process.start.time"),Object(s["d"])("actuator/metrics/process.uptime"),Object(s["d"])("actuator/metrics/process.cpu.usage")]).then((function(t){var n=[];t.forEach((function(t,r){var i=e.moreInfo[t.name];i instanceof Array||(i=[""]),i.forEach((function(i,o){var a=t.name+i,s=t.measurements[o].value;"system.cpu.usage"!==a&&"process.cpu.usage"!==a||(s=e.convert(s,Number)),"process.start.time"===a&&(s=e.convert(s,Date)),n.push({id:a+r,param:a,text:"false value",value:s})}))})),e.dataSource=n})).catch((function(t){console.error(t),e.$message.error("获取服务器信息失败")})).finally((function(){e.loading=!1,e.tableLoading=!1}))},convert:function(e,t){return t===Number?Number(100*e).toFixed(2):t===Date?a()(1e3*e).format("YYYY-MM-DD HH:mm:ss"):e}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},"493f":function(e,t,n){var r=n("68da"),i=n("3144"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"496f":function(e,t,n){"use strict";t["a"]={ANIMATING:0,INTERACTING:1}},"49a2":function(e,t,n){},"49a9":function(e,t,n){"use strict";n("d171")},"49ad":function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}function r(n,r){var i=e.get(n);t[i]||(t[i]=[]),t[i].push(r)}function i(e,t){for(var r=n(e),i=0,o=r.length;i<o;++i)if(r[i]===t){r.splice(i,1);break}}function o(e){var t=n(e);t&&(t.length=0)}return{get:n,add:r,removeListener:i,removeAllListeners:o}}},"4a0f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{centered:"",title:e.title,width:1e3,visible:e.visible,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:10}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{span:10}},[n("a-form-item",{attrs:{label:"视频类型"}},[n("a-input",{attrs:{placeholder:"请输入视频类型"},model:{value:e.queryParam.datatype,callback:function(t){e.$set(e.queryParam,"datatype",t)},expression:"queryParam.datatype"}})],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"地区"}},[n("a-cascader",{attrs:{options:e.citydata,expandTrigger:"hover",placeholder:"请选择地区",changeOnSelect:""},on:{change:e.onChange},model:{value:e.showDefaultParams,callback:function(t){e.showDefaultParams=t},expression:"showDefaultParams"}})],1)],1),n("a-col",{attrs:{span:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",[n("a-table",{attrs:{size:"small",bordered:"",rowKey:"smid",columns:e.columns1,dataSource:e.dataSource1,pagination:e.ipagination,loading:e.loading,scroll:{y:240},rowSelection:{selectedRowKeys:e.selectedRowKeys,onSelectAll:e.onSelectAll,onSelect:e.onSelect,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)])],1)},i=[],o=(n("ac6a"),n("456d"),n("ca00")),a=n("0fea"),s=n("4ec3"),l=n("d9be"),c={components:{city_child:l["default"],saveVideos:s["ob"]},name:"SelectWlVideoModal",data:function(){return{title:"添加已有物联视频",names:[],visible:!1,placement:"right",description:"",entity:{},queryParam:{},columns1:[{title:"名称",align:"center",width:113,dataIndex:"name"},{title:"视频类型",align:"center",width:100,dataIndex:"datatype"}],columns2:[{title:"名称",align:"center",width:113,dataIndex:"name"},{title:"视频类型",align:"center",width:100,dataIndex:"datatype"},{title:"操作",dataIndex:"action",align:"center",width:100,scopedSlots:{customRender:"action"}}],dataSource1:[],dataSource2:[],ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},recordId:"",loading:!1,selectedRowKeys:[],selectedRows:[],url:{list:"/wlgz_video/wlgzVideo/pageList"},citydata:[],showDefaultParams:[]}},created:function(){var e=this,t="/city/queryStreetsWithDistrict";Object(a["d"])(t,{}).then((function(t){t.success&&(e.citydata=t.result)})),this.initp(),this.loadData()},watch:{record_p:{handler:function(e,t){this.recordId=e},deep:!0},selectedRowKeys_p:{handler:function(e,t){this.selectedRowKeys=e},deep:!0},selectedRows_p:{handler:function(e,t){this.selectedRows=e,this.dataSource2=e},deep:!0}},methods:{onChange:function(e){console.log(e),this.queryParam.districtCode=e[0],this.queryParam.streetCode=e[1]},initp:function(){this.recordId=this.record_p,this.selectedRowKeys=this.selectedRowKeys_p,this.selectedRows=this.selectedRows_p,this.dataSource2=this.selectedRows,console.log(this.selectedRowKeys)},searchQuery:function(){this.loadData(1)},searchReset:function(){this.queryParam={},this.loadData(1)},handleCancel:function(){this.visible=!1},handleOk:function(){var e=this;this.dataSource2=this.selectedRows,this.entity.list=this.dataSource2,this.entity.id=this.recordId,this.entity.smids=this.selectedRowKeys,console.log(this.entity),this.$emit("selectFinished",this.dataSource2),Object(s["ob"])(this.entity).then((function(t){e.videoIds=t.result})),this.visible=!1},add:function(){this.visible=!0},loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["d"])(this.url.list,n).then((function(e){e&&(t.dataSource1=e.result.records,t.ipagination.total=e.result.total)}))},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){},onSelectAll:function(e,t,n){if(!0===e)for(var r=0;r<n.length;r++)this.dataSource2.push(n[r]);else for(var i=0;i<n.length;i++)this.dataSource2.splice(this.getArrayIndexById(this.dataSource2,n[i].smid),1)},onSelect:function(e,t){if(!0===t)this.dataSource2.push(e),console.log(this.dataSource2);else{var n=this.getArrayIndexById(this.dataSource2,e.smid);n>=0&&this.dataSource2.splice(n,1)}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},handleDelete:function(e){this.dataSource2.splice(this.getArrayIndexById(this.dataSource2,e.smid),1)},handleTableChange:function(e,t,n){console.log(n),Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()},getArrayIndexById:function(e,t){for(var n=0;n<e.length;n++)if(e[n].smid==t)return n}},props:["selectedRowKeys_p","selectedRows_p","record_p"]},u=c,d=(n("8c72"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"8ef26806",null);t["default"]=f.exports},"4a1a":function(e,t,n){},"4a1c":function(e,t,n){"use strict";n("831f")},"4a2b":function(e,t,n){"use strict";n("196d")},"4a43":function(e,t){e.exports={}},"4a75":function(e,t,n){},"4a7d":function(e,t,n){"use strict";var r=n("25a5"),i=n.n(r),o=n("0af5"),a=n("1300"),s=n("38f3"),l=function(){function e(e){this.rbush_=new i.a(e),this.items_={}}return e.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Object(a["c"])(t)]=n},e.prototype.load=function(e,t){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++){var o=e[r],s=t[r],l={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};n[r]=l,this.items_[Object(a["c"])(s)]=l}this.rbush_.load(n)},e.prototype.remove=function(e){var t=Object(a["c"])(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)},e.prototype.update=function(e,t){var n=this.items_[Object(a["c"])(t)],r=[n.minX,n.minY,n.maxX,n.maxY];Object(o["p"])(r,e)||(this.remove(t),this.insert(e,t))},e.prototype.getAll=function(){var e=this.rbush_.all();return e.map((function(e){return e.value}))},e.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]},n=this.rbush_.search(t);return n.map((function(e){return e.value}))},e.prototype.forEach=function(e){return this.forEach_(this.getAll(),e)},e.prototype.forEachInExtent=function(e,t){return this.forEach_(this.getInExtent(e),t)},e.prototype.forEach_=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if(n=t(e[r]),n)return n;return n},e.prototype.isEmpty=function(){return Object(s["d"])(this.items_)},e.prototype.clear=function(){this.rbush_.clear(),this.items_={}},e.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return Object(o["k"])(t.minX,t.minY,t.maxX,t.maxY,e)},e.prototype.concat=function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]},e}();t["a"]=l},"4b0b":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"4b5c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"菜单名称"}},[n("a-input",{attrs:{placeholder:"请输入菜单名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"区域"}},[n("a-input",{attrs:{placeholder:"请输入区域"},model:{value:e.queryParam.district,callback:function(t){e.$set(e.queryParam,"district",t)},expression:"queryParam.district"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"区域code"}},[n("a-input",{attrs:{placeholder:"请输入区域code"},model:{value:e.queryParam.districtCode,callback:function(t){e.$set(e.queryParam,"districtCode",t)},expression:"queryParam.districtCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"菜单url"}},[n("a-input",{attrs:{placeholder:"请输入菜单url"},model:{value:e.queryParam.url,callback:function(t){e.$set(e.queryParam,"url",t)},expression:"queryParam.url"}})],1)],1)]:e._e(),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{attrs:{columns:e.columns,size:"middle",pagination:!1,dataSource:e.dataSource,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{on:{click:function(t){return e.handlePerssion(r.id)}}},[e._v("区县授权")])]),n("a-menu-item",[n("a",{on:{click:function(t){return e.handleHidePerssion(r.id)}}},[e._v("区县隐藏授权")])]),n("a-menu-item",[n("a",{on:{click:function(t){return e.showNodes(r.id)}}},[e._v("新增子菜单")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("mainMenu-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("district-modal",{ref:"modalUserRole"}),n("district-modal2",{ref:"modalUserRoleHide"})],1)},i=[],o=n("f388"),a=n("b65a"),s=n("65bd"),l=n("c594"),c=n("0fea"),u={name:"MainMenuList",mixins:[a["a"]],components:{MainMenuModal:o["default"],DistrictModal:s["default"],DistrictModal2:l["default"]},data:function(){return{description:"菜单 表管理页面",columns:[{title:"菜单名称",dataIndex:"name",key:"name"},{title:"菜单url",align:"center",dataIndex:"url",width:"50%"},{title:"备注",align:"center",dataIndex:"remark",width:"20%"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"},width:"10%"}],url:{list:"/main_menu/mainMenu/list",delete:"/main_menu/mainMenu/delete",deleteBatch:"/main_menu/mainMenu/deleteBatch",exportXlsUrl:"main_menu/mainMenu/exportXls",importExcelUrl:"main_menu/mainMenu/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{loadData:function(){var e=this;this.dataSource=[],Object(c["d"])(this.url.list,this.queryParam).then((function(t){t.success&&(e.dataSource=t.result,console.log(t))}))},handlePerssion:function(e){this.$refs.modalUserRole.show(e)},handleHidePerssion:function(e){this.$refs.modalUserRoleHide.show(e)},showNodes:function(e){this.$refs.modalForm.show(e)}}},d=u,f=(n("c664"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"caf0b8b8",null);t["default"]=h.exports},"4b76":function(e,t,n){var r=n("2ace"),i=n("b0d2"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"4ba6":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return"function"===typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(a,l){var c,u,d=a.indentUnit,f=l.statementIndentUnit||d,h=l.dontAlignCalls,p=l.keywords||{},m=l.types||{},g=l.builtin||{},v=l.blockKeywords||{},y=l.defKeywords||{},b=l.atoms||{},_=l.hooks||{},w=l.multiLineStrings,x=!1!==l.indentStatements,S=!1!==l.indentSwitch,C=l.namespaceSeparator,E=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,k=l.numberStart||/[\d\.]/,O=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,T=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,I=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,A=l.isReservedIdentifier||!1;function R(e,t){var n=e.next();if(_[n]){var r=_[n](e,t);if(!1!==r)return r}if('"'==n||"'"==n)return t.tokenize=P(n),t.tokenize(e,t);if(k.test(n)){if(e.backUp(1),e.match(O))return"number";e.next()}if(E.test(n))return c=n,null;if("/"==n){if(e.eat("*"))return t.tokenize=M,M(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(T.test(n)){while(!e.match(/^\/[\/*]/,!1)&&e.eat(T));return"operator"}if(e.eatWhile(I),C)while(e.match(C))e.eatWhile(I);var i=e.current();return s(p,i)?(s(v,i)&&(c="newstatement"),s(y,i)&&(u=!0),"keyword"):s(m,i)?"type":s(g,i)||A&&A(i)?(s(v,i)&&(c="newstatement"),"builtin"):s(b,i)?"atom":"variable"}function P(e){return function(t,n){var r,i=!1,o=!1;while(null!=(r=t.next())){if(r==e&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!w)&&(n.tokenize=null),"string"}}function M(e,t){var n,r=!1;while(n=e.next()){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function N(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return N(e,t),null;c=u=null;var s=(t.tokenize||R)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))while("statement"==t.context.type)r(t);else if("{"==c)n(t,e.column(),"}");else if("["==c)n(t,e.column(),"]");else if("("==c)n(t,e.column(),")");else if("}"==c){while("statement"==a.type)a=r(t);"}"==a.type&&(a=r(t));while("statement"==a.type)a=r(t)}else c==a.type?r(t):x&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),_.token){var d=_.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=u?"def":s||c,N(e,t),s},indent:function(t,n){if(t.tokenize!=R&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,i=n&&n.charAt(0),o=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)while("statement"==r.type&&l.dontIndentStatements.test(r.info))r=r.prev;if(_.indent){var a=_.indent(t,r,n,d);if("number"==typeof a)return a}var s=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){while("top"!=r.type&&"}"!=r.type)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:f):!r.align||h&&")"==r.type?")"!=r.type||o?r.indented+(o?0:d)+(o||!s||/^(?:case|default)\b/.test(n)?0:d):r.indented+f:r.column+(o?0:1)},electricInput:S?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",u="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION  NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=a("int long char short double float unsigned signed void bool"),h=a("SEL instancetype id Class Protocol BOOL");function p(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return p(e)||s(h,e)}var g="case do else for if switch while struct enum union",v="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=y;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function b(e,t){return"type"==t.prevToken&&"type"}function _(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function w(e){return e.eatWhile(/[\w\.']/),"number"}function x(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=E,E(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function S(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function C(e,t){var n;while(null!=(n=e.next()))if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function E(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),r=e.match(new RegExp(".*?\\)"+n+'"'));return r?t.tokenize=null:e.skipToEnd(),"string"}function k(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function O(e,t){var n=!1;while(!e.eol()){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function T(e){return function(t,n){var r;while(r=t.next()){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=T(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=T(e+1),n.tokenize(t,n)}return"comment"}}function I(e){return function(t,n){var r,i=!1,o=!1;while(!t.eol()){if(!e&&!i&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!e}return!o&&e||(n.tokenize=null),"string"}}k(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:p,blockKeywords:a(g),defKeywords:a(v),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:_,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),k(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" "+c),types:p,blockKeywords:a(g+" class try catch"),defKeywords:a(v+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:_,hooks:{"#":y,"*":b,u:x,U:x,L:x,R:x,0:w,1:w,2:w,3:w,4:w,5:w,6:w,7:w,8:w,9:w,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&S(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),k("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),k("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=C,C(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),k("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=O,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),k("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=I(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),k(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),k("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:p,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),k("text/x-objectivec",{name:"clike",keywords:a(l+" "+u),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(v+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:_,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),k("text/x-objectivec++",{name:"clike",keywords:a(l+" "+u+" "+c),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(v+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:_,hooks:{"#":y,"*":b,u:x,U:x,L:x,R:x,0:w,1:w,2:w,3:w,4:w,5:w,6:w,7:w,8:w,9:w,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&S(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),k("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:p,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var A=null;function R(e){return function(t,n){var r,i=!1,o=!1;while(!t.eol()){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){A=R(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}k("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=R(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!A||!e.match("`"))&&(t.tokenize=A,A=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}))},"4bba":function(e,t,n){},"4c87":function(e,t,n){e.exports={random:n("dc6a"),roundRobin:n("bde6")}},"4c9c":function(e,t,n){},"4cdf":function(e,t,n){"use strict";var r=n("e269"),i=n("01d4"),o=n("92fa5"),a=n("1e8d"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(t){var n=e.call(this)||this;if(n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addEventListener(Object(r["b"])(n.geometryName_),n.handleGeometryChanged_),t)if("function"===typeof t.getSimplifiedGeometry){var i=t;n.setGeometry(i)}else{var o=t;n.setProperties(o)}return n}return s(t,e),t.prototype.clone=function(){var e=new t(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&e.setGeometry(n.clone());var r=this.getStyle();return r&&e.setStyle(r),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(a["c"])(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=Object(a["a"])(e,i["a"].CHANGE,this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){this.style_=e,this.styleFunction_=e?c(e):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){this.removeEventListener(Object(r["b"])(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=e,this.addEventListener(Object(r["b"])(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},t}(r["a"]);function c(e){if("function"===typeof e)return e;var t;if(Array.isArray(e))t=e;else{Object(o["a"])("function"===typeof e.getZIndex,41);var n=e;t=[n]}return function(){return t}}t["a"]=l},"4ced":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-chart",{attrs:{forceFit:!0,height:e.height,width:e.width,data:e.data,scale:e.scale,padding:0}},[n("v-tooltip"),n("v-interval",{attrs:{shape:["liquid-fill-gauge"],position:"transfer*value",color:"","v-style":{lineWidth:8,opacity:.75},tooltip:["transfer*value",function(e,t){return{name:e,value:t}}]}}),e._l(e.data,(function(e,t){return n("v-guide",{key:t,attrs:{type:"text",top:!0,position:{gender:e.transfer,value:45},content:e.value+"%","v-style":{fontSize:100,textAlign:"center",opacity:.75}}})}))],2)],1)},i=[],o=(n("c5f6"),[{transfer:"一月",value:813},{transfer:"二月",value:233},{transfer:"三月",value:561}]),a={name:"Liquid",props:{height:{type:Number,default:0},width:{type:Number,default:0}},data:function(){return{data:o,scale:[]}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"383ba75c",null);t["default"]=c.exports},"4d1c":function(e,t,n){var r=n("5b1a"),i=n("4b0b"),o=n("cc58");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},"4d67":function(e,t,n){(function(t){e.exports=h;var r,i=n("0b16"),o=n("b383"),a=n("2ef0"),s=n("9eab"),l=/^([a-z]+:)?\/\//,c="http:";"undefined"!==typeof window&&"undefined"!==typeof window.location&&(c=window.location.protocol,r=window.btoa),r=r||function(e){return new t(e,"utf8").toString("base64")};var u=["protocol","hostname","pathname","port","auth","query"],d=["host","path"],f={pfx:null,key:null,passphrase:null,cert:null,ca:null,ciphers:null,rejectUnauthorized:!1,secureProtocol:null};function h(e,t){if(e=a.clone(e||{}),t=t||{},this.protocol="http",this.host="localhost",this.path="",this.port=9200,this.query=null,this.headers=null,this.suggestCompression=!!t.suggestCompression,this.ssl=a.defaults({},e.ssl||{},t.ssl||{},f),"string"===typeof e){var n=e.indexOf(":"),p=e.indexOf("/"),m=-1===p,g=n>-1&&m,v=!g&&n<p;if((m||g||v)&&!l.test(e)&&(e=c+"//"+e),e=a.pick(i.parse(e,!1,!0),u),!e.port){var y=e.protocol||"http";":"===y.charAt(y.length-1)&&(y=y.substring(0,y.length-1)),h.defaultPorts[y]&&(e.port=h.defaultPorts[y])}}a.isObject(e)?a.each(d,(function(t){var n=t+"name";e[n]&&e[t]?0===e[t].indexOf(e[n])&&(e[t]=e[n]):e[n]&&(e[t]=e[n]),delete e[n]})):e={},!e.auth&&t.httpAuth&&(e.auth=t.httpAuth),e.auth&&(e.headers=e.headers||{},e.headers.Authorization="Basic "+r(e.auth),delete e.auth),a.forOwn(e,a.bind((function(e,t){null!=e&&(this[t]=a.clone(e))}),this)),null===this.query?this.query={}:a.isPlainObject(this.query)||(this.query=o.parse(this.query)),s.isNumeric(this.port)?this.port=parseInt(this.port,10):this.port=9200,"/"===this.path?this.path="":this.path&&"/"!==this.path.charAt(0)&&(this.path="/"+(this.path||"")),":"===this.protocol.substr(-1)&&(this.protocol=this.protocol.substring(0,this.protocol.length-1))}function p(e,t){return function(n){t&&(n=t.call(this,n));var r=this[e];return r||n?(n&&(r=a.assign({},r,n)),a.size(r)?r:null):null}}h.defaultPorts={http:80,https:443},h.prototype.makeUrl=function(e){e=e||{};var t="";this.port!==h.defaultPorts[this.protocol]&&(t=":"+this.port);var n=""+(this.path||"")+(e.path||"");"/"!==n.charAt(0)&&(n="/"+n);var r=o.stringify(this.getQuery(e.query));return this.host?this.protocol+"://"+this.host+t+n+(r?"?"+r:""):n+(r?"?"+r:"")},h.prototype.getHeaders=p("headers",(function(e){return this.suggestCompression?a.defaults(e||{},{"Accept-Encoding":"gzip,deflate"}):e})),h.prototype.getQuery=p("query",(function(e){return"string"===typeof e?o.parse(e):e})),h.prototype.toString=function(){return this.makeUrl()}}).call(this,n("b639").Buffer)},"4d98":function(e,t,n){"use strict";function r(e,t,n,r){while(t<n-r){for(var i=0;i<r;++i){var o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function i(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(e,t,n,r,o){for(var a=void 0!==o&&o,s=0,l=n.length;s<l;++s){var c=n[s],u=i(e,t,c,r);if(0===s){if(a&&u||!a&&!u)return!1}else if(a&&!u||!a&&u)return!1;t=c}return!0}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];if(!o(e,t,l,r,i))return!1;l.length&&(t=l[l.length-1])}return!0}function s(e,t,n,o,a){for(var s=void 0!==a&&a,l=0,c=n.length;l<c;++l){var u=n[l],d=i(e,t,u,o),f=0===l?s&&d||!s&&!d:s&&!d||!s&&d;f&&r(e,t,u,o),t=u}return t}function l(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o)t=s(e,t,n[o],r,i);return t}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l}))},"4dbf":function(e,t,n){"use strict";n("fee9")},"4dc0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,okButtonProps:{props:{disabled:e.disableSubmit}},cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[e.editStatus?n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"楼层名称",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["floorName",{rules:[{required:!0,message:"请输入楼层名称!"}]}],expression:"['floorName', {rules: [{ required: true, message: '请输入楼层名称!' }]}]"}],attrs:{placeholder:"请输入楼层名称",readOnly:e.disableSubmit}})],1),n("a-form-item",{attrs:{label:"楼层图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-upload",{staticClass:"avatar-uploader",attrs:{listType:"picture-card",showUploadList:!1,action:e.uploadAction,data:{isup:1},headers:e.headers,beforeUpload:e.beforeUpload},on:{change:e.handleChange}},[e.picUrl?n("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:e.getAvatarView(),alt:"头像"}}):n("div",[n("a-icon",{attrs:{type:e.uploadLoading?"loading":"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v("上传")])],1)])],1)],1)],1):e._e()],1)},i=[],o=(n("3b2b"),n("0fea")),a=n("88bc"),s=n.n(a),l=n("2b0e"),c=n("9fb0"),u=n("e610"),d={name:"JeecgOrderCustomerModal",components:{JImageUpload:u["default"]},data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},columns:[{title:"楼层名称",align:"center",dataIndex:"floorName"},{title:"楼层图片",align:"center",dataIndex:"floorIcon"}],floorIcon:[],disableSubmit:!1,selectedRowKeys:[],enterpriseId:"",hiding:!1,picArray:[],previewVisible:!1,previewImage:"",addStatus:!1,editStatus:!1,confirmLoading:!1,form:this.$form.createForm(this),uploadLoading:!1,headers:{},picUrl:"",url:{add:"/yuanqu/enterprise/addFloor",edit:"/yuanqu/enterprise/editFloor",imgerver:window._CONFIG["domianURL"]+"/file/",fileUpload:"/sys/common/uploadImg",getOrderCustomerList:"/yuanqu/enterprise/listOrderCustomerByMainId"},validatorRules:{telphone:{rules:[{validator:this.validateMobile}]},idcard:{rules:[{validator:this.validateIdCard}]}}}},computed:{uploadAction:function(){return this.url.fileUpload}},created:function(){var e=l["default"].ls.get(c["a"]);this.headers={"X-Access-Token":e}},methods:{normFile:function(e){return console.log("Upload event:",e),Array.isArray(e)?e:e&&e.fileList},beforeUpload:function(e){var t=e.type;if(t.indexOf("image")<0)return this.$message.warning("请上传图片"),!1},handleChange:function(e){if(this.picUrl="","uploading"!==e.file.status){if("done"===e.file.status){var t=e.file.response;this.uploadLoading=!1,console.log(t),t.success?(this.model.floorIcon=t.message,this.picUrl="Has no pic url yet"):this.$message.warning(t.message)}}else this.uploadLoading=!0},getAvatarView:function(){return this.model.floorIcon},add:function(e){this.hiding=!0,e?(this.enterpriseId=e,this.edit({enterpriseId:e},"")):this.$message.warning("请选择一个企业信息")},detail:function(e){this.edit(e,"d")},edit:function(e,t){var n=this;console.log(e),""!=e.floorIcon&&(this.picUrl=e.floorIcon),"e"==t?(this.hiding=!1,this.disableSubmit=!1):"d"==t?(this.hiding=!1,this.disableSubmit=!0):(this.hiding=!0,this.disableSubmit=!1),this.form.resetFields(),this.enterpriseId=e.enterpriseId,this.model=Object.assign({},e),e.id?(this.hiding=!1,this.addStatus=!1,this.editStatus=!0,this.$nextTick((function(){n.form.setFieldsValue(s()(n.model,"id","floorName","floorIcon"))})),setTimeout((function(){n.floorIcon=e.floorIcon}),5)):(this.addStatus=!1,this.editStatus=!0),this.visible=!0},close:function(){this.$emit("close"),this.visible=!1,this.picUrl="",this.floorIcon=[]},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);s.enterpriseId=e.enterpriseId,s.floorIcon=e.model.floorIcon,Object(o["i"])(i,s,a).then((function(n){n.success?(t.$message.success(n.message),t.$emit("ok"),console.log(s),e.$parent.$parent.getTwoData({id:s.enterpriseId})):t.$message.warning(n.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},validateMobile:function(e,t,n){!t||new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(t)?n():n("您的手机号码格式不正确!")},validateIdCard:function(e,t,n){!t||new RegExp(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/).test(t)?n():n("您的身份证号码格式不正确!")}}},f=d,h=(n("92c1"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,"05982bb4",null);t["default"]=p.exports},"4ea8":function(e,t,n){n("cdd9")},"4ec6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{padding:"0 0 32px 32px"}},[n("h4",{style:{marginBottom:"20px"}},[e._v(e._s(e.title))]),n("v-chart",{attrs:{"force-fit":!0,height:e.height,data:e.data,scale:e.scale}},[n("v-tooltip"),n("v-axis"),n("v-legend"),n("v-line",{attrs:{position:"type*y",color:"x"}}),n("v-point",{attrs:{position:"type*y",color:"x",size:4,"v-style":e.style,shape:"circle"}})],1)],1)},i=[],o=(n("c5f6"),n("7104")),a={name:"LineChartMultid",props:{title:{type:String,default:""},dataSource:{type:Array,default:function(){return[{type:"Jan",jeecg:7,jeebt:3.9},{type:"Feb",jeecg:6.9,jeebt:4.2},{type:"Mar",jeecg:9.5,jeebt:5.7},{type:"Apr",jeecg:14.5,jeebt:8.5},{type:"May",jeecg:18.4,jeebt:11.9},{type:"Jun",jeecg:21.5,jeebt:15.2},{type:"Jul",jeecg:25.2,jeebt:17},{type:"Aug",jeecg:26.5,jeebt:16.6},{type:"Sep",jeecg:23.3,jeebt:14.2},{type:"Oct",jeecg:18.3,jeebt:10.3},{type:"Nov",jeecg:13.9,jeebt:6.6},{type:"Dec",jeecg:9.6,jeebt:4.8}]}},fields:{type:Array,default:function(){return["jeecg","jeebt"]}},height:{type:Number,default:254}},data:function(){return{scale:[{dataKey:"x",min:0,max:1}],style:{stroke:"#fff",lineWidth:1}}},computed:{data:function(){var e=(new o["DataSet"].View).source(this.dataSource);return e.transform({type:"fold",fields:this.fields,key:"x",value:"y"}),e.rows}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"071c9112",null);t["default"]=c.exports},"4ed9":function(e,t,n){var r=n("9ba1"),i=n("c75f"),o=n("7caa"),a=n("16546");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},"4f62":function(e,t,n){"use strict";n("7385")},"4f7d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"记录id"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recId",e.validatorRules.recId],expression:"['recId', validatorRules.recId ]"}],attrs:{placeholder:"请输入记录id"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警业务ID"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alarmBizId",{}],expression:"['alarmBizId', {}]"}],attrs:{placeholder:"请输入告警业务ID"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警业务名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alarmBizName",{}],expression:"['alarmBizName', {}]"}],attrs:{placeholder:"请输入告警业务名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警触发值"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["value",{}],expression:"['value', {}]"}],attrs:{placeholder:"请输入告警触发值"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警等级"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["grade",{}],expression:"['grade', {}]"}],attrs:{placeholder:"请输入告警等级"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警开始时间"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["startTime",{}],expression:"['startTime', {}]"}],attrs:{placeholder:"请输入告警开始时间"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"烟感编号"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smokeNo",e.validatorRules.smokeNo],expression:"['smokeNo', validatorRules.smokeNo ]"}],attrs:{placeholder:"请输入烟感编号"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["deviceName",{}],expression:"['deviceName', {}]"}],attrs:{placeholder:"请输入设备名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"pointX"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pointX",{}],expression:"['pointX', {}]"}],attrs:{placeholder:"请输入pointX"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"pointY"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pointY",{}],expression:"['pointY', {}]"}],attrs:{placeholder:"请输入pointY"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"最高告警等级:0为正常,其他值都为告警"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alarmState",{}],expression:"['alarmState', {}]"}],attrs:{placeholder:"请输入最高告警等级:0为正常,其他值都为告警"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"第一联系人"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["property",{}],expression:"['property', {}]"}],attrs:{placeholder:"请输入第一联系人"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["addr",{}],expression:"['addr', {}]"}],attrs:{placeholder:"请输入设备地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"examineState"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["examineState",{}],expression:"['examineState', {}]"}],attrs:{placeholder:"请输入examineState"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"enableTime"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["enableTime",{}],expression:"['enableTime', {}]"}],attrs:{placeholder:"请输入enableTime"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警结束时间"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["endTime",{}],expression:"['endTime', {}]"}],attrs:{placeholder:"请输入告警结束时间"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"本地最近一次更新时间"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["localupdatetime",{}],expression:"['localupdatetime', {}]"}],attrs:{placeholder:"请输入本地最近一次更新时间"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"SmokeAlarmDeviceHisModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{recId:{rules:[{required:!0,message:"请输入记录id!"}]},smokeNo:{rules:[{required:!0,message:"请输入烟感编号!"}]}},url:{add:"/emergency.base.support.biz.smoke/smokeAlarmDeviceHis/add",edit:"/emergency.base.support.biz.smoke/smokeAlarmDeviceHis/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"recId","alarmBizId","alarmBizName","value","grade","startTime","smokeNo","deviceName","pointX","pointY","alarmState","property","addr","examineState","enableTime","endTime","localupdatetime"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"f6bc2f46",null);t["default"]=d.exports},"4f86":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"图层名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入图层名称"}})],1),n("a-form-item",{attrs:{label:"图层类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",e.validatorRules.type],expression:"['type', validatorRules.type]"}],attrs:{placeholder:"请选择图层类型",dict:"sys_category,name,id",pidField:"pid"}})],1),n("a-form-item",{attrs:{label:"图层地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["url",e.validatorRules.url],expression:"[ 'url', validatorRules.url]"}],attrs:{placeholder:"请输入图层地址"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("b098"),c={name:"CoverageModal",components:{JTreeSelect:l["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{name:{},type:{},url:{}},url:{add:"/coverage/coverage/add",edit:"/coverage/coverage/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"name","type","url"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("表单提交数据",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"name","type","url"))}}},u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,null,null);t["default"]=f.exports},"4f8e":function(e,t,n){"use strict";n("1a86")},"4fa4":function(e,t,n){"use strict";n("cd17")},"4fa6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticClass:"card-area",attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"名称",labelCol:{span:5},wrapperCol:{span:18,offset:1}}},[n("a-input",{attrs:{placeholder:"请输入名称查询"},model:{value:e.queryParam.roleName,callback:function(t){e.$set(e.queryParam,"roleName",t)},expression:"queryParam.roleName"}})],1)],1),n("a-col",{attrs:{md:10,sm:12}},[n("a-form-item",{attrs:{label:"创建时间",labelCol:{span:5},wrapperCol:{span:18,offset:1}}},[n("j-date",{staticStyle:{width:"45%"},attrs:{showTime:!0,"date-format":"YYYY-MM-DD HH:mm:ss",placeholder:"请选择开始时间"},model:{value:e.queryParam.createTime_begin,callback:function(t){e.$set(e.queryParam,"createTime_begin",t)},expression:"queryParam.createTime_begin"}}),n("span",{staticStyle:{width:"10px"}},[e._v("~")]),n("j-date",{staticStyle:{width:"45%"},attrs:{showTime:!0,"date-format":"YYYY-MM-DD HH:mm:ss",placeholder:"请选择结束时间"},model:{value:e.queryParam.createTime_end,callback:function(t){e.$set(e.queryParam,"createTime_end",t)},expression:"queryParam.createTime_end"}})],1)],1),n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-button",{attrs:{type:"primary"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator",staticStyle:{"margin-top":"5px"}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("角色信息")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("\n        批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项  \n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{on:{click:function(t){return e.handlePerssion(r.id)}}},[e._v("授权")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("role-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("user-role-modal",{ref:"modalUserRole"}),n("user-role-category",{ref:"modalUserRoleCategory"})],1)},i=[],o=n("2a70"),a=n("ee18"),s=n("66b6"),l=n("b65a"),c=n("2dab"),u={name:"RoleList",mixins:[l["a"]],components:{RoleModal:o["default"],UserRoleModal:a["default"],JDate:c["default"],UserRoleCategory:s["default"]},data:function(){return{description:"角色管理页面",queryParam:{roleName:""},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"角色名称",align:"center",dataIndex:"roleName"},{title:"系统编码",align:"center",dataIndex:"productCode"},{title:"角色编码",align:"center",dataIndex:"roleCode"},{title:"备注",align:"center",dataIndex:"description"},{title:"创建时间",dataIndex:"createTime",align:"center",sorter:!0},{title:"更新时间",dataIndex:"updateTime",align:"center",sorter:!0},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/sys/role/list",delete:"/sys/role/delete",deleteBatch:"/sys/role/deleteBatch",exportXlsUrl:"/sys/role/exportXls",importExcelUrl:"sys/role/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{handlePerssion:function(e){this.$refs.modalUserRole.show(e)},hanleCategory:function(e){this.$refs.modalUserRoleCategory.show(e)},onChangeDate:function(e,t){console.log(e,t)}}},d=u,f=(n("70e3"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"d74c0cca",null);t["default"]=h.exports},"4ff1":function(e,t,n){"use strict";n("a6d5")},5006:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},5021:function(e,t){t.f=Object.getOwnPropertySymbols},5058:function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;function r(e){var t=n(e);return t&&void 0!==t.id?t.id:null}function i(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=t.generate();return r.id=i,i}return{get:r,set:i}}},"507c":function(e,t,n){"use strict";n("2eac")},"509b":function(e,t,n){"use strict";var r=n("7238"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,o)||this;return a.originalEvent=r,a.pixel_=null,a.coordinate_=null,a.dragging=void 0!==i&&i,a}return i(t,e),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){e.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){e.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},t}(r["a"]);t["a"]=o},"50bf":function(e,t,n){"use strict";var r=e.exports={};function i(e,t,n){var r=e[t];return void 0!==r&&null!==r||void 0===n?r:n}r.getOption=i},"50ec":function(e,t,n){"use strict";var r=n("8e4c"),i=n("4b0b"),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(a.prototype=t.prototype),a}},"50f0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:e.title,width:800,placement:"right",closable:!1,visible:e.visible},on:{close:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"['name', validatorRules.name ]"}],attrs:{placeholder:"请输入名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"区县码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",e.validatorRules.districtCode],expression:"['districtCode', validatorRules.districtCode ]"}],attrs:{placeholder:"请输入区县码"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"数据库表名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dbName",e.validatorRules.dbName],expression:"['dbName', validatorRules.dbName ]"}],attrs:{placeholder:"请输入数据库表名"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"数据库表主键"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["key",e.validatorRules.key],expression:"['key', validatorRules.key ]"}],attrs:{placeholder:"请输入数据库表主键"}})],1)],1)],1),n("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("确定")]),n("a-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v("取消")])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"DutyArrangeCustomizedModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{name:{rules:[{required:!0,message:"请输入名称!"}]},districtCode:{rules:[{required:!0,message:"请输入区县码!"}]},dbName:{rules:[{required:!0,message:"请输入数据库表名!"}]},key:{rules:[{required:!0,message:"请输入数据库表主键!"}]}},url:{add:"/dutyArrangeCustomized/dutyArrangeCustomized/add",edit:"/dutyArrangeCustomized/dutyArrangeCustomized/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"name","districtCode","dbName","key"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=(n("0199"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"7e185049",null);t["default"]=d.exports},"510e":function(e,t,n){var r,i,o,a=n("4b76"),s=n("2ace"),l=n("4b0b"),c=n("f0e0"),u=n("9ba1"),d=n("e207"),f=n("493f"),h=n("4a43"),p=s.WeakMap,m=function(e){return o(e)?i(e):r(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=d.state||(d.state=new p),y=v.get,b=v.has,_=v.set;r=function(e,t){return t.facade=e,_.call(v,e,t),t},i=function(e){return y.call(v,e)||{}},o=function(e){return b.call(v,e)}}else{var w=f("state");h[w]=!0,r=function(e,t){return t.facade=e,c(e,w,t),t},i=function(e){return u(e,w)?e[w]:{}},o=function(e){return u(e,w)}}e.exports={set:r,get:i,has:o,enforce:m,getterFor:g}},5139:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-tabs",{attrs:{defaultActiveKey:"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"柱状图"}},[n("bar",{attrs:{title:"销售额排行",dataSource:e.barData,height:e.height}})],1),n("a-tab-pane",{key:"2",attrs:{tab:"多列柱状图"}},[n("bar-multid",{attrs:{title:"多列柱状图",height:e.height}})],1),n("a-tab-pane",{key:"3",attrs:{tab:"迷你柱状图"}},[n("mini-bar",{attrs:{dataSource:e.barData,width:400,height:200}})],1),n("a-tab-pane",{key:"4",attrs:{tab:"面积图"}},[n("area-chart-ty",{attrs:{title:"销售额排行",dataSource:e.areaData,x:"月份",y:"销售额",height:e.height}})],1),n("a-tab-pane",{key:"5",attrs:{tab:"迷你面积图"}},[n("div",{staticStyle:{"padding-top":"100px",width:"600px",height:"200px"}},[n("mini-area",{attrs:{dataSource:e.areaData,x:"月份",y:"销售额",height:e.height}})],1)]),n("a-tab-pane",{key:"6",attrs:{tab:"多行折线图"}},[n("line-chart-multid",{attrs:{title:"多行折线图",height:e.height}})],1),n("a-tab-pane",{key:"7",attrs:{tab:"饼图"}},[n("pie",{attrs:{title:"饼图",height:e.height}})],1),n("a-tab-pane",{key:"8",attrs:{tab:"雷达图"}},[n("radar",{attrs:{title:"雷达图",height:e.height}})],1),n("a-tab-pane",{key:"9",attrs:{tab:"仪表盘"}},[n("dash-chart-demo",{attrs:{title:"仪表盘",value:9,height:e.height}})],1),n("a-tab-pane",{key:"10",attrs:{tab:"进度条"}},[n("mini-progress",{attrs:{percentage:30,target:40,height:30}}),n("mini-progress",{attrs:{percentage:51,target:60,height:30,color:"#FFA500"}}),n("mini-progress",{attrs:{percentage:66,target:80,height:30,color:"#1E90FF"}}),n("mini-progress",{attrs:{percentage:74,target:70,height:30,color:"#FF4500"}}),n("mini-progress",{attrs:{percentage:92,target:100,height:30,color:"#49CC49"}})],1),n("a-tab-pane",{key:"11",attrs:{tab:"排名列表"}},[n("rank-list",{staticStyle:{width:"600px",margin:"0 auto"},attrs:{title:"门店销售排行榜",list:e.rankList}})],1),n("a-tab-pane",{key:"12",attrs:{tab:"TransferBar"}},[n("transfer-bar",{attrs:{title:"年度消耗流量一览表",data:e.barData,x:"月份",y:"流量(Mb)",height:e.height}})],1),n("a-tab-pane",{key:"13",attrs:{tab:"Trend"}},[n("trend",{attrs:{title:"Trend",term:"Trend:",percentage:30}})],1),n("a-tab-pane",{key:"14",attrs:{tab:"Liquid"}},[n("liquid",{attrs:{height:e.height}})],1),n("a-tab-pane",{key:"15",attrs:{tab:"BarAndLine"}},[n("bar-and-line",{attrs:{height:e.height}})],1)],1)],1)},i=[],o=n("ade3"),a=n("f552"),s=n("edd9"),l=n("8191"),c=n("972f"),u=n("4ec6"),d=n("4ced"),f=n("942d"),h=n("1d43"),p=n("bf13"),m=n("6cb2"),g=n("3981"),v=n("0923"),y=n("1cf5"),b=n("527e"),_=n("e659"),w={name:"ViserChartDemo",components:{Bar:s["default"],MiniBar:f["default"],BarMultid:l["default"],AreaChartTy:a["default"],LineChartMultid:u["default"],Pie:m["default"],Radar:g["default"],DashChartDemo:c["default"],MiniProgress:p["default"],RankList:v["default"],TransferBar:y["default"],Trend:b["default"],Liquid:d["default"],MiniArea:h["default"],BarAndLine:_["default"]},data:function(){return{height:420,rankList:[],barData:[],areaData:[]}},created:function(){var e=this;setTimeout((function(){e.loadBarData(),e.loadAreaData(),e.loadRankListData()}),100)},methods:{loadData:function(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"月",s=[],l=0;l<12;l+=1){var c;s.push((c={},Object(o["a"])(c,e,"".concat(i).concat(l+1).concat(a)),Object(o["a"])(c,t,Math.floor(Math.random()*n)+r),c))}return s},loadBarData:function(){this.barData=this.loadData("x","y",1e3,200)},loadAreaData:function(){this.areaData=this.loadData("x","y",500,100)},loadRankListData:function(){this.rankList=this.loadData("name","total",2e3,100,"北京朝阳 "," 号店")}}},x=w,S=n("2877"),C=Object(S["a"])(x,r,i,!1,null,"1fd923d1",null);t["default"]=C.exports},5154:function(e,t,n){},5203:function(e,t,n){"use strict";n("29c3")},"521b":function(e,t,n){"use strict";t["a"]={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},"527e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chart-trend"},[e._v("\n  "+e._s(e.term)+"\n  "),n("span",[e._v(e._s(e.rate)+"%")]),n("span",{class:["trend-icon",e.trend]},[n("a-icon",{attrs:{type:"caret-"+e.trend}})],1)])},i=[],o=(n("d263"),n("c5f6"),{name:"Trend",props:{term:{type:String,default:"",required:!0},percentage:{type:Number,default:null},type:{type:Boolean,default:null},target:{type:Number,default:0},value:{type:Number,default:0},fixed:{type:Number,default:2}},data:function(){return{trend:this.type?"up":"down",rate:this.percentage}},created:function(){var e=null===this.type?this.value>=this.target:this.type;this.trend=e?"up":"down",this.rate=(null===this.percentage?100*Math.abs(this.value-this.target)/this.target:this.percentage).toFixed(this.fixed)}}),a=o,s=(n("f635"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"11a70d96",null);t["default"]=l.exports},5293:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"记录id"}},[n("a-input",{attrs:{placeholder:"请输入记录id"},model:{value:e.queryParam.recId,callback:function(t){e.$set(e.queryParam,"recId",t)},expression:"queryParam.recId"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警业务ID"}},[n("a-input",{attrs:{placeholder:"请输入告警业务ID"},model:{value:e.queryParam.alarmBizId,callback:function(t){e.$set(e.queryParam,"alarmBizId",t)},expression:"queryParam.alarmBizId"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警业务名称"}},[n("a-input",{attrs:{placeholder:"请输入告警业务名称"},model:{value:e.queryParam.alarmBizName,callback:function(t){e.$set(e.queryParam,"alarmBizName",t)},expression:"queryParam.alarmBizName"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警触发值"}},[n("a-input",{attrs:{placeholder:"请输入告警触发值"},model:{value:e.queryParam.value,callback:function(t){e.$set(e.queryParam,"value",t)},expression:"queryParam.value"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警等级"}},[n("a-input",{attrs:{placeholder:"请输入告警等级"},model:{value:e.queryParam.grade,callback:function(t){e.$set(e.queryParam,"grade",t)},expression:"queryParam.grade"}})],1)],1)]:e._e(),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),n("a",{staticStyle:{"margin-left":"8px"},on:{click:e.handleToggleSearch}},[e._v("\n              "+e._s(e.toggleSearchStatus?"收起":"展开")+"\n              "),n("a-icon",{attrs:{type:e.toggleSearchStatus?"up":"down"}})],1)],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("烟感警报设备")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("smokeAlarmDevice-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("ab53"),a=n("b65a"),s={name:"SmokeAlarmDeviceList",mixins:[a["a"]],components:{SmokeAlarmDeviceModal:o["default"]},data:function(){return{description:"烟感警报设备管理页面",columns:[{title:"序号",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"告警业务名称",align:"center",dataIndex:"alarmBizName"},{title:"告警触发值",align:"center",dataIndex:"value"},{title:"告警等级",align:"center",dataIndex:"grade"},{title:"设备名称",align:"center",dataIndex:"deviceName"},{title:"最高告警等级",align:"center",dataIndex:"alarmState"},{title:"第一联系人",align:"center",dataIndex:"property"},{title:"设备地址",align:"center",dataIndex:"addr"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/emergency.base.support.biz.smoke/smokeAlarmDevice/list",delete:"/emergency.base.support.biz.smoke/smokeAlarmDevice/delete",deleteBatch:"/emergency.base.support.biz.smoke/smokeAlarmDevice/deleteBatch",exportXlsUrl:"emergency.base.support.biz.smoke/smokeAlarmDevice/exportXls",importExcelUrl:"emergency.base.support.biz.smoke/smokeAlarmDevice/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"588b5c26",null);t["default"]=u.exports},"53c8":function(e,t,n){var r=n("f276");r("iterator")},"53d7":function(e,t,n){"use strict";n("74f3")},5422:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"企业名称"}},[n("a-input",{attrs:{placeholder:"请输入企业名称"},model:{value:e.queryParam.qymc,callback:function(t){e.$set(e.queryParam,"qymc",t)},expression:"queryParam.qymc"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"社会统一信用代码"}},[n("a-input",{attrs:{placeholder:"请输入社会统一信用代码"},model:{value:e.queryParam.socialCode,callback:function(t){e.$set(e.queryParam,"socialCode",t)},expression:"queryParam.socialCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,expandedRowKeys:e.expandedRowKeys,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange,expand:e.handleExpand},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleAdd2(r.id)}}},[e._v("添加楼层")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}},{key:"expandedRowRender",fn:function(t){return n("a-table",{attrs:{columns:e.innerColumns,dataSource:e.innerData,size:"middle",bordered:"",rowKey:"id",pagination:!1,loading:e.loading},scopedSlots:e._u([{key:"avatarslot",fn:function(t,r,i){return[n("div",{staticClass:"anty-img-wrap"},[n("a-avatar",{attrs:{shape:"square",src:e.getAvatarView(r.floorIcon),icon:"user"}})],1)]}},{key:"action2",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.showPlaneFigure(r)}}},[e._v("平面图")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.handleEdit2(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete2(r)}}},[n("a",[e._v("删除")])])],1)}}])})}}])})],1),n("jeecgOrderDMain-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("jeecgOrderCustomer-modal",{ref:"modalForm2",on:{ok:e.modalFormOk2}}),n("PlaneFigureModal",{ref:"planeFigureModal"})],1)},i=[],o=n("0fea"),a=n("4dc0"),s=n("2143"),l=n("826f"),c=n("b65a"),u={name:"TableDemo",mixins:[c["a"]],components:{JeecgOrderDMainModal:s["default"],JeecgOrderCustomerModal:a["default"],PlaneFigureModal:l["default"]},data:function(){return{innerColumns:[{title:"楼层名",align:"center",width:300,dataIndex:"floorName",key:"name"},{title:"楼层图片",align:"center",dataIndex:"floorIcon",height:200,scopedSlots:{customRender:"avatarslot"}},{title:"操作",dataIndex:"action2",align:"center",scopedSlots:{customRender:"action2"}}],innerData:[],expandedRowKeys:[],id:" ",description:"列表展开子表Demo",columns:[{title:"序号",dataIndex:"",key:"rowIndex",width:90,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"企业名称",align:"center",dataIndex:"qymc"},{title:"社会统一信用代码",align:"center",dataIndex:"socialCode"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],type:"radio",url:{imgerver:window._CONFIG["domianURL"]+"/file/",list:"/yuanqu/enterprise/list",delete:"/yuanqu/enterprise/delete",delete2:"/yuanqu/enterprise/deleteFloor",deleteBatch:"/yuanqu/enterprise/deleteBatch",customerListByMainId:"/yuanqu/enterprise/queryFloorListByMainId"}}},computed:{currentId:function(){return this.id}},methods:{showPlaneFigure:function(e){this.$refs.planeFigureModal.show(e)},getAvatarView:function(e){return e},handleExpand:function(e,t){this.expandedRowKeys=[],this.innerData=[],!0===e&&(this.loading=!0,this.expandedRowKeys.push(t.id),this.getTwoData(t))},getTwoData:function(e){var t=this;Object(o["d"])(this.url.customerListByMainId,{id:e.id}).then((function(e){e.success&&(t.loading=!1,t.innerData=e.result.records)}))},getTwoData2:function(e){var t=this;Object(o["d"])(this.url.customerListByMainId,{id:e.enterpriseId}).then((function(e){e.success&&(t.loading=!1,t.innerData=e.result.records)}))}}},d=u,f=(n("712f"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"fb89e3d8",null);t["default"]=h.exports},5424:function(e,t,n){},"542c":function(e,t,n){},5496:function(e,t,n){"use strict";var r=n("ca63").charAt,i=n("510e"),o=n("8e0b"),a="String Iterator",s=i.set,l=i.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"54c0":function(e,t,n){"use strict";n("f8bf")},"54d3":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{"min-width":"500px","overflow-x":"auto"}},[n("p",[e._v("我是左侧页面")]),n("img-turn-page")],1)},i=[],o=n("4874"),a={name:"SplitPanelAModal",components:{ImgTurnPage:o["default"]},data:function(){return{}},created:function(){},methods:{}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"045cdf58",null);t["default"]=c.exports},5564:function(e,t,n){"use strict";var r=n("e269"),i=n("df4c"),o=n("1300"),a=n("92fa5"),s=n("38f3"),l=n("7fc9"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t){var n=e.call(this)||this,r=Object(s["a"])({},t);return r[i["a"].OPACITY]=void 0!==t.opacity?t.opacity:1,Object(a["a"])("number"===typeof r[i["a"].OPACITY],64),r[i["a"].VISIBLE]=void 0===t.visible||t.visible,r[i["a"].Z_INDEX]=t.zIndex,r[i["a"].MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,r[i["a"].MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,r[i["a"].MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,r[i["a"].MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,n.className_=void 0!==r.className?t.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}return c(t,e),t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(e){var t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=Object(l["a"])(Math.round(100*this.getOpacity())/100,0,1),t.sourceState=this.getSourceState(),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n?n:!1===t.managed?1/0:0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t},t.prototype.getLayersArray=function(e){return Object(o["b"])()},t.prototype.getLayerStatesArray=function(e){return Object(o["b"])()},t.prototype.getExtent=function(){return this.get(i["a"].EXTENT)},t.prototype.getMaxResolution=function(){return this.get(i["a"].MAX_RESOLUTION)},t.prototype.getMinResolution=function(){return this.get(i["a"].MIN_RESOLUTION)},t.prototype.getMinZoom=function(){return this.get(i["a"].MIN_ZOOM)},t.prototype.getMaxZoom=function(){return this.get(i["a"].MAX_ZOOM)},t.prototype.getOpacity=function(){return this.get(i["a"].OPACITY)},t.prototype.getSourceState=function(){return Object(o["b"])()},t.prototype.getVisible=function(){return this.get(i["a"].VISIBLE)},t.prototype.getZIndex=function(){return this.get(i["a"].Z_INDEX)},t.prototype.setExtent=function(e){this.set(i["a"].EXTENT,e)},t.prototype.setMaxResolution=function(e){this.set(i["a"].MAX_RESOLUTION,e)},t.prototype.setMinResolution=function(e){this.set(i["a"].MIN_RESOLUTION,e)},t.prototype.setMaxZoom=function(e){this.set(i["a"].MAX_ZOOM,e)},t.prototype.setMinZoom=function(e){this.set(i["a"].MIN_ZOOM,e)},t.prototype.setOpacity=function(e){Object(a["a"])("number"===typeof e,64),this.set(i["a"].OPACITY,e)},t.prototype.setVisible=function(e){this.set(i["a"].VISIBLE,e)},t.prototype.setZIndex=function(e){this.set(i["a"].Z_INDEX,e)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),e.prototype.disposeInternal.call(this)},t}(r["a"]);t["a"]=u},"55c3":function(e,t,n){"use strict";n.r(t);var r,i,o=n("5976"),a=n("160c"),s=n("fe2b"),l=n("a6b6"),c=n("ac0d"),u=l["a"].Meta,d={components:{AListItem:l["a"],AList:s["b"],ASwitch:a["a"],Meta:u},mixins:[c["a"]],data:function(){return{}},filters:{themeFilter:function(e){var t={dark:"暗色",light:"白色"};return t[e]}},methods:{colorFilter:function(e){var t=o["a"].filter((function(t){return t.color===e}))[0];return t&&t.key},onChange:function(e){e?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")}},render:function(){var e=arguments[0];return e(s["b"],{attrs:{itemLayout:"horizontal"}},[e(l["a"],[e(u,[e("a",{slot:"title"},["风格配色"]),e("span",{slot:"description"},["整体风格配色设置"])]),e("div",{slot:"actions"},[e(a["a"],{attrs:{checkedChildren:"暗色",unCheckedChildren:"白色",defaultChecked:"dark"===this.navTheme},on:{change:this.onChange}})])]),e(l["a"],[e(u,[e("a",{slot:"title"},["主题色"]),e("span",{slot:"description"},["页面风格配色: ",e("a",{domProps:{innerHTML:this.colorFilter(this.primaryColor)}})])])])])}},f=d,h=n("2877"),p=Object(h["a"])(f,r,i,!1,null,"6ab256a2",null);t["default"]=p.exports},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,l=[1,2,3];r(r.P+r.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},"55ea":function(e,t,n){},"56b3":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),_=/win/i.test(t),w=d&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(d=!1,l=!0);var x=y&&(c||d&&(null==w||w<12.11)),S=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,k=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return O(e).appendChild(t)}function I(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,n,r){var i=I(e,t,n,r);return i.setAttribute("role","presentation"),i}function R(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function P(){var e;try{e=document.activeElement}catch(t){e=document.body||null}while(e&&e.shadowRoot&&e.shadowRoot.activeElement)e=e.shadowRoot.activeElement;return e}function M(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function N(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}E=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function D(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function j(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function F(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(t){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};function q(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var z=50,U={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},V={origin:"*mouse"},W={origin:"+move"};function H(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var $=[""];function K(e){while($.length<=e)$.push(X($)+" ");return $[e]}function X(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function J(e,t,n){var r=0,i=n(t);while(r<e.length&&n(e[r])<=i)r++;e.splice(r,0,t)}function Q(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(Q.prototype=e,n=new Q),t&&j(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){while((n<0?t>0:t<e.length)&&oe(e.charAt(t)))t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}var de=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var h=0,p=c;h<u;++h){var m=d[h];"m"==m?d[h]=p:p=m}for(var g=0,v=c;g<u;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":o.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,_=d[0];b<u-1;++b){var w=d[b];"+"==w&&"1"==_&&"1"==d[b+1]?d[b]="1":","!=w||_!=d[b+1]||"1"!=_&&"n"!=_||(d[b]=_),_=w}for(var x=0;x<u;++x){var S=d[x];if(","==S)d[x]="N";else if("%"==S){var C=void 0;for(C=x+1;C<u&&"%"==d[C];++C);for(var E=x&&"!"==d[x-1]||C<u&&"1"==d[C]?"1":"N",k=x;k<C;++k)d[k]=E;x=C-1}}for(var O=0,T=c;O<u;++O){var I=d[O];"L"==T&&"1"==I?d[O]="L":o.test(I)&&(T=I)}for(var A=0;A<u;++A)if(i.test(d[A])){var R=void 0;for(R=A+1;R<u&&i.test(d[R]);++R);for(var P="L"==(A?d[A-1]:c),M="L"==(R<u?d[R]:c),N=P==M?P?"L":"R":c,L=A;L<R;++L)d[L]=N;A=R-1}for(var D,j=[],F=0;F<u;)if(a.test(d[F])){var B=F;for(++F;F<u&&a.test(d[F]);++F);j.push(new l(0,B,F))}else{var q=F,z=j.length,U="rtl"==t?1:0;for(++F;F<u&&"L"!=d[F];++F);for(var G=q;G<F;)if(s.test(d[G])){q<G&&(j.splice(z,0,new l(1,q,G)),z+=U);var V=G;for(++G;G<F&&s.test(d[G]);++G);j.splice(z,0,new l(2,V,G)),z+=U,q=G}else++G;q<F&&j.splice(z,0,new l(1,q,F))}return"ltr"==t&&(1==j[0].level&&(D=e.match(/^\s+/))&&(j[0].from=D[0].length,j.unshift(new l(0,0,D[0].length))),1==X(j).level&&(D=e.match(/\s+$/))&&(X(j).to-=D[0].length,j.push(new l(0,u-D[0].length,u)))),"rtl"==t?j.reverse():j}}();function fe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var he=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||he).concat(n)}};function me(e,t){return e._handlers&&e._handlers[t]||he}function ge(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=q(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==q(n,t[r])&&n.push(t[r])}function _e(e,t){return me(e,t).length>0}function we(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ee(e){xe(e),Se(e)}function ke(e){return e.target||e.srcElement}function Oe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Te,Ie,Ae=function(){if(a&&s<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function Re(e){if(null==Te){var t=I("span","​");T(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Te=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Te?I("span","​"):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Pe(e){if(null!=Ie)return Ie;var t=T(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),r=E(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Ie=r.right-n.right<3)}var Me=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ne=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le=function(){var e=I("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),De=null;function je(e){if(null!=De)return De;var t=T(e,I("span","x")),n=t.getBoundingClientRect(),r=E(t,0,1).getBoundingClientRect();return De=Math.abs(n.left-r.left)>1}var Fe={},Be={};function qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fe[e]=t}function ze(e,t){Be[e]=t}function Ue(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),e=Z(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=Ue(t);var n=Fe[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var i=Ve[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ve={};function We(e,t){var n=Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={};j(t,n)}function He(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function $e(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Xe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ye(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Je(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Qe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ze(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,n=q(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==t)break;n+=r.children[i].chunkSize()}return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],l=s.height;if(t<l)break;t-=l}return n+a}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function it(e,t,n){if(void 0===n&&(n=null),!(this instanceof it))return new it(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ot(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function st(e){return it(e.line,e.ch)}function lt(e,t){return ot(e,t)<0?t:e}function ct(e,t){return ot(e,t)<0?e:t}function ut(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function dt(e,t){if(t.line<e.first)return it(e.first,0);var n=e.first+e.size-1;return t.line>n?it(n,Ye(e,n).text.length):ft(t,Ye(e,t.line).text.length)}function ft(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function ht(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=dt(e,t[r]);return n}Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xe.prototype.eat=function(e){var t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e.test?e.test(n):e(n)),t)return++this.pos,n},Xe.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e));return this.pos>t},Xe.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function gt(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Et(e,t.text,s.mode,n,(function(e,t){var n=l;while(c<e){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function vt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=yt(e,et(t)),i=t.text.length>e.options.maxHighlightLength&&He(e.doc.mode,r.state),o=gt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(r,!0,t);var o=kt(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,Ke(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new Xe(t,e.options.tabSize,n);o.start=o.pos=r||0,""==t&&_t(i,n.state);while(!o.eol())wt(i,o,n.state),o.start=o.pos}function _t(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=$e(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=$e(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof pt?new mt(e,He(e.mode,t.state),n,t.lookAhead):new mt(e,He(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?He(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var i,o=e.doc,a=o.mode;t=dt(o,t);var s,l=Ye(o,t.line),c=yt(e,t.line,n),u=new Xe(l.text,e.options.tabSize,c);r&&(s=[]);while((r||u.pos<t.ch)&&!u.eol())u.start=u.pos,i=wt(a,u,c.state),r&&s.push(new xt(u,i,He(o.mode,c.state)));return r?s:new xt(u,i,c.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Et(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Xe(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];""==t&&Ct(_t(n,r.state),o);while(!d.eol()){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,l=null):l=Ct(wt(n,d,r.state,f),o),f){var h=f[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){while(c<d.start)c=Math.min(d.start,c+5e3),i(c,u);u=l}d.start=d.pos}while(c<d.pos){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function kt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ye(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof pt?c.lookAhead:0)<=o.modeFrontier))return s;var u=F(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Tt=!1,It=!1;function At(){Tt=!0}function Rt(){It=!0}function Pt(e,t,n){this.marker=e,this.from=t,this.to=n}function Mt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Nt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Lt(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Dt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Pt(a,o.from,l?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Pt(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Ft(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Ye(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Ye(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ot(t.from,t.to),s=Dt(n,i,a),l=jt(r,o,a),c=1==t.text.length,u=X(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var h=Mt(l,f.marker);h?c&&(f.to=null==h.to?null:h.to+u):f.to=i}}if(l)for(var p=0;p<l.length;++p){var m=l[p];if(null!=m.to&&(m.to+=u),null==m.from){var g=Mt(s,m.marker);g||(m.from=u,c&&(s||(s=[])).push(m))}else m.from+=u,c&&(s||(s=[])).push(m)}s&&(s=Bt(s)),l&&l!=s&&(l=Bt(l));var v=[s];if(!c){var y,b=t.text.length-2;if(b>0&&s)for(var _=0;_<s.length;++_)null==s[_].to&&(y||(y=[])).push(new Pt(s[_].marker,null,null));for(var w=0;w<b;++w)v.push(y);v.push(l)}return v}function Bt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function qt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=q(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(ot(c.to,s.from)<0||ot(c.from,s.to)>0)){var u=[l,1],d=ot(c.from,s.from),f=ot(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function zt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ut(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Gt(e){return e.inclusiveLeft?-1:0}function Vt(e){return e.inclusiveRight?1:0}function Wt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ot(r.from,i.from)||Gt(e)-Gt(t);if(o)return-o;var a=ot(r.to,i.to)||Vt(e)-Vt(t);return a||t.id-e.id}function Ht(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||Wt(n,i.marker)<0)&&(n=i.marker);return n}function $t(e){return Ht(e,!0)}function Kt(e){return Ht(e,!1)}function Xt(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Wt(n,o.marker)<0)&&(n=o.marker)}return n}function Yt(e,t,n,r,i){var o=Ye(e,t),a=It&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ot(c.from,n)||Gt(l.marker)-Gt(i),d=ot(c.to,r)||Vt(l.marker)-Vt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(c.to,n)>=0:ot(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(c.from,r)<=0:ot(c.from,r)<0)))return!0}}}function Jt(e){var t;while(t=$t(e))e=t.find(-1,!0).line;return e}function Qt(e){var t;while(t=Kt(e))e=t.find(1,!0).line;return e}function Zt(e){var t,n;while(t=Kt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Ye(e,t),r=Jt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!nn(e,r))return t;while(n=Kt(r))r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=It&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&rn(e,t,r))return!0}}function rn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return rn(e,r.line,Mt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&rn(e,t,i))return!0}function on(e){e=Jt(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function an(e){if(0==e.height)return 0;var t,n=e.text.length,r=e;while(t=$t(r)){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=e;while(t=Kt(r)){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function sn(e){var t=e.display,n=e.doc;t.maxLine=Ye(n,n.first),t.maxLineLength=an(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=an(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,Ut(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),zt(e),Ut(e,n);var i=r?r(e):1;i!=e.height&&Ze(e,i)}function un(e){e.parent=null,zt(e)}ln.prototype.lineNo=function(){return et(this)},we(ln);var dn={},fn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?fn:dn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=A("span",null,null,l?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=gn,Pe(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&et(o);_n(o,r,vt(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Re(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function mn(e){var t=I("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?vn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){c=document.createDocumentFragment();var h=0;while(1){d.lastIndex=h;var p=d.exec(t),m=p?p.index-h:t.length-h;if(m){var g=document.createTextNode(u.slice(h,h+m));a&&s<9?c.appendChild(I("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;h+=m+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;v=c.appendChild(I("span",K(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?(v=c.appendChild(I("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",p[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(p[0]),v.setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(I("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||o||l){var _=n||"";r&&(_+=r),i&&(_+=i);var w=I("span",[c],_,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,l[x]);return e.content.appendChild(w)}e.content.appendChild(c)}}function vn(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function yn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,f=0;f<t.length;f++)if(d=t[f],d.to>c&&d.from<=c)break;if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function _n(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,f,h=i.length,p=0,m=1,g="",v=0;;){if(v==p){l=c=u=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var w=r[_],x=w.marker;if("bookmark"==x.type&&w.from==p&&x.widgetNode)y.push(x);else if(w.from<=p&&(null==w.to||w.to>p||x.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==p&&(u+=" "+x.startStyle),x.endStyle&&w.to==v&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var S in x.attributes)(f||(f={}))[S]=x.attributes[S];x.collapsed&&(!d||Wt(d.marker,x)<0)&&(d=w)}else w.from>p&&v>w.from&&(v=w.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!d||d.from==p)for(var E=0;E<y.length;++E)bn(t,0,y[E]);if(d&&(d.from||0)==p){if(bn(t,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=h)break;var k=Math.min(h,v);while(1){if(g){var O=p+g.length;if(!d){var T=O>k?g.slice(0,k-p):g;t.addToken(t,T,a?a+l:l,u,p+T.length==v?c:"",s,f)}if(O>=k){g=g.slice(k-p),p=k;break}p=O,u=""}g=i.slice(o,o=n[m++]),a=hn(n[m++],t.cm.options)}}else for(var I=1;I<n.length;I+=2)t.addToken(t,i.slice(o,o=n[I]),hn(n[I+1],t.cm.options))}function wn(e,t,n){this.line=t,this.rest=Zt(t),this.size=this.rest?et(X(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nn(e,t)}function xn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new wn(e.doc,Ye(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Sn=null;function Cn(e){Sn?Sn.ops.push(e):e.ownsGroup=Sn={ops:[e],delayedCallbacks:[]}}function En(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function kn(e,t){var n=e.ownsGroup;if(n)try{En(n)}finally{Sn=null,t(n)}}var On=null;function Tn(e,t){var n=me(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Sn?r=Sn.delayedCallbacks:On?r=On:(r=On=[],setTimeout(In,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function In(){var e=On;On=null;for(var t=0;t<e.length;++t)e[t]()}function An(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Nn(e,t):"gutter"==o?Dn(e,t,n,r):"class"==o?Ln(e,t):"widget"==o&&jn(e,t,r)}t.changes=null}function Rn(e){return e.node==e.text&&(e.node=I("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Pn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Rn(t);t.background=r.insertBefore(I("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Mn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):pn(e,t)}function Nn(e,t){var n=t.text.className,r=Mn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Ln(e,t)):n&&(t.text.className=n)}function Ln(e,t){Pn(e,t),t.line.wrapClass?Rn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Dn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Rn(t);t.gutterBackground=I("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Rn(t),s=t.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(I("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(I("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function jn(e,t,n){t.alignable&&(t.alignable=null);for(var r=C("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Bn(e,t,n)}function Fn(e,t,n,r){var i=Mn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Ln(e,t),Dn(e,t,n,r),Bn(e,t,r),t.node}function Bn(e,t,n){if(qn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)qn(e,t.rest[r],t,n,!1)}function qn(e,t,n,r,i){if(t.widgets)for(var o=Rn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=I("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),zn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Tn(l,"redraw")}}function zn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Un(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!R(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,I("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Gn(e,t){for(var n=ke(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Vn(e){return e.lineSpace.offsetTop}function Wn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Hn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,I("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function $n(e){return z-e.display.nativeBarWidth}function Kn(e){return e.display.scroller.clientWidth-$n(e)-e.display.barWidth}function Xn(e){return e.display.scroller.clientHeight-$n(e)-e.display.barHeight}function Yn(e,t,n){var r=e.options.lineWrapping,i=r&&Kn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Jn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(et(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Qn(e,t){t=Jt(t);var n=et(t),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}function Zn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Lr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function tr(e,t){var n=et(t),r=er(e,n);r&&!r.text?r=null:r&&r.changes&&(An(e,r,n,Ar(e)),e.curOp.forceUpdate=!0),r||(r=Qn(e,t));var i=Jn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function nr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Yn(e,t.view,t.rect),t.hasHeights=!0),o=sr(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var rr,ir={left:0,right:0,top:0,bottom:0};function or(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?(i=t-s,o=i+1):(c==e.length-3||t==l&&e[c+3]>t)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(c&&e[c-2]==e[c-3]&&e[c-1].insertLeft)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)while(c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function ar(e,t){var n=ir;if("left"==t){for(var r=0;r<e.length;r++)if((n=e[r]).left!=n.right)break}else for(var i=e.length-1;i>=0;i--)if((n=e[i]).left!=n.right)break;return n}function sr(e,t,n,r){var i,o=or(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){while(c&&oe(t.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+u<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+u)))++u;if(i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ar(E(l,c,u).getClientRects(),r),i.left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=lr(e.display.measure,i))}else{var h;c>0&&(d=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Ir(e.display),top:p.top,bottom:p.bottom}:ir}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1;b++)if(v<y[b])break;var _=b?y[b-1]:0,w=y[b],x={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:_,bottom:w};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}function lr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!je(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function cr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function ur(e){e.display.externalMeasure=null,O(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)cr(e.display.view[t])}function dr(e){ur(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function fr(){return u&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hr(){return u&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function pr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Un(e.widgets[n]));return t}function mr(e,t,n,r,i){if(!i){var o=pr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=on(t);if("local"==r?a+=Vn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:hr());var l=s.left+("window"==r?0:fr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function gr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=fr(),i-=hr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function vr(e,t,n,r,i){return r||(r=Ye(e.doc,t.line)),mr(e,r,Zn(e,r,t.ch,i),n)}function yr(e,t,n,r,i,o){function a(t,a){var s=nr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,mr(e,r,s,n)}r=r||Ye(e.doc,t.line),i||(i=tr(e,r));var s=fe(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var d=ue(s,l,c),f=ce,h=u(l,d,"before"==c);return null!=f&&(h.other=u(l,f,"before"!=c)),h}function br(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=Ir(e.display)*t.ch);var r=Ye(e.doc,t.line),i=on(r)+Vn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function _r(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function wr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return _r(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return _r(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=Er(e,a,i,t,n),l=Xt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Ye(r,i=c.line)}}function xr(e,t,n,r){r-=pr(t);var i=t.text.length,o=se((function(t){return nr(e,n,t-1).bottom<=r}),i,0);return i=se((function(t){return nr(e,n,t).top>r}),o,i),{begin:o,end:i}}function Sr(e,t,n,r){n||(n=tr(e,t));var i=mr(e,t,nr(e,n,r),"line").top;return xr(e,t,n,i)}function Cr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Er(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=pr(t),s=0,l=t.text.length,c=!0,u=fe(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Or:kr)(e,t,n,o,u,r,i);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var f,h,p=null,m=null,g=se((function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!Cr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==c;g=p+(b?0:1),h=b?"after":"before",f=y?m.left:m.right}else{c||g!=l&&g!=s||g++,h=0==g?"after":g==t.text.length?"before":nr(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var _=yr(e,it(n,g,h),"line",t,o);f=_.left,v=i<_.top?-1:i>=_.bottom?1:0}return g=ae(t.text,g,1),_r(n,g,h,v,r-f)}function kr(e,t,n,r,i,o,a){var s=se((function(s){var l=i[s],c=1!=l.level;return Cr(yr(e,it(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=yr(e,it(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Cr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Or(e,t,n,r,i,o,a){var s=xr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<i.length;f++){var h=i[f];if(!(h.from>=c||h.to<=l)){var p=1!=h.level,m=nr(e,r,p?Math.min(c,h.to)-1:Math.max(l,h.from)).right,g=m<o?o-m+1e9:m-o;(!u||d>g)&&(u=h,d=g)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Tr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(I("br"));rr.appendChild(document.createTextNode("x"))}T(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function Ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=I("span","xxxxxxxxxx"),n=I("pre",[t],"CodeMirror-line-like");T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Rr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Rr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Pr(e){var t=Tr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ir(e.display)-3);return function(i){if(nn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Mr(e){var t=e.doc,n=Pr(e);t.iter((function(e){var t=n(e);t!=e.height&&Ze(e,t)}))}function Nr(e,t,n,r){var i=e.display;if(!n&&"true"==ke(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(d){return null}var l,c=wr(e,o,a);if(r&&c.xRel>0&&(l=Ye(e.doc,c.line).text).length==c.ch){var u=F(l,l.length,e.options.tabSize)-l.length;c=it(c.line,Math.max(0,Math.round((o-Hn(e.display).left)/Ir(e.display))-u))}return c}function Lr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Dr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)It&&en(e.doc,t)<i.viewTo&&Fr(e);else if(n<=i.viewFrom)It&&tn(e.doc,n+r)>i.viewFrom?Fr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Fr(e);else if(t<=i.viewFrom){var o=Br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Fr(e)}else if(n>=i.viewTo){var a=Br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Fr(e)}else{var s=Br(e,t,t,-1),l=Br(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(xn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Fr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function jr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Lr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==q(a,n)&&a.push(n)}}}function Fr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Br(e,t,n,r){var i,o=Lr(e,t),a=e.display.view;if(!It||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(en(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function qr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=xn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=xn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Lr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(xn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Lr(e,n)))),r.viewTo=n}function zr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Ur(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Gr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&Vr(e,s.head,i),l||Hr(e,s,o)}}return r}function Vr(e,t,n){var r=yr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(I("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(I("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Wr(e,t){return e.top-t.top||e.left-t.left}function Hr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Hn(e.display),s=a.left,l=Math.max(r.sizerWidth,Kn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ye(i,t),f=d.text.length;function h(n,r){return vr(e,it(t,n),"div",d,r)}function p(t,n,r){var i=Sr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return h(a,o)[o]}var m=fe(d,i.direction);return le(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=h(e,g?"left":"right"),y=h(t-1,g?"right":"left"),b=null==n&&0==e,_=null==r&&t==f,w=0==d,x=!m||d==m.length-1;if(y.top-v.top<=3){var S=(c?b:_)&&w,C=(c?_:b)&&x,E=S?s:(g?v:y).left,k=C?l:(g?y:v).right;u(E,v.top,k-E,v.bottom)}else{var O,T,I,A;g?(O=c&&b&&w?s:v.left,T=c?l:p(e,i,"before"),I=c?s:p(t,i,"after"),A=c&&_&&x?l:y.right):(O=c?p(e,i,"before"):s,T=!c&&b&&w?l:v.right,I=!c&&_&&x?s:y.left,A=c?p(t,i,"after"):l),u(O,v.top,T-O,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(I,y.top,A-I,y.bottom)}(!o||Wr(v,o)<0)&&(o=v),Wr(y,o)<0&&(o=y),(!a||Wr(v,a)<0)&&(a=v),Wr(y,a)<0&&(a=y)})),{start:o,end:a}}var f=t.from(),h=t.to();if(f.line==h.line)d(f.line,f.ch,h.ch);else{var p=Ye(i,f.line),m=Ye(i,h.line),g=Jt(p)==Jt(m),v=d(f.line,f.ch,g?p.text.length+1:null).end,y=d(h.line,g?0:null,h.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(o)}function $r(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Yr(e))}function Xr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Jr(e))}),100)}function Yr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),$r(e))}function Jr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,k(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Qr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,l=void 0,c=0;if(!i.hidden){if(a&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;l=u-n,n=u}else{var d=i.node.getBoundingClientRect();l=d.bottom-d.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var f=i.line.height-l;if((f>.005||f<-.005)&&(Ze(i.line,l),Zr(i.line),i.rest))for(var h=0;h<i.rest.length;h++)Zr(i.rest[h]);if(c>e.display.sizerWidth){var p=Math.ceil(c/Ir(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Zr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ei(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Vn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=tt(t,r),a=tt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=tt(t,on(Ye(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=tt(t,on(Ye(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ti(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=I("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Vn(e.display))+"px;\n                         height: "+(t.bottom-t.top+$n(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ni(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?it(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=yr(e,t),l=n&&n!=t?yr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var c=ii(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(di(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(hi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ri(e,t){var n=ii(e,t);null!=n.scrollTop&&di(e,n.scrollTop),null!=n.scrollLeft&&hi(e,n.scrollLeft)}function ii(e,t){var n=e.display,r=Tr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Xn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Wn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=Kn(e)-n.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>h+f-3&&(a.scrollLeft=t.right+(p?0:10)-h),a}function oi(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=br(e,t.from),r=br(e,t.to);ui(e,n,r,t.margin)}}function ui(e,t,n,r){var i=ii(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function di(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Ui(e,{top:t}),fi(e,t,!0),n&&Ui(e),Ni(e,100))}function fi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function hi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Hi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function pi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Wn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+$n(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mi=function(e,t,n){this.cm=n;var r=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},mi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var e=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},mi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},mi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gi=function(){};function vi(e,t){t||(t=pi(e));var n=e.display.barWidth,r=e.display.barHeight;yi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Qr(e),yi(e,pi(e)),n=e.display.barWidth,r=e.display.barHeight}function yi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}gi.prototype.update=function(){return{bottom:0,right:0}},gi.prototype.setScrollLeft=function(){},gi.prototype.setScrollTop=function(){},gi.prototype.clear=function(){};var bi={native:mi,null:gi};function _i(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&k(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?hi(e,t):di(e,t)}),e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var wi=0;function xi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++wi},Cn(e.curOp)}function Si(e){var t=e.curOp;t&&kn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ci(e)}))}function Ci(e){for(var t=e.ops,n=0;n<t.length;n++)Ei(t[n]);for(var r=0;r<t.length;r++)ki(t[r]);for(var i=0;i<t.length;i++)Oi(t[i]);for(var o=0;o<t.length;o++)Ti(t[o]);for(var a=0;a<t.length;a++)Ii(t[a])}function Ei(e){var t=e.cm,n=t.display;ji(t),e.updateMaxLine&&sn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Di(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ki(e){e.updatedDisplay=e.mustUpdate&&qi(e.cm,e.update)}function Oi(e){var t=e.cm,n=t.display;e.updatedDisplay&&Qr(t),e.barMeasure=pi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Zn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+$n(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Kn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&hi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==P();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&vi(t,e.barMeasure),e.updatedDisplay&&Wi(t,e.barMeasure),e.selectionChanged&&$r(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Kr(e.cm)}function Ii(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&zi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&fi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&hi(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=ni(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin);ti(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||ve(o[s],"hide");if(a)for(var l=0;l<a.length;++l)a[l].lines.length&&ve(a[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ai(e,t){if(e.curOp)return t();xi(e);try{return t()}finally{Si(e)}}function Ri(e,t){return function(){if(e.curOp)return t.apply(e,arguments);xi(e);try{return t.apply(e,arguments)}finally{Si(e)}}}function Pi(e){return function(){if(this.curOp)return e.apply(this,arguments);xi(this);try{return e.apply(this,arguments)}finally{Si(this)}}}function Mi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);xi(t);try{return e.apply(this,arguments)}finally{Si(t)}}}function Ni(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,D(Li,e))}function Li(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?He(t.mode,r.state):null,l=gt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Ni(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ai(e,(function(){for(var t=0;t<i.length;t++)jr(e,i[t],"text")}))}}var Di=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ei(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Kn(e),this.force=n,this.dims=Ar(e),this.events=[]};function ji(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=$n(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=$n(e)+"px",t.scrollbarsClipped=!0)}function Fi(e){if(e.hasFocus())return null;var t=P();if(!t||!R(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&R(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Bi(e){if(e&&e.activeElt&&e.activeElt!=P()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function qi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Fr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==zr(e))return!1;$i(e)&&(Fr(e),t.dims=Ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),It&&(o=en(e.doc,o),a=tn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;qr(e,o,a),n.viewOffset=on(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=zr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Fi(e);return l>4&&(n.lineDiv.style.display="none"),Gi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Bi(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ni(e,400)),n.updateLineNumbers=null,!0}function zi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Kn(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Wn(e.display)-Xn(e),n.top)}),t.visible=ei(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!qi(e,t))break;Qr(e);var i=pi(e);Ur(e),vi(e,i),Wi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new Di(e,t);if(qi(e,n)){Qr(e),zi(e,n);var r=pi(e);Ur(e),vi(e,r),Wi(e,r),n.finish()}}function Gi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var f=c[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){while(a!=f.node)a=s(a);var h=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(q(f.changes,"gutter")>-1&&(h=!1),An(e,f,u,n)),h&&(O(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,u)))),a=f.node.nextSibling}else{var p=Fn(e,f,u,n);o.insertBefore(p,a)}u+=f.size}while(a)a=s(a)}function Vi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Wi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+$n(e)+"px"}function Hi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Rr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function $i(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(I("div",[I("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Vi(e.display),!0}return!1}function Ki(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Xi(e){var t=e.gutters,n=e.gutterSpecs;O(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(I("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Vi(e)}function Yi(e){Xi(e.display),Dr(e),Hi(e)}function Ji(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=I("div",null,"CodeMirror-cursors"),o.measure=I("div",null,"CodeMirror-measure"),o.lineMeasure=I("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=I("div",[c],null,"position: relative"),o.sizer=I("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=I("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),o.gutters=I("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=I("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=I("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ki(i.gutters,i.lineNumbers),Xi(o),r.init(o)}Di.prototype.signal=function(e,t){_e(e,t)&&this.events.push(arguments)},Di.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};var Qi=0,Zi=null;function eo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function to(e){var t=eo(e);return t.x*=Zi,t.y*=Zi,t}function no(e,t){var r=eo(t),i=r.x,o=r.y,a=e.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&y&&l)e:for(var f=t.target,h=a.view;f!=s;f=f.parentNode)for(var p=0;p<h.length;p++)if(h[p].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!d&&null!=Zi)return o&&u&&di(e,Math.max(0,s.scrollTop+o*Zi)),hi(e,Math.max(0,s.scrollLeft+i*Zi)),(!o||o&&u)&&xe(t),void(a.wheelStartX=null);if(o&&null!=Zi){var m=o*Zi,g=e.doc.scrollTop,v=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(e.doc.height,v+m+50),Ui(e,{top:g,bottom:v})}Qi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Zi=(Zi*Qi+n)/(Qi+1),++Qi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?Zi=-.53:n?Zi=15:u?Zi=-.7:f&&(Zi=-1/3);var ro=function(e,t){this.ranges=e,this.primIndex=t};ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new io(st(this.ranges[t].anchor),st(this.ranges[t].head));return new ro(e,this.primIndex)},ro.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ro.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ot(t,r.from())>=0&&ot(e,r.to())<=0)return n}return-1};var io=function(e,t){this.anchor=e,this.head=t};function oo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=q(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ot(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ct(s.from(),a.from()),u=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new io(d?u:c,d?c:u))}}return new ro(t,n)}function ao(e,t){return new ro([new io(e,t||e)],0)}function so(e){return e.text?it(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),it(n,r)}function co(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new io(lo(i.anchor,t),lo(i.head,t)))}return oo(e.cm,n,e.sel.primIndex)}function uo(e,t,n){return e.line==t.line?it(n.line,e.ch-t.ch+n.ch):it(n.line+(e.line-t.line),e.ch)}function fo(e,t,n){for(var r=[],i=it(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=uo(s.from,i,o),c=uo(so(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=ot(u.head,u.anchor)<0;r[a]=new io(d?c:l,d?l:c)}else r[a]=new io(l,l)}return new ro(r,e.sel.primIndex)}function ho(e){e.doc.mode=Ge(e.options,e.doc.modeOption),po(e)}function po(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ni(e,100),e.state.modeGen++,e.curOp&&Dr(e)}function mo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function go(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){cn(e,n,i,r),Tn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new ln(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=Ye(e,s.line),d=Ye(e,l.line),f=X(c),h=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(mo(e,t)){var m=a(0,c.length-1);o(d,d.text,h),p&&e.remove(s.line,p),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),h);else{var g=a(1,c.length-1);g.push(new ln(f+u.text.slice(l.ch),h,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,f+d.text.slice(l.ch),h);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}Tn(e,"change",e,t)}function vo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function yo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Mr(e),ho(e),bo(e),e.options.lineWrapping||sn(e),e.options.mode=t.modeOption,Dr(e)}function bo(e){("rtl"==e.doc.direction?M:k)(e.display.lineDiv,"CodeMirror-rtl")}function _o(e){Ai(e,(function(){bo(e),Dr(e)}))}function wo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function xo(e,t){var n={from:st(t.from),to:so(t),text:Je(e,t.from,t.to)};return Io(e,n,t.from.line,t.to.line+1),vo(e,(function(e){return Io(e,n,t.from.line,t.to.line+1)}),!0),n}function So(e){while(e.length){var t=X(e);if(!t.ranges)break;e.pop()}}function Co(e,t){return t?(So(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}function Eo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Co(i,i.lastOp==r)))a=X(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=so(t):o.changes.push(xo(e,t));else{var l=X(i.done);l&&l.ranges||To(e.sel,i.done),o={changes:[xo(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function ko(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ko(e,o,X(i.done),t))?i.done[i.done.length-1]=t:To(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&So(i.undone)}function To(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Io(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ao(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Ro(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Ao(n[i]));return r}function Po(e,t){var n=Ro(e,t),r=Ft(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Mo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?ro.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&q(t,Number(u[1]))>-1&&(X(s)[d]=c[d],delete c[d])}}}return r}function No(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new io(i,t)}return new io(n||t,t)}function Lo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),zo(e,new ro([No(e.sel.primary(),t,n,i)],0),r)}function Do(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=No(e.sel.ranges[o],t[o],null,i);var a=oo(e.cm,r,e.sel.primIndex);zo(e,a,n)}function jo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,zo(e,oo(e.cm,i,e.sel.primIndex),r)}function Fo(e,t,n,r){zo(e,ao(t,n),r)}function Bo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new io(dt(e,t[n].anchor),dt(e,t[n].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?oo(e.cm,r.ranges,r.ranges.length-1):t}function qo(e,t,n){var r=e.history.done,i=X(r);i&&i.ranges?(r[r.length-1]=t,Uo(e,t,n)):zo(e,t,n)}function zo(e,t,n){Uo(e,t,n),Oo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Uo(e,t,n){(_e(e,"beforeSelectionChange")||e.cm&&_e(e.cm,"beforeSelectionChange"))&&(t=Bo(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);Go(e,Wo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ai(e.cm)}function Go(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),Tn(e,"cursorActivity",e))}function Vo(e){Go(e,Wo(e,e.sel,null,!1))}function Wo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=$o(e,a.anchor,s&&s.anchor,n,r),c=$o(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new io(l,c))}return i?oo(e.cm,i,t.primIndex):t}function Ho(e,t,n,r,i){var o=Ye(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(d=Ko(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ot(d,n))&&(r<0?f<0:f>0))return Ho(e,d,t,r,i)}var h=l.find(r<0?-1:1);return(r<0?c:u)&&(h=Ko(e,h,r,h.line==t.line?o:null)),h?Ho(e,h,t,r,i):null}}return t}function $o(e,t,n,r,i){var o=r||1,a=Ho(e,t,n,o,i)||!i&&Ho(e,t,n,o,!0)||Ho(e,t,n,-o,i)||!i&&Ho(e,t,n,-o,!0);return a||(e.cantEdit=!0,it(e.first,0))}function Ko(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line<e.first+e.size-1?it(t.line+1,0):null:new it(t.line,t.ch+n)}function Xo(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),G)}function Yo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=dt(e,t)),n&&(r.to=dt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ve(e,"beforeChange",e,r),e.cm&&ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Jo(e,t,n){if(e.cm){if(!e.cm.curOp)return Ri(e.cm,Jo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"))||(t=Yo(e,t,!0),t)){var r=Tt&&!n&&qt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Qo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Qo(e,t)}}function Qo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=co(e,t);Eo(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Ft(e,t));var r=[];vo(e,(function(e,n){n||-1!=q(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,Ft(e,t))}))}}function Zo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length;c++)if(i=s[c],n?i.ranges&&!i.equals(e.sel):!i.ranges)break;if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(To(i,l),n&&!i.equals(e.sel))return void zo(e,i,{clearRedo:!1});a=i}var u=[];To(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!Yo(e,r,!1))return s.length=0,{};u.push(xo(e,r));var o=n?co(e,r):X(s);ta(e,r,o,Po(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:so(r)});var a=[];vo(e,(function(e,t){t||-1!=q(a,e.history)||(aa(e.history,r),a.push(e.history)),ta(e,r,null,Po(e,r))}))},h=i.changes.length-1;h>=0;--h){var p=f(h);if(p)return p.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Y(e.sel.ranges,(function(e){return new io(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)jr(e.cm,r,"gutter")}}function ta(e,t,n,r){if(e.cm&&!e.cm.curOp)return Ri(e.cm,ta)(e,t,n,r);if(t.to.line<e.first)ea(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ea(e,i),t={from:it(e.first,0),to:it(t.to.line+i,t.to.ch),text:[X(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Je(e,t.from,t.to),n||(n=co(e,t)),e.cm?na(e.cm,t,r):go(e,t,r),Uo(e,n,G),e.cantEdit&&$o(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et(Jt(Ye(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),go(r,t,n,Pr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Ot(r,o.line),Ni(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Dr(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Dr(e,o.line,a.line+1,c):jr(e,o.line,"text");var u=_e(e,"changes"),d=_e(e,"change");if(d||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Tn(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Jo(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function oa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)ia(o.ranges[s].anchor,t,n,r),ia(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=it(c.from.line+r,c.from.ch),c.to=it(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function aa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;oa(e.done,n,r,i),oa(e.undone,n,r,i)}function sa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ye(e,ut(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&jr(e.cm,i,n),o)}function la(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ca(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}io.prototype.from=function(){return ct(this.anchor,this.head)},io.prototype.to=function(){return lt(this.anchor,this.head)},io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,un(i),Tn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ca.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new la(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new ca(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=q(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new ca(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ua=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function da(e,t,n){on(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&oi(e,n)}function fa(e,t,n,r){var i=new ua(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),sa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!nn(e,t)){var r=on(t)<e.scrollTop;Ze(t,t.height+Un(i)),r&&oi(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&Tn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:et(t)),i}ua.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Un(this);Ze(n,Math.max(0,n.height-o)),e&&(Ai(e,(function(){da(e,n,-o),jr(e,r,"widget")})),Tn(e,"lineWidgetCleared",e,this,r))}},ua.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Un(this)-t;i&&(nn(this.doc,r)||Ze(r,r.height+i),n&&Ai(n,(function(){n.curOp.forceUpdate=!0,da(n,r,i),Tn(n,"lineWidgetChanged",n,e,et(r))})))},we(ua);var ha=0,pa=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ha};function ma(e,t,n,r,i){if(r&&r.shared)return va(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Ri(e.cm,ma)(e,t,n,r,i);var o=new pa(e,i),a=ot(t,n);if(r&&j(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Yt(e,t.line,t,n,o)||t.line!=n.line&&Yt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rt()}o.addToHistory&&Eo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Jt(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ze(e,0),Lt(e,new Pt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&Ze(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(At(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Dr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)jr(c,u,"text");o.atomic&&Vo(c.doc),Tn(c,"markerAdded",c,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&xi(e),_e(this,"clear")){var n=this.find();n&&Tn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Mt(a.markedSpans,this);e&&!this.collapsed?jr(e,et(a),"text"):e&&(null!=s.to&&(i=et(a)),null!=s.from&&(r=et(a))),a.markedSpans=Nt(a.markedSpans,s),null==s.from&&this.collapsed&&!nn(this.doc,a)&&e&&Ze(a,Tr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Jt(this.lines[l]),u=an(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Dr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Vo(e.doc)),e&&Tn(e,"markerCleared",e,this,r,i),t&&Si(e),this.parent&&this.parent.clear()}},pa.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Mt(o.markedSpans,this);if(null!=a.from&&(n=it(t?o:et(o),a.from),-1==e))return n;if(null!=a.to&&(r=it(t?o:et(o),a.to),1==e))return r}return n&&{from:n,to:r}},pa.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ai(r,(function(){var i=t.line,o=et(t.line),a=er(r,o);if(a&&(cr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!nn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Un(n)-s;l&&Ze(i,i.height+l)}Tn(r,"markerChanged",r,e)}))},pa.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=q(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},pa.prototype.detachLine=function(e){if(this.lines.splice(q(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(pa);var ga=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function va(e,t,n,r,i){r=j(r),r.shared=!1;var o=[ma(e,t,n,r,i)],a=o[0],s=r.widgetNode;return vo(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ma(e,dt(e,t),dt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=X(o)})),new ga(o,a)}function ya(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),(function(e){return e.parent}))}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ot(o,a)){var s=ma(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function _a(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];vo(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==q(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}ga.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Tn(this,"clear")}},ga.prototype.find=function(e,t){return this.primary.find(e,t)},we(ga);var wa=0,xa=function(e,t,n,r,i){if(!(this instanceof xa))return new xa(e,t,n,r,i);null==n&&(n=0),ca.call(this,[new la([new ln("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=it(n,0);this.sel=ao(o),this.history=new wo(null),this.id=++wa,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),go(this,{from:o,to:o,text:e}),zo(this,ao(o),G)};xa.prototype=Z(ca.prototype,{constructor:xa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Qe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Mi((function(e){var t=it(this.first,0),n=this.first+this.size-1;Jo(this,{from:t,to:it(n,Ye(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&si(this.cm,0,0),zo(this,ao(t),G)})),replaceRange:function(e,t,n,r){t=dt(this,t),n=n?dt(this,n):t,ra(this,e,t,n,r)},getRange:function(e,t,n){var r=Je(this,dt(this,e),dt(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Ye(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ye(this,e)),Jt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return dt(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||!1===e?n.to():n.from(),t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mi((function(e,t,n){Fo(this,dt(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:Mi((function(e,t,n){Fo(this,dt(this,e),dt(this,t||e),n)})),extendSelection:Mi((function(e,t,n){Lo(this,dt(this,e),t&&dt(this,t),n)})),extendSelections:Mi((function(e,t){Do(this,ht(this,e),t)})),extendSelectionsBy:Mi((function(e,t){var n=Y(this.sel.ranges,e);Do(this,ht(this,n),t)})),setSelections:Mi((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new io(dt(this,e[i].anchor),dt(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),zo(this,oo(this.cm,r,t),n)}})),addSelection:Mi((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new io(dt(this,e),dt(this,t||e))),zo(this,oo(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Mi((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&fo(this,r,t),l=r.length-1;l>=0;l--)Jo(this,r[l]);s?qo(this,s):this.cm&&ai(this.cm)})),undo:Mi((function(){Zo(this,"undo")})),redo:Mi((function(){Zo(this,"redo")})),undoSelection:Mi((function(){Zo(this,"undo",!0)})),redoSelection:Mi((function(){Zo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new wo(this.history),vo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Mo(this.history.done),undone:Mo(this.history.undone)}},setHistory:function(e){var t=this.history=new wo(this.history);t.done=Mo(e.done.slice(0),null,!0),t.undone=Mo(e.undone.slice(0),null,!0)},setGutterMarker:Mi((function(e,t,n){return sa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Mi((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&sa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,e=Ye(this,e),!e)return null}else if(t=et(e),null==t)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Mi((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Mi((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Mi((function(e,t,n){return fa(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ma(this,dt(this,e),dt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=dt(this,e),ma(this,e,e,n,"bookmark")},findMarksAt:function(e){e=dt(this,e);var t=[],n=Ye(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),dt(this,it(n,t))},indexFromPos:function(e){e=dt(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new xa(Qe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new xa(Qe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ba(r,ya(this)),r},unlinkDoc:function(e){if(e instanceof Ds&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),_a(ya(this));break}}if(e.history==this.history){var r=[e.id];vo(e,(function(e){return r.push(e.id)}),!0),e.history=new wo(null),e.history.done=Mo(this.history.done,r),e.history.undone=Mo(this.history.undone,r)}},iterLinkedDocs:function(e){vo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Me(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Mi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&_o(this.cm))}))}),xa.prototype.eachLine=xa.prototype.iter;var Sa=0;function Ca(e){var t=this;if(Oa(t),!ye(t,e)&&!Gn(t.display,e)){xe(e),a&&(Sa=+new Date);var n=Nr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&Ri(t,(function(){n=dt(t.doc,n);var e={from:n,to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Jo(t.doc,e),qo(t.doc,ao(dt(t.doc,n),dt(t.doc,so(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==q(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Uo(t.doc,ao(n,n)),f)for(var h=0;h<f.length;++h)ra(t.doc,"",f[h].anchor,f[h].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(p){}}}}function Ea(e,t){if(a&&(!e.state.draggingText||+new Date-Sa<100))Ee(t);else if(!ye(e,t)&&!Gn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=I("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function ka(e,t){var n=Nr(e,t);if(n){var r=document.createDocumentFragment();Vr(e,n,r),e.display.dragCursor||(e.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}function Oa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ta(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Ia=!1;function Aa(){Ia||(Ra(),Ia=!0)}function Ra(){var e;pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ta(Pa)}),100))})),pe(window,"blur",(function(){return Ta(Jr)}))}function Pa(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ma={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Na=0;Na<10;Na++)Ma[Na+48]=Ma[Na+96]=String(Na);for(var La=65;La<=90;La++)Ma[La]=String.fromCharCode(La);for(var Da=1;Da<=12;Da++)Ma[Da+111]=Ma[Da+63235]="F"+Da;var ja={};function Fa(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ba(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),Fa),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function qa(e,t,n,r){t=Va(t);var i=t.call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return qa(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=qa(e,t.fallthrough[o],n,r);if(a)return a}}}function za(e){var t="string"==typeof e?e:Ma[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ua(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ga(e,t){if(d&&34==e.keyCode&&e["char"])return!1;var n=Ma[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ua(n,e,t))}function Va(e){return"string"==typeof e?ja[e]:e}function Wa(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){var o=t(n[i]);while(r.length&&ot(o.from,X(r).to)<=0){var a=r.pop();if(ot(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ai(e,(function(){for(var t=r.length-1;t>=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)}))}function Ha(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function $a(e,t,n){var r=Ha(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Ka(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(n,t.doc.direction);if(o){var a,s=i<0?X(o):o[0],l=i<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=tr(t,n);a=i<0?n.text.length-1:0;var d=nr(t,u,a).top;a=se((function(e){return nr(t,u,e).top==d}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Ha(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,c)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function Xa(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return $a(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return $a(t,n,r);var s,l=function(e,n){return Ha(t,e instanceof it?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||tr(e,t),Sr(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var h=d?"before":"after";return new it(n.line,f,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=p(o+r,r,u);if(m)return m;var g=r>0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||(m=p(r>0?0:i.length-1,r,c(g)),!m)?null:m}ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ja["default"]=y?ja.macDefault:ja.pcDefault;var Ya={selectAll:Xo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Wa(e,(function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:it(t.head.line+1,0)}:{from:t.head,to:it(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Wa(e,(function(t){return{from:it(t.from().line,0),to:dt(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return Wa(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Wa(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}}))},delWrappedLineRight:function(e){return Wa(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Ja(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Za(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Qa(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),W)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),W)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Za(e,t.head):r}),W)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=F(e.getLine(o.line),o.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ai(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ye(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new it(i.line,i.ch-1)),i.ch>0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ai(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ai(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ja(e,t){var n=Ye(e.doc,t),r=Jt(n);return r!=n&&(t=et(r)),Ka(!0,e,r,t,1)}function Qa(e,t){var n=Ye(e.doc,t),r=Qt(n);return r!=n&&(t=et(r)),Ka(!0,e,n,t,-1)}function Za(e,t){var n=Ja(e,t.line),r=Ye(e.doc,n.line),i=fe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return it(n.line,a?0:o,n.sticky)}return n}function es(e,t,n){if("string"==typeof t&&(t=Ya[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ts(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=qa(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&qa(t,e.options.extraKeys,n,e)||qa(t,e.options.keyMap,n,e)}var ns=new B;function rs(e,t,n,r){var i=e.state.keySeq;if(i){if(za(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ns.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),is(e,i+" "+t,n,r))return!0}return is(e,t,n,r)}function is(e,t,n,r){var i=ts(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Tn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xe(n),$r(e)),!!i}function os(e,t){var n=Ga(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?rs(e,"Shift-"+n,t,(function(t){return es(e,t,!0)}))||rs(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return es(e,t)})):rs(e,n,t,(function(t){return es(e,t)})))}function as(e,t,n){return rs(e,"'"+n+"'",t,(function(t){return es(e,t,!0)}))}var ss=null;function ls(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&(t.curOp.focus=P(),!ye(t,e))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=os(t,e);d&&(ss=i?r:null,i||88!=r||Le||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||cs(t)}}function cs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(k(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}function us(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function ds(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&!(Gn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ss)return ss=null,void xe(e);if(!d||e.which&&!(e.which<10)||!os(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(as(t,e,i)||t.display.input.onKeyPress(e))}}}var fs,hs,ps=400,ms=function(e,t,n){this.time=e,this.pos=t,this.button=n};function gs(e,t){var n=+new Date;return hs&&hs.compare(n,e,t)?(fs=hs=null,"triple"):fs&&fs.compare(n,e,t)?(hs=new ms(n,e,t),fs=null,"double"):(fs=new ms(n,e,t),hs=null,"single")}function vs(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Gn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ks(t,e)){var r=Nr(t,e),i=Oe(e),o=r?gs(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&ys(t,i,r,o,e)||(1==i?r?_s(t,r,o,e):ke(e)==n.scroller&&xe(e):2==i?(r&&Lo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(S?t.display.input.onContextMenu(e):Xr(t)))}}function ys(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,rs(e,Ua(o,i),i,(function(t){if("string"==typeof t&&(t=Ya[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}function bs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}function _s(e,t,n,r){a?setTimeout(D(Kr,e),0):e.curOp.focus=P();var i,o=bs(e,n,r),s=e.doc.sel;e.options.dragDrop&&Ae&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ot((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?ws(e,r,t,o):Ss(e,r,t,o)}function ws(e,t,n,r){var i=e.display,o=!1,c=Ri(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Xr(e)),ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",c),o||(xe(t),r.addNew||Lo(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function xs(e,t,n){if("char"==n)return new io(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new io(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function Ss(e,t,n,r){a&&Xr(e);var i=e.display,o=e.doc;xe(t);var s,l,c=o.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new io(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new io(n,n)),n=Nr(e,t,!0,!0),l=-1;else{var d=xs(e,n,r.unit);s=r.extend?No(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,zo(o,oo(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(zo(o,oo(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):jo(o,l,s,V):(l=0,zo(o,new ro([s],0),V),c=o.sel);var f=n;function h(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=F(Ye(o,n.line).text,n.ch,a),d=F(Ye(o,t.line).text,t.ch,a),h=Math.min(u,d),p=Math.max(u,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ye(o,m).text,y=H(v,h,a);h==p?i.push(new io(it(m,y),it(m,y))):v.length>y&&i.push(new io(it(m,y),it(m,H(v,p,a))))}i.length||i.push(new io(n,n)),zo(o,oo(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=s,w=xs(e,t,r.unit),x=_.anchor;ot(w.anchor,x)>0?(b=w.head,x=ct(_.from(),w.anchor)):(b=w.anchor,x=lt(_.to(),w.head));var S=c.ranges.slice(0);S[l]=Cs(e,new io(dt(o,x),b)),zo(o,oo(e,S,l),V)}}var p=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Nr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,f)){e.curOp.focus=P(),h(a);var s=ei(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Ri(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;l&&setTimeout(Ri(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(xe(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",y),ge(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Ri(e,(function(e){0!==e.buttons&&Oe(e)?g(e):v(e)})),b=Ri(e,v);e.state.selectingText=b,pe(i.wrapper.ownerDocument,"mousemove",y),pe(i.wrapper.ownerDocument,"mouseup",b)}function Cs(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var f=o[c+(l?-1:0)],h=l==(1==f.level),p=h?f.from:f.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new io(new it(n.line,p,m),r)}function Es(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(f){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!_e(e,n))return Ce(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i){var u=tt(e.doc,o),d=e.display.gutterSpecs[l];return ve(e,n,e,u,d.className,t),Ce(t)}}}function ks(e,t){return Es(e,t,"gutterClick",!0)}function Os(e,t){Gn(e.display,t)||Ts(e,t)||ye(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Ts(e,t){return!!_e(e,"gutterContextMenu")&&Es(e,t,"gutterContextMenu",!1)}function Is(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dr(e)}ms.prototype.compare=function(e,t,n){return this.time+ps>e&&0==ot(t,this.pos)&&n==this.button};var As={toString:function(){return"CodeMirror.Init"}},Rs={},Ps={};function Ms(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=As&&i(e,t,n)}:i)}e.defineOption=n,e.Init=As,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ho(e)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){po(e),dr(e),Dr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=As&&e.refresh()})),n("specialCharPlaceholder",mn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Is(e),Yi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Va(t),i=n!=As&&Va(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ls,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ki(t,e.options.lineNumbers),Yi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Rr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return vi(e)}),!0),n("scrollbarStyle","native",(function(e){_i(e),vi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ki(e.options.gutters,t),Yi(e)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(e){return e}),Yi,!0),n("showCursorWhenSelecting",!1,Ur,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Jr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ns),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ur,!0),n("singleCursorHeightPerLine",!0,Ur,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ns(e,t,n){var r=n&&n!=As;if(!t!=!r){var i=e.display.dragFunctions,o=t?pe:ge;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Ls(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(k(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Mr(e),Dr(e),dr(e),setTimeout((function(){return vi(e)}),100)}function Ds(e,t){var n=this;if(!(this instanceof Ds))return new Ds(e,t);this.options=t=t?j(t):{},j(Rs,t,!1);var r=t.value;"string"==typeof r?r=new xa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ds.inputStyles[t.inputStyle](this),o=this.display=new Ji(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Is(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_i(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),js(this),Aa(),xi(this),this.curOp.forceUpdate=!0,yo(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Jr(this),Ps)Ps.hasOwnProperty(c)&&Ps[c](this,t[c],As);$i(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Fs.length;++u)Fs[u](this);Si(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function js(e){var t=e.display;pe(t.scroller,"mousedown",Ri(e,vs)),pe(t.scroller,"dblclick",a&&s<11?Ri(e,(function(t){if(!ye(e,t)){var n=Nr(e,t);if(n&&!ks(e,t)&&!Gn(e.display,t)){xe(t);var r=e.findWordAt(n);Lo(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||xe(t)}),pe(t.scroller,"contextmenu",(function(t){return Os(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Os(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!o(i)&&!ks(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Gn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new io(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new io(it(a.line,0),dt(e.doc,it(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),xe(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(di(e,t.scroller.scrollTop),hi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return no(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return no(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ee(t)},over:function(t){ye(e,t)||(ka(e,t),Ee(t))},start:function(t){return Ea(e,t)},drop:Ri(e,Ca),leave:function(t){ye(e,t)||Oa(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return us.call(e,t)})),pe(c,"keydown",Ri(e,ls)),pe(c,"keypress",Ri(e,ds)),pe(c,"focus",(function(t){return Yr(e,t)})),pe(c,"blur",(function(t){return Jr(e,t)}))}Ds.defaults=Rs,Ds.optionHandlers=Ps;var Fs=[];function Bs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,s=Ye(o,t),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=o.mode.indent(i,s.text.slice(u.length),s.text),c==U||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?F(Ye(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)f+=a,d+="\t";if(f<c&&(d+=K(c-f)),d!=u)return ra(o,d,it(t,0),it(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];if(m.head.line==t&&m.head.ch<u.length){var g=it(t,u.length);jo(o,p,new io(g,g));break}}}Ds.defineInitHook=function(e){return Fs.push(e)};var qs=null;function zs(e){qs=e}function Us(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Me(t),c=null;if(s&&r.ranges.length>1)if(qs&&qs.text.join("\n")==t){if(r.ranges.length%qs.text.length==0){c=[];for(var u=0;u<qs.text.length;u++)c.push(o.splitLines(qs.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Y(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],p=h.from(),m=h.to();h.empty()&&(n&&n>0?p=it(p.line,p.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Ye(o,m.line).text.length,m.ch+X(l).length)):s&&qs&&qs.lineWise&&qs.text.join("\n")==l.join("\n")&&(p=m=it(p.line,0)));var g={from:p,to:m,text:c?c[f%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Jo(e.doc,g),Tn(e,"inputRead",e,g)}t&&!s&&Vs(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Gs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ai(t,(function(){return Us(t,n,0,null,"paste")})),!0}function Vs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Bs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Bs(e,i.head.line,"smart"));a&&Tn(e,"electricInput",e,i.head.line)}}}function Ws(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:it(i,0),head:it(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Hs(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function $s(){var e=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=I("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Hs(e),t}function Ks(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Ri(this,t[e])(this,n,i),ve(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Va(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Pi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Dr(this)})),removeOverlay:Pi((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Dr(this)}})),indentLine:Pi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Bs(this,e,t,n)})),indentSelection:Pi((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Bs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Bs(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&jo(this.doc,r,new io(o,c[r].to()),G)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=vt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==q(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return e=ut(n,null==e?n.first+n.size-1:e),yt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?dt(this.doc,e):e?r.from():r.to(),yr(this,n,t||"page")},charCoords:function(e,t){return vr(this,dt(this.doc,e),t||"page")},coordsChar:function(e,t){return e=gr(this,e,t||"page"),wr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=gr(this,{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return mr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Tr(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=yr(this,dt(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Pi(ls),triggerOnKeyPress:Pi(ds),triggerOnKeyUp:us,triggerOnMouseDown:Pi(vs),execCommand:function(e){if(Ya.hasOwnProperty(e))return Ya[e].call(null,this)},triggerElectric:Pi((function(e){Vs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a<t;++a)if(o=Xs(this.doc,o,i,n,r),o.hitSide)break;return o},moveH:Pi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Xs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),W)})),deleteH:Pi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Wa(this,(function(n){var i=Xs(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=dt(this.doc,e),s=0;s<t;++s){var l=yr(this,a,"div");if(null==o?o=l.left:l.left=o,a=Ys(this,l,i,n),a.hitSide)break}return a},moveV:Pi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=yr(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ys(n,s,e,t);return"page"==t&&a==r.sel.primary()&&oi(n,vr(n,l,"div").top-s.top),l}),W),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=this.doc,n=Ye(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;var a=n.charAt(r),s=ne(a,o)?function(e){return ne(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};while(r>0&&s(n.charAt(r-1)))--r;while(i<n.length&&s(n.charAt(i)))++i}return new io(it(e.line,r),it(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):k(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Pi((function(e,t){si(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-$n(this)-this.display.barHeight,width:e.scrollWidth-$n(this)-this.display.barWidth,clientHeight:Xn(this),clientWidth:Kn(this)}},scrollIntoView:Pi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:it(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?li(this,e):ui(this,e.from,e.to,e.margin)})),setSize:Pi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&ur(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){jr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ve(this,"refresh",this)})),operation:function(e){return Ai(this,e)},startOperation:function(){return xi(this)},endOperation:function(){return Si(this)},refresh:Pi((function(){var e=this.display.cachedTextHeight;Dr(this),this.curOp.forceUpdate=!0,dr(this),si(this,this.doc.scrollLeft,this.doc.scrollTop),Vi(this.display),(null==e||Math.abs(e-Tr(this.display))>.5||this.options.lineWrapping)&&Mr(this),ve(this,"refresh",this)})),swapDoc:Pi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,e),dr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Tn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Xs(e,t,n,r,i){var o=t,a=n,s=Ye(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ye(e,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?Xa(e.cm,s,t,n):$a(s,t,n);if(null==a){if(o||!c())return!1;t=Ka(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!u(!p))break;var m=s.text.charAt(t.ch)||"\n",g=ne(m,h)?"w":f&&"\n"==m?"n":!f||/\s/.test(m)?null:"p";if(!f||p||g||(g="s"),d&&d!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(d=g),n>0&&!u(!p))break}var v=$o(e,t,o,a,!0);return at(o,v)&&(v.hitSide=!0),v}function Ys(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Tr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=wr(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Js=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Qs(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Jn(n,r,t.line),o=fe(r,e.doc.direction),a="left";if(o){var s=ue(o,t.ch);a=s%2?"right":"left"}var l=or(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Zs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(u(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(it(r,0),it(i+1,0),c(+h));return void(p.length&&(o=p[0].find(0))&&d(Je(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(f(t),t==n)break;t=t.nextSibling,l=!1}return o}function nl(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return el(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return rl(o,t,n)}}function rl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!R(r,t))return el(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?X(e.rest):e.line;return el(it(et(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));while(s.parentNode!=r)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=et(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),it(u,d)}}}var d=u(a,s,n);if(d)return el(d,i);for(var f=s.nextSibling,h=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0),d)return el(it(d.line,d.ch-h),i);h+=f.textContent.length}for(var p=s.previousSibling,m=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1),d)return el(it(d.line,d.ch+m),i);m+=p.textContent.length}}Js.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!ye(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ws(r);zs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,G),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=qs.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=$s(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=qs.text.join("\n");var c=document.activeElement;L(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}Hs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",(function(e){!o(e)||ye(r,e)||Gs(e,r)||s<=11&&setTimeout(Ri(r,(function(){return t.updateFromDOM()})),20)})),pe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(i,"touchstart",(function(){return n.forceCompositionEnd()})),pe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(i,"copy",a),pe(i,"cut",a)},Js.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var e=Gr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Js.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=nl(t,e.anchorNode,e.anchorOffset),s=nl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ot(ct(a,s),i)||0!=ot(lt(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Qs(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Qs(t,o);if(!u){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var h,p=e.rangeCount&&e.getRangeAt(0);try{h=E(c.node,c.offset,u.offset,u.node)}catch(m){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Js.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Js.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Js.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Js.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Ai(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},Js.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&u&&this.cm.display.gutterSpecs.length&&Zs(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nl(t,e.anchorNode,e.anchorOffset),r=nl(t,e.focusNode,e.focusOffset);n&&r&&Ai(t,(function(){zo(t.doc,ao(n,r),G),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=it(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Lr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Lr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=et(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(tl(r,n,c,t,l)),f=Je(r.doc,it(t,0),it(l,Ye(r.doc,l).text.length));while(d.length>1&&f.length>1)if(X(d)==X(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}var h=0,p=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);while(h<v&&m.charCodeAt(h)==g.charCodeAt(h))++h;var y=X(d),b=X(f),_=Math.min(y.length-(1==d.length?h:0),b.length-(1==f.length?h:0));while(p<_&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1))++p;if(1==d.length&&1==f.length&&t==a.line)while(h&&h>a.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1))h--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var w=it(t,h),x=it(l,f.length?X(f).length-p:0);return d.length>1||d[0]||ot(w,x)?(ra(r.doc,d,w,x,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ai(this.cm,(function(){return Dr(e.cm)}))},Js.prototype.setUneditable=function(e){e.contentEditable="false"},Js.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ri(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Js.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var il=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};function ol(e,t){if(t=t?j(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=P();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ds((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function al(e){e.off=ge,e.on=pe,e.wheelEventPixels=to,e.Doc=xa,e.splitLines=Me,e.countColumn=F,e.findColumn=H,e.isWordChar=te,e.Pass=U,e.signal=ve,e.Line=ln,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=it,e.cmpPos=ot,e.modes=Fe,e.mimeModes=Be,e.resolveMode=Ue,e.getMode=Ge,e.modeExtensions=Ve,e.extendMode=We,e.copyState=He,e.startState=Ke,e.innerMode=$e,e.commands=Ya,e.keyMap=ja,e.keyName=Ga,e.isModifierKey=za,e.lookupKey=qa,e.normalizeKeyMap=Ba,e.StringStream=Xe,e.SharedTextMarker=ga,e.TextMarker=pa,e.LineWidget=ua,e.e_preventDefault=xe,e.e_stopPropagation=Se,e.e_stop=Ee,e.addClass=M,e.contains=R,e.rmClass=k,e.keyNames=Ma}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ye(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ws(r);zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){ye(r,e)||Gs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!Gn(e,t)&&!ye(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){Gn(e,t)||xe(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=$s(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Gr(e);if(e.options.moveInputWithCursor){var i=yr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm,n=t.display;T(n.cursorDiv,e.cursors),T(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||P()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ne(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(r.length,i.length);while(l<c&&r.charCodeAt(l)==i.charCodeAt(l))++l;return Ai(t,(function(){Us(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Nr(n,e),c=r.scroller.scrollTop;if(o&&!d){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Ri(n,zo)(n.doc,ao(o),G);var f,h=i.style.cssText,p=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(f=window.scrollY),r.input.focus(),l&&window.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),S){Ee(e);var g=function(){ge(window,"mouseup",g),setTimeout(y,20)};pe(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ri(n,Xo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Ms(Ds),Ks(Ds);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in xa.prototype)xa.prototype.hasOwnProperty(ll)&&q(sl,ll)<0&&(Ds.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(xa.prototype[ll]));return we(xa),Ds.inputStyles={textarea:il,contenteditable:Js},Ds.defineMode=function(e){Ds.defaults.mode||"null"==e||(Ds.defaults.mode=e),qe.apply(this,arguments)},Ds.defineMIME=ze,Ds.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ds.defineMIME("text/plain","null"),Ds.defineExtension=function(e,t){Ds.prototype[e]=t},Ds.defineDocExtension=function(e,t){xa.prototype[e]=t},Ds.fromTextArea=ol,al(Ds),Ds.version="5.59.4",Ds}))},"56cd1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:"数据权限规则",width:e.drawerWidth,visible:e.visible,wrapStyle:{height:"calc(100% - 108px)",overflow:"auto",paddingBottom:"108px"}},on:{close:e.onClose}},[n("div",{style:{padding:"10px",border:"1px solid #e9e9e9",background:"#fff"}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",[n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{md:8,sm:8}},[n("a-form-item",{attrs:{label:"规则名称",labelCol:{span:8},wrapperCol:{span:14,offset:1}}},[n("a-input",{attrs:{placeholder:"请输入规则名称"},model:{value:e.queryParam.ruleName,callback:function(t){e.$set(e.queryParam,"ruleName",t)},expression:"queryParam.ruleName"}})],1)],1),n("a-col",{attrs:{md:8,sm:8}},[n("a-form-item",{attrs:{label:"规则值",labelCol:{span:8},wrapperCol:{span:14,offset:1}}},[n("a-input",{attrs:{placeholder:"请输入规则值"},model:{value:e.queryParam.ruleValue,callback:function(t){e.$set(e.queryParam,"ruleValue",t)},expression:"queryParam.ruleValue"}})],1)],1),n("a-col",{attrs:{md:7,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1),n("a-row",[n("a-col",{attrs:{md:24,sm:24}},[n("a-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",icon:"plus"},on:{click:e.addPermissionRule}},[e._v("添加")])],1)],1)],1),n("a-table",{ref:"table",attrs:{rowKey:"id",size:"middle",columns:e.columns,dataSource:e.dataSource,loading:e.loading,rowClassName:e.getRowClassname},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("编辑\n          ")],1),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])})],1)]),n("permission-data-rule-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("4ec3"),a=n("b65a"),s=n("7c33"),l=[{title:"规则名称",dataIndex:"ruleName",key:"ruleName"},{title:"规则字段",dataIndex:"ruleColumn",key:"ruleColumn"},{title:"规则值",dataIndex:"ruleValue",key:"ruleValue"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center"}],c={name:"PermissionDataRuleList",mixins:[a["a"]],components:{PermissionDataRuleModal:s["default"]},data:function(){return{queryParam:{},drawerWidth:650,columns:l,permId:"",visible:!1,form:this.$form.createForm(this),loading:!1,url:{list:"/sys/permission/getPermRuleListByPermId",delete:"/sys/permission/deletePermissionRule"}}},created:function(){this.resetScreenSize()},methods:{loadData:function(){var e=this;this.dataSource=[];var t=this.getQueryParams();Object(o["C"])(t).then((function(t){t.success&&(e.dataSource=t.result)}))},edit:function(e){e.id&&(this.visible=!0,this.permId=e.id),this.queryParam={},this.queryParam.permissionId=e.id,this.visible=!0,this.loadData(),this.resetScreenSize()},addPermissionRule:function(){this.$refs.modalForm.add(this.permId),this.$refs.modalForm.title="新增"},searchQuery:function(){var e=this,t=this.getQueryParams();t.permissionId=this.permId,Object(o["T"])(t).then((function(t){t.success&&(e.dataSource=t.result)}))},searchReset:function(){this.queryParam={},this.queryParam.permissionId=this.permId,this.loadData(1)},onClose:function(){this.visible=!1},resetScreenSize:function(){var e=document.body.clientWidth;this.drawerWidth=e<500?e:650},getRowClassname:function(e){if(1!=e.status)return"data-rule-invalid"}}},u=c,d=(n("315e"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,null,null);t["default"]=f.exports},"56dd":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("e1bd").every,o=n("4042"),a=o("every");r({target:"Array",proto:!0,forced:!a},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},5739:function(e,t,n){"use strict";n("8b80")},"578f":function(e,t,n){},"57cb":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n("9f5e");function i(){return!0}function o(){return!1}function a(){}function s(e){var t,n,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&Object(r["b"])(a,n)||(o=!0,i=this,n=a,t=e.apply(this,arguments)),t}}},"57ed":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:600,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"字典名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dictName",e.validatorRules.dictName],expression:"[ 'dictName', validatorRules.dictName]"}],attrs:{placeholder:"请输入字典名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"字典编码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dictCode",e.validatorRules.dictCode],expression:"[ 'dictCode', validatorRules.dictCode]"}],attrs:{placeholder:"请输入字典编码"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"描述"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["description"],expression:"[ 'description']"}]})],1)],1)],1)],1)},i=[],o=n("88bc"),a=n.n(o),s=n("4ec3"),l={name:"DictModal",data:function(){return{value:1,title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{dictName:{rules:[{required:!0,message:"请输入字典名称!"}]},dictCode:{rules:[{required:!0,message:"请输入字典编码!"},{validator:this.validateDictCode}]}}}},created:function(){},methods:{validateDictCode:function(e,t,n){var r={tableName:"sys_dict",fieldName:"dict_code",fieldVal:t,dataId:this.model.id};Object(s["l"])(r).then((function(e){e.success?n():n(e.message)}))},handleChange:function(e){this.model.status=e},add:function(){this.edit({})},edit:function(e){var t=this;e.id?this.visiblekey=!0:this.visiblekey=!1,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(a()(t.model,"dictName","dictCode","description"))}))},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0,r.dictName=(r.dictName||"").trim(),r.dictCode=(r.dictCode||"").trim(),r.description=(r.description||"").trim();var i,o=Object.assign(e.model,r);console.log(o),i=e.model.id?Object(s["m"])(o):Object(s["a"])(o),i.then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},close:function(){this.$emit("close"),this.visible=!1}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},"57ef":function(e,t,n){"use strict";n("ca06")},5823:function(e,t,n){e.exports={console:n("812f")}},5831:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:48}},[n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"规则编号"}},[n("a-input",{attrs:{placeholder:""}})],1)],1),n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"使用状态"}},[n("a-select",{attrs:{placeholder:"请选择","default-value":"0"}},[n("a-select-option",{attrs:{value:"0"}},[e._v("全部")]),n("a-select-option",{attrs:{value:"1"}},[e._v("关闭")]),n("a-select-option",{attrs:{value:"2"}},[e._v("运行中")])],1)],1)],1),e.advanced?[n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"调用次数"}},[n("a-input-number",{staticStyle:{width:"100%"}})],1)],1),n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"更新日期"}},[n("a-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入更新日期"}})],1)],1),n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"使用状态"}},[n("a-select",{attrs:{placeholder:"请选择","default-value":"0"}},[n("a-select-option",{attrs:{value:"0"}},[e._v("全部")]),n("a-select-option",{attrs:{value:"1"}},[e._v("关闭")]),n("a-select-option",{attrs:{value:"2"}},[e._v("运行中")])],1)],1)],1),n("a-col",{attrs:{md:8,sm:24}},[n("a-form-item",{attrs:{label:"使用状态"}},[n("a-select",{attrs:{placeholder:"请选择","default-value":"0"}},[n("a-select-option",{attrs:{value:"0"}},[e._v("全部")]),n("a-select-option",{attrs:{value:"1"}},[e._v("关闭")]),n("a-select-option",{attrs:{value:"2"}},[e._v("运行中")])],1)],1)],1)]:e._e(),n("a-col",{attrs:{md:e.advanced?24:8,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",style:e.advanced&&{float:"right",overflow:"hidden"}||{}},[n("a-button",{attrs:{type:"primary"}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("重置")]),n("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v("\n              "+e._s(e.advanced?"收起":"展开")+"\n              "),n("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(){return e.$router.push({name:"anime-add"})}}},[e._v("新建")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1"},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1),n("a-menu-item",{key:"2"},[n("a-icon",{attrs:{type:"lock"}}),e._v("锁定")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("\n        批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("s-table",{ref:"table",attrs:{size:"default",columns:e.columns,data:e.loadData,showAlertInfo:!0},on:{onSelect:e.onChange},scopedSlots:e._u([e._l(e.columns,(function(t,r){return{key:t.dataIndex,fn:function(r,i,o){return t.scopedSlots?[n("div",{key:o},[i.editable?n("a-input",{staticStyle:{margin:"-5px 0"},attrs:{value:r},on:{change:function(n){return e.handleChange(n.target.value,i.key,t)}}}):[e._v(e._s(r))]],2)]:void 0}}})),{key:"action",fn:function(t,r,i){return[n("div",{staticClass:"editable-row-operations"},[r.editable?n("span",[n("a",{on:{click:function(){return e.save(r)}}},[e._v("保存")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"真的放弃编辑吗?"},on:{confirm:function(){return e.cancel(r)}}},[n("a",[e._v("取消")])])],1):n("span",[n("a",{staticClass:"edit",on:{click:function(){return e.edit(r)}}},[e._v("修改")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{staticClass:"delete",on:{click:function(){return e.del(r)}}},[e._v("删除")])],1)])]}}],null,!0)})],1)},i=[],o=n("e8c4"),a={name:"TableList",components:{STable:o["a"]},data:function(){var e=this;return{advanced:!1,queryParam:{},columns:[{title:"规则编号",dataIndex:"no",width:90},{title:"描述",dataIndex:"description",scopedSlots:{customRender:"description"}},{title:"服务调用次数",dataIndex:"callNo",width:"150px",sorter:!0,needTotal:!0,scopedSlots:{customRender:"callNo"}},{title:"状态",dataIndex:"status",width:"100px",needTotal:!0,scopedSlots:{customRender:"status"}},{title:"更新时间",dataIndex:"updatedAt",width:"150px",sorter:!0,scopedSlots:{customRender:"updatedAt"}},{table:"操作",dataIndex:"action",width:"120px",scopedSlots:{customRender:"action"}}],loadData:function(t){return e.$http.get("/api/service",{params:Object.assign(t,e.queryParam)}).then((function(e){return e.result}))},selectedRowKeys:[],selectedRows:[]}},methods:{handleChange:function(e,t,n){console.log(e,t,n)},edit:function(e){e.editable=!0,this.$refs.table.updateEdit()},del:function(e){this.$confirm({title:"警告",content:"真的要删除吗?",okText:"删除",okType:"danger",cancelText:"取消",onOk:function(){return console.log("OK"),new Promise((function(e,t){setTimeout(Math.random()>.5?e:t,1e3)})).catch((function(){return console.log("Oops errors!")}))},onCancel:function(){console.log("Cancel")}})},save:function(e){delete e.editable,this.$refs.table.updateEdit()},cancel:function(e){delete e.editable,this.$refs.table.updateEdit()},onChange:function(e){this.selectedRowKeys=e.selectedRowKeys,this.selectedRows=e.selectedRows},toggleAdvanced:function(){this.advanced=!this.advanced}},watch:{}},s=a,l=(n("4ff1"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"48253dea",null);t["default"]=c.exports},58315:function(e,t,n){"use strict";var r=n("e300"),i=n("183a"),o=n("cef7"),a=n("01d4"),s=n("7b4f"),l=n("4a7d"),c=n("ff80"),u=n("6d836"),d=n("a43f"),f=n("57cb");function h(e,t){return[[-1/0,-1/0,1/0,1/0]]}var p=n("92fa5"),m=n("0af5"),g=n("9f5e"),v=n("1300"),y=n("38f3"),b=n("1e8d"),_={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},w=!1;function x(e,t,n,r,i,o,a){var s=new XMLHttpRequest;s.open("GET","function"===typeof e?e(n,r,i):e,!0),t.getType()==_.ARRAY_BUFFER&&(s.responseType="arraybuffer"),s.withCredentials=w,s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){var r=t.getType(),l=void 0;r==_.JSON||r==_.TEXT?l=s.responseText:r==_.XML?(l=s.responseXML,l||(l=(new DOMParser).parseFromString(s.responseText,"application/xml"))):r==_.ARRAY_BUFFER&&(l=s.response),l?o(t.readFeatures(l,{extent:n,featureProjection:i}),t.readProjection(l)):a()}else a()},s.onerror=a,s.send()}function S(e,t){return function(n,r,i,o,a){var s=this;x(e,t,n,r,i,(function(e,t){void 0!==o&&o(e),s.addFeatures(e)}),a||f["c"])}}var C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.feature=n,i.features=r,i}return C(t,e),t}(o["a"]),k=function(e){function t(t){var n=this,i=t||{};n=e.call(this,{attributions:i.attributions,projection:void 0,state:u["a"].READY,wrapX:void 0===i.wrapX||i.wrapX})||this,n.loader_=f["c"],n.format_=i.format,n.overlaps_=void 0===i.overlaps||i.overlaps,n.url_=i.url,void 0!==i.loader?n.loader_=i.loader:void 0!==n.url_&&(Object(p["a"])(n.format_,7),n.loader_=S(n.url_,n.format_)),n.strategy_=void 0!==i.strategy?i.strategy:h;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return n.featuresRtree_=s?new l["a"]:null,n.loadedExtentsRtree_=new l["a"],n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(o=i.features,a=o.getArray()),s||void 0!==o||(o=new r["a"](a)),void 0!==a&&n.addFeaturesInternal(a),void 0!==o&&n.bindFeaturesCollection_(o),n}return C(t,e),t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var t=Object(v["c"])(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new E(d["a"].ADDFEATURE,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},t.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[Object(b["a"])(t,a["a"].CHANGE,this.handleFeatureChange_,this),Object(b["a"])(t,s["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(Object(p["a"])(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var t=[],n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=Object(v["c"])(a);this.addToIndex_(s,a)&&n.push(a)}i=0;for(var l=n.length;i<l;i++){a=n[i],s=Object(v["c"])(a);this.setupChangeEvents_(s,a);var c=a.getGeometry();if(c){var u=c.getExtent();t.push(u),r.push(a)}else this.nullGeometryFeatures_[s]=a}this.featuresRtree_&&this.featuresRtree_.load(t,r);i=0;for(var f=n.length;i<f;i++)this.dispatchEvent(new E(d["a"].ADDFEATURE,n[i]))},t.prototype.bindFeaturesCollection_=function(e){var t=!1;this.addEventListener(d["a"].ADDFEATURE,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),this.addEventListener(d["a"].REMOVEFEATURE,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),e.addEventListener(i["a"].ADD,function(e){t||(t=!0,this.addFeature(e.element),t=!1)}.bind(this)),e.addEventListener(i["a"].REMOVE,function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var t in this.featureChangeKeys_){var n=this.featureChangeKeys_[t];n.forEach(b["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var r in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new E(d["a"].CLEAR);this.dispatchEvent(i),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,t){var n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){var r=n.getGeometry();return r.intersectsCoordinate(e)?t(n):void 0}))},t.prototype.forEachFeatureInExtent=function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureIntersectingExtent=function(e,t){return this.forEachFeatureInExtent(e,(function(n){var r=n.getGeometry();if(r.intersectsExtent(e)){var i=t(n);if(i)return i}}))},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray():this.featuresRtree_&&(e=this.featuresRtree_.getAll(),Object(y["d"])(this.nullGeometryFeatures_)||Object(g["c"])(e,Object(y["c"])(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t},t.prototype.getFeaturesInExtent=function(e){return this.featuresRtree_?this.featuresRtree_.getInExtent(e):this.featuresCollection_?this.featuresCollection_.getArray():[]},t.prototype.getClosestFeatureToCoordinate=function(e,t){var n=e[0],r=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=t||f["b"];return this.featuresRtree_.forEachInExtent(s,(function(e){if(l(e)){var t=e.getGeometry(),c=a;if(a=t.closestPointXY(n,r,o,a),a<c){i=e;var u=Math.sqrt(a);s[0]=n-u,s[1]=r-u,s[2]=n+u,s[3]=r+u}}})),i},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getFeatureByUid=function(e){var t=this.uidIndex_[e];return void 0!==t?t:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var t=e.target,n=Object(v["c"])(t),r=t.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,t)):this.featuresRtree_&&this.featuresRtree_.update(i,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);var o=t.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[a]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new E(d["a"].CHANGEFEATURE,t))},t.prototype.hasFeature=function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:Object(v["c"])(e)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Object(y["d"])(this.nullGeometryFeatures_)},t.prototype.loadFeatures=function(e,t,n){var r=this.loadedExtentsRtree_,i=this.strategy_(e,t);this.loading=!1;for(var o=function(e,o){var s=i[e],l=r.forEachInExtent(s,(function(e){return Object(m["g"])(e.extent,s)}));l||(a.dispatchEvent(new E(d["a"].FEATURESLOADSTART)),a.loader_.call(a,s,t,n,function(e){this.dispatchEvent(new E(d["a"].FEATURESLOADEND,void 0,e))}.bind(a),function(){this.dispatchEvent(new E(d["a"].FEATURESLOADERROR))}.bind(a)),r.insert(s,{extent:s.slice()}),a.loading=a.loader_!==f["c"])},a=this,s=0,l=i.length;s<l;++s)o(s,l)},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),e.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var t,n=this.loadedExtentsRtree_;n.forEachInExtent(e,(function(n){if(Object(m["p"])(n.extent,e))return t=n,!0})),t&&n.remove(t)},t.prototype.removeFeature=function(e){var t=Object(v["c"])(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e),this.changed()},t.prototype.removeFeatureInternal=function(e){var t=Object(v["c"])(e);this.featureChangeKeys_[t].forEach(b["c"]),delete this.featureChangeKeys_[t];var n=e.getId();void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[t],this.dispatchEvent(new E(d["a"].REMOVEFEATURE,e))},t.prototype.removeFromIdIndex_=function(e){var t=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.setUrl=function(e){Object(p["a"])(this.format_,7),this.setLoader(S(e,this.format_))},t}(c["a"]);t["a"]=k},5842:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",staticStyle:{width:"350px"},on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),n("div",{staticClass:"yingxiang"},[n("a-dropdown",[n("a-button",{attrs:{type:"primary",icon:"swap"}},[e._v("地图切换")]),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.tdmapin()}}},[e._v("\n            标准\n          ")])]),n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.supermapin()}}},[e._v("\n            影像\n          ")])])],1)],1)],1),n("a-modal",{attrs:{title:"提示",afterClose:e.handleCancelts},model:{value:e.visiblets,callback:function(t){e.visiblets=t},expression:"visiblets"}},[n("template",{slot:"footer"},[n("a-button",{key:"back",on:{click:e.handleCancelts}},[e._v("\n        取消\n      ")]),n("a-button",{key:"submit",attrs:{type:"primary",loading:e.loading},on:{click:e.handleOkts}},[e._v("\n        确认\n      ")])],1),n("p",[e._v("即将更新该点坐标数据,是否确认?")])],2),n("div",{ref:"mapswidth",staticClass:"mapmy",attrs:{id:"maps"}})],1)},o=[],a=(n("c5f6"),n("28a5"),n("5bc0"),n("5eee")),s=n("a2c7"),l=n("2ce2"),c=n("c807"),u=n("480c"),d=n("3e6b"),f=n("d0e9"),h=n("58315"),p=n("256f"),m=n("6c77"),g=n("6cbf"),v=n("8295"),y=n("83a6"),b=n("8682"),_=n("4cdf"),w=n("f403"),x=n("84a1"),S=n("9834"),C=n("0fea"),E={name:"mapChooseLine",components:{aSelect:x["default"]},props:{model:"",pointKey:"",iconurl:"",visiblets:"",loading:""},data:function(){return{vector:{},source:{},maps:{},selectdian:{},modify:{},raster:new u["a"]({source:new f["a"]}),centerArr:[120.6790539441963,27.8479803194757],centerArr_330328:[120.02626646,27.80884152],bian:!1,dataSourceAll:"",zdname:"name",select_quart:new l["a"],zzzuobiao:"",arr:"",tdt_vec:{},layer:{},zhuji:{},pd:0,record:"",jujiao:!1,jinzhituozhuai:!1,qx:"",zoom:9,iconurlselect:n("8c90"),dituqiehuan1:"ok",dituqiehuan2:"ok"}},mounted:function(){this.getquxian()},created:function(){},methods:{chooseAddress:function(e){var t=e.split(","),n=this.maps.getView().getZoom();this.maps.getView().animate({zoom:14},{center:[t[0],t[1]]});var r=[t[0],t[1]];if(n>14){var i=this;setTimeout((function(){i.addVectorLabelselect("",r)}),2500)}else this.addVectorLabelselect("",r)},addVectorLabelselect:function(e,t){var n=new _["a"]({geometry:new w["a"](t),name:e});n.setStyle(this.createLabelStyleselect()),this.vector.getSource().addFeature(n)},chooseAddressmy:function(e){this.jujiao=!0;var t=e.longitude,n=e.latitude;this.maps.getView().zoom=16,this.addVectorLabelcolor(e),this.maps.getView().animate({zoom:17},{center:[t,n]}),this.$emit("lonlatChanged",t+","+n);this.record=e},init:function(){Object(p["o"])(),this.initVariable();var e=this.checkModel();this.initMap(e),this.initEvent(),this.supermapin()},initVariable:function(){this.source=new h["a"],this.vector=new d["a"]({source:this.source})},checkModel:function(){var e=this.model[this.pointKey];if(null!=e&&void 0!=e&&""!=e){var t=e.split(",");if(2==t.length){for(var n=0;n<t.length;n++)t[n]=Number(t[n]);return this.initPoint(t),t}}return this.centerArr},initMap:function(e){var t=this;this.arr=e,330328==this.qx&&(this.arr=this.centerArr_330328,this.zoom=11),this.maps=new a["a"]({target:"maps",view:new s["a"]({center:[this.arr[0],this.arr[1]],zoom:this.zoom,projection:"EPSG:4326"})}),this.tdmapin(),this.modify=new c["a"]({source:this.source,pixelTolerance:10}),this.maps.addInteraction(this.modify);var n=this;this.modify.on("modifyend",(function(e){t.zzzuobiao=e.mapBrowserEvent.pixel;var r=t.zzzuobiao[0],i=t.zzzuobiao[1];t.zzzuobiao=[r,i-25];var o=t.maps.forEachFeatureAtPixel(t.zzzuobiao,(function(e){return e})),a=o.values_.dataSource,s=o.values_.geometry.flatCoordinates;a.longitude=s[0],a.latitude=s[1],t.jinzhituozhuai&&null==a.smid?(console.log("已拖拽新增点位坐标"),n.$emit("handleCancelts")):n.$emit("tdupdate",a)}))},tuozhuai:function(){var e=this;this.maps.removeInteraction(this.modify),this.modify=new c["a"]({source:this.source,pixelTolerance:10}),this.maps.addInteraction(this.modify);var t=this;this.modify.on("modifyend",(function(n){e.zzzuobiao=n.mapBrowserEvent.pixel;var r=e.zzzuobiao[0],i=e.zzzuobiao[1];e.zzzuobiao=[r,i-25];var o=e.maps.forEachFeatureAtPixel(e.zzzuobiao,(function(e){return e})),a=o.values_.dataSource,s=o.values_.geometry.flatCoordinates;a.longitude=s[0],a.latitude=s[1],e.jinzhituozhuai&&null==a.smid?(console.log("已拖拽新增点位坐标"),t.$emit("handleCancelts")):t.$emit("tdupdate",a)}))},initEvent:function(){var e=this,t=this;this.maps.on("click",(function(n){var r=e.maps.forEachFeatureAtPixel(n.pixel,(function(e){return e}));if(r){r.get("smid");var i=r.get("dataSource");"undefined"==typeof i||t.$emit("openedit",i)}else{var o=t.maps.getEventCoordinate(n.originalEvent);t.$emit("lonlatChanged",o[0]+","+o[1])}})),this.maps.on("moveend",(function(t){console.log("触发地图缩放事件");var n=e.maps.getView().getZoom(),r=e.bian;e.bian=n>17||17==n,r!=e.bian&&(e.jujiao?e.huanyuanVectorLabelsONE():e.addVectorLabels("还原点位数据"))}))},addVectorLabelcolor:function(e){this.jinzhituozhuai=!1;var t=this;this.maps.removeLayer(this.vector),this.initVariable(),this.maps.addLayer(this.vector),this.tuozhuai();var n=e.longitude,r=e.latitude,o=n+","+r;if(""==n)t.$emit("dataSource2add",dataSourceAll[i]);else{var a=o.split(",");1==a.length&&(a=[n,r]);var s=e[this.zdname],l=e.smid,c=new w["a"](a),u=new _["a"]({geometry:c,name:s,smid:l,dataSource:e});this.bian?u.setStyle(this.createLabelStylename(u)):u.setStyle(this.createLabelStyle()),this.vector.getSource().addFeature(u)}},linshidadian:function(e){this.jinzhituozhuai=!0;var t=e.longitudeLatitude,n=t.split(","),r=new w["a"](n),i=new _["a"]({geometry:r,dataSource:e});i.setStyle(this.createLabelStylels()),this.vector.getSource().addFeature(i)},addVectorLabel:function(e,t){var n=new _["a"]({geometry:new w["a"](t),name:e});n.setStyle(this.createLabelStyle()),this.maps.removeLayer(this.vector),this.maps.addLayer(this.vector),this.vector.getSource().addFeature(n)},addVectorLabels:function(e,t){this.jinzhituozhuai=!1,this.jujiao=!1,""!=t&&null!=t&&(this.zdname=t),"还原点位数据"==e?(console.log("还原点位数据:"+this.dataSourceAll.length),e=this.dataSourceAll):this.dataSourceAll=e,null==this.maps.disposed_?console.log("地图尚未加载完成(清除坐标)"):(this.maps.removeLayer(this.vector),this.initVariable(),this.maps.addLayer(this.vector),this.tuozhuai());for(var n=new Array,r=this.createLabelStyle(),i=0;i<e.length;i++){var o=e[i];if("undefined"==typeof o)console.log("此条数据为空");else{var a=e[i].longitude,s=e[i].latitude,l=a+","+s;e[i].longitudeLatitude=a+","+s;var c=this.hasLetter(l);if(null==a||""==a||c)this.$emit("dataSource2add",e[i]);else{(null==l||""==l||-1==l.indexOf(","))&&(l=a+","+s);var u=l.split(","),d=e[i][this.zdname],f=e[i].smid,h=e[i];h.longitudeLatitude=l;var p=new w["a"](u),m=new _["a"]({geometry:p,name:d,smid:f,dataSource:h});this.bian?m.setStyle(this.createLabelStylename(m)):m.setStyle(r),n.push(m)}}}null==this.maps.disposed_?console.log("地图尚未加载完成(绘制点位)"):(this.vector.getSource().addFeatures(n),console.log("点位绘制完成:"+n.length))},huanyuanVectorLabelsONE:function(){var e=this.record,t=this;this.maps.removeLayer(this.vector),this.initVariable(),this.maps.addLayer(this.vector),this.tuozhuai();var n=e.longitudeLatitude,r=e.longitude,o=e.latitude;if(""==r)t.$emit("dataSource2add",dataSourceAll[i]);else{var a=n.split(",");1==a.length&&(a=[r,o]);var s=e[this.zdname],l=e.smid,c=new w["a"](a),u=new _["a"]({geometry:c,name:s,smid:l,dataSource:e});this.bian?u.setStyle(this.createLabelStylename(u)):u.setStyle(this.createLabelStyle()),this.vector.getSource().addFeature(u)}},createLabelStylels:function(){return new m["c"]({image:new g["a"]({anchor:[.5,35],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"}),zIndex:200})},createLabelStyle:function(){console.log("点位图标路径:"+this.iconurl);var e=this;return new m["c"]({image:new g["a"]({anchor:[.5,30],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:e.iconurl}),zIndex:200})},createLabelStylename:function(e){var t=this,n=" ";return void 0!=e&&(n=e.get("name")),new m["c"]({image:new g["a"]({anchor:[.5,30],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:t.iconurl}),text:new v["a"]({offsetY:17,textAlign:"center",textBaseline:"middle",font:"normal 18px 微软雅黑",text:n,fill:new y["a"]({color:"#00cef3"}),stroke:new b["a"]({color:"#000000",width:2})}),zIndex:200})},createLabelStyleselect:function(){var e=this;return new m["c"]({image:new g["a"]({anchor:[.5,30],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:e.iconurlselect}),zIndex:200})},initPoint:function(e){var t=[e[0],e[1]];this.addVectorLabel("",t)},supermapin:function(){if("ok"==this.dituqiehuan1){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.layer=new u["a"]({source:new S["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"});var t="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYXZJ2019CGCS2000/rest/maps/YJ_YXZJ_2019_CGCS2000";this.zhuji=new u["a"]({source:new S["a"]({url:t,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.tdt_vec),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.removeLayer(this.layer),this.maps.addLayer(this.layer),this.maps.addLayer(this.zhuji),this.maps.addLayer(this.vector),this.dituqiehuan1="nook",this.dituqiehuan2="ok"}else console.log("提示:多次切换相同地图-影像")},tdmapin:function(){if("ok"==this.dituqiehuan2){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJSGBZB2019CGCS2000/rest/maps/YJ_SG_BZB_2019_CGCS2000";this.tdt_vec=new u["a"]({source:new S["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.layer),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.removeLayer(this.tdt_vec),this.maps.addLayer(this.tdt_vec),this.maps.addLayer(this.vector),this.dituqiehuan2="nook",this.dituqiehuan1="ok"}else console.log("提示:多次切换相同地图-地图")},yingxiang:function(){0==this.pd?(this.supermapin(),this.pd=1):(this.tdmapin(),this.pd=0)},handleCancelts:function(e){this.$emit("handleCancelts",e)},handleOkts:function(e){this.$emit("handleOkts",e)},changeSize:function(){null==this.maps.disposed_?console.log("地图尚未加载完成(刷新尺寸)"):this.maps.updateSize()},hasLetter:function(e){for(var t in e){var n=e.charCodeAt(t);if(n>=65&&n<=90||n>=97&&n<=122)return!0}return!1},getquxian:function(){var e=this;Object(C["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(","),i=(r[0],r[1]);e.qx=i,e.init()}else e.$message.warning(t.message)}))}}},k=E,O=(n("58f4"),n("2877")),T=Object(O["a"])(k,r,o,!1,null,null,null);t["default"]=T.exports},5859:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:10}},[n("a-col",{attrs:{md:10,sm:12}},[n("a-form-item",{staticStyle:{"margin-left":"8px"},attrs:{label:"用户账号"}},[n("a-input",{attrs:{placeholder:"请输入名称查询"},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}})],1)],1),n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-button",{staticStyle:{"margin-left":"18px"},attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator",staticStyle:{margin:"-46px 0px 10px 2px"},attrs:{md:24,sm:24}},[n("a-button",{staticStyle:{"margin-top":"16px"},attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("用户录入")]),n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAddUserDepart}},[e._v("添加已有用户")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除关系\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定要删除关系吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除关系")])])],1)],1)],1)],1)}}])})],1),n("user-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("Select-User-Modal",{ref:"selectUserModal",on:{selectFinished:e.selectOK}})],1)},i=[],o=n("b65a"),a=n("0fea"),s=n("b3c4"),l=n("418f"),c={name:"DeptUserInfo",mixins:[o["a"]],components:{SelectUserModal:s["default"],UserModal:l["default"]},data:function(){return{description:"用户信息",currentDeptId:"",columns:[{title:"用户账号",align:"center",dataIndex:"username"},{title:"用户名称",align:"center",dataIndex:"realname"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:170}],url:{list:"/sys/user/departUserList",edit:"/sys/user/editSysDepartWithUser",delete:"/sys/user/deleteUserInDepart",deleteBatch:"/sys/user/deleteUserInDepartBatch"}}},created:function(){},methods:{loadData:function(e){var t=this;if(this.url.list){if(1===e&&(this.ipagination.current=1),""!==this.currentDeptId){var n=this.getQueryParams();n.depId=this.currentDeptId,Object(a["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total)}))}}else this.$message.error("请设置url.list属性!")},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;console.log(this.currentDeptId),this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(a["a"])(n.url.deleteBatch,{depId:n.currentDeptId,userIds:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDelete:function(e){var t=this;if(this.url.delete){var n=this;Object(a["a"])(n.url.delete,{depId:this.currentDeptId,userId:e}).then((function(r){if(r.success){if(n.$message.success(r.message),t.selectedRowKeys.length>0)for(var i=0;i<t.selectedRowKeys.length;i++)if(t.selectedRowKeys[i]==e){t.selectedRowKeys.splice(i,1);break}n.loadData()}else n.$message.warning(r.message)}))}else this.$message.error("请设置url.delete属性!")},open:function(e){this.currentDeptId=e.id,this.loadData(1)},clearList:function(){this.currentDeptId="",this.dataSource=[]},hasSelectDept:function(){return null!=this.currentDeptId||(this.$message.error("请选择一个部门!"),!1)},handleAddUserDepart:function(){""==this.currentDeptId?this.$message.error("请选择一个部门!"):this.$refs.selectUserModal.visible=!0},handleEdit:function(e){this.$refs.modalForm.title="编辑",this.$refs.modalForm.departDisabled=!0,this.$refs.modalForm.disableSubmit=!1,this.$refs.modalForm.edit(e)},handleAdd:function(){""==this.currentDeptId?this.$message.error("请选择一个部门!"):(this.$refs.modalForm.departDisabled=!0,this.$refs.modalForm.userDepartModel.departIdList=[this.currentDeptId],this.$refs.modalForm.add(),this.$refs.modalForm.title="新增")},selectOK:function(e){var t=this,n={};n.depId=this.currentDeptId,n.userIdList=[];for(var r=0;r<e.length;r++)n.userIdList.push(e[r]);console.log(n),Object(a["j"])(this.url.edit,n).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}}},u=c,d=(n("4fa4"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"67a1d934",null);t["default"]=f.exports},"588f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{display:"none"}},[n("iframe",{attrs:{id:e.id,src:e.url,frameborder:"0",width:"100%",height:"550px",scrolling:"auto"}})])},i=[],o=n("2b0e"),a=n("9fb0"),s={name:"PdfPreviewModal",data:function(){return{url:window._CONFIG["pdfDomainURL"],id:"pdfPreviewIframe",headers:{}}},created:function(){var e=o["default"].ls.get(a["a"]);this.headers={"X-Access-Token":e}},computed:{},mounted:function(){window.addEventListener("message",this.handleScanFileMessage)},methods:{handleScanFileMessage:function(e){var t=e.data;console.log(t)},previewFiles:function(e,t){var n=document.getElementById("pdfPreviewIframe"),r={title:e,token:t};n.contentWindow.postMessage(r,"*")}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"5088ac45",null);t["default"]=u.exports},"58a5":function(e,t,n){},"58ab":function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"58b2":function(e,t,n){var r=n("9ba1"),i=n("ef6d"),o=n("493f"),a=n("1b2c"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},"58c6":function(e,t,n){"use strict";var r=n("1d30"),i=n("4611"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=l||u||c;d&&(s=function(e){var t,n,i,s,d=this,f=c&&d.sticky,h=r.call(d),p=d.source,m=0,g=e;return f&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),g=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),n=new RegExp("^(?:"+p+")",h)),u&&(n=new RegExp("^"+p+"$(?!\\s)",h)),l&&(t=d.lastIndex),i=o.call(f?n:d,g),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:l&&i&&(d.lastIndex=d.global?i.index+i[0].length:t),u&&i&&i.length>1&&a.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),e.exports=s},"58e1":function(e,t){e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,a=i.exec(e);if(a){var s=o(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n},this.getHelpXML=function(){for(var e=new Array,r=0;r<n.length;r++)for(var i=n[r].example,o=0;o<i.length;o++)e[e.length]=i[o];for(var a in t)e[e.length]=a;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var l=document.createElement("li"),c=new RGBColor(e[r]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),u.appendChild(document.createTextNode("test"));var d=document.createTextNode(" "+e[r]+" -> "+c.toRGB()+" -> "+c.toHex());l.appendChild(u),l.appendChild(d),s.appendChild(l)}catch(f){}return s}}},"58e3":function(e,t,n){"use strict";n("3e9a");var r=n("5ab0"),i=n("791c"),o=n("d75c"),a=n("58c6"),s=n("f0e0"),l=o("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=o("replace"),f=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),h=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=o(e),m=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),g=m&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!m||!g||"replace"===e&&(!c||!u||f)||"split"===e&&!h){var v=/./[p],y=n(p,""[e],(function(e,t,n,r,i){return t.exec===a?m&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},"58f4":function(e,t,n){"use strict";n("0885")},"58f7e":function(e){e.exports=JSON.parse('[{"name":"克拉玛依市","coord":[85.01486759299489,45.406422237230046]},{"name":"昌吉回族自治州","coord":[88.7154624754753,44.26991024636568]},{"name":"石河子市","coord":[86.0208600035924,44.239045558096805]},{"name":"霍林郭勒市","coord":[114.73479243733115,44.16058374713977]},{"name":"本溪市","coord":[124.64357865201586,41.177197783134275]},{"name":"嘉峪关市","coord":[98.16891560537093,39.76279786284264]},{"name":"莱芜市","coord":[117.65723565456207,36.27916499211527]},{"name":"神农架林区","coord":[110.48296222218153,31.581260143666697]},{"name":"天门市","coord":[113.00615321481195,30.64105781887143]},{"name":"鄂州市","coord":[114.94764081970385,30.325634953844585]},{"name":"潜江市","coord":[112.70703817700621,30.349210666019893]},{"name":"仙桃市","coord":[113.34688900729822,30.315951161935402]},{"name":"萍乡市","coord":[113.88072263074415,27.47193090553213]},{"name":"台湾省","coord":[120.14338943402045,23.596002465926095]},{"name":"东莞市","coord":[113.89443658529342,22.897826158636448]},{"name":"中山市","coord":[113.37118387764659,22.501478858616522]},{"name":"珠海市","coord":[113.21799258934986,22.23782602992192]},{"name":"北海市","coord":[109.18248083043899,21.695773689750148]},{"name":"香港","coord":[114.20689279508653,22.36016760139811]},{"name":"舟山市","coord":[122.22514712841459,30.338633120695956]},{"name":"克孜勒苏柯尔克孜","coord":[74.62910472637343,39.59886016069875]},{"name":"喀什地区","coord":[77.19899922143753,37.85462871211595]},{"name":"阿克苏地区","coord":[81.43930290016381,41.067304799230456]},{"name":"和田地区","coord":[80.69780509160952,36.95287032287055]},{"name":"阿里地区","coord":[82.536487505389,32.69566569631762]},{"name":"日喀则地区","coord":[86.5996831353606,29.54861754814263]},{"name":"那曲地区","coord":[88.32523292667608,33.20600450932715]},{"name":"玉树藏族自治州","coord":[95.2107128446203,33.90320387919257]},{"name":"迪庆藏族自治州","coord":[99.42465312188943,28.052797714348895]},{"name":"怒江傈傈族自治州","coord":[98.85737910439825,26.98345757528851]},{"name":"大理白族自治州","coord":[99.93934374816013,25.684737357453045]},{"name":"德宏傣族景颇族自","coord":[98.13830877778075,24.593421919561205]},{"name":"保山市","coord":[99.19031013453166,24.979380341662]},{"name":"临沧市","coord":[99.62483778975081,24.058807858948214]},{"name":"普洱市","coord":[100.94440267992684,23.44121660743221]},{"name":"西双版纳傣族自治","coord":[100.86105801845994,21.882475641324206]},{"name":"拉萨市","coord":[91.3684790613129,30.14176592960237]},{"name":"山南地区","coord":[92.11665242621062,28.33000201578789]},{"name":"林芝地区","coord":[94.9307847458166,29.125110156601963]},{"name":"昌都地区","coord":[97.33912235873476,30.48520825551814]},{"name":"丽江市","coord":[100.65713436205135,26.96190318191959]},{"name":"攀枝花市","coord":[101.73355913301131,26.714486678752795]},{"name":"凉山彝族自治州","coord":[102.08678551422615,27.683020519860396]},{"name":"楚雄彝族自治州","coord":[101.68264761198458,25.369603845264024]},{"name":"红河哈尼族彝族自","coord":[102.95101719613119,23.624860095239875]},{"name":"文山壮族苗族自治","coord":[104.8708359910614,23.579587266862504]},{"name":"百色市","coord":[106.69546907589859,23.98220841166522]},{"name":"崇左市","coord":[107.3277087317123,22.49769755349952]},{"name":"防城港市","coord":[107.88939931155171,21.94550204069006]},{"name":"南宁市","coord":[108.67078983716917,23.12207641861882]},{"name":"钦州市","coord":[108.8532307305186,22.157690108421384]},{"name":"玉林市","coord":[110.26918466489103,22.391823643610415]},{"name":"湛江市","coord":[109.93033457863683,21.086751055633457]},{"name":"茂名市","coord":[110.80336192333934,22.069184739040775]},{"name":"阳江市","coord":[111.70471342186183,22.108751366417575]},{"name":"江门市","coord":[112.53715618649149,22.297368082806777]},{"name":"广州市","coord":[113.4949302208309,23.28359314707863]},{"name":"清远市","coord":[113.10957368131268,24.334444053233856]},{"name":"肇庆市","coord":[112.11117530204233,23.60241158796112]},{"name":"梧州市","coord":[111.01709510772797,23.518132876753846]},{"name":"贺州市","coord":[111.50423061842756,24.4095096817199]},{"name":"桂林市","coord":[110.44046163393094,25.353966673735407]},{"name":"柳州市","coord":[109.34854449214147,24.972408051485047]},{"name":"河池市","coord":[107.81191841865586,24.649291651298164]},{"name":"黔东南苗族侗族自","coord":[108.39952601614591,26.429286420465576]},{"name":"贵阳市","coord":[106.59784062851153,26.797907456479816]},{"name":"安顺市","coord":[105.76161265300635,25.988644902171018]},{"name":"黔西南布依族苗族","coord":[105.5954078788574,25.404850939549405]},{"name":"曲靖市","coord":[103.9164335632742,25.697243690315265]},{"name":"六盘水市","coord":[104.77723228072432,26.15402255629164]},{"name":"毕节地区","coord":[105.03867422931839,27.077913968069666]},{"name":"昭通市","coord":[104.29730513046874,27.62418247971078]},{"name":"宜宾市","coord":[104.76748901448207,28.553501804266475]},{"name":"乐山市","coord":[103.56027669102787,29.160754519210577]},{"name":"自贡市","coord":[104.63272827056402,29.273152614922402]},{"name":"内江市","coord":[104.82644562304716,29.61272653799929]},{"name":"遵义市","coord":[106.82413636302059,28.191847588570702]},{"name":"达州市","coord":[107.59704170009518,31.32138258839703]},{"name":"遂宁市","coord":[105.48979445433736,30.677687821242678]},{"name":"广安市","coord":[106.56708164098042,30.43500706741521]},{"name":"泸州市","coord":[105.42591761727707,28.50277238478137]},{"name":"资阳市","coord":[104.97995126874034,30.154251886139654]},{"name":"雅安市","coord":[102.69931299964517,29.892630706195035]},{"name":"眉山市","coord":[104.07052881858888,29.894202166560405]},{"name":"甘孜藏族自治州","coord":[100.50721042614238,30.975216556269658]},{"name":"果洛藏族自治州","coord":[99.30775565051923,34.03539865224808]},{"name":"海南藏族自治州","coord":[100.39969108016373,35.90048272566899]},{"name":"黄南藏族自治州","coord":[101.5360706381689,35.10286360841902]},{"name":"赣南藏族自治州","coord":[102.97083885806067,34.326752803339026]},{"name":"陇南市","coord":[105.24780098912132,33.57031117443431]},{"name":"天水市","coord":[105.53503634660417,34.62320421368087]},{"name":"定西市","coord":[104.58787768541339,35.08900966621695]},{"name":"临夏回族自治州","coord":[103.2612870434902,35.591577124455235]},{"name":"西宁市","coord":[101.57680657999033,36.84800271717157]},{"name":"海东地区","coord":[102.30909850729282,36.287400615025646]},{"name":"海北藏族自治州","coord":[100.27122484450717,37.892557516083826]},{"name":"金昌市","coord":[102.02244049169511,38.497330414886164]},{"name":"酒泉市","coord":[95.94486678270127,40.56891536586272]},{"name":"海西蒙古族藏族自","coord":[94.67143298050689,36.022725148503724]},{"name":"巴音郭楞蒙古自治","coord":[88.18116214759745,39.556478810319916]},{"name":"哈密地区","coord":[93.84302392518026,42.95015211178875]},{"name":"叶鲁番地区","coord":[89.82035217277885,42.399368632283505]},{"name":"乌鲁木齐市","coord":[88.00048109561487,43.549986370786]},{"name":"阿勒泰地区","coord":[88.11213933257655,47.05593413019629]},{"name":"博尔塔拉蒙古自治","coord":[82.26402238163408,44.671135542630864]},{"name":"伊犁哈萨克自治州","coord":[82.80778717477179,43.53783381365267]},{"name":"阿拉善盟","coord":[103.29923966842289,40.10955801781495]},{"name":"武威市","coord":[102.73362058791429,37.94211141321436]},{"name":"兰州市","coord":[103.73793563506032,36.27379827886003]},{"name":"中卫市","coord":[105.6943786030716,37.20654236148948]},{"name":"银川市","coord":[106.20022174140034,38.52103167597483]},{"name":"石嘴山市","coord":[106.41544011793628,38.84054137571417]},{"name":"乌海市","coord":[106.8984175998405,39.54616572239788]},{"name":"鄂尔多斯市","coord":[108.43285571424619,39.24036799350715]},{"name":"巴彦淖尔市","coord":[107.45840392808307,41.30159860424196]},{"name":"包头市","coord":[110.46472193224272,41.48017783644221]},{"name":"呼和浩特市","coord":[111.48365173603975,40.498363056149884]},{"name":"乌兰察布市","coord":[112.61568977597707,41.75789561273154]},{"name":"大同市","coord":[113.7107192749083,39.898956799744184]},{"name":"朔州市","coord":[112.65428748167508,39.681772914701924]},{"name":"忻州市","coord":[112.36127575589583,38.88990233614568]},{"name":"榆林市","coord":[109.68473112169593,38.19921027134876]},{"name":"延安市","coord":[109.52425222161318,36.406522726136814]},{"name":"庆阳市","coord":[107.73052193155061,36.183821532624464]},{"name":"固原市","coord":[106.20191575442442,36.11634909496382]},{"name":"白银市","coord":[104.68634478137065,36.51582865625868]},{"name":"宝鸡市","coord":[107.33534779230747,34.3387216485855]},{"name":"汉中市","coord":[107.03534754266246,33.00142998064871]},{"name":"广元市","coord":[105.92928137563939,32.21872447205537]},{"name":"巴中市","coord":[107.03422410306194,31.99874720836291]},{"name":"南充市","coord":[106.32964805032347,31.156657700184095]},{"name":"绵阳市","coord":[104.58949560201106,31.88628780630976]},{"name":"德阳市","coord":[104.41542984932845,31.110558133718676]},{"name":"成都市","coord":[103.8852290010473,30.777258040348634]},{"name":"阿坝藏族羌族自治","coord":[102.26209319552814,32.45725845387284]},{"name":"安康市","coord":[109.14236501848015,32.77467694678074]},{"name":"十堰市","coord":[110.39934083416314,32.376209039347906]},{"name":"襄阳市","coord":[111.97539147094662,31.93399822417465]},{"name":"宜昌市","coord":[111.22204852395754,30.772457669035354]},{"name":"恩施市","coord":[109.42158366502872,30.260366574390105]},{"name":"张家界市","coord":[110.59760006538717,29.330107409240718]},{"name":"吉首市","coord":[109.72176899848378,28.681903937242495]},{"name":"铜仁地区","coord":[108.54247523485463,28.11736237519646]},{"name":"重庆市","coord":[107.86007108564992,30.186253395053196]},{"name":"怀化市","coord":[109.94325166787243,27.43919084801186]},{"name":"益阳市","coord":[112.43060358108062,28.75127294553697]},{"name":"娄底市","coord":[111.41891416951897,27.696312460064604]},{"name":"常德市","coord":[111.72571610131646,29.27189463838195]},{"name":"荆州市","coord":[112.65896596965268,30.05161542755362]},{"name":"荆门市","coord":[112.6586855902184,31.01267124474617]},{"name":"岳阳市","coord":[113.2595036144316,29.106247116930163]},{"name":"长沙市","coord":[113.15415586456598,28.222934680488425]},{"name":"湘潭市","coord":[112.51092596317824,27.69881544105668]},{"name":"株州市","coord":[113.49665538546823,27.03993794610501]},{"name":"衡阳市","coord":[112.48849636578527,26.783613569970782]},{"name":"邵阳市","coord":[110.6723832117475,26.81652287086792]},{"name":"永州市","coord":[111.8565364154186,25.768488267811968]},{"name":"韶关市","coord":[113.53420325850979,24.69848878771937]},{"name":"惠州市","coord":[114.32029589634925,23.25504544231892]},{"name":"佛山市","coord":[112.95925897403649,23.10116677189257]},{"name":"云浮市","coord":[111.78042514904234,22.840400494105687]},{"name":"深圳市","coord":[114.13138648919008,22.649563063468342]},{"name":"汕尾市","coord":[115.57412892884373,23.06989642104901]},{"name":"河源市","coord":[114.89746229844398,23.97971937124767]},{"name":"揭阳市","coord":[116.04290004239446,23.304802704715357]},{"name":"汕头市","coord":[116.7008461897183,23.35898625947344]},{"name":"潮州市","coord":[116.75405548481658,23.854381508863064]},{"name":"梅州市","coord":[116.13719397345734,24.15633544812716]},{"name":"漳州市","coord":[117.38279760543345,24.41111215459575]},{"name":"厦门市","coord":[118.04275971554665,24.675908246507944]},{"name":"龙岩市","coord":[116.69341144552507,25.20284542644492]},{"name":"泉州市","coord":[118.12035864630246,25.22984144365049]},{"name":"莆田市","coord":[118.82439690138142,25.439653480972687]},{"name":"福州市","coord":[119.1608285845262,25.99117532466728]},{"name":"三明市","coord":[117.51188176216434,26.318292906961602]},{"name":"南平市","coord":[118.16153136678187,27.306303151805437]},{"name":"抚州市","coord":[116.3455359885574,27.487043655935366]},{"name":"鹰潭市","coord":[117.01082360702333,28.241253742969946]},{"name":"吉安市","coord":[114.91377151807418,26.957486660664525]},{"name":"赣州市","coord":[115.046455717572,25.81565075681663]},{"name":"郴州市","coord":[113.1544526703492,25.871927095452524]},{"name":"新余市","coord":[114.94161795877827,27.79044654578371]},{"name":"宜春市","coord":[115.04574494880995,28.306428044943356]},{"name":"南昌市","coord":[115.9963824234495,28.664803351584705]},{"name":"九江市","coord":[115.53225905704193,29.362905920276297]},{"name":"上饶市","coord":[117.8595355766598,28.765755150094634]},{"name":"景德镇市","coord":[117.25387030721845,29.33426823662448]},{"name":"黄山市","coord":[117.85476357809696,29.969632034273722]},{"name":"池州市","coord":[117.34517113140791,30.208089337922335]},{"name":"铜陵市","coord":[117.93160431300694,30.926442655001676]},{"name":"安庆市","coord":[116.54307680610799,30.524265461641296]},{"name":"黄石市","coord":[115.02354597728443,29.924060229331015]},{"name":"咸宁市","coord":[114.26967602231792,29.652174021136048]},{"name":"黄冈市","coord":[115.2859016705373,30.65856897065683]},{"name":"武汉市","coord":[114.34552076948799,30.68836237966767]},{"name":"随州市","coord":[113.3850627838818,31.87891659924412]},{"name":"信阳市","coord":[114.81374730587638,32.0309685135914]},{"name":"驻马店市","coord":[114.07756451509235,32.896720987266114]},{"name":"商洛市","coord":[109.82044421310393,33.77403373563189]},{"name":"西安市","coord":[109.11839808451401,34.225257215515896]},{"name":"渭南市","coord":[109.75732444226935,35.025913644359306]},{"name":"铜川市","coord":[108.98695328111377,35.19235092947735]},{"name":"咸阳市","coord":[108.36398776446165,34.84311348287181]},{"name":"三门峡市","coord":[110.80049688104964,34.31818709571671]},{"name":"运城市","coord":[111.1736679525165,35.19010372283576]},{"name":"洛阳市","coord":[111.87577573098216,34.33379926109848]},{"name":"平顶山市","coord":[112.80931281928427,33.759895800153096]},{"name":"漯河市","coord":[113.83505724178012,33.70034266174508]},{"name":"许昌市","coord":[113.78762484088509,34.051835688452435]},{"name":"郑州市","coord":[113.49619951867594,34.61181797865449]},{"name":"焦作市","coord":[113.13404280173008,35.134167097471625]},{"name":"晋城市","coord":[112.7495732073233,35.63186423091449]},{"name":"长治市","coord":[112.85900842873183,36.45872910742828]},{"name":"临汾市","coord":[111.49379787924448,36.22810800777857]},{"name":"太原市","coord":[112.15628804033796,37.91704444063036]},{"name":"吕梁市","coord":[111.31901105774872,37.712740463356496]},{"name":"晋中市","coord":[113.08199599739676,37.36532613794343]},{"name":"邯郸市","coord":[114.41824047234618,36.530119932543315]},{"name":"安阳市","coord":[113.88883283163116,35.7797611183252]},{"name":"鹤壁市","coord":[114.3654094911545,35.75770487428472]},{"name":"新乡市","coord":[113.9184107718167,35.348471214026716]},{"name":"开封市","coord":[114.52801677500626,34.61371216679872]},{"name":"周口市","coord":[114.88509782391864,33.69999759722657]},{"name":"阜阳市","coord":[115.44595951398213,32.98060371610532]},{"name":"淮南市","coord":[116.68941991880993,32.79972275772595]},{"name":"蚌埠市","coord":[117.38594715783302,33.106729536033896]},{"name":"淮北市","coord":[116.69651711889378,33.69527529383458]},{"name":"宿州市","coord":[117.30175405886838,33.943330421260015]},{"name":"亳州市","coord":[116.12410804185097,33.46769392946132]},{"name":"商丘市","coord":[115.59575176872548,34.28339840831147]},{"name":"菏泽市","coord":[115.53631974831816,35.197319393220624]},{"name":"濮阳市","coord":[115.3070485514902,35.775883510964334]},{"name":"聊城市","coord":[115.8870069012884,36.40529594548765]},{"name":"邢台市","coord":[114.74259008644859,37.251396750084155]},{"name":"石家庄市","coord":[114.56923838363613,38.13141710980106]},{"name":"阳泉市","coord":[113.39216149668508,38.09075470547468]},{"name":"保定市","coord":[115.261524468934,39.09118520781398]},{"name":"衡水市","coord":[115.8182936677897,37.715661598187154]},{"name":"德州市","coord":[116.4582273790399,37.19372347888644]},{"name":"沧州市","coord":[116.76192710911863,38.20240042039232]},{"name":"廊坊市","coord":[116.50410772133856,39.27896741763884]},{"name":"天津市","coord":[117.31988934444873,39.37154482470619]},{"name":"北京市","coord":[116.59734730757869,40.237112944270976]},{"name":"张家口市","coord":[115.1823606483226,40.83732566607167]},{"name":"唐山市","coord":[117.8693184261954,39.71862889477249]},{"name":"秦皇岛市","coord":[119.30467355367742,39.990574652162564]},{"name":"承德市","coord":[117.16275671911026,41.36623845548547]},{"name":"葫芦岛市","coord":[119.9342336210531,40.5628822626519]},{"name":"朝阳市","coord":[120.11853493535794,41.471852354885755]},{"name":"赤峰市","coord":[118.50943546234379,43.25452976059767]},{"name":"锦州市","coord":[121.5167549323861,41.45933087433065]},{"name":"营口市","coord":[122.58571915054674,40.42093503997384]},{"name":"丹东市","coord":[124.33549382902183,40.46369290272115]},{"name":"辽阳市","coord":[123.34064798039414,41.152331397771356]},{"name":"盘锦市","coord":[122.06718005354679,41.05573599862555]},{"name":"阜新市","coord":[121.93889757908204,42.27641773244204]},{"name":"鞍山市","coord":[122.78904432242356,40.77781183142038]},{"name":"沈阳市","coord":[122.99508899709724,42.1162195010079]},{"name":"铁岭市","coord":[124.23100515588399,42.72666083611828]},{"name":"扶顺市","coord":[124.46027188217573,41.82955407638859]},{"name":"通辽市","coord":[122.0729370657937,43.90889130864869]},{"name":"兴安盟","coord":[120.79456431092532,45.92003249442161]},{"name":"白城市","coord":[123.10619907715235,45.25475749267784]},{"name":"齐齐哈尔市","coord":[124.5462214659102,47.55395009317394]},{"name":"大兴安岭地区","coord":[124.50992855161529,52.18438447846694]},{"name":"黑河市","coord":[127.14721400335922,49.25080134026901]},{"name":"大庆市","coord":[124.40329830095243,46.401048760966745]},{"name":"绥化市","coord":[126.5214484055605,46.76992452194825]},{"name":"松原市","coord":[124.21244334807682,44.75779381338502]},{"name":"四平市","coord":[124.27839350328821,43.52139065090318]},{"name":"通化市","coord":[125.67392830706305,41.91771808663852]},{"name":"辽源市","coord":[125.33529527643432,42.758340204944986]},{"name":"吉林市","coord":[126.83350281902375,43.60730120049175]},{"name":"长春市","coord":[125.53597875970374,44.24624314701737]},{"name":"白山市","coord":[127.16780160322108,42.093893880305075]},{"name":"哈尔滨市","coord":[127.39125008786029,45.36200668820575]},{"name":"鹤岗市","coord":[130.4703811258197,47.66520688940109]},{"name":"伊春市","coord":[128.91240831703635,47.93833794565277]},{"name":"七台河市","coord":[131.2677920224311,45.945099776108584]},{"name":"鸡西市","coord":[132.38059153660274,45.722934218318535]},{"name":"双鸭山市","coord":[132.3184817002743,46.65813679030265]},{"name":"佳木斯市","coord":[132.26174446608726,47.17569713691394]},{"name":"呼伦贝尔市","coord":[122.3210739998419,50.18176996070858]},{"name":"孝感市","coord":[113.83749892135485,31.11757234692128]},{"name":"贵港市","coord":[110.07354588052804,23.380735604767374]},{"name":"黔南布依族苗族自","coord":[107.30931767543106,26.2976919432269]},{"name":"宁德市","coord":[119.52482556634342,27.013151692716413]},{"name":"温州市","coord":[120.30037042732202,27.8699145504001]},{"name":"台州市","coord":[120.88886782713843,28.670799172772313]},{"name":"丽水市","coord":[119.56796851966463,28.170268394477755]},{"name":"衢州市","coord":[118.79479802644406,28.865874397158763]},{"name":"金华市","coord":[119.99381920686633,29.093455548185744]},{"name":"绍兴市","coord":[120.46546691682343,29.69382513836818]},{"name":"宁波市","coord":[121.42142987830871,29.70001162878972]},{"name":"杭州市","coord":[119.4405685790891,29.87218307296989]},{"name":"宣城市","coord":[118.68748382914703,30.628143499626418]},{"name":"湖州市","coord":[119.98261306633574,30.7945175862809]},{"name":"嘉兴市","coord":[120.83889215988998,30.67538495499343]},{"name":"上海市","coord":[121.37534147322967,31.25628247908459]},{"name":"苏州市","coord":[120.6906182622391,31.381280695137775]},{"name":"无锡市","coord":[120.32182300914366,31.54113306724517]},{"name":"常州市","coord":[119.61953292830165,31.611878565375576]},{"name":"南京市","coord":[118.71890548838064,31.910863187910323]},{"name":"镇江市","coord":[119.42349332902813,31.97942313430778]},{"name":"合肥市","coord":[117.30651975617157,31.79407863049138]},{"name":"六安市","coord":[116.24668220575353,31.820846193819513]},{"name":"滁州市","coord":[117.88422385307969,32.51792621904418]},{"name":"泰州市","coord":[120.03124303305091,32.56503102346783]},{"name":"南通市","coord":[120.85599446760912,32.18496706099728]},{"name":"盐城市","coord":[120.01812490612667,33.54219948734023]},{"name":"淮安市","coord":[119.0749424205415,33.39203631772854]},{"name":"宿迁市","coord":[118.45404943216346,33.666258719120265]},{"name":"徐州市","coord":[117.77482249295966,34.30847766157078]},{"name":"济宁市","coord":[116.74147276546373,35.27488504351119]},{"name":"枣庄市","coord":[117.43359942491492,34.884162021736]},{"name":"连云港市","coord":[119.01553213785074,34.54316517587849]},{"name":"临沂市","coord":[118.31478835349617,35.28173079028279]},{"name":"日照市","coord":[119.14265350444272,35.54479073199592]},{"name":"青岛市","coord":[120.27779044405756,36.3464117375903]},{"name":"威海市","coord":[122.12963327195605,37.13879077904251]},{"name":"烟台市","coord":[120.7689567423966,37.19772002195597]},{"name":"潍坊市","coord":[119.02178548592039,36.49292234053931]},{"name":"淄博市","coord":[117.92936024367185,36.60871347163638]},{"name":"泰安市","coord":[116.93810893944303,36.0423330118612]},{"name":"济南市","coord":[117.34560282551296,36.769574973846304]},{"name":"东营市","coord":[118.4915054457184,37.52194690335787]},{"name":"滨州市","coord":[117.67610299757533,37.4439597758601]},{"name":"昆明市","coord":[102.93100245594789,25.481300763922075]},{"name":"玉溪市","coord":[102.23080854291823,24.156168324611663]},{"name":"塔城地区","coord":[83.60908162840168,45.3721852373893]},{"name":"张掖市","coord":[100.47710030600572,38.704239320458385]},{"name":"南阳市","coord":[112.1400670951149,33.03033276715801]},{"name":"扬州市","coord":[119.48949608990988,32.80956776339646]},{"name":"延边朝鲜族自治州","coord":[129.3577692895626,43.24968794080283]},{"name":"牡丹江市","coord":[129.87240796405672,44.7073040108322]},{"name":"澳门","coord":[113.56289691515346,22.14602596262204]},{"name":"吴忠市","coord":[106.76894508116403,37.72566765880316]},{"name":"来宾市","coord":[109.25592217010114,23.86346274681084]},{"name":"平凉市","coord":[107.0708132782897,35.30329631658711]},{"name":"马鞍山市","coord":[118.27245878467022,31.657727937739004]},{"name":"芜湖市","coord":[118.32992684415504,31.081688223101658]},{"name":"澄迈县","coord":[110.04198076060266,19.694955078668105]},{"name":"保亭黎族苗族自治","coord":[109.6055304964257,18.6101488675304]},{"name":"乐东黎族自治县","coord":[109.04051999525574,18.643137437909203]},{"name":"儋州市","coord":[109.3431358337404,19.550974957403195]},{"name":"定安县","coord":[110.38744429685676,19.47557074114284]},{"name":"屯昌县","coord":[110.00574767630334,19.367175093044388]},{"name":"白沙黎族自治县","coord":[109.36860737761768,19.214416393082217]},{"name":"琼中黎族苗族自治","coord":[109.86691465937548,19.073671135862682]},{"name":"东方市","coord":[108.86903802405428,19.017352815445214]},{"name":"昌江黎族自治县","coord":[108.9686431884767,19.182594167127824]},{"name":"海口市","coord":[110.420654296875,19.806565564640795]},{"name":"济源市","coord":[112.38051465474433,35.07958362422394]},{"name":"五指山市","coord":[109.53595187364496,18.832908264613966]},{"name":"大连市","coord":[121.96662235866603,39.444150542439914]},{"name":"文昌市三沙市","coord":[110.81828537536748,19.756501444162936]},{"name":"三亚市","coord":[109.38424600793707,18.39186315877128]},{"name":"万宁市","coord":[110.28485046979574,18.860240588635115]},{"name":"陵水黎族自治县","coord":[109.95577603229562,18.594712684620465]},{"name":"临高县","coord":[109.71915395436967,19.79420403032508]},{"name":"琼海市","coord":[110.41650700703043,19.22315873149372]}]')},"592d":function(e,t,n){"use strict";t["a"]={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"}},5938:function(e,t,n){"use strict";function r(e,t,n,r){for(var i=e[t],o=e[t+1],a=0,s=t+r;s<n;s+=r){var l=e[s],c=e[s+1];a+=Math.sqrt((l-i)*(l-i)+(c-o)*(c-o)),i=l,o=c}return a}n.d(t,"a",(function(){return r}))},5944:function(e,t,n){},5950:function(e,t,n){},"595b":function(e,t,n){!function(e,n){n(t)}(0,(function(e){"use strict";function t(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.bbox,i=n.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");r&&E(r),i&&k(i);var o={type:"Feature"};return i&&(o.id=i),r&&(o.bbox=r),o.properties=t||{},o.geometry=e,o}function n(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var i,a=n.bbox;if(!e)throw new Error("type is required");if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");switch(a&&E(a),e){case"Point":i=r(t).geometry;break;case"LineString":i=s(t).geometry;break;case"Polygon":i=o(t).geometry;break;case"MultiPoint":i=d(t).geometry;break;case"MultiLineString":i=u(t).geometry;break;case"MultiPolygon":i=f(t).geometry;break;default:throw new Error(e+" is invalid")}return a&&(i.bbox=a),i}function r(e,n,r){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!S(e[0])||!S(e[1]))throw new Error("coordinates must contain numbers");return t({type:"Point",coordinates:e},n,r)}function i(e,t,n){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return c(e.map((function(e){return r(e,t)})),n)}function o(e,n,r){if(!e)throw new Error("coordinates is required");for(var i=0;i<e.length;i++){var o=e[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++){if(0===i&&0===a&&!S(o[0][0])||!S(o[0][1]))throw new Error("coordinates must contain numbers");if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}}return t({type:"Polygon",coordinates:e},n,r)}function a(e,t,n){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return c(e.map((function(e){return o(e,t)})),n)}function s(e,n,r){if(!e)throw new Error("coordinates is required");if(e.length<2)throw new Error("coordinates must be an array of two or more positions");if(!S(e[0][1])||!S(e[0][1]))throw new Error("coordinates must contain numbers");return t({type:"LineString",coordinates:e},n,r)}function l(e,t,n){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");return c(e.map((function(e){return s(e,t)})),n)}function c(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.bbox,r=t.id;if(!e)throw new Error("No features passed");if(!Array.isArray(e))throw new Error("features must be an Array");n&&E(n),r&&k(r);var i={type:"FeatureCollection"};return r&&(i.id=r),n&&(i.bbox=n),i.features=e,i}function u(e,n,r){if(!e)throw new Error("coordinates is required");return t({type:"MultiLineString",coordinates:e},n,r)}function d(e,n,r){if(!e)throw new Error("coordinates is required");return t({type:"MultiPoint",coordinates:e},n,r)}function f(e,n,r){if(!e)throw new Error("coordinates is required");return t({type:"MultiPolygon",coordinates:e},n,r)}function h(e,n,r){if(!e)throw new Error("geometries is required");if(!Array.isArray(e))throw new Error("geometries must be an Array");return t({type:"GeometryCollection",geometries:e},n,r)}function p(e,t){if(void 0===e||null===e||isNaN(e))throw new Error("num is required");if(t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n}function m(e,t){if(void 0===e||null===e)throw new Error("radians is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var n=jo[t||"kilometers"];if(!n)throw new Error(t+" units is invalid");return e*n}function g(e,t){if(void 0===e||null===e)throw new Error("distance is required");if(t&&"string"!=typeof t)throw new Error("units must be a string");var n=jo[t||"kilometers"];if(!n)throw new Error(t+" units is invalid");return e/n}function v(e,t){return b(g(e,t))}function y(e){if(null===e||void 0===e)throw new Error("bearing is required");var t=e%360;return t<0&&(t+=360),t}function b(e){if(null===e||void 0===e)throw new Error("radians is required");return e%(2*Math.PI)*180/Math.PI}function _(e){if(null===e||void 0===e)throw new Error("degrees is required");return e%360*Math.PI/180}function w(e,t,n){if(null===e||void 0===e)throw new Error("length is required");if(!(e>=0))throw new Error("length must be a positive number");return m(g(e,t),n||"kilometers")}function x(e,t,n){if(null===e||void 0===e)throw new Error("area is required");if(!(e>=0))throw new Error("area must be a positive number");var r=Bo[t||"meters"];if(!r)throw new Error("invalid original units");var i=Bo[n||"kilometers"];if(!i)throw new Error("invalid final units");return e/r*i}function S(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function C(e){return!!e&&e.constructor===Object}function E(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!S(e))throw new Error("bbox must only contain numbers")}))}function k(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}function O(e,t,n){if(null!==e)for(var r,i,o,a,s,l,c,u,d=0,f=0,h=e.type,p="FeatureCollection"===h,m="Feature"===h,g=p?e.features.length:1,v=0;v<g;v++){s=(u=!!(c=p?e.features[v].geometry:m?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var y=0;y<s;y++){var b=0,_=0;if(null!==(a=u?c.geometries[y]:c)){l=a.coordinates;var w=a.type;switch(d=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":t(l,f,v,b,_),f++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++)t(l[r],f,v,b,_),f++,"MultiPoint"===w&&b++;"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(i=0;i<l[r].length-d;i++)t(l[r][i],f,v,b,_),f++;"MultiLineString"===w&&b++,"Polygon"===w&&_++}"Polygon"===w&&b++;break;case"MultiPolygon":for(r=0;r<l.length;r++){for("MultiPolygon"===w&&(_=0),i=0;i<l[r].length;i++){for(o=0;o<l[r][i].length-d;o++)t(l[r][i][o],f,v,b,_),f++;_++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)O(a.geometries[r],t,n);break;default:throw new Error("Unknown Geometry Type")}}}}}function T(e,t,n,r){var i=n;return O(e,(function(e,r,o,a,s){i=0===r&&void 0===n?e:t(i,e,r,o,a,s)}),r),i}function I(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length;n++)t(e.features[n].properties,n);break;case"Feature":t(e.properties,0)}}function A(e,t,n){var r=n;return I(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r}function R(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length;n++)t(e.features[n],n)}function P(e,t,n){var r=n;return R(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r}function M(e){var t=[];return O(e,(function(e){t.push(e)})),t}function N(e,t){var n,r,i,o,a,s,l,c,u,d,f=0,h="FeatureCollection"===e.type,p="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:p?e.geometry:e,c=h?e.features[n].properties:p?e.properties:{},u=h?e.features[n].bbox:p?e.bbox:void 0,d=h?e.features[n].id:p?e.id:void 0,a=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=l?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":t(o,f,c,u,d);break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)t(o.geometries[r],f,c,u,d);break;default:throw new Error("Unknown Geometry Type")}else t(null,f,c,u,d);f++}}function L(e,t,n){var r=n;return N(e,(function(e,i,o,a,s){r=0===i&&void 0===n?e:t(r,e,i,o,a,s)})),r}function D(e,n){N(e,(function(e,r,i,o,a){var s,l=null===e?null:e.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return void n(t(e,i,{bbox:o,id:a}),r,0)}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}e.coordinates.forEach((function(e,o){n(t({type:s,coordinates:e},i),r,o)}))}))}function j(e,t,n){var r=n;return D(e,(function(e,i,o){r=0===i&&0===o&&void 0===n?e:t(r,e,i,o)})),r}function F(e,t){D(e,(function(e,n,r){var i=0;if(e.geometry){var o=e.geometry.type;"Point"!==o&&"MultiPoint"!==o&&T(e,(function(o,a,l,c,u,d){var f=s([o,a],e.properties);return t(f,n,r,d,i),i++,a}))}}))}function B(e,t,n){var r=n,i=!1;return F(e,(function(e,o,a,s,l){r=!1===i&&void 0===n?e:t(r,e,o,a,s,l),i=!0})),r}function q(e,t){if(!e)throw new Error("geojson is required");D(e,(function(e,n,r){if(null!==e.geometry){var i=e.geometry.type,o=e.geometry.coordinates;switch(i){case"LineString":t(e,n,r,0,0);break;case"Polygon":for(var a=0;a<o.length;a++)t(s(o[a],e.properties),n,r,a)}}}))}function z(e,t,n){var r=n;return q(e,(function(e,i,o,a){r=0===i&&void 0===n?e:t(r,e,i,o,a)})),r}function U(e){var t=[1/0,1/0,-1/0,-1/0];return O(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}function G(e){if(!e)throw new Error("obj is required");var t=V(e);if(t.length>1&&S(t[0])&&S(t[1]))return t;throw new Error("Coordinate is not a valid Point")}function V(e){if(!e)throw new Error("obj is required");var t;if(e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates),t)return W(t),t;throw new Error("No valid coordinates")}function W(e){if(e.length>1&&S(e[0])&&S(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return W(e[0]);throw new Error("coordinates must only contain numbers")}function H(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)}function $(e,t,n){if(!e)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.geometry.type)}function K(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0;r<e.features.length;r++){var i=e.features[r];if(!i||"Feature"!==i.type||!i.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!i.geometry||i.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+i.geometry.type)}}function X(e){if(!e)throw new Error("geojson is required");if(void 0!==e.geometry)return e.geometry;if(e.coordinates||e.geometries)return e;throw new Error("geojson must be a valid Feature or Geometry Object")}function Y(){throw new Error("invariant.getGeomType has been deprecated in v5.0 in favor of invariant.getType")}function J(e,t){if(!e)throw new Error((t||"geojson")+" is required");if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error((t||"geojson")+" is invalid")}function Q(e,t,n){n=n||{};for(var r=Object.keys(Go),i=0;i<r.length;i++){var o=r[i],a=n[o];a=void 0!==a&&null!==a?a:Go[o],Vo[o]=a}Vo.verbose&&console.log("MarchingSquaresJS-isoContours: computing isocontour for "+t);var s=function(e){var t=[],n=0;return e.rows,e.cols,e.cells.forEach((function(r,i){r.forEach((function(r,o){if(void 0!==r&&!function(e){return 5===e.cval||10===e.cval}(r)&&!ee(r)){var a=function(e,t,n){var r,i,o,a=e.length,s=[],l=[0,0,1,1,0,0,0,0,-1,0,1,1,-1,0,-1,0],c=[0,-1,0,0,1,1,1,1,0,-1,0,0,0,-1,0,0],u=["none","bottom","right","right","top","top","top","top","left","bottom","right","right","left","bottom","left","none"],d=(e[t][n],e[t][n]),f=d.cval,h=ne(d,o=["none","left","bottom","left","right","none","bottom","left","top","top","none","top","right","right","bottom","none"][f]);s.push([n+h[0],t+h[1]]),h=ne(d,o=u[f]),s.push([n+h[0],t+h[1]]),te(d);for(var p=n+l[f],m=t+c[f],g=f;p>=0&&m>=0&&m<a&&(p!=n||m!=t)&&void 0!==(d=e[m][p]);){if(0===(f=d.cval)||15===f)return{path:s,info:"mergeable"};o=u[f],r=l[f],i=c[f],5!==f&&10!==f||(5===f?d.flipped?-1===c[g]?(o="left",r=-1,i=0):(o="right",r=1,i=0):-1===l[g]&&(o="bottom",r=0,i=-1):10===f&&(d.flipped?-1===l[g]?(o="top",r=0,i=1):(o="bottom",r=0,i=-1):1===c[g]&&(o="left",r=-1,i=0))),h=ne(d,o),s.push([p+h[0],m+h[1]]),te(d),p+=r,m+=i,g=f}return{path:s,info:"closed"}}(e.cells,i,o),s=!1;if("mergeable"===a.info)for(var l=a.path[a.path.length-1][0],c=a.path[a.path.length-1][1],u=n-1;u>=0;u--)if(Math.abs(t[u][0][0]-l)<=1e-7&&Math.abs(t[u][0][1]-c)<=1e-7){for(var d=a.path.length-2;d>=0;--d)t[u].unshift(a.path[d]);s=!0;break}s||(t[n++]=a.path)}}))})),t}(function(e,t){for(var n=e.length-1,r=e[0].length-1,i={rows:n,cols:r,cells:[]},o=0;o<n;++o){i.cells[o]=[];for(var a=0;a<r;++a){var s=0,l=e[o+1][a],c=e[o+1][a+1],u=e[o][a+1],d=e[o][a];if(!(isNaN(l)||isNaN(c)||isNaN(u)||isNaN(d))){s|=l>=t?8:0,s|=c>=t?4:0,s|=u>=t?2:0;var f,h,p,m,g=!1;if(5===(s|=d>=t?1:0)||10===s){var v=(l+c+u+d)/4;5===s&&v<t?(s=10,g=!0):10===s&&v<t&&(s=5,g=!0)}if(0!==s&&15!==s)f=h=p=m=.5,1===s?(p=1-Z(t,l,d),h=1-Z(t,u,d)):2===s?(h=Z(t,d,u),m=1-Z(t,c,u)):3===s?(p=1-Z(t,l,d),m=1-Z(t,c,u)):4===s?(f=Z(t,l,c),m=Z(t,u,c)):5===s?(f=Z(t,l,c),m=Z(t,u,c),h=1-Z(t,u,d),p=1-Z(t,l,d)):6===s?(h=Z(t,d,u),f=Z(t,l,c)):7===s?(p=1-Z(t,l,d),f=Z(t,l,c)):8===s?(p=Z(t,d,l),f=1-Z(t,c,l)):9===s?(h=1-Z(t,u,d),f=1-Z(t,c,l)):10===s?(f=1-Z(t,c,l),m=1-Z(t,c,u),h=Z(t,d,u),p=Z(t,d,l)):11===s?(f=1-Z(t,c,l),m=1-Z(t,c,u)):12===s?(p=Z(t,d,l),m=Z(t,u,c)):13===s?(h=1-Z(t,u,d),m=Z(t,u,c)):14===s?(p=Z(t,d,l),h=Z(t,d,u)):console.log("MarchingSquaresJS-isoContours: Illegal cval detected: "+s),i.cells[o][a]={cval:s,flipped:g,top:f,right:m,bottom:h,left:p}}}}return i}(e,t));return"function"==typeof Vo.successCallback&&Vo.successCallback(s),s}function Z(e,t,n){return(e-t)/(n-t)}function ee(e){return 0===e.cval||15===e.cval}function te(e){ee(e)||5===e.cval||10===e.cval||(e.cval=15)}function ne(e,t){return"top"===t?[e.top,1]:"bottom"===t?[e.bottom,0]:"right"===t?[1,e.right]:"left"===t?[0,e.left]:void 0}function re(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.zProperty||"elevation",r=t.flip,i=t.flags;K(e,"Point","input must contain Points");for(var o=function(e,t){var n={};return R(e,(function(e){var t=V(e)[1];n[t]||(n[t]=[]),n[t].push(e)})),Object.keys(n).map((function(e){var t=n[e],r=t.sort((function(e,t){return V(e)[0]-V(t)[0]}));return r})).sort((function(e,n){return t?V(e[0])[1]-V(n[0])[1]:V(n[0])[1]-V(e[0])[1]}))}(e,r),a=[],s=0;s<o.length;s++){for(var l=o[s],c=[],u=0;u<l.length;u++){var d=l[u];d.properties[n]?c.push(d.properties[n]):c.push(0),!0===i&&(d.properties.matrixPosition=[s,u])}a.push(c)}return a}function ie(e,t,n,r,i){for(n=n||0,r=r||e.length-1,i=i||function(e,t){return e<t?-1:e>t?1:0};r>n;){if(r-n>600){var o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);ie(e,t,Math.max(n,Math.floor(t-a*l/o+c)),Math.min(r,Math.floor(t+(o-a)*l/o+c)),i)}var u=e[t],d=n,f=r;for(oe(e,n,t),i(e[r],u)>0&&oe(e,n,r);d<f;){for(oe(e,d,f),d++,f--;i(e[d],u)<0;)d++;for(;i(e[f],u)>0;)f--}0===i(e[n],u)?oe(e,n,f):oe(e,++f,r),f<=t&&(n=f+1),t<=f&&(r=f-1)}}function oe(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ae(e,t){if(!(this instanceof ae))return new ae(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function se(e,t){le(e,0,e.children.length,t,e)}function le(e,t,n,r,i){i||(i=ge(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,a=t;a<n;a++)o=e.children[a],ce(i,e.leaf?r(o):o);return i}function ce(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function ue(e,t){return e.minX-t.minX}function de(e,t){return e.minY-t.minY}function fe(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function he(e){return e.maxX-e.minX+(e.maxY-e.minY)}function pe(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function me(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function ge(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function ve(e,t,n,r,i){for(var o,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=r||(o=t+Math.ceil((n-t)/r/2)*r,Wo(e,o,t,n,i),a.push(t,o,o,n))}function ye(e,t){return t={exports:{}},e(t,t.exports),t.exports}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this.data=e||[],this.length=this.data.length,this.compare=t||function(e,t){return e<t?-1:e>t?1:0},this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)}function _e(e,t,n){t=Math.max(0,void 0===t?2:t),n=n||0;for(var r,i=function(e){for(var t=e[0],n=e[0],r=e[0],i=e[0],o=0;o<e.length;o++){var a=e[o];a[0]<t[0]&&(t=a),a[0]>r[0]&&(r=a),a[1]<n[1]&&(n=a),a[1]>i[1]&&(i=a)}var s=[t,n,r,i],l=s.slice();for(o=0;o<e.length;o++)ia(e[o],s)||l.push(e[o]);var c=ea(l),u=[];for(o=0;o<c.length;o++)u.push(l[c[o]]);return u}(e),o=Ho(16,["[0]","[1]","[0]","[1]"]).load(e),a=[],s=0;s<i.length;s++){var l=i[s];o.remove(l),r=Ee(l,r),a.push(r)}var c=Ho(16);for(s=0;s<a.length;s++)c.insert(Ce(a[s]));for(var u=t*t,d=n*n;a.length;){var f=a.shift(),h=f.p,p=f.next.p,m=ke(h,p);if(!(m<d)){var g=m/u;(l=function(e,t,n,r,i,o,a){for(var s=new na(null,we),l=e.data;l;){for(var c=0;c<l.children.length;c++){var u=l.children[c],d=l.leaf?Oe(u,n,r):function(e,t,n){if(xe(e,n)||xe(t,n))return 0;var r=Te(e[0],e[1],t[0],t[1],n.minX,n.minY,n.maxX,n.minY);if(0===r)return 0;var i=Te(e[0],e[1],t[0],t[1],n.minX,n.minY,n.minX,n.maxY);if(0===i)return 0;var o=Te(e[0],e[1],t[0],t[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var a=Te(e[0],e[1],t[0],t[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===a?0:Math.min(r,i,o,a)}(n,r,u);d>o||s.push({node:u,dist:d})}for(;s.length&&!s.peek().node.children;){var f=s.pop(),h=f.node,p=Oe(h,t,n),m=Oe(h,r,i);if(f.dist<p&&f.dist<m&&Se(n,h,a)&&Se(r,h,a))return h}(l=s.pop())&&(l=l.node)}return null}(o,f.prev.p,h,p,f.next.next.p,g,c))&&Math.min(ke(l,h),ke(l,p))<=g&&(a.push(f),a.push(Ee(l,f)),o.remove(l),c.remove(f),c.insert(Ce(f)),c.insert(Ce(f.next)))}}f=r;var v=[];do{v.push(f.p),f=f.next}while(f!==r);return v.push(f.p),v}function we(e,t){return e.dist-t.dist}function xe(e,t){return e[0]>=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function Se(e,t,n){for(var r=Math.min(e[0],t[0]),i=Math.min(e[1],t[1]),o=Math.max(e[0],t[0]),a=Math.max(e[1],t[1]),s=n.search({minX:r,minY:i,maxX:o,maxY:a}),l=0;l<s.length;l++)if(function(e,t,n,r){return e!==r&&t!==n&&oa(e,t,n)>0!=oa(e,t,r)>0&&oa(n,r,e)>0!=oa(n,r,t)>0}(s[l].p,s[l].next.p,e,t))return!1;return!0}function Ce(e){var t=e.p,n=e.next.p;return e.minX=Math.min(t[0],n[0]),e.minY=Math.min(t[1],n[1]),e.maxX=Math.max(t[0],n[0]),e.maxY=Math.max(t[1],n[1]),e}function Ee(e,t){var n={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function ke(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function Oe(e,t,n){var r=t[0],i=t[1],o=n[0]-r,a=n[1]-i;if(0!==o||0!==a){var s=((e[0]-r)*o+(e[1]-i)*a)/(o*o+a*a);s>1?(r=n[0],i=n[1]):s>0&&(r+=o*s,i+=a*s)}return o=e[0]-r,a=e[1]-i,o*o+a*a}function Te(e,t,n,r,i,o,a,s){var l,c,u,d,f=n-e,h=r-t,p=a-i,m=s-o,g=e-i,v=t-o,y=f*f+h*h,b=f*p+h*m,_=p*p+m*m,w=f*g+h*v,x=p*g+m*v,S=y*_-b*b,C=S,E=S;0===S?(c=0,C=1,d=x,E=_):(d=y*x-b*w,(c=b*x-_*w)<0?(c=0,d=x,E=_):c>C&&(c=C,d=x+b,E=_)),d<0?(d=0,-w<0?c=0:-w>y?c=C:(c=-w,C=y)):d>E&&(d=E,-w+b<0?c=0:-w+b>y?c=C:(c=-w+b,C=y)),l=0===c?0:c/C;var k=(1-(u=0===d?0:d/E))*i+u*a-((1-l)*e+l*n),O=(1-u)*o+u*s-((1-l)*t+l*r);return k*k+O*O}function Ie(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.concavity||1/0,r=[];if(O(e,(function(e){r.push([e[0],e[1]])})),!r.length)return null;var i=aa(r,n);return i.length>3?o([i]):null}function Ae(e,t,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var r=n.ignoreBoundary;if(!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var i=G(e),o=V(t),a=t.geometry?t.geometry.type:t.type,s=t.bbox;if(s&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(i,s))return!1;"Polygon"===a&&(o=[o]);for(var l=0,c=!1;l<o.length&&!c;l++)if(Re(i,o[l][0],r)){for(var u=!1,d=1;d<o[l].length&&!u;)Re(i,o[l][d],!r)&&(u=!0),d++;u||(c=!0)}return c}function Re(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,o=t.length-1;i<t.length;o=i++){var a=t[i][0],s=t[i][1],l=t[o][0],c=t[o][1];if(e[1]*(a-l)+s*(l-e[0])+c*(e[0]-a)==0&&(a-e[0])*(l-e[0])<=0&&(s-e[1])*(c-e[1])<=0)return!n;s>e[1]!=c>e[1]&&e[0]<(l-a)*(e[1]-s)/(c-s)+a&&(r=!r)}return r}function Pe(e,t){var n=[];return N(t,(function(t){R(e,(function(e){Ae(e,t)&&n.push(e)}))})),c(n)}function Me(e,t){if("FeatureCollection"!==e.type)throw new Error("points must be a FeatureCollection");var n=!1;return c(function(e){if(e.length<3)return[];e.sort(Le);for(var t,n,r,i,o,a,s=e.length-1,l=e[s].x,c=e[0].x,u=e[s].y,d=u;s--;)e[s].y<u&&(u=e[s].y),e[s].y>d&&(d=e[s].y);var f,h=c-l,p=d-u,m=h>p?h:p,g=.5*(c+l),v=.5*(d+u),y=[new Ne({x:g-20*m,y:v-m,__sentinel:!0},{x:g,y:v+20*m,__sentinel:!0},{x:g+20*m,y:v-m,__sentinel:!0})],b=[],_=[];for(s=e.length;s--;){for(_.length=0,f=y.length;f--;)(h=e[s].x-y[f].x)>0&&h*h>y[f].r?(b.push(y[f]),y.splice(f,1)):(p=e[s].y-y[f].y,h*h+p*p>y[f].r||(_.push(y[f].a,y[f].b,y[f].b,y[f].c,y[f].c,y[f].a),y.splice(f,1)));for(De(_),f=_.length;f;)n=_[--f],t=_[--f],r=e[s],i=n.x-t.x,o=n.y-t.y,a=2*(i*(r.y-n.y)-o*(r.x-n.x)),Math.abs(a)>1e-12&&y.push(new Ne(t,n,r))}for(Array.prototype.push.apply(b,y),s=b.length;s--;)(b[s].a.__sentinel||b[s].b.__sentinel||b[s].c.__sentinel)&&b.splice(s,1);return b}(e.features.map((function(e){var r={x:e.geometry.coordinates[0],y:e.geometry.coordinates[1]};return t?r.z=e.properties[t]:3===e.geometry.coordinates.length&&(n=!0,r.z=e.geometry.coordinates[2]),r}))).map((function(e){var t=[e.a.x,e.a.y],r=[e.b.x,e.b.y],i=[e.c.x,e.c.y],a={};return n?(t.push(e.a.z),r.push(e.b.z),i.push(e.c.z)):a={a:e.a.z,b:e.b.z,c:e.c.z},o([[t,r,i,t]],a)})))}function Ne(e,t,n){this.a=e,this.b=t,this.c=n;var r,i,o=t.x-e.x,a=t.y-e.y,s=n.x-e.x,l=n.y-e.y,c=o*(e.x+t.x)+a*(e.y+t.y),u=s*(e.x+n.x)+l*(e.y+n.y),d=2*(o*(n.y-t.y)-a*(n.x-t.x));this.x=(l*c-a*u)/d,this.y=(o*u-s*c)/d,r=this.x-e.x,i=this.y-e.y,this.r=r*r+i*i}function Le(e,t){return t.x-e.x}function De(e){var t,n,r,i,o,a=e.length;e:for(;a;)for(n=e[--a],t=e[--a],r=a;r;)if(o=e[--r],i=e[--r],t===i&&n===o||t===o&&n===i){e.splice(a,2),e.splice(r,2),a-=2;continue e}}function je(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.units,i=G(e),o=G(t),a=_(o[1]-i[1]),s=_(o[0]-i[0]),l=_(i[1]),c=_(o[1]),u=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(l)*Math.cos(c);return m(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),r)}function Fe(e){if(!e)throw new Error("geojson is required");switch(e.type){case"Feature":return Be(e);case"FeatureCollection":return function(e){var t={type:"FeatureCollection"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"features":return;default:t[n]=e[n]}})),t.features=e.features.map((function(e){return Be(e)})),t}(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return ze(e);default:throw new Error("unknown GeoJSON type")}}function Be(e){var t={type:"Feature"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"properties":case"geometry":return;default:t[n]=e[n]}})),t.properties=qe(e.properties),t.geometry=ze(e.geometry),t}function qe(e){var t={};return e?(Object.keys(e).forEach((function(n){var r=e[n];"object"==typeof r?null===r?t[n]=null:r.length?t[n]=r.map((function(e){return e})):t[n]=qe(r):t[n]=r})),t):t}function ze(e){var t={type:e.type};return e.bbox&&(t.bbox=e.bbox),"GeometryCollection"===e.type?(t.geometries=e.geometries.map((function(e){return ze(e)})),t):(t.coordinates=Ue(e.coordinates),t)}function Ue(e){return"object"!=typeof e[0]?e.slice():e.map((function(e){return Ue(e)}))}function Ge(e,t){function n(e,t){t.length&&t.pop();for(var n=c[e<0?~e:e],r=0,i=n.length;r<i;++r)t.push(l(n[r],r));e<0&&ua(t,i)}function r(e){return l(e)}function i(e){for(var t=[],r=0,i=e.length;r<i;++r)n(e[r],t);return t.length<2&&t.push(t[0]),t}function o(e){for(var t=i(e);t.length<4;)t.push(t[0]);return t}function a(e){return e.map(o)}function s(e){var t,n=e.type;switch(n){case"GeometryCollection":return{type:n,geometries:e.geometries.map(s)};case"Point":t=r(e.coordinates);break;case"MultiPoint":t=e.coordinates.map(r);break;case"LineString":t=i(e.arcs);break;case"MultiLineString":t=e.arcs.map(i);break;case"Polygon":t=a(e.arcs);break;case"MultiPolygon":t=e.arcs.map(a);break;default:return null}return{type:n,coordinates:t}}var l=ca(e.transform),c=e.arcs;return s(t)}function Ve(e,t){function n(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(n);break;case"Polygon":r(e.arcs);break;case"MultiPolygon":e.arcs.forEach(r)}}function r(e){e.forEach((function(t){t.forEach((function(t){(o[t=t<0?~t:t]||(o[t]=[])).push(e)}))})),a.push(e)}function i(t){return function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[0]*i[1]-t[1]*i[0];return Math.abs(o)}(Ge(e,{type:"Polygon",arcs:[t]}).coordinates[0])}var o={},a=[],s=[];return t.forEach(n),a.forEach((function(e){if(!e._){var t=[],n=[e];for(e._=1,s.push(t);e=n.pop();)t.push(e),e.forEach((function(e){e.forEach((function(e){o[e<0?~e:e].forEach((function(e){e._||(e._=1,n.push(e))}))}))}))}})),a.forEach((function(e){delete e._})),{type:"MultiPolygon",arcs:s.map((function(t){var n,r=[];if(t.forEach((function(e){e.forEach((function(e){e.forEach((function(e){o[e<0?~e:e].length<2&&r.push(e)}))}))})),r=da(e,r),(n=r.length)>1)for(var a,s,l=1,c=i(r[0]);l<n;++l)(a=i(r[l]))>c&&(s=r[0],r[0]=r[l],r[l]=s,c=a);return r}))}}function We(e,t,n){for(var r,i=t+(n---t>>1);t<i;++t,--n)r=e[t],e[t]=e[n],e[n]=r}function He(e){return null==e?{type:null}:("FeatureCollection"===e.type?function(e){var t={type:"GeometryCollection",geometries:e.features.map($e)};return null!=e.bbox&&(t.bbox=e.bbox),t}:"Feature"===e.type?$e:Ke)(e)}function $e(e){var t,n=Ke(e.geometry);for(t in null!=e.id&&(n.id=e.id),null!=e.bbox&&(n.bbox=e.bbox),e.properties){n.properties=e.properties;break}return n}function Ke(e){if(null==e)return{type:null};var t="GeometryCollection"===e.type?{type:"GeometryCollection",geometries:e.geometries.map(Ke)}:"Point"===e.type||"MultiPoint"===e.type?{type:e.type,coordinates:e.coordinates}:{type:e.type,arcs:e.coordinates};return null!=e.bbox&&(t.bbox=e.bbox),t}function Xe(e){var t,n=e[0],r=e[1];return r<n&&(t=n,n=r,r=t),n+31*r}function Ye(e,t){var n,r=e[0],i=e[1],o=t[0],a=t[1];return i<r&&(n=r,r=i,i=n),a<o&&(n=o,o=a,a=n),r===o&&i===a}function Je(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.mutate;if("FeatureCollection"!==J(e))throw new Error("geojson must be a FeatureCollection");if(!e.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(e=Fe(e));var r=[],i=z(e,(function(e,t){var n=function(e,t){var n,r=e.geometry.coordinates,i=t.geometry.coordinates,o=Qe(r[0]),a=Qe(r[r.length-1]),l=Qe(i[0]),c=Qe(i[i.length-1]);if(o===c)n=i.concat(r.slice(1));else if(l===a)n=r.concat(i.slice(1));else if(o===l)n=r.slice(1).reverse().concat(i);else{if(a!==c)return null;n=r.concat(i.reverse().slice(1))}return s(n)}(e,t);return n||(r.push(e),t)}));return i&&r.push(i),r.length?1===r.length?r[0]:u(r.map((function(e){return e.coordinates}))):null}function Qe(e){return e[0].toString()+","+e[1].toString()}function Ze(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.mutate;if("FeatureCollection"!==J(e))throw new Error("geojson must be a FeatureCollection");if(!e.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(e=Fe(e));var r=function(e){var t={};D(e,(function(e){t[e.geometry.type]=!0}));var n=Object.keys(t);return 1===n.length?n[0]:null}(e);if(!r)throw new Error("geojson must be homogenous");switch(r){case"LineString":return Je(e,t);case"Polygon":return function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.mutate;if("FeatureCollection"!==J(e))throw new Error("geojson must be a FeatureCollection");if(!e.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(e=Fe(e));var r=[];D(e,(function(e){r.push(e.geometry)}));var i=xa({geoms:h(r).geometry});return fa(i,i.objects.geoms.geometries)}(e,t);default:throw new Error(r+" is not supported")}}function et(e,n){var r="object"==typeof n?n.mutate:n;if(!e)throw new Error("geojson is required");var i=J(e),o=[];switch(i){case"LineString":o=tt(e);break;case"MultiLineString":case"Polygon":V(e).forEach((function(e){o.push(tt(e))}));break;case"MultiPolygon":V(e).forEach((function(e){var t=[];e.forEach((function(e){t.push(tt(e))})),o.push(t)}));break;case"Point":return e;case"MultiPoint":var a={};V(e).forEach((function(e){var t=e.join("-");a.hasOwnProperty(t)||(o.push(e),a[t]=!0)}));break;default:throw new Error(i+" geometry not supported")}return e.coordinates?!0===r?(e.coordinates=o,e):{type:i,coordinates:o}:!0===r?(e.geometry.coordinates=o,e):t({type:i,coordinates:o},e.properties,e.bbox,e.id)}function tt(e){var t=V(e);if(2===t.length&&!function(e,t){return e[0]===t[0]&&e[1]===t[1]}(t[0],t[1]))return t;var n,r,i,o=[],a=t.length-1;o.push(t[0]);for(var s=1;s<a;s++)n=t[s-1],r=t[s],function(e,t,n){var r=n[0],i=n[1],o=e[0],a=e[1],s=t[0],l=t[1],c=s-o,u=l-a;return(r-o)*u-(i-a)*c==0&&(Math.abs(c)>=Math.abs(u)?c>0?o<=r&&r<=s:s<=r&&r<=o:u>0?a<=i&&i<=l:l<=i&&i<=a)}(n,i=t[s+1],r)||o.push(r);return o.push(i),o}function nt(e,t){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function rt(e,t,n){var r=t.x,i=t.y,o=n.x-r,a=n.y-i;if(0!==o||0!==a){var s=((e.x-r)*o+(e.y-i)*a)/(o*o+a*a);s>1?(r=n.x,i=n.y):s>0&&(r+=o*s,i+=a*s)}return o=e.x-r,a=e.y-i,o*o+a*a}function it(e,t,n,r,i){for(var o,a=r,s=t+1;s<n;s++){var l=rt(e[s],e[t],e[n]);l>a&&(o=s,a=l)}a>r&&(o-t>1&&it(e,t,o,r,i),i.push(e[o]),n-o>1&&it(e,o,n,r,i))}function ot(e,t,n){if(e.length<=2)return e;var r=void 0!==t?t*t:1;return e=n?e:function(e,t){for(var n,r=e[0],i=[r],o=1,a=e.length;o<a;o++)nt(n=e[o],r)>t&&(i.push(n),r=n);return r!==n&&i.push(n),i}(e,r),function(e,t){var n=e.length-1,r=[e[0]];return it(e,0,n,t,r),r.push(e[n]),r}(e,r)}function at(e,t,n){return ot(e.map((function(e){return{x:e[0],y:e[1],z:e[2]}})),t,n).map((function(e){return e.z?[e.x,e.y,e.z]:[e.x,e.y]}))}function st(e,t,n){return e.map((function(e){var r=e.map((function(e){return{x:e[0],y:e[1]}}));if(r.length<4)throw new Error("invalid polygon");for(var i=ot(r,t,n).map((function(e){return[e.x,e.y]}));!function(e){return!(e.length<3||3===e.length&&e[2][0]===e[0][0]&&e[2][1]===e[0][1])}(i);)i=ot(r,t-=.01*t,n).map((function(e){return[e.x,e.y]}));return i[i.length-1][0]===i[0][0]&&i[i.length-1][1]===i[0][1]||i.push(i[0]),i}))}function lt(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.resolution||1e4,r=t.sharpness||.85;if(!e)throw new Error("line is required");if(!S(n))throw new Error("resolution must be an number");if(!S(r))throw new Error("sharpness must be an number");for(var i=[],o=new Sa({points:X(e).coordinates.map((function(e){return{x:e[0],y:e[1]}})),duration:n,sharpness:r}),a=0;a<o.duration;a+=10){var l=o.pos(a);Math.floor(a/100)%2==0&&i.push([l.x,l.y])}return s(i,e.properties)}function ct(e){E(e);var t=Number(e[0]),n=Number(e[1]),r=Number(e[2]),i=Number(e[3]);if(6===e.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var a=[t,n];return o([[a,[r,n],[r,i],[t,i],a]])}function ut(e){return ct(U(e))}function dt(e){var t=e[0],n=e[1],r=e[2],i=e[3];if(je(e.slice(0,2),[r,n])>=je(e.slice(0,2),[t,i])){var o=(n+i)/2;return[t,o-(r-t)/2,r,o+(r-t)/2]}var a=(t+r)/2;return[a-(i-n)/2,n,a+(i-n)/2,i]}function ft(e,t,n,i){if(i=i||{},!C(i))throw new Error("options is invalid");var o=i.units,a=i.properties,s=G(e),l=_(s[0]),c=_(s[1]),u=_(n),d=g(t,o),f=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(u));return r([b(l+Math.atan2(Math.sin(u)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(f))),b(f)],a)}function ht(e,t,n){var r=(n=n||{}).steps||64,i=n.properties;if(!e)throw new Error("center is required");if(!t)throw new Error("radius is required");if("object"!=typeof n)throw new Error("options must be an object");if("number"!=typeof r)throw new Error("steps must be a number");r=r||64,i=i||e.properties||{};for(var a=[],s=0;s<r;s++)a.push(ft(e,t,-360*s/r,n).geometry.coordinates);return a.push(a[0]),o([a],i)}function pt(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");if(!0===n.final)return function(e,t){var n=pt(t,e);return(n+180)%360}(e,t);var r=G(e),i=G(t),o=_(r[0]),a=_(i[0]),s=_(r[1]),l=_(i[1]),c=Math.sin(a-o)*Math.cos(l),u=Math.cos(s)*Math.sin(l)-Math.sin(s)*Math.cos(l)*Math.cos(a-o);return b(Math.atan2(c,u))}function mt(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.properties;if(!e)throw new Error("geojson is required");var i=U(e);return r([(i[0]+i[2])/2,(i[1]+i[3])/2],n)}function gt(e,t){var n=0,i=0,o=0;return O(e,(function(e){n+=e[0],i+=e[1],o++}),!0),r([n/o,i/o],t)}function vt(e,t){switch(J(e)){case"Point":return e;case"Polygon":var n=[];O(e,(function(e){n.push(e)}));var i,o,a,s,l,c,u,d,f=gt(e,t),h=f.geometry.coordinates,p=0,m=0,g=0,v=n.map((function(e){return[e[0]-h[0],e[1]-h[1]]}));for(i=0;i<n.length-1;i++)s=(o=v[i])[0],c=o[1],l=(a=v[i+1])[0],g+=d=s*(u=a[1])-l*c,p+=(s+l)*d,m+=(c+u)*d;if(0===g)return f;var y=1/(.5*g*6);return r([h[0]+y*p,h[1]+y*m],t);default:var b=Ie(e);return b?vt(b,t):gt(e,t)}}function yt(e){var t=[];return"FeatureCollection"===e.type?R(e,(function(e){O(e,(function(n){t.push(r(n,e.properties))}))})):O(e,(function(n){t.push(r(n,e.properties))})),c(t)}function bt(e,t,n){n=n||2;var r,i,o,a,s,l,c,u=t&&t.length,d=u?t[0]*n:e.length,f=_t(e,0,d,n,!0),h=[];if(!f)return h;if(u&&(f=function(e,t,n,r){var i,o,a,s,l,c=[];for(i=0,o=t.length;i<o;i++)a=t[i]*r,s=i<o-1?t[i+1]*r:e.length,(l=_t(e,a,s,r,!1))===l.next&&(l.steiner=!0),c.push(function(e){var t=e,n=e;do{t.x<n.x&&(n=t),t=t.next}while(t!==e);return n}(l));for(c.sort(St),i=0;i<c.length;i++)!function(e,t){if(t=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===a)return n.prev;var l,c=n,u=n.x,d=n.y,f=1/0;for(r=n.next;r!==c;)i>=r.x&&r.x>=u&&i!==r.x&&Et(o<d?i:a,o,u,d,o<d?a:i,o,r.x,r.y)&&((l=Math.abs(o-r.y)/(i-r.x))<f||l===f&&r.x>n.x)&&It(r,e)&&(n=r,f=l),r=r.next;return n}(e,t)){var n=At(t,e);wt(n,n.next)}}(c[i],n),n=wt(n,n.next);return n}(e,t,f,n)),e.length>80*n){r=o=e[0],i=a=e[1];for(var p=n;p<d;p+=n)s=e[p],l=e[p+1],s<r&&(r=s),l<i&&(i=l),s>o&&(o=s),l>a&&(a=l);c=0!==(c=Math.max(o-r,a-i))?1/c:0}return xt(f,h,n,r,i,c),h}function _t(e,t,n,r,i){var o,a;if(i===Nt(e,t,n,r)>0)for(o=t;o<n;o+=r)a=Rt(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=Rt(o,e[o],e[o+1],a);return a&&Ot(a,a.next)&&(Pt(a),a=a.next),a}function wt(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Ot(r,r.next)&&0!==kt(r.prev,r,r.next))r=r.next;else{if(Pt(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function xt(e,t,n,r,i,o,a){if(e){!a&&o&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=Ct(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,l,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ);t++);for(l=c;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,o);for(var s,l,c=e;e.prev!==e.next;)if(s=e.prev,l=e.next,o?function(e,t,n,r){var i=e.prev,o=e,a=e.next;if(kt(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,l=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,d=Ct(s,l,t,n,r),f=Ct(c,u,t,n,r),h=e.nextZ;h&&h.z<=f;){if(h!==e.prev&&h!==e.next&&Et(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&kt(h.prev,h,h.next)>=0)return!1;h=h.nextZ}for(h=e.prevZ;h&&h.z>=d;){if(h!==e.prev&&h!==e.next&&Et(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&kt(h.prev,h,h.next)>=0)return!1;h=h.prevZ}return!0}(e,r,i,o):function(e){var t=e.prev,n=e,r=e.next;if(kt(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Et(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&kt(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),Pt(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?xt(e=function(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Ot(i,o)&&Tt(i,r,r.next,o)&&It(i,o)&&It(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),Pt(r),Pt(r.next),r=e=o),r=r.next}while(r!==e);return r}(e,t,n),t,n,r,i,o,2):2===a&&function(e,t,n,r,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&function(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Tt(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&It(e,t)&&It(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)}(a,s)){var l=At(a,s);return a=wt(a,a.next),l=wt(l,l.next),xt(a,t,n,r,i,o),void xt(l,t,n,r,i,o)}s=s.next}a=a.next}while(a!==e)}(e,t,n,r,i,o):xt(wt(e),t,n,r,i,o,1);break}}}function St(e,t){return e.x-t.x}function Ct(e,t,n,r,i){return e=32767*(e-n)*i,t=32767*(t-r)*i,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1}function Et(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function kt(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Ot(e,t){return e.x===t.x&&e.y===t.y}function Tt(e,t,n,r){return!!(Ot(e,t)&&Ot(n,r)||Ot(e,r)&&Ot(n,t))||kt(e,t,n)>0!=kt(e,t,r)>0&&kt(n,r,e)>0!=kt(n,r,t)>0}function It(e,t){return kt(e.prev,e,e.next)<0?kt(e,t,e.next)>=0&&kt(e,e.prev,t)>=0:kt(e,t,e.prev)<0||kt(e,e.next,t)<0}function At(e,t){var n=new Mt(e.i,e.x,e.y),r=new Mt(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Rt(e,t,n,r){var i=new Mt(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Pt(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Mt(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Nt(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}function Lt(e){var t=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n}(e),n=Ca(t.vertices,t.holes,2),r=[],i=[];n.forEach((function(e,r){var o=n[r];i.push([t.vertices[2*o],t.vertices[2*o+1]])}));for(var a=0;a<i.length;a+=3){var s=i.slice(a,a+3);s.push(i[a]),r.push(o([s]))}return r}function Dt(e,t){if(!e)throw new Error("targetPoint is required");if(!t)throw new Error("points is required");var n,r=1/0;return R(t,(function(t,i){var o=je(e,t);o<r&&((n=Fe(t)).properties.featureIndex=i,n.properties.distanceToPoint=o,r=o)})),n}function jt(e,t,n,r,i){Ft(e,t,n||0,r||e.length-1,i||function(e,t){return e<t?-1:e>t?1:0})}function Ft(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);Ft(e,t,Math.max(n,Math.floor(t-a*l/o+c)),Math.min(r,Math.floor(t+(o-a)*l/o+c)),i)}var u=e[t],d=n,f=r;for(Bt(e,n,t),i(e[r],u)>0&&Bt(e,n,r);d<f;){for(Bt(e,d,f),d++,f--;i(e[d],u)<0;)d++;for(;i(e[f],u)>0;)f--}0===i(e[n],u)?Bt(e,n,f):Bt(e,++f,r),f<=t&&(n=f+1),t<=f&&(r=f-1)}}function Bt(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function qt(e,t){if(!(this instanceof qt))return new qt(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function zt(e,t){Ut(e,0,e.children.length,t,e)}function Ut(e,t,n,r,i){i||(i=Yt(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,a=t;a<n;a++)o=e.children[a],Gt(i,e.leaf?r(o):o);return i}function Gt(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function Vt(e,t){return e.minX-t.minX}function Wt(e,t){return e.minY-t.minY}function Ht(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function $t(e){return e.maxX-e.minX+(e.maxY-e.minY)}function Kt(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function Xt(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function Yt(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Jt(e,t,n,r,i){for(var o,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=r||(jt(e,o=t+Math.ceil((n-t)/r/2)*r,t,n,i),a.push(t,o,o,n))}function Qt(e){var t=qt(e);return t.insert=function(e){if(Array.isArray(e)){var t=e;(e=Zt(t)).bbox=t}else e.bbox=e.bbox?e.bbox:en(e);return qt.prototype.insert.call(this,e)},t.load=function(e){var t=[];return Array.isArray(e)?e.forEach((function(e){var n=Zt(e);n.bbox=e,t.push(n)})):R(e,(function(e){e.bbox=e.bbox?e.bbox:en(e),t.push(e)})),qt.prototype.load.call(this,t)},t.remove=function(e){if(Array.isArray(e)){var t=e;(e=Zt(t)).bbox=t}return qt.prototype.remove.call(this,e)},t.clear=function(){return qt.prototype.clear.call(this)},t.search=function(e){return{type:"FeatureCollection",features:qt.prototype.search.call(this,this.toBBox(e))}},t.collides=function(e){return qt.prototype.collides.call(this,this.toBBox(e))},t.all=function(){return{type:"FeatureCollection",features:qt.prototype.all.call(this)}},t.toJSON=function(){return qt.prototype.toJSON.call(this)},t.fromJSON=function(e){return qt.prototype.fromJSON.call(this,e)},t.toBBox=function(e){var t;return t=e.bbox?e.bbox:Array.isArray(e)&&4===e.length?e:en(e),{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}},t}function Zt(e){var t=[e[0],e[1]],n=[e[0],e[3]],r=[e[2],e[3]];return{type:"Feature",bbox:e,properties:{},geometry:{type:"Polygon",coordinates:[[t,[e[2],e[1]],r,n,t]]}}}function en(e){var t=[1/0,1/0,-1/0,-1/0];return O(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}function tn(e){if(!e)throw new Error("geojson is required");var t=[];return D(e,(function(e){!function(e,t){var n=[],r=e.geometry;switch(r.type){case"Polygon":n=V(r);break;case"LineString":n=[V(r)]}n.forEach((function(n){var r=function(e,t){var n=[];return e.reduce((function(e,r){var i=s([e,r],t);return i.bbox=function(e,t){var n=e[0],r=e[1],i=t[0],o=t[1];return[n<i?n:i,r<o?r:o,n>i?n:i,r>o?r:o]}(e,r),n.push(i),r})),n}(n,e.properties);r.forEach((function(e){e.id=t.length,t.push(e)}))}))}(e,t)})),c(t)}function nn(e,n){var r={},i=[];if("LineString"===e.type&&(e=t(e)),"LineString"===n.type&&(n=t(n)),"Feature"===e.type&&"Feature"===n.type&&"LineString"===e.geometry.type&&"LineString"===n.geometry.type&&2===e.geometry.coordinates.length&&2===n.geometry.coordinates.length){var o=rn(e,n);return o&&i.push(o),c(i)}var a=Qt();return a.load(tn(n)),R(tn(e),(function(e){R(a.search(e),(function(t){var n=rn(e,t);if(n){var o=V(n).join(",");r[o]||(r[o]=!0,i.push(n))}}))})),c(i)}function rn(e,t){var n=V(e),i=V(t);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==i.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var o=n[0][0],a=n[0][1],s=n[1][0],l=n[1][1],c=i[0][0],u=i[0][1],d=i[1][0],f=i[1][1],h=(f-u)*(s-o)-(d-c)*(l-a),p=(d-c)*(a-u)-(f-u)*(o-c),m=(s-o)*(a-u)-(l-a)*(o-c);if(0===h)return null;var g=p/h,v=m/h;return g>=0&&g<=1&&v>=0&&v<=1?r([o+g*(s-o),a+g*(l-a)]):null}function on(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var i=e.geometry?e.geometry.type:e.type;if("LineString"!==i&&"MultiLineString"!==i)throw new Error("lines must be LineString or MultiLineString");var o=r([1/0,1/0],{dist:1/0}),a=0;return D(e,(function(e){for(var i=V(e),l=0;l<i.length-1;l++){var c=r(i[l]);c.properties.dist=je(t,c,n);var u=r(i[l+1]);u.properties.dist=je(t,u,n);var d=je(c,u,n),f=Math.max(c.properties.dist,u.properties.dist),h=pt(c,u),p=ft(t,f,h+90,n),m=ft(t,f,h-90,n),g=nn(s([p.geometry.coordinates,m.geometry.coordinates]),s([c.geometry.coordinates,u.geometry.coordinates])),v=null;g.features.length>0&&((v=g.features[0]).properties.dist=je(t,v,n),v.properties.location=a+je(c,v,n)),c.properties.dist<o.properties.dist&&((o=c).properties.index=l,o.properties.location=a),u.properties.dist<o.properties.dist&&((o=u).properties.index=l+1,o.properties.location=a+d),v&&v.properties.dist<o.properties.dist&&((o=v).properties.index=l),a+=d}})),o}function an(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r,i=n.final;if(!e)throw new Error("start point is required");if(!t)throw new Error("end point is required");return(r=i?sn(G(t),G(e)):sn(G(e),G(t)))>180?-(360-r):r}function sn(e,t){var n=_(e[1]),r=_(t[1]),i=_(t[0]-e[0]);i>Math.PI&&(i-=2*Math.PI),i<-Math.PI&&(i+=2*Math.PI);var o=Math.log(Math.tan(r/2+Math.PI/4)/Math.tan(n/2+Math.PI/4));return(b(Math.atan2(i,o))+360)%360}function ln(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.units;if(!e)throw new Error("from point is required");if(!t)throw new Error("to point is required");var i=G(e),o=G(t);return o[0]+=o[0]-i[0]>180?-360:i[0]-o[0]>180?360:0,w(function(e,t,n){var r=n=void 0===n?Do:Number(n),i=e[1]*Math.PI/180,o=t[1]*Math.PI/180,a=o-i,s=Math.abs(t[0]-e[0])*Math.PI/180;s>Math.PI&&(s-=2*Math.PI);var l=Math.log(Math.tan(o/2+Math.PI/4)/Math.tan(i/2+Math.PI/4)),c=Math.abs(l)>1e-11?a/l:Math.cos(i);return Math.sqrt(a*a+c*c*s*s)*r}(i,o),"meters",r)}function cn(e,t){return dn(e,"mercator",t)}function un(e,t){return dn(e,"wgs84",t)}function dn(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.mutate;if(!e)throw new Error("geojson is required");return Array.isArray(e)&&S(e[0])?e="mercator"===t?fn(e):hn(e):(!0!==r&&(e=Fe(e)),O(e,(function(e){var n="mercator"===t?fn(e):hn(e);e[0]=n[0],e[1]=n[1]}))),e}function fn(e){var t=Math.PI/180,n=20037508.342789244,r=[6378137*(Math.abs(e[0])<=180?e[0]:e[0]-360*function(e){return e<0?-1:e>0?1:0}(e[0]))*t,6378137*Math.log(Math.tan(.25*Math.PI+.5*e[1]*t))];return r[0]>n&&(r[0]=n),r[0]<-n&&(r[0]=-n),r[1]>n&&(r[1]=n),r[1]<-n&&(r[1]=-n),r}function hn(e){var t=180/Math.PI;return[e[0]*t/6378137,(.5*Math.PI-2*Math.atan(Math.exp(-e[1]/6378137)))*t]}function pn(e,n,i){if(i=i||{},!C(i))throw new Error("options is invalid");if(!e)throw new Error("pt is required");if(Array.isArray(e)?e=r(e):"Point"===e.type?e=t(e):$(e,"Point","point"),!n)throw new Error("line is required");Array.isArray(n)?n=s(n):"LineString"===n.type?n=t(n):$(n,"LineString","line");var o=1/0,a=e.geometry.coordinates;return F(n,(function(e){var t=e.geometry.coordinates[0],n=e.geometry.coordinates[1],s=function(e,t,n,i){var o=i.mercator,a=!0!==o?je(t,e,i):mn(t,e,i),s=y(!0!==o?pt(t,e):an(t,e)),l=y(!0!==o?pt(t,n):an(t,n)),c=Math.abs(s-l);if(c>90)return a;var u=(l+180)%360,d=y(!0!==o?pt(n,e):an(n,e)),f=Math.abs(d-u);return f>180&&(f=Math.abs(f-360)),f>90?!0!==o?je(e,n,i):mn(e,n,i):!0!==o?a*Math.sin(_(c)):function(e,t,n,i){var o=0;(Math.abs(e[0])>=180||Math.abs(t[0])>=180||Math.abs(n[0])>=180)&&(o=e[0]>0||t[0]>0||n[0]>0?-180:180);var a=r(n),s=cn([e[0]+o,e[1]]),l=cn([t[0]+o,t[1]]),c=cn([n[0]+o,n[1]]),u=un(function(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1],s=n[0],l=n[1],c=o-r,u=a-i,d=((s-r)*c+(l-i)*u)/(c*c+u*u);return[r+d*c,i+d*u]}(s,l,c));return 0!==o&&(u[0]-=o),ln(a,u,i)}(t,n,e,i)}(a,t,n,i);o>s&&(o=s)})),o}function mn(e,t,n){var r=n.units,i=0;Math.abs(e[0])>=180&&(i=e[0]>0?-180:180),Math.abs(t[0])>=180&&(i=t[0]>0?-180:180);var o=cn([e[0]+i,e[1]]),a=cn([t[0]+i,t[1]]),s=function(e){return e*e},l=s(o[0]-a[0])+s(o[1]-a[1]);return w(Math.sqrt(l),"meters",r)}function gn(e){for(var n=function(e){return"FeatureCollection"!==e.type?"Feature"!==e.type?c([t(e)]):c([e]):e}(e),i=mt(n),o=!1,a=0;!o&&a<n.features.length;){var s,l=n.features[a].geometry,u=!1;if("Point"===l.type)i.geometry.coordinates[0]===l.coordinates[0]&&i.geometry.coordinates[1]===l.coordinates[1]&&(o=!0);else if("MultiPoint"===l.type){var d=!1;for(s=0;!d&&s<l.coordinates.length;)i.geometry.coordinates[0]===l.coordinates[s][0]&&i.geometry.coordinates[1]===l.coordinates[s][1]&&(o=!0,d=!0),s++}else if("LineString"===l.type)for(s=0;!u&&s<l.coordinates.length-1;)vn(i.geometry.coordinates[0],i.geometry.coordinates[1],l.coordinates[s][0],l.coordinates[s][1],l.coordinates[s+1][0],l.coordinates[s+1][1])&&(u=!0,o=!0),s++;else if("MultiLineString"===l.type)for(var f=0;f<l.coordinates.length;){u=!1,s=0;for(var h=l.coordinates[f];!u&&s<h.length-1;)vn(i.geometry.coordinates[0],i.geometry.coordinates[1],h[s][0],h[s][1],h[s+1][0],h[s+1][1])&&(u=!0,o=!0),s++;f++}else"Polygon"!==l.type&&"MultiPolygon"!==l.type||Ae(i,l)&&(o=!0);a++}if(o)return i;var p=c([]);for(a=0;a<n.features.length;a++)p.features=p.features.concat(yt(n.features[a]).features);return r(Dt(i,p).geometry.coordinates)}function vn(e,t,n,r,i,o){return Math.sqrt((i-n)*(i-n)+(o-r)*(o-r))===Math.sqrt((e-n)*(e-n)+(t-r)*(t-r))+Math.sqrt((i-e)*(i-e)+(o-t)*(o-t))}function yn(e){return L(e,(function(e,t){return e+bn(t)}),0)}function bn(e){var t,n=0;switch(e.type){case"Polygon":return _n(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=_n(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(t=0;t<e.geometries.length;t++)n+=bn(e.geometries[t]);return n}}function _n(e){var t=0;if(e&&e.length>0){t+=Math.abs(wn(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(wn(e[n]))}return t}function wn(e){var t,n,r,i,o,a,s=0,l=e.length;if(l>2){for(a=0;a<l;a++)a===l-2?(r=l-2,i=l-1,o=0):a===l-1?(r=l-1,i=0,o=1):(r=a,i=a+1,o=a+2),t=e[r],n=e[i],s+=(xn(e[o][0])-xn(t[0]))*Math.sin(xn(n[1]));s=s*Oa*Oa/2}return s}function xn(e){return e*Math.PI/180}function Sn(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");if(!e)throw new Error("geojson is required");return B(e,(function(e,n){var r=n.geometry.coordinates;return e+je(r[0],r[1],t)}),0)}function Cn(e,t,n,r){if(r=r||{},!C(r))throw new Error("options is invalid");var i,o=[];if("Feature"===e.type)i=e.geometry.coordinates;else{if("LineString"!==e.type)throw new Error("input must be a LineString Feature or Geometry");i=e.coordinates}for(var a,l,c,u=0,d=0;d<i.length&&!(t>=u&&d===i.length-1);d++){if(u>t&&0===o.length){if(!(a=t-u))return o.push(i[d]),s(o);l=pt(i[d],i[d-1])-180,c=ft(i[d],a,l,r),o.push(c.geometry.coordinates)}if(u>=n)return(a=n-u)?(l=pt(i[d],i[d-1])-180,c=ft(i[d],a,l,r),o.push(c.geometry.coordinates),s(o)):(o.push(i[d]),s(o));if(u>=t&&o.push(i[d]),d===i.length-1)return s(o);u+=je(i[d],i[d+1],r)}return s(i[i.length-1])}function En(e,t,n){var r=(n=n||{}).ignoreEndVertices;if(!C(n))throw new Error("invalid options");if(!e)throw new Error("pt is required");if(!t)throw new Error("line is required");for(var i=G(e),o=V(t),a=0;a<o.length-1;a++){var s=!1;if(r&&(0===a&&(s="start"),a===o.length-2&&(s="end"),0===a&&a+1===o.length-1&&(s="both")),function(e,t,n,r){var i=n[0],o=n[1],a=e[0],s=e[1],l=t[0],c=t[1],u=n[0]-a,d=n[1]-s,f=l-a,h=c-s;return u*h-d*f==0&&(r?"start"===r?Math.abs(f)>=Math.abs(h)?f>0?a<i&&i<=l:l<=i&&i<a:h>0?s<o&&o<=c:c<=o&&o<s:"end"===r?Math.abs(f)>=Math.abs(h)?f>0?a<=i&&i<l:l<i&&i<=a:h>0?s<=o&&o<c:c<o&&o<=s:"both"===r?Math.abs(f)>=Math.abs(h)?f>0?a<i&&i<l:l<i&&i<a:h>0?s<o&&o<c:c<o&&o<s:void 0:Math.abs(f)>=Math.abs(h)?f>0?a<=i&&i<=l:l<=i&&i<=a:h>0?s<=o&&o<=c:c<=o&&o<=s)}(o[a],o[a+1],i,s))return!0}return!1}function kn(e,t){var n=J(e),r=J(t),i=X(e),o=X(t);switch(n){case"Point":switch(r){case"MultiPoint":return function(e,t){var n,r=!1;for(n=0;n<t.coordinates.length;n++)if(Tn(t.coordinates[n],e.coordinates)){r=!0;break}return r}(i,o);case"LineString":return En(i,o,{ignoreEndVertices:!0});case"Polygon":return Ae(i,o,{ignoreBoundary:!0});default:throw new Error("feature2 "+r+" geometry not supported")}case"MultiPoint":switch(r){case"MultiPoint":return function(e,t){for(var n=0;n<e.coordinates.length;n++){for(var r=!1,i=0;i<t.coordinates.length;i++)Tn(e.coordinates[n],t.coordinates[i])&&(r=!0);if(!r)return!1}return!0}(i,o);case"LineString":return function(e,t){for(var n=!1,r=0;r<e.coordinates.length;r++){if(!En(e.coordinates[r],t))return!1;n||(n=En(e.coordinates[r],t,{ignoreEndVertices:!0}))}return n}(i,o);case"Polygon":return function(e,t){for(var n=!0,r=0;r<e.coordinates.length;r++){var i=Ae(e.coordinates[1],t);if(!i){n=!1;break}i=Ae(e.coordinates[1],t,{ignoreBoundary:!0})}return n&&i}(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}case"LineString":switch(r){case"LineString":return function(e,t){for(var n=0;n<e.coordinates.length;n++)if(!En(e.coordinates[n],t))return!1;return!0}(i,o);case"Polygon":return function(e,t){var n=U(t),r=U(e);if(!On(n,r))return!1;for(var i=!1,o=0;o<e.coordinates.length-1;o++){if(!Ae(e.coordinates[o],t))return!1;if(i||(i=Ae(e.coordinates[o],t,{ignoreBoundary:!0})),!i){var a=function(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}(e.coordinates[o],e.coordinates[o+1]);i=Ae(a,t,{ignoreBoundary:!0})}}return i}(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}case"Polygon":switch(r){case"Polygon":return function(e,t){var n=U(e);if(!On(U(t),n))return!1;for(var r=0;r<e.coordinates[0].length;r++)if(!Ae(e.coordinates[0][r],t))return!1;return!0}(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}}function On(e,t){return!(e[0]>t[0])&&!(e[2]<t[2])&&!(e[1]>t[1])&&!(e[3]<t[3])}function Tn(e,t){return e[0]===t[0]&&e[1]===t[1]}function In(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var i=n.mask,o=n.properties,a=[];if(null===t||void 0===t)throw new Error("cellSide is required");if(!S(t))throw new Error("cellSide is invalid");if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be array");if(4!==e.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(J(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var s=e[0],l=e[1],u=e[2],d=e[3],f=t/je([s,l],[u,l],n)*(u-s),h=t/je([s,l],[s,d],n)*(d-l),p=u-s,m=d-l,g=Math.floor(p/f),v=(m-Math.floor(m/h)*h)/2,y=s+(p-g*f)/2;y<=u;){for(var b=l+v;b<=d;){var _=r([y,b],o);i?kn(_,i)&&a.push(_):a.push(_),b+=h}y+=f}return c(a)}function An(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.precision,r=t.coordinates,i=t.mutate;if(n=void 0===n||null===n||isNaN(n)?6:n,r=void 0===r||null===r||isNaN(r)?3:r,!e)throw new Error("<geojson> is required");if("number"!=typeof n)throw new Error("<precision> must be a number");if("number"!=typeof r)throw new Error("<coordinates> must be a number");!1!==i&&void 0!==i||(e=JSON.parse(JSON.stringify(e)));var o=Math.pow(10,n);return O(e,(function(e){!function(e,t,n){e.length>n&&e.splice(n,e.length);for(var r=0;r<e.length;r++)e[r]=Math.round(e[r]*t)/t}(e,o,r)})),e}function Rn(e,t){if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]instanceof Array&&t[n]instanceof Array){if(!Rn(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1;return!0}function Pn(e,t){if(void 0===t&&(t=!0),3!=e.length)throw new Error("This function requires an array of three points [x,y]");return(e[1][0]-e[0][0])*(e[2][1]-e[0][1])-(e[1][1]-e[0][1])*(e[2][0]-e[0][0])>=0==t}function Mn(e,t){if(!e||!t)return!1;if(e.length!=t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]instanceof Array&&t[n]instanceof Array){if(!Mn(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}function Nn(e,t){var n=[],r=Qt();return D(t,(function(t){if(n.forEach((function(e,t){e.id=t})),n.length){var i=r.search(t);if(i.features.length){var o=Dn(t,i);n=n.filter((function(e){return e.id!==o.id})),r.remove(o),R(Ln(o,t),(function(e){n.push(e),r.insert(e)}))}}else(n=Ln(e,t).features).forEach((function(e){e.bbox||(e.bbox=dt(U(e)))})),r.load(c(n))})),c(n)}function Ln(e,t){var n=[],r=V(e)[0],i=V(e)[e.geometry.coordinates.length-1];if(jn(r,G(t))||jn(i,G(t)))return c([e]);var o=Qt(),a=tn(e);o.load(a);var l=o.search(t);if(!l.features.length)return c([e]);var u=Dn(t,l),d=P(a,(function(e,r,i){var o=V(r)[1],a=G(t);return i===u.id?(e.push(a),n.push(s(e)),jn(a,o)?[a]:[a,o]):(e.push(o),e)}),[r]);return d.length>1&&n.push(s(d)),c(n)}function Dn(e,t){if(!t.features.length)throw new Error("lines must contain features");if(1===t.features.length)return t.features[0];var n,r=1/0;return R(t,(function(t){var i=on(t,e).properties.dist;i<r&&(n=t,r=i)})),n}function jn(e,t){return e[0]===t[0]&&e[1]===t[1]}function Fn(e,t,n,r,i){if(i=i||{},!C(i))throw new Error("options is invalid");var o=i.steps,a=i.units;if(!e)throw new Error("center is required");if(!t)throw new Error("radius is required");if(void 0===n||null===n)throw new Error("bearing1 is required");if(void 0===r||null===r)throw new Error("bearing2 is required");if("object"!=typeof i)throw new Error("options must be an object");o=o||64;var l=Bn(n),c=Bn(r),u=e.properties;if(l===c)return s(ht(e,t,i).geometry.coordinates[0],u);for(var d=l,f=l<c?c:c+360,h=d,p=[],m=0;h<f;)p.push(ft(e,t,h,a).geometry.coordinates),h=d+360*++m/o;return h>f&&p.push(ft(e,t,f,a).geometry.coordinates),s(p,u)}function Bn(e){var t=e%360;return t<0&&(t+=360),t}function qn(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.properties,r=J(e),i=V(e);if(n=n||e.properties||{},!i.length)throw new Error("polygon must contain coordinates");switch(r){case"Polygon":return zn(i,n);case"MultiPolygon":var o=[];return i.forEach((function(e){o.push(zn(e,n))})),c(o);default:throw new Error("geom "+r+" not supported")}}function zn(e,t){return e.length>1?u(e,t):s(e[0],t)}function Un(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.properties,r=t.autoComplete,i=t.orderCoords;if(!e)throw new Error("lines is required");switch(r=void 0===r||r,i=void 0===i||i,J(e)){case"FeatureCollection":case"GeometryCollection":var o=[];return(e.features?e.features:e.geometries).forEach((function(e){o.push(V(Gn(e,{},r,i)))})),f(o,n)}return Gn(e,n,r,i)}function Gn(e,t,n,r){t=t||e.properties||{};var i=V(e),a=J(e);if(!i.length)throw new Error("line must contain coordinates");switch(a){case"LineString":return n&&(i=Vn(i)),o([i],t);case"MultiLineString":var l=[],c=0;return i.forEach((function(e){if(n&&(e=Vn(e)),r){var t=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return Math.abs(t-r)*Math.abs(n-i)}(U(s(e)));t>c?(l.unshift(e),c=t):l.push(e)}else l.push(e)})),o(l,t);default:throw new Error("geometry type "+a+" is not supported")}}function Vn(e){var t=e[0],n=t[0],r=t[1],i=e[e.length-1],o=i[0],a=i[1];return n===o&&r===a||e.push(t),e}function Wn(e,t,n){var r,i,o,a,s,l=e.length,c=$n(e[0],t),u=[];for(n||(n=[]),r=1;r<l;r++){for(i=e[r-1],a=s=$n(o=e[r],t);;){if(!(c|a)){u.push(i),a!==s?(u.push(o),r<l-1&&(n.push(u),u=[])):r===l-1&&u.push(o);break}if(c&a)break;c?c=$n(i=Hn(i,o,c,t),t):a=$n(o=Hn(i,o,a,t),t)}c=s}return u.length&&n.push(u),n}function Hn(e,t,n,r){return 8&n?[e[0]+(t[0]-e[0])*(r[3]-e[1])/(t[1]-e[1]),r[3]]:4&n?[e[0]+(t[0]-e[0])*(r[1]-e[1])/(t[1]-e[1]),r[1]]:2&n?[r[2],e[1]+(t[1]-e[1])*(r[2]-e[0])/(t[0]-e[0])]:1&n?[r[0],e[1]+(t[1]-e[1])*(r[0]-e[0])/(t[0]-e[0])]:null}function $n(e,t){var n=0;return e[0]<t[0]?n|=1:e[0]>t[2]&&(n|=2),e[1]<t[1]?n|=4:e[1]>t[3]&&(n|=8),n}function Kn(e,t){for(var n=[],r=0;r<e.length;r++){var i=Fa.polygon(e[r],t);i.length>0&&(i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]||i.push(i[0]),i.length>=4&&n.push(i))}return n}function Xn(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function Yn(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?(n.strict,e===t):function(e,t,n){var r,i;if(Jn(e)||Jn(t))return!1;if(e.prototype!==t.prototype)return!1;if(Xn(e))return!!Xn(t)&&(e=Ba.call(e),t=Ba.call(t),Yn(e,t,n));if(Qn(e)){if(!Qn(t))return!1;if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}try{var o=Object.keys(e),a=Object.keys(t)}catch(e){return!1}if(o.length!==a.length)return!1;for(o.sort(),a.sort(),r=o.length-1;r>=0;r--)if(o[r]!==a[r])return!1;for(r=o.length-1;r>=0;r--)if(i=o[r],!Yn(e[i],t[i],n))return!1;return typeof e==typeof t}(e,t,n))}function Jn(e){return null===e||void 0===e}function Qn(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&"function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0])}function Zn(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r,i=n.tolerance||0,o=[],a=Qt();return a.load(tn(e)),F(t,(function(e){var t=!1;R(a.search(e),(function(n){if(!1===t){var o=V(e).sort(),a=V(n).sort();Yn(o,a)||(0===i?En(o[0],n)&&En(o[1],n):on(n,o[0]).properties.dist<=i&&on(n,o[1]).properties.dist<=i)?(t=!0,r=r?er(r,e):e):(0===i?En(a[0],e)&&En(a[1],e):on(e,a[0]).properties.dist<=i&&on(e,a[1]).properties.dist<=i)&&(r=r?er(r,n):n)}})),!1===t&&r&&(o.push(r),r=void 0)})),r&&o.push(r),c(o)}function er(e,t){var n=V(t),r=V(e),i=r[0],o=r[r.length-1],a=e.geometry.coordinates;return Yn(n[0],i)?a.unshift(n[1]):Yn(n[0],o)?a.push(n[1]):Yn(n[1],i)?a.unshift(n[0]):Yn(n[1],o)&&a.push(n[0]),e}function tr(e){var t=e%360;return t<0&&(t+=360),t}function nr(e,t,n,i){if(i=i||{},!C(i))throw new Error("options is invalid");var o=i.units,a=i.properties;if(!e)throw new Error("origin is required");if(void 0===t||null===t)throw new Error("distance is required");if(void 0===n||null===n)throw new Error("bearing is required");if(!(t>=0))throw new Error("distance must be greater than 0");var s=w(t,o,"meters"),l=G(e),c=function(e,t,n,r){r=void 0===r?Do:Number(r);var i=t/r,o=e[0]*Math.PI/180,a=_(e[1]),s=_(n),l=i*Math.cos(s),c=a+l;Math.abs(c)>Math.PI/2&&(c=c>0?Math.PI-c:-Math.PI-c);var u=Math.log(Math.tan(c/2+Math.PI/4)/Math.tan(a/2+Math.PI/4)),d=Math.abs(u)>1e-11?l/u:Math.cos(a),f=i*Math.sin(s)/d;return[(180*(o+f)/Math.PI+540)%360-180,180*c/Math.PI]}(l,s,n);return c[0]+=c[0]-l[0]>180?-360:l[0]-c[0]>180?360:0,r(c,a)}function rr(e,t,n,r,i,o){for(var a=0;a<e.length;a++){var s=e[a],l=e[a+1];a===e.length-1&&(l=e[0]),r=ir(s,l,t),n<=0&&r>0?function(e,t,n){return ir(e,t,n)<0}(t,s,i)||(i=s):n>0&&r<=0&&(function(e,t,n){return ir(e,t,n)>0}(t,s,o)||(o=s)),n=r}return[i,o]}function ir(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(n[0]-e[0])*(t[1]-e[1])}function or(e){if(!e)throw new Error("line is required");var t=e.geometry?e.geometry.type:e.type;if(!Array.isArray(e)&&"LineString"!==t)throw new Error("geometry must be a LineString");for(var n,r,i=V(e),o=0,a=1;a<i.length;)n=r||i[0],o+=((r=i[a])[0]-n[0])*(r[1]+n[1]),a++;return o>0}function ar(e,t){switch("Feature"===e.type?e.geometry.type:e.type){case"GeometryCollection":return N(e,(function(e){ar(e,t)})),e;case"LineString":return sr(V(e),t),e;case"Polygon":return lr(V(e),t),e;case"MultiLineString":return V(e).forEach((function(e){sr(e,t)})),e;case"MultiPolygon":return V(e).forEach((function(e){lr(e,t)})),e;case"Point":case"MultiPoint":return e}}function sr(e,t){or(e)===t&&e.reverse()}function lr(e,t){or(e[0])!==t&&e[0].reverse();for(var n=1;n<e.length;n++)or(e[n])===t&&e[n].reverse()}function cr(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.zProperty||"elevation",r=t.flip,i=t.flags;K(e,"Point","input must contain Points");for(var o=function(e,t){var n={};return R(e,(function(e){var t=V(e)[1];n[t]||(n[t]=[]),n[t].push(e)})),Object.keys(n).map((function(e){var t=n[e],r=t.sort((function(e,t){return V(e)[0]-V(t)[0]}));return r})).sort((function(e,n){return t?V(e[0])[1]-V(n[0])[1]:V(n[0])[1]-V(e[0])[1]}))}(e,r),a=[],s=0;s<o.length;s++){for(var l=o[s],c=[],u=0;u<l.length;u++){var d=l[u];d.properties[n]?c.push(d.properties[n]):c.push(0),!0===i&&(d.properties.matrixPosition=[s,u])}a.push(c)}return a}function ur(e,t,n,r){r=r||{};for(var i=Object.keys(qa),o=0;o<i.length;o++){var a=i[o],s=r[a];s=void 0!==s&&null!==s?s:qa[a],za[a]=s}za.verbose&&console.log("MarchingSquaresJS-isoBands: computing isobands for ["+t+":"+(t+n)+"]");var l,c=function(e,t,n){for(var r=e.length-1,i=e[0].length-1,o={rows:r,cols:i,cells:[]},a=t+Math.abs(n),s=0;s<r;++s){o.cells[s]=[];for(var l=0;l<i;++l){var c=0,u=e[s+1][l],d=e[s+1][l+1],f=e[s][l+1],h=e[s][l];if(!(isNaN(u)||isNaN(d)||isNaN(f)||isNaN(h))){c|=u<t?0:u>a?128:64,c|=d<t?0:d>a?32:16,c|=f<t?0:f>a?8:4;var p=+(c|=h<t?0:h>a?2:1),m=0;if(17===c||18===c||33===c||34===c||38===c||68===c||72===c||98===c||102===c||132===c||136===c||137===c||152===c||153===c){var g=(u+d+f+h)/4;m=g>a?2:g<t?0:1,34===c?1===m?c=35:0===m&&(c=136):136===c?1===m?(c=35,m=4):0===m&&(c=34):17===c?1===m?(c=155,m=4):0===m&&(c=153):68===c?1===m?(c=103,m=4):0===m&&(c=102):153===c?1===m&&(c=155):102===c?1===m&&(c=103):152===c?m<2&&(c=156,m=1):137===c?m<2&&(c=139,m=1):98===c?m<2&&(c=99,m=1):38===c?m<2&&(c=39,m=1):18===c?m>0?(c=156,m=4):c=152:33===c?m>0?(c=139,m=4):c=137:72===c?m>0?(c=99,m=4):c=98:132===c&&(m>0?(c=39,m=4):c=38)}if(0!=c&&170!=c){var v,y,b,_,w,x,S,C;v=y=b=_=w=x=S=C=.5;var E=[];1===c?(b=1-dr(t,f,h),C=1-dr(t,u,h),E.push(Os[c])):169===c?(b=dr(a,h,f),C=dr(a,h,u),E.push(Os[c])):4===c?(x=1-dr(t,d,f),_=dr(t,h,f),E.push(Es[c])):166===c?(x=dr(a,f,d),_=1-dr(a,f,h),E.push(Es[c])):16===c?(w=dr(t,f,d),y=dr(t,u,d),E.push(Cs[c])):154===c?(w=1-dr(a,d,f),y=1-dr(a,d,u),E.push(Cs[c])):64===c?(S=dr(t,h,u),v=1-dr(t,d,u),E.push(Is[c])):106===c?(S=1-dr(a,u,h),v=dr(a,u,d),E.push(Is[c])):168===c?(_=dr(a,h,f),b=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),E.push(ks[c]),E.push(Os[c])):2===c?(_=1-dr(t,f,h),b=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),E.push(ks[c]),E.push(Os[c])):162===c?(w=dr(a,f,d),x=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),E.push(ks[c]),E.push(Os[c])):8===c?(w=1-dr(t,d,f),x=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),E.push(Cs[c]),E.push(Es[c])):138===c?(w=1-dr(t,d,f),x=1-dr(a,d,f),v=1-dr(a,d,u),y=1-dr(t,d,u),E.push(Cs[c]),E.push(Es[c])):32===c?(w=dr(a,f,d),x=dr(t,f,d),v=dr(t,u,d),y=dr(a,u,d),E.push(Cs[c]),E.push(Es[c])):42===c?(C=1-dr(a,u,h),S=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d),E.push(Ts[c]),E.push(Is[c])):128===c&&(C=dr(t,h,u),S=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u),E.push(Ts[c]),E.push(Is[c])),5===c?(x=1-dr(t,d,f),C=1-dr(t,u,h),E.push(Es[c])):165===c?(x=dr(a,f,d),C=dr(a,h,u),E.push(Es[c])):20===c?(_=dr(t,h,f),y=dr(t,u,d),E.push(ks[c])):150===c?(_=1-dr(a,f,h),y=1-dr(a,d,u),E.push(ks[c])):80===c?(w=dr(t,f,d),S=dr(t,h,u),E.push(Cs[c])):90===c?(w=1-dr(a,d,f),S=1-dr(a,u,h),E.push(Cs[c])):65===c?(b=1-dr(t,f,h),v=1-dr(t,d,u),E.push(Os[c])):105===c?(b=dr(a,h,f),v=dr(a,u,d),E.push(Os[c])):160===c?(w=dr(a,f,d),x=dr(t,f,d),C=dr(t,h,u),S=dr(a,h,u),E.push(Cs[c]),E.push(Es[c])):10===c?(w=1-dr(t,d,f),x=1-dr(a,d,f),C=1-dr(a,u,h),S=1-dr(t,u,h),E.push(Cs[c]),E.push(Es[c])):130===c?(_=1-dr(t,f,h),b=1-dr(a,f,h),v=1-dr(a,d,u),y=1-dr(t,d,u),E.push(ks[c]),E.push(Os[c])):40===c?(_=dr(a,h,f),b=dr(t,h,f),v=dr(t,u,d),y=dr(a,u,d),E.push(ks[c]),E.push(Os[c])):101===c?(x=dr(a,f,d),v=dr(a,u,d),E.push(Es[c])):69===c?(x=1-dr(t,d,f),v=1-dr(t,d,u),E.push(Es[c])):149===c?(C=dr(a,h,u),y=1-dr(a,d,u),E.push(Ts[c])):21===c?(C=1-dr(t,u,h),y=dr(t,u,d),E.push(Ts[c])):86===c?(_=1-dr(a,f,h),S=1-dr(a,u,h),E.push(ks[c])):84===c?(_=dr(t,h,f),S=dr(t,h,u),E.push(ks[c])):89===c?(w=1-dr(a,d,f),b=dr(a,h,f),E.push(Os[c])):81===c?(w=dr(t,f,d),b=1-dr(t,f,h),E.push(Os[c])):96===c?(w=dr(a,f,d),x=dr(t,f,d),S=dr(t,h,u),v=dr(a,u,d),E.push(Cs[c]),E.push(Es[c])):74===c?(w=1-dr(t,d,f),x=1-dr(a,d,f),S=1-dr(a,u,h),v=1-dr(t,d,u),E.push(Cs[c]),E.push(Es[c])):24===c?(w=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),y=dr(t,u,d),E.push(Cs[c]),E.push(Os[c])):146===c?(w=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),y=1-dr(a,d,u),E.push(Cs[c]),E.push(Os[c])):6===c?(x=1-dr(t,d,f),_=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),E.push(Es[c]),E.push(ks[c])):164===c?(x=dr(a,f,d),_=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),E.push(Es[c]),E.push(ks[c])):129===c?(b=1-dr(t,f,h),C=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u),E.push(Os[c]),E.push(Ts[c])):41===c?(b=dr(a,h,f),C=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d),E.push(Os[c]),E.push(Ts[c])):66===c?(_=1-dr(t,f,h),b=1-dr(a,f,h),S=1-dr(a,u,h),v=1-dr(t,d,u),E.push(ks[c]),E.push(Os[c])):104===c?(_=dr(a,h,f),b=dr(t,h,f),S=dr(t,h,u),v=dr(a,u,d),E.push(Os[c]),E.push(As[c])):144===c?(w=dr(t,f,d),C=dr(t,h,u),S=dr(a,h,u),y=1-dr(a,d,u),E.push(Cs[c]),E.push(Is[c])):26===c?(w=1-dr(a,d,f),C=1-dr(a,u,h),S=1-dr(t,u,h),y=dr(t,u,d),E.push(Cs[c]),E.push(Is[c])):36===c?(x=dr(a,f,d),_=dr(t,h,f),v=dr(t,u,d),y=dr(a,u,d),E.push(Es[c]),E.push(ks[c])):134===c?(x=1-dr(t,d,f),_=1-dr(a,f,h),v=1-dr(a,d,u),y=1-dr(t,d,u),E.push(Es[c]),E.push(ks[c])):9===c?(w=1-dr(t,d,f),x=1-dr(a,d,f),b=dr(a,h,f),C=1-dr(t,u,h),E.push(Cs[c]),E.push(Es[c])):161===c?(w=dr(a,f,d),x=dr(t,f,d),b=1-dr(t,f,h),C=dr(a,h,u),E.push(Cs[c]),E.push(Es[c])):37===c?(x=dr(a,f,d),C=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d),E.push(Es[c]),E.push(Ts[c])):133===c?(x=1-dr(t,d,f),C=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u),E.push(Es[c]),E.push(Ts[c])):148===c?(_=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),y=1-dr(a,d,u),E.push(ks[c]),E.push(Is[c])):22===c?(_=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),y=dr(t,u,d),E.push(ks[c]),E.push(Is[c])):82===c?(w=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),S=1-dr(a,u,h),E.push(Cs[c]),E.push(Os[c])):88===c?(w=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),S=dr(t,h,u),E.push(Cs[c]),E.push(Os[c])):73===c?(w=1-dr(t,d,f),x=1-dr(a,d,f),b=dr(a,h,f),v=1-dr(t,d,u),E.push(Cs[c]),E.push(Es[c])):97===c?(w=dr(a,f,d),x=dr(t,f,d),b=1-dr(t,f,h),v=dr(a,u,d),E.push(Cs[c]),E.push(Es[c])):145===c?(w=dr(t,f,d),b=1-dr(t,f,h),C=dr(a,h,u),y=1-dr(a,d,u),E.push(Cs[c]),E.push(Ts[c])):25===c?(w=1-dr(a,d,f),b=dr(a,h,f),C=1-dr(t,u,h),y=dr(t,u,d),E.push(Cs[c]),E.push(Ts[c])):70===c?(x=1-dr(t,d,f),_=1-dr(a,f,h),S=1-dr(a,u,h),v=1-dr(t,d,u),E.push(Es[c]),E.push(ks[c])):100===c?(x=dr(a,f,d),_=dr(t,h,f),S=dr(t,h,u),v=dr(a,u,d),E.push(Es[c]),E.push(ks[c])):34===c?(0===m?(w=1-dr(t,d,f),x=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u)):(w=dr(a,f,d),x=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d)),E.push(Cs[c]),E.push(Es[c]),E.push(Ts[c]),E.push(Is[c])):35===c?(4===m?(w=1-dr(t,d,f),x=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u)):(w=dr(a,f,d),x=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d)),E.push(Cs[c]),E.push(Es[c]),E.push(Os[c]),E.push(Is[c])):136===c?(0===m?(w=dr(a,f,d),x=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d)):(w=1-dr(t,d,f),x=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u)),E.push(Cs[c]),E.push(Es[c]),E.push(Ts[c]),E.push(Is[c])):153===c?(0===m?(w=dr(t,f,d),b=1-dr(t,f,h),C=1-dr(t,u,h),y=dr(t,u,d)):(w=1-dr(a,d,f),b=dr(a,h,f),C=dr(a,h,u),y=1-dr(a,d,u)),E.push(Cs[c]),E.push(Os[c])):102===c?(0===m?(x=1-dr(t,d,f),_=dr(t,h,f),S=dr(t,h,u),v=1-dr(t,d,u)):(x=dr(a,f,d),_=1-dr(a,f,h),S=1-dr(a,u,h),v=dr(a,u,d)),E.push(Es[c]),E.push(Is[c])):155===c?(4===m?(w=dr(t,f,d),b=1-dr(t,f,h),C=1-dr(t,u,h),y=dr(t,u,d)):(w=1-dr(a,d,f),b=dr(a,h,f),C=dr(a,h,u),y=1-dr(a,d,u)),E.push(Cs[c]),E.push(Ts[c])):103===c?(4===m?(x=1-dr(t,d,f),_=dr(t,h,f),S=dr(t,h,u),v=1-dr(t,d,u)):(x=dr(a,f,d),_=1-dr(a,f,h),S=1-dr(a,u,h),v=dr(a,u,d)),E.push(Es[c]),E.push(ks[c])):152===c?(0===m?(w=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),y=dr(t,u,d)):(w=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),y=1-dr(a,d,u)),E.push(Cs[c]),E.push(ks[c]),E.push(Os[c])):156===c?(4===m?(w=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),y=dr(t,u,d)):(w=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),y=1-dr(a,d,u)),E.push(Cs[c]),E.push(Os[c]),E.push(Is[c])):137===c?(0===m?(w=dr(a,f,d),x=dr(t,f,d),b=1-dr(t,f,h),C=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d)):(w=1-dr(t,d,f),x=1-dr(a,d,f),b=dr(a,h,f),C=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u)),E.push(Cs[c]),E.push(Es[c]),E.push(Os[c])):139===c?(4===m?(w=dr(a,f,d),x=dr(t,f,d),b=1-dr(t,f,h),C=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d)):(w=1-dr(t,d,f),x=1-dr(a,d,f),b=dr(a,h,f),C=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u)),E.push(Cs[c]),E.push(Es[c]),E.push(Ts[c])):98===c?(0===m?(w=1-dr(t,d,f),x=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),S=dr(t,h,u),v=1-dr(t,d,u)):(w=dr(a,f,d),x=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),S=1-dr(a,u,h),v=dr(a,u,d)),E.push(Cs[c]),E.push(Es[c]),E.push(Is[c])):99===c?(4===m?(w=1-dr(t,d,f),x=1-dr(a,d,f),_=dr(a,h,f),b=dr(t,h,f),S=dr(t,h,u),v=1-dr(t,d,u)):(w=dr(a,f,d),x=dr(t,f,d),_=1-dr(t,f,h),b=1-dr(a,f,h),S=1-dr(a,u,h),v=dr(a,u,d)),E.push(Cs[c]),E.push(Es[c]),E.push(Os[c])):38===c?(0===m?(x=1-dr(t,d,f),_=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u)):(x=dr(a,f,d),_=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d)),E.push(Es[c]),E.push(Ts[c]),E.push(Is[c])):39===c?(4===m?(x=1-dr(t,d,f),_=dr(t,h,f),C=dr(t,h,u),S=dr(a,h,u),v=1-dr(a,d,u),y=1-dr(t,d,u)):(x=dr(a,f,d),_=1-dr(a,f,h),C=1-dr(a,u,h),S=1-dr(t,u,h),v=dr(t,u,d),y=dr(a,u,d)),E.push(Es[c]),E.push(ks[c]),E.push(Is[c])):85===c&&(w=1,x=0,_=1,b=0,C=0,S=1,v=0,y=1),(v<0||v>1||y<0||y>1||w<0||w>1||_<0||_>1||C<0||C>1||S<0||S>1)&&console.log("MarchingSquaresJS-isoBands: "+c+" "+p+" "+u+","+d+","+f+","+h+" "+m+" "+v+" "+y+" "+w+" "+x+" "+_+" "+b+" "+C+" "+S),o.cells[s][l]={cval:c,cval_real:p,flipped:m,topleft:v,topright:y,righttop:w,rightbottom:x,bottomright:_,bottomleft:b,leftbottom:C,lefttop:S,edges:E}}}}}return o}(e,t,n);return za.polygons?(za.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),l=function(e){var t=[],n=0;return e.cells.forEach((function(e,r){e.forEach((function(e,i){if(void 0!==e){var o=Ps[e.cval](e);"object"==typeof o&&fr(o)?"object"==typeof o[0]&&fr(o[0])?"object"==typeof o[0][0]&&fr(o[0][0])?o.forEach((function(e){e.forEach((function(e){e[0]+=i,e[1]+=r})),t[n++]=e})):(o.forEach((function(e){e[0]+=i,e[1]+=r})),t[n++]=o):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}}))})),t}(c)):(za.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),l=function(e){for(var t=[],n=e.rows,r=e.cols,i=[],o=0;o<n;o++)for(var a=0;a<r;a++)if(void 0!==e.cells[o][a]&&e.cells[o][a].edges.length>0){var s=e.cells[o][a],l=function(e){if(e.edges.length>0){var t=e.edges[e.edges.length-1],n=e.cval_real;switch(t){case 0:return n&Ga?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[e.topleft,1],x:0,y:-1,o:0};case 1:return n&Va?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 2:return n&Va?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[e.topleft,1],x:0,y:-1,o:0};case 3:return n&Wa?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 4:return n&Ga?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[e.topright,1],x:0,y:-1,o:1};case 5:return n&Va?{p:[e.topright,1],x:0,y:-1,o:1}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 6:return n&Va?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[e.topright,1],x:0,y:-1,o:1};case 7:return n&Wa?{p:[e.topright,1],x:0,y:-1,o:1}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 8:return n&Va?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[1,e.righttop],x:-1,y:0,o:1};case 9:return n&Wa?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 10:return n&Wa?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[1,e.righttop],x:-1,y:0,o:1};case 11:return n&Ua?{p:[1,e.righttop],x:-1,y:0,o:1}:{p:[0,e.lefttop],x:1,y:0,o:1};case 12:return n&Va?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 13:return n&Wa?{p:[1,e.rightbottom],x:-1,y:0,o:0}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 14:return n&Wa?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[1,e.rightbottom],x:-1,y:0,o:0};case 15:return n&Ua?{p:[1,e.rightbottom],x:-1,y:0,o:0}:{p:[0,e.lefttop],x:1,y:0,o:1};case 16:return n&Va?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[0,e.leftbottom],x:1,y:0,o:0};case 17:return n&Ua?{p:[e.bottomright,0],x:0,y:1,o:1}:{p:[0,e.lefttop],x:1,y:0,o:1};case 18:return n&Wa?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[e.bottomleft,0],x:0,y:1,o:0};case 19:return n&Ua?{p:[e.bottomleft,0],x:0,y:1,o:0}:{p:[0,e.lefttop],x:1,y:0,o:1};case 20:return n&Ua?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[0,e.leftbottom],x:1,y:0,o:0};case 21:return n&Ga?{p:[0,e.leftbottom],x:1,y:0,o:0}:{p:[e.topright,1],x:0,y:-1,o:1};case 22:return n&Ua?{p:[e.topleft,1],x:0,y:-1,o:0}:{p:[0,e.lefttop],x:1,y:0,o:1};case 23:return n&Ga?{p:[0,e.lefttop],x:1,y:0,o:1}:{p:[e.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(e)}}return null}(s),c=null,u=a,d=o;null!==l&&i.push([l.p[0]+u,l.p[1]+d]);do{if(null===(c=function(e,t,n,r){var i,o,a,s,l,c=e.cval;switch(t){case-1:switch(r){case 0:i=Es[c],a=ts[c],s=ns[c],l=rs[c];break;default:i=Cs[c],a=Qa[c],s=Za[c],l=es[c]}break;case 1:switch(r){case 0:i=Ts[c],a=hs[c],s=ps[c],l=ms[c];break;default:i=Is[c],a=us[c],s=ds[c],l=fs[c]}break;default:switch(n){case-1:switch(r){case 0:i=As[c],a=Ha[c],s=$a[c],l=Ka[c];break;default:i=Rs[c],a=Xa[c],s=Ya[c],l=Ja[c]}break;case 1:switch(r){case 0:i=Os[c],a=is[c],s=os[c],l=as[c];break;default:i=ks[c],a=ss[c],s=ls[c],l=cs[c]}}}if(o=e.edges.indexOf(i),void 0===e.edges[o])return null;switch(function(e,t){delete e.edges[t];for(var n=t+1;n<e.edges.length;n++)e.edges[n-1]=e.edges[n];e.edges.pop()}(e,o),c=e.cval_real,i){case 0:c&Ga?(t=e.topleft,n=1):(t=1,n=e.righttop);break;case 1:c&Va?(t=1,n=e.rightbottom):(t=e.topleft,n=1);break;case 2:c&Va?(t=e.topleft,n=1):(t=e.bottomright,n=0);break;case 3:c&Wa?(t=e.bottomleft,n=0):(t=e.topleft,n=1);break;case 4:c&Ga?(t=e.topright,n=1):(t=1,n=e.righttop);break;case 5:c&Va?(t=1,n=e.rightbottom):(t=e.topright,n=1);break;case 6:c&Va?(t=e.topright,n=1):(t=e.bottomright,n=0);break;case 7:c&Wa?(t=e.bottomleft,n=0):(t=e.topright,n=1);break;case 8:c&Va?(t=1,n=e.righttop):(t=e.bottomright,n=0);break;case 9:c&Wa?(t=e.bottomleft,n=0):(t=1,n=e.righttop);break;case 10:c&Wa?(t=1,n=e.righttop):(t=0,n=e.leftbottom);break;case 11:c&Ua?(t=0,n=e.lefttop):(t=1,n=e.righttop);break;case 12:c&Va?(t=1,n=e.rightbottom):(t=e.bottomright,n=0);break;case 13:c&Wa?(t=e.bottomleft,n=0):(t=1,n=e.rightbottom);break;case 14:c&Wa?(t=1,n=e.rightbottom):(t=0,n=e.leftbottom);break;case 15:c&Ua?(t=0,n=e.lefttop):(t=1,n=e.rightbottom);break;case 16:c&Va?(t=0,n=e.leftbottom):(t=e.bottomright,n=0);break;case 17:c&Ua?(t=0,n=e.lefttop):(t=e.bottomright,n=0);break;case 18:c&Wa?(t=e.bottomleft,n=0):(t=0,n=e.leftbottom);break;case 19:c&Ua?(t=0,n=e.lefttop):(t=e.bottomleft,n=0);break;case 20:c&Ua?(t=0,n=e.leftbottom):(t=e.topleft,n=1);break;case 21:c&Ga?(t=e.topright,n=1):(t=0,n=e.leftbottom);break;case 22:c&Ua?(t=0,n=e.lefttop):(t=e.topleft,n=1);break;case 23:c&Ga?(t=e.topright,n=1):(t=0,n=e.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(e),null}return void 0!==t&&void 0!==n&&void 0!==a&&void 0!==s&&void 0!==l||(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(e),console.log(t+" "+n+" "+a+" "+s+" "+l)),{p:[t,n],x:a,y:s,o:l}}(e.cells[d][u],l.x,l.y,l.o)))break;if(i.push([c.p[0]+u,c.p[1]+d]),u+=c.x,d+=c.y,l=c,d<0||d>=n||u<0||u>=r||void 0===e.cells[d][u]){u-=c.x,d-=c.y;var f=function(e,t,n,r,i,o){for(var a=e.cells[n][t],s=a.cval_real,l=t+r,c=n+i,u=[],d=!1;!d;){if(void 0===e.cells[c]||void 0===e.cells[c][l])if(c-=i,l-=r,a=e.cells[c][l],s=a.cval_real,-1===i)if(0===o)if(s&Wa)u.push([l,c]),r=-1,i=0,o=0;else{if(!(s&Va)){u.push([l+a.bottomright,c]),r=0,i=1,o=1,d=!0;break}u.push([l+1,c]),r=1,i=0,o=0}else{if(!(s&Wa)){if(s&Va){u.push([l+a.bottomright,c]),r=0,i=1,o=1,d=!0;break}u.push([l+a.bottomleft,c]),r=0,i=1,o=0,d=!0;break}u.push([l,c]),r=-1,i=0,o=0}else if(1===i)if(0===o){if(!(s&Ga)){if(s&Ua){u.push([l+a.topleft,c+1]),r=0,i=-1,o=0,d=!0;break}u.push([l+a.topright,c+1]),r=0,i=-1,o=1,d=!0;break}u.push([l+1,c+1]),r=1,i=0,o=1}else u.push([l+1,c+1]),r=1,i=0,o=1;else if(-1===r)if(0===o){if(!(s&Ua)){if(s&Wa){u.push([l,c+a.leftbottom]),r=1,i=0,o=0,d=!0;break}u.push([l,c+a.lefttop]),r=1,i=0,o=1,d=!0;break}u.push([l,c+1]),r=0,i=1,o=0}else{if(!(s&Ua)){console.log("MarchingSquaresJS-isoBands: wtf");break}u.push([l,c+1]),r=0,i=1,o=0}else{if(1!==r){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(0===o){if(!(s&Va)){u.push([l+1,c+a.rightbottom]),r=-1,i=0,o=0,d=!0;break}u.push([l+1,c]),r=0,i=-1,o=1}else{if(!(s&Va)){if(s&Ga){u.push([l+1,c+a.righttop]),r=-1,i=0,o=1;break}u.push([l+1,c+a.rightbottom]),r=-1,i=0,o=0,d=!0;break}u.push([l+1,c]),r=0,i=-1,o=1}}else if(a=e.cells[c][l],s=a.cval_real,-1===r)if(0===o)if(void 0!==e.cells[c-1]&&void 0!==e.cells[c-1][l])r=0,i=-1,o=1;else{if(!(s&Wa)){u.push([l+a.bottomright,c]),r=0,i=1,o=1,d=!0;break}u.push([l,c])}else{if(!(s&Ua)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+l+","+c);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(1===r){if(0===o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==e.cells[c+1]&&void 0!==e.cells[c+1][l])r=0,i=1,o=0;else{if(!(s&Ga)){u.push([l+a.topleft,c+1]),r=0,i=-1,o=0,d=!0;break}u.push([l+1,c+1]),r=1,i=0,o=1}}else if(-1===i){if(1!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==e.cells[c][l+1])r=1,i=0,o=1;else{if(!(s&Va)){u.push([l+1,c+a.righttop]),r=-1,i=0,o=1,d=!0;break}u.push([l+1,c]),r=0,i=-1,o=1}}else{if(1!==i){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(0!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==e.cells[c][l-1])r=-1,i=0,o=0;else{if(!(s&Ua)){u.push([l,c+a.leftbottom]),r=1,i=0,o=0,d=!0;break}u.push([l,c+1]),r=0,i=1,o=0}}if(l+=r,c+=i,l===t&&c===n)break}return{path:u,i:l,j:c,x:r,y:i,o:o}}(e,u,d,c.x,c.y,c.o);if(null===f)break;f.path.forEach((function(e){i.push(e)})),u=f.i,d=f.j,l=f}}while(void 0!==e.cells[d][u]&&e.cells[d][u].edges.length>0);t.push(i),i=[],e.cells[o][a].edges.length>0&&a--}return t}(c)),"function"==typeof za.successCallback&&za.successCallback(l),l}function dr(e,t,n){return(e-t)/(n-t)}function fr(e){return e.constructor.toString().indexOf("Array")>-1}function hr(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.pivot,i=n.mutate;if(!e)throw new Error("geojson is required");if(void 0===t||null===t||isNaN(t))throw new Error("angle is required");return 0===t||(r||(r=gt(e)),!1!==i&&void 0!==i||(e=Fe(e)),O(e,(function(e){var n=an(r,e)+t,i=ln(r,e),o=V(nr(r,i,n));e[0]=o[0],e[1]=o[1]}))),e}function pr(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.origin,i=n.mutate;if(!e)throw new Error("geojson required");if("number"!=typeof t||0===t)throw new Error("invalid factor");var o=Array.isArray(r)||"object"==typeof r;return!0!==i&&(e=Fe(e)),"FeatureCollection"!==e.type||o?mr(e,t,r):(R(e,(function(n,i){e.features[i]=mr(n,t,r)})),e)}function mr(e,t,n){var i="Point"===J(e);return n=function(e,t){if(void 0!==t&&null!==t||(t="centroid"),Array.isArray(t)||"object"==typeof t)return G(t);var n=e.bbox?e.bbox:U(e),i=n[0],o=n[1],a=n[2],s=n[3];switch(t){case"sw":case"southwest":case"westsouth":case"bottomleft":return r([i,o]);case"se":case"southeast":case"eastsouth":case"bottomright":return r([a,o]);case"nw":case"northwest":case"westnorth":case"topleft":return r([i,s]);case"ne":case"northeast":case"eastnorth":case"topright":return r([a,s]);case"center":return mt(e);case void 0:case null:case"centroid":return gt(e);default:throw new Error("invalid origin")}}(e,n),1===t||i||O(e,(function(e){var r=ln(n,e),i=an(n,e),o=V(nr(n,r*t,i));e[0]=o[0],e[1]=o[1],3===e.length&&(e[2]*=t)})),e}function gr(e){var t=e[0],n=e[1];return[n[0]-t[0],n[1]-t[1]]}function vr(e,t){return e[0]*t[1]-t[0]*e[1]}function yr(e,t){return!function(e,t){return 0===vr(gr(e),gr(t))}(e,t)&&function(e,t){var n=e[0],r=gr(e),i=t[0],o=gr(t),a=vr(r,o);return function(e,t){return[e[0]+t[0],e[1]+t[1]]}(n,function(e,t){return[e*t[0],e*t[1]]}(vr(function(e,t){return[e[0]-t[0],e[1]-t[1]]}(i,n),o)/a,r))}(e,t)}function br(e,t,n){var r=[],i=v(t,n),o=V(e),a=[];return o.forEach((function(e,t){if(t!==o.length-1){var n=function(e,t,n){var r=Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])),i=e[0]+n*(t[1]-e[1])/r,o=t[0]+n*(t[1]-e[1])/r,a=e[1]+n*(e[0]-t[0])/r,s=t[1]+n*(e[0]-t[0])/r;return[[i,a],[o,s]]}(e,o[t+1],i);if(r.push(n),t>0){var s=r[t-1],l=yr(n,s);!1!==l&&(s[1]=l,n[0]=l),a.push(s[0]),t===o.length-2&&(a.push(n[0]),a.push(n[1]))}2===o.length&&(a.push(n[0]),a.push(n[1]))}})),s(a,e.properties)}function _r(e,t,n){var r=t[0]-e[0],i=t[1]-e[1],o=n[0]-t[0],a=n[1]-t[1];return Math.sign(r*a-o*i)}function wr(e,t){return t.geometry.coordinates[0].every((function(t){return Ae(r(t),e)}))}function xr(e,t){for(var n=0;n<e.coordinates.length-1;n++)if(function(e,t,n){var r=n[0]-e[0],i=n[1]-e[1],o=t[0]-e[0],a=t[1]-e[1];return r*a-i*o==0&&(Math.abs(o)>=Math.abs(a)?o>0?e[0]<=n[0]&&n[0]<=t[0]:t[0]<=n[0]&&n[0]<=e[0]:a>0?e[1]<=n[1]&&n[1]<=t[1]:t[1]<=n[1]&&n[1]<=e[1])}(e.coordinates[n],e.coordinates[n+1],t.coordinates))return!0;return!1}function Sr(e,t){return nn(t,qn(e)).features.length>0}function Cr(e,t){return!(e[0]>t[0])&&!(e[2]<t[2])&&!(e[1]>t[1])&&!(e[3]<t[3])}function Er(e,t){return e[0]===t[0]&&e[1]===t[1]}function kr(e,t){for(var n=!1,r=!1,i=e.coordinates.length,o=0;o<i&&!n&&!r;){for(var a=0;a<t.coordinates.length-1;a++){var s=!0;0!==a&&a!==t.coordinates.length-2||(s=!1),Ir(t.coordinates[a],t.coordinates[a+1],e.coordinates[o],s)?n=!0:r=!0}o++}return n&&r}function Or(e,t){return nn(e,qn(t)).features.length>0}function Tr(e,t){for(var n=!1,i=!1,o=e.coordinates[0].length,a=0;a<o&&n&&i;)Ae(r(e.coordinates[0][a]),t)?n=!0:i=!0,a++;return i&&i}function Ir(e,t,n,r){var i=n[0]-e[0],o=n[1]-e[1],a=t[0]-e[0],s=t[1]-e[1];return 0==i*s-o*a&&(r?Math.abs(a)>=Math.abs(s)?a>0?e[0]<=n[0]&&n[0]<=t[0]:t[0]<=n[0]&&n[0]<=e[0]:s>0?e[1]<=n[1]&&n[1]<=t[1]:t[1]<=n[1]&&n[1]<=e[1]:Math.abs(a)>=Math.abs(s)?a>0?e[0]<n[0]&&n[0]<t[0]:t[0]<n[0]&&n[0]<e[0]:s>0?e[1]<n[1]&&n[1]<t[1]:t[1]<n[1]&&n[1]<e[1])}function Ar(e){return e.coordinates.map((function(t){return{type:e.type.replace("Multi",""),coordinates:t}}))}function Rr(e,t){return e.hasOwnProperty("coordinates")?e.coordinates.length===t.coordinates.length:e.length===t.length}function Pr(e,t){return qs(e,t,{strict:!0})}function Mr(e,t){if(!e)throw new Error("feature1 is required");if(!t)throw new Error("feature2 is required");var n=J(e);if(n!==J(t))throw new Error("features must be of the same type");if("Point"===n)throw new Error("Point geometry not supported");if(new Us({precision:6}).compare(e,t))return!1;var r=0;switch(n){case"MultiPoint":var i=M(e),o=M(t);i.forEach((function(e){o.forEach((function(t){e[0]===t[0]&&e[1]===t[1]&&r++}))}));break;case"LineString":case"MultiLineString":F(e,(function(e){F(t,(function(t){Zn(e,t).features.length&&r++}))}));break;case"Polygon":case"MultiPolygon":F(e,(function(e){F(t,(function(t){nn(e,t).features.length&&r++}))}))}return r>0}function Nr(e,t,n){n=n||[];for(var r=0;r<e;r++)n[r]=t;return n}function Lr(e,t){if(e.geometry&&e.geometry.type)return e.geometry.type;if(e.type)return e.type;throw new Error("Invalid GeoJSON object for "+t)}function Dr(e){for(var t=e,n=[];t.parent;)n.unshift(t),t=t.parent;return n}function jr(e,t){t=t||{},this.nodes=[],this.diagonal=!!t.diagonal,this.grid=[];for(var n=0;n<e.length;n++){this.grid[n]=[];for(var r=0,i=e[n];r<i.length;r++){var o=new Fr(n,r,i[r]);this.grid[n][r]=o,this.nodes.push(o)}}this.init()}function Fr(e,t,n){this.x=e,this.y=t,this.weight=n}function Br(e){this.content=[],this.scoreFunction=e}function qr(e){return e[0]}function zr(e){return e[1]}function Ur(){this._=null}function Gr(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Vr(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Wr(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Hr(e){for(;e.L;)e=e.L;return e}function $r(e,t,n,r){var i=[null,null],o=ll.push(i)-1;return i.left=e,i.right=t,n&&Xr(i,e,t,n),r&&Xr(i,t,e,r),al[e.index].halfedges.push(o),al[t.index].halfedges.push(o),i}function Kr(e,t,n){var r=[t,n];return r.left=e,r}function Xr(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function Yr(e,t,n,r,i){var o,a=e[0],s=e[1],l=a[0],c=a[1],u=0,d=1,f=s[0]-l,h=s[1]-c;if(o=t-l,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<d&&(d=o)}else if(f>0){if(o>d)return;o>u&&(u=o)}if(o=r-l,f||!(o<0)){if(o/=f,f<0){if(o>d)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<d&&(d=o)}if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o<u)return;o<d&&(d=o)}else if(h>0){if(o>d)return;o>u&&(u=o)}if(o=i-c,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>u&&(u=o)}else if(h>0){if(o<u)return;o<d&&(d=o)}return!(u>0||d<1)||(u>0&&(e[0]=[l+u*f,c+u*h]),d<1&&(e[1]=[l+d*f,c+d*h]),!0)}}}}}function Jr(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],f=c[1],h=u[0],p=u[1],m=(d+h)/2,g=(f+p)/2;if(p===f){if(m<t||m>=r)return;if(d>h){if(l){if(l[1]>=i)return}else l=[m,n];o=[m,i]}else{if(l){if(l[1]<n)return}else l=[m,i];o=[m,n]}}else if(a=(d-h)/(p-f),s=g-a*m,a<-1||a>1)if(d>h){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]<n)return}else l=[(i-s)/a,i];o=[(n-s)/a,n]}else if(f<p){if(l){if(l[0]>=r)return}else l=[t,a*t+s];o=[r,a*r+s]}else{if(l){if(l[0]<t)return}else l=[r,a*r+s];o=[t,a*t+s]}return e[0]=l,e[1]=o,!0}function Qr(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Zr(e,t){return t[+(t.left!==e.site)]}function ei(e,t){return t[+(t.left===e.site)]}function ti(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i[0],s=i[1],l=r[0]-a,c=r[1]-s,u=o[0]-a,d=o[1]-s,f=2*(l*d-c*u);if(!(f>=-fl)){var h=l*l+c*c,p=u*u+d*d,m=(d*h-c*p)/f,g=(l*p-u*h)/f,v=cl.pop()||new function(){Gr(this),this.x=this.y=this.arc=this.site=this.cy=null};v.arc=e,v.site=i,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),e.circle=v;for(var y=null,b=sl._;b;)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}sl.insert(y,v),y||(il=v)}}}}function ni(e){var t=e.circle;t&&(t.P||(il=t.N),sl.remove(t),cl.push(t),Gr(t),e.circle=null)}function ri(e){var t=ul.pop()||new function(){Gr(this),this.edge=this.site=this.circle=null};return t.site=e,t}function ii(e){ni(e),ol.remove(e),ul.push(e),Gr(e)}function oi(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,s=[e];ii(e);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<dl&&Math.abs(r-l.circle.cy)<dl;)o=l.P,s.unshift(l),ii(l),l=o;s.unshift(l),ni(l);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<dl&&Math.abs(r-c.circle.cy)<dl;)a=c.N,s.push(c),ii(c),c=a;s.push(c),ni(c);var u,d=s.length;for(u=1;u<d;++u)c=s[u],l=s[u-1],Xr(c.edge,l.site,c.site,i);l=s[0],(c=s[d-1]).edge=$r(l.site,c.site,null,i),ti(l),ti(c)}function ai(e){for(var t,n,r,i,o=e[0],a=e[1],s=ol._;s;)if((r=si(s,a)-o)>dl)s=s.L;else{if(!((i=o-function(e,t){var n=e.N;if(n)return si(n,t);var r=e.site;return r[1]===t?r[0]:1/0}(s,a))>dl)){r>-dl?(t=s.P,n=s):i>-dl?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){al[e.index]={site:e,halfedges:[]}}(e);var l=ri(e);if(ol.insert(t,l),t||n){if(t===n)return ni(t),n=ri(t.site),ol.insert(l,n),l.edge=n.edge=$r(t.site,l.site),ti(t),void ti(n);if(n){ni(t),ni(n);var c=t.site,u=c[0],d=c[1],f=e[0]-u,h=e[1]-d,p=n.site,m=p[0]-u,g=p[1]-d,v=2*(f*g-h*m),y=f*f+h*h,b=m*m+g*g,_=[(g*y-h*b)/v+u,(f*b-m*y)/v+d];Xr(n.edge,c,p,_),l.edge=$r(c,e,null,_),n.edge=$r(e,p,null,_),ti(t),ti(n)}else l.edge=$r(t.site,l.site)}}function si(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,d=1/o-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+i-o/2)))/d+r:(r+s)/2}function li(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function ci(e,t){return t[1]-e[1]||t[0]-e[0]}function ui(e,t){var n,r,i,o=e.sort(ci).pop();for(ll=[],al=new Array(e.length),ol=new Ur,sl=new Ur;;)if(i=il,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(ai(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;oi(i.arc)}if(function(){for(var e,t,n,r,i=0,o=al.length;i<o;++i)if((e=al[i])&&(r=(t=e.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=Qr(e,ll[t[n]]);for(a.sort((function(e,t){return s[t]-s[e]})),n=0;n<r;++n)s[n]=t[a[n]];for(n=0;n<r;++n)t[n]=s[n]}}(),t){var a=+t[0][0],s=+t[0][1],l=+t[1][0],c=+t[1][1];!function(e,t,n,r){for(var i,o=ll.length;o--;)Jr(i=ll[o],e,t,n,r)&&Yr(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>dl||Math.abs(i[0][1]-i[1][1])>dl)||delete ll[o]}(a,s,l,c),function(e,t,n,r){var i,o,a,s,l,c,u,d,f,h,p,m,g=al.length,v=!0;for(i=0;i<g;++i)if(o=al[i]){for(a=o.site,s=(l=o.halfedges).length;s--;)ll[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(h=ei(o,ll[l[s]]))[0],m=h[1],d=(u=Zr(o,ll[l[++s%c]]))[0],f=u[1],(Math.abs(p-d)>dl||Math.abs(m-f)>dl)&&(l.splice(s,0,ll.push(Kr(a,h,Math.abs(p-e)<dl&&r-m>dl?[e,Math.abs(d-e)<dl?f:r]:Math.abs(m-r)<dl&&n-p>dl?[Math.abs(f-r)<dl?d:n,r]:Math.abs(p-n)<dl&&m-t>dl?[n,Math.abs(d-n)<dl?f:t]:Math.abs(m-t)<dl&&p-e>dl?[Math.abs(f-t)<dl?d:e,t]:null))-1),++c);c&&(v=!1)}if(v){var y,b,_,w=1/0;for(i=0,v=null;i<g;++i)(o=al[i])&&(_=(y=(a=o.site)[0]-e)*y+(b=a[1]-t)*b)<w&&(w=_,v=o);if(v){var x=[e,t],S=[e,r],C=[n,r],E=[n,t];v.halfedges.push(ll.push(Kr(a=v.site,x,S))-1,ll.push(Kr(a,S,C))-1,ll.push(Kr(a,C,E))-1,ll.push(Kr(a,E,x))-1)}}for(i=0;i<g;++i)(o=al[i])&&(o.halfedges.length||delete al[i])}(a,s,l,c)}this.edges=ll,this.cells=al,ol=sl=ll=al=null}function di(e){return(e=e.slice()).push(e[0]),o([e])}function fi(e,t,n,r){var i=(r=r||{}).steps||64,a=r.units||"kilometers",s=r.angle||0,l=r.pivot||e,c=r.properties||e.properties||{};if(!e)throw new Error("center is required");if(!t)throw new Error("xSemiAxis is required");if(!n)throw new Error("ySemiAxis is required");if(!C(r))throw new Error("options must be an object");if(!S(i))throw new Error("steps must be a number");if(!S(s))throw new Error("angle must be a number");var u=G(e);if("degrees"===a)var d=_(s);else t=nr(e,t,90,{units:a}),n=nr(e,n,0,{units:a}),t=G(t)[0]-u[0],n=G(n)[1]-u[1];for(var f=[],h=0;h<i;h+=1){var p=-360*h/i,m=t*n/Math.sqrt(Math.pow(n,2)+Math.pow(t,2)*Math.pow(hi(p),2)),g=t*n/Math.sqrt(Math.pow(t,2)+Math.pow(n,2)/Math.pow(hi(p),2));if(p<-90&&p>=-270&&(m=-m),p<-180&&p>=-360&&(g=-g),"degrees"===a){var v=m*Math.cos(d)+g*Math.sin(d),y=g*Math.cos(d)-m*Math.sin(d);m=v,g=y}f.push([m+u[0],g+u[1]])}return f.push(f[0]),"degrees"===a?o([f],c):hr(o([f],c),s,{pivot:l})}function hi(e){var t=e*Math.PI/180;return Math.tan(t)}function pi(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.properties,i=t.weight;if(!e)throw new Error("geojson is required");var o=0,a=0,s=0;return N(e,(function(e,t,n){var r=n[i];if(r=void 0===r||null===r?1:r,!S(r))throw new Error("weight value must be a number for feature index "+t);(r=Number(r))>0&&O(e,(function(e){o+=e[0]*r,a+=e[1]*r,s+=r}))})),r([o/s,a/s],n)}function mi(e,t,n,i){var o=n.properties.tolerance||.001,a=0,s=0,l=0,c=0;if(R(n,(function(t){var n=t.properties.weight,r=void 0===n||null===n?1:n;if(r=Number(r),!S(r))throw new Error("weight value must be a number");if(r>0){c+=1;var i=r*je(t,e);0===i&&(i=1);var o=r/i;a+=t.geometry.coordinates[0]*o,s+=t.geometry.coordinates[1]*o,l+=o}})),c<1)throw new Error("no features to measure");var u=a/l,d=s/l;return 1===c||0===i||Math.abs(u-t[0])<o&&Math.abs(d-t[1])<o?r([u,d],{medianCandidates:n.properties.medianCandidates}):(n.properties.medianCandidates.push([u,d]),mi([u,d],e,n,i-1))}function gi(e,t){return{x:e[0]-t[0],y:e[1]-t[1]}}function vi(e){if(C(e)&&(e=e.bbox),e&&!Array.isArray(e))throw new Error("bbox is invalid");return e?function(e){return[Math.random()*(e[2]-e[0])+e[0],Math.random()*(e[3]-e[1])+e[1]]}(e):[360*wi(),180*wi()]}function yi(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.bbox;void 0!==e&&null!==e||(e=1);for(var i=[],o=0;o<e;o++)i.push(r(vi(n)));return c(i)}function bi(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.bbox,r=t.num_vertices,i=t.max_radial_length;void 0!==e&&null!==e||(e=1),S(r)||(r=10),S(i)||(i=10);for(var a=[],s=0;s<e;s++){var l=[],u=Array.apply(null,new Array(r+1)).map(Math.random);u.forEach((function(e,t,n){n[t]=t>0?e+n[t-1]:e})),u.forEach((function(e){e=2*e*Math.PI/u[u.length-1];var t=Math.random();l.push([t*i*Math.sin(e),t*i*Math.cos(e)])})),l[l.length-1]=l[0],l=l.map(function(e){return function(t){return[t[0]+e[0],t[1]+e[1]]}}(vi(n))),a.push(o([l]))}return c(a)}function _i(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.bbox,r=t.num_vertices,i=t.max_length,o=t.max_rotation;void 0!==e&&null!==e||(e=1),(!S(r)||r<2)&&(r=10),S(i)||(i=1e-4),S(o)||(o=Math.PI/8);for(var a=[],l=0;l<e;l++){for(var u=[vi(n)],d=0;d<r-1;d++){var f=(0===d?2*Math.random()*Math.PI:Math.tan((u[d][1]-u[d-1][1])/(u[d][0]-u[d-1][0])))+(Math.random()-.5)*o*2,h=Math.random()*i;u.push([u[d][0]+h*Math.cos(f),u[d][1]+h*Math.sin(f)])}a.push(s(u))}return c(a)}function wi(){return Math.random()-.5}function xi(e,t){if(!e)throw new Error("geojson is required");if("FeatureCollection"!==e.type)throw new Error("geojson must be a FeatureCollection");if(void 0===t||null===t)throw new Error("filter is required");var n=[];return R(e,(function(e){ki(e.properties,t)&&n.push(e)})),c(n)}function Si(e,t,n){if(!e)throw new Error("geojson is required");if("FeatureCollection"!==e.type)throw new Error("geojson must be a FeatureCollection");if(void 0===t||null===t)throw new Error("property is required");for(var r=Ei(e,t),i=Object.keys(r),o=0;o<i.length;o++){for(var a=i[o],s=r[a],l=[],u=0;u<s.length;u++)l.push(e.features[s[u]]);n(c(l),a,o)}}function Ci(e,t,n,r){var i=r;return Si(e,t,(function(e,t,o){i=0===o&&void 0===r?e:n(i,e,t,o)})),i}function Ei(e,t){var n={};return R(e,(function(e,r){var i=e.properties||{};if(i.hasOwnProperty(t)){var o=i[t];n.hasOwnProperty(o)?n[o].push(r):n[o]=[r]}})),n}function ki(e,t){if(void 0===e)return!1;var n=typeof t;if("number"===n||"string"===n)return e.hasOwnProperty(t);if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!ki(e,t[r]))return!1;return!0}return Oi(e,t)}function Oi(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}function Ti(e,t){if(!t)return{};if(!t.length)return{};for(var n={},r=0;r<t.length;r++){var i=t[r];e.hasOwnProperty(i)&&(n[i]=e[i])}return n}function Ii(){}function Ai(e){this.message=e||""}function Ri(e){this.message=e||""}function Pi(){}function Mi(e){return null===e?Nc:e.color}function Ni(e){return null===e?null:e.parent}function Li(e,t){null!==e&&(e.color=t)}function Di(e){return null===e?null:e.left}function ji(e){return null===e?null:e.right}function Fi(){this.root_=null,this.size_=0}function Bi(){}function qi(){this.array_=[],arguments[0]instanceof bc&&this.addAll(arguments[0])}function zi(){}function Ui(e){this.message=e||""}function Gi(){this.array_=[]}function Vi(e){switch(e.type){case"Polygon":return yn(e)>1?e:null;case"MultiPolygon":var t=[];if(D(e,(function(e){yn(e)>1&&t.push(e.geometry.coordinates)})),t.length)return{type:"MultiPolygon",coordinates:t}}}function Wi(){this.reset()}function Hi(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}function $i(e){return e>1?qh:e<-1?-qh:Math.asin(e)}function Ki(){}function Xi(e,t){e&&tp.hasOwnProperty(e.type)&&tp[e.type](e,t)}function Yi(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function Ji(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Yi(e[n],t,1);t.polygonEnd()}function Qi(e){return[$h(e[1],e[0]),$i(e[2])]}function Zi(e){var t=e[0],n=e[1],r=Kh(n);return[r*Kh(t),r*Jh(t),Jh(n)]}function eo(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function to(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function no(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ro(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function io(e){var t=Qh(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function oo(e,t){return[e>Bh?e-Uh:e<-Bh?e+Uh:e,t]}function ao(e,t,n){return(e%=Uh)?t||n?rp(lo(e),co(t,n)):lo(e):t||n?co(t,n):oo}function so(e){return function(t,n){return t+=e,[t>Bh?t-Uh:t<-Bh?t+Uh:t,n]}}function lo(e){var t=so(e);return t.invert=so(-e),t}function co(e,t){function n(e,t){var n=Kh(t),s=Kh(e)*n,l=Jh(e)*n,c=Jh(t),u=c*r+s*i;return[$h(l*o-u*a,s*r-c*i),$i(u*o+l*a)]}var r=Kh(e),i=Jh(e),o=Kh(t),a=Jh(t);return n.invert=function(e,t){var n=Kh(t),s=Kh(e)*n,l=Jh(e)*n,c=Jh(t),u=c*o-l*a;return[$h(l*o+c*a,s*r+u*i),$i(u*r-s*i)]},n}function uo(e,t){(t=Zi(t))[0]-=e,io(t);var n=function(e){return e>1?0:e<-1?Bh:Math.acos(e)}(-t[1]);return((-t[2]<0?-n:n)+Uh-Fh)%Uh}function fo(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ho(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function po(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,c){var u=0,d=0;if(null==i||(u=a(i,s))!==(d=a(o,s))||l(i,o)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==d);else c.point(o[0],o[1])}function a(r,i){return Wh(r[0]-e)<Fh?i>0?0:3:Wh(r[0]-n)<Fh?i>0?2:1:Wh(r[1]-t)<Fh?i>0?1:0:i>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){function l(e,t){i(e,t)&&w.point(e,t)}function c(o,a){var s=i(o,a);if(d&&f.push([o,a]),b)h=o,p=a,m=s,b=!1,s&&(w.lineStart(),w.point(o,a));else if(s&&y)w.point(o,a);else{var l=[g=Math.max(fp,Math.min(dp,g)),v=Math.max(fp,Math.min(dp,v))],c=[o=Math.max(fp,Math.min(dp,o)),a=Math.max(fp,Math.min(dp,a))];ap(l,c,e,t,n,r)?(y||(w.lineStart(),w.point(l[0],l[1])),w.point(c[0],c[1]),s||w.lineEnd(),_=!1):s&&(w.lineStart(),w.point(o,a),_=!1)}g=o,v=a,y=s}var u,d,f,h,p,m,g,v,y,b,_,w=a,x=op(),S={point:l,lineStart:function(){S.point=c,d&&d.push(f=[]),b=!0,y=!1,g=v=NaN},lineEnd:function(){u&&(c(h,p),m&&y&&x.rejoin(),u.push(x.result())),S.point=l,y&&w.lineEnd()},polygonStart:function(){w=x,u=[],d=[],_=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=d.length;n<i;++n)for(var o,a,s=d[n],l=1,c=s.length,u=s[0],f=u[0],h=u[1];l<c;++l)o=f,a=h,f=(u=s[l])[0],h=u[1],a<=r?h>r&&(f-o)*(r-a)>(h-a)*(e-o)&&++t:h<=r&&(f-o)*(r-a)<(h-a)*(e-o)&&--t;return t}(),n=_&&t,i=(u=up(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&lp(u,s,t,o,a),a.polygonEnd()),w=a,u=d=f=null}};return S}}function mo(e){return e.length>1}function go(e,t){return((e=e.x)[0]<0?e[1]-qh-Fh:qh-e[1])-((t=t.x)[0]<0?t[1]-qh-Fh:qh-t[1])}function vo(e){return function(t){var n=new yo;for(var r in e)n[r]=e[r];return n.stream=t,n}}function yo(){}function bo(e,t,n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=o&&e.clipExtent(null),np(n,e.stream(bp));var a=bp.result(),s=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),l=+t[0][0]+(r-s*(a[1][0]+a[0][0]))/2,c=+t[0][1]+(i-s*(a[1][1]+a[0][1]))/2;return null!=o&&e.clipExtent(o),e.scale(150*s).translate([l,c])}function _o(e){return function(e){function t(e){return e=c(e[0]*Vh,e[1]*Vh),[e[0]*m+a,s-e[1]*m]}function n(e,t){return e=o(e,t),[e[0]*m+a,s-e[1]*m]}function r(){c=rp(l=ao(_,w,x),o);var e=o(y,b);return a=g-e[0]*m,s=v+e[1]*m,i()}function i(){return h=p=null,t}var o,a,s,l,c,u,d,f,h,p,m=150,g=480,v=250,y=0,b=0,_=0,w=0,x=0,S=null,C=wp,E=null,k=pp,O=.5,T=Ep(n,O);return t.stream=function(e){return h&&p===e?h:h=kp(C(l,T(k(p=e))))},t.clipAngle=function(e){return arguments.length?(C=+e?xp(S=e*Vh,6*Vh):(S=null,wp),i()):S*Gh},t.clipExtent=function(e){return arguments.length?(k=null==e?(E=u=d=f=null,pp):po(E=+e[0][0],u=+e[0][1],d=+e[1][0],f=+e[1][1]),i()):null==E?null:[[E,u],[d,f]]},t.scale=function(e){return arguments.length?(m=+e,r()):m},t.translate=function(e){return arguments.length?(g=+e[0],v=+e[1],r()):[g,v]},t.center=function(e){return arguments.length?(y=e[0]%360*Vh,b=e[1]%360*Vh,r()):[y*Gh,b*Gh]},t.rotate=function(e){return arguments.length?(_=e[0]%360*Vh,w=e[1]%360*Vh,x=e.length>2?e[2]%360*Vh:0,r()):[_*Gh,w*Gh,x*Gh]},t.precision=function(e){return arguments.length?(T=Ep(n,O=e*e),i()):Qh(O)},t.fitExtent=function(e,n){return bo(t,e,n)},t.fitSize=function(e,n){return function(e,t,n){return bo(e,[[0,0],t],n)}(t,e,n)},function(){return o=e.apply(this,arguments),t.invert=o.invert&&function(e){return(e=c.invert((e[0]-a)/m,(s-e[1])/m))&&[e[0]*Gh,e[1]*Gh]},r()}}((function(){return e}))()}function wo(e,t){return[e,Yh(Zh((qh+t)/2))]}function xo(e,t){return[Yh(Zh((qh+t)/2)),-e]}function So(e,n,r,i){var o=e.properties||{},a="Feature"===e.type?e.geometry:e;if("GeometryCollection"===a.type){var s=[];return N(e,(function(e){var t=So(e,n,r,i);t&&s.push(t)})),c(s)}var l,u=U(e),d=u[1]>50&&u[3]>50;l=d?{type:a.type,coordinates:Eo(a.coordinates,Oo(a))}:cn(a);var f,h=(new Su).read(l),p=m(g(n,r),"meters"),v=mf.bufferOp(h,p);if(v=(new Cu).write(v),!Co(v.coordinates))return(f=d?{type:v.type,coordinates:ko(v.coordinates,Oo(a))}:un(v)).geometry?f:t(f,o)}function Co(e){return Array.isArray(e[0])?Co(e[0]):isNaN(e[0])}function Eo(e,t){return"object"!=typeof e[0]?t(e):e.map((function(e){return Eo(e,t)}))}function ko(e,t){return"object"!=typeof e[0]?t.invert(e):e.map((function(e){return ko(e,t)}))}function Oo(e){var t=mt(e).geometry.coordinates.reverse(),n=t.map((function(e){return-e}));return Op().center(t).rotate(n).scale(Do)}function To(){for(var e=new Su,t=e.read(JSON.stringify(arguments[0].geometry)),n=1;n<arguments.length;n++)t=Lh.union(t,e.read(JSON.stringify(arguments[n].geometry)));return t=(new Cu).write(t),{type:"Feature",geometry:t,properties:arguments[0].properties}}function Io(e,n){var r=X(e),i=X(n);if(et(An(i,{precision:4})).coordinates[0].length<4)return null;if(et(An(r,{precision:4})).coordinates[0].length<4)return null;var o=new Su,a=o.read(An(r)),s=o.read(An(i)),l=kh.intersection(a,s);return l.isEmpty()?null:t((new Cu).write(l))}function Ao(e,t){return function(e,t,n){var r,i;if(!Array.isArray(t))throw new Error("Get closest expects an array as second argument");return t.forEach((function(t,o){var a=n(t,e);a>=0&&(void 0===i||a<i)&&(i=a,r=o)})),r}(e,t,(function(e,t){return e-t}))}function Ro(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.properties||{},i=n.triangles,a=n.mask;if(null===t||void 0===t)throw new Error("cellSide is required");if(!S(t))throw new Error("cellSide is invalid");if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be array");if(4!==e.length)throw new Error("bbox must contain 4 numbers");if(a&&-1===["Polygon","MultiPolygon"].indexOf(J(a)))throw new Error("options.mask must be a (Multi)Polygon");var s=e[0],l=e[1],u=e[2],d=e[3],f=(l+d)/2,h=(s+u)/2,p=2*t/je([s,f],[u,f],n)*(u-s),m=2*t/je([h,l],[h,d],n)*(d-l),g=p/2,v=2*g,y=Math.sqrt(3)/2*m,b=u-s,_=d-l,w=.75*v,x=y,E=(b-v)/(v-g/2),k=Math.floor(E),O=(k*w-g/2-b)/2-g/2+w/2,T=Math.floor((_-y)/y),I=(_-T*y)/2,A=T*y-_>y/2;A&&(I-=y/4);for(var R=[],P=[],M=0;M<6;M++){var N=2*Math.PI/6*M;R.push(Math.cos(N)),P.push(Math.sin(N))}for(var L=[],D=0;D<=k;D++)for(var j=0;j<=T;j++){var F=D%2==1;if((0!==j||!F)&&(0!==j||!A)){var B=D*w+s-O,q=j*x+l+I;if(F&&(q-=y/2),!0===i)(function(e,t,n,r,i,a){for(var s=[],l=0;l<6;l++){var c=[];c.push(e),c.push([e[0]+t*i[l],e[1]+n*a[l]]),c.push([e[0]+t*i[(l+1)%6],e[1]+n*a[(l+1)%6]]),c.push(e),s.push(o([c],r))}return s})([B,q],p/2,m/2,r,R,P).forEach((function(e){a?Io(a,e)&&L.push(e):L.push(e)}));else{var z=function(e,t,n,r,i,a){for(var s=[],l=0;l<6;l++){var c=e[0]+t*i[l],u=e[1]+n*a[l];s.push([c,u])}return s.push(s[0].slice()),o([s],r)}([B,q],p/2,m/2,r,R,P);a?Io(a,z)&&L.push(z):L.push(z)}}}return c(L)}function Po(e){if(e.features.length<=1)return e;var t=function(e){var t=Ho(),n=[];return D(e,(function(e,t){var r=U(e);n.push({minX:r[0],minY:r[1],maxX:r[2],maxY:r[3],geojson:e,index:t})})),t.load(n),t}(e),n=[],r={};return D(e,(function(e,i){if(r[i])return!0;for(t.remove({index:i},Mo),r[i]=!0;;){var o=U(e),a=t.search({minX:o[0],minY:o[1],maxX:o[2],maxY:o[3]});if(a.length>0){var s=a.map((function(e){return r[e.index]=!0,t.remove({index:e.index},Mo),e.geojson}));s.push(e),e=To.apply(this,s)}if(0===a.length)break}n.push(e)})),c(n)}function Mo(e,t){return e.index===t.index}function No(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.properties,i=n.mask,a=[];if(null===t||void 0===t)throw new Error("cellSide is required");if(!S(t))throw new Error("cellSide is invalid");if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be array");if(4!==e.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(J(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var s=e[0],l=e[1],u=e[2],d=e[3],f=t/je([s,l],[u,l],n)*(u-s),h=t/je([s,l],[s,d],n)*(d-l),p=u-s,m=d-l,g=Math.floor(p/f),v=Math.floor(m/h),y=(m-v*h)/2,b=s+(p-g*f)/2,_=0;_<g;_++){for(var w=l+y,x=0;x<v;x++){var E=o([[[b,w],[b,w+h],[b+f,w+h],[b+f,w],[b,w]]],r);i?Io(i,E)&&a.push(E):a.push(E),w+=h}b+=f}return c(a)}function Lo(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.properties,i=n.mask,a=[];if(null===t||void 0===t)throw new Error("cellSide is required");if(!S(t))throw new Error("cellSide is invalid");if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be array");if(4!==e.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(J(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var s=t/je([e[0],e[1]],[e[2],e[1]],n)*(e[2]-e[0]),l=t/je([e[0],e[1]],[e[0],e[3]],n)*(e[3]-e[1]),u=0,d=e[0];d<=e[2];){for(var f=0,h=e[1];h<=e[3];){var p=null,m=null;u%2==0&&f%2==0?(p=o([[[d,h],[d,h+l],[d+s,h],[d,h]]],r),m=o([[[d,h+l],[d+s,h+l],[d+s,h],[d,h+l]]],r)):u%2==0&&f%2==1?(p=o([[[d,h],[d+s,h+l],[d+s,h],[d,h]]],r),m=o([[[d,h],[d,h+l],[d+s,h+l],[d,h]]],r)):f%2==0&&u%2==1?(p=o([[[d,h],[d,h+l],[d+s,h+l],[d,h]]],r),m=o([[[d,h],[d+s,h+l],[d+s,h],[d,h]]],r)):f%2==1&&u%2==1&&(p=o([[[d,h],[d,h+l],[d+s,h],[d,h]]],r),m=o([[[d,h+l],[d+s,h+l],[d+s,h],[d,h+l]]],r)),i?(Io(i,p)&&a.push(p),Io(i,m)&&a.push(m)):(a.push(p),a.push(m)),h+=l,f++}u++,d+=s}return c(a)}var Do=6371008.8,jo={meters:Do,metres:Do,millimeters:1e3*Do,millimetres:1e3*Do,centimeters:100*Do,centimetres:100*Do,kilometers:Do/1e3,kilometres:Do/1e3,miles:Do/1609.344,nauticalmiles:Do/1852,inches:39.37*Do,yards:Do/1.0936,feet:3.28084*Do,radians:1,degrees:Do/111325},Fo={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/Do,degrees:1/111325},Bo={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006},qo=Object.freeze({earthRadius:Do,factors:jo,unitsFactors:Fo,areaFactors:Bo,feature:t,geometry:n,point:r,points:i,polygon:o,polygons:a,lineString:s,lineStrings:l,featureCollection:c,multiLineString:u,multiPoint:d,multiPolygon:f,geometryCollection:h,round:p,radiansToLength:m,lengthToRadians:g,lengthToDegrees:v,bearingToAzimuth:y,radiansToDegrees:b,degreesToRadians:_,convertLength:w,convertArea:x,isNumber:S,isObject:C,validateBBox:E,validateId:k,radians2degrees:function(){throw new Error("method has been renamed to `radiansToDegrees`")},degrees2radians:function(){throw new Error("method has been renamed to `degreesToRadians`")},distanceToDegrees:function(){throw new Error("method has been renamed to `lengthToDegrees`")},distanceToRadians:function(){throw new Error("method has been renamed to `lengthToRadians`")},radiansToDistance:function(){throw new Error("method has been renamed to `radiansToLength`")},bearingToAngle:function(){throw new Error("method has been renamed to `bearingToAzimuth`")},convertDistance:function(){throw new Error("method has been renamed to `convertLength`")}}),zo=Object.freeze({coordEach:O,coordReduce:T,propEach:I,propReduce:A,featureEach:R,featureReduce:P,coordAll:M,geomEach:N,geomReduce:L,flattenEach:D,flattenReduce:j,segmentEach:F,segmentReduce:B,lineEach:q,lineReduce:z}),Uo=Object.freeze({getCoord:G,getCoords:V,containsNumber:W,geojsonType:H,featureOf:$,collectionOf:K,getGeom:X,getGeomType:Y,getType:J}),Go={successCallback:null,verbose:!1},Vo={},Wo=ie,Ho=ae;ae.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!me(e,t))return n;for(var i,o,a,s,l=[];t;){for(i=0,o=t.children.length;i<o;i++)a=t.children[i],me(e,s=t.leaf?r(a):a)&&(t.leaf?n.push(a):pe(e,s)?this._all(a,n):l.push(a));t=l.pop()}return n},collides:function(e){var t=this.data,n=this.toBBox;if(!me(e,t))return!1;for(var r,i,o,a,s=[];t;){for(r=0,i=t.children.length;r<i;r++)if(o=t.children[r],a=t.leaf?n(o):o,me(e,a)){if(t.leaf||pe(e,a))return!0;s.push(o)}t=s.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=ge([]),this},remove:function(e,t){if(!e)return this;for(var n,r,i,o,a=this.data,s=this.toBBox(e),l=[],c=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),a.leaf&&-1!==(i=function(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}(e,a.children,t)))return a.children.splice(i,1),l.push(a),this._condense(l),this;o||a.leaf||!pe(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:ue,compareMinY:de,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},_build:function(e,t,n,r){var i,o=n-t+1,a=this._maxEntries;if(o<=a)return i=ge(e.slice(t,n+1)),se(i,this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,r-1))),(i=ge([])).leaf=!1,i.height=r;var s,l,c,u,d=Math.ceil(o/a),f=d*Math.ceil(Math.sqrt(a));for(ve(e,t,n,f,this.compareMinX),s=t;s<=n;s+=f)for(ve(e,s,c=Math.min(s+f-1,n),d,this.compareMinY),l=s;l<=c;l+=d)u=Math.min(l+d-1,c),i.children.push(this._build(e,l,u,r-1));return se(i,this.toBBox),i},_chooseSubtree:function(e,t,n,r){for(var i,o,a,s,l,c,u,d;r.push(t),!t.leaf&&r.length-1!==n;){for(u=d=1/0,i=0,o=t.children.length;i<o;i++)l=fe(a=t.children[i]),(c=function(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}(e,a)-l)<d?(d=c,u=l<u?l:u,s=a):c===d&&l<u&&(u=l,s=a);t=s||t.children[0]}return t},_insert:function(e,t,n){var r=this.toBBox,i=n?e:r(e),o=[],a=this._chooseSubtree(i,this.data,t,o);for(a.children.push(e),ce(a,i);t>=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),a=ge(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,se(n,this.toBBox),se(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(e,t){this.data=ge([e,t]),this.data.height=e.height+1,this.data.leaf=!1,se(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,a,s,l,c,u;for(l=c=1/0,r=t;r<=n-t;r++)a=function(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}(i=le(e,0,r,this.toBBox),o=le(e,r,n,this.toBBox)),s=fe(i)+fe(o),a<l?(l=a,u=r,c=s<c?s:c):a===l&&s<c&&(c=s,u=r);return u},_chooseSplitAxis:function(e,t,n){var r=e.leaf?this.compareMinX:ue,i=e.leaf?this.compareMinY:de;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},_allDistMargin:function(e,t,n,r){e.children.sort(r);var i,o,a=this.toBBox,s=le(e,0,t,a),l=le(e,n-t,n,a),c=he(s)+he(l);for(i=t;i<n-t;i++)o=e.children[i],ce(s,e.leaf?a(o):o),c+=he(s);for(i=n-t-1;i>=t;i--)o=e.children[i],ce(l,e.leaf?a(o):o),c+=he(l);return c},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)ce(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():se(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var $o=function(e,t,n){var r=e*t,i=Ko*e,o=i-(i-e),a=e-o,s=Ko*t,l=s-(s-t),c=t-l,u=a*c-(r-o*l-a*l-o*c);return n?(n[0]=u,n[1]=r,n):[u,r]},Ko=+(Math.pow(2,27)+1),Xo=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,i=e-(n-r)+(t-r);return i?[i,n]:[n]}(e[0],t[0]);var i,o,a=n+r,s=new Array(a),l=0,c=0,u=0,d=Math.abs,f=e[c],h=d(f),p=t[u],m=d(p);h<m?(o=f,(c+=1)<n&&(h=d(f=e[c]))):(o=p,(u+=1)<r&&(m=d(p=t[u]))),c<n&&h<m||u>=r?(i=f,(c+=1)<n&&(h=d(f=e[c]))):(i=p,(u+=1)<r&&(m=d(p=t[u])));for(var g,v,y=i+o,b=y-i,_=o-b,w=_,x=y;c<n&&u<r;)h<m?(i=f,(c+=1)<n&&(h=d(f=e[c]))):(i=p,(u+=1)<r&&(m=d(p=t[u]))),(_=(o=w)-(b=(y=i+o)-i))&&(s[l++]=_),w=x-((g=x+y)-(v=g-x))+(y-v),x=g;for(;c<n;)(_=(o=w)-(b=(y=(i=f)+o)-i))&&(s[l++]=_),w=x-((g=x+y)-(v=g-x))+(y-v),x=g,(c+=1)<n&&(f=e[c]);for(;u<r;)(_=(o=w)-(b=(y=(i=p)+o)-i))&&(s[l++]=_),w=x-((g=x+y)-(v=g-x))+(y-v),x=g,(u+=1)<r&&(p=t[u]);return w&&(s[l++]=w),x&&(s[l++]=x),l||(s[l++]=0),s.length=l,s},Yo=function(e,t,n){var r=e+t,i=r-e,o=t-i,a=e-(r-i);return n?(n[0]=a+o,n[1]=r,n):[a+o,r]},Jo=function(e,t){var n=e.length;if(1===n){var r=$o(e[0],t);return r[0]?r:[r[1]]}var i=new Array(2*n),o=[.1,.1],a=[.1,.1],s=0;$o(e[0],t,o),o[0]&&(i[s++]=o[0]);for(var l=1;l<n;++l){$o(e[l],t,a);var c=o[1];Yo(c,a[0],o),o[0]&&(i[s++]=o[0]);var u=a[1],d=o[1],f=u+d,h=d-(f-u);o[1]=f,h&&(i[s++]=h)}return o[1]&&(i[s++]=o[1]),0===s&&(i[s++]=0),i.length=s,i},Qo=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,i=e-(n-r)+(t-r);return i?[i,n]:[n]}(e[0],-t[0]);var i,o,a=n+r,s=new Array(a),l=0,c=0,u=0,d=Math.abs,f=e[c],h=d(f),p=-t[u],m=d(p);h<m?(o=f,(c+=1)<n&&(h=d(f=e[c]))):(o=p,(u+=1)<r&&(m=d(p=-t[u]))),c<n&&h<m||u>=r?(i=f,(c+=1)<n&&(h=d(f=e[c]))):(i=p,(u+=1)<r&&(m=d(p=-t[u])));for(var g,v,y=i+o,b=y-i,_=o-b,w=_,x=y;c<n&&u<r;)h<m?(i=f,(c+=1)<n&&(h=d(f=e[c]))):(i=p,(u+=1)<r&&(m=d(p=-t[u]))),(_=(o=w)-(b=(y=i+o)-i))&&(s[l++]=_),w=x-((g=x+y)-(v=g-x))+(y-v),x=g;for(;c<n;)(_=(o=w)-(b=(y=(i=f)+o)-i))&&(s[l++]=_),w=x-((g=x+y)-(v=g-x))+(y-v),x=g,(c+=1)<n&&(f=e[c]);for(;u<r;)(_=(o=w)-(b=(y=(i=p)+o)-i))&&(s[l++]=_),w=x-((g=x+y)-(v=g-x))+(y-v),x=g,(u+=1)<r&&(p=-t[u]);return w&&(s[l++]=w),x&&(s[l++]=x),l||(s[l++]=0),s.length=l,s},Zo=ye((function(e){function t(e,t){for(var n=new Array(e.length-1),r=1;r<e.length;++r)for(var i=n[r-1]=new Array(e.length-1),o=0,a=0;o<e.length;++o)o!==t&&(i[a++]=e[r][o]);return n}function n(e){return 1&e?"-":""}function r(e){if(1===e.length)return e[0];if(2===e.length)return["sum(",e[0],",",e[1],")"].join("");var t=e.length>>1;return["sum(",r(e.slice(0,t)),",",r(e.slice(t)),")"].join("")}function i(e){if(2===e.length)return[["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("")];for(var o=[],a=0;a<e.length;++a)o.push(["scale(",r(i(t(e,a))),",",n(a),e[0][a],")"].join(""));return o}function o(e){for(var n=[],o=[],a=function(e){for(var t=new Array(e),n=0;n<e;++n){t[n]=new Array(e);for(var r=0;r<e;++r)t[n][r]=["m",r,"[",e-n-1,"]"].join("")}return t}(e),s=[],l=0;l<e;++l)0==(1&l)?n.push.apply(n,i(t(a,l))):o.push.apply(o,i(t(a,l))),s.push("m"+l);var c=r(n),u=r(o),d="orientation"+e+"Exact",f=["function ",d,"(",s.join(),"){var p=",c,",n=",u,",d=sub(p,n);return d[d.length-1];};return ",d].join("");return new Function("sum","prod","scale","sub",f)(Xo,$o,Jo,Qo)}var a=5,s=o(3),l=o(4),c=[function(){return 0},function(){return 0},function(e,t){return t[0]-e[0]},function(e,t,n){var r,i=(e[1]-n[1])*(t[0]-n[0]),o=(e[0]-n[0])*(t[1]-n[1]),a=i-o;if(i>0){if(o<=0)return a;r=i+o}else{if(!(i<0))return a;if(o>=0)return a;r=-(i+o)}var l=33306690738754716e-32*r;return a>=l||a<=-l?a:s(e,t,n)},function(e,t,n,r){var i=e[0]-r[0],o=t[0]-r[0],a=n[0]-r[0],s=e[1]-r[1],c=t[1]-r[1],u=n[1]-r[1],d=e[2]-r[2],f=t[2]-r[2],h=n[2]-r[2],p=o*u,m=a*c,g=a*s,v=i*u,y=i*c,b=o*s,_=d*(p-m)+f*(g-v)+h*(y-b),w=7771561172376103e-31*((Math.abs(p)+Math.abs(m))*Math.abs(d)+(Math.abs(g)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(b))*Math.abs(h));return _>w||-_>w?_:l(e,t,n,r)}];!function(){for(;c.length<=a;)c.push(o(c.length));for(var t=[],n=["slow"],r=0;r<=a;++r)t.push("a"+r),n.push("o"+r);var i=["function getOrientation(",t.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(r=2;r<=a;++r)i.push("case ",r,":return o",r,"(",t.slice(0,r).join(),");");i.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),n.push(i.join(""));var s=Function.apply(void 0,n);for(e.exports=s.apply(void 0,[function(e){var t=c[e.length];return t||(t=c[e.length]=o(e.length)),t.apply(void 0,e)}].concat(c)),r=0;r<=a;++r)e.exports[r]=c[r]}()})),ea=function(e){var t=e.length;if(t<3){for(var n=new Array(t),r=0;r<t;++r)n[r]=r;return 2===t&&e[0][0]===e[1][0]&&e[0][1]===e[1][1]?[0]:n}var i=new Array(t);for(r=0;r<t;++r)i[r]=r;i.sort((function(t,n){var r=e[t][0]-e[n][0];return r||e[t][1]-e[n][1]}));var o=[i[0],i[1]],a=[i[0],i[1]];for(r=2;r<t;++r){for(var s=i[r],l=e[s],c=o.length;c>1&&ta(e[o[c-2]],e[o[c-1]],l)<=0;)c-=1,o.pop();for(o.push(s),c=a.length;c>1&&ta(e[a[c-2]],e[a[c-1]],l)>=0;)c-=1,a.pop();a.push(s)}n=new Array(a.length+o.length-2);for(var u=0,d=(r=0,o.length);r<d;++r)n[u++]=o[r];for(var f=a.length-2;f>0;--f)n[u++]=a[f];return n},ta=Zo[3],na=be,ra=be;be.prototype={push:function(e){this.data.push(e),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var e=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),e}},peek:function(){return this.data[0]},_up:function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r},_down:function(e){for(var t=this.data,n=this.compare,r=this.length>>1,i=t[e];e<r;){var o=1+(e<<1),a=o+1,s=t[o];if(a<this.length&&n(t[a],s)<0&&(o=a,s=t[a]),n(s,i)>=0)break;t[e]=s,e=o}t[e]=i}},na.default=ra;var ia=function(e,t){for(var n=e[0],r=e[1],i=!1,o=0,a=t.length-1;o<t.length;a=o++){var s=t[o][0],l=t[o][1],c=t[a][0],u=t[a][1];l>r!=u>r&&n<(c-s)*(r-l)/(u-l)+s&&(i=!i)}return i},oa=Zo[3],aa=_e,sa=_e;aa.default=sa;var la=function(e){return e},ca=function(e){if(null==e)return la;var t,n,r=e.scale[0],i=e.scale[1],o=e.translate[0],a=e.translate[1];return function(e,s){s||(t=n=0);var l=2,c=e.length,u=new Array(c);for(u[0]=(t+=e[0])*r+o,u[1]=(n+=e[1])*i+a;l<c;)u[l]=e[l],++l;return u}},ua=function(e,t){for(var n,r=e.length,i=r-t;i<--r;)n=e[i],e[i++]=e[r],e[r]=n},da=function(e,t){function n(e,t){for(var n in e){var i=e[n];delete t[i.start],delete i.start,delete i.end,i.forEach((function(e){r[e<0?~e:e]=1})),a.push(i)}}var r={},i={},o={},a=[],s=-1;return t.forEach((function(n,r){var i,o=e.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=t[++s],t[s]=n,t[r]=i)})),t.forEach((function(t){var n,r,a=function(t){var n,r=e.arcs[t<0?~t:t],i=r[0];return e.transform?(n=[0,0],r.forEach((function(e){n[0]+=e[0],n[1]+=e[1]}))):n=r[r.length-1],t<0?[n,i]:[i,n]}(t),s=a[0],l=a[1];if(n=o[s])if(delete o[n.end],n.push(t),n.end=l,r=i[l]){delete i[r.start];var c=r===n?n:n.concat(r);i[c.start=n.start]=o[c.end=r.end]=c}else i[n.start]=o[n.end]=n;else if(n=i[l])if(delete i[n.start],n.unshift(t),n.start=s,r=o[s]){delete o[r.end];var u=r===n?n:r.concat(n);i[u.start=r.start]=o[u.end=n.end]=u}else i[n.start]=o[n.end]=n;else i[(n=[t]).start=s]=o[n.end=l]=n})),n(o,i),n(i,o),t.forEach((function(e){r[e<0?~e:e]||a.push([e])})),a},fa=function(e){return Ge(e,Ve.apply(this,arguments))},ha=function(e,t,n,r,i,o){3===arguments.length&&(r=o=Array,i=null);for(var a=new r(e=1<<Math.max(4,Math.ceil(Math.log(e)/Math.LN2))),s=new o(e),l=e-1,c=0;c<e;++c)a[c]=i;return{set:function(r,o){for(var c=t(r)&l,u=a[c],d=0;u!=i;){if(n(u,r))return s[c]=o;if(++d>=e)throw new Error("full hashmap");u=a[c=c+1&l]}return a[c]=r,s[c]=o,o},maybeSet:function(r,o){for(var c=t(r)&l,u=a[c],d=0;u!=i;){if(n(u,r))return s[c];if(++d>=e)throw new Error("full hashmap");u=a[c=c+1&l]}return a[c]=r,s[c]=o,o},get:function(r,o){for(var c=t(r)&l,u=a[c],d=0;u!=i;){if(n(u,r))return s[c];if(++d>=e)break;u=a[c=c+1&l]}return o},keys:function(){for(var e=[],t=0,n=a.length;t<n;++t){var r=a[t];r!=i&&e.push(r)}return e}}},pa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ma=new ArrayBuffer(16),ga=new Float64Array(ma),va=new Uint32Array(ma),ya=function(e){ga[0]=e[0],ga[1]=e[1];var t=va[0]^va[1];return 2147483647&(t<<5^t>>7^va[2]^va[3])},ba=function(e){function t(e,t,n,r){if(f[n]!==e){f[n]=e;var i=h[n];if(i>=0){var o=p[n];i===t&&o===r||i===r&&o===t||(++g,m[n]=1)}else h[n]=t,p[n]=r}}function n(e){return ya(l[e])}function r(e,t){return pa(l[e],l[t])}var i,o,a,s,l=e.coordinates,c=e.lines,u=e.rings,d=function(){for(var e=ha(1.4*l.length,n,r,Int32Array,-1,Int32Array),t=new Int32Array(l.length),i=0,o=l.length;i<o;++i)t[i]=e.maybeSet(i,i);return t}(),f=new Int32Array(l.length),h=new Int32Array(l.length),p=new Int32Array(l.length),m=new Int8Array(l.length),g=0;for(i=0,o=l.length;i<o;++i)f[i]=h[i]=p[i]=-1;for(i=0,o=c.length;i<o;++i){var v=c[i],y=v[0],b=v[1];for(a=d[y],s=d[++y],++g,m[a]=1;++y<=b;)t(i,a,a=s,s=d[y]);++g,m[s]=1}for(i=0,o=l.length;i<o;++i)f[i]=-1;for(i=0,o=u.length;i<o;++i){var _=u[i],w=_[0]+1,x=_[1];for(t(i,d[x-1],a=d[w-1],s=d[w]);++w<=x;)t(i,a,a=s,s=d[w])}f=h=p=null;var S,C=function(e,t,n,r,i){3===arguments.length&&(r=Array,i=null);for(var o=new r(e=1<<Math.max(4,Math.ceil(Math.log(e)/Math.LN2))),a=e-1,s=0;s<e;++s)o[s]=i;return{add:function(r){for(var s=t(r)&a,l=o[s],c=0;l!=i;){if(n(l,r))return!0;if(++c>=e)throw new Error("full hashset");l=o[s=s+1&a]}return o[s]=r,!0},has:function(r){for(var s=t(r)&a,l=o[s],c=0;l!=i;){if(n(l,r))return!0;if(++c>=e)break;l=o[s=s+1&a]}return!1},values:function(){for(var e=[],t=0,n=o.length;t<n;++t){var r=o[t];r!=i&&e.push(r)}return e}}}(1.4*g,ya,pa);for(i=0,o=l.length;i<o;++i)m[S=d[i]]&&C.add(l[S]);return C},_a=function(e){var t,n,r,i=ba(e),o=e.coordinates,a=e.lines,s=e.rings;for(n=0,r=a.length;n<r;++n)for(var l=a[n],c=l[0],u=l[1];++c<u;)i.has(o[c])&&(t={0:c,1:l[1]},l[1]=c,l=l.next=t);for(n=0,r=s.length;n<r;++n)for(var d=s[n],f=d[0],h=f,p=d[1],m=i.has(o[f]);++h<p;)i.has(o[h])&&(m?(t={0:h,1:d[1]},d[1]=h,d=d.next=t):(function(e,t,n,r){We(e,t,n),We(e,t,t+r),We(e,t+r,n)}(o,f,p,p-h),o[p]=o[f],m=!0,h=f));return e},wa=function(e){function t(e){var t,n,r,i,o,a,s,l;if(r=h.get(t=c[e[0]]))for(s=0,l=r.length;s<l;++s)if(i=r[s],function(e,t){var n=e[0],r=t[0],i=e[1],o=t[1];if(n-i!=r-o)return!1;for(;n<=i;++n,++r)if(!pa(c[n],c[r]))return!1;return!0}(i,e))return e[0]=i[0],void(e[1]=i[1]);if(o=h.get(n=c[e[1]]))for(s=0,l=o.length;s<l;++s)if(a=o[s],function(e,t){var n=e[0],r=t[0],i=e[1],o=t[1];if(n-i!=r-o)return!1;for(;n<=i;++n,--o)if(!pa(c[n],c[o]))return!1;return!0}(a,e))return e[1]=a[0],void(e[0]=a[1]);r?r.push(e):h.set(t,[e]),o?o.push(e):h.set(n,[e]),p.push(e)}function n(e,t){var n=e[0],r=t[0],o=e[1]-n;if(o!==t[1]-r)return!1;for(var a=i(e),s=i(t),l=0;l<o;++l)if(!pa(c[n+(l+a)%o],c[r+(l+s)%o]))return!1;return!0}function r(e,t){var n=e[0],r=t[0],o=e[1],a=t[1],s=o-n;if(s!==a-r)return!1;for(var l=i(e),u=s-i(t),d=0;d<s;++d)if(!pa(c[n+(d+l)%s],c[a-(d+u)%s]))return!1;return!0}function i(e){for(var t=e[0],n=e[1],r=t,i=r,o=c[r];++r<n;){var a=c[r];(a[0]<o[0]||a[0]===o[0]&&a[1]<o[1])&&(i=r,o=a)}return i-t}var o,a,s,l,c=e.coordinates,u=e.lines,d=e.rings,f=u.length+d.length;for(delete e.lines,delete e.rings,s=0,l=u.length;s<l;++s)for(o=u[s];o=o.next;)++f;for(s=0,l=d.length;s<l;++s)for(a=d[s];a=a.next;)++f;var h=ha(2*f*1.4,ya,pa),p=e.arcs=[];for(s=0,l=u.length;s<l;++s){o=u[s];do{t(o)}while(o=o.next)}for(s=0,l=d.length;s<l;++s)if((a=d[s]).next)do{t(a)}while(a=a.next);else!function(e){var t,o,a,s,l;if(o=h.get(t=c[e[0]]))for(s=0,l=o.length;s<l;++s){if(a=o[s],n(a,e))return e[0]=a[0],void(e[1]=a[1]);if(r(a,e))return e[0]=a[1],void(e[1]=a[0])}if(o=h.get(t=c[e[0]+i(e)]))for(s=0,l=o.length;s<l;++s){if(a=o[s],n(a,e))return e[0]=a[0],void(e[1]=a[1]);if(r(a,e))return e[0]=a[1],void(e[1]=a[0])}o?o.push(e):h.set(t,[e]),p.push(e)}(a);return e},xa=function(e,t){function n(e){e&&u.hasOwnProperty(e.type)&&u[e.type](e)}function r(e){var t=[];do{var n=c.get(e);t.push(e[0]<e[1]?n:~n)}while(e=e.next);return t}function i(e){return e.map(r)}var o=function(e){function t(e){null!=e&&c.hasOwnProperty(e.type)&&c[e.type](e)}function n(e){var t=e[0],n=e[1];t<o&&(o=t),t>s&&(s=t),n<a&&(a=n),n>l&&(l=n)}function r(e){e.forEach(n)}function i(e){e.forEach(r)}var o=1/0,a=1/0,s=-1/0,l=-1/0,c={GeometryCollection:function(e){e.geometries.forEach(t)},Point:function(e){n(e.coordinates)},MultiPoint:function(e){e.coordinates.forEach(n)},LineString:function(e){r(e.arcs)},MultiLineString:function(e){e.arcs.forEach(r)},Polygon:function(e){e.arcs.forEach(r)},MultiPolygon:function(e){e.arcs.forEach(i)}};for(var u in e)t(e[u]);return s>=o&&l>=a?[o,a,s,l]:void 0}(e=function(e){var t,n={};for(t in e)n[t]=He(e[t]);return n}(e)),a=t>0&&o&&function(e,t,n){function r(e){return[Math.round((e[0]-c)*h),Math.round((e[1]-u)*p)]}function i(e,t){for(var n,r,i,o,a,s=-1,l=0,d=e.length,f=new Array(d);++s<d;)n=e[s],o=Math.round((n[0]-c)*h),a=Math.round((n[1]-u)*p),o===r&&a===i||(f[l++]=[r=o,i=a]);for(f.length=l;l<t;)l=f.push([f[0][0],f[0][1]]);return f}function o(e){return i(e,2)}function a(e){return i(e,4)}function s(e){return e.map(a)}function l(e){null!=e&&m.hasOwnProperty(e.type)&&m[e.type](e)}var c=t[0],u=t[1],d=t[2],f=t[3],h=d-c?(n-1)/(d-c):1,p=f-u?(n-1)/(f-u):1,m={GeometryCollection:function(e){e.geometries.forEach(l)},Point:function(e){e.coordinates=r(e.coordinates)},MultiPoint:function(e){e.coordinates=e.coordinates.map(r)},LineString:function(e){e.arcs=o(e.arcs)},MultiLineString:function(e){e.arcs=e.arcs.map(o)},Polygon:function(e){e.arcs=s(e.arcs)},MultiPolygon:function(e){e.arcs=e.arcs.map(s)}};for(var g in e)l(e[g]);return{scale:[1/h,1/p],translate:[c,u]}}(e,o,t),s=wa(_a(function(e){function t(e){e&&c.hasOwnProperty(e.type)&&c[e.type](e)}function n(e){for(var t=0,n=e.length;t<n;++t)l[++o]=e[t];var r={0:o-n+1,1:o};return a.push(r),r}function r(e){for(var t=0,n=e.length;t<n;++t)l[++o]=e[t];var r={0:o-n+1,1:o};return s.push(r),r}function i(e){return e.map(r)}var o=-1,a=[],s=[],l=[],c={GeometryCollection:function(e){e.geometries.forEach(t)},LineString:function(e){e.arcs=n(e.arcs)},MultiLineString:function(e){e.arcs=e.arcs.map(n)},Polygon:function(e){e.arcs=e.arcs.map(r)},MultiPolygon:function(e){e.arcs=e.arcs.map(i)}};for(var u in e)t(e[u]);return{type:"Topology",coordinates:l,lines:a,rings:s,objects:e}}(e))),l=s.coordinates,c=ha(1.4*s.arcs.length,Xe,Ye);e=s.objects,s.bbox=o,s.arcs=s.arcs.map((function(e,t){return c.set(e,t),l.slice(e[0],e[1]+1)})),delete s.coordinates,l=null;var u={GeometryCollection:function(e){e.geometries.forEach(n)},LineString:function(e){e.arcs=r(e.arcs)},MultiLineString:function(e){e.arcs=e.arcs.map(r)},Polygon:function(e){e.arcs=e.arcs.map(r)},MultiPolygon:function(e){e.arcs=e.arcs.map(i)}};for(var d in e)n(e[d]);return a&&(s.transform=a,s.arcs=function(e){for(var t=-1,n=e.length;++t<n;){for(var r,i,o=e[t],a=0,s=1,l=o.length,c=o[0],u=c[0],d=c[1];++a<l;)r=(c=o[a])[0],i=c[1],r===u&&i===d||(o[s++]=[r-u,i-d],u=r,d=i);1===s&&(o[s++]=[0,0]),o.length=s}return e}(s.arcs)),s},Sa=function(e){this.points=e.points||[],this.duration=e.duration||1e4,this.sharpness=e.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=e.stepLength||60,this.length=this.points.length,this.delay=0;for(var t=0;t<this.length;t++)this.points[t].z=this.points[t].z||0;for(t=0;t<this.length-1;t++){var n=this.points[t],r=this.points[t+1];this.centers.push({x:(n.x+r.x)/2,y:(n.y+r.y)/2,z:(n.z+r.z)/2})}for(this.controls.push([this.points[0],this.points[0]]),t=0;t<this.centers.length-1;t++){n=this.centers[t],r=this.centers[t+1];var i=this.points[t+1].x-(this.centers[t].x+this.centers[t+1].x)/2,o=this.points[t+1].y-(this.centers[t].y+this.centers[t+1].y)/2,a=this.points[t+1].z-(this.centers[t].y+this.centers[t+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[t+1].x+this.sharpness*(this.centers[t].x+i),y:(1-this.sharpness)*this.points[t+1].y+this.sharpness*(this.centers[t].y+o),z:(1-this.sharpness)*this.points[t+1].z+this.sharpness*(this.centers[t].z+a)},{x:(1-this.sharpness)*this.points[t+1].x+this.sharpness*(this.centers[t+1].x+i),y:(1-this.sharpness)*this.points[t+1].y+this.sharpness*(this.centers[t+1].y+o),z:(1-this.sharpness)*this.points[t+1].z+this.sharpness*(this.centers[t+1].z+a)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this};Sa.prototype.cacheSteps=function(e){var t=[],n=this.pos(0);t.push(0);for(var r=0;r<this.duration;r+=10){var i=this.pos(r);Math.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y)+(i.z-n.z)*(i.z-n.z))>e&&(t.push(r),n=i)}return t},Sa.prototype.vector=function(e){var t=this.pos(e+10),n=this.pos(e-10);return{angle:180*Math.atan2(t.y-n.y,t.x-n.x)/3.14,speed:Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y)+(n.z-t.z)*(n.z-t.z))}},Sa.prototype.pos=function(e){var t=e-this.delay;t<0&&(t=0),t>this.duration&&(t=this.duration-1);var n=t/this.duration;if(n>=1)return this.points[this.length-1];var r=Math.floor((this.points.length-1)*n);return function(e,t,n,r,i){var o=function(e){var t=e*e;return[t*e,3*t*(1-e),3*e*(1-e)*(1-e),(1-e)*(1-e)*(1-e)]}(e);return{x:i.x*o[0]+r.x*o[1]+n.x*o[2]+t.x*o[3],y:i.y*o[0]+r.y*o[1]+n.y*o[2]+t.y*o[3],z:i.z*o[0]+r.z*o[1]+n.z*o[2]+t.z*o[3]}}((this.length-1)*n-r,this.points[r],this.controls[r][1],this.controls[r+1][0],this.points[r+1])};var Ca=bt,Ea=bt;bt.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,a=Math.abs(Nt(e,0,o,n));if(i)for(var s=0,l=t.length;s<l;s++){var c=t[s]*n,u=s<l-1?t[s+1]*n:e.length;a-=Math.abs(Nt(e,c,u,n))}var d=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,h=r[s+1]*n,p=r[s+2]*n;d+=Math.abs((e[f]-e[p])*(e[h+1]-e[f+1])-(e[f]-e[h])*(e[p+1]-e[f+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},bt.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n},Ca.default=Ea,qt.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!Xt(e,t))return n;for(var i,o,a,s,l=[];t;){for(i=0,o=t.children.length;i<o;i++)a=t.children[i],Xt(e,s=t.leaf?r(a):a)&&(t.leaf?n.push(a):Kt(e,s)?this._all(a,n):l.push(a));t=l.pop()}return n},collides:function(e){var t=this.data,n=this.toBBox;if(!Xt(e,t))return!1;for(var r,i,o,a,s=[];t;){for(r=0,i=t.children.length;r<i;r++)if(o=t.children[r],a=t.leaf?n(o):o,Xt(e,a)){if(t.leaf||Kt(e,a))return!0;s.push(o)}t=s.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=Yt([]),this},remove:function(e,t){if(!e)return this;for(var n,r,i,o,a=this.data,s=this.toBBox(e),l=[],c=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),a.leaf&&-1!==(i=function(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}(e,a.children,t)))return a.children.splice(i,1),l.push(a),this._condense(l),this;o||a.leaf||!Kt(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:Vt,compareMinY:Wt,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},_build:function(e,t,n,r){var i,o=n-t+1,a=this._maxEntries;if(o<=a)return i=Yt(e.slice(t,n+1)),zt(i,this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,r-1))),(i=Yt([])).leaf=!1,i.height=r;var s,l,c,u,d=Math.ceil(o/a),f=d*Math.ceil(Math.sqrt(a));for(Jt(e,t,n,f,this.compareMinX),s=t;s<=n;s+=f)for(Jt(e,s,c=Math.min(s+f-1,n),d,this.compareMinY),l=s;l<=c;l+=d)u=Math.min(l+d-1,c),i.children.push(this._build(e,l,u,r-1));return zt(i,this.toBBox),i},_chooseSubtree:function(e,t,n,r){for(var i,o,a,s,l,c,u,d;r.push(t),!t.leaf&&r.length-1!==n;){for(u=d=1/0,i=0,o=t.children.length;i<o;i++)l=Ht(a=t.children[i]),(c=function(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}(e,a)-l)<d?(d=c,u=l<u?l:u,s=a):c===d&&l<u&&(u=l,s=a);t=s||t.children[0]}return t},_insert:function(e,t,n){var r=this.toBBox,i=n?e:r(e),o=[],a=this._chooseSubtree(i,this.data,t,o);for(a.children.push(e),Gt(a,i);t>=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),a=Yt(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,zt(n,this.toBBox),zt(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(e,t){this.data=Yt([e,t]),this.data.height=e.height+1,this.data.leaf=!1,zt(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,a,s,l,c,u;for(l=c=1/0,r=t;r<=n-t;r++)a=function(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}(i=Ut(e,0,r,this.toBBox),o=Ut(e,r,n,this.toBBox)),s=Ht(i)+Ht(o),a<l?(l=a,u=r,c=s<c?s:c):a===l&&s<c&&(c=s,u=r);return u},_chooseSplitAxis:function(e,t,n){var r=e.leaf?this.compareMinX:Vt,i=e.leaf?this.compareMinY:Wt;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},_allDistMargin:function(e,t,n,r){e.children.sort(r);var i,o,a=this.toBBox,s=Ut(e,0,t,a),l=Ut(e,n-t,n,a),c=$t(s)+$t(l);for(i=t;i<n-t;i++)o=e.children[i],Gt(s,e.leaf?a(o):o),c+=$t(s);for(i=n-t-1;i>=t;i--)o=e.children[i],Gt(l,e.leaf?a(o):o),c+=$t(l);return c},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)Gt(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():zt(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var ka=Object.freeze({toMercator:cn,toWgs84:un}),Oa=6378137,Ta=function(e,t,n){function r(e,n,r,i){var l,c,u=o[e][n],d=o[e][n+1],f=o[r][i],h=o[r][i+1],p=function(e,t,n,r){if(Rn(e,n)||Rn(e,r)||Rn(t,n)||Rn(r,n))return null;var i=e[0],o=e[1],a=t[0],s=t[1],l=n[0],c=n[1],u=r[0],d=r[1],f=(i-a)*(c-d)-(o-s)*(l-u);return 0===f?null:[((i*s-o*a)*(l-u)-(i-a)*(l*d-c*u))/f,((i*s-o*a)*(c-d)-(o-s)*(l*d-c*u))/f]}(u,d,f,h);if(null!==p&&(l=d[0]!==u[0]?(p[0]-u[0])/(d[0]-u[0]):(p[1]-u[1])/(d[1]-u[1]),c=h[0]!==f[0]?(p[0]-f[0])/(h[0]-f[0]):(p[1]-f[1])/(h[1]-f[1]),!(l>=1||l<=0||c>=1||c<=0))){var m=p,g=!s[m];g&&(s[m]=!0),t?a.push(t(p,e,n,u,d,l,r,i,f,h,c,g)):a.push(p)}}function i(e,t){var n,r,i,a,s=o[e][t],l=o[e][t+1];return s[0]<l[0]?(n=s[0],r=l[0]):(n=l[0],r=s[0]),s[1]<l[1]?(i=s[1],a=l[1]):(i=l[1],a=s[1]),{minX:n,minY:i,maxX:r,maxY:a,ring:e,edge:t}}if("Polygon"!==e.geometry.type)throw new Error("The input feature must be a Polygon");void 0===n&&(n=1);var o=e.geometry.coordinates,a=[],s={};if(n){for(var l=[],c=0;c<o.length;c++)for(var u=0;u<o[c].length-1;u++)l.push(i(c,u));var d=Ho();d.load(l)}for(var f=0;f<o.length;f++)for(var h=0;h<o[f].length-1;h++)if(n)d.search(i(f,h)).forEach((function(e){var t=e.ring,n=e.edge;r(f,h,t,n)}));else for(var p=0;p<o.length;p++)for(var m=0;m<o[p].length-1;m++)r(f,h,p,m);return t||(a={type:"Feature",geometry:{type:"MultiPoint",coordinates:a}}),a},Ia=function(e){function t(){for(var e=[],t=0;t<p.features.length;t++)-1==p.features[t].properties.parent&&e.push(t);if(e.length>1)for(t=0;t<e.length;t++){for(var n=-1,r=0;r<p.features.length;r++)e[t]!=r&&Ae(p.features[e[t]].geometry.coordinates[0][0],p.features[r],{ignoreBoundary:!0})&&yn(p.features[r])<1/0&&(n=r);p.features[e[t]].properties.parent=n}}function n(){for(var e=0;e<p.features.length;e++)if(-1==p.features[e].properties.parent){var t=p.features[e].properties.winding;p.features[e].properties.netWinding=t,r(e,t)}}function r(e,t){for(var n=0;n<p.features.length;n++)if(p.features[n].properties.parent==e){var i=t+p.features[n].properties.winding;p.features[n].properties.netWinding=i,r(n,i)}}if("Feature"!=e.type)throw new Error("The input must a geojson object of type Feature");if(void 0===e.geometry||null==e.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=e.geometry.type)throw new Error("The input must be a geojson Polygon");for(var i=e.geometry.coordinates.length,a=[],s=0;s<i;s++){var l=e.geometry.coordinates[s];Mn(l[0],l[l.length-1])||l.push(l[0]),a.push.apply(a,l.slice(0,l.length-1))}if(!function(e){for(var t={},n=1,r=0,i=e.length;r<i;++r){if(t.hasOwnProperty(e[r])){n=0;break}t[e[r]]=1}return n}(a))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var u=a.length,d=Ta(e,(function(e,t,n,r,i,o,a,s,l,c,u,d){return[e,t,n,r,i,o,a,s,l,c,u,d]})),f=d.length;if(0==f){var h=[];for(s=0;s<i;s++)h.push(o([e.geometry.coordinates[s]],{parent:-1,winding:function(e){for(var t=0,n=0;n<e.length-1;n++)e[n][0]<e[t][0]&&(t=n);if(Pn([e[(t-1).modulo(e.length-1)],e[t],e[(t+1).modulo(e.length-1)]],!0))var r=1;else r=-1;return r}(e.geometry.coordinates[s])}));var p=c(h);return t(),n(),p}var m=[],g=[];for(s=0;s<i;s++){m.push([]);for(var v=0;v<e.geometry.coordinates[s].length-1;v++)m[s].push([new Aa(e.geometry.coordinates[s][(v+1).modulo(e.geometry.coordinates[s].length-1)],1,[s,v],[s,(v+1).modulo(e.geometry.coordinates[s].length-1)],void 0)]),g.push(new Ra(e.geometry.coordinates[s][v],[s,(v-1).modulo(e.geometry.coordinates[s].length-1)],[s,v],void 0,void 0,!1,!0))}for(s=0;s<f;s++)m[d[s][1]][d[s][2]].push(new Aa(d[s][0],d[s][5],[d[s][1],d[s][2]],[d[s][6],d[s][7]],void 0)),d[s][11]&&g.push(new Ra(d[s][0],[d[s][1],d[s][2]],[d[s][6],d[s][7]],void 0,void 0,!0,!0));var y=g.length;for(s=0;s<m.length;s++)for(v=0;v<m[s].length;v++)m[s][v].sort((function(e,t){return e.param<t.param?-1:1}));var b=[];for(s=0;s<y;s++)b.push({minX:g[s].coord[0],minY:g[s].coord[1],maxX:g[s].coord[0],maxY:g[s].coord[1],index:s});var _=Ho();for(_.load(b),s=0;s<m.length;s++)for(v=0;v<m[s].length;v++)for(var w=0;w<m[s][v].length;w++){S=w==m[s][v].length-1?m[s][(v+1).modulo(e.geometry.coordinates[s].length-1)][0].coord:m[s][v][w+1].coord;var x=_.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0];m[s][v][w].nxtIsectAlongEdgeIn=x.index}for(s=0;s<m.length;s++)for(v=0;v<m[s].length;v++)for(w=0;w<m[s][v].length;w++){var S=m[s][v][w].coord,C=(x=_.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0]).index;C<u?g[C].nxtIsectAlongRingAndEdge2=m[s][v][w].nxtIsectAlongEdgeIn:Mn(g[C].ringAndEdge1,m[s][v][w].ringAndEdgeIn)?g[C].nxtIsectAlongRingAndEdge1=m[s][v][w].nxtIsectAlongEdgeIn:g[C].nxtIsectAlongRingAndEdge2=m[s][v][w].nxtIsectAlongEdgeIn}var E=[];for(s=0,v=0;v<i;v++){var k=s;for(w=0;w<e.geometry.coordinates[v].length-1;w++)g[s].coord[0]<g[k].coord[0]&&(k=s),s++;var O=g[k].nxtIsectAlongRingAndEdge2;for(w=0;w<g.length;w++)if(g[w].nxtIsectAlongRingAndEdge1==k||g[w].nxtIsectAlongRingAndEdge2==k){var T=w;break}var I=Pn([g[T].coord,g[k].coord,g[O].coord],!0)?1:-1;E.push({isect:k,parent:-1,winding:I})}for(E.sort((function(e,t){return g[e.isect].coord>g[t.isect].coord?-1:1})),h=[];E.length>0;){var A=E.pop(),R=A.isect,P=A.parent,M=A.winding,N=h.length,L=[g[R].coord],D=R;if(g[R].ringAndEdge1Walkable)var j=g[R].ringAndEdge1,F=g[R].nxtIsectAlongRingAndEdge1;else j=g[R].ringAndEdge2,F=g[R].nxtIsectAlongRingAndEdge2;for(;!Mn(g[R].coord,g[F].coord);){L.push(g[F].coord);var B=void 0;for(s=0;s<E.length;s++)if(E[s].isect==F){B=s;break}if(void 0!=B&&E.splice(B,1),Mn(j,g[F].ringAndEdge1)){if(j=g[F].ringAndEdge2,g[F].ringAndEdge2Walkable=!1,g[F].ringAndEdge1Walkable){var q={isect:F};Pn([g[D].coord,g[F].coord,g[g[F].nxtIsectAlongRingAndEdge2].coord],1==M)?(q.parent=P,q.winding=-M):(q.parent=N,q.winding=M),E.push(q)}D=F,F=g[F].nxtIsectAlongRingAndEdge2}else j=g[F].ringAndEdge1,g[F].ringAndEdge1Walkable=!1,g[F].ringAndEdge2Walkable&&(q={isect:F},Pn([g[D].coord,g[F].coord,g[g[F].nxtIsectAlongRingAndEdge1].coord],1==M)?(q.parent=P,q.winding=-M):(q.parent=N,q.winding=M),E.push(q)),D=F,F=g[F].nxtIsectAlongRingAndEdge1}L.push(g[F].coord),h.push(o([L],{index:N,parent:P,winding:M,netWinding:void 0}))}return p=c(h),t(),n(),p},Aa=function(e,t,n,r,i){this.coord=e,this.param=t,this.ringAndEdgeIn=n,this.ringAndEdgeOut=r,this.nxtIsectAlongEdgeIn=i},Ra=function(e,t,n,r,i,o,a){this.coord=e,this.ringAndEdge1=t,this.ringAndEdge2=n,this.nxtIsectAlongRingAndEdge1=r,this.nxtIsectAlongRingAndEdge2=i,this.ringAndEdge1Walkable=o,this.ringAndEdge2Walkable=a};Number.prototype.modulo=function(e){return(this%e+e)%e};var Pa=Math.PI/180,Ma=180/Math.PI,Na=function(e,t){this.lon=e,this.lat=t,this.x=Pa*e,this.y=Pa*t};Na.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},Na.prototype.antipode=function(){var e=-1*this.lat,t=this.lon<0?180+this.lon:-1*(180-this.lon);return new Na(t,e)};var La=function(){this.coords=[],this.length=0};La.prototype.move_to=function(e){this.length++,this.coords.push(e)};var Da=function(e){this.properties=e||{},this.geometries=[]};Da.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var e=[],t=0;t<this.geometries.length;t++)e.push(this.geometries[t].coords);return{geometry:{type:"MultiLineString",coordinates:e},type:"Feature",properties:this.properties}},Da.prototype.wkt=function(){for(var e="",t="LINESTRING(",n=function(e){t+=e[0]+" "+e[1]+","},r=0;r<this.geometries.length;r++){if(0===this.geometries[r].coords.length)return"LINESTRING(empty)";this.geometries[r].coords.forEach(n),e+=t.substring(0,t.length-1)+")"}return e};var ja=function(e,t,n){if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new Na(e.x,e.y),this.end=new Na(t.x,t.y),this.properties=n||{};var r=this.start.x-this.end.x,i=this.start.y-this.end.y,o=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(r/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+e.view()+" and "+t.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+e+" and "+t)};ja.prototype.interpolate=function(e){var t=Math.sin((1-e)*this.g)/Math.sin(this.g),n=Math.sin(e*this.g)/Math.sin(this.g),r=t*Math.cos(this.start.y)*Math.cos(this.start.x)+n*Math.cos(this.end.y)*Math.cos(this.end.x),i=t*Math.cos(this.start.y)*Math.sin(this.start.x)+n*Math.cos(this.end.y)*Math.sin(this.end.x),o=t*Math.sin(this.start.y)+n*Math.sin(this.end.y),a=Ma*Math.atan2(o,Math.sqrt(Math.pow(r,2)+Math.pow(i,2)));return[Ma*Math.atan2(i,r),a]},ja.prototype.Arc=function(e,t){var n=[];if(!e||e<=2)n.push([this.start.lon,this.start.lat]),n.push([this.end.lon,this.end.lat]);else for(var r=1/(e-1),i=0;i<e;++i){var o=r*i,a=this.interpolate(o);n.push(a)}for(var s=!1,l=0,c=t&&t.offset?t.offset:10,u=180-c,d=-180+c,f=360-c,h=1;h<n.length;++h){var p=n[h-1][0],m=n[h][0],g=Math.abs(m-p);g>f&&(m>u&&p<d||p>u&&m<d)?s=!0:g>l&&(l=g)}var v=[];if(s&&l<c){var y=[];v.push(y);for(var b=0;b<n.length;++b){var _=parseFloat(n[b][0]);if(b>0&&Math.abs(_-n[b-1][0])>f){var w=parseFloat(n[b-1][0]),x=parseFloat(n[b-1][1]),S=parseFloat(n[b][0]),C=parseFloat(n[b][1]);if(w>-180&&w<d&&180===S&&b+1<n.length&&n[b-1][0]>-180&&n[b-1][0]<d){y.push([-180,n[b][1]]),b++,y.push([n[b][0],n[b][1]]);continue}if(w>u&&w<180&&-180===S&&b+1<n.length&&n[b-1][0]>u&&n[b-1][0]<180){y.push([180,n[b][1]]),b++,y.push([n[b][0],n[b][1]]);continue}if(w<d&&S>u){var E=w;w=S,S=E;var k=x;x=C,C=k}if(w>u&&S<d&&(S+=360),w<=180&&S>=180&&w<S){var O=(180-w)/(S-w),T=O*C+(1-O)*x;y.push([n[b-1][0]>u?180:-180,T]),(y=[]).push([n[b-1][0]>u?-180:180,T]),v.push(y)}else y=[],v.push(y);y.push([_,n[b][1]])}else y.push([n[b][0],n[b][1]])}}else{var I=[];v.push(I);for(var A=0;A<n.length;++A)I.push([n[A][0],n[A][1]])}for(var R=new Da(this.properties),P=0;P<v.length;++P){var M=new La;R.geometries.push(M);for(var N=v[P],L=0;L<N.length;++L)M.move_to(N[L])}return R};var Fa=Wn;Wn.polyline=Wn,Wn.polygon=function(e,t){var n,r,i,o,a,s,l;for(r=1;r<=8;r*=2){for(n=[],o=!($n(i=e[e.length-1],t)&r),a=0;a<e.length;a++)(l=!($n(s=e[a],t)&r))!==o&&n.push(Hn(i,s,r,t)),l&&n.push(s),i=s,o=l;if(!(e=n).length)break}return n};var Ba=Array.prototype.slice,qa={successCallback:null,verbose:!1,polygons:!1},za={},Ua=64,Ga=16,Va=4,Wa=1,Ha=[],$a=[],Ka=[],Xa=[],Ya=[],Ja=[],Qa=[],Za=[],es=[],ts=[],ns=[],rs=[],is=[],os=[],as=[],ss=[],ls=[],cs=[],us=[],ds=[],fs=[],hs=[],ps=[],ms=[];Qa[85]=ts[85]=-1,Za[85]=ns[85]=0,es[85]=rs[85]=1,us[85]=hs[85]=1,ds[85]=ps[85]=0,fs[85]=ms[85]=1,Ha[85]=Xa[85]=0,$a[85]=Ya[85]=-1,Ka[85]=as[85]=0,ss[85]=is[85]=0,ls[85]=os[85]=1,Ja[85]=cs[85]=1,hs[1]=hs[169]=0,ps[1]=ps[169]=-1,ms[1]=ms[169]=0,is[1]=is[169]=-1,os[1]=os[169]=0,as[1]=as[169]=0,ts[4]=ts[166]=0,ns[4]=ns[166]=-1,rs[4]=rs[166]=1,ss[4]=ss[166]=1,ls[4]=ls[166]=0,cs[4]=cs[166]=0,Qa[16]=Qa[154]=0,Za[16]=Za[154]=1,es[16]=es[154]=1,Xa[16]=Xa[154]=1,Ya[16]=Ya[154]=0,Ja[16]=Ja[154]=1,us[64]=us[106]=0,ds[64]=ds[106]=1,fs[64]=fs[106]=0,Ha[64]=Ha[106]=-1,$a[64]=$a[106]=0,Ka[64]=Ka[106]=1,us[2]=us[168]=0,ds[2]=ds[168]=-1,fs[2]=fs[168]=1,hs[2]=hs[168]=0,ps[2]=ps[168]=-1,ms[2]=ms[168]=0,is[2]=is[168]=-1,os[2]=os[168]=0,as[2]=as[168]=0,ss[2]=ss[168]=-1,ls[2]=ls[168]=0,cs[2]=cs[168]=1,Qa[8]=Qa[162]=0,Za[8]=Za[162]=-1,es[8]=es[162]=0,ts[8]=ts[162]=0,ns[8]=ns[162]=-1,rs[8]=rs[162]=1,is[8]=is[162]=1,os[8]=os[162]=0,as[8]=as[162]=1,ss[8]=ss[162]=1,ls[8]=ls[162]=0,cs[8]=cs[162]=0,Qa[32]=Qa[138]=0,Za[32]=Za[138]=1,es[32]=es[138]=1,ts[32]=ts[138]=0,ns[32]=ns[138]=1,rs[32]=rs[138]=0,Ha[32]=Ha[138]=1,$a[32]=$a[138]=0,Ka[32]=Ka[138]=0,Xa[32]=Xa[138]=1,Ya[32]=Ya[138]=0,Ja[32]=Ja[138]=1,hs[128]=hs[42]=0,ps[128]=ps[42]=1,ms[128]=ms[42]=1,us[128]=us[42]=0,ds[128]=ds[42]=1,fs[128]=fs[42]=0,Ha[128]=Ha[42]=-1,$a[128]=$a[42]=0,Ka[128]=Ka[42]=1,Xa[128]=Xa[42]=-1,Ya[128]=Ya[42]=0,Ja[128]=Ja[42]=0,ts[5]=ts[165]=-1,ns[5]=ns[165]=0,rs[5]=rs[165]=0,hs[5]=hs[165]=1,ps[5]=ps[165]=0,ms[5]=ms[165]=0,ss[20]=ss[150]=0,ls[20]=ls[150]=1,cs[20]=cs[150]=1,Xa[20]=Xa[150]=0,Ya[20]=Ya[150]=-1,Ja[20]=Ja[150]=1,Qa[80]=Qa[90]=-1,Za[80]=Za[90]=0,es[80]=es[90]=1,us[80]=us[90]=1,ds[80]=ds[90]=0,fs[80]=fs[90]=1,is[65]=is[105]=0,os[65]=os[105]=1,as[65]=as[105]=0,Ha[65]=Ha[105]=0,$a[65]=$a[105]=-1,Ka[65]=Ka[105]=0,Qa[160]=Qa[10]=-1,Za[160]=Za[10]=0,es[160]=es[10]=1,ts[160]=ts[10]=-1,ns[160]=ns[10]=0,rs[160]=rs[10]=0,hs[160]=hs[10]=1,ps[160]=ps[10]=0,ms[160]=ms[10]=0,us[160]=us[10]=1,ds[160]=ds[10]=0,fs[160]=fs[10]=1,ss[130]=ss[40]=0,ls[130]=ls[40]=1,cs[130]=cs[40]=1,is[130]=is[40]=0,os[130]=os[40]=1,as[130]=as[40]=0,Ha[130]=Ha[40]=0,$a[130]=$a[40]=-1,Ka[130]=Ka[40]=0,Xa[130]=Xa[40]=0,Ya[130]=Ya[40]=-1,Ja[130]=Ja[40]=1,ts[37]=ts[133]=0,ns[37]=ns[133]=1,rs[37]=rs[133]=1,hs[37]=hs[133]=0,ps[37]=ps[133]=1,ms[37]=ms[133]=0,Ha[37]=Ha[133]=-1,$a[37]=$a[133]=0,Ka[37]=Ka[133]=0,Xa[37]=Xa[133]=1,Ya[37]=Ya[133]=0,Ja[37]=Ja[133]=0,ss[148]=ss[22]=-1,ls[148]=ls[22]=0,cs[148]=cs[22]=0,hs[148]=hs[22]=0,ps[148]=ps[22]=-1,ms[148]=ms[22]=1,us[148]=us[22]=0,ds[148]=ds[22]=1,fs[148]=fs[22]=1,Xa[148]=Xa[22]=-1,Ya[148]=Ya[22]=0,Ja[148]=Ja[22]=1,Qa[82]=Qa[88]=0,Za[82]=Za[88]=-1,es[82]=es[88]=1,ss[82]=ss[88]=1,ls[82]=ls[88]=0,cs[82]=cs[88]=1,is[82]=is[88]=-1,os[82]=os[88]=0,as[82]=as[88]=1,us[82]=us[88]=0,ds[82]=ds[88]=-1,fs[82]=fs[88]=0,Qa[73]=Qa[97]=0,Za[73]=Za[97]=1,es[73]=es[97]=0,ts[73]=ts[97]=0,ns[73]=ns[97]=-1,rs[73]=rs[97]=0,is[73]=is[97]=1,os[73]=os[97]=0,as[73]=as[97]=0,Ha[73]=Ha[97]=1,$a[73]=$a[97]=0,Ka[73]=Ka[97]=1,Qa[145]=Qa[25]=0,Za[145]=Za[25]=-1,es[145]=es[25]=0,is[145]=is[25]=1,os[145]=os[25]=0,as[145]=as[25]=1,hs[145]=hs[25]=0,ps[145]=ps[25]=1,ms[145]=ms[25]=1,Xa[145]=Xa[25]=-1,Ya[145]=Ya[25]=0,Ja[145]=Ja[25]=0,ts[70]=ts[100]=0,ns[70]=ns[100]=1,rs[70]=rs[100]=0,ss[70]=ss[100]=-1,ls[70]=ls[100]=0,cs[70]=cs[100]=1,us[70]=us[100]=0,ds[70]=ds[100]=-1,fs[70]=fs[100]=1,Ha[70]=Ha[100]=1,$a[70]=$a[100]=0,Ka[70]=Ka[100]=0,ts[101]=ts[69]=0,ns[101]=ns[69]=1,rs[101]=rs[69]=0,Ha[101]=Ha[69]=1,$a[101]=$a[69]=0,Ka[101]=Ka[69]=0,hs[149]=hs[21]=0,ps[149]=ps[21]=1,ms[149]=ms[21]=1,Xa[149]=Xa[21]=-1,Ya[149]=Ya[21]=0,Ja[149]=Ja[21]=0,ss[86]=ss[84]=-1,ls[86]=ls[84]=0,cs[86]=cs[84]=1,us[86]=us[84]=0,ds[86]=ds[84]=-1,fs[86]=fs[84]=1,Qa[89]=Qa[81]=0,Za[89]=Za[81]=-1,es[89]=es[81]=0,is[89]=is[81]=1,os[89]=os[81]=0,as[89]=as[81]=1,Qa[96]=Qa[74]=0,Za[96]=Za[74]=1,es[96]=es[74]=0,ts[96]=ts[74]=-1,ns[96]=ns[74]=0,rs[96]=rs[74]=1,us[96]=us[74]=1,ds[96]=ds[74]=0,fs[96]=fs[74]=0,Ha[96]=Ha[74]=1,$a[96]=$a[74]=0,Ka[96]=Ka[74]=1,Qa[24]=Qa[146]=0,Za[24]=Za[146]=-1,es[24]=es[146]=1,ss[24]=ss[146]=1,ls[24]=ls[146]=0,cs[24]=cs[146]=1,is[24]=is[146]=0,os[24]=os[146]=1,as[24]=as[146]=1,Xa[24]=Xa[146]=0,Ya[24]=Ya[146]=-1,Ja[24]=Ja[146]=0,ts[6]=ts[164]=-1,ns[6]=ns[164]=0,rs[6]=rs[164]=1,ss[6]=ss[164]=-1,ls[6]=ls[164]=0,cs[6]=cs[164]=0,hs[6]=hs[164]=0,ps[6]=ps[164]=-1,ms[6]=ms[164]=1,us[6]=us[164]=1,ds[6]=ds[164]=0,fs[6]=fs[164]=0,is[129]=is[41]=0,os[129]=os[41]=1,as[129]=as[41]=1,hs[129]=hs[41]=0,ps[129]=ps[41]=1,ms[129]=ms[41]=0,Ha[129]=Ha[41]=-1,$a[129]=$a[41]=0,Ka[129]=Ka[41]=0,Xa[129]=Xa[41]=0,Ya[129]=Ya[41]=-1,Ja[129]=Ja[41]=0,ss[66]=ss[104]=0,ls[66]=ls[104]=1,cs[66]=cs[104]=0,is[66]=is[104]=-1,os[66]=os[104]=0,as[66]=as[104]=1,us[66]=us[104]=0,ds[66]=ds[104]=-1,fs[66]=fs[104]=0,Ha[66]=Ha[104]=0,$a[66]=$a[104]=-1,Ka[66]=Ka[104]=1,Qa[144]=Qa[26]=-1,Za[144]=Za[26]=0,es[144]=es[26]=0,hs[144]=hs[26]=1,ps[144]=ps[26]=0,ms[144]=ms[26]=1,us[144]=us[26]=0,ds[144]=ds[26]=1,fs[144]=fs[26]=1,Xa[144]=Xa[26]=-1,Ya[144]=Ya[26]=0,Ja[144]=Ja[26]=1,ts[36]=ts[134]=0,ns[36]=ns[134]=1,rs[36]=rs[134]=1,ss[36]=ss[134]=0,ls[36]=ls[134]=1,cs[36]=cs[134]=0,Ha[36]=Ha[134]=0,$a[36]=$a[134]=-1,Ka[36]=Ka[134]=1,Xa[36]=Xa[134]=1,Ya[36]=Ya[134]=0,Ja[36]=Ja[134]=0,Qa[9]=Qa[161]=-1,Za[9]=Za[161]=0,es[9]=es[161]=0,ts[9]=ts[161]=0,ns[9]=ns[161]=-1,rs[9]=rs[161]=0,is[9]=is[161]=1,os[9]=os[161]=0,as[9]=as[161]=0,hs[9]=hs[161]=1,ps[9]=ps[161]=0,ms[9]=ms[161]=1,Qa[136]=0,Za[136]=1,es[136]=1,ts[136]=0,ns[136]=1,rs[136]=0,ss[136]=-1,ls[136]=0,cs[136]=1,is[136]=-1,os[136]=0,as[136]=0,hs[136]=0,ps[136]=-1,ms[136]=0,us[136]=0,ds[136]=-1,fs[136]=1,Ha[136]=1,$a[136]=0,Ka[136]=0,Xa[136]=1,Ya[136]=0,Ja[136]=1,Qa[34]=0,Za[34]=-1,es[34]=0,ts[34]=0,ns[34]=-1,rs[34]=1,ss[34]=1,ls[34]=0,cs[34]=0,is[34]=1,os[34]=0,as[34]=1,hs[34]=0,ps[34]=1,ms[34]=1,us[34]=0,ds[34]=1,fs[34]=0,Ha[34]=-1,$a[34]=0,Ka[34]=1,Xa[34]=-1,Ya[34]=0,Ja[34]=0,Qa[35]=0,Za[35]=1,es[35]=1,ts[35]=0,ns[35]=-1,rs[35]=1,ss[35]=1,ls[35]=0,cs[35]=0,is[35]=-1,os[35]=0,as[35]=0,hs[35]=0,ps[35]=-1,ms[35]=0,us[35]=0,ds[35]=1,fs[35]=0,Ha[35]=-1,$a[35]=0,Ka[35]=1,Xa[35]=1,Ya[35]=0,Ja[35]=1,Qa[153]=0,Za[153]=1,es[153]=1,is[153]=-1,os[153]=0,as[153]=0,hs[153]=0,ps[153]=-1,ms[153]=0,Xa[153]=1,Ya[153]=0,Ja[153]=1,ts[102]=0,ns[102]=-1,rs[102]=1,ss[102]=1,ls[102]=0,cs[102]=0,us[102]=0,ds[102]=1,fs[102]=0,Ha[102]=-1,$a[102]=0,Ka[102]=1,Qa[155]=0,Za[155]=-1,es[155]=0,is[155]=1,os[155]=0,as[155]=1,hs[155]=0,ps[155]=1,ms[155]=1,Xa[155]=-1,Ya[155]=0,Ja[155]=0,ts[103]=0,ns[103]=1,rs[103]=0,ss[103]=-1,ls[103]=0,cs[103]=1,us[103]=0,ds[103]=-1,fs[103]=1,Ha[103]=1,$a[103]=0,Ka[103]=0,Qa[152]=0,Za[152]=1,es[152]=1,ss[152]=-1,ls[152]=0,cs[152]=1,is[152]=-1,os[152]=0,as[152]=0,hs[152]=0,ps[152]=-1,ms[152]=0,us[152]=0,ds[152]=-1,fs[152]=1,Xa[152]=1,Ya[152]=0,Ja[152]=1,Qa[156]=0,Za[156]=-1,es[156]=1,ss[156]=1,ls[156]=0,cs[156]=1,is[156]=-1,os[156]=0,as[156]=0,hs[156]=0,ps[156]=-1,ms[156]=0,us[156]=0,ds[156]=1,fs[156]=1,Xa[156]=-1,Ya[156]=0,Ja[156]=1,Qa[137]=0,Za[137]=1,es[137]=1,ts[137]=0,ns[137]=1,rs[137]=0,is[137]=-1,os[137]=0,as[137]=0,hs[137]=0,ps[137]=-1,ms[137]=0,Ha[137]=1,$a[137]=0,Ka[137]=0,Xa[137]=1,Ya[137]=0,Ja[137]=1,Qa[139]=0,Za[139]=1,es[139]=1,ts[139]=0,ns[139]=-1,rs[139]=0,is[139]=1,os[139]=0,as[139]=0,hs[139]=0,ps[139]=1,ms[139]=0,Ha[139]=-1,$a[139]=0,Ka[139]=0,Xa[139]=1,Ya[139]=0,Ja[139]=1,Qa[98]=0,Za[98]=-1,es[98]=0,ts[98]=0,ns[98]=-1,rs[98]=1,ss[98]=1,ls[98]=0,cs[98]=0,is[98]=1,os[98]=0,as[98]=1,us[98]=0,ds[98]=1,fs[98]=0,Ha[98]=-1,$a[98]=0,Ka[98]=1,Qa[99]=0,Za[99]=1,es[99]=0,ts[99]=0,ns[99]=-1,rs[99]=1,ss[99]=1,ls[99]=0,cs[99]=0,is[99]=-1,os[99]=0,as[99]=1,us[99]=0,ds[99]=-1,fs[99]=0,Ha[99]=1,$a[99]=0,Ka[99]=1,ts[38]=0,ns[38]=-1,rs[38]=1,ss[38]=1,ls[38]=0,cs[38]=0,hs[38]=0,ps[38]=1,ms[38]=1,us[38]=0,ds[38]=1,fs[38]=0,Ha[38]=-1,$a[38]=0,Ka[38]=1,Xa[38]=-1,Ya[38]=0,Ja[38]=0,ts[39]=0,ns[39]=1,rs[39]=1,ss[39]=-1,ls[39]=0,cs[39]=0,hs[39]=0,ps[39]=-1,ms[39]=1,us[39]=0,ds[39]=1,fs[39]=0,Ha[39]=-1,$a[39]=0,Ka[39]=1,Xa[39]=1,Ya[39]=0,Ja[39]=0;var gs=function(e){return[[e.bottomleft,0],[0,0],[0,e.leftbottom]]},vs=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0]]},ys=function(e){return[[e.topright,1],[1,1],[1,e.righttop]]},bs=function(e){return[[0,e.lefttop],[0,1],[e.topleft,1]]},_s=function(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop]]},ws=function(e){return[[e.bottomright,0],[e.bottomleft,0],[1,e.righttop],[1,e.rightbottom]]},xs=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.topleft,1],[e.topright,1]]},Ss=function(e){return[[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]},Cs=[],Es=[],ks=[],Os=[],Ts=[],Is=[],As=[],Rs=[];Os[1]=Ts[1]=18,Os[169]=Ts[169]=18,ks[4]=Es[4]=12,ks[166]=Es[166]=12,Cs[16]=Rs[16]=4,Cs[154]=Rs[154]=4,Is[64]=As[64]=22,Is[106]=As[106]=22,ks[2]=Is[2]=17,Os[2]=Ts[2]=18,ks[168]=Is[168]=17,Os[168]=Ts[168]=18,Cs[8]=Os[8]=9,Es[8]=ks[8]=12,Cs[162]=Os[162]=9,Es[162]=ks[162]=12,Cs[32]=Rs[32]=4,Es[32]=As[32]=1,Cs[138]=Rs[138]=4,Es[138]=As[138]=1,Ts[128]=Rs[128]=21,Is[128]=As[128]=22,Ts[42]=Rs[42]=21,Is[42]=As[42]=22,Es[5]=Ts[5]=14,Es[165]=Ts[165]=14,ks[20]=Rs[20]=6,ks[150]=Rs[150]=6,Cs[80]=Is[80]=11,Cs[90]=Is[90]=11,Os[65]=As[65]=3,Os[105]=As[105]=3,Cs[160]=Is[160]=11,Es[160]=Ts[160]=14,Cs[10]=Is[10]=11,Es[10]=Ts[10]=14,ks[130]=Rs[130]=6,Os[130]=As[130]=3,ks[40]=Rs[40]=6,Os[40]=As[40]=3,Es[101]=As[101]=1,Es[69]=As[69]=1,Ts[149]=Rs[149]=21,Ts[21]=Rs[21]=21,ks[86]=Is[86]=17,ks[84]=Is[84]=17,Cs[89]=Os[89]=9,Cs[81]=Os[81]=9,Cs[96]=As[96]=0,Es[96]=Is[96]=15,Cs[74]=As[74]=0,Es[74]=Is[74]=15,Cs[24]=ks[24]=8,Os[24]=Rs[24]=7,Cs[146]=ks[146]=8,Os[146]=Rs[146]=7,Es[6]=Is[6]=15,ks[6]=Ts[6]=16,Es[164]=Is[164]=15,ks[164]=Ts[164]=16,Os[129]=Rs[129]=7,Ts[129]=As[129]=20,Os[41]=Rs[41]=7,Ts[41]=As[41]=20,ks[66]=As[66]=2,Os[66]=Is[66]=19,ks[104]=As[104]=2,Os[104]=Is[104]=19,Cs[144]=Ts[144]=10,Is[144]=Rs[144]=23,Cs[26]=Ts[26]=10,Is[26]=Rs[26]=23,Es[36]=Rs[36]=5,ks[36]=As[36]=2,Es[134]=Rs[134]=5,ks[134]=As[134]=2,Cs[9]=Ts[9]=10,Es[9]=Os[9]=13,Cs[161]=Ts[161]=10,Es[161]=Os[161]=13,Es[37]=Rs[37]=5,Ts[37]=As[37]=20,Es[133]=Rs[133]=5,Ts[133]=As[133]=20,ks[148]=Ts[148]=16,Is[148]=Rs[148]=23,ks[22]=Ts[22]=16,Is[22]=Rs[22]=23,Cs[82]=ks[82]=8,Os[82]=Is[82]=19,Cs[88]=ks[88]=8,Os[88]=Is[88]=19,Cs[73]=As[73]=0,Es[73]=Os[73]=13,Cs[97]=As[97]=0,Es[97]=Os[97]=13,Cs[145]=Os[145]=9,Ts[145]=Rs[145]=21,Cs[25]=Os[25]=9,Ts[25]=Rs[25]=21,Es[70]=As[70]=1,ks[70]=Is[70]=17,Es[100]=As[100]=1,ks[100]=Is[100]=17,Cs[34]=Os[34]=9,Es[34]=ks[34]=12,Ts[34]=Rs[34]=21,Is[34]=As[34]=22,Cs[136]=Rs[136]=4,Es[136]=As[136]=1,ks[136]=Is[136]=17,Os[136]=Ts[136]=18,Cs[35]=Rs[35]=4,Es[35]=ks[35]=12,Os[35]=Ts[35]=18,Is[35]=As[35]=22,Cs[153]=Rs[153]=4,Os[153]=Ts[153]=18,Es[102]=ks[102]=12,Is[102]=As[102]=22,Cs[155]=Os[155]=9,Ts[155]=Rs[155]=23,Es[103]=As[103]=1,ks[103]=Is[103]=17,Cs[152]=Rs[152]=4,ks[152]=Is[152]=17,Os[152]=Ts[152]=18,Cs[156]=ks[156]=8,Os[156]=Ts[156]=18,Is[156]=Rs[156]=23,Cs[137]=Rs[137]=4,Es[137]=As[137]=1,Os[137]=Ts[137]=18,Cs[139]=Rs[139]=4,Es[139]=Os[139]=13,Ts[139]=As[139]=20,Cs[98]=Os[98]=9,Es[98]=ks[98]=12,Is[98]=As[98]=22,Cs[99]=As[99]=0,Es[99]=ks[99]=12,Os[99]=Is[99]=19,Es[38]=ks[38]=12,Ts[38]=Rs[38]=21,Is[38]=As[38]=22,Es[39]=Rs[39]=5,ks[39]=Ts[39]=16,Is[39]=As[39]=22;var Ps=[];Ps[1]=Ps[169]=gs,Ps[4]=Ps[166]=vs,Ps[16]=Ps[154]=ys,Ps[64]=Ps[106]=bs,Ps[168]=Ps[2]=_s,Ps[162]=Ps[8]=ws,Ps[138]=Ps[32]=xs,Ps[42]=Ps[128]=Ss,Ps[5]=Ps[165]=function(e){return[[0,0],[0,e.leftbottom],[1,e.rightbottom],[1,0]]},Ps[20]=Ps[150]=function(e){return[[1,0],[e.bottomright,0],[e.topright,1],[1,1]]},Ps[80]=Ps[90]=function(e){return[[1,1],[1,e.righttop],[0,e.lefttop],[0,1]]},Ps[65]=Ps[105]=function(e){return[[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},Ps[160]=Ps[10]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.leftbottom],[0,e.lefttop]]},Ps[130]=Ps[40]=function(e){return[[e.topleft,1],[e.topright,1],[e.bottomright,0],[e.bottomleft,0]]},Ps[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},Ps[101]=Ps[69]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,1],[e.topleft,1]]},Ps[149]=Ps[21]=function(e){return[[e.topright,1],[1,1],[1,0],[0,0],[0,e.leftbottom]]},Ps[86]=Ps[84]=function(e){return[[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[1,1]]},Ps[89]=Ps[81]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,1]]},Ps[96]=Ps[74]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.lefttop],[0,1],[e.topleft,1]]},Ps[24]=Ps[146]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[e.topright,1]]},Ps[6]=Ps[164]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop]]},Ps[129]=Ps[41]=function(e){return[[e.topright,1],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1]]},Ps[66]=Ps[104]=function(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ps[144]=Ps[26]=function(e){return[[1,1],[1,e.righttop],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},Ps[36]=Ps[134]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[e.topleft,1],[e.topright,1]]},Ps[9]=Ps[161]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom]]},Ps[37]=Ps[133]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},Ps[148]=Ps[22]=function(e){return[[1,1],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},Ps[82]=Ps[88]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1]]},Ps[73]=Ps[97]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},Ps[145]=Ps[25]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},Ps[70]=Ps[100]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ps[34]=function(e){return[Ss(e),ws(e)]},Ps[35]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]},Ps[136]=function(e){return[xs(e),_s(e)]},Ps[153]=function(e){return[ys(e),gs(e)]},Ps[102]=function(e){return[vs(e),bs(e)]},Ps[155]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},Ps[103]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ps[152]=function(e){return[ys(e),_s(e)]},Ps[156]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},Ps[137]=function(e){return[xs(e),gs(e)]},Ps[139]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},Ps[98]=function(e){return[ws(e),bs(e)]},Ps[99]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},Ps[38]=function(e){return[vs(e),Ss(e)]},Ps[39]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]};var Ms=function e(t){this.id=e.buildId(t),this.coordinates=t,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1};Ms.buildId=function(e){return e.join(",")},Ms.prototype.removeInnerEdge=function(e){this.innerEdges=this.innerEdges.filter((function(t){return t.from.id!==e.from.id}))},Ms.prototype.removeOuterEdge=function(e){this.outerEdges=this.outerEdges.filter((function(t){return t.to.id!==e.to.id}))},Ms.prototype.addOuterEdge=function(e){this.outerEdges.push(e),this.outerEdgesSorted=!1},Ms.prototype.sortOuterEdges=function(){var e=this;this.outerEdgesSorted||(this.outerEdges.sort((function(t,n){var r=t.to,i=n.to;if(r.coordinates[0]-e.coordinates[0]>=0&&i.coordinates[0]-e.coordinates[0]<0)return 1;if(r.coordinates[0]-e.coordinates[0]<0&&i.coordinates[0]-e.coordinates[0]>=0)return-1;if(r.coordinates[0]-e.coordinates[0]==0&&i.coordinates[0]-e.coordinates[0]==0)return r.coordinates[1]-e.coordinates[1]>=0||i.coordinates[1]-e.coordinates[1]>=0?r.coordinates[1]-i.coordinates[1]:i.coordinates[1]-r.coordinates[1];var o=_r(e.coordinates,r.coordinates,i.coordinates);return o<0?1:o>0?-1:Math.pow(r.coordinates[0]-e.coordinates[0],2)+Math.pow(r.coordinates[1]-e.coordinates[1],2)-(Math.pow(i.coordinates[0]-e.coordinates[0],2)+Math.pow(i.coordinates[1]-e.coordinates[1],2))})),this.outerEdgesSorted=!0)},Ms.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},Ms.prototype.getOuterEdge=function(e){return this.sortOuterEdges(),this.outerEdges[e]},Ms.prototype.addInnerEdge=function(e){this.innerEdges.push(e)};var Ns=function(e,t){this.from=e,this.to=t,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)};Ns.prototype.getSymetric=function(){return this.symetric||(this.symetric=new Ns(this.to,this.from),this.symetric.symetric=this),this.symetric},Ns.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},Ns.prototype.isEqual=function(e){return this.from.id===e.from.id&&this.to.id===e.to.id},Ns.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},Ns.prototype.toLineString=function(){return s([this.from.coordinates,this.to.coordinates])},Ns.prototype.compareTo=function(e){return _r(e.from.coordinates,e.to.coordinates,this.to.coordinates)};var Ls=function(){this.edges=[],this.polygon=void 0,this.envelope=void 0},Ds={length:{configurable:!0}};Ls.prototype.push=function(e){this[this.edges.length]=e,this.edges.push(e),this.polygon=this.envelope=void 0},Ls.prototype.get=function(e){return this.edges[e]},Ds.length.get=function(){return this.edges.length},Ls.prototype.forEach=function(e){this.edges.forEach(e)},Ls.prototype.map=function(e){return this.edges.map(e)},Ls.prototype.some=function(e){return this.edges.some(e)},Ls.prototype.isValid=function(){return!0},Ls.prototype.isHole=function(){var e=this,t=this.edges.reduce((function(t,n,r){return n.from.coordinates[1]>e.edges[t].from.coordinates[1]&&(t=r),t}),0),n=(0===t?this.length:t)-1,r=(t+1)%this.length,i=_r(this.edges[n].from.coordinates,this.edges[t].from.coordinates,this.edges[r].from.coordinates);return 0===i?this.edges[n].from.coordinates[0]>this.edges[r].from.coordinates[0]:i>0},Ls.prototype.toMultiPoint=function(){return d(this.edges.map((function(e){return e.from.coordinates})))},Ls.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var e=this.edges.map((function(e){return e.from.coordinates}));return e.push(this.edges[0].from.coordinates),this.polygon=o([e])},Ls.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=ut(this.toPolygon())},Ls.findEdgeRingContaining=function(e,t){var n,i,o=e.getEnvelope();return t.forEach((function(t){var a=t.getEnvelope();if(i&&(n=i.getEnvelope()),!function(e,t){var n=e.geometry.coordinates.map((function(e){return e[0]})),r=e.geometry.coordinates.map((function(e){return e[1]})),i=t.geometry.coordinates.map((function(e){return e[0]})),o=t.geometry.coordinates.map((function(e){return e[1]}));return Math.max(null,n)===Math.max(null,i)&&Math.max(null,r)===Math.max(null,o)&&Math.min(null,n)===Math.min(null,i)&&Math.min(null,r)===Math.min(null,o)}(a,o)&&wr(a,o)){var s=e.map((function(e){return e.from.coordinates})).find((function(e){return!t.some((function(t){return function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e,t.from.coordinates)}))}));s&&t.inside(r(s))&&(i&&!wr(n,a)||(i=t))}})),i},Ls.prototype.inside=function(e){return Ae(e,this.toPolygon())},Object.defineProperties(Ls.prototype,Ds);var js=function(){this.edges=[],this.nodes={}};js.fromGeoJson=function(e){!function(e){if(!e)throw new Error("No geojson passed");if("FeatureCollection"!==e.type&&"GeometryCollection"!==e.type&&"MultiLineString"!==e.type&&"LineString"!==e.type&&"Feature"!==e.type)throw new Error("Invalid input type '"+e.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(e);var t=new js;return D(e,(function(e){$(e,"LineString","Graph::fromGeoJson"),T(e,(function(e,n){if(e){var r=t.getNode(e),i=t.getNode(n);t.addEdge(r,i)}return n}))})),t},js.prototype.getNode=function(e){var t=Ms.buildId(e),n=this.nodes[t];return n||(n=this.nodes[t]=new Ms(e)),n},js.prototype.addEdge=function(e,t){var n=new Ns(e,t),r=n.getSymetric();this.edges.push(n),this.edges.push(r)},js.prototype.deleteDangles=function(){var e=this;Object.keys(this.nodes).map((function(t){return e.nodes[t]})).forEach((function(t){return e._removeIfDangle(t)}))},js.prototype._removeIfDangle=function(e){var t=this;if(e.innerEdges.length<=1){var n=e.getOuterEdges().map((function(e){return e.to}));this.removeNode(e),n.forEach((function(e){return t._removeIfDangle(e)}))}},js.prototype.deleteCutEdges=function(){var e=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(t){t.label===t.symetric.label&&(e.removeEdge(t.symetric),e.removeEdge(t))}))},js.prototype._computeNextCWEdges=function(e){var t=this;void 0===e?Object.keys(this.nodes).forEach((function(e){return t._computeNextCWEdges(t.nodes[e])})):e.getOuterEdges().forEach((function(t,n){e.getOuterEdge((0===n?e.getOuterEdges().length:n)-1).symetric.next=t}))},js.prototype._computeNextCCWEdges=function(e,t){for(var n,r,i=e.getOuterEdges(),o=i.length-1;o>=0;--o){var a=i[o],s=a.symetric,l=void 0,c=void 0;a.label===t&&(l=a),s.label===t&&(c=s),l&&c&&(c&&(r=c),l&&(r&&(r.next=l,r=void 0),n||(n=l)))}r&&(r.next=n)},js.prototype._findLabeledEdgeRings=function(){var e=[],t=0;return this.edges.forEach((function(n){if(!(n.label>=0)){e.push(n);var r=n;do{r.label=t,r=r.next}while(!n.isEqual(r));t++}})),e},js.prototype.getEdgeRings=function(){var e=this;this._computeNextCWEdges(),this.edges.forEach((function(e){e.label=void 0})),this._findLabeledEdgeRings().forEach((function(t){e._findIntersectionNodes(t).forEach((function(n){e._computeNextCCWEdges(n,t.label)}))}));var t=[];return this.edges.forEach((function(n){n.ring||t.push(e._findEdgeRing(n))})),t},js.prototype._findIntersectionNodes=function(e){var t=[],n=e,r=function(){var r=0;n.from.getOuterEdges().forEach((function(t){t.label===e.label&&++r})),r>1&&t.push(n.from),n=n.next};do{r()}while(!e.isEqual(n));return t},js.prototype._findEdgeRing=function(e){var t=e,n=new Ls;do{n.push(t),t.ring=n,t=t.next}while(!e.isEqual(t));return n},js.prototype.removeNode=function(e){var t=this;e.getOuterEdges().forEach((function(e){return t.removeEdge(e)})),e.innerEdges.forEach((function(e){return t.removeEdge(e)})),delete this.nodes[e.id]},js.prototype.removeEdge=function(e){this.edges=this.edges.filter((function(t){return!t.isEqual(e)})),e.deleteEdge()};var Fs=ye((function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n})),Bs=(Fs.shim,ye((function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(t=e.exports=i?n:r).supported=n,t.unsupported=r}))),qs=(Bs.supported,Bs.unsupported,ye((function(e){function t(e){return null===e||void 0===e}function n(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&"function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0])}var r=Array.prototype.slice,i=e.exports=function(e,o,a){return a||(a={}),e===o||(e instanceof Date&&o instanceof Date?e.getTime()===o.getTime():!e||!o||"object"!=typeof e&&"object"!=typeof o?a.strict?e===o:e==o:function(e,o,a){var s,l;if(t(e)||t(o))return!1;if(e.prototype!==o.prototype)return!1;if(Bs(e))return!!Bs(o)&&(e=r.call(e),o=r.call(o),i(e,o,a));if(n(e)){if(!n(o))return!1;if(e.length!==o.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==o[s])return!1;return!0}try{var c=Fs(e),u=Fs(o)}catch(e){return!1}if(c.length!=u.length)return!1;for(c.sort(),u.sort(),s=c.length-1;s>=0;s--)if(c[s]!=u[s])return!1;for(s=c.length-1;s>=0;s--)if(l=c[s],!i(e[l],o[l],a))return!1;return typeof e==typeof o}(e,o,a))}}))),zs=function(e){this.precision=e&&e.precision?e.precision:17,this.direction=!(!e||!e.direction)&&e.direction,this.pseudoNode=!(!e||!e.pseudoNode)&&e.pseudoNode,this.objectComparator=e&&e.objectComparator?e.objectComparator:Pr};zs.prototype.compare=function(e,t){if(e.type!==t.type||!Rr(e,t))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,t.coordinates);case"LineString":return this.compareLine(e.coordinates,t.coordinates,0,!1);case"Polygon":return this.comparePolygon(e,t);case"Feature":return this.compareFeature(e,t);default:if(0===e.type.indexOf("Multi")){var n=this,r=Ar(e),i=Ar(t);return r.every((function(e){return this.some((function(t){return n.compare(e,t)}))}),i)}}return!1},zs.prototype.compareCoord=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n].toFixed(this.precision)!==t[n].toFixed(this.precision))return!1;return!0},zs.prototype.compareLine=function(e,t,n,r){if(!Rr(e,t))return!1;var i=this.pseudoNode?e:this.removePseudo(e),o=this.pseudoNode?t:this.removePseudo(t);if(!r||this.compareCoord(i[0],o[0])||(o=this.fixStartIndex(o,i))){var a=this.compareCoord(i[n],o[n]);return this.direction||a?this.comparePath(i,o):!!this.compareCoord(i[n],o[o.length-(1+n)])&&this.comparePath(i.slice().reverse(),o)}},zs.prototype.fixStartIndex=function(e,t){for(var n,r=-1,i=0;i<e.length;i++)if(this.compareCoord(e[i],t[0])){r=i;break}return r>=0&&(n=[].concat(e.slice(r,e.length),e.slice(1,r+1))),n},zs.prototype.comparePath=function(e,t){var n=this;return e.every((function(e,t){return n.compareCoord(e,this[t])}),t)},zs.prototype.comparePolygon=function(e,t){if(this.compareLine(e.coordinates[0],t.coordinates[0],1,!0)){var n=e.coordinates.slice(1,e.coordinates.length),r=t.coordinates.slice(1,t.coordinates.length),i=this;return n.every((function(e){return this.some((function(t){return i.compareLine(e,t,1,!0)}))}),r)}return!1},zs.prototype.compareFeature=function(e,t){return!(e.id!==t.id||!this.objectComparator(e.properties,t.properties)||!this.compareBBox(e,t))&&this.compare(e.geometry,t.geometry)},zs.prototype.compareBBox=function(e,t){return!!(!e.bbox&&!t.bbox||e.bbox&&t.bbox&&this.compareCoord(e.bbox,t.bbox))},zs.prototype.removePseudo=function(e){return e};var Us=zs,Gs=ye((function(e){function t(e,t,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(e,t,n,r)}t.prototype.run=function(e,t,n,r){this._init(e,t,n,r);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(i,a),this._expandCluster(a,o)}}return this.clusters},t.prototype._init=function(e,t,n,r){if(e){if(!(e instanceof Array))throw Error("Dataset must be of type array, "+typeof e+" given");this.dataset=e,this.clusters=[],this.noise=[],this._datasetLength=e.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}t&&(this.epsilon=t),n&&(this.minPts=n),r&&(this.distance=r)},t.prototype._expandCluster=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(1!==this._visited[r]){this._visited[r]=1;var i=this._regionQuery(r);i.length>=this.minPts&&(t=this._mergeArrays(t,i))}1!==this._assigned[r]&&this._addToCluster(r,e)}},t.prototype._addToCluster=function(e,t){this.clusters[t].push(e),this._assigned[e]=1},t.prototype._regionQuery=function(e){for(var t=[],n=0;n<this._datasetLength;n++)this.distance(this.dataset[e],this.dataset[n])<this.epsilon&&t.push(n);return t},t.prototype._mergeArrays=function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r];e.indexOf(i)<0&&e.push(i)}return e},t.prototype._euclideanDistance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;)n+=(e[r]-t[r])*(e[r]-t[r]);return Math.sqrt(n)},e.exports&&(e.exports=t)})),Vs=ye((function(e){function t(e,t,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(e,t,n)}t.prototype.init=function(e,t,n){this.assignments=[],this.centroids=[],void 0!==e&&(this.dataset=e),void 0!==t&&(this.k=t),void 0!==n&&(this.distance=n)},t.prototype.run=function(e,t){this.init(e,t);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(u),s=0,l=0;l<u;l++)a[l]=0;for(var c=0;c<n;c++){var u=this.dataset[c].length;if(o===this.assignments[c]){for(l=0;l<u;l++)a[l]+=this.dataset[c][l];s++}}if(s>0){for(l=0;l<u;l++)a[l]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},t.prototype.randomCentroid=function(){var e,t,n=this.dataset.length-1;do{t=Math.round(Math.random()*n),e=this.dataset[t]}while(this.centroids.indexOf(e)>=0);return e},t.prototype.assign=function(){for(var e,t=!1,n=this.dataset.length,r=0;r<n;r++)(e=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=e,t=!0);return t},t.prototype.getClusters=function(){for(var e,t=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===t[e=this.assignments[n]]&&(t[e]=[]),t[e].push(n);return t},t.prototype.argmin=function(e,t,n){for(var r,i=Number.MAX_VALUE,o=0,a=t.length,s=0;s<a;s++)(r=n(e,t[s]))<i&&(i=r,o=s);return o},t.prototype.distance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;){var i=e[r]-t[r];n+=i*i}return Math.sqrt(n)},e.exports&&(e.exports=t)})),Ws=ye((function(e){function t(e,t,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(e,t,n)}t.prototype.insert=function(e,t){for(var n=this._queue.length,r=n;r--;){var i=this._priorities[r];"desc"===this._sorting?t>i&&(n=r):t<i&&(n=r)}this._insertAt(e,t,n)},t.prototype.remove=function(e){for(var t=this._queue.length;t--;)if(e===this._queue[t]){this._queue.splice(t,1),this._priorities.splice(t,1);break}},t.prototype.forEach=function(e){this._queue.forEach(e)},t.prototype.getElements=function(){return this._queue},t.prototype.getElementPriority=function(e){return this._priorities[e]},t.prototype.getPriorities=function(){return this._priorities},t.prototype.getElementsWithPriorities=function(){for(var e=[],t=0,n=this._queue.length;t<n;t++)e.push([this._queue[t],this._priorities[t]]);return e},t.prototype._init=function(e,t,n){if(e&&t){if(this._queue=[],this._priorities=[],e.length!==t.length)throw new Error("Arrays must have the same length");for(var r=0;r<e.length;r++)this.insert(e[r],t[r])}n&&(this._sorting=n)},t.prototype._insertAt=function(e,t,n){this._queue.length===n?(this._queue.push(e),this._priorities.push(t)):(this._queue.splice(n,0,e),this._priorities.splice(n,0,t))},e.exports&&(e.exports=t)})),Hs=ye((function(e){function t(e,t,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(e,t,n,r)}if(e.exports)var n=Ws;t.prototype.run=function(e,t,r,i){this._init(e,t,r,i);for(var o=0,a=this.dataset.length;o<a;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var s=this.clusters.length-1;this._orderedList.push(o);var l=new n(null,null,"asc"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,l),this._expandCluster(s,l))}return this.clusters},t.prototype.getReachabilityPlot=function(){for(var e=[],t=0,n=this._orderedList.length;t<n;t++){var r=this._orderedList[t],i=this._reachability[r];e.push([r,i])}return e},t.prototype._init=function(e,t,n,r){if(e){if(!(e instanceof Array))throw Error("Dataset must be of type array, "+typeof e+" given");this.dataset=e,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}t&&(this.epsilon=t),n&&(this.minPts=n),r&&(this.distance=r)},t.prototype._updateQueue=function(e,t,n){var r=this;this._coreDistance=this._distanceToCore(e),t.forEach((function(t){if(void 0===r._processed[t]){var i=r.distance(r.dataset[e],r.dataset[t]),o=Math.max(r._coreDistance,i);void 0===r._reachability[t]?(r._reachability[t]=o,n.insert(t,o)):o<r._reachability[t]&&(r._reachability[t]=o,n.remove(t),n.insert(t,o))}}))},t.prototype._expandCluster=function(e,t){for(var n=t.getElements(),r=0,i=n.length;r<i;r++){var o=n[r];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[e].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,t),this._expandCluster(e,t))}}},t.prototype._distanceToCore=function(e){for(var t=this.epsilon,n=0;n<t;n++)if(this._regionQuery(e,n).length>=this.minPts)return n},t.prototype._regionQuery=function(e,t){t=t||this.epsilon;for(var n=[],r=0,i=this.dataset.length;r<i;r++)this.distance(this.dataset[e],this.dataset[r])<t&&n.push(r);return n},t.prototype._euclideanDistance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;)n+=(e[r]-t[r])*(e[r]-t[r]);return Math.sqrt(n)},e.exports&&(e.exports=t)})),$s=ye((function(e){e.exports&&(e.exports={DBSCAN:Gs,KMEANS:Vs,OPTICS:Hs,PriorityQueue:Ws})})),Ks=($s.DBSCAN,$s.KMEANS,$s.OPTICS,$s.PriorityQueue,function(e,t,n){for(var r=e.length,i=0,o=0;o<r;o++){var a=(e[o]||0)-(t[o]||0);i+=a*a}return n?Math.sqrt(i):i}),Xs=Ks,Ys=function(e,t,n){var r=Math.abs(e-t);return n?r:r*r},Js=Ks,Qs=function(e,t){for(var n={},r=[],i=t<<2,o=e.length,a=e[0].length>0;r.length<t&&i-- >0;){var s=e[Math.floor(Math.random()*o)],l=a?s.join("_"):""+s;n[l]||(n[l]=!0,r.push(s))}if(r.length<t)throw new Error("Error initializating clusters");return r},Zs=function(e,t){var n=e[0].length?Xs:Ys,r=[],i=e.length,o=e[0].length>0,a=e[Math.floor(Math.random()*i)];for(o&&a.join("_"),r.push(a);r.length<t;){for(var s=[],l=r.length,c=0,u=[],d=0;d<i;d++){for(var f=1/0,h=0;h<l;h++){var p=n(e[d],r[h]);p<=f&&(f=p)}s[d]=f}for(var m=0;m<i;m++)c+=s[m];for(var g=0;g<i;g++)u[g]={i:g,v:e[g],pr:s[g]/c,cs:0};u.sort((function(e,t){return e.pr-t.pr})),u[0].cs=u[0].pr;for(var v=1;v<i;v++)u[v].cs=u[v-1].cs+u[v].pr;for(var y=Math.random(),b=0;b<i-1&&u[b++].cs<y;);r.push(u[b-1].v)}return r},el=1e4,tl=function(e,t,n,r){var i=[],o=[],a=[],s=[],l=!1,c=r||el,u=e.length,d=e[0].length,f=d>0,h=[];if(n)i="kmrand"==n?Qs(e,t):"kmpp"==n?Zs(e,t):n;else for(var p={};i.length<t;){var m=Math.floor(Math.random()*u);p[m]||(p[m]=!0,i.push(e[m]))}do{Nr(t,0,h);for(var g=0;g<u;g++){for(var v=1/0,y=0,b=0;b<t;b++)(s=f?Js(e[g],i[b]):Math.abs(e[g]-i[b]))<=v&&(v=s,y=b);a[g]=y,h[y]++}for(var _=[],w=(o=[],0);w<t;w++)_[w]=f?Nr(d,0,_[w]):0,o[w]=i[w];if(f){for(var x=0;x<t;x++)i[x]=[];for(var S=0;S<u;S++)for(var C=_[a[S]],E=e[S],k=0;k<d;k++)C[k]+=E[k];l=!0;for(var O=0;O<t;O++){for(var T=i[O],I=_[O],A=o[O],R=h[O],P=0;P<d;P++)T[P]=I[P]/R||0;if(l)for(var M=0;M<d;M++)if(A[M]!=T[M]){l=!1;break}}}else{for(var N=0;N<u;N++)_[a[N]]+=e[N];for(var L=0;L<t;L++)i[L]=_[L]/h[L]||0;l=!0;for(var D=0;D<t;D++)if(o[D]!=i[D]){l=!1;break}}l=l||--c<=0}while(!l);return{it:el-c,k:t,idxs:a,centroids:i}},nl={search:function(e,t,n,r){e.cleanDirty();var i=(r=r||{}).heuristic||nl.heuristics.manhattan,o=r.closest||!1,a=new Br((function(e){return e.f})),s=t;for(t.h=i(t,n),a.push(t);a.size()>0;){var l=a.pop();if(l===n)return Dr(l);l.closed=!0;for(var c=e.neighbors(l),u=0,d=c.length;u<d;++u){var f=c[u];if(!f.closed&&!f.isWall()){var h=l.g+f.getCost(l),p=f.visited;(!p||h<f.g)&&(f.visited=!0,f.parent=l,f.h=f.h||i(f,n),f.g=h,f.f=f.g+f.h,e.markDirty(f),o&&(f.h<s.h||f.h===s.h&&f.g<s.g)&&(s=f),p?a.rescoreElement(f):a.push(f))}}}return o?Dr(s):[]},heuristics:{manhattan:function(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},diagonal:function(e,t){var n=Math.sqrt(2),r=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y);return 1*(r+i)+(n-2)*Math.min(r,i)}},cleanNode:function(e){e.f=0,e.g=0,e.h=0,e.visited=!1,e.closed=!1,e.parent=null}};jr.prototype.init=function(){this.dirtyNodes=[];for(var e=0;e<this.nodes.length;e++)nl.cleanNode(this.nodes[e])},jr.prototype.cleanDirty=function(){for(var e=0;e<this.dirtyNodes.length;e++)nl.cleanNode(this.dirtyNodes[e]);this.dirtyNodes=[]},jr.prototype.markDirty=function(e){this.dirtyNodes.push(e)},jr.prototype.neighbors=function(e){var t=[],n=e.x,r=e.y,i=this.grid;return i[n-1]&&i[n-1][r]&&t.push(i[n-1][r]),i[n+1]&&i[n+1][r]&&t.push(i[n+1][r]),i[n]&&i[n][r-1]&&t.push(i[n][r-1]),i[n]&&i[n][r+1]&&t.push(i[n][r+1]),this.diagonal&&(i[n-1]&&i[n-1][r-1]&&t.push(i[n-1][r-1]),i[n+1]&&i[n+1][r-1]&&t.push(i[n+1][r-1]),i[n-1]&&i[n-1][r+1]&&t.push(i[n-1][r+1]),i[n+1]&&i[n+1][r+1]&&t.push(i[n+1][r+1])),t},jr.prototype.toString=function(){for(var e,t,n,r,i=[],o=this.grid,a=0,s=o.length;a<s;a++){for(e=[],n=0,r=(t=o[a]).length;n<r;n++)e.push(t[n].weight);i.push(e.join(" "))}return i.join("\n")},Fr.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},Fr.prototype.getCost=function(e){return e&&e.x!==this.x&&e.y!==this.y?1.41421*this.weight:this.weight},Fr.prototype.isWall=function(){return 0===this.weight},Br.prototype={push:function(e){this.content.push(e),this.sinkDown(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.bubbleUp(0)),e},remove:function(e){var t=this.content.indexOf(e),n=this.content.pop();t!==this.content.length-1&&(this.content[t]=n,this.scoreFunction(n)<this.scoreFunction(e)?this.sinkDown(t):this.bubbleUp(t))},size:function(){return this.content.length},rescoreElement:function(e){this.sinkDown(this.content.indexOf(e))},sinkDown:function(e){for(var t=this.content[e];e>0;){var n=(e+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(t)<this.scoreFunction(r)))break;this.content[n]=t,this.content[e]=r,e=n}},bubbleUp:function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i,o=e+1<<1,a=o-1,s=null;if(a<t){var l=this.content[a];(i=this.scoreFunction(l))<r&&(s=a)}if(o<t){var c=this.content[o];this.scoreFunction(c)<(null===s?r:i)&&(s=o)}if(null===s)break;this.content[e]=this.content[s],this.content[s]=n,e=s}}};var rl=function(e){return function(){return e}};Ur.prototype={constructor:Ur,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Hr(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(Vr(this,n),n=(e=n).U),n.C=!1,r.C=!0,Wr(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(Wr(this,n),n=(e=n).U),n.C=!1,r.C=!0,Vr(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?Hr(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Vr(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Wr(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Vr(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,Wr(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Vr(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Wr(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var il,ol,al,sl,ll,cl=[],ul=[],dl=1e-6,fl=1e-12;ui.prototype={constructor:ui,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return Zr(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s=n.site,l=-1,c=t[i[o-1]],u=c.left===s?c.right:c.left;++l<o;)a=u,u=(c=t[i[l]]).left===s?c.right:c.left,a&&u&&r<a.index&&r<u.index&&li(s,a,u)<0&&e.push([s.data,a.data,u.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var l=e-i.site[0],c=t-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;d<u&&(u=d,a=s.index)}}))}while(null!==a);return o._found=r,null==n||u<=n*n?i.site:null}};var hl=function(){function e(e){return new ui(e.map((function(r,i){var o=[Math.round(t(r,i,e)/dl)*dl,Math.round(n(r,i,e)/dl)*dl];return o.index=i,o.data=r,o})),r)}var t=qr,n=zr,r=null;return e.polygons=function(t){return e(t).polygons()},e.links=function(t){return e(t).links()},e.triangles=function(t){return e(t).triangles()},e.x=function(n){return arguments.length?(t="function"==typeof n?n:rl(+n),e):t},e.y=function(t){return arguments.length?(n="function"==typeof t?t:rl(+t),e):n},e.extent=function(t){return arguments.length?(r=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],e):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},e.size=function(t){return arguments.length?(r=null==t?null:[[0,0],[+t[0],+t[1]]],e):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},e},pl=Object.freeze({randomPosition:vi,randomPoint:yi,randomPolygon:bi,randomLineString:_i}),ml=Object.freeze({getCluster:xi,clusterEach:Si,clusterReduce:Ci,createBins:Ei,applyFilter:ki,propertiesContainsFilter:Oi,filterProperties:Ti});"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(e){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var t=Object(this),n=Math.max(Math.min(t.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(i=i<0?Math.max(n+arguments[2],0):Math.min(i,n);r<i;)t[r]=e,++r;return t},writable:!0}),Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(e){return e!=e},Math.trunc=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};var gl=function(){};gl.prototype.interfaces_=function(){return[]},gl.prototype.getClass=function(){return gl},gl.prototype.equalsWithTolerance=function(e,t,n){return Math.abs(e-t)<=n};var vl=function(){},yl=function(){},bl={MAX_VALUE:{configurable:!0}};yl.isNaN=function(e){return Number.isNaN(e)},yl.doubleToLongBits=function(e){return e},yl.longBitsToDouble=function(e){return e},yl.isInfinite=function(e){return!Number.isFinite(e)},bl.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(yl,bl);var _l=function(){},wl=function(){},xl=function(){},Sl=function e(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=e.NULL_ORDINATE;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.z=t.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=e.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},Cl={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};Sl.prototype.setOrdinate=function(e,t){switch(e){case Sl.X:this.x=t;break;case Sl.Y:this.y=t;break;case Sl.Z:this.z=t;break;default:throw new vl("Invalid ordinate index: "+e)}},Sl.prototype.equals2D=function(){if(1===arguments.length){var e=arguments[0];return this.x===e.x&&this.y===e.y}if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!gl.equalsWithTolerance(this.x,t.x,n)&&!!gl.equalsWithTolerance(this.y,t.y,n)}},Sl.prototype.getOrdinate=function(e){switch(e){case Sl.X:return this.x;case Sl.Y:return this.y;case Sl.Z:return this.z}throw new vl("Invalid ordinate index: "+e)},Sl.prototype.equals3D=function(e){return this.x===e.x&&this.y===e.y&&(this.z===e.z||yl.isNaN(this.z))&&yl.isNaN(e.z)},Sl.prototype.equals=function(e){return e instanceof Sl&&this.equals2D(e)},Sl.prototype.equalInZ=function(e,t){return gl.equalsWithTolerance(this.z,e.z,t)},Sl.prototype.compareTo=function(e){var t=e;return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:this.y>t.y?1:0},Sl.prototype.clone=function(){},Sl.prototype.copy=function(){return new Sl(this)},Sl.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},Sl.prototype.distance3D=function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return Math.sqrt(t*t+n*n+r*r)},Sl.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},Sl.prototype.hashCode=function(){var e=17;return e=37*e+Sl.hashCode(this.x),37*e+Sl.hashCode(this.y)},Sl.prototype.setCoordinate=function(e){this.x=e.x,this.y=e.y,this.z=e.z},Sl.prototype.interfaces_=function(){return[_l,wl,Ii]},Sl.prototype.getClass=function(){return Sl},Sl.hashCode=function(){if(1===arguments.length){var e=arguments[0],t=yl.doubleToLongBits(e);return Math.trunc((t^t)>>>32)}},Cl.DimensionalComparator.get=function(){return El},Cl.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},Cl.NULL_ORDINATE.get=function(){return yl.NaN},Cl.X.get=function(){return 0},Cl.Y.get=function(){return 1},Cl.Z.get=function(){return 2},Object.defineProperties(Sl,Cl);var El=function(e){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new vl("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}};El.prototype.compare=function(e,t){var n=e,r=t,i=El.compare(n.x,r.x);if(0!==i)return i;var o=El.compare(n.y,r.y);return 0!==o?o:this._dimensionsToTest<=2?0:El.compare(n.z,r.z)},El.prototype.interfaces_=function(){return[xl]},El.prototype.getClass=function(){return El},El.compare=function(e,t){return e<t?-1:e>t?1:yl.isNaN(e)?yl.isNaN(t)?0:-1:yl.isNaN(t)?1:0};var kl=function(){};kl.prototype.create=function(){},kl.prototype.interfaces_=function(){return[]},kl.prototype.getClass=function(){return kl};var Ol=function(){},Tl={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};Ol.prototype.interfaces_=function(){return[]},Ol.prototype.getClass=function(){return Ol},Ol.toLocationSymbol=function(e){switch(e){case Ol.EXTERIOR:return"e";case Ol.BOUNDARY:return"b";case Ol.INTERIOR:return"i";case Ol.NONE:return"-"}throw new vl("Unknown location value: "+e)},Tl.INTERIOR.get=function(){return 0},Tl.BOUNDARY.get=function(){return 1},Tl.EXTERIOR.get=function(){return 2},Tl.NONE.get=function(){return-1},Object.defineProperties(Ol,Tl);var Il=function(e,t){return e.interfaces_&&e.interfaces_().indexOf(t)>-1},Al=function(){},Rl={LOG_10:{configurable:!0}};Al.prototype.interfaces_=function(){return[]},Al.prototype.getClass=function(){return Al},Al.log10=function(e){var t=Math.log(e);return yl.isInfinite(t)||yl.isNaN(t)?t:t/Al.LOG_10},Al.min=function(e,t,n,r){var i=e;return t<i&&(i=t),n<i&&(i=n),r<i&&(i=r),i},Al.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1],n=arguments[2];return e<t?t:e>n?n:e}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return r<i?i:r>o?o:r}},Al.wrap=function(e,t){return e<0?t- -e%t:e%t},Al.max=function(){if(3===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2],r=e;return t>r&&(r=t),n>r&&(r=n),r}if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3],l=i;return o>l&&(l=o),a>l&&(l=a),s>l&&(l=s),l}},Al.average=function(e,t){return(e+t)/2},Rl.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(Al,Rl);var Pl=function(e){this.str=e};Pl.prototype.append=function(e){this.str+=e},Pl.prototype.setCharAt=function(e,t){this.str=this.str.substr(0,e)+t+this.str.substr(e+1)},Pl.prototype.toString=function(e){return this.str};var Ml=function(e){this.value=e};Ml.prototype.intValue=function(){return this.value},Ml.prototype.compareTo=function(e){return this.value<e?-1:this.value>e?1:0},Ml.isNaN=function(e){return Number.isNaN(e)};var Nl=function(){};Nl.isWhitespace=function(e){return e<=32&&e>=0||127===e},Nl.toUpperCase=function(e){return e.toUpperCase()};var Ll=function e(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}else if("string"==typeof arguments[0]){var r=arguments[0];e.call(this,e.parse(r))}}else if(2===arguments.length){var i=arguments[0],o=arguments[1];this.init(i,o)}},Dl={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};Ll.prototype.le=function(e){return(this._hi<e._hi||this._hi===e._hi)&&this._lo<=e._lo},Ll.prototype.extractSignificantDigits=function(e,t){var n=this.abs(),r=Ll.magnitude(n._hi),i=Ll.TEN.pow(r);(n=n.divide(i)).gt(Ll.TEN)?(n=n.divide(Ll.TEN),r+=1):n.lt(Ll.ONE)&&(n=n.multiply(Ll.TEN),r-=1);for(var o=r+1,a=new Pl,s=Ll.MAX_PRINT_DIGITS-1,l=0;l<=s;l++){e&&l===o&&a.append(".");var c=Math.trunc(n._hi);if(c<0)break;var u=!1,d=0;c>9?(u=!0,d="9"):d="0"+c,a.append(d),n=n.subtract(Ll.valueOf(c)).multiply(Ll.TEN),u&&n.selfAdd(Ll.TEN);var f=!0,h=Ll.magnitude(n._hi);if(h<0&&Math.abs(h)>=s-l&&(f=!1),!f)break}return t[0]=r,a.toString()},Ll.prototype.sqr=function(){return this.multiply(this)},Ll.prototype.doubleValue=function(){return this._hi+this._lo},Ll.prototype.subtract=function(){if(arguments[0]instanceof Ll){var e=arguments[0];return this.add(e.negate())}if("number"==typeof arguments[0]){var t=arguments[0];return this.add(-t)}},Ll.prototype.equals=function(){if(1===arguments.length){var e=arguments[0];return this._hi===e._hi&&this._lo===e._lo}},Ll.prototype.isZero=function(){return 0===this._hi&&0===this._lo},Ll.prototype.selfSubtract=function(){if(arguments[0]instanceof Ll){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e._hi,-e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t,0)}},Ll.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},Ll.prototype.min=function(e){return this.le(e)?this:e},Ll.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof Ll){var e=arguments[0];return this.selfDivide(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.selfDivide(t,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,a=null,s=null,l=null,c=null,u=null,d=null;return l=this._hi/n,c=Ll.SPLIT*l,i=c-l,d=Ll.SPLIT*n,i=c-i,o=l-i,a=d-n,u=l*n,a=d-a,s=n-a,d=i*a-u+i*s+o*a+o*s,c=(this._hi-u-d+this._lo-l*r)/n,d=l+c,this._hi=d,this._lo=l-d+c,this}},Ll.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},Ll.prototype.divide=function(){if(arguments[0]instanceof Ll){var e=arguments[0],t=null,n=null,r=null,i=null,o=null,a=null,s=null,l=null;return n=(o=this._hi/e._hi)-(t=(a=Ll.SPLIT*o)-(t=a-o)),l=t*(r=(l=Ll.SPLIT*e._hi)-(r=l-e._hi))-(s=o*e._hi)+t*(i=e._hi-r)+n*r+n*i,a=(this._hi-s-l+this._lo-o*e._lo)/e._hi,new Ll(l=o+a,o-l+a)}if("number"==typeof arguments[0]){var c=arguments[0];return yl.isNaN(c)?Ll.createNaN():Ll.copy(this).selfDivide(c,0)}},Ll.prototype.ge=function(e){return(this._hi>e._hi||this._hi===e._hi)&&this._lo>=e._lo},Ll.prototype.pow=function(e){if(0===e)return Ll.valueOf(1);var t=new Ll(this),n=Ll.valueOf(1),r=Math.abs(e);if(r>1)for(;r>0;)r%2==1&&n.selfMultiply(t),(r/=2)>0&&(t=t.sqr());else n=t;return e<0?n.reciprocal():n},Ll.prototype.ceil=function(){if(this.isNaN())return Ll.NaN;var e=Math.ceil(this._hi),t=0;return e===this._hi&&(t=Math.ceil(this._lo)),new Ll(e,t)},Ll.prototype.compareTo=function(e){var t=e;return this._hi<t._hi?-1:this._hi>t._hi?1:this._lo<t._lo?-1:this._lo>t._lo?1:0},Ll.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},Ll.prototype.setValue=function(){if(arguments[0]instanceof Ll){var e=arguments[0];return this.init(e),this}if("number"==typeof arguments[0]){var t=arguments[0];return this.init(t),this}},Ll.prototype.max=function(e){return this.ge(e)?this:e},Ll.prototype.sqrt=function(){if(this.isZero())return Ll.valueOf(0);if(this.isNegative())return Ll.NaN;var e=1/Math.sqrt(this._hi),t=this._hi*e,n=Ll.valueOf(t),r=this.subtract(n.sqr())._hi*(.5*e);return n.add(r)},Ll.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof Ll){var e=arguments[0];return this.selfAdd(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0],n=null,r=null,i=null,o=null,a=null,s=null;return i=this._hi+t,a=i-this._hi,o=i-a,o=t-a+(this._hi-o),s=o+this._lo,n=i+s,r=s+(i-n),this._hi=n+r,this._lo=r+(n-this._hi),this}}else if(2===arguments.length){var l=arguments[0],c=arguments[1],u=null,d=null,f=null,h=null,p=null,m=null,g=null;h=this._hi+l,d=this._lo+c,p=h-(m=h-this._hi),f=d-(g=d-this._lo);var v=(u=h+(m=(p=l-m+(this._hi-p))+d))+(m=(f=c-g+(this._lo-f))+(m+(h-u))),y=m+(u-v);return this._hi=v,this._lo=y,this}},Ll.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof Ll){var e=arguments[0];return this.selfMultiply(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.selfMultiply(t,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,a=null,s=null,l=null,c=null;i=(l=Ll.SPLIT*this._hi)-this._hi,c=Ll.SPLIT*n,i=l-i,o=this._hi-i,a=c-n;var u=(l=this._hi*n)+(c=i*(a=c-a)-l+i*(s=n-a)+o*a+o*s+(this._hi*r+this._lo*n)),d=c+(i=l-u);return this._hi=u,this._lo=d,this}},Ll.prototype.selfSqr=function(){return this.selfMultiply(this)},Ll.prototype.floor=function(){if(this.isNaN())return Ll.NaN;var e=Math.floor(this._hi),t=0;return e===this._hi&&(t=Math.floor(this._lo)),new Ll(e,t)},Ll.prototype.negate=function(){return this.isNaN()?this:new Ll(-this._hi,-this._lo)},Ll.prototype.clone=function(){},Ll.prototype.multiply=function(){if(arguments[0]instanceof Ll){var e=arguments[0];return e.isNaN()?Ll.createNaN():Ll.copy(this).selfMultiply(e)}if("number"==typeof arguments[0]){var t=arguments[0];return yl.isNaN(t)?Ll.createNaN():Ll.copy(this).selfMultiply(t,0)}},Ll.prototype.isNaN=function(){return yl.isNaN(this._hi)},Ll.prototype.intValue=function(){return Math.trunc(this._hi)},Ll.prototype.toString=function(){var e=Ll.magnitude(this._hi);return e>=-3&&e<=20?this.toStandardNotation():this.toSciNotation()},Ll.prototype.toStandardNotation=function(){var e=this.getSpecialNumberString();if(null!==e)return e;var t=new Array(1).fill(null),n=this.extractSignificantDigits(!0,t),r=t[0]+1,i=n;if("."===n.charAt(0))i="0"+n;else if(r<0)i="0."+Ll.stringOfChar("0",-r)+n;else if(-1===n.indexOf(".")){var o=r-n.length;i=n+Ll.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+i:i},Ll.prototype.reciprocal=function(){var e=null,t=null,n=null,r=null,i=null,o=null,a=null,s=null;t=(i=1/this._hi)-(e=(o=Ll.SPLIT*i)-(e=o-i)),n=(s=Ll.SPLIT*this._hi)-this._hi;var l=i+(o=(1-(a=i*this._hi)-(s=e*(n=s-n)-a+e*(r=this._hi-n)+t*n+t*r)-i*this._lo)/this._hi);return new Ll(l,i-l+o)},Ll.prototype.toSciNotation=function(){if(this.isZero())return Ll.SCI_NOT_ZERO;var e=this.getSpecialNumberString();if(null!==e)return e;var t=new Array(1).fill(null),n=this.extractSignificantDigits(!1,t),r=Ll.SCI_NOT_EXPONENT_CHAR+t[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var i="";n.length>1&&(i=n.substring(1));var o=n.charAt(0)+"."+i;return this.isNegative()?"-"+o+r:o+r},Ll.prototype.abs=function(){return this.isNaN()?Ll.NaN:this.isNegative()?this.negate():new Ll(this)},Ll.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},Ll.prototype.lt=function(e){return(this._hi<e._hi||this._hi===e._hi)&&this._lo<e._lo},Ll.prototype.add=function(){if(arguments[0]instanceof Ll){var e=arguments[0];return Ll.copy(this).selfAdd(e)}if("number"==typeof arguments[0]){var t=arguments[0];return Ll.copy(this).selfAdd(t)}},Ll.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this._hi=e,this._lo=0}else if(arguments[0]instanceof Ll){var t=arguments[0];this._hi=t._hi,this._lo=t._lo}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._hi=n,this._lo=r}},Ll.prototype.gt=function(e){return(this._hi>e._hi||this._hi===e._hi)&&this._lo>e._lo},Ll.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},Ll.prototype.trunc=function(){return this.isNaN()?Ll.NaN:this.isPositive()?this.floor():this.ceil()},Ll.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},Ll.prototype.interfaces_=function(){return[Ii,_l,wl]},Ll.prototype.getClass=function(){return Ll},Ll.sqr=function(e){return Ll.valueOf(e).selfMultiply(e)},Ll.valueOf=function(){if("string"==typeof arguments[0]){var e=arguments[0];return Ll.parse(e)}if("number"==typeof arguments[0]){var t=arguments[0];return new Ll(t)}},Ll.sqrt=function(e){return Ll.valueOf(e).sqrt()},Ll.parse=function(e){for(var t=0,n=e.length;Nl.isWhitespace(e.charAt(t));)t++;var r=!1;if(t<n){var i=e.charAt(t);"-"!==i&&"+"!==i||(t++,"-"===i&&(r=!0))}for(var o=new Ll,a=0,s=0,l=0;!(t>=n);){var c=e.charAt(t);if(t++,Nl.isDigit(c)){var u=c-"0";o.selfMultiply(Ll.TEN),o.selfAdd(u),a++}else{if("."!==c){if("e"===c||"E"===c){var d=e.substring(t);try{l=Ml.parseInt(d)}catch(t){throw t instanceof Error?new Error("Invalid exponent "+d+" in string "+e):t}break}throw new Error("Unexpected character '"+c+"' at position "+t+" in string "+e)}s=a}}var f=o,h=a-s-l;if(0===h)f=o;else if(h>0){var p=Ll.TEN.pow(h);f=o.divide(p)}else if(h<0){var m=Ll.TEN.pow(-h);f=o.multiply(m)}return r?f.negate():f},Ll.createNaN=function(){return new Ll(yl.NaN,yl.NaN)},Ll.copy=function(e){return new Ll(e)},Ll.magnitude=function(e){var t=Math.abs(e),n=Math.log(t)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=t&&(r+=1),r},Ll.stringOfChar=function(e,t){for(var n=new Pl,r=0;r<t;r++)n.append(e);return n.toString()},Dl.PI.get=function(){return new Ll(3.141592653589793,12246467991473532e-32)},Dl.TWO_PI.get=function(){return new Ll(6.283185307179586,24492935982947064e-32)},Dl.PI_2.get=function(){return new Ll(1.5707963267948966,6123233995736766e-32)},Dl.E.get=function(){return new Ll(2.718281828459045,14456468917292502e-32)},Dl.NaN.get=function(){return new Ll(yl.NaN,yl.NaN)},Dl.EPS.get=function(){return 123259516440783e-46},Dl.SPLIT.get=function(){return 134217729},Dl.MAX_PRINT_DIGITS.get=function(){return 32},Dl.TEN.get=function(){return Ll.valueOf(10)},Dl.ONE.get=function(){return Ll.valueOf(1)},Dl.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},Dl.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(Ll,Dl);var jl=function(){},Fl={DP_SAFE_EPSILON:{configurable:!0}};jl.prototype.interfaces_=function(){return[]},jl.prototype.getClass=function(){return jl},jl.orientationIndex=function(e,t,n){var r=jl.orientationIndexFilter(e,t,n);if(r<=1)return r;var i=Ll.valueOf(t.x).selfAdd(-e.x),o=Ll.valueOf(t.y).selfAdd(-e.y),a=Ll.valueOf(n.x).selfAdd(-t.x),s=Ll.valueOf(n.y).selfAdd(-t.y);return i.selfMultiply(s).selfSubtract(o.selfMultiply(a)).signum()},jl.signOfDet2x2=function(e,t,n,r){return e.multiply(r).selfSubtract(t.multiply(n)).signum()},jl.intersection=function(e,t,n,r){var i=Ll.valueOf(r.y).selfSubtract(n.y).selfMultiply(Ll.valueOf(t.x).selfSubtract(e.x)),o=Ll.valueOf(r.x).selfSubtract(n.x).selfMultiply(Ll.valueOf(t.y).selfSubtract(e.y)),a=i.subtract(o),s=Ll.valueOf(r.x).selfSubtract(n.x).selfMultiply(Ll.valueOf(e.y).selfSubtract(n.y)),l=Ll.valueOf(r.y).selfSubtract(n.y).selfMultiply(Ll.valueOf(e.x).selfSubtract(n.x)),c=s.subtract(l).selfDivide(a).doubleValue(),u=Ll.valueOf(e.x).selfAdd(Ll.valueOf(t.x).selfSubtract(e.x).selfMultiply(c)).doubleValue(),d=Ll.valueOf(t.x).selfSubtract(e.x).selfMultiply(Ll.valueOf(e.y).selfSubtract(n.y)),f=Ll.valueOf(t.y).selfSubtract(e.y).selfMultiply(Ll.valueOf(e.x).selfSubtract(n.x)),h=d.subtract(f).selfDivide(a).doubleValue(),p=Ll.valueOf(n.y).selfAdd(Ll.valueOf(r.y).selfSubtract(n.y).selfMultiply(h)).doubleValue();return new Sl(u,p)},jl.orientationIndexFilter=function(e,t,n){var r=null,i=(e.x-n.x)*(t.y-n.y),o=(e.y-n.y)*(t.x-n.x),a=i-o;if(i>0){if(o<=0)return jl.signum(a);r=i+o}else{if(!(i<0))return jl.signum(a);if(o>=0)return jl.signum(a);r=-i-o}var s=jl.DP_SAFE_EPSILON*r;return a>=s||-a>=s?jl.signum(a):2},jl.signum=function(e){return e>0?1:e<0?-1:0},Fl.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(jl,Fl);var Bl=function(){},ql={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};ql.X.get=function(){return 0},ql.Y.get=function(){return 1},ql.Z.get=function(){return 2},ql.M.get=function(){return 3},Bl.prototype.setOrdinate=function(e,t,n){},Bl.prototype.size=function(){},Bl.prototype.getOrdinate=function(e,t){},Bl.prototype.getCoordinate=function(){},Bl.prototype.getCoordinateCopy=function(e){},Bl.prototype.getDimension=function(){},Bl.prototype.getX=function(e){},Bl.prototype.clone=function(){},Bl.prototype.expandEnvelope=function(e){},Bl.prototype.copy=function(){},Bl.prototype.getY=function(e){},Bl.prototype.toCoordinateArray=function(){},Bl.prototype.interfaces_=function(){return[wl]},Bl.prototype.getClass=function(){return Bl},Object.defineProperties(Bl,ql);var zl=function(){},Ul=function(e){function t(){e.call(this,"Projective point not representable on the Cartesian plane.")}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(zl),Gl=function(){};Gl.arraycopy=function(e,t,n,r,i){for(var o=0,a=t;a<t+i;a++)n[r+o]=e[a],o++},Gl.getProperty=function(e){return{"line.separator":"\n"}[e]};var Vl=function e(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof e&&arguments[1]instanceof e){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof Sl&&arguments[1]instanceof Sl){var a=arguments[0],s=arguments[1];this.x=a.y-s.y,this.y=s.x-a.x,this.w=a.x*s.y-s.x*a.y}}else if(3===arguments.length){var l=arguments[0],c=arguments[1],u=arguments[2];this.x=l,this.y=c,this.w=u}else if(4===arguments.length){var d=arguments[0],f=arguments[1],h=arguments[2],p=arguments[3],m=d.y-f.y,g=f.x-d.x,v=d.x*f.y-f.x*d.y,y=h.y-p.y,b=p.x-h.x,_=h.x*p.y-p.x*h.y;this.x=g*_-b*v,this.y=y*v-m*_,this.w=m*b-y*g}};Vl.prototype.getY=function(){var e=this.y/this.w;if(yl.isNaN(e)||yl.isInfinite(e))throw new Ul;return e},Vl.prototype.getX=function(){var e=this.x/this.w;if(yl.isNaN(e)||yl.isInfinite(e))throw new Ul;return e},Vl.prototype.getCoordinate=function(){var e=new Sl;return e.x=this.getX(),e.y=this.getY(),e},Vl.prototype.interfaces_=function(){return[]},Vl.prototype.getClass=function(){return Vl},Vl.intersection=function(e,t,n,r){var i=e.y-t.y,o=t.x-e.x,a=e.x*t.y-t.x*e.y,s=n.y-r.y,l=r.x-n.x,c=n.x*r.y-r.x*n.y,u=i*l-s*o,d=(o*c-l*a)/u,f=(s*a-i*c)/u;if(yl.isNaN(d)||yl.isInfinite(d)||yl.isNaN(f)||yl.isInfinite(f))throw new Ul;return new Sl(d,f)};var Wl=function e(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof Sl){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2],l=arguments[3];this.init(o,a,s,l)}},Hl={serialVersionUID:{configurable:!0}};Wl.prototype.getArea=function(){return this.getWidth()*this.getHeight()},Wl.prototype.equals=function(e){if(!(e instanceof Wl))return!1;var t=e;return this.isNull()?t.isNull():this._maxx===t.getMaxX()&&this._maxy===t.getMaxY()&&this._minx===t.getMinX()&&this._miny===t.getMinY()},Wl.prototype.intersection=function(e){if(this.isNull()||e.isNull()||!this.intersects(e))return new Wl;var t=this._minx>e._minx?this._minx:e._minx,n=this._miny>e._miny?this._miny:e._miny,r=this._maxx<e._maxx?this._maxx:e._maxx,i=this._maxy<e._maxy?this._maxy:e._maxy;return new Wl(t,r,n,i)},Wl.prototype.isNull=function(){return this._maxx<this._minx},Wl.prototype.getMaxX=function(){return this._maxx},Wl.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof Sl){var e=arguments[0];return this.covers(e.x,e.y)}if(arguments[0]instanceof Wl){var t=arguments[0];return!this.isNull()&&!t.isNull()&&t.getMinX()>=this._minx&&t.getMaxX()<=this._maxx&&t.getMinY()>=this._miny&&t.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&r>=this._miny&&r<=this._maxy}},Wl.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof Wl){var e=arguments[0];return!this.isNull()&&!e.isNull()&&!(e._minx>this._maxx||e._maxx<this._minx||e._miny>this._maxy||e._maxy<this._miny)}if(arguments[0]instanceof Sl){var t=arguments[0];return this.intersects(t.x,t.y)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||r>this._maxy||r<this._miny)}},Wl.prototype.getMinY=function(){return this._miny},Wl.prototype.getMinX=function(){return this._minx},Wl.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof Sl){var e=arguments[0];this.expandToInclude(e.x,e.y)}else if(arguments[0]instanceof Wl){var t=arguments[0];if(t.isNull())return null;this.isNull()?(this._minx=t.getMinX(),this._maxx=t.getMaxX(),this._miny=t.getMinY(),this._maxy=t.getMaxY()):(t._minx<this._minx&&(this._minx=t._minx),t._maxx>this._maxx&&(this._maxx=t._maxx),t._miny<this._miny&&(this._miny=t._miny),t._maxy>this._maxy&&(this._maxy=t._maxy))}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=r,this._maxy=r):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),r<this._miny&&(this._miny=r),r>this._maxy&&(this._maxy=r))}},Wl.prototype.minExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return e<t?e:t},Wl.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},Wl.prototype.compareTo=function(e){var t=e;return this.isNull()?t.isNull()?0:-1:t.isNull()?1:this._minx<t._minx?-1:this._minx>t._minx?1:this._miny<t._miny?-1:this._miny>t._miny?1:this._maxx<t._maxx?-1:this._maxx>t._maxx?1:this._maxy<t._maxy?-1:this._maxy>t._maxy?1:0},Wl.prototype.translate=function(e,t){if(this.isNull())return null;this.init(this.getMinX()+e,this.getMaxX()+e,this.getMinY()+t,this.getMaxY()+t)},Wl.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},Wl.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},Wl.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},Wl.prototype.maxExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return e>t?e:t},Wl.prototype.expandBy=function(){if(1===arguments.length){var e=arguments[0];this.expandBy(e,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=t,this._maxx+=t,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},Wl.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof Wl){var e=arguments[0];return this.covers(e)}if(arguments[0]instanceof Sl){var t=arguments[0];return this.covers(t)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},Wl.prototype.centre=function(){return this.isNull()?null:new Sl((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},Wl.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof Sl){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof Wl){var t=arguments[0];this._minx=t._minx,this._maxx=t._maxx,this._miny=t._miny,this._maxy=t._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];i<o?(this._minx=i,this._maxx=o):(this._minx=o,this._maxx=i),a<s?(this._miny=a,this._maxy=s):(this._miny=s,this._maxy=a)}},Wl.prototype.getMaxY=function(){return this._maxy},Wl.prototype.distance=function(e){if(this.intersects(e))return 0;var t=0;this._maxx<e._minx?t=e._minx-this._maxx:this._minx>e._maxx&&(t=this._minx-e._maxx);var n=0;return this._maxy<e._miny?n=e._miny-this._maxy:this._miny>e._maxy&&(n=this._miny-e._maxy),0===t?n:0===n?t:Math.sqrt(t*t+n*n)},Wl.prototype.hashCode=function(){var e=17;return e=37*e+Sl.hashCode(this._minx),e=37*e+Sl.hashCode(this._maxx),e=37*e+Sl.hashCode(this._miny),37*e+Sl.hashCode(this._maxy)},Wl.prototype.interfaces_=function(){return[_l,Ii]},Wl.prototype.getClass=function(){return Wl},Wl.intersects=function(){if(3===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2];return n.x>=(e.x<t.x?e.x:t.x)&&n.x<=(e.x>t.x?e.x:t.x)&&n.y>=(e.y<t.y?e.y:t.y)&&n.y<=(e.y>t.y?e.y:t.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3],s=Math.min(o.x,a.x),l=Math.max(o.x,a.x),c=Math.min(r.x,i.x),u=Math.max(r.x,i.x);return!(c>l)&&!(u<s)&&(s=Math.min(o.y,a.y),l=Math.max(o.y,a.y),c=Math.min(r.y,i.y),u=Math.max(r.y,i.y),!(c>l)&&!(u<s))}},Hl.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(Wl,Hl);var $l={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},Kl=function(e){this.geometryFactory=e||new vu};Kl.prototype.read=function(e){var t,n,r;e=e.replace(/[\n\r]/g," ");var i=$l.typeStr.exec(e);if(-1!==e.search("EMPTY")&&((i=$l.emptyTypeStr.exec(e))[2]=void 0),i&&(n=i[1].toLowerCase(),r=i[2],Yl[n]&&(t=Yl[n].apply(this,[r]))),void 0===t)throw new Error("Could not parse WKT "+e);return t},Kl.prototype.write=function(e){return this.extractGeometry(e)},Kl.prototype.extractGeometry=function(e){var t=e.getGeometryType().toLowerCase();if(!Xl[t])return null;var n=t.toUpperCase();return e.isEmpty()?n+" EMPTY":n+"("+Xl[t].apply(this,[e])+")"};var Xl={coordinate:function(e){return e.x+" "+e.y},point:function(e){return Xl.coordinate.call(this,e._coordinates._coordinates[0])},multipoint:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+Xl.point.apply(this,[e._geometries[n]])+")");return t.join(",")},linestring:function(e){for(var t=[],n=0,r=e._points._coordinates.length;n<r;++n)t.push(Xl.coordinate.apply(this,[e._points._coordinates[n]]));return t.join(",")},linearring:function(e){for(var t=[],n=0,r=e._points._coordinates.length;n<r;++n)t.push(Xl.coordinate.apply(this,[e._points._coordinates[n]]));return t.join(",")},multilinestring:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+Xl.linestring.apply(this,[e._geometries[n]])+")");return t.join(",")},polygon:function(e){var t=[];t.push("("+Xl.linestring.apply(this,[e._shell])+")");for(var n=0,r=e._holes.length;n<r;++n)t.push("("+Xl.linestring.apply(this,[e._holes[n]])+")");return t.join(",")},multipolygon:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+Xl.polygon.apply(this,[e._geometries[n]])+")");return t.join(",")},geometrycollection:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push(this.extractGeometry(e._geometries[n]));return t.join(",")}},Yl={point:function(e){if(void 0===e)return this.geometryFactory.createPoint();var t=e.trim().split($l.spaces);return this.geometryFactory.createPoint(new Sl(Number.parseFloat(t[0]),Number.parseFloat(t[1])))},multipoint:function(e){if(void 0===e)return this.geometryFactory.createMultiPoint();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace($l.trimParens,"$1"),r.push(Yl.point.apply(this,[t]));return this.geometryFactory.createMultiPoint(r)},linestring:function(e){if(void 0===e)return this.geometryFactory.createLineString();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].trim().split($l.spaces),r.push(new Sl(Number.parseFloat(t[0]),Number.parseFloat(t[1])));return this.geometryFactory.createLineString(r)},linearring:function(e){if(void 0===e)return this.geometryFactory.createLinearRing();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].trim().split($l.spaces),r.push(new Sl(Number.parseFloat(t[0]),Number.parseFloat(t[1])));return this.geometryFactory.createLinearRing(r)},multilinestring:function(e){if(void 0===e)return this.geometryFactory.createMultiLineString();for(var t,n=e.trim().split($l.parenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace($l.trimParens,"$1"),r.push(Yl.linestring.apply(this,[t]));return this.geometryFactory.createMultiLineString(r)},polygon:function(e){if(void 0===e)return this.geometryFactory.createPolygon();for(var t,n,r,i,o=e.trim().split($l.parenComma),a=[],s=0,l=o.length;s<l;++s)t=o[s].replace($l.trimParens,"$1"),n=Yl.linestring.apply(this,[t]),r=this.geometryFactory.createLinearRing(n._points),0===s?i=r:a.push(r);return this.geometryFactory.createPolygon(i,a)},multipolygon:function(e){if(void 0===e)return this.geometryFactory.createMultiPolygon();for(var t,n=e.trim().split($l.doubleParenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace($l.trimParens,"$1"),r.push(Yl.polygon.apply(this,[t]));return this.geometryFactory.createMultiPolygon(r)},geometrycollection:function(e){if(void 0===e)return this.geometryFactory.createGeometryCollection();for(var t=(e=e.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],r=0,i=t.length;r<i;++r)n.push(this.read(t[r]));return this.geometryFactory.createGeometryCollection(n)}},Jl=function(e){this.parser=new Kl(e)};Jl.prototype.write=function(e){return this.parser.write(e)},Jl.toLineString=function(e,t){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+e.x+" "+e.y+", "+t.x+" "+t.y+" )"};var Ql=function(e){function t(t){e.call(this,t),this.name="RuntimeException",this.message=t,this.stack=(new e).stack}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Zl=function(e){function t(){if(e.call(this),0===arguments.length)e.call(this);else if(1===arguments.length){var t=arguments[0];e.call(this,t)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ql),ec=function(){};ec.prototype.interfaces_=function(){return[]},ec.prototype.getClass=function(){return ec},ec.shouldNeverReachHere=function(){if(0===arguments.length)ec.shouldNeverReachHere(null);else if(1===arguments.length){var e=arguments[0];throw new Zl("Should never reach here"+(null!==e?": "+e:""))}},ec.isTrue=function(){var e,t;if(1===arguments.length)e=arguments[0],ec.isTrue(e,null);else if(2===arguments.length&&(e=arguments[0],t=arguments[1],!e))throw null===t?new Zl:new Zl(t)},ec.equals=function(){var e,t,n;if(2===arguments.length)e=arguments[0],t=arguments[1],ec.equals(e,t,null);else if(3===arguments.length&&(e=arguments[0],t=arguments[1],n=arguments[2],!t.equals(e)))throw new Zl("Expected "+e+" but encountered "+t+(null!==n?": "+n:""))};var tc=function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new Sl,this._intPt[1]=new Sl,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},nc={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};tc.prototype.getIndexAlongSegment=function(e,t){return this.computeIntLineIndex(),this._intLineIndex[e][t]},tc.prototype.getTopologySummary=function(){var e=new Pl;return this.isEndPoint()&&e.append(" endpoint"),this._isProper&&e.append(" proper"),this.isCollinear()&&e.append(" collinear"),e.toString()},tc.prototype.computeIntersection=function(e,t,n,r){this._inputLines[0][0]=e,this._inputLines[0][1]=t,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(e,t,n,r)},tc.prototype.getIntersectionNum=function(){return this._result},tc.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var e=arguments[0];this.getEdgeDistance(e,0)>this.getEdgeDistance(e,1)?(this._intLineIndex[e][0]=0,this._intLineIndex[e][1]=1):(this._intLineIndex[e][0]=1,this._intLineIndex[e][1]=0)}},tc.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},tc.prototype.setPrecisionModel=function(e){this._precisionModel=e},tc.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var e=arguments[0],t=0;t<this._result;t++)if(!this._intPt[t].equals2D(this._inputLines[e][0])&&!this._intPt[t].equals2D(this._inputLines[e][1]))return!0;return!1}},tc.prototype.getIntersection=function(e){return this._intPt[e]},tc.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},tc.prototype.hasIntersection=function(){return this._result!==tc.NO_INTERSECTION},tc.prototype.getEdgeDistance=function(e,t){return tc.computeEdgeDistance(this._intPt[t],this._inputLines[e][0],this._inputLines[e][1])},tc.prototype.isCollinear=function(){return this._result===tc.COLLINEAR_INTERSECTION},tc.prototype.toString=function(){return Jl.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+Jl.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},tc.prototype.getEndpoint=function(e,t){return this._inputLines[e][t]},tc.prototype.isIntersection=function(e){for(var t=0;t<this._result;t++)if(this._intPt[t].equals2D(e))return!0;return!1},tc.prototype.getIntersectionAlongSegment=function(e,t){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[e][t]]},tc.prototype.interfaces_=function(){return[]},tc.prototype.getClass=function(){return tc},tc.computeEdgeDistance=function(e,t,n){var r=Math.abs(n.x-t.x),i=Math.abs(n.y-t.y),o=-1;if(e.equals(t))o=0;else if(e.equals(n))o=r>i?r:i;else{var a=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);0!==(o=r>i?a:s)||e.equals(t)||(o=Math.max(a,s))}return ec.isTrue(!(0===o&&!e.equals(t)),"Bad distance calculation"),o},tc.nonRobustComputeEdgeDistance=function(e,t,n){var r=e.x-t.x,i=e.y-t.y,o=Math.sqrt(r*r+i*i);return ec.isTrue(!(0===o&&!e.equals(t)),"Invalid distance calculation"),o},nc.DONT_INTERSECT.get=function(){return 0},nc.DO_INTERSECT.get=function(){return 1},nc.COLLINEAR.get=function(){return 2},nc.NO_INTERSECTION.get=function(){return 0},nc.POINT_INTERSECTION.get=function(){return 1},nc.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(tc,nc);var rc=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isInSegmentEnvelopes=function(e){var t=new Wl(this._inputLines[0][0],this._inputLines[0][1]),n=new Wl(this._inputLines[1][0],this._inputLines[1][1]);return t.contains(e)&&n.contains(e)},t.prototype.computeIntersection=function(){if(3!==arguments.length)return e.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],n=arguments[1],r=arguments[2];if(this._isProper=!1,Wl.intersects(n,r,t)&&0===ac.orientationIndex(n,r,t)&&0===ac.orientationIndex(r,n,t))return this._isProper=!0,(t.equals(n)||t.equals(r))&&(this._isProper=!1),this._result=e.POINT_INTERSECTION,null;this._result=e.NO_INTERSECTION},t.prototype.normalizeToMinimum=function(e,t,n,r,i){i.x=this.smallestInAbsValue(e.x,t.x,n.x,r.x),i.y=this.smallestInAbsValue(e.y,t.y,n.y,r.y),e.x-=i.x,e.y-=i.y,t.x-=i.x,t.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},t.prototype.safeHCoordinateIntersection=function(e,n,r,i){var o=null;try{o=Vl.intersection(e,n,r,i)}catch(a){if(!(a instanceof Ul))throw a;o=t.nearestEndpoint(e,n,r,i)}return o},t.prototype.intersection=function(e,n,r,i){var o=this.intersectionWithNormalization(e,n,r,i);return this.isInSegmentEnvelopes(o)||(o=new Sl(t.nearestEndpoint(e,n,r,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},t.prototype.smallestInAbsValue=function(e,t,n,r){var i=e,o=Math.abs(i);return Math.abs(t)<o&&(i=t,o=Math.abs(t)),Math.abs(n)<o&&(i=n,o=Math.abs(n)),Math.abs(r)<o&&(i=r),i},t.prototype.checkDD=function(e,t,n,r,i){var o=jl.intersection(e,t,n,r),a=this.isInSegmentEnvelopes(o);Gl.out.println("DD in env = "+a+"  --------------------- "+o),i.distance(o)>1e-4&&Gl.out.println("Distance = "+i.distance(o))},t.prototype.intersectionWithNormalization=function(e,t,n,r){var i=new Sl(e),o=new Sl(t),a=new Sl(n),s=new Sl(r),l=new Sl;this.normalizeToEnvCentre(i,o,a,s,l);var c=this.safeHCoordinateIntersection(i,o,a,s);return c.x+=l.x,c.y+=l.y,c},t.prototype.computeCollinearIntersection=function(t,n,r,i){var o=Wl.intersects(t,n,r),a=Wl.intersects(t,n,i),s=Wl.intersects(r,i,t),l=Wl.intersects(r,i,n);return o&&a?(this._intPt[0]=r,this._intPt[1]=i,e.COLLINEAR_INTERSECTION):s&&l?(this._intPt[0]=t,this._intPt[1]=n,e.COLLINEAR_INTERSECTION):o&&s?(this._intPt[0]=r,this._intPt[1]=t,!r.equals(t)||a||l?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):o&&l?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||a||s?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):a&&s?(this._intPt[0]=i,this._intPt[1]=t,!i.equals(t)||o||l?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):a&&l?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||o||s?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):e.NO_INTERSECTION},t.prototype.normalizeToEnvCentre=function(e,t,n,r,i){var o=e.x<t.x?e.x:t.x,a=e.y<t.y?e.y:t.y,s=e.x>t.x?e.x:t.x,l=e.y>t.y?e.y:t.y,c=n.x<r.x?n.x:r.x,u=n.y<r.y?n.y:r.y,d=n.x>r.x?n.x:r.x,f=n.y>r.y?n.y:r.y,h=((o>c?o:c)+(s<d?s:d))/2,p=((a>u?a:u)+(l<f?l:f))/2;i.x=h,i.y=p,e.x-=i.x,e.y-=i.y,t.x-=i.x,t.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},t.prototype.computeIntersect=function(t,n,r,i){if(this._isProper=!1,!Wl.intersects(t,n,r,i))return e.NO_INTERSECTION;var o=ac.orientationIndex(t,n,r),a=ac.orientationIndex(t,n,i);if(o>0&&a>0||o<0&&a<0)return e.NO_INTERSECTION;var s=ac.orientationIndex(r,i,t),l=ac.orientationIndex(r,i,n);return s>0&&l>0||s<0&&l<0?e.NO_INTERSECTION:0===o&&0===a&&0===s&&0===l?this.computeCollinearIntersection(t,n,r,i):(0===o||0===a||0===s||0===l?(this._isProper=!1,t.equals2D(r)||t.equals2D(i)?this._intPt[0]=t:n.equals2D(r)||n.equals2D(i)?this._intPt[0]=n:0===o?this._intPt[0]=new Sl(r):0===a?this._intPt[0]=new Sl(i):0===s?this._intPt[0]=new Sl(t):0===l&&(this._intPt[0]=new Sl(n))):(this._isProper=!0,this._intPt[0]=this.intersection(t,n,r,i)),e.POINT_INTERSECTION)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.nearestEndpoint=function(e,t,n,r){var i=e,o=ac.distancePointLine(e,n,r),a=ac.distancePointLine(t,n,r);return a<o&&(o=a,i=t),(a=ac.distancePointLine(n,e,t))<o&&(o=a,i=n),(a=ac.distancePointLine(r,e,t))<o&&(o=a,i=r),i},t}(tc),ic=function(){};ic.prototype.interfaces_=function(){return[]},ic.prototype.getClass=function(){return ic},ic.orientationIndex=function(e,t,n){var r=t.x-e.x,i=t.y-e.y,o=n.x-t.x,a=n.y-t.y;return ic.signOfDet2x2(r,i,o,a)},ic.signOfDet2x2=function(e,t,n,r){var i=null,o=null,a=null;if(i=1,0===e||0===r)return 0===t||0===n?0:t>0?n>0?-i:i:n>0?i:-i;if(0===t||0===n)return r>0?e>0?i:-i:e>0?-i:i;if(t>0?r>0?t<=r||(i=-i,o=e,e=n,n=o,o=t,t=r,r=o):t<=-r?(i=-i,n=-n,r=-r):(o=e,e=-n,n=o,o=t,t=-r,r=o):r>0?-t<=r?(i=-i,e=-e,t=-t):(o=-e,e=n,n=o,o=-t,t=r,r=o):t>=r?(e=-e,t=-t,n=-n,r=-r):(i=-i,o=-e,e=-n,n=o,o=-t,t=-r,r=o),e>0){if(!(n>0))return i;if(!(e<=n))return i}else{if(n>0)return-i;if(!(e>=n))return-i;i=-i,e=-e,n=-n}for(;;){if(a=Math.floor(n/e),n-=a*e,(r-=a*t)<0)return-i;if(r>t)return i;if(e>n+n){if(t<r+r)return i}else{if(t>r+r)return-i;n=e-n,r=t-r,i=-i}if(0===r)return 0===n?0:-i;if(0===n)return i;if(a=Math.floor(e/n),e-=a*n,(t-=a*r)<0)return i;if(t>r)return-i;if(n>e+e){if(r<t+t)return-i}else{if(r>t+t)return i;e=n-e,t=r-t,i=-i}if(0===t)return 0===e?0:i;if(0===e)return-i}};var oc=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var e=arguments[0];this._p=e};oc.prototype.countSegment=function(e,t){if(e.x<this._p.x&&t.x<this._p.x)return null;if(this._p.x===t.x&&this._p.y===t.y)return this._isPointOnSegment=!0,null;if(e.y===this._p.y&&t.y===this._p.y){var n=e.x,r=t.x;return n>r&&(n=t.x,r=e.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(e.y>this._p.y&&t.y<=this._p.y||t.y>this._p.y&&e.y<=this._p.y){var i=e.x-this._p.x,o=e.y-this._p.y,a=t.x-this._p.x,s=t.y-this._p.y,l=ic.signOfDet2x2(i,o,a,s);if(0===l)return this._isPointOnSegment=!0,null;s<o&&(l=-l),l>0&&this._crossingCount++}},oc.prototype.isPointInPolygon=function(){return this.getLocation()!==Ol.EXTERIOR},oc.prototype.getLocation=function(){return this._isPointOnSegment?Ol.BOUNDARY:this._crossingCount%2==1?Ol.INTERIOR:Ol.EXTERIOR},oc.prototype.isOnSegment=function(){return this._isPointOnSegment},oc.prototype.interfaces_=function(){return[]},oc.prototype.getClass=function(){return oc},oc.locatePointInRing=function(){if(arguments[0]instanceof Sl&&Il(arguments[1],Bl)){for(var e=arguments[0],t=arguments[1],n=new oc(e),r=new Sl,i=new Sl,o=1;o<t.size();o++)if(t.getCoordinate(o,r),t.getCoordinate(o-1,i),n.countSegment(r,i),n.isOnSegment())return n.getLocation();return n.getLocation()}if(arguments[0]instanceof Sl&&arguments[1]instanceof Array){for(var a=arguments[0],s=arguments[1],l=new oc(a),c=1;c<s.length;c++){var u=s[c],d=s[c-1];if(l.countSegment(u,d),l.isOnSegment())return l.getLocation()}return l.getLocation()}};var ac=function(){},sc={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};ac.prototype.interfaces_=function(){return[]},ac.prototype.getClass=function(){return ac},ac.orientationIndex=function(e,t,n){return jl.orientationIndex(e,t,n)},ac.signedArea=function(){if(arguments[0]instanceof Array){var e=arguments[0];if(e.length<3)return 0;for(var t=0,n=e[0].x,r=1;r<e.length-1;r++){var i=e[r].x-n,o=e[r+1].y;t+=i*(e[r-1].y-o)}return t/2}if(Il(arguments[0],Bl)){var a=arguments[0],s=a.size();if(s<3)return 0;var l=new Sl,c=new Sl,u=new Sl;a.getCoordinate(0,c),a.getCoordinate(1,u);var d=c.x;u.x-=d;for(var f=0,h=1;h<s-1;h++)l.y=c.y,c.x=u.x,c.y=u.y,a.getCoordinate(h+1,u),u.x-=d,f+=c.x*(l.y-u.y);return f/2}},ac.distanceLineLine=function(e,t,n,r){if(e.equals(t))return ac.distancePointLine(e,n,r);if(n.equals(r))return ac.distancePointLine(r,e,t);var i=!1;if(Wl.intersects(e,t,n,r)){var o=(t.x-e.x)*(r.y-n.y)-(t.y-e.y)*(r.x-n.x);if(0===o)i=!0;else{var a=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),s=((e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y))/o,l=a/o;(l<0||l>1||s<0||s>1)&&(i=!0)}}else i=!0;return i?Al.min(ac.distancePointLine(e,n,r),ac.distancePointLine(t,n,r),ac.distancePointLine(n,e,t),ac.distancePointLine(r,e,t)):0},ac.isPointInRing=function(e,t){return ac.locatePointInRing(e,t)!==Ol.EXTERIOR},ac.computeLength=function(e){var t=e.size();if(t<=1)return 0;var n=0,r=new Sl;e.getCoordinate(0,r);for(var i=r.x,o=r.y,a=1;a<t;a++){e.getCoordinate(a,r);var s=r.x,l=r.y,c=s-i,u=l-o;n+=Math.sqrt(c*c+u*u),i=s,o=l}return n},ac.isCCW=function(e){var t=e.length-1;if(t<3)throw new vl("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=e[0],r=0,i=1;i<=t;i++){var o=e[i];o.y>n.y&&(n=o,r=i)}var a=r;do{(a-=1)<0&&(a=t)}while(e[a].equals2D(n)&&a!==r);var s=r;do{s=(s+1)%t}while(e[s].equals2D(n)&&s!==r);var l=e[a],c=e[s];if(l.equals2D(n)||c.equals2D(n)||l.equals2D(c))return!1;var u=ac.computeOrientation(l,n,c),d=!1;return d=0===u?l.x>c.x:u>0,d},ac.locatePointInRing=function(e,t){return oc.locatePointInRing(e,t)},ac.distancePointLinePerpendicular=function(e,t,n){var r=(n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y),i=((t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y))/r;return Math.abs(i)*Math.sqrt(r)},ac.computeOrientation=function(e,t,n){return ac.orientationIndex(e,t,n)},ac.distancePointLine=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];if(0===t.length)throw new vl("Line array must contain at least one vertex");for(var n=e.distance(t[0]),r=0;r<t.length-1;r++){var i=ac.distancePointLine(e,t[r],t[r+1]);i<n&&(n=i)}return n}if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];if(a.x===s.x&&a.y===s.y)return o.distance(a);var l=(s.x-a.x)*(s.x-a.x)+(s.y-a.y)*(s.y-a.y),c=((o.x-a.x)*(s.x-a.x)+(o.y-a.y)*(s.y-a.y))/l;if(c<=0)return o.distance(a);if(c>=1)return o.distance(s);var u=((a.y-o.y)*(s.x-a.x)-(a.x-o.x)*(s.y-a.y))/l;return Math.abs(u)*Math.sqrt(l)}},ac.isOnLine=function(e,t){for(var n=new rc,r=1;r<t.length;r++){var i=t[r-1],o=t[r];if(n.computeIntersection(e,i,o),n.hasIntersection())return!0}return!1},sc.CLOCKWISE.get=function(){return-1},sc.RIGHT.get=function(){return ac.CLOCKWISE},sc.COUNTERCLOCKWISE.get=function(){return 1},sc.LEFT.get=function(){return ac.COUNTERCLOCKWISE},sc.COLLINEAR.get=function(){return 0},sc.STRAIGHT.get=function(){return ac.COLLINEAR},Object.defineProperties(ac,sc);var lc=function(){};lc.prototype.filter=function(e){},lc.prototype.interfaces_=function(){return[]},lc.prototype.getClass=function(){return lc};var cc=function(){var e=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=e,this._SRID=e.getSRID()},uc={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};cc.prototype.isGeometryCollection=function(){return this.getSortIndex()===cc.SORTINDEX_GEOMETRYCOLLECTION},cc.prototype.getFactory=function(){return this._factory},cc.prototype.getGeometryN=function(e){return this},cc.prototype.getArea=function(){return 0},cc.prototype.isRectangle=function(){return!1},cc.prototype.equals=function(){if(arguments[0]instanceof cc){var e=arguments[0];return null!==e&&this.equalsTopo(e)}if(arguments[0]instanceof Object){var t=arguments[0];if(!(t instanceof cc))return!1;var n=t;return this.equalsExact(n)}},cc.prototype.equalsExact=function(e){return this===e||this.equalsExact(e,0)},cc.prototype.geometryChanged=function(){this.apply(cc.geometryChangedFilter)},cc.prototype.geometryChangedAction=function(){this._envelope=null},cc.prototype.equalsNorm=function(e){return null!==e&&this.norm().equalsExact(e.norm())},cc.prototype.getLength=function(){return 0},cc.prototype.getNumGeometries=function(){return 1},cc.prototype.compareTo=function(){if(1===arguments.length){var e=arguments[0],t=e;return this.getSortIndex()!==t.getSortIndex()?this.getSortIndex()-t.getSortIndex():this.isEmpty()&&t.isEmpty()?0:this.isEmpty()?-1:t.isEmpty()?1:this.compareToSameClass(e)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,r)}},cc.prototype.getUserData=function(){return this._userData},cc.prototype.getSRID=function(){return this._SRID},cc.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},cc.prototype.checkNotGeometryCollection=function(e){if(e.getSortIndex()===cc.SORTINDEX_GEOMETRYCOLLECTION)throw new vl("This method does not support GeometryCollection arguments")},cc.prototype.equal=function(e,t,n){return 0===n?e.equals(t):e.distance(t)<=n},cc.prototype.norm=function(){var e=this.copy();return e.normalize(),e},cc.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},cc.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new Wl(this._envelope)},cc.prototype.setSRID=function(e){this._SRID=e},cc.prototype.setUserData=function(e){this._userData=e},cc.prototype.compare=function(e,t){for(var n=e.iterator(),r=t.iterator();n.hasNext()&&r.hasNext();){var i=n.next(),o=r.next(),a=i.compareTo(o);if(0!==a)return a}return n.hasNext()?1:r.hasNext()?-1:0},cc.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},cc.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===cc.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===cc.SORTINDEX_MULTIPOINT||this.getSortIndex()===cc.SORTINDEX_MULTILINESTRING||this.getSortIndex()===cc.SORTINDEX_MULTIPOLYGON},cc.prototype.interfaces_=function(){return[wl,_l,Ii]},cc.prototype.getClass=function(){return cc},cc.hasNonEmptyElements=function(e){for(var t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},cc.hasNullElements=function(e){for(var t=0;t<e.length;t++)if(null===e[t])return!0;return!1},uc.serialVersionUID.get=function(){return 0x799ea46522854c00},uc.SORTINDEX_POINT.get=function(){return 0},uc.SORTINDEX_MULTIPOINT.get=function(){return 1},uc.SORTINDEX_LINESTRING.get=function(){return 2},uc.SORTINDEX_LINEARRING.get=function(){return 3},uc.SORTINDEX_MULTILINESTRING.get=function(){return 4},uc.SORTINDEX_POLYGON.get=function(){return 5},uc.SORTINDEX_MULTIPOLYGON.get=function(){return 6},uc.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},uc.geometryChangedFilter.get=function(){return dc},Object.defineProperties(cc,uc);var dc=function(){};dc.interfaces_=function(){return[lc]},dc.filter=function(e){e.geometryChangedAction()};var fc=function(){};fc.prototype.filter=function(e){},fc.prototype.interfaces_=function(){return[]},fc.prototype.getClass=function(){return fc};var hc=function(){},pc={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};hc.prototype.isInBoundary=function(e){},hc.prototype.interfaces_=function(){return[]},hc.prototype.getClass=function(){return hc},pc.Mod2BoundaryNodeRule.get=function(){return mc},pc.EndPointBoundaryNodeRule.get=function(){return gc},pc.MultiValentEndPointBoundaryNodeRule.get=function(){return vc},pc.MonoValentEndPointBoundaryNodeRule.get=function(){return yc},pc.MOD2_BOUNDARY_RULE.get=function(){return new mc},pc.ENDPOINT_BOUNDARY_RULE.get=function(){return new gc},pc.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new vc},pc.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new yc},pc.OGC_SFS_BOUNDARY_RULE.get=function(){return hc.MOD2_BOUNDARY_RULE},Object.defineProperties(hc,pc);var mc=function(){};mc.prototype.isInBoundary=function(e){return e%2==1},mc.prototype.interfaces_=function(){return[hc]},mc.prototype.getClass=function(){return mc};var gc=function(){};gc.prototype.isInBoundary=function(e){return e>0},gc.prototype.interfaces_=function(){return[hc]},gc.prototype.getClass=function(){return gc};var vc=function(){};vc.prototype.isInBoundary=function(e){return e>1},vc.prototype.interfaces_=function(){return[hc]},vc.prototype.getClass=function(){return vc};var yc=function(){};yc.prototype.isInBoundary=function(e){return 1===e},yc.prototype.interfaces_=function(){return[hc]},yc.prototype.getClass=function(){return yc};var bc=function(){};bc.prototype.add=function(){},bc.prototype.addAll=function(){},bc.prototype.isEmpty=function(){},bc.prototype.iterator=function(){},bc.prototype.size=function(){},bc.prototype.toArray=function(){},bc.prototype.remove=function(){};var _c=function(e){function t(t){e.call(this),this.message=t||""}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={name:{configurable:!0}};return n.name.get=function(){return"IndexOutOfBoundsException"},Object.defineProperties(t,n),t}(Error),wc=function(){};wc.prototype.hasNext=function(){},wc.prototype.next=function(){},wc.prototype.remove=function(){};var xc=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(){},t.prototype.set=function(){},t.prototype.isEmpty=function(){},t}(bc);(Ai.prototype=new Error).name="NoSuchElementException";var Sc=function(e){function t(){e.call(this),this.array_=[],arguments[0]instanceof bc&&this.addAll(arguments[0])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.ensureCapacity=function(){},t.prototype.interfaces_=function(){return[e,bc]},t.prototype.add=function(e){return 1===arguments.length?this.array_.push(e):this.array_.splice(arguments[0],arguments[1]),!0},t.prototype.clear=function(){this.array_=[]},t.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},t.prototype.set=function(e,t){var n=this.array_[e];return this.array_[e]=t,n},t.prototype.iterator=function(){return new Cc(this)},t.prototype.get=function(e){if(e<0||e>=this.size())throw new _c;return this.array_[e]},t.prototype.isEmpty=function(){return 0===this.array_.length},t.prototype.size=function(){return this.array_.length},t.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},t.prototype.remove=function(e){for(var t=!1,n=0,r=this.array_.length;n<r;n++)if(this.array_[n]===e){this.array_.splice(n,1),t=!0;break}return t},t}(xc),Cc=function(e){function t(t){e.call(this),this.arrayList_=t,this.position_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new Ai;return this.arrayList_.get(this.position_++)},t.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},t.prototype.set=function(e){return this.arrayList_.set(this.position_-1,e)},t.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},t}(wc),Ec=function(e){function t(){if(e.call(this),0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.ensureCapacity(n.length),this.add(n,r)}}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={coordArrayType:{configurable:!0}};return n.coordArrayType.get=function(){return new Array(0).fill(null)},t.prototype.getCoordinate=function(e){return this.get(e)},t.prototype.addAll=function(){if(2===arguments.length){for(var t=arguments[0],n=arguments[1],r=!1,i=t.iterator();i.hasNext();)this.add(i.next(),n),r=!0;return r}return e.prototype.addAll.apply(this,arguments)},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=0;n<this.size();n++)t.add(n,this.get(n).copy());return t},t.prototype.toCoordinateArray=function(){return this.toArray(t.coordArrayType)},t.prototype.add=function(){if(1===arguments.length){var t=arguments[0];e.prototype.add.call(this,t)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var n=arguments[0],r=arguments[1];return this.add(n,r,!0),!0}if(arguments[0]instanceof Sl&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(i))return null;e.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1];return this.add(o,a),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var s=arguments[0],l=arguments[1];if(arguments[2])for(var c=0;c<s.length;c++)this.add(s[c],l);else for(var u=s.length-1;u>=0;u--)this.add(s[u],l);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof Sl){var d=arguments[0],f=arguments[1];if(!arguments[2]){var h=this.size();if(h>0){if(d>0&&this.get(d-1).equals2D(f))return null;if(d<h&&this.get(d).equals2D(f))return null}}e.prototype.add.call(this,d,f)}}else if(4===arguments.length){var p=arguments[0],m=arguments[1],g=arguments[2],v=arguments[3],y=1;g>v&&(y=-1);for(var b=g;b!==v;b+=y)this.add(p[b],m);return!0}},t.prototype.closeRing=function(){this.size()>0&&this.add(new Sl(this.get(0)),!1)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},Object.defineProperties(t,n),t}(Sc),kc=function(){},Oc={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};Oc.ForwardComparator.get=function(){return Tc},Oc.BidirectionalComparator.get=function(){return Ic},Oc.coordArrayType.get=function(){return new Array(0).fill(null)},kc.prototype.interfaces_=function(){return[]},kc.prototype.getClass=function(){return kc},kc.isRing=function(e){return!(e.length<4)&&!!e[0].equals2D(e[e.length-1])},kc.ptNotInList=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(kc.indexOf(r,t)<0)return r}return null},kc.scroll=function(e,t){var n=kc.indexOf(t,e);if(n<0)return null;var r=new Array(e.length).fill(null);Gl.arraycopy(e,n,r,0,e.length-n),Gl.arraycopy(e,0,r,e.length-n,n),Gl.arraycopy(r,0,e,0,e.length)},kc.equals=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];if(e===t)return!0;if(null===e||null===t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].equals(t[n]))return!1;return!0}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(r===i)return!0;if(null===r||null===i)return!1;if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(0!==o.compare(r[a],i[a]))return!1;return!0}},kc.intersection=function(e,t){for(var n=new Ec,r=0;r<e.length;r++)t.intersects(e[r])&&n.add(e[r],!0);return n.toCoordinateArray()},kc.hasRepeatedPoints=function(e){for(var t=1;t<e.length;t++)if(e[t-1].equals(e[t]))return!0;return!1},kc.removeRepeatedPoints=function(e){return kc.hasRepeatedPoints(e)?new Ec(e,!1).toCoordinateArray():e},kc.reverse=function(e){for(var t=e.length-1,n=Math.trunc(t/2),r=0;r<=n;r++){var i=e[r];e[r]=e[t-r],e[t-r]=i}},kc.removeNull=function(e){for(var t=0,n=0;n<e.length;n++)null!==e[n]&&t++;var r=new Array(t).fill(null);if(0===t)return r;for(var i=0,o=0;o<e.length;o++)null!==e[o]&&(r[i++]=e[o]);return r},kc.copyDeep=function(){if(1===arguments.length){for(var e=arguments[0],t=new Array(e.length).fill(null),n=0;n<e.length;n++)t[n]=new Sl(e[n]);return t}if(5===arguments.length)for(var r=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3],s=arguments[4],l=0;l<s;l++)o[a+l]=new Sl(r[i+l])},kc.isEqualReversed=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[e.length-n-1];if(0!==r.compareTo(i))return!1}return!0},kc.envelope=function(e){for(var t=new Wl,n=0;n<e.length;n++)t.expandToInclude(e[n]);return t},kc.toCoordinateArray=function(e){return e.toArray(kc.coordArrayType)},kc.atLeastNCoordinatesOrNothing=function(e,t){return t.length>=e?t:[]},kc.indexOf=function(e,t){for(var n=0;n<t.length;n++)if(e.equals(t[n]))return n;return-1},kc.increasingDirection=function(e){for(var t=0;t<Math.trunc(e.length/2);t++){var n=e.length-1-t,r=e[t].compareTo(e[n]);if(0!==r)return r}return 1},kc.compare=function(e,t){for(var n=0;n<e.length&&n<t.length;){var r=e[n].compareTo(t[n]);if(0!==r)return r;n++}return n<t.length?-1:n<e.length?1:0},kc.minCoordinate=function(e){for(var t=null,n=0;n<e.length;n++)(null===t||t.compareTo(e[n])>0)&&(t=e[n]);return t},kc.extract=function(e,t,n){t=Al.clamp(t,0,e.length);var r=(n=Al.clamp(n,-1,e.length))-t+1;n<0&&(r=0),t>=e.length&&(r=0),n<t&&(r=0);var i=new Array(r).fill(null);if(0===r)return i;for(var o=0,a=t;a<=n;a++)i[o++]=e[a];return i},Object.defineProperties(kc,Oc);var Tc=function(){};Tc.prototype.compare=function(e,t){return kc.compare(e,t)},Tc.prototype.interfaces_=function(){return[xl]},Tc.prototype.getClass=function(){return Tc};var Ic=function(){};Ic.prototype.compare=function(e,t){var n=e,r=t;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;var i=kc.compare(n,r);return kc.isEqualReversed(n,r)?0:i},Ic.prototype.OLDcompare=function(e,t){var n=e,r=t;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;for(var i=kc.increasingDirection(n),o=kc.increasingDirection(r),a=i>0?0:n.length-1,s=o>0?0:n.length-1,l=0;l<n.length;l++){var c=n[a].compareTo(r[s]);if(0!==c)return c;a+=i,s+=o}return 0},Ic.prototype.interfaces_=function(){return[xl]},Ic.prototype.getClass=function(){return Ic};var Ac=function(){};Ac.prototype.get=function(){},Ac.prototype.put=function(){},Ac.prototype.size=function(){},Ac.prototype.values=function(){},Ac.prototype.entrySet=function(){};var Rc=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ac);(Ri.prototype=new Error).name="OperationNotSupported",(Pi.prototype=new bc).contains=function(){};var Pc=function(e){function t(){e.call(this),this.array_=[],arguments[0]instanceof bc&&this.addAll(arguments[0])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.contains=function(e){for(var t=0,n=this.array_.length;t<n;t++)if(this.array_[t]===e)return!0;return!1},t.prototype.add=function(e){return!this.contains(e)&&(this.array_.push(e),!0)},t.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},t.prototype.remove=function(e){throw new Error},t.prototype.size=function(){return this.array_.length},t.prototype.isEmpty=function(){return 0===this.array_.length},t.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},t.prototype.iterator=function(){return new Mc(this)},t}(Pi),Mc=function(e){function t(t){e.call(this),this.hashSet_=t,this.position_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new Ai;return this.hashSet_.array_[this.position_++]},t.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},t.prototype.remove=function(){throw new Ri},t}(wc),Nc=0;(Fi.prototype=new Rc).get=function(e){for(var t=this.root_;null!==t;){var n=e.compareTo(t.key);if(n<0)t=t.left;else{if(!(n>0))return t.value;t=t.right}}return null},Fi.prototype.put=function(e,t){if(null===this.root_)return this.root_={key:e,value:t,left:null,right:null,parent:null,color:Nc,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=e.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=t,o}i=i.right}}while(null!==i);var a={key:e,left:null,right:null,value:t,parent:n,color:Nc,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=a:n.right=a,this.fixAfterInsertion(a),this.size_++,null},Fi.prototype.fixAfterInsertion=function(e){for(e.color=1;null!=e&&e!==this.root_&&1===e.parent.color;)if(Ni(e)===Di(Ni(Ni(e)))){var t=ji(Ni(Ni(e)));1===Mi(t)?(Li(Ni(e),Nc),Li(t,Nc),Li(Ni(Ni(e)),1),e=Ni(Ni(e))):(e===ji(Ni(e))&&(e=Ni(e),this.rotateLeft(e)),Li(Ni(e),Nc),Li(Ni(Ni(e)),1),this.rotateRight(Ni(Ni(e))))}else{var n=Di(Ni(Ni(e)));1===Mi(n)?(Li(Ni(e),Nc),Li(n,Nc),Li(Ni(Ni(e)),1),e=Ni(Ni(e))):(e===Di(Ni(e))&&(e=Ni(e),this.rotateRight(e)),Li(Ni(e),Nc),Li(Ni(Ni(e)),1),this.rotateLeft(Ni(Ni(e))))}this.root_.color=Nc},Fi.prototype.values=function(){var e=new Sc,t=this.getFirstEntry();if(null!==t)for(e.add(t.value);null!==(t=Fi.successor(t));)e.add(t.value);return e},Fi.prototype.entrySet=function(){var e=new Pc,t=this.getFirstEntry();if(null!==t)for(e.add(t);null!==(t=Fi.successor(t));)e.add(t);return e},Fi.prototype.rotateLeft=function(e){if(null!=e){var t=e.right;e.right=t.left,null!=t.left&&(t.left.parent=e),t.parent=e.parent,null===e.parent?this.root_=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}},Fi.prototype.rotateRight=function(e){if(null!=e){var t=e.left;e.left=t.right,null!=t.right&&(t.right.parent=e),t.parent=e.parent,null===e.parent?this.root_=t:e.parent.right===e?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}},Fi.prototype.getFirstEntry=function(){var e=this.root_;if(null!=e)for(;null!=e.left;)e=e.left;return e},Fi.successor=function(e){if(null===e)return null;if(null!==e.right){for(var t=e.right;null!==t.left;)t=t.left;return t}for(var n=e.parent,r=e;null!==n&&r===n.right;)r=n,n=n.parent;return n},Fi.prototype.size=function(){return this.size_};var Lc=function(){};Lc.prototype.interfaces_=function(){return[]},Lc.prototype.getClass=function(){return Lc},Bi.prototype=new Pi,(qi.prototype=new Bi).contains=function(e){for(var t=0,n=this.array_.length;t<n;t++)if(0===this.array_[t].compareTo(e))return!0;return!1},qi.prototype.add=function(e){if(this.contains(e))return!1;for(var t=0,n=this.array_.length;t<n;t++)if(1===this.array_[t].compareTo(e))return this.array_.splice(t,0,e),!0;return this.array_.push(e),!0},qi.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},qi.prototype.remove=function(e){throw new Ri},qi.prototype.size=function(){return this.array_.length},qi.prototype.isEmpty=function(){return 0===this.array_.length},qi.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},qi.prototype.iterator=function(){return new Dc(this)};var Dc=function(e){this.treeSet_=e,this.position_=0};Dc.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new Ai;return this.treeSet_.array_[this.position_++]},Dc.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},Dc.prototype.remove=function(){throw new Ri};var jc=function(){};jc.sort=function(){var e,t,n,r,i=arguments[0];if(1===arguments.length)r=function(e,t){return e.compareTo(t)},i.sort(r);else if(2===arguments.length)n=arguments[1],r=function(e,t){return n.compare(e,t)},i.sort(r);else if(3===arguments.length){(t=i.slice(arguments[1],arguments[2])).sort();var o=i.slice(0,arguments[1]).concat(t,i.slice(arguments[2],i.length));for(i.splice(0,i.length),e=0;e<o.length;e++)i.push(o[e])}else if(4===arguments.length)for(t=i.slice(arguments[1],arguments[2]),n=arguments[3],r=function(e,t){return n.compare(e,t)},t.sort(r),o=i.slice(0,arguments[1]).concat(t,i.slice(arguments[2],i.length)),i.splice(0,i.length),e=0;e<o.length;e++)i.push(o[e])},jc.asList=function(e){for(var t=new Sc,n=0,r=e.length;n<r;n++)t.add(e[n]);return t};var Fc=function(){},Bc={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};Bc.P.get=function(){return 0},Bc.L.get=function(){return 1},Bc.A.get=function(){return 2},Bc.FALSE.get=function(){return-1},Bc.TRUE.get=function(){return-2},Bc.DONTCARE.get=function(){return-3},Bc.SYM_FALSE.get=function(){return"F"},Bc.SYM_TRUE.get=function(){return"T"},Bc.SYM_DONTCARE.get=function(){return"*"},Bc.SYM_P.get=function(){return"0"},Bc.SYM_L.get=function(){return"1"},Bc.SYM_A.get=function(){return"2"},Fc.prototype.interfaces_=function(){return[]},Fc.prototype.getClass=function(){return Fc},Fc.toDimensionSymbol=function(e){switch(e){case Fc.FALSE:return Fc.SYM_FALSE;case Fc.TRUE:return Fc.SYM_TRUE;case Fc.DONTCARE:return Fc.SYM_DONTCARE;case Fc.P:return Fc.SYM_P;case Fc.L:return Fc.SYM_L;case Fc.A:return Fc.SYM_A}throw new vl("Unknown dimension value: "+e)},Fc.toDimensionValue=function(e){switch(Nl.toUpperCase(e)){case Fc.SYM_FALSE:return Fc.FALSE;case Fc.SYM_TRUE:return Fc.TRUE;case Fc.SYM_DONTCARE:return Fc.DONTCARE;case Fc.SYM_P:return Fc.P;case Fc.SYM_L:return Fc.L;case Fc.SYM_A:return Fc.A}throw new vl("Unknown dimension symbol: "+e)},Object.defineProperties(Fc,Bc);var qc=function(){};qc.prototype.filter=function(e){},qc.prototype.interfaces_=function(){return[]},qc.prototype.getClass=function(){return qc};var zc=function(){};zc.prototype.filter=function(e,t){},zc.prototype.isDone=function(){},zc.prototype.isGeometryChanged=function(){},zc.prototype.interfaces_=function(){return[]},zc.prototype.getClass=function(){return zc};var Uc=function(e){function t(t,n){if(e.call(this,n),this._geometries=t||[],e.hasNullElements(this._geometries))throw new vl("geometries must not contain null elements")}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){for(var e=new Wl,t=0;t<this._geometries.length;t++)e.expandToInclude(this._geometries[t].getEnvelopeInternal());return e},t.prototype.getGeometryN=function(e){return this._geometries[e]},t.prototype.getSortIndex=function(){return e.SORTINDEX_GEOMETRYCOLLECTION},t.prototype.getCoordinates=function(){for(var e=new Array(this.getNumPoints()).fill(null),t=-1,n=0;n<this._geometries.length;n++)for(var r=this._geometries[n].getCoordinates(),i=0;i<r.length;i++)e[++t]=r[i];return e},t.prototype.getArea=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getArea();return e},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t;if(this._geometries.length!==r._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(r._geometries[i],n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){for(var e=0;e<this._geometries.length;e++)this._geometries[e].normalize();jc.sort(this._geometries)},t.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},t.prototype.getBoundaryDimension=function(){for(var e=Fc.FALSE,t=0;t<this._geometries.length;t++)e=Math.max(e,this._geometries[t].getBoundaryDimension());return e},t.prototype.getDimension=function(){for(var e=Fc.FALSE,t=0;t<this._geometries.length;t++)e=Math.max(e,this._geometries[t].getDimension());return e},t.prototype.getLength=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getLength();return e},t.prototype.getNumPoints=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getNumPoints();return e},t.prototype.getNumGeometries=function(){return this._geometries.length},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(t)},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0],t=new qi(jc.asList(this._geometries)),n=new qi(jc.asList(e._geometries));return this.compare(t,n)}if(2===arguments.length){for(var r=arguments[0],i=arguments[1],o=r,a=this.getNumGeometries(),s=o.getNumGeometries(),l=0;l<a&&l<s;){var c=this.getGeometryN(l),u=o.getGeometryN(l),d=c.compareToSameClass(u,i);if(0!==d)return d;l++}return l<a?1:l<s?-1:0}},t.prototype.apply=function(){if(Il(arguments[0],fc))for(var e=arguments[0],t=0;t<this._geometries.length;t++)this._geometries[t].apply(e);else if(Il(arguments[0],zc)){var n=arguments[0];if(0===this._geometries.length)return null;for(var r=0;r<this._geometries.length&&(this._geometries[r].apply(n),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else if(Il(arguments[0],qc)){var i=arguments[0];i.filter(this);for(var o=0;o<this._geometries.length;o++)this._geometries[o].apply(i)}else if(Il(arguments[0],lc)){var a=arguments[0];a.filter(this);for(var s=0;s<this._geometries.length;s++)this._geometries[s].apply(a)}},t.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),ec.shouldNeverReachHere(),null},t.prototype.clone=function(){var t=e.prototype.clone.call(this);t._geometries=new Array(this._geometries.length).fill(null);for(var n=0;n<this._geometries.length;n++)t._geometries[n]=this._geometries[n].clone();return t},t.prototype.getGeometryType=function(){return"GeometryCollection"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.isEmpty=function(){for(var e=0;e<this._geometries.length;e++)if(!this._geometries[e].isEmpty())return!1;return!0},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(t,n),t}(cc),Gc=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return cc.SORTINDEX_MULTILINESTRING},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return this.isClosed()?Fc.FALSE:0},t.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var e=0;e<this._geometries.length;e++)if(!this._geometries[e].isClosed())return!1;return!0},t.prototype.getDimension=function(){return 1},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[e-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(t)},t.prototype.getBoundary=function(){return new Vc(this).getBoundary()},t.prototype.getGeometryType=function(){return"MultiLineString"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Lc]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(t,n),t}(Uc),Vc=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var e=arguments[0],t=hc.MOD2_BOUNDARY_RULE;this._geom=e,this._geomFact=e.getFactory(),this._bnRule=t}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=r}};Vc.prototype.boundaryMultiLineString=function(e){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var t=this.computeBoundaryCoordinates(e);return 1===t.length?this._geomFact.createPoint(t[0]):this._geomFact.createMultiPointFromCoords(t)},Vc.prototype.getBoundary=function(){return this._geom instanceof Xc?this.boundaryLineString(this._geom):this._geom instanceof Gc?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},Vc.prototype.boundaryLineString=function(e){return this._geom.isEmpty()?this.getEmptyMultiPoint():e.isClosed()?this._bnRule.isInBoundary(2)?e.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([e.getStartPoint(),e.getEndPoint()])},Vc.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},Vc.prototype.computeBoundaryCoordinates=function(e){var t=new Sc;this._endpointMap=new Fi;for(var n=0;n<e.getNumGeometries();n++){var r=e.getGeometryN(n);0!==r.getNumPoints()&&(this.addEndpoint(r.getCoordinateN(0)),this.addEndpoint(r.getCoordinateN(r.getNumPoints()-1)))}for(var i=this._endpointMap.entrySet().iterator();i.hasNext();){var o=i.next(),a=o.getValue().count;this._bnRule.isInBoundary(a)&&t.add(o.getKey())}return kc.toCoordinateArray(t)},Vc.prototype.addEndpoint=function(e){var t=this._endpointMap.get(e);null===t&&(t=new Wc,this._endpointMap.put(e,t)),t.count++},Vc.prototype.interfaces_=function(){return[]},Vc.prototype.getClass=function(){return Vc},Vc.getBoundary=function(){if(1===arguments.length){var e=arguments[0];return new Vc(e).getBoundary()}if(2===arguments.length){var t=arguments[0],n=arguments[1];return new Vc(t,n).getBoundary()}};var Wc=function(){this.count=null};Wc.prototype.interfaces_=function(){return[]},Wc.prototype.getClass=function(){return Wc};var Hc=function(){},$c={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};Hc.prototype.interfaces_=function(){return[]},Hc.prototype.getClass=function(){return Hc},Hc.chars=function(e,t){for(var n=new Array(t).fill(null),r=0;r<t;r++)n[r]=e;return String(n)},Hc.getStackTrace=function(){if(1===arguments.length){var e=arguments[0],t=new function(){},n=new function(){}(t);return e.printStackTrace(n),t.toString()}if(2===arguments.length){for(var r=arguments[0],i=arguments[1],o="",a=new function(){}(new function(){}(Hc.getStackTrace(r))),s=0;s<i;s++)try{o+=a.readLine()+Hc.NEWLINE}catch(e){if(!(e instanceof zi))throw e;ec.shouldNeverReachHere()}return o}},Hc.split=function(e,t){for(var n=t.length,r=new Sc,i=""+e,o=i.indexOf(t);o>=0;){var a=i.substring(0,o);r.add(a),o=(i=i.substring(o+n)).indexOf(t)}i.length>0&&r.add(i);for(var s=new Array(r.size()).fill(null),l=0;l<s.length;l++)s[l]=r.get(l);return s},Hc.toString=function(){if(1===arguments.length){var e=arguments[0];return Hc.SIMPLE_ORDINATE_FORMAT.format(e)}},Hc.spaces=function(e){return Hc.chars(" ",e)},$c.NEWLINE.get=function(){return Gl.getProperty("line.separator")},$c.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(Hc,$c);var Kc=function(){};Kc.prototype.interfaces_=function(){return[]},Kc.prototype.getClass=function(){return Kc},Kc.copyCoord=function(e,t,n,r){for(var i=Math.min(e.getDimension(),n.getDimension()),o=0;o<i;o++)n.setOrdinate(r,o,e.getOrdinate(t,o))},Kc.isRing=function(e){var t=e.size();return 0===t||!(t<=3)&&e.getOrdinate(0,Bl.X)===e.getOrdinate(t-1,Bl.X)&&e.getOrdinate(0,Bl.Y)===e.getOrdinate(t-1,Bl.Y)},Kc.isEqual=function(e,t){var n=e.size();if(n!==t.size())return!1;for(var r=Math.min(e.getDimension(),t.getDimension()),i=0;i<n;i++)for(var o=0;o<r;o++){var a=e.getOrdinate(i,o),s=t.getOrdinate(i,o);if(e.getOrdinate(i,o)!==t.getOrdinate(i,o)&&(!yl.isNaN(a)||!yl.isNaN(s)))return!1}return!0},Kc.extend=function(e,t,n){var r=e.create(n,t.getDimension()),i=t.size();if(Kc.copy(t,0,r,0,i),i>0)for(var o=i;o<n;o++)Kc.copy(t,i-1,r,o,1);return r},Kc.reverse=function(e){for(var t=e.size()-1,n=Math.trunc(t/2),r=0;r<=n;r++)Kc.swap(e,r,t-r)},Kc.swap=function(e,t,n){if(t===n)return null;for(var r=0;r<e.getDimension();r++){var i=e.getOrdinate(t,r);e.setOrdinate(t,r,e.getOrdinate(n,r)),e.setOrdinate(n,r,i)}},Kc.copy=function(e,t,n,r,i){for(var o=0;o<i;o++)Kc.copyCoord(e,t+o,n,r+o)},Kc.toString=function(){if(1===arguments.length){var e=arguments[0],t=e.size();if(0===t)return"()";var n=e.getDimension(),r=new Pl;r.append("(");for(var i=0;i<t;i++){i>0&&r.append(" ");for(var o=0;o<n;o++)o>0&&r.append(","),r.append(Hc.toString(e.getOrdinate(i,o)))}return r.append(")"),r.toString()}},Kc.ensureValidRing=function(e,t){var n=t.size();return 0===n?t:n<=3?Kc.createClosedRing(e,t,4):t.getOrdinate(0,Bl.X)===t.getOrdinate(n-1,Bl.X)&&t.getOrdinate(0,Bl.Y)===t.getOrdinate(n-1,Bl.Y)?t:Kc.createClosedRing(e,t,n+1)},Kc.createClosedRing=function(e,t,n){var r=e.create(n,t.getDimension()),i=t.size();Kc.copy(t,0,r,0,i);for(var o=i;o<n;o++)Kc.copy(t,0,r,o,1);return r};var Xc=function(e){function t(t,n){e.call(this,n),this._points=null,this.init(t)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new Wl:this._points.expandEnvelope(new Wl)},t.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},t.prototype.getSortIndex=function(){return e.SORTINDEX_LINESTRING},t.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t;if(this._points.size()!==r._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),r._points.getCoordinate(i),n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){for(var e=0;e<Math.trunc(this._points.size()/2);e++){var t=this._points.size()-1-e;if(!this._points.getCoordinate(e).equals(this._points.getCoordinate(t)))return this._points.getCoordinate(e).compareTo(this._points.getCoordinate(t))>0&&Kc.reverse(this._points),null}},t.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},t.prototype.getBoundaryDimension=function(){return this.isClosed()?Fc.FALSE:0},t.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},t.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},t.prototype.getDimension=function(){return 1},t.prototype.getLength=function(){return ac.computeLength(this._points)},t.prototype.getNumPoints=function(){return this._points.size()},t.prototype.reverse=function(){var e=this._points.copy();return Kc.reverse(e),this.getFactory().createLineString(e)},t.prototype.compareToSameClass=function(){if(1===arguments.length){for(var e=arguments[0],t=0,n=0;t<this._points.size()&&n<e._points.size();){var r=this._points.getCoordinate(t).compareTo(e._points.getCoordinate(n));if(0!==r)return r;t++,n++}return t<this._points.size()?1:n<e._points.size()?-1:0}if(2===arguments.length){var i=arguments[0];return arguments[1].compare(this._points,i._points)}},t.prototype.apply=function(){if(Il(arguments[0],fc))for(var e=arguments[0],t=0;t<this._points.size();t++)e.filter(this._points.getCoordinate(t));else if(Il(arguments[0],zc)){var n=arguments[0];if(0===this._points.size())return null;for(var r=0;r<this._points.size()&&(n.filter(this._points,r),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else(Il(arguments[0],qc)||Il(arguments[0],lc))&&arguments[0].filter(this)},t.prototype.getBoundary=function(){return new Vc(this).getBoundary()},t.prototype.isEquivalentClass=function(e){return e instanceof t},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t._points=this._points.clone(),t},t.prototype.getCoordinateN=function(e){return this._points.getCoordinate(e)},t.prototype.getGeometryType=function(){return"LineString"},t.prototype.copy=function(){return new t(this._points.copy(),this._factory)},t.prototype.getCoordinateSequence=function(){return this._points},t.prototype.isEmpty=function(){return 0===this._points.size()},t.prototype.init=function(e){if(null===e&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),1===e.size())throw new vl("Invalid number of points in LineString (found "+e.size()+" - must be 0 or >= 2)");this._points=e},t.prototype.isCoordinate=function(e){for(var t=0;t<this._points.size();t++)if(this._points.getCoordinate(t).equals(e))return!0;return!1},t.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},t.prototype.getPointN=function(e){return this.getFactory().createPoint(this._points.getCoordinate(e))},t.prototype.interfaces_=function(){return[Lc]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(t,n),t}(cc),Yc=function(){};Yc.prototype.interfaces_=function(){return[]},Yc.prototype.getClass=function(){return Yc};var Jc=function(e){function t(t,n){e.call(this,n),this._coordinates=t||null,this.init(this._coordinates)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new Wl;var e=new Wl;return e.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),e},t.prototype.getSortIndex=function(){return e.SORTINDEX_POINT},t.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&(!(!this.isEmpty()||!t.isEmpty())||this.isEmpty()===t.isEmpty()&&this.equal(t.getCoordinate(),this.getCoordinate(),n))}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){},t.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},t.prototype.getBoundaryDimension=function(){return Fc.FALSE},t.prototype.getDimension=function(){return 0},t.prototype.getNumPoints=function(){return this.isEmpty()?0:1},t.prototype.reverse=function(){return this.copy()},t.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0];return this.getCoordinate().compareTo(e.getCoordinate())}if(2===arguments.length){var t=arguments[0];return arguments[1].compare(this._coordinates,t._coordinates)}},t.prototype.apply=function(){if(Il(arguments[0],fc)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this.getCoordinate())}else if(Il(arguments[0],zc)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this._coordinates,0),t.isGeometryChanged()&&this.geometryChanged()}else(Il(arguments[0],qc)||Il(arguments[0],lc))&&arguments[0].filter(this)},t.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t._coordinates=this._coordinates.clone(),t},t.prototype.getGeometryType=function(){return"Point"},t.prototype.copy=function(){return new t(this._coordinates.copy(),this._factory)},t.prototype.getCoordinateSequence=function(){return this._coordinates},t.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},t.prototype.isEmpty=function(){return 0===this._coordinates.size()},t.prototype.init=function(e){null===e&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),ec.isTrue(e.size()<=1),this._coordinates=e},t.prototype.isSimple=function(){return!0},t.prototype.interfaces_=function(){return[Yc]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(t,n),t}(cc),Qc=function(){};Qc.prototype.interfaces_=function(){return[]},Qc.prototype.getClass=function(){return Qc};var Zc=function(e){function t(t,n,r){if(e.call(this,r),this._shell=null,this._holes=null,null===t&&(t=this.getFactory().createLinearRing()),null===n&&(n=[]),e.hasNullElements(n))throw new vl("holes must not contain null elements");if(t.isEmpty()&&e.hasNonEmptyElements(n))throw new vl("shell is empty but holes are not");this._shell=t,this._holes=n}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},t.prototype.getSortIndex=function(){return e.SORTINDEX_POLYGON},t.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var e=new Array(this.getNumPoints()).fill(null),t=-1,n=this._shell.getCoordinates(),r=0;r<n.length;r++)e[++t]=n[r];for(var i=0;i<this._holes.length;i++)for(var o=this._holes[i].getCoordinates(),a=0;a<o.length;a++)e[++t]=o[a];return e},t.prototype.getArea=function(){var e=0;e+=Math.abs(ac.signedArea(this._shell.getCoordinateSequence()));for(var t=0;t<this._holes.length;t++)e-=Math.abs(ac.signedArea(this._holes[t].getCoordinateSequence()));return e},t.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var e=this._shell.getCoordinateSequence(),t=this.getEnvelopeInternal(),n=0;n<5;n++){var r=e.getX(n);if(r!==t.getMinX()&&r!==t.getMaxX())return!1;var i=e.getY(n);if(i!==t.getMinY()&&i!==t.getMaxY())return!1}for(var o=e.getX(0),a=e.getY(0),s=1;s<=4;s++){var l=e.getX(s),c=e.getY(s);if(l!==o===(c!==a))return!1;o=l,a=c}return!0},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t,i=this._shell,o=r._shell;if(!i.equalsExact(o,n))return!1;if(this._holes.length!==r._holes.length)return!1;for(var a=0;a<this._holes.length;a++)if(!this._holes[a].equalsExact(r._holes[a],n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var e=0;e<this._holes.length;e++)this.normalize(this._holes[e],!1);jc.sort(this._holes)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(t.isEmpty())return null;var r=new Array(t.getCoordinates().length-1).fill(null);Gl.arraycopy(t.getCoordinates(),0,r,0,r.length);var i=kc.minCoordinate(t.getCoordinates());kc.scroll(r,i),Gl.arraycopy(r,0,t.getCoordinates(),0,r.length),t.getCoordinates()[r.length]=r[0],ac.isCCW(t.getCoordinates())===n&&kc.reverse(t.getCoordinates())}},t.prototype.getCoordinate=function(){return this._shell.getCoordinate()},t.prototype.getNumInteriorRing=function(){return this._holes.length},t.prototype.getBoundaryDimension=function(){return 1},t.prototype.getDimension=function(){return 2},t.prototype.getLength=function(){var e=0;e+=this._shell.getLength();for(var t=0;t<this._holes.length;t++)e+=this._holes[t].getLength();return e},t.prototype.getNumPoints=function(){for(var e=this._shell.getNumPoints(),t=0;t<this._holes.length;t++)e+=this._holes[t].getNumPoints();return e},t.prototype.reverse=function(){var e=this.copy();e._shell=this._shell.copy().reverse(),e._holes=new Array(this._holes.length).fill(null);for(var t=0;t<this._holes.length;t++)e._holes[t]=this._holes[t].copy().reverse();return e},t.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0],t=this._shell,n=e._shell;return t.compareToSameClass(n)}if(2===arguments.length){var r=arguments[0],i=arguments[1],o=r,a=this._shell,s=o._shell,l=a.compareToSameClass(s,i);if(0!==l)return l;for(var c=this.getNumInteriorRing(),u=o.getNumInteriorRing(),d=0;d<c&&d<u;){var f=this.getInteriorRingN(d),h=o.getInteriorRingN(d),p=f.compareToSameClass(h,i);if(0!==p)return p;d++}return d<c?1:d<u?-1:0}},t.prototype.apply=function(e){if(Il(e,fc)){this._shell.apply(e);for(var t=0;t<this._holes.length;t++)this._holes[t].apply(e)}else if(Il(e,zc)){if(this._shell.apply(e),!e.isDone())for(var n=0;n<this._holes.length&&(this._holes[n].apply(e),!e.isDone());n++);e.isGeometryChanged()&&this.geometryChanged()}else if(Il(e,qc))e.filter(this);else if(Il(e,lc)){e.filter(this),this._shell.apply(e);for(var r=0;r<this._holes.length;r++)this._holes[r].apply(e)}},t.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var e=new Array(this._holes.length+1).fill(null);e[0]=this._shell;for(var t=0;t<this._holes.length;t++)e[t+1]=this._holes[t];return e.length<=1?this.getFactory().createLinearRing(e[0].getCoordinateSequence()):this.getFactory().createMultiLineString(e)},t.prototype.clone=function(){var t=e.prototype.clone.call(this);t._shell=this._shell.clone(),t._holes=new Array(this._holes.length).fill(null);for(var n=0;n<this._holes.length;n++)t._holes[n]=this._holes[n].clone();return t},t.prototype.getGeometryType=function(){return"Polygon"},t.prototype.copy=function(){for(var e=this._shell.copy(),n=new Array(this._holes.length).fill(null),r=0;r<n.length;r++)n[r]=this._holes[r].copy();return new t(e,n,this._factory)},t.prototype.getExteriorRing=function(){return this._shell},t.prototype.isEmpty=function(){return this._shell.isEmpty()},t.prototype.getInteriorRingN=function(e){return this._holes[e]},t.prototype.interfaces_=function(){return[Qc]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(t,n),t}(cc),eu=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return cc.SORTINDEX_MULTIPOINT},t.prototype.isValid=function(){return!0},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._geometries[t].getCoordinate()}return e.prototype.getCoordinate.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return Fc.FALSE},t.prototype.getDimension=function(){return 0},t.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},t.prototype.getGeometryType=function(){return"MultiPoint"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Yc]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(t,n),t}(Uc),tu=function(e){function t(t,n){t instanceof Sl&&n instanceof vu&&(t=n.getCoordinateSequenceFactory().create(t)),e.call(this,t,n),this.validateConstruction()}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return cc.SORTINDEX_LINEARRING},t.prototype.getBoundaryDimension=function(){return Fc.FALSE},t.prototype.isClosed=function(){return!!this.isEmpty()||e.prototype.isClosed.call(this)},t.prototype.reverse=function(){var e=this._points.copy();return Kc.reverse(e),this.getFactory().createLinearRing(e)},t.prototype.validateConstruction=function(){if(!this.isEmpty()&&!e.prototype.isClosed.call(this))throw new vl("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<t.MINIMUM_VALID_SIZE)throw new vl("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},t.prototype.getGeometryType=function(){return"LinearRing"},t.prototype.copy=function(){return new t(this._points.copy(),this._factory)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(t,n),t}(Xc),nu=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return cc.SORTINDEX_MULTIPOLYGON},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return 1},t.prototype.getDimension=function(){return 2},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(t)},t.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var e=new Sc,t=0;t<this._geometries.length;t++)for(var n=this._geometries[t].getBoundary(),r=0;r<n.getNumGeometries();r++)e.add(n.getGeometryN(r));var i=new Array(e.size()).fill(null);return this.getFactory().createMultiLineString(e.toArray(i))},t.prototype.getGeometryType=function(){return"MultiPolygon"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Qc]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(t,n),t}(Uc),ru=function(e){this._factory=e||null,this._isUserDataCopied=!1},iu={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};ru.prototype.setCopyUserData=function(e){this._isUserDataCopied=e},ru.prototype.edit=function(e,t){if(null===e)return null;var n=this.editInternal(e,t);return this._isUserDataCopied&&n.setUserData(e.getUserData()),n},ru.prototype.editInternal=function(e,t){return null===this._factory&&(this._factory=e.getFactory()),e instanceof Uc?this.editGeometryCollection(e,t):e instanceof Zc?this.editPolygon(e,t):e instanceof Jc||e instanceof Xc?t.edit(e,this._factory):(ec.shouldNeverReachHere("Unsupported Geometry class: "+e.getClass().getName()),null)},ru.prototype.editGeometryCollection=function(e,t){for(var n=t.edit(e,this._factory),r=new Sc,i=0;i<n.getNumGeometries();i++){var o=this.edit(n.getGeometryN(i),t);null===o||o.isEmpty()||r.add(o)}return n.getClass()===eu?this._factory.createMultiPoint(r.toArray([])):n.getClass()===Gc?this._factory.createMultiLineString(r.toArray([])):n.getClass()===nu?this._factory.createMultiPolygon(r.toArray([])):this._factory.createGeometryCollection(r.toArray([]))},ru.prototype.editPolygon=function(e,t){var n=t.edit(e,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var r=this.edit(n.getExteriorRing(),t);if(null===r||r.isEmpty())return this._factory.createPolygon();for(var i=new Sc,o=0;o<n.getNumInteriorRing();o++){var a=this.edit(n.getInteriorRingN(o),t);null===a||a.isEmpty()||i.add(a)}return this._factory.createPolygon(r,i.toArray([]))},ru.prototype.interfaces_=function(){return[]},ru.prototype.getClass=function(){return ru},ru.GeometryEditorOperation=function(){},iu.NoOpGeometryOperation.get=function(){return ou},iu.CoordinateOperation.get=function(){return au},iu.CoordinateSequenceOperation.get=function(){return su},Object.defineProperties(ru,iu);var ou=function(){};ou.prototype.edit=function(e,t){return e},ou.prototype.interfaces_=function(){return[ru.GeometryEditorOperation]},ou.prototype.getClass=function(){return ou};var au=function(){};au.prototype.edit=function(e,t){var n=this.editCoordinates(e.getCoordinates(),e);return null===n?e:e instanceof tu?t.createLinearRing(n):e instanceof Xc?t.createLineString(n):e instanceof Jc?n.length>0?t.createPoint(n[0]):t.createPoint():e},au.prototype.interfaces_=function(){return[ru.GeometryEditorOperation]},au.prototype.getClass=function(){return au};var su=function(){};su.prototype.edit=function(e,t){return e instanceof tu?t.createLinearRing(this.edit(e.getCoordinateSequence(),e)):e instanceof Xc?t.createLineString(this.edit(e.getCoordinateSequence(),e)):e instanceof Jc?t.createPoint(this.edit(e.getCoordinateSequence(),e)):e},su.prototype.interfaces_=function(){return[ru.GeometryEditorOperation]},su.prototype.getClass=function(){return su};var lu=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var e=arguments[0];this._coordinates=new Array(e).fill(null);for(var t=0;t<e;t++)this._coordinates[t]=new Sl}else if(Il(arguments[0],Bl)){var n=arguments[0];if(null===n)return this._coordinates=new Array(0).fill(null),null;this._dimension=n.getDimension(),this._coordinates=new Array(n.size()).fill(null);for(var r=0;r<this._coordinates.length;r++)this._coordinates[r]=n.getCoordinateCopy(r)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var i=arguments[0],o=arguments[1];this._coordinates=i,this._dimension=o,null===i&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var a=arguments[0],s=arguments[1];this._coordinates=new Array(a).fill(null),this._dimension=s;for(var l=0;l<a;l++)this._coordinates[l]=new Sl}},cu={serialVersionUID:{configurable:!0}};lu.prototype.setOrdinate=function(e,t,n){switch(t){case Bl.X:this._coordinates[e].x=n;break;case Bl.Y:this._coordinates[e].y=n;break;case Bl.Z:this._coordinates[e].z=n;break;default:throw new vl("invalid ordinateIndex")}},lu.prototype.size=function(){return this._coordinates.length},lu.prototype.getOrdinate=function(e,t){switch(t){case Bl.X:return this._coordinates[e].x;case Bl.Y:return this._coordinates[e].y;case Bl.Z:return this._coordinates[e].z}return yl.NaN},lu.prototype.getCoordinate=function(){if(1===arguments.length){var e=arguments[0];return this._coordinates[e]}if(2===arguments.length){var t=arguments[0],n=arguments[1];n.x=this._coordinates[t].x,n.y=this._coordinates[t].y,n.z=this._coordinates[t].z}},lu.prototype.getCoordinateCopy=function(e){return new Sl(this._coordinates[e])},lu.prototype.getDimension=function(){return this._dimension},lu.prototype.getX=function(e){return this._coordinates[e].x},lu.prototype.clone=function(){for(var e=new Array(this.size()).fill(null),t=0;t<this._coordinates.length;t++)e[t]=this._coordinates[t].clone();return new lu(e,this._dimension)},lu.prototype.expandEnvelope=function(e){for(var t=0;t<this._coordinates.length;t++)e.expandToInclude(this._coordinates[t]);return e},lu.prototype.copy=function(){for(var e=new Array(this.size()).fill(null),t=0;t<this._coordinates.length;t++)e[t]=this._coordinates[t].copy();return new lu(e,this._dimension)},lu.prototype.toString=function(){if(this._coordinates.length>0){var e=new Pl(17*this._coordinates.length);e.append("("),e.append(this._coordinates[0]);for(var t=1;t<this._coordinates.length;t++)e.append(", "),e.append(this._coordinates[t]);return e.append(")"),e.toString()}return"()"},lu.prototype.getY=function(e){return this._coordinates[e].y},lu.prototype.toCoordinateArray=function(){return this._coordinates},lu.prototype.interfaces_=function(){return[Bl,Ii]},lu.prototype.getClass=function(){return lu},cu.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(lu,cu);var uu=function(){},du={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};uu.prototype.readResolve=function(){return uu.instance()},uu.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];return new lu(e)}if(Il(arguments[0],Bl)){var t=arguments[0];return new lu(t)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return r>3&&(r=3),r<2?new lu(n):new lu(n,r)}},uu.prototype.interfaces_=function(){return[kl,Ii]},uu.prototype.getClass=function(){return uu},uu.instance=function(){return uu.instanceObject},du.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},du.instanceObject.get=function(){return new uu},Object.defineProperties(uu,du);var fu=function(e){function t(){e.call(this),this.map_=new Map}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return this.map_.get(e)||null},t.prototype.put=function(e,t){return this.map_.set(e,t),t},t.prototype.values=function(){for(var e=new Sc,t=this.map_.values(),n=t.next();!n.done;)e.add(n.value),n=t.next();return e},t.prototype.entrySet=function(){var e=new Pc;return this.map_.entries().forEach((function(t){return e.add(t)})),e},t.prototype.size=function(){return this.map_.size()},t}(Ac),hu=function e(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=e.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof mu){var t=arguments[0];this._modelType=t,t===e.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=e.FIXED,this.setScale(n)}else if(arguments[0]instanceof e){var r=arguments[0];this._modelType=r._modelType,this._scale=r._scale}},pu={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};hu.prototype.equals=function(e){if(!(e instanceof hu))return!1;var t=e;return this._modelType===t._modelType&&this._scale===t._scale},hu.prototype.compareTo=function(e){var t=e,n=this.getMaximumSignificantDigits(),r=t.getMaximumSignificantDigits();return new Ml(n).compareTo(new Ml(r))},hu.prototype.getScale=function(){return this._scale},hu.prototype.isFloating=function(){return this._modelType===hu.FLOATING||this._modelType===hu.FLOATING_SINGLE},hu.prototype.getType=function(){return this._modelType},hu.prototype.toString=function(){var e="UNKNOWN";return this._modelType===hu.FLOATING?e="Floating":this._modelType===hu.FLOATING_SINGLE?e="Floating-Single":this._modelType===hu.FIXED&&(e="Fixed (Scale="+this.getScale()+")"),e},hu.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var e=arguments[0];return yl.isNaN(e)||this._modelType===hu.FLOATING_SINGLE?e:this._modelType===hu.FIXED?Math.round(e*this._scale)/this._scale:e}if(arguments[0]instanceof Sl){var t=arguments[0];if(this._modelType===hu.FLOATING)return null;t.x=this.makePrecise(t.x),t.y=this.makePrecise(t.y)}},hu.prototype.getMaximumSignificantDigits=function(){var e=16;return this._modelType===hu.FLOATING?e=16:this._modelType===hu.FLOATING_SINGLE?e=6:this._modelType===hu.FIXED&&(e=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),e},hu.prototype.setScale=function(e){this._scale=Math.abs(e)},hu.prototype.interfaces_=function(){return[Ii,_l]},hu.prototype.getClass=function(){return hu},hu.mostPrecise=function(e,t){return e.compareTo(t)>=0?e:t},pu.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},pu.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(hu,pu);var mu=function e(t){this._name=t||null,e.nameToTypeMap.put(t,this)},gu={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};mu.prototype.readResolve=function(){return mu.nameToTypeMap.get(this._name)},mu.prototype.toString=function(){return this._name},mu.prototype.interfaces_=function(){return[Ii]},mu.prototype.getClass=function(){return mu},gu.serialVersionUID.get=function(){return-552860263173159e4},gu.nameToTypeMap.get=function(){return new fu},Object.defineProperties(mu,gu),hu.Type=mu,hu.FIXED=new mu("FIXED"),hu.FLOATING=new mu("FLOATING"),hu.FLOATING_SINGLE=new mu("FLOATING SINGLE");var vu=function e(){this._precisionModel=new hu,this._SRID=0,this._coordinateSequenceFactory=e.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?Il(arguments[0],kl)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof hu&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},yu={serialVersionUID:{configurable:!0}};vu.prototype.toGeometry=function(e){return e.isNull()?this.createPoint(null):e.getMinX()===e.getMaxX()&&e.getMinY()===e.getMaxY()?this.createPoint(new Sl(e.getMinX(),e.getMinY())):e.getMinX()===e.getMaxX()||e.getMinY()===e.getMaxY()?this.createLineString([new Sl(e.getMinX(),e.getMinY()),new Sl(e.getMaxX(),e.getMaxY())]):this.createPolygon(this.createLinearRing([new Sl(e.getMinX(),e.getMinY()),new Sl(e.getMinX(),e.getMaxY()),new Sl(e.getMaxX(),e.getMaxY()),new Sl(e.getMaxX(),e.getMinY()),new Sl(e.getMinX(),e.getMinY())]),null)},vu.prototype.createLineString=function(e){return e?e instanceof Array?new Xc(this.getCoordinateSequenceFactory().create(e),this):Il(e,Bl)?new Xc(e,this):void 0:new Xc(this.getCoordinateSequenceFactory().create([]),this)},vu.prototype.createMultiLineString=function(){if(0===arguments.length)return new Gc(null,this);if(1===arguments.length){var e=arguments[0];return new Gc(e,this)}},vu.prototype.buildGeometry=function(e){for(var t=null,n=!1,r=!1,i=e.iterator();i.hasNext();){var o=i.next(),a=o.getClass();null===t&&(t=a),a!==t&&(n=!0),o.isGeometryCollectionOrDerived()&&(r=!0)}if(null===t)return this.createGeometryCollection();if(n||r)return this.createGeometryCollection(vu.toGeometryArray(e));var s=e.iterator().next();if(e.size()>1){if(s instanceof Zc)return this.createMultiPolygon(vu.toPolygonArray(e));if(s instanceof Xc)return this.createMultiLineString(vu.toLineStringArray(e));if(s instanceof Jc)return this.createMultiPoint(vu.toPointArray(e));ec.shouldNeverReachHere("Unhandled class: "+s.getClass().getName())}return s},vu.prototype.createMultiPointFromCoords=function(e){return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)},vu.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Sl){var e=arguments[0];return this.createPoint(null!==e?this.getCoordinateSequenceFactory().create([e]):null)}if(Il(arguments[0],Bl)){var t=arguments[0];return new Jc(t,this)}}},vu.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},vu.prototype.createPolygon=function(){if(0===arguments.length)return new Zc(null,null,this);if(1===arguments.length){if(Il(arguments[0],Bl)){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Array){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof tu){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];return new Zc(r,i,this)}},vu.prototype.getSRID=function(){return this._SRID},vu.prototype.createGeometryCollection=function(){if(0===arguments.length)return new Uc(null,this);if(1===arguments.length){var e=arguments[0];return new Uc(e,this)}},vu.prototype.createGeometry=function(e){return new ru(this).edit(e,{edit:function(){if(2===arguments.length){var e=arguments[0];return this._coordinateSequenceFactory.create(e)}}})},vu.prototype.getPrecisionModel=function(){return this._precisionModel},vu.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];return this.createLinearRing(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(Il(arguments[0],Bl)){var t=arguments[0];return new tu(t,this)}}},vu.prototype.createMultiPolygon=function(){if(0===arguments.length)return new nu(null,this);if(1===arguments.length){var e=arguments[0];return new nu(e,this)}},vu.prototype.createMultiPoint=function(){if(0===arguments.length)return new eu(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];return new eu(e,this)}if(arguments[0]instanceof Array){var t=arguments[0];return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(Il(arguments[0],Bl)){var n=arguments[0];if(null===n)return this.createMultiPoint(new Array(0).fill(null));for(var r=new Array(n.size()).fill(null),i=0;i<n.size();i++){var o=this.getCoordinateSequenceFactory().create(1,n.getDimension());Kc.copy(n,i,o,0,1),r[i]=this.createPoint(o)}return this.createMultiPoint(r)}}},vu.prototype.interfaces_=function(){return[Ii]},vu.prototype.getClass=function(){return vu},vu.toMultiPolygonArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.toGeometryArray=function(e){if(null===e)return null;var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.getDefaultCoordinateSequenceFactory=function(){return uu.instance()},vu.toMultiLineStringArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.toLineStringArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.toMultiPointArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.toLinearRingArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.toPointArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.toPolygonArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},vu.createPointFromInternalCoord=function(e,t){return t.getPrecisionModel().makePrecise(e),t.getFactory().createPoint(e)},yu.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(vu,yu);var bu=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],_u=function(e){this.geometryFactory=e||new vu};_u.prototype.read=function(e){var t,n=(t="string"==typeof e?JSON.parse(e):e).type;if(!wu[n])throw new Error("Unknown GeoJSON type: "+t.type);return-1!==bu.indexOf(n)?wu[n].apply(this,[t.coordinates]):"GeometryCollection"===n?wu[n].apply(this,[t.geometries]):wu[n].apply(this,[t])},_u.prototype.write=function(e){var t=e.getGeometryType();if(!xu[t])throw new Error("Geometry is not supported");return xu[t].apply(this,[e])};var wu={Feature:function(e){var t={};for(var n in e)t[n]=e[n];if(e.geometry){var r=e.geometry.type;if(!wu[r])throw new Error("Unknown GeoJSON type: "+e.type);t.geometry=this.read(e.geometry)}return e.bbox&&(t.bbox=wu.bbox.apply(this,[e.bbox])),t},FeatureCollection:function(e){var t={};if(e.features){t.features=[];for(var n=0;n<e.features.length;++n)t.features.push(this.read(e.features[n]))}return e.bbox&&(t.bbox=this.parse.bbox.apply(this,[e.bbox])),t},coordinates:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(new Sl(r[0],r[1]))}return t},bbox:function(e){return this.geometryFactory.createLinearRing([new Sl(e[0],e[1]),new Sl(e[2],e[1]),new Sl(e[2],e[3]),new Sl(e[0],e[3]),new Sl(e[0],e[1])])},Point:function(e){var t=new Sl(e[0],e[1]);return this.geometryFactory.createPoint(t)},MultiPoint:function(e){for(var t=[],n=0;n<e.length;++n)t.push(wu.Point.apply(this,[e[n]]));return this.geometryFactory.createMultiPoint(t)},LineString:function(e){var t=wu.coordinates.apply(this,[e]);return this.geometryFactory.createLineString(t)},MultiLineString:function(e){for(var t=[],n=0;n<e.length;++n)t.push(wu.LineString.apply(this,[e[n]]));return this.geometryFactory.createMultiLineString(t)},Polygon:function(e){for(var t=wu.coordinates.apply(this,[e[0]]),n=this.geometryFactory.createLinearRing(t),r=[],i=1;i<e.length;++i){var o=e[i],a=wu.coordinates.apply(this,[o]),s=this.geometryFactory.createLinearRing(a);r.push(s)}return this.geometryFactory.createPolygon(n,r)},MultiPolygon:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(wu.Polygon.apply(this,[r]))}return this.geometryFactory.createMultiPolygon(t)},GeometryCollection:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(this.read(r))}return this.geometryFactory.createGeometryCollection(t)}},xu={coordinate:function(e){return[e.x,e.y]},Point:function(e){return{type:"Point",coordinates:xu.coordinate.apply(this,[e.getCoordinate()])}},MultiPoint:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=xu.Point.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiPoint",coordinates:t}},LineString:function(e){for(var t=[],n=e.getCoordinates(),r=0;r<n.length;++r){var i=n[r];t.push(xu.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:t}},MultiLineString:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=xu.LineString.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiLineString",coordinates:t}},Polygon:function(e){var t=[],n=xu.LineString.apply(this,[e._shell]);t.push(n.coordinates);for(var r=0;r<e._holes.length;++r){var i=e._holes[r],o=xu.LineString.apply(this,[i]);t.push(o.coordinates)}return{type:"Polygon",coordinates:t}},MultiPolygon:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=xu.Polygon.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiPolygon",coordinates:t}},GeometryCollection:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=r.getGeometryType();t.push(xu[i].apply(this,[r]))}return{type:"GeometryCollection",geometries:t}}},Su=function(e){this.geometryFactory=e||new vu,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new _u(this.geometryFactory)};Su.prototype.read=function(e){var t=this.parser.read(e);return this.precisionModel.getType()===hu.FIXED&&this.reducePrecision(t),t},Su.prototype.reducePrecision=function(e){var t,n;if(e.coordinate)this.precisionModel.makePrecise(e.coordinate);else if(e.points)for(t=0,n=e.points.length;t<n;t++)this.precisionModel.makePrecise(e.points[t]);else if(e.geometries)for(t=0,n=e.geometries.length;t<n;t++)this.reducePrecision(e.geometries[t])};var Cu=function(){this.parser=new _u(this.geometryFactory)};Cu.prototype.write=function(e){return this.parser.write(e)};var Eu=function(){},ku={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Eu.prototype.interfaces_=function(){return[]},Eu.prototype.getClass=function(){return Eu},Eu.opposite=function(e){return e===Eu.LEFT?Eu.RIGHT:e===Eu.RIGHT?Eu.LEFT:e},ku.ON.get=function(){return 0},ku.LEFT.get=function(){return 1},ku.RIGHT.get=function(){return 2},Object.defineProperties(Eu,ku),(Ui.prototype=new Error).name="EmptyStackException",(Gi.prototype=new xc).add=function(e){return this.array_.push(e),!0},Gi.prototype.get=function(e){if(e<0||e>=this.size())throw new Error;return this.array_[e]},Gi.prototype.push=function(e){return this.array_.push(e),e},Gi.prototype.pop=function(e){if(0===this.array_.length)throw new Ui;return this.array_.pop()},Gi.prototype.peek=function(){if(0===this.array_.length)throw new Ui;return this.array_[this.array_.length-1]},Gi.prototype.empty=function(){return 0===this.array_.length},Gi.prototype.isEmpty=function(){return this.empty()},Gi.prototype.search=function(e){return this.array_.indexOf(e)},Gi.prototype.size=function(){return this.array_.length},Gi.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e};var Ou=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Ou.prototype.getCoordinate=function(){return this._minCoord},Ou.prototype.getRightmostSide=function(e,t){var n=this.getRightmostSideOfSegment(e,t);return n<0&&(n=this.getRightmostSideOfSegment(e,t-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(e)),n},Ou.prototype.findRightmostEdgeAtVertex=function(){var e=this._minDe.getEdge().getCoordinates();ec.isTrue(this._minIndex>0&&this._minIndex<e.length,"rightmost point expected to be interior vertex of edge");var t=e[this._minIndex-1],n=e[this._minIndex+1],r=ac.computeOrientation(this._minCoord,n,t),i=!1;(t.y<this._minCoord.y&&n.y<this._minCoord.y&&r===ac.COUNTERCLOCKWISE||t.y>this._minCoord.y&&n.y>this._minCoord.y&&r===ac.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)},Ou.prototype.getRightmostSideOfSegment=function(e,t){var n=e.getEdge().getCoordinates();if(t<0||t+1>=n.length)return-1;if(n[t].y===n[t+1].y)return-1;var r=Eu.LEFT;return n[t].y<n[t+1].y&&(r=Eu.RIGHT),r},Ou.prototype.getEdge=function(){return this._orientedDe},Ou.prototype.checkForRightmostCoordinate=function(e){for(var t=e.getEdge().getCoordinates(),n=0;n<t.length-1;n++)(null===this._minCoord||t[n].x>this._minCoord.x)&&(this._minDe=e,this._minIndex=n,this._minCoord=t[n])},Ou.prototype.findRightmostEdgeAtNode=function(){var e=this._minDe.getNode().getEdges();this._minDe=e.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Ou.prototype.findEdge=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();n.isForward()&&this.checkForRightmostCoordinate(n)}ec.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Eu.LEFT&&(this._orientedDe=this._minDe.getSym())},Ou.prototype.interfaces_=function(){return[]},Ou.prototype.getClass=function(){return Ou};var Tu=function(e){function t(n,r){e.call(this,t.msgWithCoord(n,r)),this.pt=r?new Sl(r):null,this.name="TopologyException"}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getCoordinate=function(){return this.pt},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.msgWithCoord=function(e,t){return t?e:e+" [ "+t+" ]"},t}(Ql),Iu=function(){this.array_=[]};Iu.prototype.addLast=function(e){this.array_.push(e)},Iu.prototype.removeFirst=function(){return this.array_.shift()},Iu.prototype.isEmpty=function(){return 0===this.array_.length};var Au=function(){this._finder=null,this._dirEdgeList=new Sc,this._nodes=new Sc,this._rightMostCoord=null,this._env=null,this._finder=new Ou};Au.prototype.clearVisitedEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();)e.next().setVisited(!1)},Au.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Au.prototype.computeNodeDepth=function(e){for(var t=null,n=e.getEdges().iterator();n.hasNext();){var r=n.next();if(r.isVisited()||r.getSym().isVisited()){t=r;break}}if(null===t)throw new Tu("unable to find edge to compute depths at "+e.getCoordinate());e.getEdges().computeDepths(t);for(var i=e.getEdges().iterator();i.hasNext();){var o=i.next();o.setVisited(!0),this.copySymDepths(o)}},Au.prototype.computeDepth=function(e){this.clearVisitedEdges();var t=this._finder.getEdge();t.setEdgeDepths(Eu.RIGHT,e),this.copySymDepths(t),this.computeDepths(t)},Au.prototype.create=function(e){this.addReachable(e),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Au.prototype.findResultEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();){var t=e.next();t.getDepth(Eu.RIGHT)>=1&&t.getDepth(Eu.LEFT)<=0&&!t.isInteriorAreaEdge()&&t.setInResult(!0)}},Au.prototype.computeDepths=function(e){var t=new Pc,n=new Iu,r=e.getNode();for(n.addLast(r),t.add(r),e.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();t.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var a=o.next().getSym();if(!a.isVisited()){var s=a.getNode();t.contains(s)||(n.addLast(s),t.add(s))}}}},Au.prototype.compareTo=function(e){var t=e;return this._rightMostCoord.x<t._rightMostCoord.x?-1:this._rightMostCoord.x>t._rightMostCoord.x?1:0},Au.prototype.getEnvelope=function(){if(null===this._env){for(var e=new Wl,t=this._dirEdgeList.iterator();t.hasNext();)for(var n=t.next().getEdge().getCoordinates(),r=0;r<n.length-1;r++)e.expandToInclude(n[r]);this._env=e}return this._env},Au.prototype.addReachable=function(e){var t=new Gi;for(t.add(e);!t.empty();){var n=t.pop();this.add(n,t)}},Au.prototype.copySymDepths=function(e){var t=e.getSym();t.setDepth(Eu.LEFT,e.getDepth(Eu.RIGHT)),t.setDepth(Eu.RIGHT,e.getDepth(Eu.LEFT))},Au.prototype.add=function(e,t){e.setVisited(!0),this._nodes.add(e);for(var n=e.getEdges().iterator();n.hasNext();){var r=n.next();this._dirEdgeList.add(r);var i=r.getSym().getNode();i.isVisited()||t.push(i)}},Au.prototype.getNodes=function(){return this._nodes},Au.prototype.getDirectedEdges=function(){return this._dirEdgeList},Au.prototype.interfaces_=function(){return[_l]},Au.prototype.getClass=function(){return Au};var Ru=function e(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];this.init(t.length)}else if(Number.isInteger(arguments[0])){var n=arguments[0];this.init(1),this.location[Eu.ON]=n}else if(arguments[0]instanceof e){var r=arguments[0];if(this.init(r.location.length),null!==r)for(var i=0;i<this.location.length;i++)this.location[i]=r.location[i]}}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.init(3),this.location[Eu.ON]=o,this.location[Eu.LEFT]=a,this.location[Eu.RIGHT]=s}};Ru.prototype.setAllLocations=function(e){for(var t=0;t<this.location.length;t++)this.location[t]=e},Ru.prototype.isNull=function(){for(var e=0;e<this.location.length;e++)if(this.location[e]!==Ol.NONE)return!1;return!0},Ru.prototype.setAllLocationsIfNull=function(e){for(var t=0;t<this.location.length;t++)this.location[t]===Ol.NONE&&(this.location[t]=e)},Ru.prototype.isLine=function(){return 1===this.location.length},Ru.prototype.merge=function(e){if(e.location.length>this.location.length){var t=new Array(3).fill(null);t[Eu.ON]=this.location[Eu.ON],t[Eu.LEFT]=Ol.NONE,t[Eu.RIGHT]=Ol.NONE,this.location=t}for(var n=0;n<this.location.length;n++)this.location[n]===Ol.NONE&&n<e.location.length&&(this.location[n]=e.location[n])},Ru.prototype.getLocations=function(){return this.location},Ru.prototype.flip=function(){if(this.location.length<=1)return null;var e=this.location[Eu.LEFT];this.location[Eu.LEFT]=this.location[Eu.RIGHT],this.location[Eu.RIGHT]=e},Ru.prototype.toString=function(){var e=new Pl;return this.location.length>1&&e.append(Ol.toLocationSymbol(this.location[Eu.LEFT])),e.append(Ol.toLocationSymbol(this.location[Eu.ON])),this.location.length>1&&e.append(Ol.toLocationSymbol(this.location[Eu.RIGHT])),e.toString()},Ru.prototype.setLocations=function(e,t,n){this.location[Eu.ON]=e,this.location[Eu.LEFT]=t,this.location[Eu.RIGHT]=n},Ru.prototype.get=function(e){return e<this.location.length?this.location[e]:Ol.NONE},Ru.prototype.isArea=function(){return this.location.length>1},Ru.prototype.isAnyNull=function(){for(var e=0;e<this.location.length;e++)if(this.location[e]===Ol.NONE)return!0;return!1},Ru.prototype.setLocation=function(){if(1===arguments.length){var e=arguments[0];this.setLocation(Eu.ON,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.location[t]=n}},Ru.prototype.init=function(e){this.location=new Array(e).fill(null),this.setAllLocations(Ol.NONE)},Ru.prototype.isEqualOnSide=function(e,t){return this.location[t]===e.location[t]},Ru.prototype.allPositionsEqual=function(e){for(var t=0;t<this.location.length;t++)if(this.location[t]!==e)return!1;return!0},Ru.prototype.interfaces_=function(){return[]},Ru.prototype.getClass=function(){return Ru};var Pu=function e(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var t=arguments[0];this.elt[0]=new Ru(t),this.elt[1]=new Ru(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.elt[0]=new Ru(n.elt[0]),this.elt[1]=new Ru(n.elt[1])}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.elt[0]=new Ru(Ol.NONE),this.elt[1]=new Ru(Ol.NONE),this.elt[r].setLocation(i)}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.elt[0]=new Ru(o,a,s),this.elt[1]=new Ru(o,a,s)}else if(4===arguments.length){var l=arguments[0],c=arguments[1],u=arguments[2],d=arguments[3];this.elt[0]=new Ru(Ol.NONE,Ol.NONE,Ol.NONE),this.elt[1]=new Ru(Ol.NONE,Ol.NONE,Ol.NONE),this.elt[l].setLocations(c,u,d)}};Pu.prototype.getGeometryCount=function(){var e=0;return this.elt[0].isNull()||e++,this.elt[1].isNull()||e++,e},Pu.prototype.setAllLocations=function(e,t){this.elt[e].setAllLocations(t)},Pu.prototype.isNull=function(e){return this.elt[e].isNull()},Pu.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var e=arguments[0];this.setAllLocationsIfNull(0,e),this.setAllLocationsIfNull(1,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.elt[t].setAllLocationsIfNull(n)}},Pu.prototype.isLine=function(e){return this.elt[e].isLine()},Pu.prototype.merge=function(e){for(var t=0;t<2;t++)null===this.elt[t]&&null!==e.elt[t]?this.elt[t]=new Ru(e.elt[t]):this.elt[t].merge(e.elt[t])},Pu.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},Pu.prototype.getLocation=function(){if(1===arguments.length){var e=arguments[0];return this.elt[e].get(Eu.ON)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return this.elt[t].get(n)}},Pu.prototype.toString=function(){var e=new Pl;return null!==this.elt[0]&&(e.append("A:"),e.append(this.elt[0].toString())),null!==this.elt[1]&&(e.append(" B:"),e.append(this.elt[1].toString())),e.toString()},Pu.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var e=arguments[0];return this.elt[e].isArea()}},Pu.prototype.isAnyNull=function(e){return this.elt[e].isAnyNull()},Pu.prototype.setLocation=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];this.elt[e].setLocation(Eu.ON,t)}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this.elt[n].setLocation(r,i)}},Pu.prototype.isEqualOnSide=function(e,t){return this.elt[0].isEqualOnSide(e.elt[0],t)&&this.elt[1].isEqualOnSide(e.elt[1],t)},Pu.prototype.allPositionsEqual=function(e,t){return this.elt[e].allPositionsEqual(t)},Pu.prototype.toLine=function(e){this.elt[e].isArea()&&(this.elt[e]=new Ru(this.elt[e].location[0]))},Pu.prototype.interfaces_=function(){return[]},Pu.prototype.getClass=function(){return Pu},Pu.toLineLabel=function(e){for(var t=new Pu(Ol.NONE),n=0;n<2;n++)t.setLocation(n,e.getLocation(n));return t};var Mu=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new Sc,this._pts=new Sc,this._label=new Pu(Ol.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new Sc,this._geometryFactory=null;var e=arguments[0],t=arguments[1];this._geometryFactory=t,this.computePoints(e),this.computeRing()};Mu.prototype.computeRing=function(){if(null!==this._ring)return null;for(var e=new Array(this._pts.size()).fill(null),t=0;t<this._pts.size();t++)e[t]=this._pts.get(t);this._ring=this._geometryFactory.createLinearRing(e),this._isHole=ac.isCCW(this._ring.getCoordinates())},Mu.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},Mu.prototype.computePoints=function(e){this._startDe=e;var t=e,n=!0;do{if(null===t)throw new Tu("Found null DirectedEdge");if(t.getEdgeRing()===this)throw new Tu("Directed Edge visited twice during ring-building at "+t.getCoordinate());this._edges.add(t);var r=t.getLabel();ec.isTrue(r.isArea()),this.mergeLabel(r),this.addPoints(t.getEdge(),t.isForward(),n),n=!1,this.setEdgeRing(t,this),t=this.getNext(t)}while(t!==this._startDe)},Mu.prototype.getLinearRing=function(){return this._ring},Mu.prototype.getCoordinate=function(e){return this._pts.get(e)},Mu.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var e=this._startDe;do{var t=e.getNode().getEdges().getOutgoingDegree(this);t>this._maxNodeDegree&&(this._maxNodeDegree=t),e=this.getNext(e)}while(e!==this._startDe);this._maxNodeDegree*=2},Mu.prototype.addPoints=function(e,t,n){var r=e.getCoordinates();if(t){var i=1;n&&(i=0);for(var o=i;o<r.length;o++)this._pts.add(r[o])}else{var a=r.length-2;n&&(a=r.length-1);for(var s=a;s>=0;s--)this._pts.add(r[s])}},Mu.prototype.isHole=function(){return this._isHole},Mu.prototype.setInResult=function(){var e=this._startDe;do{e.getEdge().setInResult(!0),e=e.getNext()}while(e!==this._startDe)},Mu.prototype.containsPoint=function(e){var t=this.getLinearRing();if(!t.getEnvelopeInternal().contains(e))return!1;if(!ac.isPointInRing(e,t.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(e))return!1;return!0},Mu.prototype.addHole=function(e){this._holes.add(e)},Mu.prototype.isShell=function(){return null===this._shell},Mu.prototype.getLabel=function(){return this._label},Mu.prototype.getEdges=function(){return this._edges},Mu.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Mu.prototype.getShell=function(){return this._shell},Mu.prototype.mergeLabel=function(){if(1===arguments.length){var e=arguments[0];this.mergeLabel(e,0),this.mergeLabel(e,1)}else if(2===arguments.length){var t=arguments[0],n=arguments[1],r=t.getLocation(n,Eu.RIGHT);if(r===Ol.NONE)return null;if(this._label.getLocation(n)===Ol.NONE)return this._label.setLocation(n,r),null}},Mu.prototype.setShell=function(e){this._shell=e,null!==e&&e.addHole(this)},Mu.prototype.toPolygon=function(e){for(var t=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)t[n]=this._holes.get(n).getLinearRing();return e.createPolygon(this.getLinearRing(),t)},Mu.prototype.interfaces_=function(){return[]},Mu.prototype.getClass=function(){return Mu};var Nu=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setEdgeRing=function(e,t){e.setMinEdgeRing(t)},t.prototype.getNext=function(e){return e.getNextMin()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Mu),Lu=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.buildMinimalRings=function(){var e=new Sc,t=this._startDe;do{if(null===t.getMinEdgeRing()){var n=new Nu(t,this._geometryFactory);e.add(n)}t=t.getNext()}while(t!==this._startDe);return e},t.prototype.setEdgeRing=function(e,t){e.setEdgeRing(t)},t.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var e=this._startDe;do{e.getNode().getEdges().linkMinimalDirectedEdges(this),e=e.getNext()}while(e!==this._startDe)},t.prototype.getNext=function(e){return e.getNext()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Mu),Du=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._label=e}};Du.prototype.setVisited=function(e){this._isVisited=e},Du.prototype.setInResult=function(e){this._isInResult=e},Du.prototype.isCovered=function(){return this._isCovered},Du.prototype.isCoveredSet=function(){return this._isCoveredSet},Du.prototype.setLabel=function(e){this._label=e},Du.prototype.getLabel=function(){return this._label},Du.prototype.setCovered=function(e){this._isCovered=e,this._isCoveredSet=!0},Du.prototype.updateIM=function(e){ec.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(e)},Du.prototype.isInResult=function(){return this._isInResult},Du.prototype.isVisited=function(){return this._isVisited},Du.prototype.interfaces_=function(){return[]},Du.prototype.getClass=function(){return Du};var ju=function(e){function t(){e.call(this),this._coord=null,this._edges=null;var t=arguments[0],n=arguments[1];this._coord=t,this._edges=n,this._label=new Pu(0,Ol.NONE)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isIncidentEdgeInResult=function(){for(var e=this.getEdges().getEdges().iterator();e.hasNext();)if(e.next().getEdge().isInResult())return!0;return!1},t.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},t.prototype.getCoordinate=function(){return this._coord},t.prototype.print=function(e){e.println("node "+this._coord+" lbl: "+this._label)},t.prototype.computeIM=function(e){},t.prototype.computeMergedLocation=function(e,t){var n=Ol.NONE;if(n=this._label.getLocation(t),!e.isNull(t)){var r=e.getLocation(t);n!==Ol.BOUNDARY&&(n=r)}return n},t.prototype.setLabel=function(){if(2!==arguments.length)return e.prototype.setLabel.apply(this,arguments);var t=arguments[0],n=arguments[1];null===this._label?this._label=new Pu(t,n):this._label.setLocation(t,n)},t.prototype.getEdges=function(){return this._edges},t.prototype.mergeLabel=function(){if(arguments[0]instanceof t){var e=arguments[0];this.mergeLabel(e._label)}else if(arguments[0]instanceof Pu)for(var n=arguments[0],r=0;r<2;r++){var i=this.computeMergedLocation(n,r);this._label.getLocation(r)===Ol.NONE&&this._label.setLocation(r,i)}},t.prototype.add=function(e){this._edges.insert(e),e.setNode(this)},t.prototype.setLabelBoundary=function(e){if(null===this._label)return null;var t=Ol.NONE;null!==this._label&&(t=this._label.getLocation(e));var n=null;switch(t){case Ol.BOUNDARY:n=Ol.INTERIOR;break;case Ol.INTERIOR:default:n=Ol.BOUNDARY}this._label.setLocation(e,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Du),Fu=function(){this.nodeMap=new Fi,this.nodeFact=null;var e=arguments[0];this.nodeFact=e};Fu.prototype.find=function(e){return this.nodeMap.get(e)},Fu.prototype.addNode=function(){if(arguments[0]instanceof Sl){var e=arguments[0],t=this.nodeMap.get(e);return null===t&&(t=this.nodeFact.createNode(e),this.nodeMap.put(e,t)),t}if(arguments[0]instanceof ju){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}},Fu.prototype.print=function(e){for(var t=this.iterator();t.hasNext();)t.next().print(e)},Fu.prototype.iterator=function(){return this.nodeMap.values().iterator()},Fu.prototype.values=function(){return this.nodeMap.values()},Fu.prototype.getBoundaryNodes=function(e){for(var t=new Sc,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(e)===Ol.BOUNDARY&&t.add(r)}return t},Fu.prototype.add=function(e){var t=e.getCoordinate();this.addNode(t).add(e)},Fu.prototype.interfaces_=function(){return[]},Fu.prototype.getClass=function(){return Fu};var Bu=function(){},qu={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Bu.prototype.interfaces_=function(){return[]},Bu.prototype.getClass=function(){return Bu},Bu.isNorthern=function(e){return e===Bu.NE||e===Bu.NW},Bu.isOpposite=function(e,t){return e!==t&&2===(e-t+4)%4},Bu.commonHalfPlane=function(e,t){if(e===t)return e;if(2===(e-t+4)%4)return-1;var n=e<t?e:t;return 0===n&&3===(e>t?e:t)?3:n},Bu.isInHalfPlane=function(e,t){return t===Bu.SE?e===Bu.SE||e===Bu.SW:e===t||e===t+1},Bu.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1];if(0===e&&0===t)throw new vl("Cannot compute the quadrant for point ( "+e+", "+t+" )");return e>=0?t>=0?Bu.NE:Bu.SE:t>=0?Bu.NW:Bu.SW}if(arguments[0]instanceof Sl&&arguments[1]instanceof Sl){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new vl("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?Bu.NE:Bu.SE:r.y>=n.y?Bu.NW:Bu.SW}},qu.NE.get=function(){return 0},qu.NW.get=function(){return 1},qu.SW.get=function(){return 2},qu.SE.get=function(){return 3},Object.defineProperties(Bu,qu);var zu=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var e=arguments[0];this._edge=e}else if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];this._edge=t,this.init(n,r),this._label=null}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this._edge=i,this.init(o,a),this._label=s}};zu.prototype.compareDirection=function(e){return this._dx===e._dx&&this._dy===e._dy?0:this._quadrant>e._quadrant?1:this._quadrant<e._quadrant?-1:ac.computeOrientation(e._p0,e._p1,this._p1)},zu.prototype.getDy=function(){return this._dy},zu.prototype.getCoordinate=function(){return this._p0},zu.prototype.setNode=function(e){this._node=e},zu.prototype.print=function(e){var t=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),r=n.lastIndexOf("."),i=n.substring(r+1);e.print("  "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+"   "+this._label)},zu.prototype.compareTo=function(e){var t=e;return this.compareDirection(t)},zu.prototype.getDirectedCoordinate=function(){return this._p1},zu.prototype.getDx=function(){return this._dx},zu.prototype.getLabel=function(){return this._label},zu.prototype.getEdge=function(){return this._edge},zu.prototype.getQuadrant=function(){return this._quadrant},zu.prototype.getNode=function(){return this._node},zu.prototype.toString=function(){var e=Math.atan2(this._dy,this._dx),t=this.getClass().getName(),n=t.lastIndexOf(".");return"  "+t.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+"   "+this._label},zu.prototype.computeLabel=function(e){},zu.prototype.init=function(e,t){this._p0=e,this._p1=t,this._dx=t.x-e.x,this._dy=t.y-e.y,this._quadrant=Bu.quadrant(this._dx,this._dy),ec.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},zu.prototype.interfaces_=function(){return[_l]},zu.prototype.getClass=function(){return zu};var Uu=function(e){function t(){var t=arguments[0],n=arguments[1];if(e.call(this,t),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=n,n)this.init(t.getCoordinate(0),t.getCoordinate(1));else{var r=t.getNumPoints()-1;this.init(t.getCoordinate(r),t.getCoordinate(r-1))}this.computeDirectedLabel()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getNextMin=function(){return this._nextMin},t.prototype.getDepth=function(e){return this._depth[e]},t.prototype.setVisited=function(e){this._isVisited=e},t.prototype.computeDirectedLabel=function(){this._label=new Pu(this._edge.getLabel()),this._isForward||this._label.flip()},t.prototype.getNext=function(){return this._next},t.prototype.setDepth=function(e,t){if(-999!==this._depth[e]&&this._depth[e]!==t)throw new Tu("assigned depths do not match",this.getCoordinate());this._depth[e]=t},t.prototype.isInteriorAreaEdge=function(){for(var e=!0,t=0;t<2;t++)this._label.isArea(t)&&this._label.getLocation(t,Eu.LEFT)===Ol.INTERIOR&&this._label.getLocation(t,Eu.RIGHT)===Ol.INTERIOR||(e=!1);return e},t.prototype.setNextMin=function(e){this._nextMin=e},t.prototype.print=function(t){e.prototype.print.call(this,t),t.print(" "+this._depth[Eu.LEFT]+"/"+this._depth[Eu.RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")},t.prototype.setMinEdgeRing=function(e){this._minEdgeRing=e},t.prototype.isLineEdge=function(){var e=this._label.isLine(0)||this._label.isLine(1),t=!this._label.isArea(0)||this._label.allPositionsEqual(0,Ol.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,Ol.EXTERIOR);return e&&t&&n},t.prototype.setEdgeRing=function(e){this._edgeRing=e},t.prototype.getMinEdgeRing=function(){return this._minEdgeRing},t.prototype.getDepthDelta=function(){var e=this._edge.getDepthDelta();return this._isForward||(e=-e),e},t.prototype.setInResult=function(e){this._isInResult=e},t.prototype.getSym=function(){return this._sym},t.prototype.isForward=function(){return this._isForward},t.prototype.getEdge=function(){return this._edge},t.prototype.printEdge=function(e){this.print(e),e.print(" "),this._isForward?this._edge.print(e):this._edge.printReverse(e)},t.prototype.setSym=function(e){this._sym=e},t.prototype.setVisitedEdge=function(e){this.setVisited(e),this._sym.setVisited(e)},t.prototype.setEdgeDepths=function(e,t){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var r=1;e===Eu.LEFT&&(r=-1);var i=Eu.opposite(e),o=t+n*r;this.setDepth(e,t),this.setDepth(i,o)},t.prototype.getEdgeRing=function(){return this._edgeRing},t.prototype.isInResult=function(){return this._isInResult},t.prototype.setNext=function(e){this._next=e},t.prototype.isVisited=function(){return this._isVisited},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.depthFactor=function(e,t){return e===Ol.EXTERIOR&&t===Ol.INTERIOR?1:e===Ol.INTERIOR&&t===Ol.EXTERIOR?-1:0},t}(zu),Gu=function(){};Gu.prototype.createNode=function(e){return new ju(e,null)},Gu.prototype.interfaces_=function(){return[]},Gu.prototype.getClass=function(){return Gu};var Vu=function(){if(this._edges=new Sc,this._nodes=null,this._edgeEndList=new Sc,0===arguments.length)this._nodes=new Fu(new Gu);else if(1===arguments.length){var e=arguments[0];this._nodes=new Fu(e)}};Vu.prototype.printEdges=function(e){e.println("Edges:");for(var t=0;t<this._edges.size();t++){e.println("edge "+t+":");var n=this._edges.get(t);n.print(e),n.eiList.print(e)}},Vu.prototype.find=function(e){return this._nodes.find(e)},Vu.prototype.addNode=function(){if(arguments[0]instanceof ju){var e=arguments[0];return this._nodes.addNode(e)}if(arguments[0]instanceof Sl){var t=arguments[0];return this._nodes.addNode(t)}},Vu.prototype.getNodeIterator=function(){return this._nodes.iterator()},Vu.prototype.linkResultDirectedEdges=function(){for(var e=this._nodes.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()},Vu.prototype.debugPrintln=function(e){Gl.out.println(e)},Vu.prototype.isBoundaryNode=function(e,t){var n=this._nodes.find(t);if(null===n)return!1;var r=n.getLabel();return null!==r&&r.getLocation(e)===Ol.BOUNDARY},Vu.prototype.linkAllDirectedEdges=function(){for(var e=this._nodes.iterator();e.hasNext();)e.next().getEdges().linkAllDirectedEdges()},Vu.prototype.matchInSameDirection=function(e,t,n,r){return!!e.equals(n)&&ac.computeOrientation(e,t,r)===ac.COLLINEAR&&Bu.quadrant(e,t)===Bu.quadrant(n,r)},Vu.prototype.getEdgeEnds=function(){return this._edgeEndList},Vu.prototype.debugPrint=function(e){Gl.out.print(e)},Vu.prototype.getEdgeIterator=function(){return this._edges.iterator()},Vu.prototype.findEdgeInSameDirection=function(e,t){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(this.matchInSameDirection(e,t,i[0],i[1]))return r;if(this.matchInSameDirection(e,t,i[i.length-1],i[i.length-2]))return r}return null},Vu.prototype.insertEdge=function(e){this._edges.add(e)},Vu.prototype.findEdgeEnd=function(e){for(var t=this.getEdgeEnds().iterator();t.hasNext();){var n=t.next();if(n.getEdge()===e)return n}return null},Vu.prototype.addEdges=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();this._edges.add(n);var r=new Uu(n,!0),i=new Uu(n,!1);r.setSym(i),i.setSym(r),this.add(r),this.add(i)}},Vu.prototype.add=function(e){this._nodes.add(e),this._edgeEndList.add(e)},Vu.prototype.getNodes=function(){return this._nodes.values()},Vu.prototype.findEdge=function(e,t){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(e.equals(i[0])&&t.equals(i[1]))return r}return null},Vu.prototype.interfaces_=function(){return[]},Vu.prototype.getClass=function(){return Vu},Vu.linkResultDirectedEdges=function(e){for(var t=e.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()};var Wu=function(){this._geometryFactory=null,this._shellList=new Sc;var e=arguments[0];this._geometryFactory=e};Wu.prototype.sortShellsAndHoles=function(e,t,n){for(var r=e.iterator();r.hasNext();){var i=r.next();i.isHole()?n.add(i):t.add(i)}},Wu.prototype.computePolygons=function(e){for(var t=new Sc,n=e.iterator();n.hasNext();){var r=n.next().toPolygon(this._geometryFactory);t.add(r)}return t},Wu.prototype.placeFreeHoles=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();if(null===r.getShell()){var i=this.findEdgeRingContaining(r,e);if(null===i)throw new Tu("unable to assign hole to a shell",r.getCoordinate(0));r.setShell(i)}}},Wu.prototype.buildMinimalEdgeRings=function(e,t,n){for(var r=new Sc,i=e.iterator();i.hasNext();){var o=i.next();if(o.getMaxNodeDegree()>2){o.linkDirectedEdgesForMinimalEdgeRings();var a=o.buildMinimalRings(),s=this.findShell(a);null!==s?(this.placePolygonHoles(s,a),t.add(s)):n.addAll(a)}else r.add(o)}return r},Wu.prototype.containsPoint=function(e){for(var t=this._shellList.iterator();t.hasNext();)if(t.next().containsPoint(e))return!0;return!1},Wu.prototype.buildMaximalEdgeRings=function(e){for(var t=new Sc,n=e.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new Lu(r,this._geometryFactory);t.add(i),i.setInResult()}}return t},Wu.prototype.placePolygonHoles=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(e)}},Wu.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Wu.prototype.findEdgeRingContaining=function(e,t){for(var n=e.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,a=null,s=t.iterator();s.hasNext();){var l=s.next(),c=l.getLinearRing(),u=c.getEnvelopeInternal();null!==o&&(a=o.getLinearRing().getEnvelopeInternal());var d=!1;u.contains(r)&&ac.isPointInRing(i,c.getCoordinates())&&(d=!0),d&&(null===o||a.contains(u))&&(o=l)}return o},Wu.prototype.findShell=function(e){for(var t=0,n=null,r=e.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,t++)}return ec.isTrue(t<=1,"found two shells in MinimalEdgeRing list"),n},Wu.prototype.add=function(){if(1===arguments.length){var e=arguments[0];this.add(e.getEdgeEnds(),e.getNodes())}else if(2===arguments.length){var t=arguments[0],n=arguments[1];Vu.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(t),i=new Sc,o=this.buildMinimalEdgeRings(r,this._shellList,i);this.sortShellsAndHoles(o,this._shellList,i),this.placeFreeHoles(this._shellList,i)}},Wu.prototype.interfaces_=function(){return[]},Wu.prototype.getClass=function(){return Wu};var Hu=function(){};Hu.prototype.getBounds=function(){},Hu.prototype.interfaces_=function(){return[]},Hu.prototype.getClass=function(){return Hu};var $u=function(){this._bounds=null,this._item=null;var e=arguments[0],t=arguments[1];this._bounds=e,this._item=t};$u.prototype.getItem=function(){return this._item},$u.prototype.getBounds=function(){return this._bounds},$u.prototype.interfaces_=function(){return[Hu,Ii]},$u.prototype.getClass=function(){return $u};var Ku=function(){this._size=null,this._items=null,this._size=0,this._items=new Sc,this._items.add(null)};Ku.prototype.poll=function(){if(this.isEmpty())return null;var e=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),e},Ku.prototype.size=function(){return this._size},Ku.prototype.reorder=function(e){for(var t=null,n=this._items.get(e);2*e<=this._size&&((t=2*e)!==this._size&&this._items.get(t+1).compareTo(this._items.get(t))<0&&t++,this._items.get(t).compareTo(n)<0);e=t)this._items.set(e,this._items.get(t));this._items.set(e,n)},Ku.prototype.clear=function(){this._size=0,this._items.clear()},Ku.prototype.isEmpty=function(){return 0===this._size},Ku.prototype.add=function(e){this._items.add(null),this._size+=1;var t=this._size;for(this._items.set(0,e);e.compareTo(this._items.get(Math.trunc(t/2)))<0;t/=2)this._items.set(t,this._items.get(Math.trunc(t/2)));this._items.set(t,e)},Ku.prototype.interfaces_=function(){return[]},Ku.prototype.getClass=function(){return Ku};var Xu=function(){};Xu.prototype.visitItem=function(e){},Xu.prototype.interfaces_=function(){return[]},Xu.prototype.getClass=function(){return Xu};var Yu=function(){};Yu.prototype.insert=function(e,t){},Yu.prototype.remove=function(e,t){},Yu.prototype.query=function(){},Yu.prototype.interfaces_=function(){return[]},Yu.prototype.getClass=function(){return Yu};var Ju=function(){if(this._childBoundables=new Sc,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._level=e}},Qu={serialVersionUID:{configurable:!0}};Ju.prototype.getLevel=function(){return this._level},Ju.prototype.size=function(){return this._childBoundables.size()},Ju.prototype.getChildBoundables=function(){return this._childBoundables},Ju.prototype.addChildBoundable=function(e){ec.isTrue(null===this._bounds),this._childBoundables.add(e)},Ju.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Ju.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Ju.prototype.interfaces_=function(){return[Hu,Ii]},Ju.prototype.getClass=function(){return Ju},Qu.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Ju,Qu);var Zu=function(){};Zu.reverseOrder=function(){return{compare:function(e,t){return t.compareTo(e)}}},Zu.min=function(e){return Zu.sort(e),e.get(0)},Zu.sort=function(e,t){var n=e.toArray();t?jc.sort(n,t):jc.sort(n);for(var r=e.iterator(),i=0,o=n.length;i<o;i++)r.next(),r.set(n[i])},Zu.singletonList=function(e){var t=new Sc;return t.add(e),t};var ed=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var e=arguments[0],t=arguments[1],n=arguments[2];this._boundable1=e,this._boundable2=t,this._itemDistance=n,this._distance=this.distance()};ed.prototype.expandToQueue=function(e,t){var n=ed.isComposite(this._boundable1),r=ed.isComposite(this._boundable2);if(n&&r)return ed.area(this._boundable1)>ed.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,e,t),null):(this.expand(this._boundable2,this._boundable1,e,t),null);if(n)return this.expand(this._boundable1,this._boundable2,e,t),null;if(r)return this.expand(this._boundable2,this._boundable1,e,t),null;throw new vl("neither boundable is composite")},ed.prototype.isLeaves=function(){return!(ed.isComposite(this._boundable1)||ed.isComposite(this._boundable2))},ed.prototype.compareTo=function(e){var t=e;return this._distance<t._distance?-1:this._distance>t._distance?1:0},ed.prototype.expand=function(e,t,n,r){for(var i=e.getChildBoundables().iterator();i.hasNext();){var o=i.next(),a=new ed(o,t,this._itemDistance);a.getDistance()<r&&n.add(a)}},ed.prototype.getBoundable=function(e){return 0===e?this._boundable1:this._boundable2},ed.prototype.getDistance=function(){return this._distance},ed.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},ed.prototype.interfaces_=function(){return[_l]},ed.prototype.getClass=function(){return ed},ed.area=function(e){return e.getBounds().getArea()},ed.isComposite=function(e){return e instanceof Ju};var td=function e(){if(this._root=null,this._built=!1,this._itemBoundables=new Sc,this._nodeCapacity=null,0===arguments.length){var t=e.DEFAULT_NODE_CAPACITY;this._nodeCapacity=t}else if(1===arguments.length){var n=arguments[0];ec.isTrue(n>1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},nd={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};td.prototype.getNodeCapacity=function(){return this._nodeCapacity},td.prototype.lastNode=function(e){return e.get(e.size()-1)},td.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var e=0,t=arguments[0].getChildBoundables().iterator();t.hasNext();){var n=t.next();n instanceof Ju?e+=this.size(n):n instanceof $u&&(e+=1)}return e}},td.prototype.removeItem=function(e,t){for(var n=null,r=e.getChildBoundables().iterator();r.hasNext();){var i=r.next();i instanceof $u&&i.getItem()===t&&(n=i)}return null!==n&&(e.getChildBoundables().remove(n),!0)},td.prototype.itemsTree=function(){if(0===arguments.length){this.build();var e=this.itemsTree(this._root);return null===e?new Sc:e}if(1===arguments.length){for(var t=arguments[0],n=new Sc,r=t.getChildBoundables().iterator();r.hasNext();){var i=r.next();if(i instanceof Ju){var o=this.itemsTree(i);null!==o&&n.add(o)}else i instanceof $u?n.add(i.getItem()):ec.shouldNeverReachHere()}return n.size()<=0?null:n}},td.prototype.insert=function(e,t){ec.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new $u(e,t))},td.prototype.boundablesAtLevel=function(){if(1===arguments.length){var e=arguments[0],t=new Sc;return this.boundablesAtLevel(e,this._root,t),t}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];if(ec.isTrue(n>-2),r.getLevel()===n)return i.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var a=o.next();a instanceof Ju?this.boundablesAtLevel(n,a,i):(ec.isTrue(a instanceof $u),-1===n&&i.add(a))}return null}},td.prototype.query=function(){if(1===arguments.length){var e=arguments[0];this.build();var t=new Sc;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.query(e,this._root,t),t}if(2===arguments.length){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,r)}else if(3===arguments.length)if(Il(arguments[2],Xu)&&arguments[0]instanceof Object&&arguments[1]instanceof Ju)for(var i=arguments[0],o=arguments[1],a=arguments[2],s=o.getChildBoundables(),l=0;l<s.size();l++){var c=s.get(l);this.getIntersectsOp().intersects(c.getBounds(),i)&&(c instanceof Ju?this.query(i,c,a):c instanceof $u?a.visitItem(c.getItem()):ec.shouldNeverReachHere())}else if(Il(arguments[2],xc)&&arguments[0]instanceof Object&&arguments[1]instanceof Ju)for(var u=arguments[0],d=arguments[1],f=arguments[2],h=d.getChildBoundables(),p=0;p<h.size();p++){var m=h.get(p);this.getIntersectsOp().intersects(m.getBounds(),u)&&(m instanceof Ju?this.query(u,m,f):m instanceof $u?f.add(m.getItem()):ec.shouldNeverReachHere())}},td.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},td.prototype.getRoot=function(){return this.build(),this._root},td.prototype.remove=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.remove(e,this._root,t)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=this.removeItem(r,i);if(o)return!0;for(var a=null,s=r.getChildBoundables().iterator();s.hasNext();){var l=s.next();if(this.getIntersectsOp().intersects(l.getBounds(),n)&&l instanceof Ju&&(o=this.remove(n,l,i))){a=l;break}}return null!==a&&a.getChildBoundables().isEmpty()&&r.getChildBoundables().remove(a),o}},td.prototype.createHigherLevels=function(e,t){ec.isTrue(!e.isEmpty());var n=this.createParentBoundables(e,t+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,t+1)},td.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var e=0,t=arguments[0].getChildBoundables().iterator();t.hasNext();){var n=t.next();if(n instanceof Ju){var r=this.depth(n);r>e&&(e=r)}}return e+1}},td.prototype.createParentBoundables=function(e,t){ec.isTrue(!e.isEmpty());var n=new Sc;n.add(this.createNode(t));var r=new Sc(e);Zu.sort(r,this.getComparator());for(var i=r.iterator();i.hasNext();){var o=i.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(t)),this.lastNode(n).addChildBoundable(o)}return n},td.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},td.prototype.interfaces_=function(){return[Ii]},td.prototype.getClass=function(){return td},td.compareDoubles=function(e,t){return e>t?1:e<t?-1:0},nd.IntersectsOp.get=function(){return rd},nd.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},nd.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(td,nd);var rd=function(){},id=function(){};id.prototype.distance=function(e,t){},id.prototype.interfaces_=function(){return[]},id.prototype.getClass=function(){return id};var od=function(e){function t(n){n=n||t.DEFAULT_NODE_CAPACITY,e.call(this,n)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return t.prototype.createParentBoundablesFromVerticalSlices=function(e,t){ec.isTrue(e.length>0);for(var n=new Sc,r=0;r<e.length;r++)n.addAll(this.createParentBoundablesFromVerticalSlice(e[r],t));return n},t.prototype.createNode=function(e){return new ad(e)},t.prototype.size=function(){return 0===arguments.length?e.prototype.size.call(this):e.prototype.size.apply(this,arguments)},t.prototype.insert=function(){if(2!==arguments.length)return e.prototype.insert.apply(this,arguments);var t=arguments[0],n=arguments[1];if(t.isNull())return null;e.prototype.insert.call(this,t,n)},t.prototype.getIntersectsOp=function(){return t.intersectsOp},t.prototype.verticalSlices=function(e,t){for(var n=Math.trunc(Math.ceil(e.size()/t)),r=new Array(t).fill(null),i=e.iterator(),o=0;o<t;o++){r[o]=new Sc;for(var a=0;i.hasNext()&&a<n;){var s=i.next();r[o].add(s),a++}}return r},t.prototype.query=function(){if(1===arguments.length){var t=arguments[0];return e.prototype.query.call(this,t)}if(2===arguments.length){var n=arguments[0],r=arguments[1];e.prototype.query.call(this,n,r)}else if(3===arguments.length)if(Il(arguments[2],Xu)&&arguments[0]instanceof Object&&arguments[1]instanceof Ju){var i=arguments[0],o=arguments[1],a=arguments[2];e.prototype.query.call(this,i,o,a)}else if(Il(arguments[2],xc)&&arguments[0]instanceof Object&&arguments[1]instanceof Ju){var s=arguments[0],l=arguments[1],c=arguments[2];e.prototype.query.call(this,s,l,c)}},t.prototype.getComparator=function(){return t.yComparator},t.prototype.createParentBoundablesFromVerticalSlice=function(t,n){return e.prototype.createParentBoundables.call(this,t,n)},t.prototype.remove=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return e.prototype.remove.call(this,t,n)}return e.prototype.remove.apply(this,arguments)},t.prototype.depth=function(){return 0===arguments.length?e.prototype.depth.call(this):e.prototype.depth.apply(this,arguments)},t.prototype.createParentBoundables=function(e,n){ec.isTrue(!e.isEmpty());var r=Math.trunc(Math.ceil(e.size()/this.getNodeCapacity())),i=new Sc(e);Zu.sort(i,t.xComparator);var o=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(r))));return this.createParentBoundablesFromVerticalSlices(o,n)},t.prototype.nearestNeighbour=function(){if(1===arguments.length){if(Il(arguments[0],id)){var e=arguments[0],n=new ed(this.getRoot(),this.getRoot(),e);return this.nearestNeighbour(n)}if(arguments[0]instanceof ed){var r=arguments[0];return this.nearestNeighbour(r,yl.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof t&&Il(arguments[1],id)){var i=arguments[0],o=arguments[1],a=new ed(this.getRoot(),i.getRoot(),o);return this.nearestNeighbour(a)}if(arguments[0]instanceof ed&&"number"==typeof arguments[1]){var s=arguments[0],l=arguments[1],c=null,u=new Ku;for(u.add(s);!u.isEmpty()&&l>0;){var d=u.poll(),f=d.getDistance();if(f>=l)break;d.isLeaves()?(l=f,c=d):d.expandToQueue(u,l)}return[c.getBoundable(0).getItem(),c.getBoundable(1).getItem()]}}else if(3===arguments.length){var h=arguments[0],p=arguments[1],m=arguments[2],g=new $u(h,p),v=new ed(this.getRoot(),g,m);return this.nearestNeighbour(v)[0]}},t.prototype.interfaces_=function(){return[Yu,Ii]},t.prototype.getClass=function(){return t},t.centreX=function(e){return t.avg(e.getMinX(),e.getMaxX())},t.avg=function(e,t){return(e+t)/2},t.centreY=function(e){return t.avg(e.getMinY(),e.getMaxY())},n.STRtreeNode.get=function(){return ad},n.serialVersionUID.get=function(){return 0x39920f7d5f261e0},n.xComparator.get=function(){return{interfaces_:function(){return[xl]},compare:function(n,r){return e.compareDoubles(t.centreX(n.getBounds()),t.centreX(r.getBounds()))}}},n.yComparator.get=function(){return{interfaces_:function(){return[xl]},compare:function(n,r){return e.compareDoubles(t.centreY(n.getBounds()),t.centreY(r.getBounds()))}}},n.intersectsOp.get=function(){return{interfaces_:function(){return[e.IntersectsOp]},intersects:function(e,t){return e.intersects(t)}}},n.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(t,n),t}(td),ad=function(e){function t(){var t=arguments[0];e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.computeBounds=function(){for(var e=null,t=this.getChildBoundables().iterator();t.hasNext();){var n=t.next();null===e?e=new Wl(n.getBounds()):e.expandToInclude(n.getBounds())}return e},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ju),sd=function(){};sd.prototype.interfaces_=function(){return[]},sd.prototype.getClass=function(){return sd},sd.relativeSign=function(e,t){return e<t?-1:e>t?1:0},sd.compare=function(e,t,n){if(t.equals2D(n))return 0;var r=sd.relativeSign(t.x,n.x),i=sd.relativeSign(t.y,n.y);switch(e){case 0:return sd.compareValue(r,i);case 1:return sd.compareValue(i,r);case 2:return sd.compareValue(i,-r);case 3:return sd.compareValue(-r,i);case 4:return sd.compareValue(-r,-i);case 5:return sd.compareValue(-i,-r);case 6:return sd.compareValue(-i,r);case 7:return sd.compareValue(r,-i)}return ec.shouldNeverReachHere("invalid octant value"),0},sd.compareValue=function(e,t){return e<0?-1:e>0?1:t<0?-1:t>0?1:0};var ld=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this._segString=e,this.coord=new Sl(t),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!t.equals2D(e.getCoordinate(n))};ld.prototype.getCoordinate=function(){return this.coord},ld.prototype.print=function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex)},ld.prototype.compareTo=function(e){var t=e;return this.segmentIndex<t.segmentIndex?-1:this.segmentIndex>t.segmentIndex?1:this.coord.equals2D(t.coord)?0:sd.compare(this._segmentOctant,this.coord,t.coord)},ld.prototype.isEndPoint=function(e){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===e},ld.prototype.isInterior=function(){return this._isInterior},ld.prototype.interfaces_=function(){return[_l]},ld.prototype.getClass=function(){return ld};var cd=function(){this._nodeMap=new Fi,this._edge=null;var e=arguments[0];this._edge=e};cd.prototype.getSplitCoordinates=function(){var e=new Ec;this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next();this.addEdgeCoordinates(n,r,e),n=r}return e.toCoordinateArray()},cd.prototype.addCollapsedNodes=function(){var e=new Sc;this.findCollapsesFromInsertedNodes(e),this.findCollapsesFromExistingVertices(e);for(var t=e.iterator();t.hasNext();){var n=t.next().intValue();this.add(this._edge.getCoordinate(n),n)}},cd.prototype.print=function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)},cd.prototype.findCollapsesFromExistingVertices=function(e){for(var t=0;t<this._edge.size()-2;t++){var n=this._edge.getCoordinate(t),r=this._edge.getCoordinate(t+2);n.equals2D(r)&&e.add(new Ml(t+1))}},cd.prototype.addEdgeCoordinates=function(e,t,n){var r=this._edge.getCoordinate(t.segmentIndex),i=t.isInterior()||!t.coord.equals2D(r);n.add(new Sl(e.coord),!1);for(var o=e.segmentIndex+1;o<=t.segmentIndex;o++)n.add(this._edge.getCoordinate(o));i&&n.add(new Sl(t.coord))},cd.prototype.iterator=function(){return this._nodeMap.values().iterator()},cd.prototype.addSplitEdges=function(e){this.addEndpoints(),this.addCollapsedNodes();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next(),i=this.createSplitEdge(n,r);e.add(i),n=r}},cd.prototype.findCollapseIndex=function(e,t,n){if(!e.coord.equals2D(t.coord))return!1;var r=t.segmentIndex-e.segmentIndex;return t.isInterior()||r--,1===r&&(n[0]=e.segmentIndex+1,!0)},cd.prototype.findCollapsesFromInsertedNodes=function(e){for(var t=new Array(1).fill(null),n=this.iterator(),r=n.next();n.hasNext();){var i=n.next();this.findCollapseIndex(r,i,t)&&e.add(new Ml(t[0])),r=i}},cd.prototype.getEdge=function(){return this._edge},cd.prototype.addEndpoints=function(){var e=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(e),e)},cd.prototype.createSplitEdge=function(e,t){var n=t.segmentIndex-e.segmentIndex+2,r=this._edge.getCoordinate(t.segmentIndex),i=t.isInterior()||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new Sl(e.coord);for(var s=e.segmentIndex+1;s<=t.segmentIndex;s++)o[a++]=this._edge.getCoordinate(s);return i&&(o[a]=new Sl(t.coord)),new hd(o,this._edge.getData())},cd.prototype.add=function(e,t){var n=new ld(this._edge,e,t,this._edge.getSegmentOctant(t)),r=this._nodeMap.get(n);return null!==r?(ec.isTrue(r.coord.equals2D(e),"Found equal nodes with different coordinates"),r):(this._nodeMap.put(n,n),n)},cd.prototype.checkSplitEdgesCorrectness=function(e){var t=this._edge.getCoordinates(),n=e.get(0).getCoordinate(0);if(!n.equals2D(t[0]))throw new Ql("bad split edge start point at "+n);var r=e.get(e.size()-1).getCoordinates(),i=r[r.length-1];if(!i.equals2D(t[t.length-1]))throw new Ql("bad split edge end point at "+i)},cd.prototype.interfaces_=function(){return[]},cd.prototype.getClass=function(){return cd};var ud=function(){};ud.prototype.interfaces_=function(){return[]},ud.prototype.getClass=function(){return ud},ud.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1];if(0===e&&0===t)throw new vl("Cannot compute the octant for point ( "+e+", "+t+" )");var n=Math.abs(e),r=Math.abs(t);return e>=0?t>=0?n>=r?0:1:n>=r?7:6:t>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof Sl&&arguments[1]instanceof Sl){var i=arguments[0],o=arguments[1],a=o.x-i.x,s=o.y-i.y;if(0===a&&0===s)throw new vl("Cannot compute the octant for two identical points "+i);return ud.octant(a,s)}};var dd=function(){};dd.prototype.getCoordinates=function(){},dd.prototype.size=function(){},dd.prototype.getCoordinate=function(e){},dd.prototype.isClosed=function(){},dd.prototype.setData=function(e){},dd.prototype.getData=function(){},dd.prototype.interfaces_=function(){return[]},dd.prototype.getClass=function(){return dd};var fd=function(){};fd.prototype.addIntersection=function(e,t){},fd.prototype.interfaces_=function(){return[dd]},fd.prototype.getClass=function(){return fd};var hd=function(){this._nodeList=new cd(this),this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};hd.prototype.getCoordinates=function(){return this._pts},hd.prototype.size=function(){return this._pts.length},hd.prototype.getCoordinate=function(e){return this._pts[e]},hd.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},hd.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(e),this.getCoordinate(e+1))},hd.prototype.setData=function(e){this._data=e},hd.prototype.safeOctant=function(e,t){return e.equals2D(t)?0:ud.octant(e,t)},hd.prototype.getData=function(){return this._data},hd.prototype.addIntersection=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];this.addIntersectionNode(e,t)}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[3],o=new Sl(n.getIntersection(i));this.addIntersection(o,r)}},hd.prototype.toString=function(){return Jl.toLineString(new lu(this._pts))},hd.prototype.getNodeList=function(){return this._nodeList},hd.prototype.addIntersectionNode=function(e,t){var n=t,r=n+1;if(r<this._pts.length){var i=this._pts[r];e.equals2D(i)&&(n=r)}return this._nodeList.add(e,n)},hd.prototype.addIntersections=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++)this.addIntersection(e,t,n,r)},hd.prototype.interfaces_=function(){return[fd]},hd.prototype.getClass=function(){return hd},hd.getNodedSubstrings=function(){if(1===arguments.length){var e=arguments[0],t=new Sc;return hd.getNodedSubstrings(e,t),t}if(2===arguments.length)for(var n=arguments[0],r=arguments[1],i=n.iterator();i.hasNext();)i.next().getNodeList().addSplitEdges(r)};var pd=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new Sl,this.p1=new Sl;else if(1===arguments.length){var e=arguments[0];this.p0=new Sl(e.p0),this.p1=new Sl(e.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];this.p0=new Sl(t,n),this.p1=new Sl(r,i)}},md={serialVersionUID:{configurable:!0}};pd.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},pd.prototype.orientationIndex=function(){if(arguments[0]instanceof pd){var e=arguments[0],t=ac.orientationIndex(this.p0,this.p1,e.p0),n=ac.orientationIndex(this.p0,this.p1,e.p1);return t>=0&&n>=0||t<=0&&n<=0?Math.max(t,n):0}if(arguments[0]instanceof Sl){var r=arguments[0];return ac.orientationIndex(this.p0,this.p1,r)}},pd.prototype.toGeometry=function(e){return e.createLineString([this.p0,this.p1])},pd.prototype.isVertical=function(){return this.p0.x===this.p1.x},pd.prototype.equals=function(e){if(!(e instanceof pd))return!1;var t=e;return this.p0.equals(t.p0)&&this.p1.equals(t.p1)},pd.prototype.intersection=function(e){var t=new rc;return t.computeIntersection(this.p0,this.p1,e.p0,e.p1),t.hasIntersection()?t.getIntersection(0):null},pd.prototype.project=function(){if(arguments[0]instanceof Sl){var e=arguments[0];if(e.equals(this.p0)||e.equals(this.p1))return new Sl(e);var t=this.projectionFactor(e),n=new Sl;return n.x=this.p0.x+t*(this.p1.x-this.p0.x),n.y=this.p0.y+t*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof pd){var r=arguments[0],i=this.projectionFactor(r.p0),o=this.projectionFactor(r.p1);if(i>=1&&o>=1)return null;if(i<=0&&o<=0)return null;var a=this.project(r.p0);i<0&&(a=this.p0),i>1&&(a=this.p1);var s=this.project(r.p1);return o<0&&(s=this.p0),o>1&&(s=this.p1),new pd(a,s)}},pd.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},pd.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},pd.prototype.getCoordinate=function(e){return 0===e?this.p0:this.p1},pd.prototype.distancePerpendicular=function(e){return ac.distancePointLinePerpendicular(e,this.p0,this.p1)},pd.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},pd.prototype.midPoint=function(){return pd.midPoint(this.p0,this.p1)},pd.prototype.projectionFactor=function(e){if(e.equals(this.p0))return 0;if(e.equals(this.p1))return 1;var t=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=t*t+n*n;return r<=0?yl.NaN:((e.x-this.p0.x)*t+(e.y-this.p0.y)*n)/r},pd.prototype.closestPoints=function(e){var t=this.intersection(e);if(null!==t)return[t,t];var n=new Array(2).fill(null),r=yl.MAX_VALUE,i=null,o=this.closestPoint(e.p0);r=o.distance(e.p0),n[0]=o,n[1]=e.p0;var a=this.closestPoint(e.p1);(i=a.distance(e.p1))<r&&(r=i,n[0]=a,n[1]=e.p1);var s=e.closestPoint(this.p0);(i=s.distance(this.p0))<r&&(r=i,n[0]=this.p0,n[1]=s);var l=e.closestPoint(this.p1);return(i=l.distance(this.p1))<r&&(r=i,n[0]=this.p1,n[1]=l),n},pd.prototype.closestPoint=function(e){var t=this.projectionFactor(e);return t>0&&t<1?this.project(e):this.p0.distance(e)<this.p1.distance(e)?this.p0:this.p1},pd.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},pd.prototype.getLength=function(){return this.p0.distance(this.p1)},pd.prototype.compareTo=function(e){var t=e,n=this.p0.compareTo(t.p0);return 0!==n?n:this.p1.compareTo(t.p1)},pd.prototype.reverse=function(){var e=this.p0;this.p0=this.p1,this.p1=e},pd.prototype.equalsTopo=function(e){return this.p0.equals(e.p0)&&(this.p1.equals(e.p1)||this.p0.equals(e.p1))&&this.p1.equals(e.p0)},pd.prototype.lineIntersection=function(e){try{return Vl.intersection(this.p0,this.p1,e.p0,e.p1)}catch(e){if(!(e instanceof Ul))throw e}return null},pd.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},pd.prototype.pointAlongOffset=function(e,t){var n=this.p0.x+e*(this.p1.x-this.p0.x),r=this.p0.y+e*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,a=Math.sqrt(i*i+o*o),s=0,l=0;if(0!==t){if(a<=0)throw new Error("Cannot compute offset from zero-length line segment");s=t*i/a,l=t*o/a}return new Sl(n-l,r+s)},pd.prototype.setCoordinates=function(){if(1===arguments.length){var e=arguments[0];this.setCoordinates(e.p0,e.p1)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.p0.x=t.x,this.p0.y=t.y,this.p1.x=n.x,this.p1.y=n.y}},pd.prototype.segmentFraction=function(e){var t=this.projectionFactor(e);return t<0?t=0:(t>1||yl.isNaN(t))&&(t=1),t},pd.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},pd.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},pd.prototype.distance=function(){if(arguments[0]instanceof pd){var e=arguments[0];return ac.distanceLineLine(this.p0,this.p1,e.p0,e.p1)}if(arguments[0]instanceof Sl){var t=arguments[0];return ac.distancePointLine(t,this.p0,this.p1)}},pd.prototype.pointAlong=function(e){var t=new Sl;return t.x=this.p0.x+e*(this.p1.x-this.p0.x),t.y=this.p0.y+e*(this.p1.y-this.p0.y),t},pd.prototype.hashCode=function(){var e=yl.doubleToLongBits(this.p0.x);e^=31*yl.doubleToLongBits(this.p0.y);var t=Math.trunc(e)^Math.trunc(e>>32),n=yl.doubleToLongBits(this.p1.x);return n^=31*yl.doubleToLongBits(this.p1.y),t^Math.trunc(n)^Math.trunc(n>>32)},pd.prototype.interfaces_=function(){return[_l,Ii]},pd.prototype.getClass=function(){return pd},pd.midPoint=function(e,t){return new Sl((e.x+t.x)/2,(e.y+t.y)/2)},md.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(pd,md);var gd=function(){this.tempEnv1=new Wl,this.tempEnv2=new Wl,this._overlapSeg1=new pd,this._overlapSeg2=new pd};gd.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];e.getLineSegment(t,this._overlapSeg1),n.getLineSegment(r,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},gd.prototype.interfaces_=function(){return[]},gd.prototype.getClass=function(){return gd};var vd=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this._pts=e,this._start=t,this._end=n,this._context=r};vd.prototype.getLineSegment=function(e,t){t.p0=this._pts[e],t.p1=this._pts[e+1]},vd.prototype.computeSelect=function(e,t,n,r){var i=this._pts[t],o=this._pts[n];if(r.tempEnv1.init(i,o),n-t==1)return r.select(this,t),null;if(!e.intersects(r.tempEnv1))return null;var a=Math.trunc((t+n)/2);t<a&&this.computeSelect(e,t,a,r),a<n&&this.computeSelect(e,a,n,r)},vd.prototype.getCoordinates=function(){for(var e=new Array(this._end-this._start+1).fill(null),t=0,n=this._start;n<=this._end;n++)e[t++]=this._pts[n];return e},vd.prototype.computeOverlaps=function(e,t){this.computeOverlapsInternal(this._start,this._end,e,e._start,e._end,t)},vd.prototype.setId=function(e){this._id=e},vd.prototype.select=function(e,t){this.computeSelect(e,this._start,this._end,t)},vd.prototype.getEnvelope=function(){if(null===this._env){var e=this._pts[this._start],t=this._pts[this._end];this._env=new Wl(e,t)}return this._env},vd.prototype.getEndIndex=function(){return this._end},vd.prototype.getStartIndex=function(){return this._start},vd.prototype.getContext=function(){return this._context},vd.prototype.getId=function(){return this._id},vd.prototype.computeOverlapsInternal=function(e,t,n,r,i,o){var a=this._pts[e],s=this._pts[t],l=n._pts[r],c=n._pts[i];if(t-e==1&&i-r==1)return o.overlap(this,e,n,r),null;if(o.tempEnv1.init(a,s),o.tempEnv2.init(l,c),!o.tempEnv1.intersects(o.tempEnv2))return null;var u=Math.trunc((e+t)/2),d=Math.trunc((r+i)/2);e<u&&(r<d&&this.computeOverlapsInternal(e,u,n,r,d,o),d<i&&this.computeOverlapsInternal(e,u,n,d,i,o)),u<t&&(r<d&&this.computeOverlapsInternal(u,t,n,r,d,o),d<i&&this.computeOverlapsInternal(u,t,n,d,i,o))},vd.prototype.interfaces_=function(){return[]},vd.prototype.getClass=function(){return vd};var yd=function(){};yd.prototype.interfaces_=function(){return[]},yd.prototype.getClass=function(){return yd},yd.getChainStartIndices=function(e){var t=0,n=new Sc;n.add(new Ml(t));do{var r=yd.findChainEnd(e,t);n.add(new Ml(r)),t=r}while(t<e.length-1);return yd.toIntArray(n)},yd.findChainEnd=function(e,t){for(var n=t;n<e.length-1&&e[n].equals2D(e[n+1]);)n++;if(n>=e.length-1)return e.length-1;for(var r=Bu.quadrant(e[n],e[n+1]),i=t+1;i<e.length;){if(!e[i-1].equals2D(e[i])&&Bu.quadrant(e[i-1],e[i])!==r)break;i++}return i-1},yd.getChains=function(){if(1===arguments.length){var e=arguments[0];return yd.getChains(e,null)}if(2===arguments.length){for(var t=arguments[0],n=arguments[1],r=new Sc,i=yd.getChainStartIndices(t),o=0;o<i.length-1;o++){var a=new vd(t,i[o],i[o+1],n);r.add(a)}return r}},yd.toIntArray=function(e){for(var t=new Array(e.size()).fill(null),n=0;n<t.length;n++)t[n]=e.get(n).intValue();return t};var bd=function(){};bd.prototype.computeNodes=function(e){},bd.prototype.getNodedSubstrings=function(){},bd.prototype.interfaces_=function(){return[]},bd.prototype.getClass=function(){return bd};var _d=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setSegmentIntersector(e)}};_d.prototype.setSegmentIntersector=function(e){this._segInt=e},_d.prototype.interfaces_=function(){return[bd]},_d.prototype.getClass=function(){return _d};var wd=function(e){function t(t){t?e.call(this,t):e.call(this),this._monoChains=new Sc,this._index=new od,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={SegmentOverlapAction:{configurable:!0}};return t.prototype.getMonotoneChains=function(){return this._monoChains},t.prototype.getNodedSubstrings=function(){return hd.getNodedSubstrings(this._nodedSegStrings)},t.prototype.getIndex=function(){return this._index},t.prototype.add=function(e){for(var t=yd.getChains(e.getCoordinates(),e).iterator();t.hasNext();){var n=t.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),n),this._monoChains.add(n)}},t.prototype.computeNodes=function(e){this._nodedSegStrings=e;for(var t=e.iterator();t.hasNext();)this.add(t.next());this.intersectChains()},t.prototype.intersectChains=function(){for(var e=new xd(this._segInt),t=this._monoChains.iterator();t.hasNext();)for(var n=t.next(),r=this._index.query(n.getEnvelope()).iterator();r.hasNext();){var i=r.next();if(i.getId()>n.getId()&&(n.computeOverlaps(i,e),this._nOverlaps++),this._segInt.isDone())return null}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.SegmentOverlapAction.get=function(){return xd},Object.defineProperties(t,n),t}(_d),xd=function(e){function t(){e.call(this),this._si=null;var t=arguments[0];this._si=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.overlap=function(){if(4!==arguments.length)return e.prototype.overlap.apply(this,arguments);var t=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3],o=t.getContext(),a=r.getContext();this._si.processIntersections(o,n,a,i)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(gd),Sd=function e(){if(this._quadrantSegments=e.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=e.CAP_ROUND,this._joinStyle=e.JOIN_ROUND,this._mitreLimit=e.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=e.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(a),this.setMitreLimit(s)}},Cd={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Sd.prototype.getEndCapStyle=function(){return this._endCapStyle},Sd.prototype.isSingleSided=function(){return this._isSingleSided},Sd.prototype.setQuadrantSegments=function(e){this._quadrantSegments=e,0===this._quadrantSegments&&(this._joinStyle=Sd.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Sd.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),e<=0&&(this._quadrantSegments=1),this._joinStyle!==Sd.JOIN_ROUND&&(this._quadrantSegments=Sd.DEFAULT_QUADRANT_SEGMENTS)},Sd.prototype.getJoinStyle=function(){return this._joinStyle},Sd.prototype.setJoinStyle=function(e){this._joinStyle=e},Sd.prototype.setSimplifyFactor=function(e){this._simplifyFactor=e<0?0:e},Sd.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Sd.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Sd.prototype.setEndCapStyle=function(e){this._endCapStyle=e},Sd.prototype.getMitreLimit=function(){return this._mitreLimit},Sd.prototype.setMitreLimit=function(e){this._mitreLimit=e},Sd.prototype.setSingleSided=function(e){this._isSingleSided=e},Sd.prototype.interfaces_=function(){return[]},Sd.prototype.getClass=function(){return Sd},Sd.bufferDistanceError=function(e){var t=Math.PI/2/e;return 1-Math.cos(t/2)},Cd.CAP_ROUND.get=function(){return 1},Cd.CAP_FLAT.get=function(){return 2},Cd.CAP_SQUARE.get=function(){return 3},Cd.JOIN_ROUND.get=function(){return 1},Cd.JOIN_MITRE.get=function(){return 2},Cd.JOIN_BEVEL.get=function(){return 3},Cd.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Cd.DEFAULT_MITRE_LIMIT.get=function(){return 5},Cd.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Sd,Cd);var Ed=function(e){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=ac.COUNTERCLOCKWISE,this._inputLine=e||null},kd={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Ed.prototype.isDeletable=function(e,t,n,r){var i=this._inputLine[e],o=this._inputLine[t],a=this._inputLine[n];return!!this.isConcave(i,o,a)&&!!this.isShallow(i,o,a,r)&&this.isShallowSampled(i,o,e,n,r)},Ed.prototype.deleteShallowConcavities=function(){for(var e=1,t=this.findNextNonDeletedIndex(e),n=this.findNextNonDeletedIndex(t),r=!1;n<this._inputLine.length;){var i=!1;this.isDeletable(e,t,n,this._distanceTol)&&(this._isDeleted[t]=Ed.DELETE,i=!0,r=!0),e=i?n:t,t=this.findNextNonDeletedIndex(e),n=this.findNextNonDeletedIndex(t)}return r},Ed.prototype.isShallowConcavity=function(e,t,n,r){return ac.computeOrientation(e,t,n)===this._angleOrientation&&ac.distancePointLine(t,e,n)<r},Ed.prototype.isShallowSampled=function(e,t,n,r,i){var o=Math.trunc((r-n)/Ed.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var a=n;a<r;a+=o)if(!this.isShallow(e,t,this._inputLine[a],i))return!1;return!0},Ed.prototype.isConcave=function(e,t,n){var r=ac.computeOrientation(e,t,n)===this._angleOrientation;return r},Ed.prototype.simplify=function(e){this._distanceTol=Math.abs(e),e<0&&(this._angleOrientation=ac.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var t=!1;do{t=this.deleteShallowConcavities()}while(t);return this.collapseLine()},Ed.prototype.findNextNonDeletedIndex=function(e){for(var t=e+1;t<this._inputLine.length&&this._isDeleted[t]===Ed.DELETE;)t++;return t},Ed.prototype.isShallow=function(e,t,n,r){return ac.distancePointLine(t,e,n)<r},Ed.prototype.collapseLine=function(){for(var e=new Ec,t=0;t<this._inputLine.length;t++)this._isDeleted[t]!==Ed.DELETE&&e.add(this._inputLine[t]);return e.toCoordinateArray()},Ed.prototype.interfaces_=function(){return[]},Ed.prototype.getClass=function(){return Ed},Ed.simplify=function(e,t){return new Ed(e).simplify(t)},kd.INIT.get=function(){return 0},kd.DELETE.get=function(){return 1},kd.KEEP.get=function(){return 1},kd.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Ed,kd);var Od=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new Sc},Td={COORDINATE_ARRAY_TYPE:{configurable:!0}};Od.prototype.getCoordinates=function(){return this._ptList.toArray(Od.COORDINATE_ARRAY_TYPE)},Od.prototype.setPrecisionModel=function(e){this._precisionModel=e},Od.prototype.addPt=function(e){var t=new Sl(e);if(this._precisionModel.makePrecise(t),this.isRedundant(t))return null;this._ptList.add(t)},Od.prototype.revere=function(){},Od.prototype.addPts=function(e,t){if(t)for(var n=0;n<e.length;n++)this.addPt(e[n]);else for(var r=e.length-1;r>=0;r--)this.addPt(e[r])},Od.prototype.isRedundant=function(e){if(this._ptList.size()<1)return!1;var t=this._ptList.get(this._ptList.size()-1);return e.distance(t)<this._minimimVertexDistance},Od.prototype.toString=function(){return(new vu).createLineString(this.getCoordinates()).toString()},Od.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var e=new Sl(this._ptList.get(0)),t=this._ptList.get(this._ptList.size()-1);if(e.equals(t))return null;this._ptList.add(e)},Od.prototype.setMinimumVertexDistance=function(e){this._minimimVertexDistance=e},Od.prototype.interfaces_=function(){return[]},Od.prototype.getClass=function(){return Od},Td.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(Od,Td);var Id=function(){},Ad={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};Id.prototype.interfaces_=function(){return[]},Id.prototype.getClass=function(){return Id},Id.toDegrees=function(e){return 180*e/Math.PI},Id.normalize=function(e){for(;e>Math.PI;)e-=Id.PI_TIMES_2;for(;e<=-Math.PI;)e+=Id.PI_TIMES_2;return e},Id.angle=function(){if(1===arguments.length){var e=arguments[0];return Math.atan2(e.y,e.x)}if(2===arguments.length){var t=arguments[0],n=arguments[1],r=n.x-t.x,i=n.y-t.y;return Math.atan2(i,r)}},Id.isAcute=function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)>0},Id.isObtuse=function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)<0},Id.interiorAngle=function(e,t,n){var r=Id.angle(t,e),i=Id.angle(t,n);return Math.abs(i-r)},Id.normalizePositive=function(e){if(e<0){for(;e<0;)e+=Id.PI_TIMES_2;e>=Id.PI_TIMES_2&&(e=0)}else{for(;e>=Id.PI_TIMES_2;)e-=Id.PI_TIMES_2;e<0&&(e=0)}return e},Id.angleBetween=function(e,t,n){var r=Id.angle(t,e),i=Id.angle(t,n);return Id.diff(r,i)},Id.diff=function(e,t){var n=null;return(n=e<t?t-e:e-t)>Math.PI&&(n=2*Math.PI-n),n},Id.toRadians=function(e){return e*Math.PI/180},Id.getTurn=function(e,t){var n=Math.sin(t-e);return n>0?Id.COUNTERCLOCKWISE:n<0?Id.CLOCKWISE:Id.NONE},Id.angleBetweenOriented=function(e,t,n){var r=Id.angle(t,e),i=Id.angle(t,n)-r;return i<=-Math.PI?i+Id.PI_TIMES_2:i>Math.PI?i-Id.PI_TIMES_2:i},Ad.PI_TIMES_2.get=function(){return 2*Math.PI},Ad.PI_OVER_2.get=function(){return Math.PI/2},Ad.PI_OVER_4.get=function(){return Math.PI/4},Ad.COUNTERCLOCKWISE.get=function(){return ac.COUNTERCLOCKWISE},Ad.CLOCKWISE.get=function(){return ac.CLOCKWISE},Ad.NONE.get=function(){return ac.COLLINEAR},Object.defineProperties(Id,Ad);var Rd=function e(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new pd,this._seg1=new pd,this._offset0=new pd,this._offset1=new pd,this._side=0,this._hasNarrowConcaveAngle=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=t,this._bufParams=n,this._li=new rc,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Sd.JOIN_ROUND&&(this._closingSegLengthFactor=e.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)},Pd={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Rd.prototype.addNextSegment=function(e,t){if(this._s0=this._s1,this._s1=this._s2,this._s2=e,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=ac.computeOrientation(this._s0,this._s1,this._s2),r=n===ac.CLOCKWISE&&this._side===Eu.LEFT||n===ac.COUNTERCLOCKWISE&&this._side===Eu.RIGHT;0===n?this.addCollinear(t):r?this.addOutsideTurn(n,t):this.addInsideTurn(n,t)},Rd.prototype.addLineEndCap=function(e,t){var n=new pd(e,t),r=new pd;this.computeOffsetSegment(n,Eu.LEFT,this._distance,r);var i=new pd;this.computeOffsetSegment(n,Eu.RIGHT,this._distance,i);var o=t.x-e.x,a=t.y-e.y,s=Math.atan2(a,o);switch(this._bufParams.getEndCapStyle()){case Sd.CAP_ROUND:this._segList.addPt(r.p1),this.addFilletArc(t,s+Math.PI/2,s-Math.PI/2,ac.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case Sd.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case Sd.CAP_SQUARE:var l=new Sl;l.x=Math.abs(this._distance)*Math.cos(s),l.y=Math.abs(this._distance)*Math.sin(s);var c=new Sl(r.p1.x+l.x,r.p1.y+l.y),u=new Sl(i.p1.x+l.x,i.p1.y+l.y);this._segList.addPt(c),this._segList.addPt(u)}},Rd.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Rd.prototype.addMitreJoin=function(e,t,n,r){var i=!0,o=null;try{o=Vl.intersection(t.p0,t.p1,n.p0,n.p1),(r<=0?1:o.distance(e)/Math.abs(r))>this._bufParams.getMitreLimit()&&(i=!1)}catch(e){if(!(e instanceof Ul))throw e;o=new Sl(0,0),i=!1}i?this._segList.addPt(o):this.addLimitedMitreJoin(t,n,r,this._bufParams.getMitreLimit())},Rd.prototype.addFilletCorner=function(e,t,n,r,i){var o=t.x-e.x,a=t.y-e.y,s=Math.atan2(a,o),l=n.x-e.x,c=n.y-e.y,u=Math.atan2(c,l);r===ac.CLOCKWISE?s<=u&&(s+=2*Math.PI):s>=u&&(s-=2*Math.PI),this._segList.addPt(t),this.addFilletArc(e,s,u,r,i),this._segList.addPt(n)},Rd.prototype.addOutsideTurn=function(e,t){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*Rd.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===Sd.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===Sd.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(t&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,e,this._distance),this._segList.addPt(this._offset1.p0))},Rd.prototype.createSquare=function(e){this._segList.addPt(new Sl(e.x+this._distance,e.y+this._distance)),this._segList.addPt(new Sl(e.x+this._distance,e.y-this._distance)),this._segList.addPt(new Sl(e.x-this._distance,e.y-this._distance)),this._segList.addPt(new Sl(e.x-this._distance,e.y+this._distance)),this._segList.closeRing()},Rd.prototype.addSegments=function(e,t){this._segList.addPts(e,t)},Rd.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},Rd.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},Rd.prototype.initSideSegments=function(e,t,n){this._s1=e,this._s2=t,this._side=n,this._seg1.setCoordinates(e,t),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},Rd.prototype.addLimitedMitreJoin=function(e,t,n,r){var i=this._seg0.p1,o=Id.angle(i,this._seg0.p0),a=Id.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,s=Id.normalize(o+a),l=Id.normalize(s+Math.PI),c=r*n,u=n-c*Math.abs(Math.sin(a)),d=i.x+c*Math.cos(l),f=i.y+c*Math.sin(l),h=new Sl(d,f),p=new pd(i,h),m=p.pointAlongOffset(1,u),g=p.pointAlongOffset(1,-u);this._side===Eu.LEFT?(this._segList.addPt(m),this._segList.addPt(g)):(this._segList.addPt(g),this._segList.addPt(m))},Rd.prototype.computeOffsetSegment=function(e,t,n,r){var i=t===Eu.LEFT?1:-1,o=e.p1.x-e.p0.x,a=e.p1.y-e.p0.y,s=Math.sqrt(o*o+a*a),l=i*n*o/s,c=i*n*a/s;r.p0.x=e.p0.x-c,r.p0.y=e.p0.y+l,r.p1.x=e.p1.x-c,r.p1.y=e.p1.y+l},Rd.prototype.addFilletArc=function(e,t,n,r,i){var o=r===ac.CLOCKWISE?-1:1,a=Math.abs(t-n),s=Math.trunc(a/this._filletAngleQuantum+.5);if(s<1)return null;for(var l=a/s,c=0,u=new Sl;c<a;){var d=t+o*c;u.x=e.x+i*Math.cos(d),u.y=e.y+i*Math.sin(d),this._segList.addPt(u),c+=l}},Rd.prototype.addInsideTurn=function(e,t){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*Rd.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new Sl((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var r=new Sl((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Rd.prototype.createCircle=function(e){var t=new Sl(e.x+this._distance,e.y);this._segList.addPt(t),this.addFilletArc(e,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Rd.prototype.addBevelJoin=function(e,t){this._segList.addPt(e.p1),this._segList.addPt(t.p0)},Rd.prototype.init=function(e){this._distance=e,this._maxCurveSegmentError=e*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Od,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(e*Rd.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Rd.prototype.addCollinear=function(e){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Sd.JOIN_BEVEL||this._bufParams.getJoinStyle()===Sd.JOIN_MITRE?(e&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,ac.CLOCKWISE,this._distance))},Rd.prototype.closeRing=function(){this._segList.closeRing()},Rd.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Rd.prototype.interfaces_=function(){return[]},Rd.prototype.getClass=function(){return Rd},Pd.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Pd.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Pd.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Pd.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Rd,Pd);var Md=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var e=arguments[0],t=arguments[1];this._precisionModel=e,this._bufParams=t};Md.prototype.getOffsetCurve=function(e,t){if(this._distance=t,0===t)return null;var n=t<0,r=Math.abs(t),i=this.getSegGen(r);e.length<=1?this.computePointCurve(e[0],i):this.computeOffsetCurve(e,n,i);var o=i.getCoordinates();return n&&kc.reverse(o),o},Md.prototype.computeSingleSidedBufferCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){n.addSegments(e,!0);var i=Ed.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Eu.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{n.addSegments(e,!1);var s=Ed.simplify(e,r),l=s.length-1;n.initSideSegments(s[0],s[1],Eu.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(s[c],!0)}n.addLastSegment(),n.closeRing()},Md.prototype.computeRingBufferCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);t===Eu.RIGHT&&(r=-r);var i=Ed.simplify(e,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],t);for(var a=1;a<=o;a++){var s=1!==a;n.addNextSegment(i[a],s)}n.closeRing()},Md.prototype.computeLineBufferCurve=function(e,t){var n=this.simplifyTolerance(this._distance),r=Ed.simplify(e,n),i=r.length-1;t.initSideSegments(r[0],r[1],Eu.LEFT);for(var o=2;o<=i;o++)t.addNextSegment(r[o],!0);t.addLastSegment(),t.addLineEndCap(r[i-1],r[i]);var a=Ed.simplify(e,-n),s=a.length-1;t.initSideSegments(a[s],a[s-1],Eu.LEFT);for(var l=s-2;l>=0;l--)t.addNextSegment(a[l],!0);t.addLastSegment(),t.addLineEndCap(a[1],a[0]),t.closeRing()},Md.prototype.computePointCurve=function(e,t){switch(this._bufParams.getEndCapStyle()){case Sd.CAP_ROUND:t.createCircle(e);break;case Sd.CAP_SQUARE:t.createSquare(e)}},Md.prototype.getLineCurve=function(e,t){if(this._distance=t,t<0&&!this._bufParams.isSingleSided())return null;if(0===t)return null;var n=Math.abs(t),r=this.getSegGen(n);if(e.length<=1)this.computePointCurve(e[0],r);else if(this._bufParams.isSingleSided()){var i=t<0;this.computeSingleSidedBufferCurve(e,i,r)}else this.computeLineBufferCurve(e,r);return r.getCoordinates()},Md.prototype.getBufferParameters=function(){return this._bufParams},Md.prototype.simplifyTolerance=function(e){return e*this._bufParams.getSimplifyFactor()},Md.prototype.getRingCurve=function(e,t,n){if(this._distance=n,e.length<=2)return this.getLineCurve(e,n);if(0===n)return Md.copyCoordinates(e);var r=this.getSegGen(n);return this.computeRingBufferCurve(e,t,r),r.getCoordinates()},Md.prototype.computeOffsetCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){var i=Ed.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Eu.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{var s=Ed.simplify(e,r),l=s.length-1;n.initSideSegments(s[0],s[1],Eu.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(s[c],!0)}n.addLastSegment()},Md.prototype.getSegGen=function(e){return new Rd(this._precisionModel,this._bufParams,e)},Md.prototype.interfaces_=function(){return[]},Md.prototype.getClass=function(){return Md},Md.copyCoordinates=function(e){for(var t=new Array(e.length).fill(null),n=0;n<t.length;n++)t[n]=new Sl(e[n]);return t};var Nd=function(){this._subgraphs=null,this._seg=new pd,this._cga=new ac;var e=arguments[0];this._subgraphs=e},Ld={DepthSegment:{configurable:!0}};Nd.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var e=arguments[0],t=new Sc,n=this._subgraphs.iterator();n.hasNext();){var r=n.next(),i=r.getEnvelope();e.y<i.getMinY()||e.y>i.getMaxY()||this.findStabbedSegments(e,r.getDirectedEdges(),t)}return t}if(3===arguments.length)if(Il(arguments[2],xc)&&arguments[0]instanceof Sl&&arguments[1]instanceof Uu){for(var o=arguments[0],a=arguments[1],s=arguments[2],l=a.getEdge().getCoordinates(),c=0;c<l.length-1;c++)if(this._seg.p0=l[c],this._seg.p1=l[c+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<o.x)&&!(this._seg.isHorizontal()||o.y<this._seg.p0.y||o.y>this._seg.p1.y||ac.computeOrientation(this._seg.p0,this._seg.p1,o)===ac.RIGHT)){var u=a.getDepth(Eu.LEFT);this._seg.p0.equals(l[c])||(u=a.getDepth(Eu.RIGHT));var d=new Dd(this._seg,u);s.add(d)}}else if(Il(arguments[2],xc)&&arguments[0]instanceof Sl&&Il(arguments[1],xc))for(var f=arguments[0],h=arguments[1],p=arguments[2],m=h.iterator();m.hasNext();){var g=m.next();g.isForward()&&this.findStabbedSegments(f,g,p)}},Nd.prototype.getDepth=function(e){var t=this.findStabbedSegments(e);return 0===t.size()?0:Zu.min(t)._leftDepth},Nd.prototype.interfaces_=function(){return[]},Nd.prototype.getClass=function(){return Nd},Ld.DepthSegment.get=function(){return Dd},Object.defineProperties(Nd,Ld);var Dd=function(){this._upwardSeg=null,this._leftDepth=null;var e=arguments[0],t=arguments[1];this._upwardSeg=new pd(e),this._leftDepth=t};Dd.prototype.compareTo=function(e){var t=e;if(this._upwardSeg.minX()>=t._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=t._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(t._upwardSeg);return 0!==n||0!=(n=-1*t._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(t._upwardSeg)},Dd.prototype.compareX=function(e,t){var n=e.p0.compareTo(t.p0);return 0!==n?n:e.p1.compareTo(t.p1)},Dd.prototype.toString=function(){return this._upwardSeg.toString()},Dd.prototype.interfaces_=function(){return[_l]},Dd.prototype.getClass=function(){return Dd};var jd=function(e,t,n){this.p0=e||null,this.p1=t||null,this.p2=n||null};jd.prototype.area=function(){return jd.area(this.p0,this.p1,this.p2)},jd.prototype.signedArea=function(){return jd.signedArea(this.p0,this.p1,this.p2)},jd.prototype.interpolateZ=function(e){if(null===e)throw new vl("Supplied point is null.");return jd.interpolateZ(e,this.p0,this.p1,this.p2)},jd.prototype.longestSideLength=function(){return jd.longestSideLength(this.p0,this.p1,this.p2)},jd.prototype.isAcute=function(){return jd.isAcute(this.p0,this.p1,this.p2)},jd.prototype.circumcentre=function(){return jd.circumcentre(this.p0,this.p1,this.p2)},jd.prototype.area3D=function(){return jd.area3D(this.p0,this.p1,this.p2)},jd.prototype.centroid=function(){return jd.centroid(this.p0,this.p1,this.p2)},jd.prototype.inCentre=function(){return jd.inCentre(this.p0,this.p1,this.p2)},jd.prototype.interfaces_=function(){return[]},jd.prototype.getClass=function(){return jd},jd.area=function(e,t,n){return Math.abs(((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2)},jd.signedArea=function(e,t,n){return((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2},jd.det=function(e,t,n,r){return e*r-t*n},jd.interpolateZ=function(e,t,n,r){var i=t.x,o=t.y,a=n.x-i,s=r.x-i,l=n.y-o,c=r.y-o,u=a*c-s*l,d=e.x-i,f=e.y-o,h=(c*d-s*f)/u,p=(-l*d+a*f)/u;return t.z+h*(n.z-t.z)+p*(r.z-t.z)},jd.longestSideLength=function(e,t,n){var r=e.distance(t),i=t.distance(n),o=n.distance(e),a=r;return i>a&&(a=i),o>a&&(a=o),a},jd.isAcute=function(e,t,n){return!!Id.isAcute(e,t,n)&&!!Id.isAcute(t,n,e)&&!!Id.isAcute(n,e,t)},jd.circumcentre=function(e,t,n){var r=n.x,i=n.y,o=e.x-r,a=e.y-i,s=t.x-r,l=t.y-i,c=2*jd.det(o,a,s,l),u=jd.det(a,o*o+a*a,l,s*s+l*l),d=jd.det(o,o*o+a*a,s,s*s+l*l);return new Sl(r-u/c,i+d/c)},jd.perpendicularBisector=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=new Vl(e.x+n/2,e.y+r/2,1),o=new Vl(e.x-r+n/2,e.y+n+r/2,1);return new Vl(i,o)},jd.angleBisector=function(e,t,n){var r=t.distance(e),i=r/(r+t.distance(n)),o=n.x-e.x,a=n.y-e.y;return new Sl(e.x+i*o,e.y+i*a)},jd.area3D=function(e,t,n){var r=t.x-e.x,i=t.y-e.y,o=t.z-e.z,a=n.x-e.x,s=n.y-e.y,l=n.z-e.z,c=i*l-o*s,u=o*a-r*l,d=r*s-i*a,f=c*c+u*u+d*d,h=Math.sqrt(f)/2;return h},jd.centroid=function(e,t,n){var r=(e.x+t.x+n.x)/3,i=(e.y+t.y+n.y)/3;return new Sl(r,i)},jd.inCentre=function(e,t,n){var r=t.distance(n),i=e.distance(n),o=e.distance(t),a=r+i+o,s=(r*e.x+i*t.x+o*n.x)/a,l=(r*e.y+i*t.y+o*n.y)/a;return new Sl(s,l)};var Fd=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new Sc;var e=arguments[0],t=arguments[1],n=arguments[2];this._inputGeom=e,this._distance=t,this._curveBuilder=n};Fd.prototype.addPoint=function(e){if(this._distance<=0)return null;var t=e.getCoordinates(),n=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(n,Ol.EXTERIOR,Ol.INTERIOR)},Fd.prototype.addPolygon=function(e){var t=this._distance,n=Eu.LEFT;this._distance<0&&(t=-this._distance,n=Eu.RIGHT);var r=e.getExteriorRing(),i=kc.removeRepeatedPoints(r.getCoordinates());if(this._distance<0&&this.isErodedCompletely(r,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addPolygonRing(i,t,n,Ol.EXTERIOR,Ol.INTERIOR);for(var o=0;o<e.getNumInteriorRing();o++){var a=e.getInteriorRingN(o),s=kc.removeRepeatedPoints(a.getCoordinates());this._distance>0&&this.isErodedCompletely(a,-this._distance)||this.addPolygonRing(s,t,Eu.opposite(n),Ol.INTERIOR,Ol.EXTERIOR)}},Fd.prototype.isTriangleErodedCompletely=function(e,t){var n=new jd(e[0],e[1],e[2]),r=n.inCentre();return ac.distancePointLine(r,n.p0,n.p1)<Math.abs(t)},Fd.prototype.addLineString=function(e){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var t=kc.removeRepeatedPoints(e.getCoordinates()),n=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(n,Ol.EXTERIOR,Ol.INTERIOR)},Fd.prototype.addCurve=function(e,t,n){if(null===e||e.length<2)return null;var r=new hd(e,new Pu(0,Ol.BOUNDARY,t,n));this._curveList.add(r)},Fd.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},Fd.prototype.addPolygonRing=function(e,t,n,r,i){if(0===t&&e.length<tu.MINIMUM_VALID_SIZE)return null;var o=r,a=i;e.length>=tu.MINIMUM_VALID_SIZE&&ac.isCCW(e)&&(o=i,a=r,n=Eu.opposite(n));var s=this._curveBuilder.getRingCurve(e,n,t);this.addCurve(s,o,a)},Fd.prototype.add=function(e){if(e.isEmpty())return null;e instanceof Zc?this.addPolygon(e):e instanceof Xc?this.addLineString(e):e instanceof Jc?this.addPoint(e):(e instanceof eu||e instanceof Gc||e instanceof nu||e instanceof Uc)&&this.addCollection(e)},Fd.prototype.isErodedCompletely=function(e,t){var n=e.getCoordinates();if(n.length<4)return t<0;if(4===n.length)return this.isTriangleErodedCompletely(n,t);var r=e.getEnvelopeInternal(),i=Math.min(r.getHeight(),r.getWidth());return t<0&&2*Math.abs(t)>i},Fd.prototype.addCollection=function(e){for(var t=0;t<e.getNumGeometries();t++){var n=e.getGeometryN(t);this.add(n)}},Fd.prototype.interfaces_=function(){return[]},Fd.prototype.getClass=function(){return Fd};var Bd=function(){};Bd.prototype.locate=function(e){},Bd.prototype.interfaces_=function(){return[]},Bd.prototype.getClass=function(){return Bd};var qd=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var e=arguments[0];this._parent=e,this._atStart=!0,this._index=0,this._max=e.getNumGeometries()};qd.prototype.next=function(){if(this._atStart)return this._atStart=!1,qd.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new Ai;var e=this._parent.getGeometryN(this._index++);return e instanceof Uc?(this._subcollectionIterator=new qd(e),this._subcollectionIterator.next()):e},qd.prototype.remove=function(){throw new Error(this.getClass().getName())},qd.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},qd.prototype.interfaces_=function(){return[wc]},qd.prototype.getClass=function(){return qd},qd.isAtomic=function(e){return!(e instanceof Uc)};var zd=function(){this._geom=null;var e=arguments[0];this._geom=e};zd.prototype.locate=function(e){return zd.locate(e,this._geom)},zd.prototype.interfaces_=function(){return[Bd]},zd.prototype.getClass=function(){return zd},zd.isPointInRing=function(e,t){return!!t.getEnvelopeInternal().intersects(e)&&ac.isPointInRing(e,t.getCoordinates())},zd.containsPointInPolygon=function(e,t){if(t.isEmpty())return!1;var n=t.getExteriorRing();if(!zd.isPointInRing(e,n))return!1;for(var r=0;r<t.getNumInteriorRing();r++){var i=t.getInteriorRingN(r);if(zd.isPointInRing(e,i))return!1}return!0},zd.containsPoint=function(e,t){if(t instanceof Zc)return zd.containsPointInPolygon(e,t);if(t instanceof Uc)for(var n=new qd(t);n.hasNext();){var r=n.next();if(r!==t&&zd.containsPoint(e,r))return!0}return!1},zd.locate=function(e,t){return t.isEmpty()?Ol.EXTERIOR:zd.containsPoint(e,t)?Ol.INTERIOR:Ol.EXTERIOR};var Ud=function(){this._edgeMap=new Fi,this._edgeList=null,this._ptInAreaLocation=[Ol.NONE,Ol.NONE]};Ud.prototype.getNextCW=function(e){this.getEdges();var t=this._edgeList.indexOf(e),n=t-1;return 0===t&&(n=this._edgeList.size()-1),this._edgeList.get(n)},Ud.prototype.propagateSideLabels=function(e){for(var t=Ol.NONE,n=this.iterator();n.hasNext();){var r=n.next().getLabel();r.isArea(e)&&r.getLocation(e,Eu.LEFT)!==Ol.NONE&&(t=r.getLocation(e,Eu.LEFT))}if(t===Ol.NONE)return null;for(var i=t,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getLabel();if(s.getLocation(e,Eu.ON)===Ol.NONE&&s.setLocation(e,Eu.ON,i),s.isArea(e)){var l=s.getLocation(e,Eu.LEFT),c=s.getLocation(e,Eu.RIGHT);if(c!==Ol.NONE){if(c!==i)throw new Tu("side location conflict",a.getCoordinate());l===Ol.NONE&&ec.shouldNeverReachHere("found single null side (at "+a.getCoordinate()+")"),i=l}else ec.isTrue(s.getLocation(e,Eu.LEFT)===Ol.NONE,"found single null side"),s.setLocation(e,Eu.RIGHT,i),s.setLocation(e,Eu.LEFT,i)}}},Ud.prototype.getCoordinate=function(){var e=this.iterator();return e.hasNext()?e.next().getCoordinate():null},Ud.prototype.print=function(e){Gl.out.println("EdgeEndStar:   "+this.getCoordinate());for(var t=this.iterator();t.hasNext();)t.next().print(e)},Ud.prototype.isAreaLabelsConsistent=function(e){return this.computeEdgeEndLabels(e.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Ud.prototype.checkAreaLabelsConsistent=function(e){var t=this.getEdges();if(t.size()<=0)return!0;var n=t.size()-1,r=t.get(n).getLabel().getLocation(e,Eu.LEFT);ec.isTrue(r!==Ol.NONE,"Found unlabelled area edge");for(var i=r,o=this.iterator();o.hasNext();){var a=o.next().getLabel();ec.isTrue(a.isArea(e),"Found non-area edge");var s=a.getLocation(e,Eu.LEFT),l=a.getLocation(e,Eu.RIGHT);if(s===l)return!1;if(l!==i)return!1;i=s}return!0},Ud.prototype.findIndex=function(e){this.iterator();for(var t=0;t<this._edgeList.size();t++)if(this._edgeList.get(t)===e)return t;return-1},Ud.prototype.iterator=function(){return this.getEdges().iterator()},Ud.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new Sc(this._edgeMap.values())),this._edgeList},Ud.prototype.getLocation=function(e,t,n){return this._ptInAreaLocation[e]===Ol.NONE&&(this._ptInAreaLocation[e]=zd.locate(t,n[e].getGeometry())),this._ptInAreaLocation[e]},Ud.prototype.toString=function(){var e=new Pl;e.append("EdgeEndStar:   "+this.getCoordinate()),e.append("\n");for(var t=this.iterator();t.hasNext();){var n=t.next();e.append(n),e.append("\n")}return e.toString()},Ud.prototype.computeEdgeEndLabels=function(e){for(var t=this.iterator();t.hasNext();)t.next().computeLabel(e)},Ud.prototype.computeLabelling=function(e){this.computeEdgeEndLabels(e[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var t=[!1,!1],n=this.iterator();n.hasNext();)for(var r=n.next().getLabel(),i=0;i<2;i++)r.isLine(i)&&r.getLocation(i)===Ol.BOUNDARY&&(t[i]=!0);for(var o=this.iterator();o.hasNext();)for(var a=o.next(),s=a.getLabel(),l=0;l<2;l++)if(s.isAnyNull(l)){var c=Ol.NONE;if(t[l])c=Ol.EXTERIOR;else{var u=a.getCoordinate();c=this.getLocation(l,u,e)}s.setAllLocationsIfNull(l,c)}},Ud.prototype.getDegree=function(){return this._edgeMap.size()},Ud.prototype.insertEdgeEnd=function(e,t){this._edgeMap.put(e,t),this._edgeList=null},Ud.prototype.interfaces_=function(){return[]},Ud.prototype.getClass=function(){return Ud};var Gd=function(e){function t(){e.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var e=null,t=null,n=this._SCANNING_FOR_INCOMING,r=0;r<this._resultAreaEdgeList.size();r++){var i=this._resultAreaEdgeList.get(r),o=i.getSym();if(i.getLabel().isArea())switch(null===e&&i.isInResult()&&(e=i),n){case this._SCANNING_FOR_INCOMING:if(!o.isInResult())continue;t=o,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!i.isInResult())continue;t.setNext(i),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===e)throw new Tu("no outgoing dirEdge found",this.getCoordinate());ec.isTrue(e.isInResult(),"unable to link last incoming dirEdge"),t.setNext(e)}},t.prototype.insert=function(e){var t=e;this.insertEdgeEnd(t,t)},t.prototype.getRightmostEdge=function(){var e=this.getEdges(),t=e.size();if(t<1)return null;var n=e.get(0);if(1===t)return n;var r=e.get(t-1),i=n.getQuadrant(),o=r.getQuadrant();return Bu.isNorthern(i)&&Bu.isNorthern(o)?n:Bu.isNorthern(i)||Bu.isNorthern(o)?0!==n.getDy()?n:0!==r.getDy()?r:(ec.shouldNeverReachHere("found two horizontal edges incident on node"),null):r},t.prototype.print=function(e){Gl.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var t=this.iterator();t.hasNext();){var n=t.next();e.print("out "),n.print(e),e.println(),e.print("in "),n.getSym().print(e),e.println()}},t.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new Sc;for(var e=this.iterator();e.hasNext();){var t=e.next();(t.isInResult()||t.getSym().isInResult())&&this._resultAreaEdgeList.add(t)}return this._resultAreaEdgeList},t.prototype.updateLabelling=function(e){for(var t=this.iterator();t.hasNext();){var n=t.next().getLabel();n.setAllLocationsIfNull(0,e.getLocation(0)),n.setAllLocationsIfNull(1,e.getLocation(1))}},t.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var e=null,t=null,n=this._edgeList.size()-1;n>=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===t&&(t=i),null!==e&&i.setNext(e),e=r}t.setNext(e)},t.prototype.computeDepths=function(){if(1===arguments.length){var e=arguments[0],t=this.findIndex(e),n=e.getDepth(Eu.LEFT),r=e.getDepth(Eu.RIGHT),i=this.computeDepths(t+1,this._edgeList.size(),n);if(this.computeDepths(0,t,i)!==r)throw new Tu("depth mismatch at "+e.getCoordinate())}else if(3===arguments.length){for(var o=arguments[0],a=arguments[1],s=arguments[2],l=o;l<a;l++){var c=this._edgeList.get(l);c.setEdgeDepths(Eu.RIGHT,s),s=c.getDepth(Eu.LEFT)}return s}},t.prototype.mergeSymLabels=function(){for(var e=this.iterator();e.hasNext();){var t=e.next();t.getLabel().merge(t.getSym().getLabel())}},t.prototype.linkMinimalDirectedEdges=function(e){for(var t=null,n=null,r=this._SCANNING_FOR_INCOMING,i=this._resultAreaEdgeList.size()-1;i>=0;i--){var o=this._resultAreaEdgeList.get(i),a=o.getSym();switch(null===t&&o.getEdgeRing()===e&&(t=o),r){case this._SCANNING_FOR_INCOMING:if(a.getEdgeRing()!==e)continue;n=a,r=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==e)continue;n.setNextMin(o),r=this._SCANNING_FOR_INCOMING}}r===this._LINKING_TO_OUTGOING&&(ec.isTrue(null!==t,"found null for first outgoing dirEdge"),ec.isTrue(t.getEdgeRing()===e,"unable to link last incoming dirEdge"),n.setNextMin(t))},t.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var e=0,t=this.iterator();t.hasNext();)t.next().isInResult()&&e++;return e}if(1===arguments.length){for(var n=arguments[0],r=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===n&&r++;return r}},t.prototype.getLabel=function(){return this._label},t.prototype.findCoveredLineEdges=function(){for(var e=Ol.NONE,t=this.iterator();t.hasNext();){var n=t.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){e=Ol.INTERIOR;break}if(r.isInResult()){e=Ol.EXTERIOR;break}}}if(e===Ol.NONE)return null;for(var i=e,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getSym();a.isLineEdge()?a.getEdge().setCovered(i===Ol.INTERIOR):(a.isInResult()&&(i=Ol.EXTERIOR),s.isInResult()&&(i=Ol.INTERIOR))}},t.prototype.computeLabelling=function(t){e.prototype.computeLabelling.call(this,t),this._label=new Pu(Ol.NONE);for(var n=this.iterator();n.hasNext();)for(var r=n.next().getEdge().getLabel(),i=0;i<2;i++){var o=r.getLocation(i);o!==Ol.INTERIOR&&o!==Ol.BOUNDARY||this._label.setLocation(i,Ol.INTERIOR)}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ud),Vd=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createNode=function(e){return new ju(e,new Gd)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Gu),Wd=function e(){this._pts=null,this._orientation=null;var t=arguments[0];this._pts=t,this._orientation=e.orientation(t)};Wd.prototype.compareTo=function(e){var t=e;return Wd.compareOriented(this._pts,this._orientation,t._pts,t._orientation)},Wd.prototype.interfaces_=function(){return[_l]},Wd.prototype.getClass=function(){return Wd},Wd.orientation=function(e){return 1===kc.increasingDirection(e)},Wd.compareOriented=function(e,t,n,r){for(var i=t?1:-1,o=r?1:-1,a=t?e.length:-1,s=r?n.length:-1,l=t?0:e.length-1,c=r?0:n.length-1;;){var u=e[l].compareTo(n[c]);if(0!==u)return u;var d=(l+=i)===a,f=(c+=o)===s;if(d&&!f)return-1;if(!d&&f)return 1;if(d&&f)return 0}};var Hd=function(){this._edges=new Sc,this._ocaMap=new Fi};Hd.prototype.print=function(e){e.print("MULTILINESTRING ( ");for(var t=0;t<this._edges.size();t++){var n=this._edges.get(t);t>0&&e.print(","),e.print("(");for(var r=n.getCoordinates(),i=0;i<r.length;i++)i>0&&e.print(","),e.print(r[i].x+" "+r[i].y);e.println(")")}e.print(")  ")},Hd.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next())},Hd.prototype.findEdgeIndex=function(e){for(var t=0;t<this._edges.size();t++)if(this._edges.get(t).equals(e))return t;return-1},Hd.prototype.iterator=function(){return this._edges.iterator()},Hd.prototype.getEdges=function(){return this._edges},Hd.prototype.get=function(e){return this._edges.get(e)},Hd.prototype.findEqualEdge=function(e){var t=new Wd(e.getCoordinates());return this._ocaMap.get(t)},Hd.prototype.add=function(e){this._edges.add(e);var t=new Wd(e.getCoordinates());this._ocaMap.put(t,e)},Hd.prototype.interfaces_=function(){return[]},Hd.prototype.getClass=function(){return Hd};var $d=function(){};$d.prototype.processIntersections=function(e,t,n,r){},$d.prototype.isDone=function(){},$d.prototype.interfaces_=function(){return[]},$d.prototype.getClass=function(){return $d};var Kd=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var e=arguments[0];this._li=e};Kd.prototype.isTrivialIntersection=function(e,t,n,r){if(e===n&&1===this._li.getIntersectionNum()){if(Kd.isAdjacentSegments(t,r))return!0;if(e.isClosed()){var i=e.size()-1;if(0===t&&r===i||0===r&&t===i)return!0}}return!1},Kd.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Kd.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Kd.prototype.getLineIntersector=function(){return this._li},Kd.prototype.hasProperIntersection=function(){return this._hasProper},Kd.prototype.processIntersections=function(e,t,n,r){if(e===n&&t===r)return null;this.numTests++;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(e,t,n,r)||(this._hasIntersection=!0,e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},Kd.prototype.hasIntersection=function(){return this._hasIntersection},Kd.prototype.isDone=function(){return!1},Kd.prototype.hasInteriorIntersection=function(){return this._hasInterior},Kd.prototype.interfaces_=function(){return[$d]},Kd.prototype.getClass=function(){return Kd},Kd.isAdjacentSegments=function(e,t){return 1===Math.abs(e-t)};var Xd=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var e=arguments[0],t=arguments[1],n=arguments[2];this.coord=new Sl(e),this.segmentIndex=t,this.dist=n};Xd.prototype.getSegmentIndex=function(){return this.segmentIndex},Xd.prototype.getCoordinate=function(){return this.coord},Xd.prototype.print=function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex),e.println(" dist = "+this.dist)},Xd.prototype.compareTo=function(e){var t=e;return this.compare(t.segmentIndex,t.dist)},Xd.prototype.isEndPoint=function(e){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===e},Xd.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},Xd.prototype.getDistance=function(){return this.dist},Xd.prototype.compare=function(e,t){return this.segmentIndex<e?-1:this.segmentIndex>e?1:this.dist<t?-1:this.dist>t?1:0},Xd.prototype.interfaces_=function(){return[_l]},Xd.prototype.getClass=function(){return Xd};var Yd=function(){this._nodeMap=new Fi,this.edge=null;var e=arguments[0];this.edge=e};Yd.prototype.print=function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)},Yd.prototype.iterator=function(){return this._nodeMap.values().iterator()},Yd.prototype.addSplitEdges=function(e){this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next(),i=this.createSplitEdge(n,r);e.add(i),n=r}},Yd.prototype.addEndpoints=function(){var e=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[e],e,0)},Yd.prototype.createSplitEdge=function(e,t){var n=t.segmentIndex-e.segmentIndex+2,r=this.edge.pts[t.segmentIndex],i=t.dist>0||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new Sl(e.coord);for(var s=e.segmentIndex+1;s<=t.segmentIndex;s++)o[a++]=this.edge.pts[s];return i&&(o[a]=t.coord),new tf(o,new Pu(this.edge._label))},Yd.prototype.add=function(e,t,n){var r=new Xd(e,t,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)},Yd.prototype.isIntersection=function(e){for(var t=this.iterator();t.hasNext();)if(t.next().coord.equals(e))return!0;return!1},Yd.prototype.interfaces_=function(){return[]},Yd.prototype.getClass=function(){return Yd};var Jd=function(){};Jd.prototype.getChainStartIndices=function(e){var t=0,n=new Sc;n.add(new Ml(t));do{var r=this.findChainEnd(e,t);n.add(new Ml(r)),t=r}while(t<e.length-1);return Jd.toIntArray(n)},Jd.prototype.findChainEnd=function(e,t){for(var n=Bu.quadrant(e[t],e[t+1]),r=t+1;r<e.length;){if(Bu.quadrant(e[r-1],e[r])!==n)break;r++}return r-1},Jd.prototype.interfaces_=function(){return[]},Jd.prototype.getClass=function(){return Jd},Jd.toIntArray=function(e){for(var t=new Array(e.size()).fill(null),n=0;n<t.length;n++)t[n]=e.get(n).intValue();return t};var Qd=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new Wl,this.env2=new Wl;var e=arguments[0];this.e=e,this.pts=e.getCoordinates();var t=new Jd;this.startIndex=t.getChainStartIndices(this.pts)};Qd.prototype.getCoordinates=function(){return this.pts},Qd.prototype.getMaxX=function(e){var t=this.pts[this.startIndex[e]].x,n=this.pts[this.startIndex[e+1]].x;return t>n?t:n},Qd.prototype.getMinX=function(e){var t=this.pts[this.startIndex[e]].x,n=this.pts[this.startIndex[e+1]].x;return t<n?t:n},Qd.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this.computeIntersectsForChain(this.startIndex[e],this.startIndex[e+1],t,t.startIndex[n],t.startIndex[n+1],r)}else if(6===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3],l=arguments[4],c=arguments[5],u=this.pts[i],d=this.pts[o],f=a.pts[s],h=a.pts[l];if(o-i==1&&l-s==1)return c.addIntersections(this.e,i,a.e,s),null;if(this.env1.init(u,d),this.env2.init(f,h),!this.env1.intersects(this.env2))return null;var p=Math.trunc((i+o)/2),m=Math.trunc((s+l)/2);i<p&&(s<m&&this.computeIntersectsForChain(i,p,a,s,m,c),m<l&&this.computeIntersectsForChain(i,p,a,m,l,c)),p<o&&(s<m&&this.computeIntersectsForChain(p,o,a,s,m,c),m<l&&this.computeIntersectsForChain(p,o,a,m,l,c))}},Qd.prototype.getStartIndexes=function(){return this.startIndex},Qd.prototype.computeIntersects=function(e,t){for(var n=0;n<this.startIndex.length-1;n++)for(var r=0;r<e.startIndex.length-1;r++)this.computeIntersectsForChain(n,e,r,t)},Qd.prototype.interfaces_=function(){return[]},Qd.prototype.getClass=function(){return Qd};var Zd=function e(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var t=0;t<2;t++)for(var n=0;n<3;n++)this._depth[t][n]=e.NULL_VALUE},ef={NULL_VALUE:{configurable:!0}};Zd.prototype.getDepth=function(e,t){return this._depth[e][t]},Zd.prototype.setDepth=function(e,t,n){this._depth[e][t]=n},Zd.prototype.isNull=function(){if(0===arguments.length){for(var e=0;e<2;e++)for(var t=0;t<3;t++)if(this._depth[e][t]!==Zd.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===Zd.NULL_VALUE}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._depth[r][i]===Zd.NULL_VALUE}},Zd.prototype.normalize=function(){for(var e=0;e<2;e++)if(!this.isNull(e)){var t=this._depth[e][1];this._depth[e][2]<t&&(t=this._depth[e][2]),t<0&&(t=0);for(var n=1;n<3;n++){var r=0;this._depth[e][n]>t&&(r=1),this._depth[e][n]=r}}},Zd.prototype.getDelta=function(e){return this._depth[e][Eu.RIGHT]-this._depth[e][Eu.LEFT]},Zd.prototype.getLocation=function(e,t){return this._depth[e][t]<=0?Ol.EXTERIOR:Ol.INTERIOR},Zd.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},Zd.prototype.add=function(){if(1===arguments.length)for(var e=arguments[0],t=0;t<2;t++)for(var n=1;n<3;n++){var r=e.getLocation(t,n);r!==Ol.EXTERIOR&&r!==Ol.INTERIOR||(this.isNull(t,n)?this._depth[t][n]=Zd.depthAtLocation(r):this._depth[t][n]+=Zd.depthAtLocation(r))}else if(3===arguments.length){var i=arguments[0],o=arguments[1];arguments[2]===Ol.INTERIOR&&this._depth[i][o]++}},Zd.prototype.interfaces_=function(){return[]},Zd.prototype.getClass=function(){return Zd},Zd.depthAtLocation=function(e){return e===Ol.EXTERIOR?0:e===Ol.INTERIOR?1:Zd.NULL_VALUE},ef.NULL_VALUE.get=function(){return-1},Object.defineProperties(Zd,ef);var tf=function(e){function t(){if(e.call(this),this.pts=null,this._env=null,this.eiList=new Yd(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new Zd,this._depthDelta=0,1===arguments.length){var n=arguments[0];t.call(this,n,null)}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.pts=r,this._label=i}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDepth=function(){return this._depth},t.prototype.getCollapsedEdge=function(){var e=new Array(2).fill(null);return e[0]=this.pts[0],e[1]=this.pts[1],new t(e,Pu.toLineLabel(this._label))},t.prototype.isIsolated=function(){return this._isIsolated},t.prototype.getCoordinates=function(){return this.pts},t.prototype.setIsolated=function(e){this._isIsolated=e},t.prototype.setName=function(e){this._name=e},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;if(this.pts.length!==n.pts.length)return!1;for(var r=!0,i=!0,o=this.pts.length,a=0;a<this.pts.length;a++)if(this.pts[a].equals2D(n.pts[a])||(r=!1),this.pts[a].equals2D(n.pts[--o])||(i=!1),!r&&!i)return!1;return!0},t.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var e=arguments[0];return this.pts[e]}},t.prototype.print=function(e){e.print("edge "+this._name+": "),e.print("LINESTRING (");for(var t=0;t<this.pts.length;t++)t>0&&e.print(","),e.print(this.pts[t].x+" "+this.pts[t].y);e.print(")  "+this._label+" "+this._depthDelta)},t.prototype.computeIM=function(e){t.updateIM(this._label,e)},t.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},t.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},t.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},t.prototype.getDepthDelta=function(){return this._depthDelta},t.prototype.getNumPoints=function(){return this.pts.length},t.prototype.printReverse=function(e){e.print("edge "+this._name+": ");for(var t=this.pts.length-1;t>=0;t--)e.print(this.pts[t]+" ");e.println("")},t.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new Qd(this)),this._mce},t.prototype.getEnvelope=function(){if(null===this._env){this._env=new Wl;for(var e=0;e<this.pts.length;e++)this._env.expandToInclude(this.pts[e])}return this._env},t.prototype.addIntersection=function(e,t,n,r){var i=new Sl(e.getIntersection(r)),o=t,a=e.getEdgeDistance(n,r),s=o+1;if(s<this.pts.length){var l=this.pts[s];i.equals2D(l)&&(o=s,a=0)}this.eiList.add(i,o,a)},t.prototype.toString=function(){var e=new Pl;e.append("edge "+this._name+": "),e.append("LINESTRING (");for(var t=0;t<this.pts.length;t++)t>0&&e.append(","),e.append(this.pts[t].x+" "+this.pts[t].y);return e.append(")  "+this._label+" "+this._depthDelta),e.toString()},t.prototype.isPointwiseEqual=function(e){if(this.pts.length!==e.pts.length)return!1;for(var t=0;t<this.pts.length;t++)if(!this.pts[t].equals2D(e.pts[t]))return!1;return!0},t.prototype.setDepthDelta=function(e){this._depthDelta=e},t.prototype.getEdgeIntersectionList=function(){return this.eiList},t.prototype.addIntersections=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++)this.addIntersection(e,t,n,r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.updateIM=function(){if(2!==arguments.length)return e.prototype.updateIM.apply(this,arguments);var t=arguments[0],n=arguments[1];n.setAtLeastIfValid(t.getLocation(0,Eu.ON),t.getLocation(1,Eu.ON),1),t.isArea()&&(n.setAtLeastIfValid(t.getLocation(0,Eu.LEFT),t.getLocation(1,Eu.LEFT),2),n.setAtLeastIfValid(t.getLocation(0,Eu.RIGHT),t.getLocation(1,Eu.RIGHT),2))},t}(Du),nf=function(e){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new Hd,this._bufParams=e||null};nf.prototype.setWorkingPrecisionModel=function(e){this._workingPrecisionModel=e},nf.prototype.insertUniqueEdge=function(e){var t=this._edgeList.findEqualEdge(e);if(null!==t){var n=t.getLabel(),r=e.getLabel();t.isPointwiseEqual(e)||(r=new Pu(e.getLabel())).flip(),n.merge(r);var i=nf.depthDelta(r),o=t.getDepthDelta()+i;t.setDepthDelta(o)}else this._edgeList.add(e),e.setDepthDelta(nf.depthDelta(e.getLabel()))},nf.prototype.buildSubgraphs=function(e,t){for(var n=new Sc,r=e.iterator();r.hasNext();){var i=r.next(),o=i.getRightmostCoordinate(),a=new Nd(n).getDepth(o);i.computeDepth(a),i.findResultEdges(),n.add(i),t.add(i.getDirectedEdges(),i.getNodes())}},nf.prototype.createSubgraphs=function(e){for(var t=new Sc,n=e.getNodes().iterator();n.hasNext();){var r=n.next();if(!r.isVisited()){var i=new Au;i.create(r),t.add(i)}}return Zu.sort(t,Zu.reverseOrder()),t},nf.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},nf.prototype.getNoder=function(e){if(null!==this._workingNoder)return this._workingNoder;var t=new wd,n=new rc;return n.setPrecisionModel(e),t.setSegmentIntersector(new Kd(n)),t},nf.prototype.buffer=function(e,t){var n=this._workingPrecisionModel;null===n&&(n=e.getPrecisionModel()),this._geomFact=e.getFactory();var r=new Md(n,this._bufParams),i=new Fd(e,t,r).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,n),this._graph=new Vu(new Vd),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),a=new Wu(this._geomFact);this.buildSubgraphs(o,a);var s=a.getPolygons();return s.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(s)},nf.prototype.computeNodedEdges=function(e,t){var n=this.getNoder(t);n.computeNodes(e);for(var r=n.getNodedSubstrings().iterator();r.hasNext();){var i=r.next(),o=i.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var a=i.getData(),s=new tf(i.getCoordinates(),new Pu(a));this.insertUniqueEdge(s)}}},nf.prototype.setNoder=function(e){this._workingNoder=e},nf.prototype.interfaces_=function(){return[]},nf.prototype.getClass=function(){return nf},nf.depthDelta=function(e){var t=e.getLocation(0,Eu.LEFT),n=e.getLocation(0,Eu.RIGHT);return t===Ol.INTERIOR&&n===Ol.EXTERIOR?1:t===Ol.EXTERIOR&&n===Ol.INTERIOR?-1:0},nf.convertSegStrings=function(e){for(var t=new vu,n=new Sc;e.hasNext();){var r=e.next(),i=t.createLineString(r.getCoordinates());n.add(i)}return t.buildGeometry(n)};var rf=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var e=arguments[0],t=arguments[1];this._noder=e,this._scaleFactor=t,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=r,this._offsetX=i,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};rf.prototype.rescale=function(){if(Il(arguments[0],bc))for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.rescale(t.getCoordinates())}else if(arguments[0]instanceof Array){for(var n=arguments[0],r=0;r<n.length;r++)n[r].x=n[r].x/this._scaleFactor+this._offsetX,n[r].y=n[r].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&Gl.out.println(n)}},rf.prototype.scale=function(){if(Il(arguments[0],bc)){for(var e=arguments[0],t=new Sc,n=e.iterator();n.hasNext();){var r=n.next();t.add(new hd(this.scale(r.getCoordinates()),r.getData()))}return t}if(arguments[0]instanceof Array){for(var i=arguments[0],o=new Array(i.length).fill(null),a=0;a<i.length;a++)o[a]=new Sl(Math.round((i[a].x-this._offsetX)*this._scaleFactor),Math.round((i[a].y-this._offsetY)*this._scaleFactor),i[a].z);return kc.removeRepeatedPoints(o)}},rf.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},rf.prototype.getNodedSubstrings=function(){var e=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(e),e},rf.prototype.computeNodes=function(e){var t=e;this._isScaled&&(t=this.scale(e)),this._noder.computeNodes(t)},rf.prototype.interfaces_=function(){return[bd]},rf.prototype.getClass=function(){return rf};var of=function(){this._li=new rc,this._segStrings=null;var e=arguments[0];this._segStrings=e},af={fact:{configurable:!0}};of.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var t=e.next().getCoordinates();this.checkEndPtVertexIntersections(t[0],this._segStrings),this.checkEndPtVertexIntersections(t[t.length-1],this._segStrings)}else if(2===arguments.length)for(var n=arguments[0],r=arguments[1].iterator();r.hasNext();)for(var i=r.next().getCoordinates(),o=1;o<i.length-1;o++)if(i[o].equals(n))throw new Ql("found endpt/interior pt intersection at index "+o+" :pt "+n)},of.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();)for(var t=e.next(),n=this._segStrings.iterator();n.hasNext();){var r=n.next();this.checkInteriorIntersections(t,r)}else if(2===arguments.length)for(var i=arguments[0],o=arguments[1],a=i.getCoordinates(),s=o.getCoordinates(),l=0;l<a.length-1;l++)for(var c=0;c<s.length-1;c++)this.checkInteriorIntersections(i,l,o,c);else if(4===arguments.length){var u=arguments[0],d=arguments[1],f=arguments[2],h=arguments[3];if(u===f&&d===h)return null;var p=u.getCoordinates()[d],m=u.getCoordinates()[d+1],g=f.getCoordinates()[h],v=f.getCoordinates()[h+1];if(this._li.computeIntersection(p,m,g,v),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,p,m)||this.hasInteriorIntersection(this._li,g,v)))throw new Ql("found non-noded intersection at "+p+"-"+m+" and "+g+"-"+v)}},of.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},of.prototype.checkCollapses=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var t=e.next();this.checkCollapses(t)}else if(1===arguments.length)for(var n=arguments[0].getCoordinates(),r=0;r<n.length-2;r++)this.checkCollapse(n[r],n[r+1],n[r+2])},of.prototype.hasInteriorIntersection=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++){var i=e.getIntersection(r);if(!i.equals(t)&&!i.equals(n))return!0}return!1},of.prototype.checkCollapse=function(e,t,n){if(e.equals(n))throw new Ql("found non-noded collapse at "+of.fact.createLineString([e,t,n]))},of.prototype.interfaces_=function(){return[]},of.prototype.getClass=function(){return of},af.fact.get=function(){return new vu},Object.defineProperties(of,af);var sf=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var e=arguments[0],t=arguments[1],n=arguments[2];if(this._originalPt=e,this._pt=e,this._scaleFactor=t,this._li=n,t<=0)throw new vl("Scale factor must be non-zero");1!==t&&(this._pt=new Sl(this.scale(e.x),this.scale(e.y)),this._p0Scaled=new Sl,this._p1Scaled=new Sl),this.initCorners(this._pt)},lf={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};sf.prototype.intersectsScaled=function(e,t){var n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),a=this._maxx<n||this._minx>r||this._maxy<i||this._miny>o;if(a)return!1;var s=this.intersectsToleranceSquare(e,t);return ec.isTrue(!(a&&s),"Found bad envelope test"),s},sf.prototype.initCorners=function(e){this._minx=e.x-.5,this._maxx=e.x+.5,this._miny=e.y-.5,this._maxy=e.y+.5,this._corner[0]=new Sl(this._maxx,this._maxy),this._corner[1]=new Sl(this._minx,this._maxy),this._corner[2]=new Sl(this._minx,this._miny),this._corner[3]=new Sl(this._maxx,this._miny)},sf.prototype.intersects=function(e,t){return 1===this._scaleFactor?this.intersectsScaled(e,t):(this.copyScaled(e,this._p0Scaled),this.copyScaled(t,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},sf.prototype.scale=function(e){return Math.round(e*this._scaleFactor)},sf.prototype.getCoordinate=function(){return this._originalPt},sf.prototype.copyScaled=function(e,t){t.x=this.scale(e.x),t.y=this.scale(e.y)},sf.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var e=sf.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new Wl(this._originalPt.x-e,this._originalPt.x+e,this._originalPt.y-e,this._originalPt.y+e)}return this._safeEnv},sf.prototype.intersectsPixelClosure=function(e,t){return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},sf.prototype.intersectsToleranceSquare=function(e,t){var n=!1,r=!1;return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!n||!r)||!!e.equals(this._pt)||!!t.equals(this._pt))))},sf.prototype.addSnappedNode=function(e,t){var n=e.getCoordinate(t),r=e.getCoordinate(t+1);return!!this.intersects(n,r)&&(e.addIntersection(this.getCoordinate(),t),!0)},sf.prototype.interfaces_=function(){return[]},sf.prototype.getClass=function(){return sf},lf.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(sf,lf);var cf=function(){this.tempEnv1=new Wl,this.selectedSegment=new pd};cf.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var e=arguments[0],t=arguments[1];e.getLineSegment(t,this.selectedSegment),this.select(this.selectedSegment)}},cf.prototype.interfaces_=function(){return[]},cf.prototype.getClass=function(){return cf};var uf=function(){this._index=null;var e=arguments[0];this._index=e},df={HotPixelSnapAction:{configurable:!0}};uf.prototype.snap=function(){if(1===arguments.length){var e=arguments[0];return this.snap(e,null,-1)}if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2],i=t.getSafeEnvelope(),o=new ff(t,n,r);return this._index.query(i,{interfaces_:function(){return[Xu]},visitItem:function(e){e.select(i,o)}}),o.isNodeAdded()}},uf.prototype.interfaces_=function(){return[]},uf.prototype.getClass=function(){return uf},df.HotPixelSnapAction.get=function(){return ff},Object.defineProperties(uf,df);var ff=function(e){function t(){e.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._hotPixel=t,this._parentEdge=n,this._hotPixelVertexIndex=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isNodeAdded=function(){return this._isNodeAdded},t.prototype.select=function(){if(2!==arguments.length)return e.prototype.select.apply(this,arguments);var t=arguments[0],n=arguments[1],r=t.getContext();if(null!==this._parentEdge&&r===this._parentEdge&&n===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(r,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(cf),hf=function(){this._li=null,this._interiorIntersections=null;var e=arguments[0];this._li=e,this._interiorIntersections=new Sc};hf.prototype.processIntersections=function(e,t,n,r){if(e===n&&t===r)return null;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var l=0;l<this._li.getIntersectionNum();l++)this._interiorIntersections.add(this._li.getIntersection(l));e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1)}},hf.prototype.isDone=function(){return!1},hf.prototype.getInteriorIntersections=function(){return this._interiorIntersections},hf.prototype.interfaces_=function(){return[$d]},hf.prototype.getClass=function(){return hf};var pf=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var e=arguments[0];this._pm=e,this._li=new rc,this._li.setPrecisionModel(e),this._scaleFactor=e.getScale()};pf.prototype.checkCorrectness=function(e){var t=hd.getNodedSubstrings(e),n=new of(t);try{n.checkValid()}catch(e){if(!(e instanceof zl))throw e;e.printStackTrace()}},pf.prototype.getNodedSubstrings=function(){return hd.getNodedSubstrings(this._nodedSegStrings)},pf.prototype.snapRound=function(e,t){var n=this.findInteriorIntersections(e,t);this.computeIntersectionSnaps(n),this.computeVertexSnaps(e)},pf.prototype.findInteriorIntersections=function(e,t){var n=new hf(t);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(e),n.getInteriorIntersections()},pf.prototype.computeVertexSnaps=function(){if(Il(arguments[0],bc))for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.computeVertexSnaps(t)}else if(arguments[0]instanceof hd)for(var n=arguments[0],r=n.getCoordinates(),i=0;i<r.length;i++){var o=new sf(r[i],this._scaleFactor,this._li);this._pointSnapper.snap(o,n,i)&&n.addIntersection(r[i],i)}},pf.prototype.computeNodes=function(e){this._nodedSegStrings=e,this._noder=new wd,this._pointSnapper=new uf(this._noder.getIndex()),this.snapRound(e,this._li)},pf.prototype.computeIntersectionSnaps=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next(),r=new sf(n,this._scaleFactor,this._li);this._pointSnapper.snap(r)}},pf.prototype.interfaces_=function(){return[bd]},pf.prototype.getClass=function(){return pf};var mf=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new Sd,this._resultGeometry=null,this._saveException=null,1===arguments.length){var e=arguments[0];this._argGeom=e}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this._argGeom=t,this._bufParams=n}},gf={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};mf.prototype.bufferFixedPrecision=function(e){var t=new rf(new pf(new hu(1)),e.getScale()),n=new nf(this._bufParams);n.setWorkingPrecisionModel(e),n.setNoder(t),this._resultGeometry=n.buffer(this._argGeom,this._distance)},mf.prototype.bufferReducedPrecision=function(){var e=this;if(0===arguments.length){for(var t=mf.MAX_PRECISION_DIGITS;t>=0;t--){try{e.bufferReducedPrecision(t)}catch(t){if(!(t instanceof Tu))throw t;e._saveException=t}if(null!==e._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],r=mf.precisionScaleFactor(this._argGeom,this._distance,n),i=new hu(r);this.bufferFixedPrecision(i)}},mf.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var e=this._argGeom.getFactory().getPrecisionModel();e.getType()===hu.FIXED?this.bufferFixedPrecision(e):this.bufferReducedPrecision()},mf.prototype.setQuadrantSegments=function(e){this._bufParams.setQuadrantSegments(e)},mf.prototype.bufferOriginalPrecision=function(){try{var e=new nf(this._bufParams);this._resultGeometry=e.buffer(this._argGeom,this._distance)}catch(e){if(!(e instanceof Ql))throw e;this._saveException=e}},mf.prototype.getResultGeometry=function(e){return this._distance=e,this.computeGeometry(),this._resultGeometry},mf.prototype.setEndCapStyle=function(e){this._bufParams.setEndCapStyle(e)},mf.prototype.interfaces_=function(){return[]},mf.prototype.getClass=function(){return mf},mf.bufferOp=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return new mf(e).getResultGeometry(t)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof cc&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1],i=arguments[2],o=new mf(n);return o.setQuadrantSegments(i),o.getResultGeometry(r)}if(arguments[2]instanceof Sd&&arguments[0]instanceof cc&&"number"==typeof arguments[1]){var a=arguments[0],s=arguments[1],l=arguments[2];return new mf(a,l).getResultGeometry(s)}}else if(4===arguments.length){var c=arguments[0],u=arguments[1],d=arguments[2],f=arguments[3],h=new mf(c);return h.setQuadrantSegments(d),h.setEndCapStyle(f),h.getResultGeometry(u)}},mf.precisionScaleFactor=function(e,t,n){var r=e.getEnvelopeInternal(),i=Al.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(t>0?t:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)},gf.CAP_ROUND.get=function(){return Sd.CAP_ROUND},gf.CAP_BUTT.get=function(){return Sd.CAP_FLAT},gf.CAP_FLAT.get=function(){return Sd.CAP_FLAT},gf.CAP_SQUARE.get=function(){return Sd.CAP_SQUARE},gf.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(mf,gf);var vf=function(){this._pt=[new Sl,new Sl],this._distance=yl.NaN,this._isNull=!0};vf.prototype.getCoordinates=function(){return this._pt},vf.prototype.getCoordinate=function(e){return this._pt[e]},vf.prototype.setMinimum=function(){if(1===arguments.length){var e=arguments[0];this.setMinimum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r<this._distance&&this.initialize(t,n,r)}},vf.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var e=arguments[0],t=arguments[1];this._pt[0].setCoordinate(e),this._pt[1].setCoordinate(t),this._distance=e.distance(t),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},vf.prototype.getDistance=function(){return this._distance},vf.prototype.setMaximum=function(){if(1===arguments.length){var e=arguments[0];this.setMaximum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r>this._distance&&this.initialize(t,n,r)}},vf.prototype.interfaces_=function(){return[]},vf.prototype.getClass=function(){return vf};var yf=function(){};yf.prototype.interfaces_=function(){return[]},yf.prototype.getClass=function(){return yf},yf.computeDistance=function(){if(arguments[2]instanceof vf&&arguments[0]instanceof Xc&&arguments[1]instanceof Sl)for(var e=arguments[0],t=arguments[1],n=arguments[2],r=e.getCoordinates(),i=new pd,o=0;o<r.length-1;o++){i.setCoordinates(r[o],r[o+1]);var a=i.closestPoint(t);n.setMinimum(a,t)}else if(arguments[2]instanceof vf&&arguments[0]instanceof Zc&&arguments[1]instanceof Sl){var s=arguments[0],l=arguments[1],c=arguments[2];yf.computeDistance(s.getExteriorRing(),l,c);for(var u=0;u<s.getNumInteriorRing();u++)yf.computeDistance(s.getInteriorRingN(u),l,c)}else if(arguments[2]instanceof vf&&arguments[0]instanceof cc&&arguments[1]instanceof Sl){var d=arguments[0],f=arguments[1],h=arguments[2];if(d instanceof Xc)yf.computeDistance(d,f,h);else if(d instanceof Zc)yf.computeDistance(d,f,h);else if(d instanceof Uc)for(var p=d,m=0;m<p.getNumGeometries();m++){var g=p.getGeometryN(m);yf.computeDistance(g,f,h)}else h.setMinimum(d.getCoordinate(),f)}else if(arguments[2]instanceof vf&&arguments[0]instanceof pd&&arguments[1]instanceof Sl){var v=arguments[0],y=arguments[1],b=arguments[2],_=v.closestPoint(y);b.setMinimum(_,y)}};var bf=function(e){this._maxPtDist=new vf,this._inputGeom=e||null},_f={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};bf.prototype.computeMaxMidpointDistance=function(e){var t=new xf(this._inputGeom);e.apply(t),this._maxPtDist.setMaximum(t.getMaxPointDistance())},bf.prototype.computeMaxVertexDistance=function(e){var t=new wf(this._inputGeom);e.apply(t),this._maxPtDist.setMaximum(t.getMaxPointDistance())},bf.prototype.findDistance=function(e){return this.computeMaxVertexDistance(e),this.computeMaxMidpointDistance(e),this._maxPtDist.getDistance()},bf.prototype.getDistancePoints=function(){return this._maxPtDist},bf.prototype.interfaces_=function(){return[]},bf.prototype.getClass=function(){return bf},_f.MaxPointDistanceFilter.get=function(){return wf},_f.MaxMidpointDistanceFilter.get=function(){return xf},Object.defineProperties(bf,_f);var wf=function(e){this._maxPtDist=new vf,this._minPtDist=new vf,this._geom=e||null};wf.prototype.filter=function(e){this._minPtDist.initialize(),yf.computeDistance(this._geom,e,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},wf.prototype.getMaxPointDistance=function(){return this._maxPtDist},wf.prototype.interfaces_=function(){return[fc]},wf.prototype.getClass=function(){return wf};var xf=function(e){this._maxPtDist=new vf,this._minPtDist=new vf,this._geom=e||null};xf.prototype.filter=function(e,t){if(0===t)return null;var n=e.getCoordinate(t-1),r=e.getCoordinate(t),i=new Sl((n.x+r.x)/2,(n.y+r.y)/2);this._minPtDist.initialize(),yf.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},xf.prototype.isDone=function(){return!1},xf.prototype.isGeometryChanged=function(){return!1},xf.prototype.getMaxPointDistance=function(){return this._maxPtDist},xf.prototype.interfaces_=function(){return[zc]},xf.prototype.getClass=function(){return xf};var Sf=function(e){this._comps=e||null};Sf.prototype.filter=function(e){e instanceof Zc&&this._comps.add(e)},Sf.prototype.interfaces_=function(){return[qc]},Sf.prototype.getClass=function(){return Sf},Sf.getPolygons=function(){if(1===arguments.length){var e=arguments[0];return Sf.getPolygons(e,new Sc)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t instanceof Zc?n.add(t):t instanceof Uc&&t.apply(new Sf(n)),n}};var Cf=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var e=arguments[0];this._lines=e}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this._lines=t,this._isForcedToLineString=n}};Cf.prototype.filter=function(e){if(this._isForcedToLineString&&e instanceof tu){var t=e.getFactory().createLineString(e.getCoordinateSequence());return this._lines.add(t),null}e instanceof Xc&&this._lines.add(e)},Cf.prototype.setForceToLineString=function(e){this._isForcedToLineString=e},Cf.prototype.interfaces_=function(){return[lc]},Cf.prototype.getClass=function(){return Cf},Cf.getGeometry=function(){if(1===arguments.length){var e=arguments[0];return e.getFactory().buildGeometry(Cf.getLines(e))}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t.getFactory().buildGeometry(Cf.getLines(t,n))}},Cf.getLines=function(){if(1===arguments.length){var e=arguments[0];return Cf.getLines(e,!1)}if(2===arguments.length){if(Il(arguments[0],bc)&&Il(arguments[1],bc)){for(var t=arguments[0],n=arguments[1],r=t.iterator();r.hasNext();){var i=r.next();Cf.getLines(i,n)}return n}if(arguments[0]instanceof cc&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1],s=new Sc;return o.apply(new Cf(s,a)),s}if(arguments[0]instanceof cc&&Il(arguments[1],bc)){var l=arguments[0],c=arguments[1];return l instanceof Xc?c.add(l):l.apply(new Cf(c)),c}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&Il(arguments[0],bc)&&Il(arguments[1],bc)){for(var u=arguments[0],d=arguments[1],f=arguments[2],h=u.iterator();h.hasNext();){var p=h.next();Cf.getLines(p,d,f)}return d}if("boolean"==typeof arguments[2]&&arguments[0]instanceof cc&&Il(arguments[1],bc)){var m=arguments[0],g=arguments[1],v=arguments[2];return m.apply(new Cf(g,v)),g}}};var Ef=function(){if(this._boundaryRule=hc.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(null===e)throw new vl("Rule must be non-null");this._boundaryRule=e}};Ef.prototype.locateInternal=function(){if(arguments[0]instanceof Sl&&arguments[1]instanceof Zc){var e=arguments[0],t=arguments[1];if(t.isEmpty())return Ol.EXTERIOR;var n=t.getExteriorRing(),r=this.locateInPolygonRing(e,n);if(r===Ol.EXTERIOR)return Ol.EXTERIOR;if(r===Ol.BOUNDARY)return Ol.BOUNDARY;for(var i=0;i<t.getNumInteriorRing();i++){var o=t.getInteriorRingN(i),a=this.locateInPolygonRing(e,o);if(a===Ol.INTERIOR)return Ol.EXTERIOR;if(a===Ol.BOUNDARY)return Ol.BOUNDARY}return Ol.INTERIOR}if(arguments[0]instanceof Sl&&arguments[1]instanceof Xc){var s=arguments[0],l=arguments[1];if(!l.getEnvelopeInternal().intersects(s))return Ol.EXTERIOR;var c=l.getCoordinates();return l.isClosed()||!s.equals(c[0])&&!s.equals(c[c.length-1])?ac.isOnLine(s,c)?Ol.INTERIOR:Ol.EXTERIOR:Ol.BOUNDARY}if(arguments[0]instanceof Sl&&arguments[1]instanceof Jc){var u=arguments[0];return arguments[1].getCoordinate().equals2D(u)?Ol.INTERIOR:Ol.EXTERIOR}},Ef.prototype.locateInPolygonRing=function(e,t){return t.getEnvelopeInternal().intersects(e)?ac.locatePointInRing(e,t.getCoordinates()):Ol.EXTERIOR},Ef.prototype.intersects=function(e,t){return this.locate(e,t)!==Ol.EXTERIOR},Ef.prototype.updateLocationInfo=function(e){e===Ol.INTERIOR&&(this._isIn=!0),e===Ol.BOUNDARY&&this._numBoundaries++},Ef.prototype.computeLocation=function(e,t){if(t instanceof Jc&&this.updateLocationInfo(this.locateInternal(e,t)),t instanceof Xc)this.updateLocationInfo(this.locateInternal(e,t));else if(t instanceof Zc)this.updateLocationInfo(this.locateInternal(e,t));else if(t instanceof Gc)for(var n=t,r=0;r<n.getNumGeometries();r++){var i=n.getGeometryN(r);this.updateLocationInfo(this.locateInternal(e,i))}else if(t instanceof nu)for(var o=t,a=0;a<o.getNumGeometries();a++){var s=o.getGeometryN(a);this.updateLocationInfo(this.locateInternal(e,s))}else if(t instanceof Uc)for(var l=new qd(t);l.hasNext();){var c=l.next();c!==t&&this.computeLocation(e,c)}},Ef.prototype.locate=function(e,t){return t.isEmpty()?Ol.EXTERIOR:t instanceof Xc||t instanceof Zc?this.locateInternal(e,t):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(e,t),this._boundaryRule.isInBoundary(this._numBoundaries)?Ol.BOUNDARY:this._numBoundaries>0||this._isIn?Ol.INTERIOR:Ol.EXTERIOR)},Ef.prototype.interfaces_=function(){return[]},Ef.prototype.getClass=function(){return Ef};var kf=function e(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var t=arguments[0],n=arguments[1];e.call(this,t,e.INSIDE_AREA,n)}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._component=r,this._segIndex=i,this._pt=o}},Of={INSIDE_AREA:{configurable:!0}};kf.prototype.isInsideArea=function(){return this._segIndex===kf.INSIDE_AREA},kf.prototype.getCoordinate=function(){return this._pt},kf.prototype.getGeometryComponent=function(){return this._component},kf.prototype.getSegmentIndex=function(){return this._segIndex},kf.prototype.interfaces_=function(){return[]},kf.prototype.getClass=function(){return kf},Of.INSIDE_AREA.get=function(){return-1},Object.defineProperties(kf,Of);var Tf=function(e){this._pts=e||null};Tf.prototype.filter=function(e){e instanceof Jc&&this._pts.add(e)},Tf.prototype.interfaces_=function(){return[qc]},Tf.prototype.getClass=function(){return Tf},Tf.getPoints=function(){if(1===arguments.length){var e=arguments[0];return e instanceof Jc?Zu.singletonList(e):Tf.getPoints(e,new Sc)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t instanceof Jc?n.add(t):t instanceof Uc&&t.apply(new Tf(n)),n}};var If=function(){this._locations=null;var e=arguments[0];this._locations=e};If.prototype.filter=function(e){(e instanceof Jc||e instanceof Xc||e instanceof Zc)&&this._locations.add(new kf(e,0,e.getCoordinate()))},If.prototype.interfaces_=function(){return[qc]},If.prototype.getClass=function(){return If},If.getLocations=function(e){var t=new Sc;return e.apply(new If(t)),t};var Af=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Ef,this._minDistanceLocation=null,this._minDistance=yl.MAX_VALUE,2===arguments.length){var e=arguments[0],t=arguments[1];this._geom=[e,t],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=r,this._terminateDistance=i}};Af.prototype.computeContainmentDistance=function(){if(0===arguments.length){var e=new Array(2).fill(null);if(this.computeContainmentDistance(0,e),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1],r=1-t,i=Sf.getPolygons(this._geom[t]);if(i.size()>0){var o=If.getLocations(this._geom[r]);if(this.computeContainmentDistance(o,i,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[r]=n[0],this._minDistanceLocation[t]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&Il(arguments[0],xc)&&Il(arguments[1],xc)){for(var a=arguments[0],s=arguments[1],l=arguments[2],c=0;c<a.size();c++)for(var u=a.get(c),d=0;d<s.size();d++)if(this.computeContainmentDistance(u,s.get(d),l),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof kf&&arguments[1]instanceof Zc){var f=arguments[0],h=arguments[1],p=arguments[2],m=f.getCoordinate();if(Ol.EXTERIOR!==this._ptLocator.locate(m,h))return this._minDistance=0,p[0]=f,p[1]=new kf(h,m),null}},Af.prototype.computeMinDistanceLinesPoints=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var a=t.get(o);if(this.computeMinDistance(i,a,n),this._minDistance<=this._terminateDistance)return null}},Af.prototype.computeFacetDistance=function(){var e=new Array(2).fill(null),t=Cf.getLines(this._geom[0]),n=Cf.getLines(this._geom[1]),r=Tf.getPoints(this._geom[0]),i=Tf.getPoints(this._geom[1]);return this.computeMinDistanceLines(t,n,e),this.updateMinDistance(e,!1),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(t,i,e),this.updateMinDistance(e,!1),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(n,r,e),this.updateMinDistance(e,!0),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistancePoints(r,i,e),void this.updateMinDistance(e,!1))))},Af.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Af.prototype.updateMinDistance=function(e,t){if(null===e[0])return null;t?(this._minDistanceLocation[0]=e[1],this._minDistanceLocation[1]=e[0]):(this._minDistanceLocation[0]=e[0],this._minDistanceLocation[1]=e[1])},Af.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Af.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Xc&&arguments[1]instanceof Jc){var e=arguments[0],t=arguments[1],n=arguments[2];if(e.getEnvelopeInternal().distance(t.getEnvelopeInternal())>this._minDistance)return null;for(var r=e.getCoordinates(),i=t.getCoordinate(),o=0;o<r.length-1;o++){var a=ac.distancePointLine(i,r[o],r[o+1]);if(a<this._minDistance){this._minDistance=a;var s=new pd(r[o],r[o+1]).closestPoint(i);n[0]=new kf(e,o,s),n[1]=new kf(t,0,i)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Xc&&arguments[1]instanceof Xc){var l=arguments[0],c=arguments[1],u=arguments[2];if(l.getEnvelopeInternal().distance(c.getEnvelopeInternal())>this._minDistance)return null;for(var d=l.getCoordinates(),f=c.getCoordinates(),h=0;h<d.length-1;h++)for(var p=0;p<f.length-1;p++){var m=ac.distanceLineLine(d[h],d[h+1],f[p],f[p+1]);if(m<this._minDistance){this._minDistance=m;var g=new pd(d[h],d[h+1]),v=new pd(f[p],f[p+1]),y=g.closestPoints(v);u[0]=new kf(l,h,y[0]),u[1]=new kf(c,p,y[1])}if(this._minDistance<=this._terminateDistance)return null}}},Af.prototype.computeMinDistancePoints=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var a=t.get(o),s=i.getCoordinate().distance(a.getCoordinate());if(s<this._minDistance&&(this._minDistance=s,n[0]=new kf(i,0,i.getCoordinate()),n[1]=new kf(a,0,a.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},Af.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new vl("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Af.prototype.computeMinDistanceLines=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var a=t.get(o);if(this.computeMinDistance(i,a,n),this._minDistance<=this._terminateDistance)return null}},Af.prototype.interfaces_=function(){return[]},Af.prototype.getClass=function(){return Af},Af.distance=function(e,t){return new Af(e,t).distance()},Af.isWithinDistance=function(e,t,n){return new Af(e,t,n).distance()<=n},Af.nearestPoints=function(e,t){return new Af(e,t).nearestPoints()};var Rf=function(){this._pt=[new Sl,new Sl],this._distance=yl.NaN,this._isNull=!0};Rf.prototype.getCoordinates=function(){return this._pt},Rf.prototype.getCoordinate=function(e){return this._pt[e]},Rf.prototype.setMinimum=function(){if(1===arguments.length){var e=arguments[0];this.setMinimum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r<this._distance&&this.initialize(t,n,r)}},Rf.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var e=arguments[0],t=arguments[1];this._pt[0].setCoordinate(e),this._pt[1].setCoordinate(t),this._distance=e.distance(t),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},Rf.prototype.toString=function(){return Jl.toLineString(this._pt[0],this._pt[1])},Rf.prototype.getDistance=function(){return this._distance},Rf.prototype.setMaximum=function(){if(1===arguments.length){var e=arguments[0];this.setMaximum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r>this._distance&&this.initialize(t,n,r)}},Rf.prototype.interfaces_=function(){return[]},Rf.prototype.getClass=function(){return Rf};var Pf=function(){};Pf.prototype.interfaces_=function(){return[]},Pf.prototype.getClass=function(){return Pf},Pf.computeDistance=function(){if(arguments[2]instanceof Rf&&arguments[0]instanceof Xc&&arguments[1]instanceof Sl)for(var e=arguments[0],t=arguments[1],n=arguments[2],r=new pd,i=e.getCoordinates(),o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var a=r.closestPoint(t);n.setMinimum(a,t)}else if(arguments[2]instanceof Rf&&arguments[0]instanceof Zc&&arguments[1]instanceof Sl){var s=arguments[0],l=arguments[1],c=arguments[2];Pf.computeDistance(s.getExteriorRing(),l,c);for(var u=0;u<s.getNumInteriorRing();u++)Pf.computeDistance(s.getInteriorRingN(u),l,c)}else if(arguments[2]instanceof Rf&&arguments[0]instanceof cc&&arguments[1]instanceof Sl){var d=arguments[0],f=arguments[1],h=arguments[2];if(d instanceof Xc)Pf.computeDistance(d,f,h);else if(d instanceof Zc)Pf.computeDistance(d,f,h);else if(d instanceof Uc)for(var p=d,m=0;m<p.getNumGeometries();m++){var g=p.getGeometryN(m);Pf.computeDistance(g,f,h)}else h.setMinimum(d.getCoordinate(),f)}else if(arguments[2]instanceof Rf&&arguments[0]instanceof pd&&arguments[1]instanceof Sl){var v=arguments[0],y=arguments[1],b=arguments[2],_=v.closestPoint(y);b.setMinimum(_,y)}};var Mf=function(){this._g0=null,this._g1=null,this._ptDist=new Rf,this._densifyFrac=0;var e=arguments[0],t=arguments[1];this._g0=e,this._g1=t},Nf={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};Mf.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},Mf.prototype.setDensifyFraction=function(e){if(e>1||e<=0)throw new vl("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=e},Mf.prototype.compute=function(e,t){this.computeOrientedDistance(e,t,this._ptDist),this.computeOrientedDistance(t,e,this._ptDist)},Mf.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Mf.prototype.computeOrientedDistance=function(e,t,n){var r=new Lf(t);if(e.apply(r),n.setMaximum(r.getMaxPointDistance()),this._densifyFrac>0){var i=new Df(t,this._densifyFrac);e.apply(i),n.setMaximum(i.getMaxPointDistance())}},Mf.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Mf.prototype.interfaces_=function(){return[]},Mf.prototype.getClass=function(){return Mf},Mf.distance=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return new Mf(e,t).distance()}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=new Mf(n,r);return o.setDensifyFraction(i),o.distance()}},Nf.MaxPointDistanceFilter.get=function(){return Lf},Nf.MaxDensifiedByFractionDistanceFilter.get=function(){return Df},Object.defineProperties(Mf,Nf);var Lf=function(){this._maxPtDist=new Rf,this._minPtDist=new Rf,this._euclideanDist=new Pf,this._geom=null;var e=arguments[0];this._geom=e};Lf.prototype.filter=function(e){this._minPtDist.initialize(),Pf.computeDistance(this._geom,e,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Lf.prototype.getMaxPointDistance=function(){return this._maxPtDist},Lf.prototype.interfaces_=function(){return[fc]},Lf.prototype.getClass=function(){return Lf};var Df=function(){this._maxPtDist=new Rf,this._minPtDist=new Rf,this._geom=null,this._numSubSegs=0;var e=arguments[0],t=arguments[1];this._geom=e,this._numSubSegs=Math.trunc(Math.round(1/t))};Df.prototype.filter=function(e,t){if(0===t)return null;for(var n=e.getCoordinate(t-1),r=e.getCoordinate(t),i=(r.x-n.x)/this._numSubSegs,o=(r.y-n.y)/this._numSubSegs,a=0;a<this._numSubSegs;a++){var s=n.x+a*i,l=n.y+a*o,c=new Sl(s,l);this._minPtDist.initialize(),Pf.computeDistance(this._geom,c,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},Df.prototype.isDone=function(){return!1},Df.prototype.isGeometryChanged=function(){return!1},Df.prototype.getMaxPointDistance=function(){return this._maxPtDist},Df.prototype.interfaces_=function(){return[zc]},Df.prototype.getClass=function(){return Df};var jf=function(e,t,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=e||null,this._bufDistance=t||null,this._result=n||null},Ff={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};jf.prototype.checkMaximumDistance=function(e,t,n){var r=new Mf(t,e);if(r.setDensifyFraction(.25),this._maxDistanceFound=r.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var i=r.getCoordinates();this._errorLocation=i[1],this._errorIndicator=e.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Jl.toLineString(i[0],i[1])+")"}},jf.prototype.isValid=function(){var e=Math.abs(this._bufDistance),t=jf.MAX_DISTANCE_DIFF_FRAC*e;return this._minValidDistance=e-t,this._maxValidDistance=e+t,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),jf.VERBOSE&&Gl.out.println("Min Dist= "+this._minDistanceFound+"  err= "+(1-this._minDistanceFound/this._bufDistance)+"  Max Dist= "+this._maxDistanceFound+"  err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},jf.prototype.checkNegativeValid=function(){if(!(this._input instanceof Zc||this._input instanceof nu||this._input instanceof Uc))return null;var e=this.getPolygonLines(this._input);if(this.checkMinimumDistance(e,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(e,this._result,this._maxValidDistance)},jf.prototype.getErrorIndicator=function(){return this._errorIndicator},jf.prototype.checkMinimumDistance=function(e,t,n){var r=new Af(e,t,n);if(this._minDistanceFound=r.distance(),this._minDistanceFound<n){this._isValid=!1;var i=r.nearestPoints();this._errorLocation=r.nearestPoints()[1],this._errorIndicator=e.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+Jl.toLineString(i[0],i[1])+" )"}},jf.prototype.checkPositiveValid=function(){var e=this._result.getBoundary();if(this.checkMinimumDistance(this._input,e,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,e,this._maxValidDistance)},jf.prototype.getErrorLocation=function(){return this._errorLocation},jf.prototype.getPolygonLines=function(e){for(var t=new Sc,n=new Cf(t),r=Sf.getPolygons(e).iterator();r.hasNext();)r.next().apply(n);return e.getFactory().buildGeometry(t)},jf.prototype.getErrorMessage=function(){return this._errMsg},jf.prototype.interfaces_=function(){return[]},jf.prototype.getClass=function(){return jf},Ff.VERBOSE.get=function(){return!1},Ff.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(jf,Ff);var Bf=function(e,t,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=e||null,this._distance=t||null,this._result=n||null},qf={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};Bf.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},Bf.prototype.checkEnvelope=function(){if(this._distance<0)return null;var e=this._distance*Bf.MAX_ENV_DIFF_FRAC;0===e&&(e=.001);var t=new Wl(this._input.getEnvelopeInternal());t.expandBy(this._distance);var n=new Wl(this._result.getEnvelopeInternal());n.expandBy(e),n.contains(t)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},Bf.prototype.checkDistance=function(){var e=new jf(this._input,this._distance,this._result);e.isValid()||(this._isValid=!1,this._errorMsg=e.getErrorMessage(),this._errorLocation=e.getErrorLocation(),this._errorIndicator=e.getErrorIndicator()),this.report("Distance")},Bf.prototype.checkArea=function(){var e=this._input.getArea(),t=this._result.getArea();this._distance>0&&e>t&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&e<t&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},Bf.prototype.checkPolygonal=function(){this._result instanceof Zc||this._result instanceof nu||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},Bf.prototype.getErrorIndicator=function(){return this._errorIndicator},Bf.prototype.getErrorLocation=function(){return this._errorLocation},Bf.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},Bf.prototype.report=function(e){if(!Bf.VERBOSE)return null;Gl.out.println("Check "+e+": "+(this._isValid?"passed":"FAILED"))},Bf.prototype.getErrorMessage=function(){return this._errorMsg},Bf.prototype.interfaces_=function(){return[]},Bf.prototype.getClass=function(){return Bf},Bf.isValidMsg=function(e,t,n){var r=new Bf(e,t,n);return r.isValid()?null:r.getErrorMessage()},Bf.isValid=function(e,t,n){return!!new Bf(e,t,n).isValid()},qf.VERBOSE.get=function(){return!1},qf.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Bf,qf);var zf=function(){this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};zf.prototype.getCoordinates=function(){return this._pts},zf.prototype.size=function(){return this._pts.length},zf.prototype.getCoordinate=function(e){return this._pts[e]},zf.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},zf.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:ud.octant(this.getCoordinate(e),this.getCoordinate(e+1))},zf.prototype.setData=function(e){this._data=e},zf.prototype.getData=function(){return this._data},zf.prototype.toString=function(){return Jl.toLineString(new lu(this._pts))},zf.prototype.interfaces_=function(){return[dd]},zf.prototype.getClass=function(){return zf};var Uf=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new Sc,this._intersectionCount=0,this._keepIntersections=!0;var e=arguments[0];this._li=e,this._interiorIntersection=null};Uf.prototype.getInteriorIntersection=function(){return this._interiorIntersection},Uf.prototype.setCheckEndSegmentsOnly=function(e){this._isCheckEndSegmentsOnly=e},Uf.prototype.getIntersectionSegments=function(){return this._intSegments},Uf.prototype.count=function(){return this._intersectionCount},Uf.prototype.getIntersections=function(){return this._intersections},Uf.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e},Uf.prototype.setKeepIntersections=function(e){this._keepIntersections=e},Uf.prototype.processIntersections=function(e,t,n,r){if(!this._findAllIntersections&&this.hasIntersection())return null;if(e===n&&t===r)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(e,t)&&!this.isEndSegment(n,r))return null;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=o,this._intSegments[2]=a,this._intSegments[3]=s,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},Uf.prototype.isEndSegment=function(e,t){return 0===t||t>=e.size()-2},Uf.prototype.hasIntersection=function(){return null!==this._interiorIntersection},Uf.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},Uf.prototype.interfaces_=function(){return[$d]},Uf.prototype.getClass=function(){return Uf},Uf.createAllIntersectionsFinder=function(e){var t=new Uf(e);return t.setFindAllIntersections(!0),t},Uf.createAnyIntersectionFinder=function(e){return new Uf(e)},Uf.createIntersectionCounter=function(e){var t=new Uf(e);return t.setFindAllIntersections(!0),t.setKeepIntersections(!1),t};var Gf=function(){this._li=new rc,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var e=arguments[0];this._segStrings=e};Gf.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Gf.prototype.getIntersections=function(){return this._segInt.getIntersections()},Gf.prototype.isValid=function(){return this.execute(),this._isValid},Gf.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e},Gf.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new Uf(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var e=new wd;if(e.setSegmentIntersector(this._segInt),e.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Gf.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Tu(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Gf.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var e=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Jl.toLineString(e[0],e[1])+" and "+Jl.toLineString(e[2],e[3])},Gf.prototype.interfaces_=function(){return[]},Gf.prototype.getClass=function(){return Gf},Gf.computeIntersections=function(e){var t=new Gf(e);return t.setFindAllIntersections(!0),t.isValid(),t.getIntersections()};var Vf=function e(){this._nv=null;var t=arguments[0];this._nv=new Gf(e.toSegmentStrings(t))};Vf.prototype.checkValid=function(){this._nv.checkValid()},Vf.prototype.interfaces_=function(){return[]},Vf.prototype.getClass=function(){return Vf},Vf.toSegmentStrings=function(e){for(var t=new Sc,n=e.iterator();n.hasNext();){var r=n.next();t.add(new zf(r.getCoordinates(),r))}return t},Vf.checkValid=function(e){new Vf(e).checkValid()};var Wf=function(e){this._mapOp=e};Wf.prototype.map=function(e){for(var t=new Sc,n=0;n<e.getNumGeometries();n++){var r=this._mapOp.map(e.getGeometryN(n));r.isEmpty()||t.add(r)}return e.getFactory().createGeometryCollection(vu.toGeometryArray(t))},Wf.prototype.interfaces_=function(){return[]},Wf.prototype.getClass=function(){return Wf},Wf.map=function(e,t){return new Wf(t).map(e)};var Hf=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new Sc,this._resultLineList=new Sc;var e=arguments[0],t=arguments[1],n=arguments[2];this._op=e,this._geometryFactory=t,this._ptLocator=n};Hf.prototype.collectLines=function(e){for(var t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){var n=t.next();this.collectLineEdge(n,e,this._lineEdgesList),this.collectBoundaryTouchEdge(n,e,this._lineEdgesList)}},Hf.prototype.labelIsolatedLine=function(e,t){var n=this._ptLocator.locate(e.getCoordinate(),this._op.getArgGeometry(t));e.getLabel().setLocation(t,n)},Hf.prototype.build=function(e){return this.findCoveredLineEdges(),this.collectLines(e),this.buildLines(e),this._resultLineList},Hf.prototype.collectLineEdge=function(e,t,n){var r=e.getLabel(),i=e.getEdge();e.isLineEdge()&&(e.isVisited()||!kh.isResultOfOp(r,t)||i.isCovered()||(n.add(i),e.setVisitedEdge(!0)))},Hf.prototype.findCoveredLineEdges=function(){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();)e.next().getEdges().findCoveredLineEdges();for(var t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){var n=t.next(),r=n.getEdge();if(n.isLineEdge()&&!r.isCoveredSet()){var i=this._op.isCoveredByA(n.getCoordinate());r.setCovered(i)}}},Hf.prototype.labelIsolatedLines=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next(),r=n.getLabel();n.isIsolated()&&(r.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},Hf.prototype.buildLines=function(e){for(var t=this._lineEdgesList.iterator();t.hasNext();){var n=t.next(),r=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(r),n.setInResult(!0)}},Hf.prototype.collectBoundaryTouchEdge=function(e,t,n){var r=e.getLabel();return e.isLineEdge()||e.isVisited()||e.isInteriorAreaEdge()||e.getEdge().isInResult()?null:(ec.isTrue(!(e.isInResult()||e.getSym().isInResult())||!e.getEdge().isInResult()),void(kh.isResultOfOp(r,t)&&t===kh.INTERSECTION&&(n.add(e.getEdge()),e.setVisitedEdge(!0))))},Hf.prototype.interfaces_=function(){return[]},Hf.prototype.getClass=function(){return Hf};var $f=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new Sc;var e=arguments[0],t=arguments[1];this._op=e,this._geometryFactory=t};$f.prototype.filterCoveredNodeToPoint=function(e){var t=e.getCoordinate();if(!this._op.isCoveredByLA(t)){var n=this._geometryFactory.createPoint(t);this._resultPointList.add(n)}},$f.prototype.extractNonCoveredResultNodes=function(e){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();){var n=t.next();if(!n.isInResult()&&!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||e===kh.INTERSECTION)){var r=n.getLabel();kh.isResultOfOp(r,e)&&this.filterCoveredNodeToPoint(n)}}},$f.prototype.build=function(e){return this.extractNonCoveredResultNodes(e),this._resultPointList},$f.prototype.interfaces_=function(){return[]},$f.prototype.getClass=function(){return $f};var Kf=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};Kf.prototype.transformPoint=function(e,t){return this._factory.createPoint(this.transformCoordinates(e.getCoordinateSequence(),e))},Kf.prototype.transformPolygon=function(e,t){var n=!0,r=this.transformLinearRing(e.getExteriorRing(),e);null!==r&&r instanceof tu&&!r.isEmpty()||(n=!1);for(var i=new Sc,o=0;o<e.getNumInteriorRing();o++){var a=this.transformLinearRing(e.getInteriorRingN(o),e);null===a||a.isEmpty()||(a instanceof tu||(n=!1),i.add(a))}if(n)return this._factory.createPolygon(r,i.toArray([]));var s=new Sc;return null!==r&&s.add(r),s.addAll(i),this._factory.buildGeometry(s)},Kf.prototype.createCoordinateSequence=function(e){return this._factory.getCoordinateSequenceFactory().create(e)},Kf.prototype.getInputGeometry=function(){return this._inputGeom},Kf.prototype.transformMultiLineString=function(e,t){for(var n=new Sc,r=0;r<e.getNumGeometries();r++){var i=this.transformLineString(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Kf.prototype.transformCoordinates=function(e,t){return this.copy(e)},Kf.prototype.transformLineString=function(e,t){return this._factory.createLineString(this.transformCoordinates(e.getCoordinateSequence(),e))},Kf.prototype.transformMultiPoint=function(e,t){for(var n=new Sc,r=0;r<e.getNumGeometries();r++){var i=this.transformPoint(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Kf.prototype.transformMultiPolygon=function(e,t){for(var n=new Sc,r=0;r<e.getNumGeometries();r++){var i=this.transformPolygon(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Kf.prototype.copy=function(e){return e.copy()},Kf.prototype.transformGeometryCollection=function(e,t){for(var n=new Sc,r=0;r<e.getNumGeometries();r++){var i=this.transform(e.getGeometryN(r));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||n.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(vu.toGeometryArray(n)):this._factory.buildGeometry(n)},Kf.prototype.transform=function(e){if(this._inputGeom=e,this._factory=e.getFactory(),e instanceof Jc)return this.transformPoint(e,null);if(e instanceof eu)return this.transformMultiPoint(e,null);if(e instanceof tu)return this.transformLinearRing(e,null);if(e instanceof Xc)return this.transformLineString(e,null);if(e instanceof Gc)return this.transformMultiLineString(e,null);if(e instanceof Zc)return this.transformPolygon(e,null);if(e instanceof nu)return this.transformMultiPolygon(e,null);if(e instanceof Uc)return this.transformGeometryCollection(e,null);throw new vl("Unknown Geometry subtype: "+e.getClass().getName())},Kf.prototype.transformLinearRing=function(e,t){var n=this.transformCoordinates(e.getCoordinateSequence(),e);if(null===n)return this._factory.createLinearRing(null);var r=n.size();return r>0&&r<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Kf.prototype.interfaces_=function(){return[]},Kf.prototype.getClass=function(){return Kf};var Xf=function e(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new pd,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Xc&&"number"==typeof arguments[1]){var t=arguments[0],n=arguments[1];e.call(this,t.getCoordinates(),n)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var r=arguments[0],i=arguments[1];this._srcPts=r,this._isClosed=e.isClosed(r),this._snapTolerance=i}};Xf.prototype.snapVertices=function(e,t){for(var n=this._isClosed?e.size()-1:e.size(),r=0;r<n;r++){var i=e.get(r),o=this.findSnapForVertex(i,t);null!==o&&(e.set(r,new Sl(o)),0===r&&this._isClosed&&e.set(e.size()-1,new Sl(o)))}},Xf.prototype.findSnapForVertex=function(e,t){for(var n=0;n<t.length;n++){if(e.equals2D(t[n]))return null;if(e.distance(t[n])<this._snapTolerance)return t[n]}return null},Xf.prototype.snapTo=function(e){var t=new Ec(this._srcPts);return this.snapVertices(t,e),this.snapSegments(t,e),t.toCoordinateArray()},Xf.prototype.snapSegments=function(e,t){if(0===t.length)return null;var n=t.length;t[0].equals2D(t[t.length-1])&&(n=t.length-1);for(var r=0;r<n;r++){var i=t[r],o=this.findSegmentIndexToSnap(i,e);o>=0&&e.add(o+1,new Sl(i),!1)}},Xf.prototype.findSegmentIndexToSnap=function(e,t){for(var n=yl.MAX_VALUE,r=-1,i=0;i<t.size()-1;i++){if(this._seg.p0=t.get(i),this._seg.p1=t.get(i+1),this._seg.p0.equals2D(e)||this._seg.p1.equals2D(e)){if(this._allowSnappingToSourceVertices)continue;return-1}var o=this._seg.distance(e);o<this._snapTolerance&&o<n&&(n=o,r=i)}return r},Xf.prototype.setAllowSnappingToSourceVertices=function(e){this._allowSnappingToSourceVertices=e},Xf.prototype.interfaces_=function(){return[]},Xf.prototype.getClass=function(){return Xf},Xf.isClosed=function(e){return!(e.length<=1)&&e[0].equals2D(e[e.length-1])};var Yf=function(e){this._srcGeom=e||null},Jf={SNAP_PRECISION_FACTOR:{configurable:!0}};Yf.prototype.snapTo=function(e,t){var n=this.extractTargetCoordinates(e);return new Qf(t,n).transform(this._srcGeom)},Yf.prototype.snapToSelf=function(e,t){var n=this.extractTargetCoordinates(this._srcGeom),r=new Qf(e,n,!0).transform(this._srcGeom),i=r;return t&&Il(i,Qc)&&(i=r.buffer(0)),i},Yf.prototype.computeSnapTolerance=function(e){return this.computeMinimumSegmentLength(e)/10},Yf.prototype.extractTargetCoordinates=function(e){for(var t=new qi,n=e.getCoordinates(),r=0;r<n.length;r++)t.add(n[r]);return t.toArray(new Array(0).fill(null))},Yf.prototype.computeMinimumSegmentLength=function(e){for(var t=yl.MAX_VALUE,n=0;n<e.length-1;n++){var r=e[n].distance(e[n+1]);r<t&&(t=r)}return t},Yf.prototype.interfaces_=function(){return[]},Yf.prototype.getClass=function(){return Yf},Yf.snap=function(e,t,n){var r=new Array(2).fill(null),i=new Yf(e);r[0]=i.snapTo(t,n);var o=new Yf(t);return r[1]=o.snapTo(r[0],n),r},Yf.computeOverlaySnapTolerance=function(){if(1===arguments.length){var e=arguments[0],t=Yf.computeSizeBasedSnapTolerance(e),n=e.getPrecisionModel();if(n.getType()===hu.FIXED){var r=1/n.getScale()*2/1.415;r>t&&(t=r)}return t}if(2===arguments.length){var i=arguments[0],o=arguments[1];return Math.min(Yf.computeOverlaySnapTolerance(i),Yf.computeOverlaySnapTolerance(o))}},Yf.computeSizeBasedSnapTolerance=function(e){var t=e.getEnvelopeInternal();return Math.min(t.getHeight(),t.getWidth())*Yf.SNAP_PRECISION_FACTOR},Yf.snapToSelf=function(e,t,n){return new Yf(e).snapToSelf(t,n)},Jf.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Yf,Jf);var Qf=function(e){function t(t,n,r){e.call(this),this._snapTolerance=t||null,this._snapPts=n||null,this._isSelfSnap=void 0!==r&&r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.snapLine=function(e,t){var n=new Xf(e,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(t)},t.prototype.transformCoordinates=function(e,t){var n=e.toCoordinateArray(),r=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Kf),Zf=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Zf.prototype.getCommon=function(){return yl.longBitsToDouble(this._commonBits)},Zf.prototype.add=function(e){var t=yl.doubleToLongBits(e);return this._isFirst?(this._commonBits=t,this._commonSignExp=Zf.signExpBits(this._commonBits),this._isFirst=!1,null):Zf.signExpBits(t)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=Zf.numCommonMostSigMantissaBits(this._commonBits,t),void(this._commonBits=Zf.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},Zf.prototype.toString=function(){if(1===arguments.length){var e=arguments[0],t=yl.longBitsToDouble(e),n="0000000000000000000000000000000000000000000000000000000000000000"+yl.toBinaryString(e),r=n.substring(n.length-64);return r.substring(0,1)+"  "+r.substring(1,12)+"(exp) "+r.substring(12)+" [ "+t+" ]"}},Zf.prototype.interfaces_=function(){return[]},Zf.prototype.getClass=function(){return Zf},Zf.getBit=function(e,t){return 0!=(e&1<<t)?1:0},Zf.signExpBits=function(e){return e>>52},Zf.zeroLowerBits=function(e,t){return e&~((1<<t)-1)},Zf.numCommonMostSigMantissaBits=function(e,t){for(var n=0,r=52;r>=0;r--){if(Zf.getBit(e,r)!==Zf.getBit(t,r))return n;n++}return 52};var eh=function(){this._commonCoord=null,this._ccFilter=new nh},th={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};eh.prototype.addCommonBits=function(e){var t=new rh(this._commonCoord);e.apply(t),e.geometryChanged()},eh.prototype.removeCommonBits=function(e){if(0===this._commonCoord.x&&0===this._commonCoord.y)return e;var t=new Sl(this._commonCoord);t.x=-t.x,t.y=-t.y;var n=new rh(t);return e.apply(n),e.geometryChanged(),e},eh.prototype.getCommonCoordinate=function(){return this._commonCoord},eh.prototype.add=function(e){e.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},eh.prototype.interfaces_=function(){return[]},eh.prototype.getClass=function(){return eh},th.CommonCoordinateFilter.get=function(){return nh},th.Translater.get=function(){return rh},Object.defineProperties(eh,th);var nh=function(){this._commonBitsX=new Zf,this._commonBitsY=new Zf};nh.prototype.filter=function(e){this._commonBitsX.add(e.x),this._commonBitsY.add(e.y)},nh.prototype.getCommonCoordinate=function(){return new Sl(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},nh.prototype.interfaces_=function(){return[fc]},nh.prototype.getClass=function(){return nh};var rh=function(){this.trans=null;var e=arguments[0];this.trans=e};rh.prototype.filter=function(e,t){var n=e.getOrdinate(t,0)+this.trans.x,r=e.getOrdinate(t,1)+this.trans.y;e.setOrdinate(t,0,n),e.setOrdinate(t,1,r)},rh.prototype.isDone=function(){return!1},rh.prototype.isGeometryChanged=function(){return!0},rh.prototype.interfaces_=function(){return[zc]},rh.prototype.getClass=function(){return rh};var ih=function(e,t){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=e,this._geom[1]=t,this.computeSnapTolerance()};ih.prototype.selfSnap=function(e){return new Yf(e).snapTo(e,this._snapTolerance)},ih.prototype.removeCommonBits=function(e){this._cbr=new eh,this._cbr.add(e[0]),this._cbr.add(e[1]);var t=new Array(2).fill(null);return t[0]=this._cbr.removeCommonBits(e[0].copy()),t[1]=this._cbr.removeCommonBits(e[1].copy()),t},ih.prototype.prepareResult=function(e){return this._cbr.addCommonBits(e),e},ih.prototype.getResultGeometry=function(e){var t=this.snap(this._geom),n=kh.overlayOp(t[0],t[1],e);return this.prepareResult(n)},ih.prototype.checkValid=function(e){e.isValid()||Gl.out.println("Snapped geometry is invalid")},ih.prototype.computeSnapTolerance=function(){this._snapTolerance=Yf.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},ih.prototype.snap=function(e){var t=this.removeCommonBits(e);return Yf.snap(t[0],t[1],this._snapTolerance)},ih.prototype.interfaces_=function(){return[]},ih.prototype.getClass=function(){return ih},ih.overlayOp=function(e,t,n){return new ih(e,t).getResultGeometry(n)},ih.union=function(e,t){return ih.overlayOp(e,t,kh.UNION)},ih.intersection=function(e,t){return ih.overlayOp(e,t,kh.INTERSECTION)},ih.symDifference=function(e,t){return ih.overlayOp(e,t,kh.SYMDIFFERENCE)},ih.difference=function(e,t){return ih.overlayOp(e,t,kh.DIFFERENCE)};var oh=function(e,t){this._geom=new Array(2).fill(null),this._geom[0]=e,this._geom[1]=t};oh.prototype.getResultGeometry=function(e){var t=null,n=!1,r=null;try{t=kh.overlayOp(this._geom[0],this._geom[1],e),n=!0}catch(e){if(!(e instanceof Ql))throw e;r=e}if(!n)try{t=ih.overlayOp(this._geom[0],this._geom[1],e)}catch(e){throw e instanceof Ql?r:e}return t},oh.prototype.interfaces_=function(){return[]},oh.prototype.getClass=function(){return oh},oh.overlayOp=function(e,t,n){return new oh(e,t).getResultGeometry(n)},oh.union=function(e,t){return oh.overlayOp(e,t,kh.UNION)},oh.intersection=function(e,t){return oh.overlayOp(e,t,kh.INTERSECTION)},oh.symDifference=function(e,t){return oh.overlayOp(e,t,kh.SYMDIFFERENCE)},oh.difference=function(e,t){return oh.overlayOp(e,t,kh.DIFFERENCE)};var ah=function(){this.mce=null,this.chainIndex=null;var e=arguments[0],t=arguments[1];this.mce=e,this.chainIndex=t};ah.prototype.computeIntersections=function(e,t){this.mce.computeIntersectsForChain(this.chainIndex,e.mce,e.chainIndex,t)},ah.prototype.interfaces_=function(){return[]},ah.prototype.getClass=function(){return ah};var sh=function e(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var t=arguments[0],n=arguments[1];this._eventType=e.DELETE,this._xValue=t,this._insertEvent=n}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._eventType=e.INSERT,this._label=r,this._xValue=i,this._obj=o}},lh={INSERT:{configurable:!0},DELETE:{configurable:!0}};sh.prototype.isDelete=function(){return this._eventType===sh.DELETE},sh.prototype.setDeleteEventIndex=function(e){this._deleteEventIndex=e},sh.prototype.getObject=function(){return this._obj},sh.prototype.compareTo=function(e){var t=e;return this._xValue<t._xValue?-1:this._xValue>t._xValue?1:this._eventType<t._eventType?-1:this._eventType>t._eventType?1:0},sh.prototype.getInsertEvent=function(){return this._insertEvent},sh.prototype.isInsert=function(){return this._eventType===sh.INSERT},sh.prototype.isSameLabel=function(e){return null!==this._label&&this._label===e._label},sh.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},sh.prototype.interfaces_=function(){return[_l]},sh.prototype.getClass=function(){return sh},lh.INSERT.get=function(){return 1},lh.DELETE.get=function(){return 2},Object.defineProperties(sh,lh);var ch=function(){};ch.prototype.interfaces_=function(){return[]},ch.prototype.getClass=function(){return ch};var uh=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var e=arguments[0],t=arguments[1],n=arguments[2];this._li=e,this._includeProper=t,this._recordIsolated=n};uh.prototype.isTrivialIntersection=function(e,t,n,r){if(e===n&&1===this._li.getIntersectionNum()){if(uh.isAdjacentSegments(t,r))return!0;if(e.isClosed()){var i=e.getNumPoints()-1;if(0===t&&r===i||0===r&&t===i)return!0}}return!1},uh.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},uh.prototype.setIsDoneIfProperInt=function(e){this._isDoneWhenProperInt=e},uh.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},uh.prototype.isBoundaryPointInternal=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next().getCoordinate();if(e.isIntersection(r))return!0}return!1},uh.prototype.hasProperIntersection=function(){return this._hasProper},uh.prototype.hasIntersection=function(){return this._hasIntersection},uh.prototype.isDone=function(){return this._isDone},uh.prototype.isBoundaryPoint=function(e,t){return null!==t&&(!!this.isBoundaryPointInternal(e,t[0])||!!this.isBoundaryPointInternal(e,t[1]))},uh.prototype.setBoundaryNodes=function(e,t){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=e,this._bdyNodes[1]=t},uh.prototype.addIntersections=function(e,t,n,r){if(e===n&&t===r)return null;this.numTests++;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&(this._recordIsolated&&(e.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(e,t,n,r)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},uh.prototype.interfaces_=function(){return[]},uh.prototype.getClass=function(){return uh},uh.isAdjacentSegments=function(e,t){return 1===Math.abs(e-t)};var dh=function(e){function t(){e.call(this),this.events=new Sc,this.nOverlaps=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.prepareEvents=function(){Zu.sort(this.events);for(var e=0;e<this.events.size();e++){var t=this.events.get(e);t.isDelete()&&t.getInsertEvent().setDeleteEventIndex(e)}},t.prototype.computeIntersections=function(){if(1===arguments.length){var e=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var t=0;t<this.events.size();t++){var n=this.events.get(t);if(n.isInsert()&&this.processOverlaps(t,n.getDeleteEventIndex(),n,e),e.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof uh&&Il(arguments[0],xc)&&Il(arguments[1],xc)){var r=arguments[0],i=arguments[1],o=arguments[2];this.addEdges(r,r),this.addEdges(i,i),this.computeIntersections(o)}else if("boolean"==typeof arguments[2]&&Il(arguments[0],xc)&&arguments[1]instanceof uh){var a=arguments[0],s=arguments[1];arguments[2]?this.addEdges(a,null):this.addEdges(a),this.computeIntersections(s)}},t.prototype.addEdge=function(e,t){for(var n=e.getMonotoneChainEdge(),r=n.getStartIndexes(),i=0;i<r.length-1;i++){var o=new ah(n,i),a=new sh(t,n.getMinX(i),o);this.events.add(a),this.events.add(new sh(n.getMaxX(i),a))}},t.prototype.processOverlaps=function(e,t,n,r){for(var i=n.getObject(),o=e;o<t;o++){var a=this.events.get(o);if(a.isInsert()){var s=a.getObject();n.isSameLabel(a)||(i.computeIntersections(s,r),this.nOverlaps++)}}},t.prototype.addEdges=function(){if(1===arguments.length)for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.addEdge(t,t)}else if(2===arguments.length)for(var n=arguments[0],r=arguments[1],i=n.iterator();i.hasNext();){var o=i.next();this.addEdge(o,r)}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(ch),fh=function(){this._min=yl.POSITIVE_INFINITY,this._max=yl.NEGATIVE_INFINITY},hh={NodeComparator:{configurable:!0}};fh.prototype.getMin=function(){return this._min},fh.prototype.intersects=function(e,t){return!(this._min>t||this._max<e)},fh.prototype.getMax=function(){return this._max},fh.prototype.toString=function(){return Jl.toLineString(new Sl(this._min,0),new Sl(this._max,0))},fh.prototype.interfaces_=function(){return[]},fh.prototype.getClass=function(){return fh},hh.NodeComparator.get=function(){return ph},Object.defineProperties(fh,hh);var ph=function(){};ph.prototype.compare=function(e,t){var n=e,r=t,i=(n._min+n._max)/2,o=(r._min+r._max)/2;return i<o?-1:i>o?1:0},ph.prototype.interfaces_=function(){return[xl]},ph.prototype.getClass=function(){return ph};var mh=function(e){function t(){e.call(this),this._item=null;var t=arguments[0],n=arguments[1],r=arguments[2];this._min=t,this._max=n,this._item=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.query=function(e,t,n){if(!this.intersects(e,t))return null;n.visitItem(this._item)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(fh),gh=function(e){function t(){e.call(this),this._node1=null,this._node2=null;var t=arguments[0],n=arguments[1];this._node1=t,this._node2=n,this.buildExtent(this._node1,this._node2)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.buildExtent=function(e,t){this._min=Math.min(e._min,t._min),this._max=Math.max(e._max,t._max)},t.prototype.query=function(e,t,n){if(!this.intersects(e,t))return null;null!==this._node1&&this._node1.query(e,t,n),null!==this._node2&&this._node2.query(e,t,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(fh),vh=function(){this._leaves=new Sc,this._root=null,this._level=0};vh.prototype.buildTree=function(){Zu.sort(this._leaves,new fh.NodeComparator);for(var e=this._leaves,t=null,n=new Sc;;){if(this.buildLevel(e,n),1===n.size())return n.get(0);t=e,e=n,n=t}},vh.prototype.insert=function(e,t,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new mh(e,t,n))},vh.prototype.query=function(e,t,n){this.init(),this._root.query(e,t,n)},vh.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},vh.prototype.printNode=function(e){Gl.out.println(Jl.toLineString(new Sl(e._min,this._level),new Sl(e._max,this._level)))},vh.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},vh.prototype.buildLevel=function(e,t){this._level++,t.clear();for(var n=0;n<e.size();n+=2){var r=e.get(n);if(null===(n+1<e.size()?e.get(n):null))t.add(r);else{var i=new gh(e.get(n),e.get(n+1));t.add(i)}}},vh.prototype.interfaces_=function(){return[]},vh.prototype.getClass=function(){return vh};var yh=function(){this._items=new Sc};yh.prototype.visitItem=function(e){this._items.add(e)},yh.prototype.getItems=function(){return this._items},yh.prototype.interfaces_=function(){return[Xu]},yh.prototype.getClass=function(){return yh};var bh=function(){this._index=null;var e=arguments[0];if(!Il(e,Qc))throw new vl("Argument must be Polygonal");this._index=new xh(e)},_h={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};bh.prototype.locate=function(e){var t=new oc(e),n=new wh(t);return this._index.query(e.y,e.y,n),t.getLocation()},bh.prototype.interfaces_=function(){return[Bd]},bh.prototype.getClass=function(){return bh},_h.SegmentVisitor.get=function(){return wh},_h.IntervalIndexedGeometry.get=function(){return xh},Object.defineProperties(bh,_h);var wh=function(){this._counter=null;var e=arguments[0];this._counter=e};wh.prototype.visitItem=function(e){var t=e;this._counter.countSegment(t.getCoordinate(0),t.getCoordinate(1))},wh.prototype.interfaces_=function(){return[Xu]},wh.prototype.getClass=function(){return wh};var xh=function(){this._index=new vh;var e=arguments[0];this.init(e)};xh.prototype.init=function(e){for(var t=Cf.getLines(e).iterator();t.hasNext();){var n=t.next().getCoordinates();this.addLine(n)}},xh.prototype.addLine=function(e){for(var t=1;t<e.length;t++){var n=new pd(e[t-1],e[t]),r=Math.min(n.p0.y,n.p1.y),i=Math.max(n.p0.y,n.p1.y);this._index.insert(r,i,n)}},xh.prototype.query=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=new yh;return this._index.query(e,t,n),n.getItems()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._index.query(r,i,o)}},xh.prototype.interfaces_=function(){return[]},xh.prototype.getClass=function(){return xh};var Sh=function(e){function t(){if(e.call(this),this._parentGeom=null,this._lineEdgeMap=new fu,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Ef,2===arguments.length){var t=arguments[0],n=arguments[1],r=hc.OGC_SFS_BOUNDARY_RULE;this._argIndex=t,this._parentGeom=n,this._boundaryNodeRule=r,null!==n&&this.add(n)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];this._argIndex=i,this._parentGeom=o,this._boundaryNodeRule=a,null!==o&&this.add(o)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.insertBoundaryPoint=function(e,n){var r=this._nodes.addNode(n).getLabel(),i=1;Ol.NONE,r.getLocation(e,Eu.ON)===Ol.BOUNDARY&&i++;var o=t.determineBoundary(this._boundaryNodeRule,i);r.setLocation(e,o)},t.prototype.computeSelfNodes=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.computeSelfNodes(e,t,!1)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=new uh(n,!0,!1);o.setIsDoneIfProperInt(i);var a=this.createEdgeSetIntersector(),s=this._parentGeom instanceof tu||this._parentGeom instanceof Zc||this._parentGeom instanceof nu,l=r||!s;return a.computeIntersections(this._edges,o,l),this.addSelfIntersectionNodes(this._argIndex),o}},t.prototype.computeSplitEdges=function(e){for(var t=this._edges.iterator();t.hasNext();)t.next().eiList.addSplitEdges(e)},t.prototype.computeEdgeIntersections=function(e,t,n){var r=new uh(t,n,!0);return r.setBoundaryNodes(this.getBoundaryNodes(),e.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,e._edges,r),r},t.prototype.getGeometry=function(){return this._parentGeom},t.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},t.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},t.prototype.addPoint=function(){if(arguments[0]instanceof Jc){var e=arguments[0].getCoordinate();this.insertPoint(this._argIndex,e,Ol.INTERIOR)}else if(arguments[0]instanceof Sl){var t=arguments[0];this.insertPoint(this._argIndex,t,Ol.INTERIOR)}},t.prototype.addPolygon=function(e){this.addPolygonRing(e.getExteriorRing(),Ol.EXTERIOR,Ol.INTERIOR);for(var t=0;t<e.getNumInteriorRing();t++){var n=e.getInteriorRingN(t);this.addPolygonRing(n,Ol.INTERIOR,Ol.EXTERIOR)}},t.prototype.addEdge=function(e){this.insertEdge(e);var t=e.getCoordinates();this.insertPoint(this._argIndex,t[0],Ol.BOUNDARY),this.insertPoint(this._argIndex,t[t.length-1],Ol.BOUNDARY)},t.prototype.addLineString=function(e){var t=kc.removeRepeatedPoints(e.getCoordinates());if(t.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=t[0],null;var n=new tf(t,new Pu(this._argIndex,Ol.INTERIOR));this._lineEdgeMap.put(e,n),this.insertEdge(n),ec.isTrue(t.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,t[0]),this.insertBoundaryPoint(this._argIndex,t[t.length-1])},t.prototype.getInvalidPoint=function(){return this._invalidPoint},t.prototype.getBoundaryPoints=function(){for(var e=this.getBoundaryNodes(),t=new Array(e.size()).fill(null),n=0,r=e.iterator();r.hasNext();){var i=r.next();t[n++]=i.getCoordinate().copy()}return t},t.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},t.prototype.addSelfIntersectionNode=function(e,t,n){if(this.isBoundaryNode(e,t))return null;n===Ol.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(e,t):this.insertPoint(e,t,n)},t.prototype.addPolygonRing=function(e,t,n){if(e.isEmpty())return null;var r=kc.removeRepeatedPoints(e.getCoordinates());if(r.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=r[0],null;var i=t,o=n;ac.isCCW(r)&&(i=n,o=t);var a=new tf(r,new Pu(this._argIndex,Ol.BOUNDARY,i,o));this._lineEdgeMap.put(e,a),this.insertEdge(a),this.insertPoint(this._argIndex,r[0],Ol.BOUNDARY)},t.prototype.insertPoint=function(e,t,n){var r=this._nodes.addNode(t),i=r.getLabel();null===i?r._label=new Pu(e,n):i.setLocation(e,n)},t.prototype.createEdgeSetIntersector=function(){return new dh},t.prototype.addSelfIntersectionNodes=function(e){for(var t=this._edges.iterator();t.hasNext();)for(var n=t.next(),r=n.getLabel().getLocation(e),i=n.eiList.iterator();i.hasNext();){var o=i.next();this.addSelfIntersectionNode(e,o.coord,r)}},t.prototype.add=function(){if(1!==arguments.length)return e.prototype.add.apply(this,arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof nu&&(this._useBoundaryDeterminationRule=!1),t instanceof Zc)this.addPolygon(t);else if(t instanceof Xc)this.addLineString(t);else if(t instanceof Jc)this.addPoint(t);else if(t instanceof eu)this.addCollection(t);else if(t instanceof Gc)this.addCollection(t);else if(t instanceof nu)this.addCollection(t);else{if(!(t instanceof Uc))throw new Error(t.getClass().getName());this.addCollection(t)}},t.prototype.addCollection=function(e){for(var t=0;t<e.getNumGeometries();t++){var n=e.getGeometryN(t);this.add(n)}},t.prototype.locate=function(e){return Il(this._parentGeom,Qc)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new bh(this._parentGeom)),this._areaPtLocator.locate(e)):this._ptLocator.locate(e,this._parentGeom)},t.prototype.findEdge=function(){if(1===arguments.length){var t=arguments[0];return this._lineEdgeMap.get(t)}return e.prototype.findEdge.apply(this,arguments)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.determineBoundary=function(e,t){return e.isInBoundary(t)?Ol.BOUNDARY:Ol.INTERIOR},t}(Vu),Ch=function(){if(this._li=new rc,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var e=arguments[0];this.setComputationPrecision(e.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Sh(0,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1],r=hc.OGC_SFS_BOUNDARY_RULE;t.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(t.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Sh(0,t,r),this._arg[1]=new Sh(1,n,r)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];i.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Sh(0,i,a),this._arg[1]=new Sh(1,o,a)}};Ch.prototype.getArgGeometry=function(e){return this._arg[e].getGeometry()},Ch.prototype.setComputationPrecision=function(e){this._resultPrecisionModel=e,this._li.setPrecisionModel(this._resultPrecisionModel)},Ch.prototype.interfaces_=function(){return[]},Ch.prototype.getClass=function(){return Ch};var Eh=function(){};Eh.prototype.interfaces_=function(){return[]},Eh.prototype.getClass=function(){return Eh},Eh.map=function(){if(arguments[0]instanceof cc&&Il(arguments[1],Eh.MapOp)){for(var e=arguments[0],t=arguments[1],n=new Sc,r=0;r<e.getNumGeometries();r++){var i=t.map(e.getGeometryN(r));null!==i&&n.add(i)}return e.getFactory().buildGeometry(n)}if(Il(arguments[0],bc)&&Il(arguments[1],Eh.MapOp)){for(var o=arguments[0],a=arguments[1],s=new Sc,l=o.iterator();l.hasNext();){var c=l.next(),u=a.map(c);null!==u&&s.add(u)}return s}},Eh.MapOp=function(){};var kh=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n),this._ptLocator=new Ef,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Hd,this._resultPolyList=new Sc,this._resultLineList=new Sc,this._resultPointList=new Sc,this._graph=new Vu(new Vd),this._geomFact=t.getFactory()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.insertUniqueEdge=function(e){var t=this._edgeList.findEqualEdge(e);if(null!==t){var n=t.getLabel(),r=e.getLabel();t.isPointwiseEqual(e)||(r=new Pu(e.getLabel())).flip();var i=t.getDepth();i.isNull()&&i.add(n),i.add(r),n.merge(r)}else this._edgeList.add(e)},t.prototype.getGraph=function(){return this._graph},t.prototype.cancelDuplicateResultEdges=function(){for(var e=this._graph.getEdgeEnds().iterator();e.hasNext();){var t=e.next(),n=t.getSym();t.isInResult()&&n.isInResult()&&(t.setInResult(!1),n.setInResult(!1))}},t.prototype.isCoveredByLA=function(e){return!!this.isCovered(e,this._resultLineList)||!!this.isCovered(e,this._resultPolyList)},t.prototype.computeGeometry=function(e,n,r,i){var o=new Sc;return o.addAll(e),o.addAll(n),o.addAll(r),o.isEmpty()?t.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(o)},t.prototype.mergeSymLabels=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();)e.next().getEdges().mergeSymLabels()},t.prototype.isCovered=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();if(this._ptLocator.locate(e,r)!==Ol.EXTERIOR)return!0}return!1},t.prototype.replaceCollapsedEdges=function(){for(var e=new Sc,t=this._edgeList.iterator();t.hasNext();){var n=t.next();n.isCollapsed()&&(t.remove(),e.add(n.getCollapsedEdge()))}this._edgeList.addAll(e)},t.prototype.updateNodeLabelling=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();){var t=e.next(),n=t.getEdges().getLabel();t.getLabel().merge(n)}},t.prototype.getResultGeometry=function(e){return this.computeOverlay(e),this._resultGeom},t.prototype.insertUniqueEdges=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();this.insertUniqueEdge(n)}},t.prototype.computeOverlay=function(e){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var t=new Sc;this._arg[0].computeSplitEdges(t),this._arg[1].computeSplitEdges(t),this.insertUniqueEdges(t),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),Vf.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(e),this.cancelDuplicateResultEdges();var n=new Wu(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var r=new Hf(this,this._geomFact,this._ptLocator);this._resultLineList=r.build(e);var i=new $f(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(e),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,e)},t.prototype.labelIncompleteNode=function(e,t){var n=this._ptLocator.locate(e.getCoordinate(),this._arg[t].getGeometry());e.getLabel().setLocation(t,n)},t.prototype.copyPoints=function(e){for(var t=this._arg[e].getNodeIterator();t.hasNext();){var n=t.next();this._graph.addNode(n.getCoordinate()).setLabel(e,n.getLabel().getLocation(e))}},t.prototype.findResultAreaEdges=function(e){for(var n=this._graph.getEdgeEnds().iterator();n.hasNext();){var r=n.next(),i=r.getLabel();i.isArea()&&!r.isInteriorAreaEdge()&&t.isResultOfOp(i.getLocation(0,Eu.RIGHT),i.getLocation(1,Eu.RIGHT),e)&&r.setInResult(!0)}},t.prototype.computeLabelsFromDepths=function(){for(var e=this._edgeList.iterator();e.hasNext();){var t=e.next(),n=t.getLabel(),r=t.getDepth();if(!r.isNull()){r.normalize();for(var i=0;i<2;i++)n.isNull(i)||!n.isArea()||r.isNull(i)||(0===r.getDelta(i)?n.toLine(i):(ec.isTrue(!r.isNull(i,Eu.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(i,Eu.LEFT,r.getLocation(i,Eu.LEFT)),ec.isTrue(!r.isNull(i,Eu.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(i,Eu.RIGHT,r.getLocation(i,Eu.RIGHT))))}}},t.prototype.computeLabelling=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();)e.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},t.prototype.labelIncompleteNodes=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();){var t=e.next(),n=t.getLabel();t.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(t,0):this.labelIncompleteNode(t,1)),t.getEdges().updateLabelling(n)}},t.prototype.isCoveredByA=function(e){return!!this.isCovered(e,this._resultPolyList)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ch);kh.overlayOp=function(e,t,n){return new kh(e,t).getResultGeometry(n)},kh.intersection=function(e,t){if(e.isEmpty()||t.isEmpty())return kh.createEmptyResult(kh.INTERSECTION,e,t,e.getFactory());if(e.isGeometryCollection()){var n=t;return Wf.map(e,{interfaces_:function(){return[Eh.MapOp]},map:function(e){return e.intersection(n)}})}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oh.overlayOp(e,t,kh.INTERSECTION)},kh.symDifference=function(e,t){if(e.isEmpty()||t.isEmpty()){if(e.isEmpty()&&t.isEmpty())return kh.createEmptyResult(kh.SYMDIFFERENCE,e,t,e.getFactory());if(e.isEmpty())return t.copy();if(t.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oh.overlayOp(e,t,kh.SYMDIFFERENCE)},kh.resultDimension=function(e,t,n){var r=t.getDimension(),i=n.getDimension(),o=-1;switch(e){case kh.INTERSECTION:o=Math.min(r,i);break;case kh.UNION:o=Math.max(r,i);break;case kh.DIFFERENCE:o=r;break;case kh.SYMDIFFERENCE:o=Math.max(r,i)}return o},kh.createEmptyResult=function(e,t,n,r){var i=null;switch(kh.resultDimension(e,t,n)){case-1:i=r.createGeometryCollection(new Array(0).fill(null));break;case 0:i=r.createPoint();break;case 1:i=r.createLineString();break;case 2:i=r.createPolygon()}return i},kh.difference=function(e,t){return e.isEmpty()?kh.createEmptyResult(kh.DIFFERENCE,e,t,e.getFactory()):t.isEmpty()?e.copy():(e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oh.overlayOp(e,t,kh.DIFFERENCE))},kh.isResultOfOp=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=e.getLocation(0),r=e.getLocation(1);return kh.isResultOfOp(n,r,t)}if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];switch(i===Ol.BOUNDARY&&(i=Ol.INTERIOR),o===Ol.BOUNDARY&&(o=Ol.INTERIOR),a){case kh.INTERSECTION:return i===Ol.INTERIOR&&o===Ol.INTERIOR;case kh.UNION:return i===Ol.INTERIOR||o===Ol.INTERIOR;case kh.DIFFERENCE:return i===Ol.INTERIOR&&o!==Ol.INTERIOR;case kh.SYMDIFFERENCE:return i===Ol.INTERIOR&&o!==Ol.INTERIOR||i!==Ol.INTERIOR&&o===Ol.INTERIOR}return!1}},kh.INTERSECTION=1,kh.UNION=2,kh.DIFFERENCE=3,kh.SYMDIFFERENCE=4;var Oh=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Ef,this._seg=new pd;var e=arguments[0],t=arguments[1];this._g=e,this._boundaryDistanceTolerance=t,this._linework=this.extractLinework(e)};Oh.prototype.isWithinToleranceOfBoundary=function(e){for(var t=0;t<this._linework.getNumGeometries();t++)for(var n=this._linework.getGeometryN(t).getCoordinateSequence(),r=0;r<n.size()-1;r++)if(n.getCoordinate(r,this._seg.p0),n.getCoordinate(r+1,this._seg.p1),this._seg.distance(e)<=this._boundaryDistanceTolerance)return!0;return!1},Oh.prototype.getLocation=function(e){return this.isWithinToleranceOfBoundary(e)?Ol.BOUNDARY:this._ptLocator.locate(e,this._g)},Oh.prototype.extractLinework=function(e){var t=new Th;e.apply(t);var n=t.getLinework(),r=vu.toLineStringArray(n);return e.getFactory().createMultiLineString(r)},Oh.prototype.interfaces_=function(){return[]},Oh.prototype.getClass=function(){return Oh};var Th=function(){this._linework=null,this._linework=new Sc};Th.prototype.getLinework=function(){return this._linework},Th.prototype.filter=function(e){if(e instanceof Zc){var t=e;this._linework.add(t.getExteriorRing());for(var n=0;n<t.getNumInteriorRing();n++)this._linework.add(t.getInteriorRingN(n))}},Th.prototype.interfaces_=function(){return[qc]},Th.prototype.getClass=function(){return Th};var Ih=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var e=arguments[0];this._g=e};Ih.prototype.extractPoints=function(e,t,n){for(var r=e.getCoordinates(),i=0;i<r.length-1;i++)this.computeOffsetPoints(r[i],r[i+1],t,n)},Ih.prototype.setSidesToGenerate=function(e,t){this._doLeft=e,this._doRight=t},Ih.prototype.getPoints=function(e){for(var t=new Sc,n=Cf.getLines(this._g).iterator();n.hasNext();){var r=n.next();this.extractPoints(r,e,t)}return t},Ih.prototype.computeOffsetPoints=function(e,t,n,r){var i=t.x-e.x,o=t.y-e.y,a=Math.sqrt(i*i+o*o),s=n*i/a,l=n*o/a,c=(t.x+e.x)/2,u=(t.y+e.y)/2;if(this._doLeft){var d=new Sl(c-l,u+s);r.add(d)}if(this._doRight){var f=new Sl(c+l,u-s);r.add(f)}},Ih.prototype.interfaces_=function(){return[]},Ih.prototype.getClass=function(){return Ih};var Ah=function e(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=e.TOLERANCE,this._testCoords=new Sc;var t=arguments[0],n=arguments[1],r=arguments[2];this._boundaryDistanceTolerance=e.computeBoundaryDistanceTolerance(t,n),this._geom=[t,n,r],this._locFinder=[new Oh(this._geom[0],this._boundaryDistanceTolerance),new Oh(this._geom[1],this._boundaryDistanceTolerance),new Oh(this._geom[2],this._boundaryDistanceTolerance)]},Rh={TOLERANCE:{configurable:!0}};Ah.prototype.reportResult=function(e,t,n){Gl.out.println("Overlay result invalid - A:"+Ol.toLocationSymbol(t[0])+" B:"+Ol.toLocationSymbol(t[1])+" expected:"+(n?"i":"e")+" actual:"+Ol.toLocationSymbol(t[2]))},Ah.prototype.isValid=function(e){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var t=this.checkValid(e);return t},Ah.prototype.checkValid=function(){if(1===arguments.length){for(var e=arguments[0],t=0;t<this._testCoords.size();t++){var n=this._testCoords.get(t);if(!this.checkValid(e,n))return this._invalidLocation=n,!1}return!0}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._location[0]=this._locFinder[0].getLocation(i),this._location[1]=this._locFinder[1].getLocation(i),this._location[2]=this._locFinder[2].getLocation(i),!!Ah.hasLocation(this._location,Ol.BOUNDARY)||this.isValidResult(r,this._location)}},Ah.prototype.addTestPts=function(e){var t=new Ih(e);this._testCoords.addAll(t.getPoints(5*this._boundaryDistanceTolerance))},Ah.prototype.isValidResult=function(e,t){var n=kh.isResultOfOp(t[0],t[1],e),r=!(n^t[2]===Ol.INTERIOR);return r||this.reportResult(e,t,n),r},Ah.prototype.getInvalidLocation=function(){return this._invalidLocation},Ah.prototype.interfaces_=function(){return[]},Ah.prototype.getClass=function(){return Ah},Ah.hasLocation=function(e,t){for(var n=0;n<3;n++)if(e[n]===t)return!0;return!1},Ah.computeBoundaryDistanceTolerance=function(e,t){return Math.min(Yf.computeSizeBasedSnapTolerance(e),Yf.computeSizeBasedSnapTolerance(t))},Ah.isValid=function(e,t,n,r){return new Ah(e,t,r).isValid(n)},Rh.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Ah,Rh);var Ph=function e(t){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=e.extractFactory(t),this._inputGeoms=t};Ph.prototype.extractElements=function(e,t){if(null===e)return null;for(var n=0;n<e.getNumGeometries();n++){var r=e.getGeometryN(n);this._skipEmpty&&r.isEmpty()||t.add(r)}},Ph.prototype.combine=function(){for(var e=new Sc,t=this._inputGeoms.iterator();t.hasNext();){var n=t.next();this.extractElements(n,e)}return 0===e.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(e)},Ph.prototype.interfaces_=function(){return[]},Ph.prototype.getClass=function(){return Ph},Ph.combine=function(){if(1===arguments.length){var e=arguments[0];return new Ph(e).combine()}if(2===arguments.length){var t=arguments[0],n=arguments[1];return new Ph(Ph.createList(t,n)).combine()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];return new Ph(Ph.createList(r,i,o)).combine()}},Ph.extractFactory=function(e){return e.isEmpty()?null:e.iterator().next().getFactory()},Ph.createList=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=new Sc;return n.add(e),n.add(t),n}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],a=new Sc;return a.add(r),a.add(i),a.add(o),a}};var Mh=function(){this._inputPolys=null,this._geomFactory=null;var e=arguments[0];this._inputPolys=e,null===this._inputPolys&&(this._inputPolys=new Sc)},Nh={STRTREE_NODE_CAPACITY:{configurable:!0}};Mh.prototype.reduceToGeometries=function(e){for(var t=new Sc,n=e.iterator();n.hasNext();){var r=n.next(),i=null;Il(r,xc)?i=this.unionTree(r):r instanceof cc&&(i=r),t.add(i)}return t},Mh.prototype.extractByEnvelope=function(e,t,n){for(var r=new Sc,i=0;i<t.getNumGeometries();i++){var o=t.getGeometryN(i);o.getEnvelopeInternal().intersects(e)?r.add(o):n.add(o)}return this._geomFactory.buildGeometry(r)},Mh.prototype.unionOptimized=function(e,t){var n=e.getEnvelopeInternal(),r=t.getEnvelopeInternal();if(!n.intersects(r))return Ph.combine(e,t);if(e.getNumGeometries()<=1&&t.getNumGeometries()<=1)return this.unionActual(e,t);var i=n.intersection(r);return this.unionUsingEnvelopeIntersection(e,t,i)},Mh.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var e=new od(Mh.STRTREE_NODE_CAPACITY),t=this._inputPolys.iterator();t.hasNext();){var n=t.next();e.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var r=e.itemsTree();return this.unionTree(r)},Mh.prototype.binaryUnion=function(){if(1===arguments.length){var e=arguments[0];return this.binaryUnion(e,0,e.size())}if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];if(r-n<=1){var i=Mh.getGeometry(t,n);return this.unionSafe(i,null)}if(r-n==2)return this.unionSafe(Mh.getGeometry(t,n),Mh.getGeometry(t,n+1));var o=Math.trunc((r+n)/2),a=this.binaryUnion(t,n,o),s=this.binaryUnion(t,o,r);return this.unionSafe(a,s)}},Mh.prototype.repeatedUnion=function(e){for(var t=null,n=e.iterator();n.hasNext();){var r=n.next();t=null===t?r.copy():t.union(r)}return t},Mh.prototype.unionSafe=function(e,t){return null===e&&null===t?null:null===e?t.copy():null===t?e.copy():this.unionOptimized(e,t)},Mh.prototype.unionActual=function(e,t){return Mh.restrictToPolygons(e.union(t))},Mh.prototype.unionTree=function(e){var t=this.reduceToGeometries(e);return this.binaryUnion(t)},Mh.prototype.unionUsingEnvelopeIntersection=function(e,t,n){var r=new Sc,i=this.extractByEnvelope(n,e,r),o=this.extractByEnvelope(n,t,r),a=this.unionActual(i,o);return r.add(a),Ph.combine(r)},Mh.prototype.bufferUnion=function(){if(1===arguments.length){var e=arguments[0];return e.get(0).getFactory().buildGeometry(e).buffer(0)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t.getFactory().createGeometryCollection([t,n]).buffer(0)}},Mh.prototype.interfaces_=function(){return[]},Mh.prototype.getClass=function(){return Mh},Mh.restrictToPolygons=function(e){if(Il(e,Qc))return e;var t=Sf.getPolygons(e);return 1===t.size()?t.get(0):e.getFactory().createMultiPolygon(vu.toPolygonArray(t))},Mh.getGeometry=function(e,t){return t>=e.size()?null:e.get(t)},Mh.union=function(e){return new Mh(e).union()},Nh.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Mh,Nh);var Lh=function(){};Lh.prototype.interfaces_=function(){return[]},Lh.prototype.getClass=function(){return Lh},Lh.union=function(e,t){if(e.isEmpty()||t.isEmpty()){if(e.isEmpty()&&t.isEmpty())return kh.createEmptyResult(kh.UNION,e,t,e.getFactory());if(e.isEmpty())return t.copy();if(t.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oh.overlayOp(e,t,kh.UNION)};var Dh=function(){return new Wi};Wi.prototype={constructor:Wi,reset:function(){this.s=this.t=0},add:function(e){Hi(jh,e,this.t),Hi(this,jh.s,this.s),this.s?this.t+=jh.t:this.s=jh.t},valueOf:function(){return this.s}};var jh=new Wi,Fh=1e-6,Bh=Math.PI,qh=Bh/2,zh=Bh/4,Uh=2*Bh,Gh=180/Bh,Vh=Bh/180,Wh=Math.abs,Hh=Math.atan,$h=Math.atan2,Kh=Math.cos,Xh=Math.exp,Yh=Math.log,Jh=Math.sin,Qh=Math.sqrt,Zh=Math.tan,ep={Feature:function(e,t){Xi(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Xi(n[r].geometry,t)}},tp={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Yi(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Yi(n[r],t,0)},Polygon:function(e,t){Ji(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Ji(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Xi(n[r],t)}},np=function(e,t){e&&ep.hasOwnProperty(e.type)?ep[e.type](e,t):Xi(e,t)},rp=(Dh(),Dh(),Dh(),function(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n});oo.invert=oo;var ip=function(e){function t(t){return t=e(t[0]*Vh,t[1]*Vh),t[0]*=Gh,t[1]*=Gh,t}return e=ao(e[0]*Vh,e[1]*Vh,e.length>2?e[2]*Vh:0),t.invert=function(t){return t=e.invert(t[0]*Vh,t[1]*Vh),t[0]*=Gh,t[1]*=Gh,t},t},op=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:Ki,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},ap=function(e,t,n,r,i,o){var a,s=e[0],l=e[1],c=0,u=1,d=t[0]-s,f=t[1]-l;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a<c)return;a<u&&(u=a)}else if(d>0){if(a>u)return;a>c&&(c=a)}if(a=i-s,d||!(a<0)){if(a/=d,d<0){if(a>u)return;a>c&&(c=a)}else if(d>0){if(a<c)return;a<u&&(u=a)}if(a=r-l,f||!(a>0)){if(a/=f,f<0){if(a<c)return;a<u&&(u=a)}else if(f>0){if(a>u)return;a>c&&(c=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>u)return;a>c&&(c=a)}else if(f>0){if(a<c)return;a<u&&(u=a)}return c>0&&(e[0]=s+c*d,e[1]=l+c*f),u<1&&(t[0]=s+u*d,t[1]=l+u*f),!0}}}}},sp=function(e,t){return Wh(e[0]-t[0])<Fh&&Wh(e[1]-t[1])<Fh},lp=function(e,t,n,r,i){var o,a,s=[],l=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(sp(r,a)){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);i.lineEnd()}else s.push(n=new fo(r,e,null,!0)),l.push(n.o=new fo(r,null,n,!1)),s.push(n=new fo(a,e,null,!1)),l.push(n.o=new fo(a,null,n,!0))}})),s.length){for(l.sort(t),ho(s),ho(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;for(var c,u,d=s[0];;){for(var f=d,h=!0;f.v;)if((f=f.n)===d)return;c=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(h)for(o=0,a=c.length;o<a;++o)i.point((u=c[o])[0],u[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(h)for(c=f.p.z,o=c.length-1;o>=0;--o)i.point((u=c[o])[0],u[1]);else r(f.x,f.p.x,-1,i);f=f.p}c=(f=f.o).z,h=!h}while(!f.v);i.lineEnd()}}},cp=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},up=(function(e){1===e.length&&(e=function(e){return function(t,n){return cp(e(t),n)}}(e))}(cp),function(e){for(var t,n,r,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(n=new Array(a);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n}),dp=1e9,fp=-dp,hp=Dh(),pp=(Dh(),function(e){return e}),mp=(Dh(),Dh(),1/0),gp=mp,vp=-mp,yp=vp,bp={point:function(e,t){e<mp&&(mp=e),e>vp&&(vp=e),t<gp&&(gp=t),t>yp&&(yp=t)},lineStart:Ki,lineEnd:Ki,polygonStart:Ki,polygonEnd:Ki,result:function(){var e=[[mp,gp],[vp,yp]];return vp=yp=-(gp=mp=1/0),e}},_p=(Dh(),function(e,t,n,r){return function(i,o){function a(t,n){var r=i(t,n);e(t=r[0],n=r[1])&&o.point(t,n)}function s(e,t){var n=i(e,t);g.point(n[0],n[1])}function l(){w.point=s,g.lineStart()}function c(){w.point=a,g.lineEnd()}function u(e,t){m.push([e,t]);var n=i(e,t);b.point(n[0],n[1])}function d(){b.lineStart(),m=[]}function f(){u(m[0][0],m[0][1]),b.lineEnd();var e,t,n,r,i=b.clean(),a=y.result(),s=a.length;if(m.pop(),h.push(m),m=null,s)if(1&i){if(n=a[0],(t=n.length-1)>0){for(_||(o.polygonStart(),_=!0),o.lineStart(),e=0;e<t;++e)o.point((r=n[e])[0],r[1]);o.lineEnd()}}else s>1&&2&i&&a.push(a.pop().concat(a.shift())),p.push(a.filter(mo))}var h,p,m,g=t(o),v=i.invert(r[0],r[1]),y=op(),b=t(y),_=!1,w={point:a,lineStart:l,lineEnd:c,polygonStart:function(){w.point=u,w.lineStart=d,w.lineEnd=f,p=[],h=[]},polygonEnd:function(){w.point=a,w.lineStart=l,w.lineEnd=c,p=up(p);var e=function(e,t){var n=t[0],r=t[1],i=[Jh(n),-Kh(n),0],o=0,a=0;hp.reset();for(var s=0,l=e.length;s<l;++s)if(u=(c=e[s]).length)for(var c,u,d=c[u-1],f=d[0],h=d[1]/2+zh,p=Jh(h),m=Kh(h),g=0;g<u;++g,f=y,p=_,m=w,d=v){var v=c[g],y=v[0],b=v[1]/2+zh,_=Jh(b),w=Kh(b),x=y-f,S=x>=0?1:-1,C=S*x,E=C>Bh,k=p*_;if(hp.add($h(k*S*Jh(C),m*w+k*Kh(C))),o+=E?x+S*Uh:x,E^f>=n^y>=n){var O=to(Zi(d),Zi(v));io(O);var T=to(i,O);io(T);var I=(E^x>=0?-1:1)*$i(T[2]);(r>I||r===I&&(O[0]||O[1]))&&(a+=E^x>=0?1:-1)}}return(o<-Fh||o<Fh&&hp<-Fh)^1&a}(h,v);p.length?(_||(o.polygonStart(),_=!0),lp(p,go,e,n,o)):e&&(_||(o.polygonStart(),_=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),_&&(o.polygonEnd(),_=!1),p=h=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};return w}}),wp=_p((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Bh:-Bh,l=Wh(o-n);Wh(l-Bh)<Fh?(e.point(n,r=(r+a)/2>0?qh:-qh),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&l>=Bh&&(Wh(n-i)<Fh&&(n-=i*Fh),Wh(o-s)<Fh&&(o-=s*Fh),r=function(e,t,n,r){var i,o,a=Jh(e-n);return Wh(a)>Fh?Hh((Jh(t)*(o=Kh(r))*Jh(n)-Jh(r)*(i=Kh(t))*Jh(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*qh,r.point(-Bh,i),r.point(0,i),r.point(Bh,i),r.point(Bh,0),r.point(Bh,-i),r.point(0,-i),r.point(-Bh,-i),r.point(-Bh,0),r.point(-Bh,i);else if(Wh(e[0]-t[0])>Fh){var o=e[0]<t[0]?Bh:-Bh;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-Bh,-qh]),xp=function(e,t){function n(e,t){return Kh(e)*Kh(t)>o}function r(e,t,n){var r=[1,0,0],i=to(Zi(e),Zi(t)),a=eo(i,i),s=i[0],l=a-s*s;if(!l)return!n&&e;var c=o*a/l,u=-o*s/l,d=to(r,i),f=ro(r,c);no(f,ro(i,u));var h=d,p=eo(f,h),m=eo(h,h),g=p*p-m*(eo(f,f)-1);if(!(g<0)){var v=Qh(g),y=ro(h,(-p-v)/m);if(no(y,f),y=Qi(y),!n)return y;var b,_=e[0],w=t[0],x=e[1],S=t[1];w<_&&(b=_,_=w,w=b);var C=w-_,E=Wh(C-Bh)<Fh;if(!E&&S<x&&(b=x,x=S,S=b),E||C<Fh?E?x+S>0^y[1]<(Wh(y[0]-_)<Fh?x:S):x<=y[1]&&y[1]<=S:C>Bh^(_<=y[0]&&y[0]<=w)){var k=ro(h,(-p+v)/m);return no(k,f),[y,Qi(k)]}}}function i(t,n){var r=a?e:Bh-e,i=0;return t<-r?i|=1:t>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var o=Kh(e),a=o>0,s=Wh(o)>Fh;return _p(n,(function(e){var t,o,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,f){var h,p=[d,f],m=n(d,f),g=a?m?0:i(d,f):m?i(d+(d<0?Bh:-Bh),f):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(h=r(t,p))||sp(t,h)||sp(p,h))&&(p[0]+=Fh,p[1]+=Fh,m=n(p[0],p[1])),m!==l)u=0,m?(e.lineStart(),h=r(p,t),e.point(h[0],h[1])):(h=r(t,p),e.point(h[0],h[1]),e.lineEnd()),t=h;else if(s&&t&&a^m){var v;g&o||!(v=r(p,t,!0))||(u=0,a?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!m||t&&sp(t,p)||e.point(p[0],p[1]),t=p,l=m,o=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}}),(function(n,r,i,o){!function(e,t,n,r,i,o){if(n){var a=Kh(t),s=Jh(t),l=r*n;null==i?(i=t+r*Uh,o=t-l/2):(i=uo(a,i),o=uo(a,o),(r>0?i<o:i>o)&&(i+=r*Uh));for(var c,u=i;r>0?u>o:u<o;u-=l)c=Qi([a,-s*Kh(u),-s*Jh(u)]),e.point(c[0],c[1])}}(o,e,t,i,n,r)}),a?[0,-e]:[-Bh,e-Bh])};yo.prototype={constructor:yo,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Sp=16,Cp=Kh(30*Vh),Ep=function(e,t){return+t?function(e,t){function n(r,i,o,a,s,l,c,u,d,f,h,p,m,g){var v=c-r,y=u-i,b=v*v+y*y;if(b>4*t&&m--){var _=a+f,w=s+h,x=l+p,S=Qh(_*_+w*w+x*x),C=$i(x/=S),E=Wh(Wh(x)-1)<Fh||Wh(o-d)<Fh?(o+d)/2:$h(w,_),k=e(E,C),O=k[0],T=k[1],I=O-r,A=T-i,R=y*I-v*A;(R*R/b>t||Wh((v*I+y*A)/b-.5)>.3||a*f+s*h+l*p<Cp)&&(n(r,i,o,a,s,l,O,T,E,_/=S,w/=S,x,m,g),g.point(O,T),n(O,T,E,_,w,x,c,u,d,f,h,p,m,g))}}return function(t){function r(n,r){n=e(n,r),t.point(n[0],n[1])}function i(){v=NaN,x.point=o,t.lineStart()}function o(r,i){var o=Zi([r,i]),a=e(r,i);n(v,y,g,b,_,w,v=a[0],y=a[1],g=r,b=o[0],_=o[1],w=o[2],Sp,t),t.point(v,y)}function a(){x.point=r,t.lineEnd()}function s(){i(),x.point=l,x.lineEnd=c}function l(e,t){o(u=e,t),d=v,f=y,h=b,p=_,m=w,x.point=o}function c(){n(v,y,g,b,_,w,d,f,u,h,p,m,Sp,t),x.lineEnd=a,a()}var u,d,f,h,p,m,g,v,y,b,_,w,x={point:r,lineStart:i,lineEnd:a,polygonStart:function(){t.polygonStart(),x.lineStart=s},polygonEnd:function(){t.polygonEnd(),x.lineStart=i}};return x}}(e,t):function(e){return vo({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)},kp=vo({point:function(e,t){this.stream.point(e*Vh,t*Vh)}});wo.invert=function(e,t){return[e,2*Hh(Xh(t))-qh]},xo.invert=function(e,t){return[-t,2*Hh(Xh(e))-qh]};var Op=function(){var e=function(e){function t(){var t=Bh*s(),a=o(ip(o.rotate()).invert([0,0]));return c(null==u?[[a[0]-t,a[1]-t],[a[0]+t,a[1]+t]]:e===wo?[[Math.max(a[0]-t,u),n],[Math.min(a[0]+t,r),i]]:[[u,Math.max(a[1]-t,n)],[r,Math.min(a[1]+t,i)]])}var n,r,i,o=_o(e),a=o.center,s=o.scale,l=o.translate,c=o.clipExtent,u=null;return o.scale=function(e){return arguments.length?(s(e),t()):s()},o.translate=function(e){return arguments.length?(l(e),t()):l()},o.center=function(e){return arguments.length?(a(e),t()):a()},o.clipExtent=function(e){return arguments.length?(null==e?u=n=r=i=null:(u=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),t()):null==u?null:[[u,n],[r,i]]},t()}(xo),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)};e.projection=ka,e.random=pl,e.clusters=ml,e.helpers=qo,e.invariant=Uo,e.meta=zo,e.isolines=function(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.zProperty||"elevation",i=n.commonProperties||{},o=n.breaksProperties||[];if(K(e,"Point","Input must contain Points"),!t)throw new Error("breaks is required");if(!Array.isArray(t))throw new Error("breaks must be an Array");if(!C(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(o))throw new Error("breaksProperties must be an Array");var a=re(e,{zProperty:r,flip:!0});return c(function(e,t,n){var r=U(n),i=r[2]-r[0],o=r[3]-r[1],a=r[0],s=r[1],l=t[0].length-1,c=t.length-1,u=i/l,d=o/c,f=function(e){e[0]=e[0]*u+a,e[1]=e[1]*d+s};return e.forEach((function(e){O(e,f)})),e}(function(e,t,n,r,i){for(var o=[],a=1;a<t.length;a++){var s=+t[a],l=Object.assign({},r,i[a]);l[n]=s;var c=u(Q(e,s),l);o.push(c)}return o}(a,t,r,i,o),a,e))},e.convex=Ie,e.pointsWithinPolygon=Pe,e.concave=function(e,n){if(n=n||{},!C(n))throw new Error("options is invalid");if(!e)throw new Error("points is required");var r=n.maxEdge||1/0;if(!S(r))throw new Error("maxEdge is invalid");var i=Me(function(e){var t=[],n={};return R(e,(function(e){if(e.geometry){var r=e.geometry.coordinates.join("-");n.hasOwnProperty(r)||(t.push(e),n[r]=!0)}})),c(t)}(e));if(i.features=i.features.filter((function(e){var t=e.geometry.coordinates[0][0],i=e.geometry.coordinates[0][1],o=e.geometry.coordinates[0][2],a=je(t,i,n),s=je(i,o,n),l=je(t,o,n);return a<=r&&s<=r&&l<=r})),i.features.length<1)return null;var o=Ze(i,n);return 1===o.coordinates.length&&(o.coordinates=o.coordinates[0],o.type="Polygon"),t(o)},e.collect=function(e,t,n,r){var i=Ho(6),o=t.features.map((function(e){return{minX:e.geometry.coordinates[0],minY:e.geometry.coordinates[1],maxX:e.geometry.coordinates[0],maxY:e.geometry.coordinates[1],property:e.properties[n]}}));return i.load(o),e.features.forEach((function(e){e.properties||(e.properties={});var t=U(e),n=[];i.search({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}).forEach((function(t){Ae([t.minX,t.minY],e)&&n.push(t.property)})),e.properties[r]=n})),e},e.flip=function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.mutate;if(!e)throw new Error("geojson is required");return!1!==n&&void 0!==n||(e=Fe(e)),O(e,(function(e){var t=e[0],n=e[1];e[0]=n,e[1]=t})),e},e.simplify=function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=void 0!==t.tolerance?t.tolerance:1,r=t.highQuality||!1,i=t.mutate||!1;if(!e)throw new Error("geojson is required");if(n&&n<0)throw new Error("invalid tolerance");return!0!==i&&(e=Fe(e)),N(e,(function(e){!function(e,t,n){var r=e.type;if("Point"===r||"MultiPoint"===r)return e;et(e,!0);var i=e.coordinates;switch(r){case"LineString":e.coordinates=at(i,t,n);break;case"MultiLineString":e.coordinates=i.map((function(e){return at(e,t,n)}));break;case"Polygon":e.coordinates=st(i,t,n);break;case"MultiPolygon":e.coordinates=i.map((function(e){return st(e,t,n)}))}}(e,n,r)})),e},e.bezierSpline=lt,e.tag=function(e,t,n,r){return e=Fe(e),t=Fe(t),R(e,(function(e){e.properties||(e.properties={}),R(t,(function(t){void 0===e.properties[r]&&Ae(e,t)&&(e.properties[r]=t.properties[n])}))})),e},e.sample=function(e,t){if(!e)throw new Error("featurecollection is required");if(null===t||void 0===t)throw new Error("num is required");if("number"!=typeof t)throw new Error("num must be a number");return c(function(e,t){for(var n,r,i=e.slice(0),o=e.length,a=o-t;o-- >a;)r=Math.floor((o+1)*Math.random()),n=i[r],i[r]=i[o],i[o]=n;return i.slice(a)}(e.features,t))},e.envelope=ut,e.square=dt,e.circle=ht,e.midpoint=function(e,t){return ft(e,je(e,t)/2,pt(e,t))},e.center=mt,e.centerOfMass=vt,e.centroid=gt,e.combine=function(e){function n(e,t,n){n?r[t].coordinates=r[t].coordinates.concat(e.geometry.coordinates):r[t].coordinates.push(e.geometry.coordinates),r[t].properties.push(e.properties)}var r={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},i=Object.keys(r).reduce((function(e,t){return e[t.replace("Multi","")]=t,e}),{});return R(e,(function(e){e.geometry&&(r[e.geometry.type]?n(e,e.geometry.type,!0):i[e.geometry.type]&&n(e,i[e.geometry.type],!1))})),c(Object.keys(r).filter((function(e){return r[e].coordinates.length})).sort().map((function(e){return t({type:e,coordinates:r[e].coordinates},{collectedProperties:r[e].properties})})))},e.distance=je,e.explode=yt,e.bbox=U,e.tesselate=function(e){if(!e.geometry||"Polygon"!==e.geometry.type&&"MultiPolygon"!==e.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var t={type:"FeatureCollection",features:[]};return"Polygon"===e.geometry.type?t.features=Lt(e.geometry.coordinates):e.geometry.coordinates.forEach((function(e){t.features=t.features.concat(Lt(e))})),t},e.bboxPolygon=ct,e.booleanPointInPolygon=Ae,e.nearestPoint=Dt,e.nearestPointOnLine=on,e.nearestPointToLine=function(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.units,i=n.properties||{};if(!e)throw new Error("points is required");if(!(e=function(e){var t=[];switch(e.geometry?e.geometry.type:e.type){case"GeometryCollection":return N(e,(function(e){"Point"===e.type&&t.push({type:"Feature",properties:{},geometry:e})})),{type:"FeatureCollection",features:t};case"FeatureCollection":return e.features=e.features.filter((function(e){return"Point"===e.geometry.type})),e;default:throw new Error("points must be a Point Collection")}}(e)).features.length)throw new Error("points must contain features");if(!t)throw new Error("line is required");if("LineString"!==J(t))throw new Error("line must be a LineString");var o=1/0,a=null;return R(e,(function(e){var n=pn(e,t,{units:r});n<o&&(o=n,a=e)})),a&&(a.properties=Object.assign({dist:o},a.properties,i)),a},e.planepoint=function(e,t){var n=G(e),r=X(t).coordinates[0];if(r.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=t.properties||{},o=i.a,a=i.b,s=i.c,l=n[0],c=n[1],u=r[0][0],d=r[0][1],f=void 0!==o?o:r[0][2],h=r[1][0],p=r[1][1],m=void 0!==a?a:r[1][2],g=r[2][0],v=r[2][1],y=void 0!==s?s:r[2][2];return(y*(l-u)*(c-p)+f*(l-h)*(c-v)+m*(l-g)*(c-d)-m*(l-u)*(c-v)-y*(l-h)*(c-d)-f*(l-g)*(c-p))/((l-u)*(c-p)+(l-h)*(c-v)+(l-g)*(c-d)-(l-u)*(c-v)-(l-h)*(c-d)-(l-g)*(c-p))},e.tin=Me,e.bearing=pt,e.destination=ft,e.kinks=function(e){var t,n,i={type:"FeatureCollection",features:[]};if("LineString"===(n="Feature"===e.type?e.geometry:e).type)t=[n.coordinates];else if("MultiLineString"===n.type)t=n.coordinates;else if("MultiPolygon"===n.type)t=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");t=n.coordinates}return t.forEach((function(e){t.forEach((function(t){for(var n=0;n<e.length-1;n++)for(var o=n;o<t.length-1;o++){if(e===t){if(1===Math.abs(n-o))continue;if(0===n&&o===e.length-2&&e[n][0]===e[e.length-1][0]&&e[n][1]===e[e.length-1][1])continue}var a=function(e,t,n,r,i,o,a,s){var l,c,u,d,f,h={x:null,y:null,onLine1:!1,onLine2:!1};return 0==(l=(s-o)*(n-e)-(a-i)*(r-t))?null!==h.x&&null!==h.y&&h:(c=t-o,u=e-i,d=(a-i)*c-(s-o)*u,f=(n-e)*c-(r-t)*u,c=d/l,u=f/l,h.x=e+c*(n-e),h.y=t+c*(r-t),c>=0&&c<=1&&(h.onLine1=!0),u>=0&&u<=1&&(h.onLine2=!0),!(!h.onLine1||!h.onLine2)&&[h.x,h.y])}(e[n][0],e[n][1],e[n+1][0],e[n+1][1],t[o][0],t[o][1],t[o+1][0],t[o+1][1]);a&&i.features.push(r([a[0],a[1]]))}}))})),i},e.pointOnFeature=gn,e.area=yn,e.along=function(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var i;if("Feature"===e.type)i=e.geometry.coordinates;else{if("LineString"!==e.type)throw new Error("input must be a LineString Feature or Geometry");i=e.coordinates}if(!S(t))throw new Error("distance must be a number");for(var o=0,a=0;a<i.length&&!(t>=o&&a===i.length-1);a++){if(o>=t){var s=t-o;if(s){var l=pt(i[a],i[a-1])-180;return ft(i[a],s,l,n)}return r(i[a])}o+=je(i[a],i[a+1],n)}return r(i[i.length-1])},e.length=Sn,e.lineSlice=function(e,t,n){var r=V(n);if("LineString"!==J(n))throw new Error("line must be a LineString");for(var i,o=on(n,e),a=on(n,t),l=[(i=o.properties.index<=a.properties.index?[o,a]:[a,o])[0].geometry.coordinates],c=i[0].properties.index+1;c<i[1].properties.index+1;c++)l.push(r[c]);return l.push(i[1].geometry.coordinates),s(l,n.properties)},e.lineSliceAlong=Cn,e.pointGrid=In,e.truncate=An,e.flatten=function(e){if(!e)throw new Error("geojson is required");var t=[];return D(e,(function(e){t.push(e)})),c(t)},e.lineIntersect=nn,e.lineChunk=function(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.units,i=n.reverse;if(!e)throw new Error("geojson is required");if(t<=0)throw new Error("segmentLength must be greater than 0");var o=[];return D(e,(function(e){i&&(e.geometry.coordinates=e.geometry.coordinates.reverse()),function(e,t,n,r){var i=Sn(e,{units:n});if(i<=t)return r(e);var o=i/t;Number.isInteger(o)||(o=Math.floor(o)+1);for(var a=0;a<o;a++){var s=Cn(e,t*a,t*(a+1),{units:n});r(s,a)}}(e,t,r,(function(e){o.push(e)}))})),c(o)},e.unkinkPolygon=function(e){var t=[];return D(e,(function(e){"Polygon"===e.geometry.type&&R(Ia(e),(function(n){t.push(o(n.geometry.coordinates,e.properties))}))})),c(t)},e.greatCircle=function(e,t,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var r=n.properties,i=n.npoints,o=n.offset;return e=G(e),t=G(t),r=r||{},i=i||100,o=o||10,new ja({x:e[0],y:e[1]},{x:t[0],y:t[1]},r).Arc(i,{offset:o}).json()},e.lineSegment=tn,e.lineSplit=function(e,t){if(!e)throw new Error("line is required");if(!t)throw new Error("splitter is required");var n=J(e),r=J(t);if("LineString"!==n)throw new Error("line must be LineString");if("FeatureCollection"===r)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===r)throw new Error("splitter cannot be a GeometryCollection");var i=An(t,{precision:7});switch(r){case"Point":return Ln(e,i);case"MultiPoint":return Nn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Nn(e,nn(e,i))}},e.lineArc=Fn,e.polygonToLine=qn,e.lineToPolygon=Un,e.bboxClip=function(e,t){var n=function(e){return e.geometry?e.geometry.type:e.type}(e),r=V(e),i=e.properties;switch(n){case"LineString":case"MultiLineString":var a=[];return"LineString"===n&&(r=[r]),r.forEach((function(e){Fa(e,t,a)})),1===a.length?s(a[0],i):u(a,i);case"Polygon":return o(Kn(r,t),i);case"MultiPolygon":return f(r.map((function(e){return Kn(e,t)})),i);default:throw new Error("geometry "+n+" not supported")}},e.lineOverlap=Zn,e.sector=function(e,t,n,r,i){if(i=i||{},!C(i))throw new Error("options is invalid");if(!e)throw new Error("center is required");if(void 0===n||null===n)throw new Error("bearing1 is required");if(void 0===r||null===r)throw new Error("bearing2 is required");if(!t)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(tr(n)===tr(r))return ht(e,t,i);var a=V(e),s=[[a]];return O(Fn(e,t,n,r,i),(function(e){s[0].push(e)})),s[0].push(a),o(s)},e.rhumbBearing=an,e.rhumbDistance=ln,e.rhumbDestination=nr,e.polygonTangents=function(e,t){var n,i,o,a=V(e),s=V(t);switch(J(t)){case"Polygon":n=s[0][0],i=s[0][0],o=ir(s[0][0],s[0][s[0].length-1],a);var l=rr(s[0],a,o,void 0,n,i);n=l[0],i=l[1];break;case"MultiPolygon":n=s[0][0][0],i=s[0][0][0],o=ir(s[0][0][0],s[0][0][s[0][0].length-1],a),s.forEach((function(e){var t=rr(e[0],a,o,void 0,n,i);n=t[0],i=t[1]}))}return c([r(n),r(i)])},e.rewind=function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.reverse||!1,r=t.mutate||!1;if(!e)throw new Error("<geojson> is required");if("boolean"!=typeof n)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof r)throw new Error("<mutate> must be a boolean");!1===r&&(e=Fe(e));var i=[];switch(e.type){case"GeometryCollection":return N(e,(function(e){ar(e,n)})),e;case"FeatureCollection":return R(e,(function(e){R(ar(e,n),(function(e){i.push(e)}))})),c(i)}return ar(e,n)},e.isobands=function(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.zProperty||"elevation",i=n.commonProperties||{},a=n.breaksProperties||[];if(K(e,"Point","Input must contain Points"),!t)throw new Error("breaks is required");if(!Array.isArray(t))throw new Error("breaks is not an Array");if(!C(i))throw new Error("commonProperties is not an Object");if(!Array.isArray(a))throw new Error("breaksProperties is not an Array");var s=cr(e,{zProperty:r,flip:!0}),l=function(e,t,n){for(var r=[],i=1;i<t.length;i++){var a=+t[i-1],s=+t[i],l=ur(e,a,s-a),c=function(e){var t=[],n=[];e.forEach((function(e){var r=yn(o([e]));n.push(r),t.push({ring:e,area:r})})),n.sort((function(e,t){return t-e}));var r=[];return n.forEach((function(e){for(var n=0;n<t.length;n++)if(t[n].area===e){r.push(t[n].ring),t.splice(n,1);break}})),r}(l),u=function(e){for(var t=e.map((function(e){return{lrCoordinates:e,grouped:!1}})),n=[];!function(e){for(var t=0;t<e.length;t++)if(!1===e[t].grouped)return!1;return!0}(t);)for(var r=0;r<t.length;r++)if(!t[r].grouped){var i=[];i.push(t[r].lrCoordinates),t[r].grouped=!0;for(var a=o([t[r].lrCoordinates]),s=r+1;s<t.length;s++)if(!t[s].grouped){var l=o([t[s].lrCoordinates]);(function(e,t){for(var n=yt(e),r=0;r<n.features.length;r++)if(!Ae(n.features[r],t))return!1;return!0})(l,a)&&(i.push(t[s].lrCoordinates),t[s].grouped=!0)}n.push(i)}return n}(c),d={};d.groupedRings=u,d[n]=a+"-"+s,r.push(d)}return r}(s,t,r);return c((l=function(e,t,n){var r=U(n),i=r[2]-r[0],o=r[3]-r[1],a=r[0],s=r[1],l=t[0].length-1,c=t.length-1,u=i/l,d=o/c,f=function(e){e[0]=e[0]*u+a,e[1]=e[1]*d+s};return e.forEach((function(e){e.groupedRings.forEach((function(e){e.forEach((function(e){e.forEach(f)}))}))})),e}(l,s,e)).map((function(e,t){if(a[t]&&!C(a[t]))throw new Error("Each mappedProperty is required to be an Object");var n=Object.assign({},i,a[t]);return n[r]=e[r],f(e.groupedRings,n)})))},e.transformRotate=hr,e.transformScale=pr,e.transformTranslate=function(e,t,n,r){if(r=r||{},!C(r))throw new Error("options is invalid");var i=r.units,o=r.zTranslation,a=r.mutate;if(!e)throw new Error("geojson is required");if(void 0===t||null===t||isNaN(t))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===t&&0===o)return e;if(void 0===n||null===n||isNaN(n))throw new Error("direction is required");return t<0&&(t=-t,n=-n),!1!==a&&void 0!==a||(e=Fe(e)),O(e,(function(e){var r=V(nr(e,t,n,{units:i}));e[0]=r[0],e[1]=r[1],o&&3===e.length&&(e[2]+=o)})),e},e.lineOffset=function(e,t,n){if(n=n||{},!C(n))throw new Error("options is invalid");var r=n.units;if(!e)throw new Error("geojson is required");if(void 0===t||null===t||isNaN(t))throw new Error("distance is required");var i=J(e),o=e.properties;switch(i){case"LineString":return br(e,t,r);case"MultiLineString":var a=[];return D(e,(function(e){a.push(br(e,t,r).geometry.coordinates)})),u(a,o);default:throw new Error("geometry "+i+" is not supported")}},e.polygonize=function(e){var t=js.fromGeoJson(e);t.deleteDangles(),t.deleteCutEdges();var n=[],r=[];return t.getEdgeRings().filter((function(e){return e.isValid()})).forEach((function(e){e.isHole()?n.push(e):r.push(e)})),n.forEach((function(e){Ls.findEdgeRingContaining(e,r)&&r.push(e)})),c(r.map((function(e){return e.toPolygon()})))},e.booleanDisjoint=function(e,t){var n;return D(e,(function(e){D(t,(function(t){if(!1===n)return!1;n=function(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return!function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.coordinates,t.coordinates);case"LineString":return!xr(t,e);case"Polygon":return!Ae(e,t)}break;case"LineString":switch(t.type){case"Point":return!xr(e,t);case"LineString":return!function(e,t){return nn(e,t).features.length>0}(e,t);case"Polygon":return!Sr(t,e)}break;case"Polygon":switch(t.type){case"Point":return!Ae(t,e);case"LineString":return!Sr(e,t);case"Polygon":return!function(e,t){for(var n=0;n<e.coordinates[0].length;n++)if(Ae(e.coordinates[0][n],t))return!0;for(var r=0;r<t.coordinates[0].length;r++)if(Ae(t.coordinates[0][r],e))return!0;return!1}(t,e)}}}(e.geometry,t.geometry)}))})),n},e.booleanContains=function(e,t){var n=J(e),r=J(t),i=X(e),o=X(t),a=V(e),s=V(t);switch(n){case"Point":switch(r){case"Point":return Er(a,s);default:throw new Error("feature2 "+r+" geometry not supported")}case"MultiPoint":switch(r){case"Point":return function(e,t){var n,r=!1;for(n=0;n<e.coordinates.length;n++)if(Er(e.coordinates[n],t.coordinates)){r=!0;break}return r}(i,o);case"MultiPoint":return function(e,t){for(var n=0;n<t.coordinates.length;n++){for(var r=!1,i=0;i<e.coordinates.length;i++)if(Er(t.coordinates[n],e.coordinates[i])){r=!0;break}if(!r)return!1}return!0}(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}case"LineString":switch(r){case"Point":return En(o,i,{ignoreEndVertices:!0});case"LineString":return function(e,t){for(var n=!1,r=0;r<t.coordinates.length;r++)if(En({type:"Point",coordinates:t.coordinates[r]},e,{ignoreEndVertices:!0})&&(n=!0),!En({type:"Point",coordinates:t.coordinates[r]},e,{ignoreEndVertices:!1}))return!1;return n}(i,o);case"MultiPoint":return function(e,t){for(var n=!1,r=0;r<t.coordinates.length;r++)if(En(t.coordinates[r],e,{ignoreEndVertices:!0})&&(n=!0),!En(t.coordinates[r],e))return!1;return!!n}(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}case"Polygon":switch(r){case"Point":return Ae(o,i,{ignoreBoundary:!0});case"LineString":return function(e,t){var n=!1,r=0,i=U(e),o=U(t);if(!Cr(i,o))return!1;for(;r<t.coordinates.length-1;r++){var a=function(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}(t.coordinates[r],t.coordinates[r+1]);if(Ae({type:"Point",coordinates:a},e,{ignoreBoundary:!0})){n=!0;break}}return n}(i,o);case"Polygon":return function(e,t){var n=U(e),r=U(t);if(!Cr(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!Ae(t.coordinates[0][i],e))return!1;return!0}(i,o);case"MultiPoint":return function(e,t){for(var n=0;n<t.coordinates.length;n++)if(!Ae(t.coordinates[n],e,{ignoreBoundary:!0}))return!1;return!0}(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}},e.booleanCrosses=function(e,t){var n=J(e),r=J(t),i=X(e),o=X(t);switch(n){case"MultiPoint":switch(r){case"LineString":return kr(i,o);case"Polygon":return Tr(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}case"LineString":switch(r){case"MultiPoint":return kr(o,i);case"LineString":return function(e,t){if(nn(e,t).features.length>0)for(var n=0;n<e.coordinates.length-1;n++)for(var r=0;r<t.coordinates.length-1;r++){var i=!0;if(0!==r&&r!==t.coordinates.length-2||(i=!1),Ir(e.coordinates[n],e.coordinates[n+1],t.coordinates[r],i))return!0}return!1}(i,o);case"Polygon":return Or(i,o);default:throw new Error("feature2 "+r+" geometry not supported")}case"Polygon":switch(r){case"MultiPoint":return Tr(o,i);case"LineString":return Or(o,i);default:throw new Error("feature2 "+r+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}},e.booleanClockwise=or,e.booleanOverlap=Mr,e.booleanPointOnLine=En,e.booleanEqual=function(e,t){if(!e)throw new Error("feature1 is required");if(!t)throw new Error("feature2 is required");return J(e)===J(t)&&new Us({precision:6}).compare(et(e),et(t))},e.booleanWithin=kn,e.clone=Fe,e.cleanCoords=et,e.clustersDbscan=function(e,t,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var r=n.minPoints,i=n.units;if(K(e,"Point","Input must contain Points"),null===t||void 0===t)throw new Error("maxDistance is required");if(!(Math.sign(t)>0))throw new Error("Invalid maxDistance");if(!(void 0===r||null===r||Math.sign(r)>0))throw new Error("Invalid minPoints");e=Fe(e),r=r||3;var o=new $s.DBSCAN,a=-1;return o.run(M(e),w(t,i),r,je).forEach((function(t){a++,t.forEach((function(t){var n=e.features[t];n.properties||(n.properties={}),n.properties.cluster=a,n.properties.dbscan="core"}))})),o.noise.forEach((function(t){var n=e.features[t];n.properties||(n.properties={}),n.properties.cluster?n.properties.dbscan="edge":n.properties.dbscan="noise"})),e},e.clustersKmeans=function(e,t){if("object"!=typeof(t=t||{}))throw new Error("options is invalid");var n=t.numberOfClusters,r=t.mutate;K(e,"Point","Input must contain Points");var i=e.features.length;(n=n||Math.round(Math.sqrt(i/2)))>i&&(n=i),!1!==r&&void 0!==r||(e=Fe(e));var o=M(e),a=o.slice(0,n),s=tl(o,n,a),l={};return s.centroids.forEach((function(e,t){l[t]=e})),R(e,(function(e,t){var n=s.idxs[t];e.properties.cluster=n,e.properties.centroid=l[n]})),e},e.pointToLineDistance=pn,e.booleanParallel=function(e,t){if(!e)throw new Error("line1 is required");if(!t)throw new Error("line2 is required");if("LineString"!==Lr(e,"line1"))throw new Error("line1 must be a LineString");if("LineString"!==Lr(t,"line2"))throw new Error("line2 must be a LineString");for(var n=tn(et(e)).features,r=tn(et(t)).features,i=0;i<n.length;i++){var o=n[i].geometry.coordinates;if(!r[i])break;if(!function(e,t){var n=y(an(e[0],e[1])),r=y(an(t[0],t[1]));return n===r}(o,r[i].geometry.coordinates))return!1}return!0},e.shortestPath=function(e,n,i){if(i=i||{},!C(i))throw new Error("options is invalid");var o=i.resolution,a=i.minDistance,l=i.obstacles||c([]);if(!e)throw new Error("start is required");if(!n)throw new Error("end is required");if(o&&!S(o)||o<=0)throw new Error("options.resolution must be a number, greater than 0");if(a)throw new Error("options.minDistance is not yet implemented");var u=G(e),d=G(n);switch(e=r(u),n=r(d),J(l)){case"FeatureCollection":if(0===l.features.length)return s([u,d]);break;case"Polygon":l=c([t(X(l))]);break;default:throw new Error("invalid obstacles")}var f=l;f.features.push(e),f.features.push(n);var h=U(pr(ct(U(f)),1.15));o||(o=je([h[0],h[1]],[h[2],h[1]],i)/100),f.features.pop(),f.features.pop();for(var p=h[0],m=h[1],g=h[2],v=h[3],y=o/je([p,m],[g,m],i)*(g-p),b=o/je([p,m],[p,v],i)*(v-m),_=g-p,w=v-m,x=(_-Math.floor(_/y)*y)/2,E=[],k=[],O=[],T=[],I=1/0,A=1/0,R=v-(w-Math.floor(w/b)*b)/2,P=0;R>=m;){for(var M=[],N=[],L=p+x,D=0;L<=g;){var j=r([L,R]),F=function(e,t){for(var n=0;n<t.features.length;n++)if(Ae(e,t.features[n]))return!0;return!1}(j,l);M.push(F?0:1),N.push(L+"|"+R);var B=je(j,e);!F&&B<I&&(I=B,O={x:D,y:P});var q=je(j,n);!F&&q<A&&(A=q,T={x:D,y:P}),L+=y,D++}k.push(M),E.push(N),R-=b,P++}var z=new jr(k,{diagonal:!0}),V=z.grid[O.y][O.x],W=z.grid[T.y][T.x],H=[u];return nl.search(z,V,W).forEach((function(e){var t=E[e.x][e.y].split("|");H.push([+t[0],+t[1]])})),H.push(d),et(s(H))},e.voronoi=function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.bbox||[-180,-85,180,85];if(!e)throw new Error("points is required");if(!Array.isArray(n))throw new Error("bbox is invalid");return K(e,"Point","points"),c(hl().x((function(e){return e.geometry.coordinates[0]})).y((function(e){return e.geometry.coordinates[1]})).extent([[n[0],n[1]],[n[2],n[3]]]).polygons(e.features).map(di))},e.ellipse=fi,e.centerMean=pi,e.centerMedian=function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.counter||10;if(!S(n))throw new Error("counter must be a number");var r=t.weight,i=pi(e,{weight:t.weight}),o=c([]);return R(e,(function(e){o.features.push(gt(e,{weight:e.properties[r]}))})),o.properties={tolerance:t.tolerance,medianCandidates:[]},mi(i.geometry.coordinates,[0,0],o,n)},e.standardDeviationalEllipse=function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.steps||64,r=t.weight,i=t.properties||{};if(!S(n))throw new Error("steps must be a number");if(!C(i))throw new Error("properties must be a number");var o=M(e).length,a=pi(e,{weight:r}),s=0,l=0,u=0;R(e,(function(e){var t=e.properties[r]||1,n=gi(V(e),V(a));s+=Math.pow(n.x,2)*t,l+=Math.pow(n.y,2)*t,u+=n.x*n.y*t}));var d=s-l,f=Math.sqrt(Math.pow(d,2)+4*Math.pow(u,2)),h=2*u,p=Math.atan((d+f)/h),m=180*p/Math.PI,g=0,v=0,y=0;R(e,(function(e){var t=e.properties[r]||1,n=gi(V(e),V(a));g+=Math.pow(n.x*Math.cos(p)-n.y*Math.sin(p),2)*t,v+=Math.pow(n.x*Math.sin(p)+n.y*Math.cos(p),2)*t,y+=t}));var b=Math.sqrt(2*g/y),_=Math.sqrt(2*v/y),w=fi(a,b,_,{units:"degrees",angle:m,steps:n,properties:i}),x=Pe(e,c([w])),E={meanCenterCoordinates:V(a),semiMajorAxis:b,semiMinorAxis:_,numberOfFeatures:o,angle:m,percentageWithinEllipse:100*M(x).length/o};return w.properties.standardDeviationalEllipse=E,w},e.difference=function(e,n){var r=X(e),i=X(n),o=e.properties||{};if(r=Vi(r),i=Vi(i),!r)return null;if(!i)return t(r,o);var a=new Su,s=a.read(r),l=a.read(i),c=kh.difference(s,l);return c.isEmpty()?null:t((new Cu).write(c),o)},e.buffer=function(e,t,n){var r=(n=n||{}).units,i=n.steps||64;if(!e)throw new Error("geojson is required");if("object"!=typeof n)throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be an number");if(void 0===t)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");i=i||64,r=r||"kilometers";var o=[];switch(e.type){case"GeometryCollection":return N(e,(function(e){var n=So(e,t,r,i);n&&o.push(n)})),c(o);case"FeatureCollection":return R(e,(function(e){var n=So(e,t,r,i);n&&R(n,(function(e){e&&o.push(e)}))})),c(o)}return So(e,t,r,i)},e.union=To,e.intersect=Io,e.dissolve=function(e,t){if(t=t||{},!C(t))throw new Error("options is invalid");var n=t.propertyName;K(e,"Polygon","dissolve");var r=Fe(e),i=r.features,o=[];i.forEach((function(e,t){e.properties.origIndexPosition=t}));var a=Qt();for(var l in a.load(r),i){var c=i[l],u=!1;if(a.search(c).features.forEach((function(e){c=i[l];var t=e.properties.origIndexPosition;if(o.length>0&&0!==t)if(t>o[o.length-1])t-=o.length;else{var r=Ao(t,o);0!==r&&(t-=r)}if(t!==+l){var d=i[t];d&&c&&(void 0!==n&&d.properties[n]!==c.properties[n]||Mr(c,d)&&function(e,t){var n=s(M(e)),r=s(M(t));return nn(n,r).features.length>0}(c,d)&&(i[l]=To(c,d),o.push(e.properties.origIndexPosition),o.sort((function(e,t){return e-t})),a.remove(e),i.splice(t,1),c.properties.origIndexPosition=l,a.remove(c,(function(e,t){return e.properties.origIndexPosition===t.properties.origIndexPosition})),u=!0))}})),u){if(!c)continue;c.properties.origIndexPosition=l,a.insert(c),l--}}return i.forEach((function(e){delete e.properties.origIndexPosition,delete e.bbox})),r},e.hexGrid=Ro,e.mask=function(e,t){var n=function(e){return o(e&&e.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}(t),r=function(e){var t=[],n=[];return D(e,(function(e){var r=e.geometry.coordinates,i=r[0],a=r.slice(1);t.push(o([i])),a.forEach((function(e){n.push(o([e]))}))})),[c(t),c(n)]}(e),i=r[0],a=r[1];return function(e,t,n){var r=[];return r.push(e.geometry.coordinates[0]),D(t,(function(e){r.push(e.geometry.coordinates[0])})),D(n,(function(e){r.push(e.geometry.coordinates[0])})),o(r)}(n,i=Po(i),a=Po(a))},e.squareGrid=No,e.triangleGrid=Lo,e.interpolate=function(e,t,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var r=n.gridType,i=n.property,o=n.weight;if(!e)throw new Error("points is required");if(K(e,"Point","input must contain Points"),!t)throw new Error("cellSize is required");if(void 0!==o&&"number"!=typeof o)throw new Error("weight must be a number");i=i||"elevation",r=r||"square",o=o||1;var a,s=U(e);switch(r){case"point":case"points":a=In(s,t,n);break;case"square":case"squares":a=No(s,t,n);break;case"hex":case"hexes":a=Ro(s,t,n);break;case"triangle":case"triangles":a=Lo(s,t,n);break;default:throw new Error("invalid gridType")}var l=[];return R(a,(function(t){var a=0,s=0;R(e,(function(e){var l,c=je("point"===r?t:gt(t),e,n);if(void 0!==i&&(l=e.properties[i]),void 0===l&&(l=e.geometry.coordinates[2]),void 0===l)throw new Error("zValue is missing");0===c&&(a=l);var u=1/Math.pow(c,o);s+=u,a+=u*l}));var c=Fe(t);c.properties[i]=a/s,l.push(c)})),c(l)},e.pointOnSurface=gn,e.polygonToLineString=qn,e.lineStringToPolygon=Un,e.inside=Ae,e.within=Pe,e.bezier=lt,e.nearest=Dt,e.pointOnLine=on,e.lineDistance=Sn,e.radians2degrees=b,e.degrees2radians=_,e.distanceToDegrees=v,e.distanceToRadians=g,e.radiansToDistance=m,e.bearingToAngle=y,e.convertDistance=w,e.toMercator=cn,e.toWgs84=un,e.randomPosition=vi,e.randomPoint=yi,e.randomPolygon=bi,e.randomLineString=_i,e.getCluster=xi,e.clusterEach=Si,e.clusterReduce=Ci,e.createBins=Ei,e.applyFilter=ki,e.propertiesContainsFilter=Oi,e.filterProperties=Ti,e.earthRadius=Do,e.factors=jo,e.unitsFactors=Fo,e.areaFactors=Bo,e.feature=t,e.geometry=n,e.point=r,e.points=i,e.polygon=o,e.polygons=a,e.lineString=s,e.lineStrings=l,e.featureCollection=c,e.multiLineString=u,e.multiPoint=d,e.multiPolygon=f,e.geometryCollection=h,e.round=p,e.radiansToLength=m,e.lengthToRadians=g,e.lengthToDegrees=v,e.bearingToAzimuth=y,e.radiansToDegrees=b,e.degreesToRadians=_,e.convertLength=w,e.convertArea=x,e.isNumber=S,e.isObject=C,e.validateBBox=E,e.validateId=k,e.getCoord=G,e.getCoords=V,e.containsNumber=W,e.geojsonType=H,e.featureOf=$,e.collectionOf=K,e.getGeom=X,e.getGeomType=Y,e.getType=J,e.coordEach=O,e.coordReduce=T,e.propEach=I,e.propReduce=A,e.featureEach=R,e.featureReduce=P,e.coordAll=M,e.geomEach=N,e.geomReduce=L,e.flattenEach=D,e.flattenReduce=j,e.segmentEach=F,e.segmentReduce=B,e.lineEach=q,e.lineReduce=z,Object.defineProperty(e,"__esModule",{value:!0})}))},5968:function(e,t,n){"use strict";n("8ce1")},"597b":function(e,t,n){"use strict";n("6f39")},"59a0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-drawer",{attrs:{title:"字典列表",width:e.screenWidth,visible:e.visible},on:{close:e.onClose}},[n("div",{style:{padding:"10px",border:"1px solid #e9e9e9",background:"#fff"}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline",form:e.form}},[n("a-row",{attrs:{gutter:10}},[n("a-col",{attrs:{md:8,sm:12}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{staticStyle:{width:"120px"},attrs:{placeholder:"请输入名称"},model:{value:e.queryParam.itemText,callback:function(t){e.$set(e.queryParam,"itemText",t)},expression:"queryParam.itemText"}})],1)],1),n("a-col",{attrs:{md:9,sm:24}},[n("a-form-item",{staticStyle:{width:"170px"},attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{attrs:{placeholder:"请选择"},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("正常")]),n("a-select-option",{attrs:{value:"0"}},[e._v("禁用")])],1)],1)],1),n("a-col",{attrs:{md:7,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left"}},[n("a-button",{attrs:{type:"primary"},on:{click:e.searchQuery}},[e._v("搜索")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1),n("a-row",[n("a-col",{attrs:{md:2,sm:24}},[n("a-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1)],1)],1),n("div",[n("a-table",{ref:"table",attrs:{rowKey:"id",size:"middle",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])})],1)])]),n("dict-item-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("88bc"),a=n.n(o),s=n("ca00"),l=n("8144"),c=n("b65a"),u={name:"DictItemList",mixins:[c["a"]],components:{DictItemModal:l["default"]},data:function(){return{columns:[{title:"名称",align:"center",dataIndex:"itemText"},{title:"数据值",align:"center",dataIndex:"itemValue"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],queryParam:{dictId:"",dictName:"",itemText:"",delFlag:"1",status:[]},title:"操作",visible:!1,screenWidth:800,model:{},dictId:"",status:1,labelCol:{xs:{span:5},sm:{span:5}},wrapperCol:{xs:{span:12},sm:{span:12}},form:this.$form.createForm(this),validatorRules:{itemText:{rules:[{required:!0,message:"请输入名称!"}]},itemValue:{rules:[{required:!0,message:"请输入数据值!"}]}},url:{list:"/sys/dictItem/list",delete:"/sys/dictItem/delete",deleteBatch:"/sys/dictItem/deleteBatch"}}},created:function(){this.resetScreenSize()},methods:{add:function(e){this.dictId=e,this.edit({})},edit:function(e){var t=this;e.id&&(this.dictId=e.id),this.queryParam={},this.form.resetFields(),this.model=Object.assign({},e),this.model.dictId=this.dictId,this.model.status=this.status,this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(a()(t.model,"itemText","itemValue"))})),this.loadData()},getQueryParams:function(){var e=Object.assign({},this.queryParam);return e.dictId=this.dictId,e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(s["b"])(e)},handleAdd:function(){this.$refs.modalForm.add(this.dictId),this.$refs.modalForm.title="新增"},showDrawer:function(){this.visible=!0},onClose:function(){this.visible=!1,this.form.resetFields(),this.dataSource=[]},resetScreenSize:function(){var e=document.body.clientWidth;this.screenWidth=e<600?e:600}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"5f259f91",null);t["default"]=h.exports},"5aa8":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("a-card",{attrs:{bordered:!1}},[r("div",{staticClass:"table-page-search-wrapper"},[r("a-form",{attrs:{layout:"inline"}},[r("a-row",{attrs:{gutter:48}},[r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"角色ID"}},[r("a-input",{attrs:{placeholder:"请输入"}})],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"状态"}},[r("a-select",{attrs:{placeholder:"请选择","default-value":"0"}},[r("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),r("a-select-option",{attrs:{value:"1"}},[t._v("关闭")]),r("a-select-option",{attrs:{value:"2"}},[t._v("运行中")])],1)],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("span",{staticClass:"table-page-search-submitButtons"},[r("a-button",{attrs:{type:"primary"}},[t._v("查询")]),r("a-button",{staticStyle:{"margin-left":"8px"}},[t._v("重置")])],1)])],1)],1)],1),r("s-table",{attrs:{columns:t.columns,data:t.loadData},scopedSlots:t._u([{key:"actions",fn:function(e,n){return r("span",{},t._l(n.actionList,(function(e,n){return r("a-tag",{key:n},[t._v(t._s(e.describe))])})),1)}},{key:"status",fn:function(e){return r("span",{},[t._v("\n      "+t._s(t._f("statusFilter")(e))+"\n    ")])}},{key:"action",fn:function(e,n){return r("span",{},[r("a",{on:{click:function(e){return t.handleEdit(n)}}},[t._v("编辑")]),r("a-divider",{attrs:{type:"vertical"}}),r("a-dropdown",[r("a",{staticClass:"ant-dropdown-link"},[t._v("\n          更多 "),r("a-icon",{attrs:{type:"down"}})],1),r("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("详情")])]),r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("禁用")])]),r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)],1)],1)}}])}),r("a-modal",{attrs:{title:"操作",width:800},on:{ok:t.handleOk},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[r("a-form",{attrs:{autoFormCreate:function(t){e.form=t}}},[r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"唯一识别码",hasFeedback:"",validateStatus:"success"}},[r("a-input",{attrs:{placeholder:"唯一识别码",id:"no",disabled:"disabled"},model:{value:t.mdl.id,callback:function(e){t.$set(t.mdl,"id",e)},expression:"mdl.id"}})],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"权限名称",hasFeedback:"",validateStatus:"success"}},[r("a-input",{attrs:{placeholder:"起一个名字",id:"permission_name"},model:{value:t.mdl.name,callback:function(e){t.$set(t.mdl,"name",e)},expression:"mdl.name"}})],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"状态",hasFeedback:"",validateStatus:"warning"}},[r("a-select",{model:{value:t.mdl.status,callback:function(e){t.$set(t.mdl,"status",e)},expression:"mdl.status"}},[r("a-select-option",{attrs:{value:"1"}},[t._v("正常")]),r("a-select-option",{attrs:{value:"2"}},[t._v("禁用")])],1)],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"描述",hasFeedback:""}},[r("a-textarea",{attrs:{rows:5,placeholder:"...",id:"describe"},model:{value:t.mdl.describe,callback:function(e){t.$set(t.mdl,"describe",e)},expression:"mdl.describe"}})],1),r("a-divider"),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"赋予权限",hasFeedback:""}},[r("a-select",{staticStyle:{width:"100%"},attrs:{mode:"multiple",allowClear:!0},model:{value:t.mdl.actions,callback:function(e){t.$set(t.mdl,"actions",e)},expression:"mdl.actions"}},t._l(t.permissionList,(function(e,n){return r("a-select-option",{key:n,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1)],1)],1)],1)},i=[],o=n("e8c4"),a={name:"TableList",components:{STable:o["a"]},data:function(){var e=this;return{description:"列表使用场景:后台管理中的权限管理以及角色管理,可用于基于 RBAC 设计的角色权限控制,颗粒度细到每一个操作类型。",visible:!1,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},form:null,mdl:{},advanced:!1,queryParam:{},columns:[{title:"唯一识别码",dataIndex:"id"},{title:"权限名称",dataIndex:"name"},{title:"可操作权限",dataIndex:"actions",scopedSlots:{customRender:"actions"}},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"操作",width:"150px",dataIndex:"action",scopedSlots:{customRender:"action"}}],permissionList:null,loadData:function(t){return e.$http.get("/api/permission",{params:Object.assign(t,e.queryParam)}).then((function(e){var t=e.result;return t.data.map((function(e){return e.actionList=JSON.parse(e.actionData),e})),t}))},selectedRowKeys:[],selectedRows:[]}},filters:{statusFilter:function(e){var t={1:"正常",2:"禁用"};return t[e]}},created:function(){this.loadPermissionList()},methods:{loadPermissionList:function(){var e=this;new Promise((function(e){var t=[{label:"新增",value:"add",defaultChecked:!1},{label:"查询",value:"get",defaultChecked:!1},{label:"修改",value:"update",defaultChecked:!1},{label:"列表",value:"query",defaultChecked:!1},{label:"删除",value:"delete",defaultChecked:!1},{label:"导入",value:"import",defaultChecked:!1},{label:"导出",value:"export",defaultChecked:!1}];setTimeout(e(t),1500)})).then((function(t){e.permissionList=t}))},handleEdit:function(e){this.mdl=Object.assign({},e),console.log(this.mdl),this.visible=!0},handleOk:function(){},onChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t},toggleAdvanced:function(){this.advanced=!this.advanced}},watch:{}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},"5ab0":function(e,t,n){var r=n("2ace"),i=n("f0e0"),o=n("9ba1"),a=n("9c04"),s=n("b0d2"),l=n("510e"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l=u(n),l.source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"5ac7":function(e,t,n){},"5b1a":function(e,t,n){var r=n("4b0b");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"5bac":function(e,t,n){"use strict";n("836a")},"5bc0":function(e,t,n){},"5bc3":function(e,t,n){"use strict";n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return k}));var r=n("521b"),i=n("f623"),o=n("9abc"),a=n("9769"),s=n("0af5"),l=n("abb7"),c=n("1c48"),u=n("bb6c"),d=n("b589"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){function t(t,n){var r=e.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return f(t,e),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(s["e"])(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.getArea=function(){return Object(d["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,r["a"].XY)},t.prototype.getType=function(){return i["a"].LINEAR_RING},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l["b"])(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o["a"]),p=h,m=n("f403"),g=n("9f5e"),v=n("0a9d"),y=n("c560"),b=n("4d98"),_=n("25f1"),w=n("7fc9"),x=(n("790a"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),S=function(e){function t(t,n,r){var i=e.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,t),i.ends_=r):i.setCoordinates(t,n),i}return x(t,e),t.prototype.appendLinearRing=function(e){this.flatCoordinates?Object(g["c"])(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(s["e"])(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(_["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)},t.prototype.getArea=function(){return Object(d["b"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(b["c"])(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,Object(u["b"])(t,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=Object(s["x"])(this.getExtent());this.flatInteriorPoint_=Object(v["a"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new m["a"](this.getFlatInteriorPoint(),r["a"].XYM)},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new p(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new p(t.slice(i,s),e);r.push(l),i=s}return r},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(b["a"])(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(b["c"])(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],i=[];return n.length=Object(c["c"])(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,i),new t(n,r["a"].XY,i)},t.prototype.getType=function(){return i["a"].POLYGON},t.prototype.intersectsExtent=function(e){return Object(y["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(l["c"])(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(o["a"]);t["a"]=S;function C(e){var t=e[0],n=e[1],i=e[2],o=e[3],a=[t,n,t,o,i,o,i,n,t,n];return new S(a,r["a"].XY,[a.length])}function E(e,t,n){for(var r=t||32,i=e.getStride(),o=e.getLayout(),a=e.getCenter(),s=i*(r+1),l=new Array(s),c=0;c<s;c+=i){l[c]=0,l[c+1]=0;for(var u=2;u<i;u++)l[c+u]=a[u]}var d=[l.length],f=new S(l,o,d);return k(f,a,e.getRadius(),n),f}function k(e,t,n,r){for(var i=e.getFlatCoordinates(),o=e.getStride(),a=i.length/o-1,s=r||0,l=0;l<=a;++l){var c=l*o,u=s+2*Object(w["e"])(l,a)*Math.PI/a;i[c]=t[0]+n*Math.cos(u),i[c+1]=t[1]+n*Math.sin(u)}e.changed()}},"5be5":function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;function n(e){var n=t(e);return n&&!!n.isDetectable}function r(e){t(e).isDetectable=!0}function i(e){return!!t(e).busy}function o(e,n){t(e).busy=!!n}return{isDetectable:n,markAsDetectable:r,isBusy:i,markBusy:o}}},"5bef":function(e,t,n){(function(e){e(n("56b3"),n("f9d4"),n("7b00"),n("d69f"))})((function(e){"use strict";e.defineMode("pug",(function(t){var n="keyword",r="meta",i="builtin",o="qualifier",a={"{":"}","(":")","[":"]"},s=e.getMode(t,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(s),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function c(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=s.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}function u(e,t){if(t.javaScriptArguments){if(0===t.javaScriptArgumentsDepth&&"("!==e.peek())return void(t.javaScriptArguments=!1);if("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth)return void(t.javaScriptArguments=!1);var n=s.token(e,t.jsState);return n||!0}}function d(e){if(e.match(/^yield\b/))return"keyword"}function f(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return r}function h(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function p(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return s.token(e,t.jsState)||!0}}function m(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}function g(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}function v(e){if(e.match(/^default\b/))return n}function y(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",n}function b(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",n}function _(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",n}function w(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",n}function x(e,t){if(e.match(/^include\b/))return t.restOfLine="string",n}function S(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,n}function C(e,t){if(t.isIncludeFiltered){var n=M(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}function E(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}function k(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match("+#{",!1)?(e.next(),t.mixinCallAfter=!0,h(e,t)):void 0}function O(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}function T(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}function I(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}function A(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){while(!e.match(/^ in\b/,!1)&&e.next());return"variable"}}}function R(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}function P(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}function M(n,r){var i;if(n.match(/^:([\w\-]+)/))return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"===typeof i&&(i=e.getMode(t,i)),H(n,r,i),"atom"}function N(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}function L(e){if(e.match(/^#([\w-]+)/))return i}function D(e){if(e.match(/^\.([\w-]+)/))return o}function j(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}function F(t,n){if(n.isAttrs){if(a[t.peek()]&&n.attrsNest.push(a[t.peek()]),n.attrsNest[n.attrsNest.length-1]===t.peek())n.attrsNest.pop();else if(t.eat(")"))return n.isAttrs=!1,"punctuation";if(n.inAttributeName&&t.match(/^[^=,\)!]+/))return"="!==t.peek()&&"!"!==t.peek()||(n.inAttributeName=!1,n.jsState=e.startState(s),"script"===n.lastTag&&"type"===t.current().trim().toLowerCase()?n.attributeIsType=!0:n.attributeIsType=!1),"attribute";var r=s.token(t,n.jsState);if(n.attributeIsType&&"string"===r&&(n.scriptType=t.current().toString()),0===n.attrsNest.length&&("string"===r||"variable"===r||"keyword"===r))try{return Function("","var x "+n.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),n.inAttributeName=!0,n.attrValue="",t.backUp(t.current().length),F(t,n)}catch(i){}return n.attrValue+=t.current(),r||!0}}function B(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}function q(e){if(e.sol()&&e.eatSpace())return"indent"}function z(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}function U(e){if(e.match(/^: */))return"colon"}function G(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(H(e,t,"htmlmixed"),t.innerModeForLine=!0,$(e,t,!0)):void 0}function V(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),H(e,t,n),"dot"}}function W(e){return e.next(),null}function H(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function $(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||(n.innerState=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{}),t.hideFirstChars(n.indentOf+2,(function(){return n.innerMode.token(t,n.innerState)||!0}))):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}function K(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}function X(){return new l}function Y(e){return e.copy()}function J(e,t){var n=$(e,t)||K(e,t)||p(e,t)||C(e,t)||A(e,t)||F(e,t)||c(e,t)||u(e,t)||O(e,t)||d(e)||f(e)||h(e,t)||m(e,t)||g(e,t)||v(e)||y(e,t)||b(e,t)||_(e,t)||w(e,t)||x(e,t)||S(e,t)||E(e,t)||k(e,t)||T(e,t)||I(e,t)||R(e,t)||P(e,t)||M(e,t)||N(e,t)||L(e)||D(e)||j(e,t)||B(e,t)||q(e)||G(e,t)||z(e,t)||U(e)||V(e,t)||W(e);return!0===n?null:n}return l.prototype.copy=function(){var t=new l;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(s,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:X,copyState:Y,token:J}}),"javascript","css","htmlmixed"),e.defineMIME("text/x-pug","pug"),e.defineMIME("text/x-jade","pug")}))},"5c38":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return h}));var r=n("92fa5"),i=n("7fc9"),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(e){return"string"===typeof e?e:h(e)}function l(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var n=getComputedStyle(t).color;return document.body.removeChild(t),n}return""}var c=function(){var e=1024,t={},n=0;return function(r){var i;if(t.hasOwnProperty(r))i=t[r];else{if(n>=e){var o=0;for(var a in t)0===(3&o++)&&(delete t[a],--n)}i=d(r),t[r]=i,++n}return i}}();function u(e){return Array.isArray(e)?e:c(e)}function d(e){var t,n,i,s,c;if(a.exec(e)&&(e=l(e)),o.exec(e)){var u=e.length-1,d=void 0;d=u<=4?1:2;var h=4===u||8===u;t=parseInt(e.substr(1+0*d,d),16),n=parseInt(e.substr(1+1*d,d),16),i=parseInt(e.substr(1+2*d,d),16),s=h?parseInt(e.substr(1+3*d,d),16):255,1==d&&(t=(t<<4)+t,n=(n<<4)+n,i=(i<<4)+i,h&&(s=(s<<4)+s)),c=[t,n,i,s/255]}else 0==e.indexOf("rgba(")?(c=e.slice(5,-1).split(",").map(Number),f(c)):0==e.indexOf("rgb(")?(c=e.slice(4,-1).split(",").map(Number),c.push(1),f(c)):Object(r["a"])(!1,14);return c}function f(e){return e[0]=Object(i["a"])(e[0]+.5|0,0,255),e[1]=Object(i["a"])(e[1]+.5|0,0,255),e[2]=Object(i["a"])(e[2]+.5|0,0,255),e[3]=Object(i["a"])(e[3],0,1),e}function h(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];r!=(0|r)&&(r=r+.5|0);var i=void 0===e[3]?1:e[3];return"rgba("+t+","+n+","+r+","+i+")"}},"5c5b":function(e,t,n){var r,i=n("5b1a"),o=n("a11e"),a=n("6339"),s=n("4a43"),l=n("6d40"),c=n("99ee"),u=n("493f"),d=">",f="<",h="prototype",p="script",m=u("IE_PROTO"),g=function(){},v=function(e){return f+p+d+e+f+"/"+p+d},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=r?y(r):b();var e=a.length;while(e--)delete _[h][a[e]];return _()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[h]=i(e),n=new g,g[h]=null,n[m]=e):n=_(),void 0===t?n:o(n,t)}},"5c70":function(e,t,n){},"5d1e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{top:"0px"},attrs:{title:"分屏",width:e.modalWidth,visible:e.visible,bodyStyle:e.bodyStyle,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("split-pane",{attrs:{"min-percent":20,"default-percent":50,split:"vertical"}},[n("template",{slot:"paneL"},[n("split-panel-a")],1),n("template",{slot:"paneR"},[n("split-panel-b")],1)],2)],1)},i=[],o=n("19ab"),a=n.n(o),s=n("54d3"),l=n("9606"),c={name:"SplitPanelModal",components:{splitPane:a.a,SplitPanelA:s["default"],SplitPanelB:l["default"]},data:function(){return{visible:!1,bodyStyle:{padding:"0",height:window.innerHeight-150+"px"},modalWidth:800}},created:function(){this.modalWidth=window.innerWidth-0},methods:{show:function(){this.visible=!0},handleOk:function(){},handleCancel:function(){this.visible=!1}}},u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,"79db68e4",null);t["default"]=f.exports},"5d37":function(e,t,n){var r,i,o,a=n("2ace"),s=n("791c"),l=n("99ca"),c=n("6d40"),u=n("99ee"),d=n("1a02"),f=n("2062"),h=a.location,p=a.setImmediate,m=a.clearImmediate,g=a.process,v=a.MessageChannel,y=a.Dispatch,b=0,_={},w="onreadystatechange",x=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},S=function(e){return function(){x(e)}},C=function(e){x(e.data)},E=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&m||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete _[e]},f?r=function(e){g.nextTick(S(e))}:y&&y.now?r=function(e){y.now(S(e))}:v&&!d?(i=new v,o=i.port2,i.port1.onmessage=C,r=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&h&&"file:"!==h.protocol&&!s(E)?(r=E,a.addEventListener("message",C,!1)):r=w in u("script")?function(e){c.appendChild(u("script"))[w]=function(){c.removeChild(this),x(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:p,clear:m}},"5d50":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("b177"),a={name:"emergency_risk_index_dept",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("5bac"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"d099abd0",null);t["default"]=c.exports},"5da3":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5e4c":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("contextmenu",(function(){console.warn("Context menu plugin is now built in to the core editor, please remove it from your editor configuration")}))}t()})()},"5e9e":function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return l}));var o=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],a=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function s(e,t,n,i,o){if("string"===typeof e&&(e=document.getElementById(e)),!e||"object"!==r(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=e.getContext("2d");try{return a.getImageData(t,n,i,o)}catch(s){throw new Error("unable to access image data: "+s)}}function l(e,t,n,r,i,o){if(!(isNaN(o)||o<1)){o|=0;var a=s(e,t,n,r,i);a=c(a,t,n,r,i,o),e.getContext("2d").putImageData(a,t,n)}}function c(e,t,n,r,i,s){for(var l,c=e.data,d=2*s+1,f=r-1,h=i-1,p=s+1,m=p*(p+1)/2,g=new u,v=g,y=1;y<d;y++)v=v.next=new u,y===p&&(l=v);v.next=g;for(var b=null,_=null,w=0,x=0,S=o[s],C=a[s],E=0;E<i;E++){v=g;for(var k=c[x],O=c[x+1],T=c[x+2],I=c[x+3],A=0;A<p;A++)v.r=k,v.g=O,v.b=T,v.a=I,v=v.next;for(var R=0,P=0,M=0,N=0,L=p*k,D=p*O,j=p*T,F=p*I,B=m*k,q=m*O,z=m*T,U=m*I,G=1;G<p;G++){var V=x+((f<G?f:G)<<2),W=c[V],H=c[V+1],$=c[V+2],K=c[V+3],X=p-G;B+=(v.r=W)*X,q+=(v.g=H)*X,z+=(v.b=$)*X,U+=(v.a=K)*X,R+=W,P+=H,M+=$,N+=K,v=v.next}b=g,_=l;for(var Y=0;Y<r;Y++){var J=U*S>>C;if(c[x+3]=J,0!==J){var Q=255/J;c[x]=(B*S>>C)*Q,c[x+1]=(q*S>>C)*Q,c[x+2]=(z*S>>C)*Q}else c[x]=c[x+1]=c[x+2]=0;B-=L,q-=D,z-=j,U-=F,L-=b.r,D-=b.g,j-=b.b,F-=b.a;var Z=Y+s+1;Z=w+(Z<f?Z:f)<<2,R+=b.r=c[Z],P+=b.g=c[Z+1],M+=b.b=c[Z+2],N+=b.a=c[Z+3],B+=R,q+=P,z+=M,U+=N,b=b.next;var ee=_,te=ee.r,ne=ee.g,re=ee.b,ie=ee.a;L+=te,D+=ne,j+=re,F+=ie,R-=te,P-=ne,M-=re,N-=ie,_=_.next,x+=4}w+=r}for(var oe=0;oe<r;oe++){x=oe<<2;var ae=c[x],se=c[x+1],le=c[x+2],ce=c[x+3],ue=p*ae,de=p*se,fe=p*le,he=p*ce,pe=m*ae,me=m*se,ge=m*le,ve=m*ce;v=g;for(var ye=0;ye<p;ye++)v.r=ae,v.g=se,v.b=le,v.a=ce,v=v.next;for(var be=r,_e=0,we=0,xe=0,Se=0,Ce=1;Ce<=s;Ce++){x=be+oe<<2;var Ee=p-Ce;pe+=(v.r=ae=c[x])*Ee,me+=(v.g=se=c[x+1])*Ee,ge+=(v.b=le=c[x+2])*Ee,ve+=(v.a=ce=c[x+3])*Ee,Se+=ae,_e+=se,we+=le,xe+=ce,v=v.next,Ce<h&&(be+=r)}x=oe,b=g,_=l;for(var ke=0;ke<i;ke++){var Oe=x<<2;c[Oe+3]=ce=ve*S>>C,ce>0?(ce=255/ce,c[Oe]=(pe*S>>C)*ce,c[Oe+1]=(me*S>>C)*ce,c[Oe+2]=(ge*S>>C)*ce):c[Oe]=c[Oe+1]=c[Oe+2]=0,pe-=ue,me-=de,ge-=fe,ve-=he,ue-=b.r,de-=b.g,fe-=b.b,he-=b.a,Oe=oe+((Oe=ke+p)<h?Oe:h)*r<<2,pe+=Se+=b.r=c[Oe],me+=_e+=b.g=c[Oe+1],ge+=we+=b.b=c[Oe+2],ve+=xe+=b.a=c[Oe+3],b=b.next,ue+=ae=_.r,de+=se=_.g,fe+=le=_.b,he+=ce=_.a,Se-=ae,_e-=se,we-=le,xe-=ce,_=_.next,x+=r}}return e}var u=function e(){i(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}},"5ea7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,destroyOnClose:!0,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"id",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["id",e.validatorRules.id],expression:"[ 'id', validatorRules.id]"}],attrs:{disabled:!0,placeholder:""}})],1),n("a-form-item",{attrs:{label:"父级节点",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pid",e.validatorRules.pid],expression:"['pid', validatorRules.pid]"}],ref:"treeSelect",attrs:{placeholder:"请选择父级节点",dict:"wlgz_video_dictionary,name,id",pidField:"pid"},on:{change:e.onSelectedDrug}})],1),n("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入名称"}})],1),n("a-form-item",{attrs:{label:"区县",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["code",e.validatorRules.code],expression:"[ 'code', validatorRules.code]"}],attrs:{placeholder:"请选择区县",disabled:e.isSHow()}},[n("a-select-option",{attrs:{value:"3303"}},[e._v("温州市")]),n("a-select-option",{attrs:{value:"330302"}},[e._v("鹿城区")]),n("a-select-option",{attrs:{value:"330382"}},[e._v("乐清市")]),n("a-select-option",{attrs:{value:"330381"}},[e._v("瑞安市")]),n("a-select-option",{attrs:{value:"330324"}},[e._v("永嘉县")]),n("a-select-option",{attrs:{value:"330328"}},[e._v("文成县")]),n("a-select-option",{attrs:{value:"330326"}},[e._v("平阳县")]),n("a-select-option",{attrs:{value:"330329"}},[e._v("泰顺县")]),n("a-select-option",{attrs:{value:"330303"}},[e._v("龙湾区")]),n("a-select-option",{attrs:{value:"330305"}},[e._v("洞头区")]),n("a-select-option",{attrs:{value:"330327"}},[e._v("苍南县")]),n("a-select-option",{attrs:{value:"330372"}},[e._v("瓯江口")]),n("a-select-option",{attrs:{value:"330304"}},[e._v("瓯海区")]),n("a-select-option",{attrs:{value:"330383"}},[e._v("龙港市")]),n("a-select-option",{attrs:{value:"330371"}},[e._v("经开区")]),n("a-select-option",{attrs:{value:"330301"}},[e._v("市辖区")])],1)],1),e.showImport?n("a-form-item",{attrs:{label:"是否默认展开",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["isImport",e.validatorRules.isImport],expression:"['isImport',validatorRules.isImport]"}],attrs:{placeholder:"是否默认展开"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("是")]),n("a-select-option",{attrs:{value:"0"}},[e._v("否")])],1)],1):e._e(),n("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",e.validatorRules.sort],expression:"[ 'sort', validatorRules.sort]"}],attrs:{placeholder:"请输入序号"}})],1),n("a-form-item",{attrs:{label:"icon(40*40)",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-upload",{staticClass:"avatar-uploader",attrs:{listType:"picture-card",showUploadList:!1,action:e.uploadAction,data:{isup:1},headers:e.headers,beforeUpload:e.beforeUpload},on:{change:e.handleChange}},[null!=this.model.icon?n("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:e.getAvatarView(),alt:"icon"}}):n("div",[n("a-icon",{attrs:{type:e.uploadLoading?"loading":"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v("上传")])],1)])],1),n("a-form-item",{attrs:{label:"icon(40*40)高亮",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-upload",{staticClass:"avatar-uploader",attrs:{listType:"picture-card",showUploadList:!1,action:e.uploadAction,data:{isup:1},headers:e.headers,beforeUpload:e.beforeUpload},on:{change:e.handleHighChange}},[null!=this.model.highIcon?n("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:e.getHighAvatarView(),alt:"icon"}}):n("div",[n("a-icon",{attrs:{type:e.highUploadLoading?"loading":"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v("上传")])],1)])],1)],1)],1),n("Select-WlVideo-Modal",{ref:"selectWlVideoModal",attrs:{selectedRowKeys_p:e.videoIds,selectedRows_p:e.selectedRows},on:{selectFinished:e.selectOK}})],1)},i=[],o=(n("28a5"),n("7f7f"),n("0fea")),a=n("88bc"),s=n.n(a),l=n("61d0"),c=(n("8c8b"),n("b098")),u=n("4ec3"),d=n("4a0f"),f={name:"WlgzVideoDictionaryModal",components:{JVideoTreeSelect:l["default"],JTreeSelect:c["default"],getUserInfo:u["D"],SelectWlVideoModal:d["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},item:{},videoIds:[],videoNames:[],selectedRows:[],highUploadLoading:!1,uploadLoading:!1,district:"",labelCol:{xs:{span:24},sm:{span:5}},showImport:!1,headers:{},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{pid:{},name:{required:!0,message:"请输入名称"},url:{},code:{required:!0,message:"请输入名称编码"},sign:{},sort:{required:!1,message:"请输入排序"},icon:{},highIcon:{},id:{}},url:{fileUpload:"/sys/common/upload",add:"/sys/wlgzvideodictionary/add",edit:"/sys/wlgzvideodictionary/edit",uploadAction:"/sys/common/upload",imgerver:"/sys/common/view"},expandedRowKeys:[],pidField:"pid",fileList:[]}},created:function(){this.loadData()},computed:{uploadAction:function(){return this.url.fileUpload}},methods:{isSHow:function(){return"3303"!=this.district},selectOK:function(e){this.videoIds=[],this.videoNames=[];for(var t=0;t<e.length;t++)this.videoNames.push(e[t].name),this.videoIds.push(parseInt(e[t].smid))},handleAddUserDepart:function(){this.$refs.selectWlVideoModal.visible=!0},loadData:function(){var e=this;Object(u["D"])().then((function(t){t.success&&(e.district=t.result.district)}))},onSelectedDrug:function(e){this.showImport=null==e||""==e},beforeUpload:function(e){var t=e.type;if(t.indexOf("image")<0)return this.$message.warning("请上传图片"),!1},getHighAvatarView:function(){return this.url.imgerver+"/"+this.model.highIcon},getAvatarView:function(){return this.url.imgerver+"/"+this.model.icon},handleHighChange:function(e){if(this.highIcon="","uploading"!==e.file.status){if("done"===e.file.status){var t=e.file.response;this.highUploadLoading=!1,t.success?(this.model.highIcon=t.message,this.model.highIcon2=t.message):this.$message.warning(t.message)}}else this.highUploadLoading=!0},handleChange:function(e){if(this.icon="","uploading"!==e.file.status){if("done"===e.file.status){var t=e.file.response;this.uploadLoading=!1,t.success?this.model.icon=t.message:this.$message.warning(t.message)}}else this.uploadLoading=!0},add:function(){this.edit(!0)},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.pid=this.model.pid,"boolean"===typeof e&&(this.model.code=this.district),null==e.pid||"-1"==e.pid?this.showImport=!0:this.showImport=!1,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"id","pid","name","sort","highIcon","highIcon2","icon","code","isImport","videoNames","videoIds"))})),this.videoIds=void 0==e.videoIds?[]:e.videoIds.split(","),this.videoNames=void 0==e.videoNames?[]:e.videoNames.split(","),this.selectedRows=[];for(var n=0;n<this.videoIds.length;n++)this.videoIds[n]=parseInt(this.videoIds[n]),this.selectedRows.push({smid:this.videoIds[n],name:this.videoNames[n]})},close:function(){this.$emit("close"),this.visible=!1,this.showImport=!0},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post"),e.model.pid=e.pid;var s=Object.assign(e.model,r);s.videoIds=e.videoIds.length>0?e.videoIds.join(","):"",s.videoNames=e.videoNames.length>0?e.videoNames.join(","):"",Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.submitSuccess(s)):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.fileList=[],this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"pid","name","code","icon","id","isImport","sort","highIcon","highIcon2","videoNames","videoIds"))},submitSuccess:function(e){if(e.id)this.$emit("ok",e);else{var t=this.$refs.treeSelect.getCurrTreeData();this.expandedRowKeys=[],this.getExpandKeysByPid(e[this.pidField],t,t),this.$emit("ok",e,this.expandedRowKeys.reverse())}},getExpandKeysByPid:function(e,t,n){if(e&&t&&t.length>0)for(var r=0;r<t.length;r++)t[r].key==e?(this.expandedRowKeys.push(t[r].key),this.getExpandKeysByPid(t[r]["parentId"],n,n)):this.getExpandKeysByPid(e,t[r].children,n)}}},h=f,p=n("2877"),m=Object(p["a"])(h,r,i,!1,null,null,null);t["default"]=m.exports},"5ec9":function(e,t,n){},"5eda":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("a-card",{attrs:{bordered:!1}},[r("div",{staticClass:"table-page-search-wrapper"},[r("a-form",{attrs:{layout:"inline"}},[r("a-row",{attrs:{gutter:48}},[r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"角色ID"}},[r("a-input",{attrs:{placeholder:"请输入"}})],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"状态"}},[r("a-select",{attrs:{placeholder:"请选择","default-value":"0"}},[r("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),r("a-select-option",{attrs:{value:"1"}},[t._v("关闭")]),r("a-select-option",{attrs:{value:"2"}},[t._v("运行中")])],1)],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("span",{staticClass:"table-page-search-submitButtons"},[r("a-button",{attrs:{type:"primary"}},[t._v("查询")]),r("a-button",{staticStyle:{"margin-left":"8px"}},[t._v("重置")])],1)])],1)],1)],1),r("s-table",{attrs:{size:"default",columns:t.columns,data:t.loadData},scopedSlots:t._u([{key:"expandedRowRender",fn:function(e){return r("div",{staticStyle:{margin:"0"}},[r("a-row",{style:{marginBottom:"12px"},attrs:{gutter:24}},t._l(e.permissions,(function(e,n){return r("a-col",{key:n,style:{marginBottom:"12px"},attrs:{span:12}},[r("a-col",{attrs:{lg:4,md:24}},[r("span",[t._v(t._s(e.permissionName)+":")])]),e.actionEntitySet.length>0?r("a-col",{attrs:{lg:20,md:24}},t._l(e.actionEntitySet,(function(e,n){return r("a-tag",{key:n,attrs:{color:"cyan"}},[t._v(t._s(e.describe))])})),1):r("a-col",{attrs:{span:20}},[t._v("-")])],1)})),1)],1)}},{key:"action",fn:function(e,n){return r("span",{},[r("a",{on:{click:function(e){return t.handleEdit(n)}}},[t._v("编辑")]),r("a-divider",{attrs:{type:"vertical"}}),r("a-dropdown",[r("a",{staticClass:"ant-dropdown-link"},[t._v("\n          更多 "),r("a-icon",{attrs:{type:"down"}})],1),r("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("详情")])]),r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("禁用")])]),r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)],1)],1)}}])}),r("a-modal",{staticStyle:{top:"20px"},attrs:{title:"操作",width:800},on:{ok:t.handleOk},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[r("a-form",{attrs:{autoFormCreate:function(t){e.form=t}}},[r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"唯一识别码",hasFeedback:"",validateStatus:"success"}},[r("a-input",{attrs:{placeholder:"唯一识别码",id:"no",disabled:"disabled"},model:{value:t.mdl.id,callback:function(e){t.$set(t.mdl,"id",e)},expression:"mdl.id"}})],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"角色名称",hasFeedback:"",validateStatus:"success"}},[r("a-input",{attrs:{placeholder:"起一个名字",id:"role_name"},model:{value:t.mdl.name,callback:function(e){t.$set(t.mdl,"name",e)},expression:"mdl.name"}})],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"状态",hasFeedback:"",validateStatus:"warning"}},[r("a-select",{model:{value:t.mdl.status,callback:function(e){t.$set(t.mdl,"status",e)},expression:"mdl.status"}},[r("a-select-option",{attrs:{value:"1"}},[t._v("正常")]),r("a-select-option",{attrs:{value:"2"}},[t._v("禁用")])],1)],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"描述",hasFeedback:""}},[r("a-textarea",{attrs:{rows:5,placeholder:"...",id:"describe"},model:{value:t.mdl.describe,callback:function(e){t.$set(t.mdl,"describe",e)},expression:"mdl.describe"}})],1),r("a-divider"),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"拥有权限",hasFeedback:""}},t._l(t.mdl.permissions,(function(e,n){return r("a-row",{key:n,attrs:{gutter:16}},[r("a-col",{attrs:{span:4}},[t._v("\n            "+t._s(e.permissionName)+":\n          ")]),r("a-col",{attrs:{span:20}},[r("a-checkbox-group",{attrs:{options:e.actionsOptions}})],1)],1)})),1)],1)],1)],1)},i=[],o=(n("ac6a"),n("e8c4")),a=n("0fea"),s={name:"TableList",components:{STable:o["a"]},data:function(){return{description:"列表使用场景:后台管理中的权限管理以及角色管理,可用于基于 RBAC 设计的角色权限控制,颗粒度细到每一个操作类型。",visible:!1,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},form:null,mdl:{},advanced:!1,queryParam:{},columns:[{title:"唯一识别码",dataIndex:"id"},{title:"角色名称",dataIndex:"name"},{title:"状态",dataIndex:"status"},{title:"创建时间",dataIndex:"createTime",sorter:!0},{title:"操作",width:"150px",dataIndex:"action",scopedSlots:{customRender:"action"}}],loadData:function(e){return Object(a["g"])(e).then((function(e){return e.result}))},selectedRowKeys:[],selectedRows:[]}},created:function(){Object(a["h"])().then((function(e){console.log("getServiceList.call()",e)})),Object(a["g"])().then((function(e){console.log("getRoleList.call()",e)}))},methods:{handleEdit:function(e){this.mdl=Object.assign({},e),this.mdl.permissions.forEach((function(e){e.actionsOptions=e.actionEntitySet.map((function(e){return{label:e.describe,value:e.action,defaultCheck:e.defaultCheck}}))})),this.visible=!0},handleOk:function(){},onChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t},toggleAdvanced:function(){this.advanced=!this.advanced}},watch:{}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"5edaf":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5eee":function(e,t,n){"use strict";var r=n("da5c"),i=n("57cb"),o=n("1300"),a=n("a896"),s=n("0af5"),l=n("3c22"),c=n("1af9"),u=n("a568"),d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(e){function t(t){var n=e.call(this)||this;return n.map_=t,n}return d(t,e),t.prototype.dispatchRenderEvent=function(e,t){Object(o["b"])()},t.prototype.calculateMatrices2D=function(e){var t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;Object(a["b"])(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),Object(a["d"])(r,n)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o,a,l){var d,f=t.viewState;function h(e,t,n,r){return i.call(o,t,e?n:null,r)}var p=f.projection,m=Object(u["l"])(e.slice(),p),g=[[0,0]];if(p.canWrapX()&&r){var v=p.getExtent(),y=Object(s["E"])(v);g.push([-y,0],[y,0])}for(var b=t.layerStatesArray,_=b.length,w=[],x=[],S=0;S<g.length;S++)for(var C=_-1;C>=0;--C){var E=b[C],k=E.layer;if(k.hasRenderer()&&Object(c["b"])(E,f)&&a.call(l,k)){var O=k.getRenderer(),T=k.getSource();if(O&&T){var I=T.getWrapX()?m:e,A=h.bind(null,E.managed);x[0]=I[0]+g[S][0],x[1]=I[1]+g[S][1],d=O.forEachFeatureAtCoordinate(x,t,n,A,w)}if(d)return d}}if(0!==w.length){var R=1/w.length;return w.forEach((function(e,t){return e.distanceSq+=t*R})),w.sort((function(e,t){return e.distanceSq-t.distanceSq})),w.some((function(e){return d=e.callback(e.feature,e.layer,e.geometry)})),d}},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){return Object(o["b"])()},t.prototype.hasFeatureAtCoordinate=function(e,t,n,r,o,a){var s=this.forEachFeatureAtCoordinate(e,t,n,r,i["b"],this,o,a);return void 0!==s},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(e){Object(o["b"])()},t.prototype.scheduleExpireIconCache=function(e){l["a"].canExpireCache()&&e.postRenderFunctions.push(h)},t}(r["a"]);function h(e,t){l["a"].expire()}var p=f,m=n("7b4f"),g=n("3333"),v=n("070d"),y=n("6d836"),b=n("cd7e"),_=n("ddea"),w=n("1e8d"),x=n("0999"),S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t){var n=e.call(this,t)||this;n.fontChangeListenerKey_=Object(w["a"])(_["a"],m["a"].PROPERTYCHANGE,t.redrawText.bind(t)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=b["d"]+" ol-layers";var i=t.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return S(t,e),t.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap();if(n.hasListener(e)){var r=new g["a"](e,void 0,t);n.dispatchEvent(r)}},t.prototype.disposeInternal=function(){Object(w["c"])(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(v["a"].PRECOMPOSE,e);var t=e.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),n=e.viewState;this.children_.length=0;for(var r=[],i=null,o=0,a=t.length;o<a;++o){var s=t[o];if(e.layerIndex=o,Object(c["b"])(s,n)&&(s.sourceState==y["a"].READY||s.sourceState==y["a"].UNDEFINED)){var l=s.layer,u=l.render(e,i);u&&(u!==i&&(this.children_.push(u),i=u),"getDeclutter"in l&&r.push(l))}}for(o=r.length-1;o>=0;--o)r[o].renderDeclutter(e);Object(x["d"])(this.element_,this.children_),this.dispatchRenderEvent(v["a"].POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){for(var o=t.viewState,a=t.layerStatesArray,s=a.length,l=s-1;l>=0;--l){var u=a[l],d=u.layer;if(d.hasRenderer()&&Object(c["b"])(u,o)&&i(d)){var f=d.getRenderer(),h=f.getDataAtPixel(e,t,n);if(h){var p=r(d,h);if(p)return p}}}},t}(p),E=C,k=n("e269"),O=n("e300"),T=n("183a"),I=n("01d4"),A=n("5564"),R=n("92fa5"),P=n("38f3"),M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N={LAYERS:"layers"},L=function(e){function t(t){var n=this,r=t||{},i=Object(P["a"])({},r);delete i.layers;var o=r.layers;return n=e.call(this,i)||this,n.layersListenerKeys_=[],n.listenerKeys_={},n.addEventListener(Object(k["b"])(N.LAYERS),n.handleLayersChanged_),o?Array.isArray(o)?o=new O["a"](o.slice(),{unique:!0}):Object(R["a"])("function"===typeof o.getArray,43):o=new O["a"](void 0,{unique:!0}),n.setLayers(o),n}return M(t,e),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(w["c"]),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push(Object(w["a"])(e,T["a"].ADD,this.handleLayersAdd_,this),Object(w["a"])(e,T["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(w["c"]);Object(P["b"])(this.listenerKeys_);for(var n=e.getArray(),r=0,i=n.length;r<i;r++){var a=n[r];this.listenerKeys_[Object(o["c"])(a)]=[Object(w["a"])(a,m["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(w["a"])(a,I["a"].CHANGE,this.handleLayerChange_,this)]}this.changed()},t.prototype.handleLayersAdd_=function(e){var t=e.element;this.listenerKeys_[Object(o["c"])(t)]=[Object(w["a"])(t,m["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(w["a"])(t,I["a"].CHANGE,this.handleLayerChange_,this)],this.changed()},t.prototype.handleLayersRemove_=function(e){var t=e.element,n=Object(o["c"])(t);this.listenerKeys_[n].forEach(w["c"]),delete this.listenerKeys_[n],this.changed()},t.prototype.getLayers=function(){return this.get(N.LAYERS)},t.prototype.setLayers=function(e){this.set(N.LAYERS,e)},t.prototype.getLayersArray=function(e){var t=void 0!==e?e:[];return this.getLayers().forEach((function(e){e.getLayersArray(t)})),t},t.prototype.getLayerStatesArray=function(e){var t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));for(var r=this.getLayerState(),i=n,o=t.length;i<o;i++){var a=t[i];a.opacity*=r.opacity,a.visible=a.visible&&r.visible,a.maxResolution=Math.min(a.maxResolution,r.maxResolution),a.minResolution=Math.max(a.minResolution,r.minResolution),a.minZoom=Math.max(a.minZoom,r.minZoom),a.maxZoom=Math.min(a.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==a.extent?a.extent=Object(s["B"])(a.extent,r.extent):a.extent=r.extent)}return t},t.prototype.getSourceState=function(){return y["a"].READY},t}(A["a"]),D=L,j=n("509b"),F=n("0ec0"),B=n("0b2d"),q=n("d079"),z=n("617d"),U=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(e){function t(t,n){var r=e.call(this,t)||this;r.map_=t,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=n?n*z["a"]:z["a"],r.down_=null;var i=r.map_.getViewport();return r.activePointers_=0,r.trackedTouches_={},r.element_=i,r.pointerdownListenerKey_=Object(w["a"])(i,q["a"].POINTERDOWN,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=Object(w["a"])(i,q["a"].POINTERMOVE,r.relayEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener(I["a"].TOUCHMOVE,r.boundHandleTouchMove_,!!z["e"]&&{passive:!1}),r}return U(t,e),t.prototype.emulateClick_=function(e){var t=new j["a"](B["a"].CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new j["a"](B["a"].DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new j["a"](B["a"].SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var t=e;t.type==B["a"].POINTERUP||t.type==B["a"].POINTERCANCEL?delete this.trackedTouches_[t.pointerId]:t.type==B["a"].POINTERDOWN&&(this.trackedTouches_[t.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var t=new j["a"](B["a"].POINTERUP,this.map_,e);this.dispatchEvent(t),this.emulateClicks_&&!t.propagationStopped&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(w["c"]),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.emulateClicks_=0===this.activePointers_,this.updateActivePointers_(e);var t=new j["a"](B["a"].POINTERDOWN,this.map_,e);if(this.dispatchEvent(t),this.down_=e,0===this.dragListenerKeys_.length){var n=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(w["a"])(n,B["a"].POINTERMOVE,this.handlePointerMove_,this),Object(w["a"])(n,B["a"].POINTERUP,this.handlePointerUp_,this),Object(w["a"])(this.element_,B["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push(Object(w["a"])(this.element_.getRootNode(),B["a"].POINTERUP,this.handlePointerUp_,this))}},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.dragging_=!0;var t=new j["a"](B["a"].POINTERDRAG,this.map_,e,this.dragging_);this.dispatchEvent(t)}},t.prototype.relayEvent_=function(e){this.originalPointerMoveEvent_=e;var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new j["a"](e.type,this.map_,e,t))},t.prototype.handleTouchMove_=function(e){this.originalPointerMoveEvent_&&!this.originalPointerMoveEvent_.defaultPrevented||e.preventDefault()},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(w["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(I["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(w["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(w["c"]),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},t}(F["a"]),V=G,W=n("7238"),H=n("592d"),$={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},K=1/0,X=function(){function e(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return e.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(P["b"])(this.queuedElements_)},e.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},e.prototype.enqueue=function(e){Object(R["a"])(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=K&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},e.prototype.getCount=function(){return this.elements_.length},e.prototype.getLeftChildIndex_=function(e){return 2*e+1},e.prototype.getRightChildIndex_=function(e){return 2*e+2},e.prototype.getParentIndex_=function(e){return e-1>>1},e.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},e.prototype.isEmpty=function(){return 0===this.elements_.length},e.prototype.isKeyQueued=function(e){return e in this.queuedElements_},e.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},e.prototype.siftUp_=function(e){var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;while(e<r>>1){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),c=l<r&&n[l]<n[s]?l:s;t[e]=t[c],n[e]=n[c],e=c}t[e]=i,n[e]=o,this.siftDown_(a,e)},e.prototype.siftDown_=function(e,t){var n=this.elements_,r=this.priorities_,i=n[t],o=r[t];while(t>e){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},e.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(t=0;t<s;++t)e=i[t],n=r(e),n==K?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=n,i[a++]=e);i.length=a,o.length=a,this.heapify_()},e}(),Y=X,J=n("acc1"),Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z=function(e){function t(t,n){var r=e.call(this,(function(e){return t.apply(null,e)}),(function(e){return e[0].getKey()}))||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return Q(t,e),t.prototype.enqueue=function(t){var n=e.prototype.enqueue.call(this,t);if(n){var r=t[0];r.addEventListener(I["a"].CHANGE,this.boundHandleTileChange_)}return n},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var t=e.target,n=t.getState();if(t.hifi&&n===J["a"].LOADED||n===J["a"].ERROR||n===J["a"].EMPTY){t.removeEventListener(I["a"].CHANGE,this.boundHandleTileChange_);var r=t.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,t){var n,r,i,o=0;while(this.tilesLoading_<e&&o<t&&this.getCount()>0)r=this.dequeue()[0],i=r.getKey(),n=r.getState(),n!==J["a"].IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,r.load())},t}(Y),ee=Z;function te(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return K;if(!e.wantedTiles[n][t.getKey()])return K;var o=e.viewState.center,a=r[0]-o[0],s=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i}var ne=n("a2c7"),re=n("496f"),ie=n("256f"),oe=n("345d"),ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(e){function t(t){var n=e.call(this)||this,r=le(t);return n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,n.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:z["a"],n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object(a["c"])(),n.pixelToCoordinateTransform_=Object(a["c"])(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=t.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.keyHandlerKeys_=null,n.controls=r.controls||new O["a"],n.interactions=r.interactions||new O["a"],n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.handleResize_,n.postRenderFunctions_=[],n.tileQueue_=new ee(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addEventListener(Object(k["b"])($.LAYERGROUP),n.handleLayerGroupChanged_),n.addEventListener(Object(k["b"])($.VIEW),n.handleViewChanged_),n.addEventListener(Object(k["b"])($.SIZE),n.handleSizeChanged_),n.addEventListener(Object(k["b"])($.TARGET),n.handleTargetChanged_),n.setProperties(r.values),n.controls.forEach(function(e){e.setMap(this)}.bind(n)),n.controls.addEventListener(T["a"].ADD,function(e){e.element.setMap(this)}.bind(n)),n.controls.addEventListener(T["a"].REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.interactions.forEach(function(e){e.setMap(this)}.bind(n)),n.interactions.addEventListener(T["a"].ADD,function(e){e.element.setMap(this)}.bind(n)),n.interactions.addEventListener(T["a"].REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n.overlays_.addEventListener(T["a"].ADD,function(e){this.addOverlayInternal_(e.element)}.bind(n)),n.overlays_.addEventListener(T["a"].REMOVE,function(e){var t=e.element,n=t.getId();void 0!==n&&delete this.overlayIdIndex_[n.toString()],e.element.setMap(null)}.bind(n)),n}return ae(t,e),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){var t=this.getLayerGroup().getLayers();t.push(e)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.setTarget(null),e.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,t,n){if(this.frameState_){var r=this.getCoordinateFromPixelInternal(e);n=void 0!==n?n:{};var o=void 0!==n.hitTolerance?n.hitTolerance:0,a=void 0!==n.layerFilter?n.layerFilter:i["b"],s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,o,s,t,null,a,null)}},t.prototype.getFeaturesAtPixel=function(e,t){var n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n},t.prototype.forEachLayerAtPixel=function(e,t,n){if(this.frameState_){var r=n||{},o=void 0!==r.hitTolerance?r.hitTolerance:0,a=r.layerFilter||i["b"];return this.renderer_.forEachLayerAtPixel(e,this.frameState_,o,t,a)}},t.prototype.hasFeatureAtPixel=function(e,t){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixelInternal(e);t=void 0!==t?t:{};var r=void 0!==t.layerFilter?t.layerFilter:i["b"],o=void 0!==t.hitTolerance?t.hitTolerance:0,a=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,o,a,r,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventCoordinateInternal=function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var t=this.viewport_.getBoundingClientRect(),n="changedTouches"in e?e.changedTouches[0]:e;return[n.clientX-t.left,n.clientY-t.top]},t.prototype.getTarget=function(){return this.get($.TARGET)},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"===typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){return Object(ie["l"])(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(e){var t=this.frameState_;return t?Object(a["a"])(t.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get($.LAYERGROUP)},t.prototype.getLayers=function(){var e=this.getLayerGroup().getLayers();return e},t.prototype.getLoading=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer,i=r.getSource();if(i&&i.loading)return!0}return!1},t.prototype.getPixelFromCoordinate=function(e){var t=Object(ie["d"])(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)},t.prototype.getPixelFromCoordinateInternal=function(e){var t=this.frameState_;return t?Object(a["a"])(t.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get($.SIZE)},t.prototype.getView=function(){return this.get($.VIEW)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getOwnerDocument=function(){return this.getTargetElement()?this.getTargetElement().ownerDocument:document},t.prototype.getTilePriority=function(e,t,n,r){return te(this.frameState_,e,t,n,r)},t.prototype.handleBrowserEvent=function(e,t){var n=t||e.type,r=new j["a"](n,this,e);this.handleMapBrowserEvent(r)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){var t=e.originalEvent,n=t.type;if(n===q["a"].POINTERDOWN||n===I["a"].WHEEL||n===I["a"].KEYDOWN){var r=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():r,o="host"in i?i.elementFromPoint(t.clientX,t.clientY):t.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===r?r.documentElement:i).contains(o))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e))for(var a=this.getInteractions().getArray().slice(),s=a.length-1;s>=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()){var c=l.handleEvent(e);if(!c||e.propagationStopped)break}}}},t.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var n=this.maxTilesLoading_,r=n;if(e){var i=e.viewHints;if(i[re["a"].ANIMATING]||i[re["a"].INTERACTING]){var o=!z["c"]&&Date.now()-e.time>8;n=o?0:8,r=o?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}!e||!this.hasListener(v["a"].RENDERCOMPLETE)||e.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(v["a"].RENDERCOMPLETE,e);for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,e);a.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){var e;if(this.getTarget()&&(e=this.getTargetElement()),this.mapBrowserEventHandler_){for(var t=0,n=this.keyHandlerKeys_.length;t<n;++t)Object(w["c"])(this.keyHandlerKeys_[t]);this.keyHandlerKeys_=null,this.viewport_.removeEventListener(I["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(I["a"].WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(I["a"].RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(x["c"])(this.viewport_)}if(e){for(var r in e.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new V(this,this.moveTolerance_),B["a"])this.mapBrowserEventHandler_.addEventListener(B["a"][r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(I["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(I["a"].WHEEL,this.boundHandleBrowserEvent_,!!z["e"]&&{passive:!1});var i=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.keyHandlerKeys_=[Object(w["a"])(i,I["a"].KEYDOWN,this.handleBrowserEvent,this),Object(w["a"])(i,I["a"].KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(I["a"].RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(w["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(w["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(w["a"])(e,m["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(w["a"])(e,I["a"].CHANGE,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(w["c"]),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.layerGroupPropertyListenerKeys_=[Object(w["a"])(e,m["a"].PROPERTYCHANGE,this.render,this),Object(w["a"])(e,I["a"].CHANGE,this.render,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){var t=this.getLayerGroup().getLayers();return t.remove(e)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var t=this,n=this.getSize(),r=this.getView(),i=this.frameState_,o=null;if(void 0!==n&&Object(oe["a"])(n)&&r&&r.isDef()){var a=r.getHints(this.frameState_?this.frameState_.viewHints:void 0),l=r.getState();o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(s["z"])(l.center,l.resolution,l.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:l,viewHints:a,wantedTiles:{}}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i){var c=!this.previousExtent_||!Object(s["H"])(this.previousExtent_)&&!Object(s["p"])(o.extent,this.previousExtent_);c&&(this.dispatchEvent(new W["a"](H["a"].MOVESTART,this,i)),this.previousExtent_=Object(s["l"])(this.previousExtent_))}var u=this.previousExtent_&&!o.viewHints[re["a"].ANIMATING]&&!o.viewHints[re["a"].INTERACTING]&&!Object(s["p"])(o.extent,this.previousExtent_);u&&(this.dispatchEvent(new W["a"](H["a"].MOVEEND,this,o)),Object(s["d"])(o.extent,this.previousExtent_))}this.dispatchEvent(new W["a"](H["a"].POSTRENDER,this,o)),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){t.postRenderTimeoutHandle_=void 0,t.handlePostRender()}),0))},t.prototype.setLayerGroup=function(e){this.set($.LAYERGROUP,e)},t.prototype.setSize=function(e){this.set($.SIZE,e)},t.prototype.setTarget=function(e){this.set($.TARGET,e)},t.prototype.setView=function(e){this.set($.VIEW,e)},t.prototype.updateSize=function(){var e=this.getTargetElement();if(e){var t=getComputedStyle(e);this.setSize([e.offsetWidth-parseFloat(t["borderLeftWidth"])-parseFloat(t["paddingLeft"])-parseFloat(t["paddingRight"])-parseFloat(t["borderRightWidth"]),e.offsetHeight-parseFloat(t["borderTopWidth"])-parseFloat(t["paddingTop"])-parseFloat(t["paddingBottom"])-parseFloat(t["borderBottomWidth"])])}else this.setSize(void 0);this.updateViewportSize_()},t.prototype.updateViewportSize_=function(){var e=this.getView();if(e){var t=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}},t}(k["a"]);function le(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"===typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var n,r,i,o={},a=e.layers&&"function"===typeof e.layers.getLayers?e.layers:new D({layers:e.layers});return o[$.LAYERGROUP]=a,o[$.TARGET]=e.target,o[$.VIEW]=void 0!==e.view?e.view:new ne["a"],void 0!==e.controls&&(Array.isArray(e.controls)?n=new O["a"](e.controls.slice()):(Object(R["a"])("function"===typeof e.controls.getArray,47),n=e.controls)),void 0!==e.interactions&&(Array.isArray(e.interactions)?r=new O["a"](e.interactions.slice()):(Object(R["a"])("function"===typeof e.interactions.getArray,48),r=e.interactions)),void 0!==e.overlays?Array.isArray(e.overlays)?i=new O["a"](e.overlays.slice()):(Object(R["a"])("function"===typeof e.overlays.getArray,49),i=e.overlays):i=new O["a"],{controls:n,interactions:r,keyboardEventTarget:t,overlays:i,values:o}}var ce=se,ue=n("21bc"),de=n("3a39b"),fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),he=function(e){function t(t){var n=this;return t=Object(P["a"])({},t),t.controls||(t.controls=Object(ue["a"])()),t.interactions||(t.interactions=Object(de["a"])({onFocusOnly:!0})),n=e.call(this,t)||this,n}return fe(t,e),t.prototype.createRenderer=function(){return new E(this)},t}(ce);t["a"]=he},"5ef1":function(e,t,n){},"5f0e":function(e,t,n){},"5ff1":function(e,t,n){var r=n("d75c"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},6020:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",staticStyle:{width:"350px"},on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),n("div",{staticClass:"yingxiang"},[n("a-dropdown",[n("a-button",{attrs:{type:"primary",icon:"swap"}},[e._v("地图切换")]),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.tdmapin()}}},[e._v("\n            标准\n          ")])]),n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.supermapin()}}},[e._v("\n            影像\n          ")])])],1)],1)],1),n("a-modal",{attrs:{title:"提示",afterClose:e.handleCancelts},model:{value:e.visiblets,callback:function(t){e.visiblets=t},expression:"visiblets"}},[n("template",{slot:"footer"},[n("a-button",{key:"back",on:{click:e.handleCancelts}},[e._v("\n        取消\n      ")]),n("a-button",{key:"submit",attrs:{type:"primary",loading:e.loadingts},on:{click:e.handleOkts}},[e._v("\n        确认\n      ")])],1),n("p",[e._v("即将更新该点坐标数据,是否确认?")])],2),n("div",{ref:"mapswidth",staticClass:"mapmy",attrs:{id:"maps"}})],1)},o=[],a=(n("c5f6"),n("28a5"),n("5bc0"),n("5eee")),s=n("a2c7"),l=n("2ce2"),c=n("c807"),u=n("480c"),d=n("3e6b"),f=n("d0e9"),h=n("58315"),p=n("256f"),m=n("6c77"),g=n("6cbf"),v=n("8295"),y=n("83a6"),b=n("8682"),_=n("4cdf"),w=n("f403"),x=n("84a1"),S=n("9834"),C=n("0fea"),E={name:"mapChooseLine",components:{aSelect:x["default"]},props:{model:"",pointKey:"",iconurl:"",visiblets:"",loadingts:""},data:function(){return{vector:{},source:{},maps:{},raster:new u["a"]({source:new f["a"]}),centerArr:[120.6790539441963,27.8479803194757],centerArr_330328:[120.02626646,27.80884152],bian:!1,dataSourceAll:"",zdname:"name",select_quart:new l["a"],zzzuobiao:"",arr:"",tdt_vec:{},layer:{},zhuji:{},pd:0,record:"",jujiao:!1,jinzhituozhuai:!1,qx:"",zoom:9}},mounted:function(){this.getquxian()},created:function(){},methods:{chooseAddress:function(e){var t=e.split(",");this.maps.getView().zoom=16,this.maps.getView().animate({center:[t[0],t[1]]})},chooseAddressmy:function(e){this.jujiao=!0;var t=e.longitudeLatitude,n=t.split(",");this.maps.getView().zoom=16,this.maps.getView().animate({zoom:14},{center:[n[0],n[1]]}),this.$emit("lonlatChanged",n[0]+","+n[1]);n[0],n[1];this.record=e,this.addVectorLabelcolor(e)},init:function(){Object(p["o"])(),this.initVariable();var e=this.checkModel();this.initMap(e),this.initEvent(),this.supermapin()},initVariable:function(){this.source=new h["a"],this.vector=new d["a"]({source:this.source})},checkModel:function(){var e=this.model[this.pointKey];if(null!=e&&void 0!=e&&""!=e){var t=e.split(",");if(2==t.length){for(var n=0;n<t.length;n++)t[n]=Number(t[n]);return this.initPoint(t),t}}return this.centerArr},initMap:function(e){var t=this;this.arr=e,330328==this.qx&&(this.arr=this.centerArr_330328,this.zoom=11),this.maps=new a["a"]({target:"maps",view:new s["a"]({center:[this.arr[0],this.arr[1]],zoom:this.zoom,projection:"EPSG:4326"})}),this.tdmapin();var n=new c["a"]({source:this.source,pixelTolerance:10});this.maps.addInteraction(n);var r=this;n.on("modifyend",(function(e){t.zzzuobiao=e.mapBrowserEvent.pixel;var n=t.zzzuobiao[0],i=t.zzzuobiao[1];t.zzzuobiao=[n,i-25];var o=t.maps.forEachFeatureAtPixel(t.zzzuobiao,(function(e){return e})),a=o.values_.dataSource,s=o.values_.geometry.flatCoordinates;a.longitude=s[0],a.latitude=s[1],t.jinzhituozhuai&&null==a.smid?(console.log("已拖拽新增点位坐标"),r.$emit("handleCancelts")):r.$emit("tdupdate",a)}))},initEvent:function(){var e=this,t=this;this.maps.on("click",(function(n){var r=e.maps.forEachFeatureAtPixel(n.pixel,(function(e){return e}));if(r){r.get("smid");var i=r.get("dataSource");t.$emit("openedit",i)}else{var o=t.maps.getEventCoordinate(n.originalEvent);t.$emit("lonlatChanged",o[0]+","+o[1])}})),this.maps.on("moveend",(function(t){console.log("触发地图缩放事件");var n=e.maps.getView().getZoom(),r=e.bian;e.bian=n>14||14==n,r!=e.bian&&(e.jujiao?e.huanyuanVectorLabelsONE():e.addVectorLabels("还原点位数据"))}))},addVectorLabelcolor:function(e){this.jinzhituozhuai=!1;var t=this;this.vector.getSource().clear();var n=e.longitude,r=e.latitude,o=e.longitudeLatitude;if(""==n)t.$emit("dataSource2add",dataSourceAll[i]);else{var a=o.split(",");1==a.length&&(a=[n,r]);var s=e[this.zdname],l=e.smid,c=new w["a"](a),u=new _["a"]({geometry:c,name:s,smid:l,dataSource:e});this.bian?u.setStyle(this.createLabelStylename(u)):u.setStyle(this.createLabelStyle()),this.vector.getSource().addFeature(u)}},linshidadian:function(e){this.jinzhituozhuai=!0;var t=e.longitudeLatitude,n=t.split(","),r=new w["a"](n),i=new _["a"]({geometry:r,dataSource:e});i.setStyle(this.createLabelStylels()),this.vector.getSource().addFeature(i)},addVectorLabel:function(e,t){var n=new _["a"]({geometry:new w["a"](t),name:e});n.setStyle(this.createLabelStyle()),this.vector.getSource().clear(),this.vector.getSource().addFeature(n)},addVectorLabels:function(e,t){if(this.jinzhituozhuai=!1,this.jujiao=!1,""!=t&&null!=t&&(this.zdname=t),"还原点位数据"==e)console.log("还原点位数据:"+this.dataSourceAll.length),e=this.dataSourceAll;else{for(var n=0;n<e.length;n++){var r=e[n].longitude,i=e[n].latitude;e[n].longitudeLatitude=r+","+i}this.dataSourceAll=e,console.log("处理“经纬度”坐标完成")}null==this.maps.disposed_?console.log("地图尚未加载完成(清除坐标)"):this.vector.getSource().clear();for(var o=new Array,a=this.createLabelStyle(),s=0;s<e.length;s++){var l=e[s].longitude,c=e[s].latitude,u=e[s].longitudeLatitude,d=this.hasLetter(u);if(null==l||""==l||d)this.$emit("dataSource2add",e[s]);else{(null==u||""==u||-1==u.indexOf(","))&&(u=l+","+c);var f=u.split(","),h=e[s][this.zdname],p=e[s].smid,m=e[s];m.longitudeLatitude=u;var g=new w["a"](f),v=new _["a"]({geometry:g,name:h,smid:p,dataSource:m});this.bian?v.setStyle(this.createLabelStylename(v)):v.setStyle(a),o.push(v)}}if(null==this.maps.disposed_){console.log("地图尚未加载完成(绘制点位)");var y=this;setTimeout((function(){y.vector.getSource().addFeatures(o)}),2e3)}else this.vector.getSource().addFeatures(o),console.log("点位绘制完成:"+o.length)},huanyuanVectorLabelsONE:function(){var e=this.record,t=this;this.vector.getSource().clear();var n=e.longitude,r=e.latitude,o=e.longitudeLatitude;if(""==n)t.$emit("dataSource2add",dataSourceAll[i]);else{var a=o.split(",");1==a.length&&(a=[n,r]);var s=e[this.zdname],l=e.smid,c=new w["a"](a),u=new _["a"]({geometry:c,name:s,smid:l,dataSource:e});this.bian?u.setStyle(this.createLabelStylename(u)):u.setStyle(this.createLabelStyle()),this.vector.getSource().addFeature(u)}},createLabelStylels:function(){return new m["c"]({image:new g["a"]({anchor:[.5,35],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"}),zIndex:200})},createLabelStyle:function(){console.log("点位图标路径:"+this.iconurl);var e=this;return new m["c"]({image:new g["a"]({anchor:[.5,40],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:e.iconurl}),zIndex:200})},createLabelStylename:function(e){var t=this,n=" ";return void 0!=e&&(n=e.get("name")),new m["c"]({image:new g["a"]({anchor:[.5,40],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:t.iconurl}),text:new v["a"]({offsetY:17,textAlign:"center",textBaseline:"middle",font:"normal 18px 微软雅黑",text:n,fill:new y["a"]({color:"#00cef3"}),stroke:new b["a"]({color:"#000000",width:2})}),zIndex:200})},initPoint:function(e){var t=[e[0],e[1]];this.addVectorLabel("",t)},supermapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.layer=new u["a"]({source:new S["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.tdt_vec),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.addLayer(this.layer);var t="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.zhuji=new u["a"]({source:new S["a"]({url:t,wrapX:!0}),projection:"EPSG:4326"}),this.maps.addLayer(this.zhuji),this.maps.addLayer(this.vector)},tdmapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.tdt_vec=new u["a"]({source:new S["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.layer),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.addLayer(this.tdt_vec),this.maps.addLayer(this.vector)},yingxiang:function(){0==this.pd?(this.supermapin(),this.pd=1):(this.tdmapin(),this.pd=0)},handleCancelts:function(e){this.$emit("handleCancelts",e)},handleOkts:function(e){this.loadingts=!0,this.$emit("handleOkts",e)},changeSize:function(){null==this.maps.disposed_?console.log("地图尚未加载完成(刷新尺寸)"):this.maps.updateSize()},hasLetter:function(e){for(var t in e){var n=e.charCodeAt(t);if(n>=65&&n<=90||n>=97&&n<=122)return!0}return!1},getquxian:function(){var e=this;Object(C["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(","),i=(r[0],r[1]);e.qx=i,e.init()}else e.$message.warning(t.message)}))}}},k=E,O=(n("0b7b"),n("2877")),T=Object(O["a"])(k,r,o,!1,null,null,null);t["default"]=T.exports},"60df":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-table",{attrs:{columns:e.columns,rowKey:function(e){return e.INDEX},dataSource:e.tableData,customRow:e.customClick}}),e.menuVisible?n("a-menu",{style:e.menuStyle},[n("a-menu-item",[e._v(e._s(e.menuData.THEME))]),n("a-menu-item",[e._v(e._s(e.menuData.CN_NAME))]),n("a-menu-item",[e._v(e._s(e.menuData.EN_NAME))])],1):e._e()],1)},i=[],o=[{title:"序号",dataIndex:"INDEX"},{title:"主题大类",dataIndex:"THEME"},{title:"中文名称",dataIndex:"CN_NAME"},{title:"英文名称",dataIndex:"EN_NAME"}],a={data:function(){var e=this;return{columns:o,tableData:[{INDEX:0,THEME:"基础数据",CN_NAME:"地区",EN_NAME:"Area"},{INDEX:1,THEME:"个人信息",CN_NAME:"姓名",EN_NAME:"Name"}],menuData:{},menuVisible:!1,menuStyle:{position:"absolute",top:"0",left:"0",border:"1px solid #eee"},customClick:function(t){return{on:{contextmenu:function(n){n.preventDefault(),e.menuData=t,e.menuVisible=!0,e.menuStyle.top=n.clientY+"px",e.menuStyle.left=n.clientX+"px",document.body.addEventListener("click",e.bodyClick)}}}},websock:null}},created:function(){this.initWebSocket()},destroyed:function(){this.websock.close()},methods:{initWebSocket:function(){var e="ws://127.0.0.1:8000/sas/alarm";this.websock=new WebSocket(e),this.websock.onmessage=this.websocketonmessage,this.websock.onopen=this.websocketonopen,this.websock.onerror=this.websocketonerror,this.websock.onclose=this.websocketclose},websocketonopen:function(){var e={test:"12345"};this.websocketsend(JSON.stringify(e))},websocketonerror:function(){this.initWebSocket()},websocketonmessage:function(e){console.log(e.data);JSON.parse(e.data)},websocketsend:function(e){this.websock.send(e)},websocketclose:function(e){console.log("断开连接",e)}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},"617d":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u}));var r="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=(-1!==r.indexOf("safari")&&r.indexOf("chrom"),-1!==r.indexOf("webkit")&&-1==r.indexOf("edge")),a=-1!==r.indexOf("macintosh"),s="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,c="undefined"!==typeof Image&&Image.prototype.decode,u=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(n){}return e}()},"617d0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-header-index-wide"},[n("a-row",{attrs:{gutter:24}},[n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"受理量",total:e._f("NumberFormat")(e.cardCount.sll)}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("mini-area",{attrs:{dataSource:e.chartData.sll}})],1),n("template",{slot:"footer"},[e._v("今日受理量:"),n("span",[e._v(e._s(e.todaySll))])])],2)],1),n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"办结量",total:e._f("NumberFormat")(e.cardCount.bjl)}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("mini-area",{attrs:{dataSource:e.chartData.bjl}})],1),n("template",{slot:"footer"},[e._v("今日办结量:"),n("span",[e._v(e._s(e.todayBjl))])])],2)],1),n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"用户受理量",total:e._f("NumberFormat")(e.cardCount.isll)}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("mini-bar",{attrs:{dataSource:e.chartData.isll}})],1),n("template",{slot:"footer"},[e._v("用户今日受理量:"),n("span",[e._v(e._s(e.todayISll))])])],2)],1),n("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[n("chart-card",{attrs:{loading:e.loading,title:"用户办结量",total:e._f("NumberFormat")(e.cardCount.ibjl)}},[n("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1),n("div",[n("mini-bar",{attrs:{dataSource:e.chartData.ibjl}})],1),n("template",{slot:"footer"},[e._v("用户今日办结量:"),n("span",[e._v(e._s(e.todayIBjl))])])],2)],1)],1),n("a-card",{attrs:{loading:e.loading,bordered:!1,"body-style":{padding:"0"}}},[n("div",{staticClass:"salesCard"},[n("a-tabs",{attrs:{"default-active-key":"1",size:"large","tab-bar-style":{marginBottom:"24px",paddingLeft:"16px"}}},[n("div",{staticClass:"extra-wrapper",attrs:{slot:"tabBarExtraContent"},slot:"tabBarExtraContent"},[n("div",{staticClass:"extra-item"},[n("a",[e._v("今日")]),n("a",[e._v("本周")]),n("a",[e._v("本月")]),n("a",[e._v("本年")])]),n("a-range-picker",{style:{width:"256px"}})],1),n("a-tab-pane",{key:"1",attrs:{loading:"true",tab:"受理监管"}},[n("a-row",[n("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[n("bar",{attrs:{title:"受理量统计"}})],1),n("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[n("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"快速开始 / 便捷导航",bordered:!1,"body-style":{padding:0}}},[n("div",{staticClass:"item-group"},[n("a-row",e._l(e.registerTypeList,(function(t,r){return n("a-col",{key:"registerType"+r,class:"more-btn",attrs:{span:12}},[n("a-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",type:"primary",ghost:""},on:{click:function(t){return e.goPage(r)}}},[e._v(e._s(t.text))])],1)})),1)],1)])],1)],1)],1),n("a-tab-pane",{key:"2",attrs:{tab:"交互监管"}},[n("a-row",[n("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[n("bar-multid",{attrs:{dataSource:e.jhjgData,fields:e.jhjgFields,title:"平台与部门交互量统计"}})],1),n("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[n("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"快速开始 / 便捷导航",bordered:!1,"body-style":{padding:0}}},[n("div",{staticClass:"item-group"},[n("a-row",e._l(e.registerTypeList,(function(t,r){return n("a-col",{key:"registerType"+r,class:"more-btn",attrs:{span:12}},[n("a-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",type:"primary",ghost:""},on:{click:function(t){return e.goPage(r)}}},[e._v(e._s(t.text))])],1)})),1)],1)])],1)],1)],1),n("a-tab-pane",{key:"3",attrs:{tab:"效率监管"}},[n("a-row",[n("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[n("line-chart-multid",{attrs:{dataSource:e.xljgData,fields:e.xljgFields,title:"平台与部门交互效率统计"}})],1),n("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[n("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"快速开始 / 便捷导航",bordered:!1,"body-style":{padding:0}}},[n("div",{staticClass:"item-group"},[n("a-row",e._l(e.registerTypeList,(function(t,r){return n("a-col",{key:"registerType"+r,class:"more-btn",attrs:{span:12}},[n("a-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",type:"primary",ghost:""},on:{click:function(t){return e.goPage(r)}}},[e._v(e._s(t.text))])],1)})),1)],1)])],1)],1)],1),n("a-tab-pane",{key:"4",attrs:{tab:"存储监管"}},[n("a-row",[n("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[n("a-row",[e.diskInfo&&e.diskInfo.length>0?e._l(e.diskInfo,(function(e,t){return n("a-col",{key:"diskInfo"+t,attrs:{span:12}},[n("dash-chart-demo",{attrs:{title:e.name,dataSource:e.restPPT}})],1)})):e._e()],2)],1),n("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[n("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"快速开始 / 便捷导航",bordered:!1,"body-style":{padding:0}}},[n("div",{staticClass:"item-group"},[n("a-row",e._l(e.registerTypeList,(function(t,r){return n("a-col",{key:"registerType"+r,class:"more-btn",attrs:{span:10}},[n("a-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",type:"primary",ghost:""},on:{click:function(t){return e.goPage(r)}}},[e._v(e._s(t.text))])],1)})),1)],1)])],1)],1)],1)],1)],1)]),n("a-row",{attrs:{gutter:12}},[n("a-card",{class:{"anty-list-cust":!0},style:{marginTop:"24px"},attrs:{loading:e.loading,bordered:!1}},[n("a-tabs",{attrs:{"default-active-key":"1",size:"large","tab-bar-style":{marginBottom:"24px",paddingLeft:"16px"}}},[n("div",{staticClass:"extra-wrapper",attrs:{slot:"tabBarExtraContent"},slot:"tabBarExtraContent"},[n("a-radio-group",{attrs:{defaultValue:"1"}},[n("a-radio-button",{attrs:{value:"1"}},[e._v("转移登记")]),n("a-radio-button",{attrs:{value:"2"}},[e._v("抵押登记")])],1)],1),n("a-tab-pane",{key:"1",attrs:{loading:"true",tab:"业务流程限时监管"}},[n("a-table",{attrs:{dataSource:e.dataSource1,size:"default",rowKey:"id",columns:e.columns,pagination:e.ipagination},scopedSlots:e._u([{key:"flowRate",fn:function(t,r,i){return[n("a-progress",{staticStyle:{width:"80px"},attrs:{percent:e.getFlowRateNumber(r.flowRate)}})]}}])})],1),n("a-tab-pane",{key:"2",attrs:{loading:"true",tab:"业务节点限时监管"}},[n("a-table",{attrs:{dataSource:e.dataSource2,size:"default",rowKey:"id",columns:e.columns2,pagination:e.ipagination},scopedSlots:e._u([{key:"flowRate",fn:function(t,r,i){return[n("span",{staticStyle:{color:"red"}},[e._v(e._s(r.flowRate)+"分钟")])]}}])})],1)],1)],1)],1)],1)},i=[],o=n("a42e"),a=o["a"],s=(n("e6ea"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"1e81ca89",null);t["default"]=l.exports},6187:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("4917"),n("28a5"),n("7f7f");var r=n("be94"),i=(n("ac6a"),n("aef6"),n("ca00")),o=n("0fea"),a=n("2b0e"),s=n("9fb0"),l=(n("89f2"),n("cba0"),n("80f1"),n("eec4")),c=n.n(l),u={data:function(){return{tokenHeader:{"X-Access-Token":a["default"].ls.get(s["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],loading:!1,selectedRowKeys:[],selectionRows:[],verify:!1,unVerify:!0,cxsp:!1,pointKey:"longitudeLatitude",model:{},crosshair:"cursor:default",visiblets:!1,dataSourcetd:"",loadingts:!1,dataSource2:[],dataSource3:[],dataSourcegd:[],leftmy:"leftmyshow",dataSource3zd:"",columns2:[{title:"区县",align:"center",width:"15%",dataIndex:"district"},{title:"类型",align:"center",width:"15%",dataIndex:"shlx"},{title:"名称",align:"center",width:"40%",dataIndex:"name"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],columns3:[{title:"区县",align:"center",width:"15%",dataIndex:"district"},{title:"类型",align:"center",width:"15%",dataIndex:"shlx"},{title:"名称",align:"center",width:"20%",dataIndex:"name"},{title:"审核意见",align:"center",width:"30%",dataIndex:"shyj"},{title:"操作",dataIndex:"action",align:"center",width:"15%",scopedSlots:{customRender:"action"}}],templatetable:"",templatesql:"",tablename:""}},created:function(){this.urlbiao()},mounted:function(){var e=this,t=c()();t.listenTo(document.getElementById("tabledi"),(function(t){e.$nextTick((function(){e.$refs.mapChoosePoints.changeSize()}))}))},methods:{loadData:function(){var e=this;if(this.dataSource2clear(),this.dataSource3clear(),this.url.list){var t=this.getQueryParams();t.sql=this.templatesql,this.loading=!0,Object(o["d"])(this.url.list,t).then((function(t){"true"==t.success?(e.dataSource=t.result.records,console.log("数据获取完成"+e.dataSource.length),""!=e.dataSource3zd&&(e.chulidataSource3(),e.dataSource=e.mergeArray(e.dataSource,e.dataSource3)),e.dataSourcechufa("")):e.$message.warning(t.success),e.loading=!1}))}else this.$message.error("请设置url.list属性!")},chulizhuangtai:function(){var e=this.$route.path;e.endsWith("emergency_data_audit")?(this.url.list=this.url.list+"?verifyStatus=0",this.verify=!0,this.unVerify=!0,this.cxsp=!1,this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=0",this.columns=this.columns2):e.endsWith("emergency_data_audited")?(this.verify=!0,this.unVerify=!1,this.cxsp=!1,this.url.list=this.url.list+"?verifyStatus=1",this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=1",this.columns=this.columns2):e.endsWith("emergency_data_unaudit")&&(this.verify=!0,this.unVerify=!0,this.cxsp=!0,this.url.list=this.url.list+"?verifyStatus=-1",this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=-1",this.columns=this.columns3)},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams));var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),Object(i["b"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData()},searchReset:function(){this.queryParam={},this.loadData()},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(o["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDeleteForm:function(e){if(this.url.delete){var t=this;Object(o["a"])(t.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},handlePassForm:function(e){var t=this;if(this.url.pass){var n=this;console.log(e),this.loading=!0,Object(o["c"])(n.url.pass,{smid:e+""}).then((function(e){e.success?(t.loading=!1,n.$message.success(e.message),n.loadData()):n.$message.warning(e.message)}))}else this.$message.error("请设置url.pass!")},handleNoPassForm:function(e){if(this.url.nopass){var t=this;Object(o["c"])(t.url.nopass,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.nopass属性!")},handleRePassForm:function(e){if(this.url.repass){var t=this;Object(o["c"])(t.url.repass,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.repass属性!")},handleEdit:function(e){this.$refs.TemplateModal.isVerifyPass=this.verify,this.$refs.TemplateModal.edit(e),this.$refs.TemplateModal.title="编辑"+this.getCurFormTitle(),this.$refs.TemplateModal.disableSubmit=!1},handleAdd:function(e){this.$refs.TemplateModal.add(e),this.$refs.TemplateModal.title="新增"+this.getCurFormTitle(),this.$refs.TemplateModal.disableSubmit=!1},getCurFormTitle:function(){var e=document.getElementById("componentName");return e?"-"+e.innerText:""},modalFormOk:function(){this.loadData()},handleExportXls:function(){var e=this,t=this.tablename,n=Object(r["a"])({},this.queryParam);this.selectedRowKeys&&this.selectedRowKeys.length>0&&(n["selections"]=this.selectedRowKeys.join(",")),console.log("导出参数",n),Object(o["b"])(this.url.exportXlsUrl,n).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),t+".xls");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else e.$message.warning("文件下载失败")}))},handleExportXlsTemplate:function(){var e=this,t=this.tablename;Object(o["b"])(this.url.exportXlsTemplateUrl).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),t+".xlsx");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t+".xlsx"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else e.$message.warning("文件下载失败")}))},handleImportExcel:function(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?e.file.response.success?(this.$message.success("".concat(e.file.name," 文件上传成功")),this.loadData()):this.$message.error("".concat(e.file.name," ").concat(e.file.response.message,".")):"error"===e.file.status&&this.$message.error("文件上传失败: ".concat(e.file.msg," "))},piliangok:function(){var e="是否通过选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){t.loading=!0;for(var e=0,n=0;n<t.selectedRowKeys.length;n++){var r=t.selectedRowKeys[n];Object(o["c"])(t.url.pass,{smid:r+""}).then((function(n){n.success?(e++,console.log("进度:pd:"+e+" length:"+t.selectedRowKeys.length),e==t.selectedRowKeys.length&&(t.loading=!1,t.$message.success("操作成功"),t.loadData(),t.onClearSelected())):t.$message.warning(n.message)}))}}})}},piliangnook:function(){var e="是否不通过选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(o["c"])(t.url.nopass,{smid:n+","}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},piliangrepass:function(){var e="是否重新审批选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(o["c"])(t.url.repass,{smid:n}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},piliangdelete:function(){var e="是否删除选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(o["a"])(t.url.delete+"db2",{smid:n}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},rowClick:function(e){var t=this;return{on:{click:function(){t.$refs.mapChoosePoints.chooseAddressmy(e)}}}},rowClicknew:function(e){this.$refs.mapChoosePoints.chooseAddressmy(e)},mergeArray:function(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)e[n]===t[r]&&e.splice(n,1);return e},dataSource2add:function(e){this.dataSource2.push(e)},dataSource3add:function(e){this.dataSource3.push(e)},dataSource2clear:function(){this.dataSource2=[]},dataSource3clear:function(){this.dataSource3=[]},lonlatChanged:function(e){this.model[this.pointKey]=e;var t=e.split(",");this.model.longitude=t[0],this.model.latitude=t[1]},biancross:function(){this.crosshair="cursor:crosshair"},biandefault:function(){"cursor:crosshair"==this.crosshair&&(this.$refs.mapChoosePoints.linshidadian(this.model),this.handleAdd(this.model)),this.crosshair="cursor:default"},openedit:function(e){this.handleEdit(e)},tdupdate:function(e){this.dataSourcetd=e,this.visiblets=!0},handleOkts:function(){this.handleAdd(this.dataSourcetd)},handleOktshide:function(){this.loadingts=!1,this.visiblets=!1},handleCancelts:function(){this.$refs.mapChoosePoints.jujiao?this.$refs.mapChoosePoints.huanyuanVectorLabelsONE():this.$refs.mapChoosePoints.addVectorLabels("还原点位数据"),this.visiblets=!1},yingxiang:function(){this.$refs.mapChoosePoints.yingxiang()},tdmapin:function(){this.$refs.mapChoosePoints.tdmapin()},supermapin:function(){this.$refs.mapChoosePoints.supermapin()},yincangzuoce:function(){this.leftmy="leftmyhide"},xianshizuoce:function(){this.leftmy="leftmyshow",this.$refs.mapChoosePoints.addVectorLabels("还原点位数据")},dataSourcechufa:function(e){var t=this.dataSource;if(this.$refs.mapChoosePoints.addVectorLabels(t,e),this.dataSource=this.mergeArray(this.dataSource,this.dataSource2),this.dataSourcegd=[],t.length>=15)for(var n=0;n<15;n++)this.dataSourcegd.push(t[n]);else for(var r=0;r<t.length;r++)this.dataSourcegd.push(t[r]);this.$refs.mapTable.jiazai=15,console.log("页面全部数据处理完成")},getMsgFormSon:function(e){console.log("data",e),this.queryParam.village=e.village,this.queryParam.city=e.city,this.queryParam.street=e.street,this.queryParam.district=e.district},handleDeleteFormDB2:function(e){if(this.url.delete){var t=this;Object(o["a"])(t.url.delete+"db2",{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},dataSource3ziduan:function(e){this.dataSource3zd=e},chulidataSource3:function(){for(var e=this.dataSource3zd,t=e.split(","),n=0;n<this.dataSource.length;n++)for(var r=0;r<t.length;r++)if(null==this.dataSource[n][t[r]]||""==this.dataSource[n][t[r]]){this.dataSource3add(this.dataSource[n]);break}},urlbiao:function(){var e=this,t=this.$store.state.templatetable;this.templatetable=t,console.log("给该功能配置的表名称by @:"+this.templatetable),this.templatesql=this.$store.state.templatesql,console.log("给该功能配置的额外查询条件:"+this.templatesql),void 0==t?this.$message.warning("该功能未配置对应表名称"):("主从表"==this.yemian||(this.url.list=this.url.list+this.templatetable,this.chulizhuangtai()),this.url.nopass=this.url.nopass+this.templatetable,this.url.repass=this.url.repass+this.templatetable,this.url.pass=this.url.pass+this.templatetable,this.url.delete=this.url.delete+this.templatetable,this.url.deleteBatch=this.url.deleteBatch+this.templatetable,this.url.exportXlsUrl=this.url.exportXlsUrl+this.templatetable,this.url.importExcelUrl=this.url.importExcelUrl+this.templatetable,this.url.exportXlsTemplateUrl=this.url.exportXlsTemplateUrl+this.templatetable,this.url.latubiao=this.url.latubiao+this.templatetable,this.url.biaoheyan=this.url.biaoheyan+this.templatetable,this.url.add=this.url.add+this.templatetable,this.url.edit=this.url.edit+this.templatetable,this.url.notes=this.url.notes+this.templatetable,this.url.weiwanshan=this.url.weiwanshan+this.templatetable,"主从表"==this.yemian&&(console.log("主从表编辑页,url改变"),this.urlbiaotwo()),"单表"==this.yemian&&console.log("单表编辑页"),Object(o["d"])(this.url.biaoheyan,"").then((function(t){t.success?(e.tablename=t.message,e.jiazaitubiao()):e.$message.warning(t.message)})))},jiazaitubiao:function(){var e=this,t=this.$store.state.templatesql;Object(o["d"])(this.url.latubiao,{templatesql:t}).then((function(t){t.success?(e.iconurl="http://10.36.234.84:9000"+t.result.records,"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"!=t.result.records&&""!=t.result.records||(e.iconurl="https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"),e.loadData()):e.$message.warning(t.message)}))},urlbiaotwo:function(){var e=this;this.urlcong.congbiao=this.urlcong.congbiao+this.templatetable,Object(o["d"])(this.urlcong.congbiao,"").then((function(t){if(t.success){for(var n='"'+t.result.congbiao[0].tablename+'"',r="",i=0;i<t.result.congbiao.length;i++){var o=t.result.congbiao[i].tablename,a=o.match(/^.*[A-Z]+.*$/);null==a||(o='"'+o+'"'),r+=0==i?o:","+o}console.log("从表编辑页所有从表:"+r),e.url.list=e.url.list+e.templatetable+"/"+n,e.chulizhuangtai(),e.url.pass=e.url.pass+"/"+r,e.urlcong.list=e.urlcong.list+e.templatetable+"/"+n,e.urlcong.add=e.urlcong.add+e.templatetable+"/"+n,e.urlcong.edit=e.urlcong.edit+e.templatetable+"/"+n,e.urlcong.delete=e.urlcong.delete+e.templatetable+"/"+n,e.urlcong.notes=e.urlcong.notes+e.templatetable+"/"+n,e.urlcong.deletedb2=e.urlcong.deletedb2+n,e.modalchulitwo(),e.tabs=t.result.congbiao,console.log("从表tab页数据↓"),console.log(e.tabs)}else e.$message.warning(t.message)}))},modalchulitwo:function(){var e=this.$route.path;e.endsWith("emergency_data_audit")?(this.urlcong.list=this.urlcong.list+"?verifyStatus=0",this.$refs.TemplatesonModaltwo.verify=!0,this.$refs.TemplatesonModaltwo.verify_select=!1,this.$refs.TemplatesonModaltwo.unVerify=!0,this.$refs.TemplatesonModaltwo.cxsp=!1):e.endsWith("emergency_data_audited")?(this.urlcong.list=this.urlcong.list+"?verifyStatus=1",this.$refs.TemplatesonModaltwo.verify=!0,this.$refs.TemplatesonModaltwo.verify_select=!1,this.$refs.TemplatesonModaltwo.unVerify=!1,this.$refs.TemplatesonModaltwo.cxsp=!1):e.endsWith("emergency_data_unaudit")&&(this.urlcong.list=this.urlcong.list+"?verifyStatus=-1",this.$refs.TemplatesonModaltwo.verify=!0,this.$refs.TemplatesonModaltwo.verify_select=!1,this.$refs.TemplatesonModaltwo.unVerify=!0,this.$refs.TemplatesonModaltwo.cxsp=!0)},urlqiehuan:function(e){var t=e.split(","),n=t[0],r=t[1];console.log("动态-切换tab页时动态变更所有接口连接:"+n+" save_code:"+r),this.urlcong.list=this.urlchushi.list+this.templatetable+"/"+n,this.urlcong.add=this.urlchushi.add+this.templatetable+"/"+n,this.urlcong.edit=this.urlchushi.edit+this.templatetable+"/"+n,this.urlcong.delete=this.urlchushi.delete+this.templatetable+"/"+n,this.urlcong.notes=this.urlchushi.notes+this.templatetable+"/"+n,this.urlcong.deletedb2=this.urlchushi.deletedb2+n;var i=this.$route.path;i.endsWith("emergency_data_audit")?this.urlcong.list=this.urlcong.list+"?verifyStatus=0":i.endsWith("emergency_data_audited")?this.urlcong.list=this.urlcong.list+"?verifyStatus=1":i.endsWith("emergency_data_unaudit")&&(this.urlcong.list=this.urlcong.list+"?verifyStatus=-1"),this.shujuqiehuan(r)},shujuqiehuan:function(e){var t=this;Object(o["d"])(this.urlcong.list,{save_code:e}).then((function(e){e.success?(console.log("从表对应数据重新获取完成:"+e.result.records.length),t.$refs.TemplatesonModaltwo.$refs.TemplateeditsonTabletwo.dataSource=e.result.records):(t.$message.warning(e.message),t.$refs.TemplatesonModaltwo.$refs.TemplateeditsonTabletwo.dataSource=[]),t.loading=!1}))}},watch:{"myQueryParam.name":{handler:function(e,t){this.queryParam.name="*"+this.myQueryParam.name+"*"},deep:!0},"queryParam.name":{handler:function(e,t){void 0==e&&(this.myQueryParam.name="")},deep:!0},"queryParam.village":{handler:function(e,t){void 0==e&&(this.showDefaultParams=[])},deep:!0}}}},"61d0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tree-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",labelInValue:"",disabled:e.disabled,dropdownStyle:{maxHeight:"400px",overflow:"auto"},placeholder:e.placeholder,loadData:e.asyncLoadTreeData,value:e.treeValue,treeData:e.treeData},on:{change:e.onChange,search:e.onSearch}})},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("2909")),a=(n("28a5"),n("0fea")),s={name:"JTreeSelect",props:{value:{type:String,required:!1},placeholder:{type:String,default:"请选择",required:!1},dict:{type:String,default:"",required:!1},pidField:{type:String,default:"pid",required:!1},pidValue:{type:String,default:"-1",required:!1},disabled:{type:Boolean,default:!1,required:!1},hasChildField:{type:String,default:"",required:!1}},data:function(){return{treeValue:"",treeData:[],url:"/sys/dict/loadVideoTreeData",view:"/sys/dict/loadDictItem/",tableName:"",text:"",code:""}},watch:{value:function(){this.loadItemByCode()},dict:function(){this.initDictInfo(),this.loadRoot()}},created:function(){this.initDictInfo(),this.loadRoot(),this.loadItemByCode()},methods:{loadItemByCode:function(){var e=this;this.value&&"-1"!=this.value?Object(a["d"])("".concat(this.view).concat(this.dict),{key:this.value}).then((function(t){t.success&&(e.treeValue={key:e.value,value:e.value,label:t.result})})):this.treeValue=""},initDictInfo:function(){var e=this.dict.split(",");this.tableName=e[0],this.text=e[1],this.code=e[2]},asyncLoadTreeData:function(e){var t=this;return new Promise((function(n){if(e.$vnode.children)n();else{var r=e.$vnode.key,i={pid:r,tableName:t.tableName,text:t.text,code:t.code,pidField:t.pidField,hasChildField:t.hasChildField};Object(a["d"])(t.url,i).then((function(e){if(e.success){var i=!0,a=!1,s=void 0;try{for(var l,c=e.result[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;u.value=u.key,0==u.leaf?u.isLeaf=!1:1==u.leaf&&(u.isLeaf=!0)}}catch(d){a=!0,s=d}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}t.addChildren(r,e.result,t.treeData),t.treeData=Object(o["a"])(t.treeData)}n()}))}}))},addChildren:function(e,t,n){if(n&&n.length>0){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.key==e){t&&0!=t.length?l.children=t:l.isLeaf=!0;break}this.addChildren(e,t,l.children)}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}},loadRoot:function(){var e=this,t={pid:this.pidValue,tableName:this.tableName,text:this.text,code:this.code,pidField:this.pidField,hasChildField:this.hasChildField};Object(a["d"])(this.url,t).then((function(t){if(t.success&&t.result){var n=!0,r=!1,i=void 0;try{for(var a,s=t.result[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;l.value=l.key,0==l.leaf?l.isLeaf=!1:1==l.leaf&&(l.isLeaf=!0)}}catch(c){r=!0,i=c}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}e.treeData=Object(o["a"])(t.result)}else console.log("数根节点查询结果-else",t)}))},onChange:function(e){e?(this.$emit("change",e.value),this.treeValue=e):(this.$emit("change",""),this.treeValue="")},onSearch:function(e){console.log(e)},getCurrTreeData:function(){return this.treeData}},model:{prop:"value",event:"change"}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},6239:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{"body-style":{padding:"24px 32px"},bordered:!1}},[n("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[n("a-form-item",{attrs:{label:"标题",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}}}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入标题"}]}],expression:"[\n          'name',\n          {rules: [{ required: true, message: '请输入标题' }]}\n        ]"}],attrs:{name:"name",placeholder:"给目标起个名字"}})],1),n("a-form-item",{attrs:{label:"起止日期",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}}}},[n("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["buildTime",{rules:[{required:!0,message:"请选择起止日期"}]}],expression:"[\n          'buildTime',\n          {rules: [{ required: true, message: '请选择起止日期' }]}\n        ]"}],staticStyle:{width:"100%"},attrs:{name:"buildTime"}})],1),n("a-form-item",{attrs:{label:"目标描述",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}}}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["description",{rules:[{required:!0,message:"请输入目标描述"}]}],expression:"[\n          'description',\n          {rules: [{ required: true, message: '请输入目标描述' }]}\n        ]"}],attrs:{rows:"4",placeholder:"请输入你阶段性工作目标"}})],1),n("a-form-item",{attrs:{label:"衡量标准",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}}}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",{rules:[{required:!0,message:"请输入衡量标准"}]}],expression:"[\n          'type',\n          {rules: [{ required: true, message: '请输入衡量标准' }]}\n        ]"}],attrs:{rows:"4",placeholder:"请输入衡量标准"}})],1),n("a-form-item",{attrs:{label:"客户",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}}}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["customer",{rules:[{required:!0,message:"请描述你服务的客户"}]}],expression:"[\n          'customer',\n          {rules: [{ required: true, message: '请描述你服务的客户' }]}\n        ]"}],attrs:{placeholder:"请描述你服务的客户,内部客户直接 @姓名/工号"}})],1),n("a-form-item",{attrs:{label:"邀评人",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}},required:!1}},[n("a-input",{attrs:{placeholder:"请直接 @姓名/工号,最多可邀请 5 人"}})],1),n("a-form-item",{attrs:{label:"权重",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}},required:!1}},[n("a-input-number",{attrs:{min:0,max:100}}),n("span",[e._v(" %")])],1),n("a-form-item",{attrs:{label:"目标公开",labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}},required:!1,help:"客户、邀评人默认被分享"}},[n("a-radio-group",{model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[n("a-radio",{attrs:{value:1}},[e._v("公开")]),n("a-radio",{attrs:{value:2}},[e._v("部分公开")]),n("a-radio",{attrs:{value:3}},[e._v("不公开")])],1),n("a-form-item",[2===e.value?n("a-select",{attrs:{mode:"multiple"}},[n("a-select-option",{attrs:{value:"4"}},[e._v("同事一")]),n("a-select-option",{attrs:{value:"5"}},[e._v("同事二")]),n("a-select-option",{attrs:{value:"6"}},[e._v("同事三")])],1):e._e()],1)],1),n("a-form-item",{staticStyle:{"text-align":"center"},attrs:{wrapperCol:{span:24}}},[n("a-button",{attrs:{htmlType:"submit",type:"primary"}},[e._v("提交")]),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("保存")])],1)],1)],1)},i=[],o={name:"BaseForm",data:function(){return{description:"表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。",value:1,form:this.$form.createForm(this)}},methods:{handleSubmit:function(e){e.preventDefault(),this.form.validateFields((function(e,t){e||console.log("Received values of form: ",t)}))}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},"62d6":function(e,t,n){"use strict";n("362d")},"631d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"区县权限配置"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.slotTitle;return n("span",{},[e._v("\n          "+e._s(r)+"\n        ")])}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("4ec3"),s={name:"CategoryDistrictModal",components:{},data:function(){return{roleId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"区县权限配置",visible:!1,loading:!1}},methods:{onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.roleId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys,console.log(this.allTreeKeys)},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={roleId:e.roleId,permissionIds:e.checkedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["fb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["M"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["H"])({id:e.roleId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},l=s,c=(n("824b"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"0ace3a29",null);t["default"]=u.exports},6339:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"63c3":function(e,t,n){"use strict";n("7ae4")},"63e2":function(e,t,n){"use strict";n("9c0a")},6434:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{maskClosable:!1,title:"请选择要用温州市配置数据覆盖的区县",width:"500",visible:e.visible,cancelText:"关闭",mask:!0,wrapClassName:"mengcengduoxuan"},on:{ok:e.handleOk,cancel:e.close}},[n("a-tree-select",{staticStyle:{width:"100%"},attrs:{"show-search":"",value:e.value,"dropdown-style":{maxHeight:"400px",overflow:"auto"},placeholder:"请选择","allow-clear":"",multiple:"","tree-default-expand-all":""},on:{change:e.onChange,search:e.onSearch,select:e.onSelect}},[n("a-tree-select-node",{key:"鹿城区",attrs:{value:"330302",title:"鹿城区"}}),n("a-tree-select-node",{key:"文成县",attrs:{value:"330328",title:"文成县"}}),n("a-tree-select-node",{key:"瓯海区",attrs:{value:"330304",title:"瓯海区"}}),n("a-tree-select-node",{key:"洞头区",attrs:{value:"330305",title:"洞头区"}}),n("a-tree-select-node",{key:"乐清市",attrs:{value:"330382",title:"乐清市"}}),n("a-tree-select-node",{key:"瑞安市",attrs:{value:"330381",title:"瑞安市"}}),n("a-tree-select-node",{key:"龙港市",attrs:{value:"330383",title:"龙港市"}}),n("a-tree-select-node",{key:"永嘉县",attrs:{value:"330324",title:"永嘉县"}}),n("a-tree-select-node",{key:"平阳县",attrs:{value:"330326",title:"平阳县"}}),n("a-tree-select-node",{key:"泰顺县",attrs:{value:"330329",title:"泰顺县"}}),n("a-tree-select-node",{key:"苍南县",attrs:{value:"330327",title:"苍南县"}}),n("a-tree-select-node",{key:"龙湾区",attrs:{value:"330303",title:"龙湾区"}}),n("a-tree-select-node",{key:"经开区",attrs:{value:"330371",title:"经开区"}}),n("a-tree-select-node",{key:"瓯江口",attrs:{value:"330372",title:"瓯江口"}})],1),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br"),n("br")],1)},i=[],o=n("0fea"),a={data:function(){return{value:"",visible:!1}},methods:{onChange:function(e){console.log(e),this.value=e},onSearch:function(){var e;(e=console).log.apply(e,arguments)},onSelect:function(){var e;(e=console).log.apply(e,arguments)},handleOk:function(){var e=this;this.$confirm({title:"确认覆盖数据",content:"是否用温州市的配置数据覆盖选中区县的配置数据?",onOk:function(){Object(o["a"])("/templateEditSon/fugaiquxian",{values:""+e.value}).then((function(t){t.success?(e.$message.success(t.message),e.visible=!1,e.searchReset()):e.$message.warning(t.message)}))}})},close:function(){this.visible=!1},searchReset:function(e){this.$emit("searchReset",e)}}},s=a,l=(n("4f62"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},6477:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:4,sm:4}},[n("a-form-item",{attrs:{label:"文件名称"}},[n("a-input",{attrs:{placeholder:"请输入文件名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:4,sm:4}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:function(t){return e.loadData(1)}}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.clear}},[e._v("重置")])],1)]),n("a-col",{attrs:{md:4,sm:4}},[n("div",{staticClass:"update-box"},[n("a-upload",{attrs:{name:"file",multiple:!0,action:e.url.uploadAction,headers:e.headers},on:{change:function(t){return e.loadData(1)}}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v(" 上传图例 ")],1)],1)],1)])],1)],1)],1),n("div",[n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a-dropdown",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.deletepic(r.id)}}},[n("a",[e._v("删除")])])],1)],1)}}])})],1)])},i=[],o=n("ade3"),a=n("b65a"),s=(n("89f2"),n("d185")),l=n("0fea"),c={name:"IndexIconOnePicture",mixins:[a["a"]],components:{JSelectDutyStreet:s["default"]},data:function(){var e=this.$createElement;return{description:"值班人员管理页面",columns:[{title:"",dataIndex:"",key:"id",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"图片",align:"center",width:"20%",dataIndex:"url",customRender:function(t){return{children:e("img",{attrs:{src:t},style:"width:120px;height:120px"})}}},{title:"名称",align:"center",width:"20%",dataIndex:"file_name"},{title:"url",align:"center",width:"50%",dataIndex:"url"},{title:"操作",align:"center",width:"150px",dataIndex:"action",scopedSlots:{customRender:"action"}}],url:{list:"/sys/indexIcon/getIconOnePicture/index_icon_enterprise",delete:"/sys/indexIcon/deleleIconWarehouse/index_icon_enterprise",uploadAction:"/sys/indexIcon/upload/index_icon_enterprise"},dictOptions:{dutyType:[]},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},headers:{authorization:"authorization-text"},dqpage:1,ipagination:{current:1,pageSize:10,pageSizeOptions:["10"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:Object(o["a"])({clear:function(){this.queryParam={},this.loadData(1)},loadData:function(e){var t=this;if(this.url.list){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();this.loading=!0,Object(l["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},deletepic:function(e){var t=this;Object(l["d"])(this.url.delete,{id:e}).then((function(e){t.loadData(1)})).catch((function(e){t.$message.error("获取HTTP信息失败")}))},handleTableChange:function(e){this.ipagination=e,this.dqpage=e.current}},"clear",(function(){this.queryParam={},this.loadData(1)}))},u=c,d=(n("6f6b"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"ae1ac09e",null);t["default"]=f.exports},6479:function(e,t,n){},"64df":function(e,t,n){},6524:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"138px",left:"125px"},on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}})],1),n("a-tabs",{attrs:{"default-active-key":"1"},on:{change:e.onClearSelected,click:function(t){return e.latiao()}}},[n("a-tab-pane",{key:"1",attrs:{tab:"数据"}},[n("div",{staticStyle:{width:"100%"}},[n("a-table",{ref:"table1",staticClass:"table1",attrs:{customRow:e.rowClick,size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSource,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!0},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.smid)}}},[n("a",[e._v("删除")])])],1)],1)}}])})],1)])],1)],1)},i=[],o={name:"mapTable",props:{dataSource:"",loading:"",columns:"",selectedRowKeys:"",onSelectChange:""},data:function(){return{count:0,data:[],busy:!1,columnWidthz:10,paginationz:{total:0,pageSize:10,showTotal:function(e){return"共有 ".concat(e," 条数据")}}}},mounted:function(){},methods:{rowClick:function(e){return{on:{click:function(){}}}},handleEdit:function(e){this.$emit("handleEdit",e)},handleDelete:function(e){this.$emit("handleDelete",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},batchDel:function(e){this.$emit("batchDel",e)}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},6576:function(e,t,n){},"657b":function(e,t,n){"use strict";n.r(t),n.d(t,"JeecgListMixin",(function(){return l}));n("4917"),n("28a5"),n("7f7f");var r=n("be94"),i=(n("ac6a"),n("aef6"),n("ca00")),o=n("0fea"),a=n("2b0e"),s=n("9fb0"),l=(n("89f2"),n("80f1"),n("eec4"),{data:function(){return{tokenHeader:{"X-Access-Token":a["default"].ls.get(s["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],loading:!1,selectedRowKeys:[],selectionRows:[],verify:!1,unVerify:!0,cxsp:!1,dataSource3:[],dataSourcegd:[],dataSource3zd:"",columns2:[{title:"区县",align:"center",width:"15%",dataIndex:"district"},{title:"类型",align:"center",width:"15%",dataIndex:"shlx"},{title:"名称",align:"center",width:"40%",dataIndex:"name"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],columns3:[{title:"区县",align:"center",width:"15%",dataIndex:"district"},{title:"类型",align:"center",width:"15%",dataIndex:"shlx"},{title:"名称",align:"center",width:"20%",dataIndex:"name"},{title:"审核意见",align:"center",width:"30%",dataIndex:"shyj"},{title:"操作",dataIndex:"action",align:"center",width:"15%",scopedSlots:{customRender:"action"}}],templatetable:"",tablename:""}},created:function(){this.urlbiao()},mounted:function(){},methods:{loadData:function(){var e=this;if(this.dataSource3clear(),this.url.list){var t=this.getQueryParams();this.loading=!0,Object(o["d"])(this.url.list,t).then((function(t){"true"==t.success?(e.dataSource=t.result.records,console.log("数据获取完成"+e.dataSource.length),""!=e.dataSource3zd&&(e.chulidataSource3(),e.dataSource=e.mergeArray(e.dataSource,e.dataSource3)),e.dataSourcechufa("")):e.$message.warning(t.success),e.loading=!1}))}else this.$message.error("请设置url.list属性!")},chulizhuangtai:function(){var e=this.$route.path;e.endsWith("emergency_data_audit")?(this.url.list=this.url.list+"?verifyStatus=0",this.verify=!0,this.unVerify=!0,this.cxsp=!1,this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=0",this.columns=this.columns2):e.endsWith("emergency_data_audited")?(this.verify=!0,this.unVerify=!1,this.cxsp=!1,this.url.list=this.url.list+"?verifyStatus=1",this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=1",this.columns=this.columns2):e.endsWith("emergency_data_unaudit")&&(this.verify=!0,this.unVerify=!0,this.cxsp=!0,this.url.list=this.url.list+"?verifyStatus=-1",this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=-1",this.columns=this.columns3)},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams));var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),Object(i["b"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData()},searchReset:function(){this.queryParam={},this.loadData()},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(o["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDeleteForm:function(e){if(this.url.delete){var t=this;Object(o["a"])(t.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},handlePassForm:function(e){var t=this;if(this.url.pass){var n=this;console.log(e),this.loading=!0,Object(o["c"])(n.url.pass,{smid:e+""}).then((function(e){e.success?(t.loading=!1,n.$message.success(e.message),n.loadData()):n.$message.warning(e.message)}))}else this.$message.error("请设置url.pass!")},handleNoPassForm:function(e){if(this.url.nopass){var t=this;Object(o["c"])(t.url.nopass,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.nopass属性!")},handleRePassForm:function(e){if(this.url.repass){var t=this;Object(o["c"])(t.url.repass,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.repass属性!")},handleEdit:function(e){this.$refs.TemplateModal.isVerifyPass=this.verify,this.$refs.TemplateModal.edit(e),this.$refs.TemplateModal.title="编辑"+this.getCurFormTitle(),this.$refs.TemplateModal.disableSubmit=!1},handleAdd:function(e){this.$refs.TemplateModal.add(e),this.$refs.TemplateModal.title="新增"+this.getCurFormTitle(),this.$refs.TemplateModal.disableSubmit=!1},getCurFormTitle:function(){var e=document.getElementById("componentName");return e?"-"+e.innerText:""},modalFormOk:function(){this.loadData()},handleExportXls:function(){var e=this,t=this.tablename,n=Object(r["a"])({},this.queryParam);this.selectedRowKeys&&this.selectedRowKeys.length>0&&(n["selections"]=this.selectedRowKeys.join(",")),console.log("导出参数",n),Object(o["b"])(this.url.exportXlsUrl,n).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),t+".xls");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else e.$message.warning("文件下载失败")}))},handleExportXlsTemplate:function(){var e=this,t=this.tablename;Object(o["b"])(this.url.exportXlsTemplateUrl).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),t+".xlsx");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t+".xlsx"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else e.$message.warning("文件下载失败")}))},handleImportExcel:function(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?e.file.response.success?(this.$message.success("".concat(e.file.name," 文件上传成功")),this.loadData()):this.$message.error("".concat(e.file.name," ").concat(e.file.response.message,".")):"error"===e.file.status&&this.$message.error("文件上传失败: ".concat(e.file.msg," "))},piliangok:function(){var e="是否通过选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){t.loading=!0;for(var e=0,n=0;n<t.selectedRowKeys.length;n++){var r=t.selectedRowKeys[n];Object(o["c"])(t.url.pass,{smid:r+""}).then((function(n){n.success?(e++,console.log("进度:pd:"+e+" length:"+t.selectedRowKeys.length),e==t.selectedRowKeys.length&&(t.loading=!1,t.$message.success("操作成功"),t.loadData(),t.onClearSelected())):t.$message.warning(n.message)}))}}})}},piliangnook:function(){var e="是否不通过选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(o["c"])(t.url.nopass,{smid:n+","}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},piliangrepass:function(){var e="是否重新审批选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(o["c"])(t.url.repass,{smid:n}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},piliangdelete:function(){var e="是否删除选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(o["a"])(t.url.delete+"db2",{smid:n}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},rowClick:function(e){return{on:{click:function(){alert("无事发生")}}}},rowClicknew:function(e){},mergeArray:function(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)e[n]===t[r]&&e.splice(n,1);return e},dataSource3add:function(e){this.dataSource3.push(e)},dataSource3clear:function(){this.dataSource3=[]},dataSourcechufa:function(e){var t=this.dataSource;if(this.dataSourcegd=[],t.length>=15)for(var n=0;n<15;n++)this.dataSourcegd.push(t[n]);else for(var r=0;r<t.length;r++)this.dataSourcegd.push(t[r]);this.$refs.mapTable.jiazai=15,console.log("页面全部数据处理完成")},getMsgFormSon:function(e){console.log("data",e),this.queryParam.village=e.village,this.queryParam.city=e.city,this.queryParam.street=e.street,this.queryParam.district=e.district},handleDeleteFormDB2:function(e){if(this.url.delete){var t=this;Object(o["a"])(t.url.delete+"db2",{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},dataSource3ziduan:function(e){this.dataSource3zd=e},chulidataSource3:function(){for(var e=this.dataSource3zd,t=e.split(","),n=0;n<this.dataSource.length;n++)for(var r=0;r<t.length;r++)if(null==this.dataSource[n][t[r]]||""==this.dataSource[n][t[r]]){this.dataSource3add(this.dataSource[n]);break}},urlbiao:function(){var e=this,t=this.$store.state.templatetable;this.templatetable=t,console.log("给该功能配置的表名称by @:"+this.templatetable);var n=this.$store.state.templatesql;console.log("给该功能配置的额外查询条件:"+n),void 0==t?this.$message.warning("该功能未配置对应表名称"):("主从表"==this.yemian||("undefined"==typeof n?this.url.list=this.url.list+this.templatetable+"/kong":n.length>0&&"null"!=n&&" "!=n?this.url.list=this.url.list+this.templatetable+"/"+n:this.url.list=this.url.list+this.templatetable+"/kong",this.chulizhuangtai()),this.url.nopass=this.url.nopass+this.templatetable,this.url.repass=this.url.repass+this.templatetable,this.url.pass=this.url.pass+this.templatetable,this.url.delete=this.url.delete+this.templatetable,this.url.deleteBatch=this.url.deleteBatch+this.templatetable,this.url.exportXlsUrl=this.url.exportXlsUrl+this.templatetable,this.url.importExcelUrl=this.url.importExcelUrl+this.templatetable,this.url.exportXlsTemplateUrl=this.url.exportXlsTemplateUrl+this.templatetable,this.url.latubiao=this.url.latubiao+this.templatetable,this.url.biaoheyan=this.url.biaoheyan+this.templatetable,this.url.add=this.url.add+this.templatetable,this.url.edit=this.url.edit+this.templatetable,this.url.notes=this.url.notes+this.templatetable,this.url.weiwanshan=this.url.weiwanshan+this.templatetable,"主从表"==this.yemian&&(console.log("主从表编辑页,url改变"),this.urlbiaotwo()),"单表"==this.yemian&&console.log("单表编辑页"),Object(o["d"])(this.url.biaoheyan,"").then((function(t){t.success?(e.tablename=t.message,e.jiazaitubiao()):e.$message.warning(t.message)})))},jiazaitubiao:function(){var e=this;Object(o["d"])(this.url.latubiao,"").then((function(t){t.success?(e.iconurl="http://pshnj.f3322.net:3007"+t.result.records,"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"!=t.result.records&&""!=t.result.records||(e.iconurl="https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"),e.loadData()):e.$message.warning(t.message)}))},urlbiaotwo:function(){var e=this;this.urlcong.congbiao=this.urlcong.congbiao+this.templatetable,Object(o["d"])(this.urlcong.congbiao,"").then((function(t){if(t.success){for(var n='"'+t.result.congbiao[0].tablename+'"',r="",i=0;i<t.result.congbiao.length;i++){var o=t.result.congbiao[i].tablename,a=o.match(/^.*[A-Z]+.*$/);null==a||(o='"'+o+'"'),r+=0==i?o:","+o}console.log("从表编辑页所有从表:"+r);var s=e.$store.state.templatesql;"undefined"==typeof s?e.url.list=e.url.list+e.templatetable+"/"+n+"/kong":s.length>0&&"null"!=s&&" "!=s?e.url.list=e.url.list+e.templatetable+"/"+n+"/"+s:e.url.list=e.url.list+e.templatetable+"/"+n+"/kong",e.chulizhuangtai(),e.url.pass=e.url.pass+"/"+r,e.urlcong.list=e.urlcong.list+e.templatetable+"/"+n,e.urlcong.add=e.urlcong.add+e.templatetable+"/"+n,e.urlcong.edit=e.urlcong.edit+e.templatetable+"/"+n,e.urlcong.delete=e.urlcong.delete+e.templatetable+"/"+n,e.urlcong.notes=e.urlcong.notes+e.templatetable+"/"+n,e.urlcong.deletedb2=e.urlcong.deletedb2+n,e.modalchulitwo(),e.tabs=t.result.congbiao,console.log("从表tab页数据↓"),console.log(e.tabs)}else e.$message.warning(t.message)}))},modalchulitwo:function(){var e=this.$route.path;e.endsWith("emergency_data_audit")?(this.urlcong.list=this.urlcong.list+"?verifyStatus=0",this.$refs.TemplatesonModaltwo.verify=!0,this.$refs.TemplatesonModaltwo.verify_select=!1,this.$refs.TemplatesonModaltwo.unVerify=!0,this.$refs.TemplatesonModaltwo.cxsp=!1):e.endsWith("emergency_data_audited")?(this.urlcong.list=this.urlcong.list+"?verifyStatus=1",this.$refs.TemplatesonModaltwo.verify=!0,this.$refs.TemplatesonModaltwo.verify_select=!1,this.$refs.TemplatesonModaltwo.unVerify=!1,this.$refs.TemplatesonModaltwo.cxsp=!1):e.endsWith("emergency_data_unaudit")&&(this.urlcong.list=this.urlcong.list+"?verifyStatus=-1",this.$refs.TemplatesonModaltwo.verify=!0,this.$refs.TemplatesonModaltwo.verify_select=!1,this.$refs.TemplatesonModaltwo.unVerify=!0,this.$refs.TemplatesonModaltwo.cxsp=!0)},urlqiehuan:function(e){var t=e.split(","),n=t[0],r=t[1];console.log("动态-切换tab页时动态变更所有接口连接:"+n+" save_code:"+r),this.urlcong.list=this.urlchushi.list+this.templatetable+"/"+n,this.urlcong.add=this.urlchushi.add+this.templatetable+"/"+n,this.urlcong.edit=this.urlchushi.edit+this.templatetable+"/"+n,this.urlcong.delete=this.urlchushi.delete+this.templatetable+"/"+n,this.urlcong.notes=this.urlchushi.notes+this.templatetable+"/"+n,this.urlcong.deletedb2=this.urlchushi.deletedb2+n;var i=this.$route.path;i.endsWith("emergency_data_audit")?this.urlcong.list=this.urlcong.list+"?verifyStatus=0":i.endsWith("emergency_data_audited")?this.urlcong.list=this.urlcong.list+"?verifyStatus=1":i.endsWith("emergency_data_unaudit")&&(this.urlcong.list=this.urlcong.list+"?verifyStatus=-1"),this.shujuqiehuan(r)},shujuqiehuan:function(e){var t=this;Object(o["d"])(this.urlcong.list,{save_code:e}).then((function(e){e.success?(console.log("从表对应数据重新获取完成:"+e.result.records.length),t.$refs.TemplatesonModaltwo.$refs.TemplateeditsonTabletwo.dataSource=e.result.records):(t.$message.warning(e.message),t.$refs.TemplatesonModaltwo.$refs.TemplateeditsonTabletwo.dataSource=[]),t.loading=!1}))}},watch:{"myQueryParam.name":{handler:function(e,t){this.queryParam.name="*"+this.myQueryParam.name+"*"},deep:!0},"queryParam.name":{handler:function(e,t){void 0==e&&(this.myQueryParam.name="")},deep:!0},"queryParam.village":{handler:function(e,t){void 0==e&&(this.showDefaultParams=[])},deep:!0}}})},"65bd":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"区县权限配置"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.slotTitle;return n("span",{},[e._v("\n          "+e._s(r)+"\n        ")])}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("4ec3"),s={name:"DistrictModal",components:{},data:function(){return{roleId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"区县权限配置",visible:!1,loading:!1}},methods:{onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.roleId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={roleId:e.roleId,permissionIds:e.checkedKeys.join(","),lastpermissionIds:e.defaultCheckedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["jb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["M"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["O"])({roleId:e.roleId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},l=s,c=(n("63e2"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"bb2ece40",null);t["default"]=u.exports},6611:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("01d4"),i=n("0ec0"),o=n("1300"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.extent=t,o.pixelRatio_=r,o.resolution=n,o.state=i,o}return a(t,e),t.prototype.changed=function(){this.dispatchEvent(r["a"].CHANGE)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return Object(o["b"])()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){Object(o["b"])()},t}(i["a"]),l=s,c=n("869f"),u=n("617d"),d=n("0af5"),f=n("1e8d"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,c["a"].IDLE)||this;return s.src_=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=c["a"].IDLE,s.imageLoadFunction_=a,s}h(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=c["a"].ERROR,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(d["A"])(this.extent)/this.image_.height),this.state=c["a"].LOADED,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state!=c["a"].IDLE&&this.state!=c["a"].ERROR||(this.state=c["a"].LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=p(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(e){this.image_=e},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}})(l);function p(e,t,n){var i=e;if(i.src&&u["c"]){var o=i.decode(),a=!0,s=function(){a=!1};return o.then((function(){a&&t()})).catch((function(e){a&&("EncodingError"===e.name&&"Invalid image type."===e.message?t():n())})),s}var l=[Object(f["b"])(i,r["a"].LOAD,t),Object(f["b"])(i,r["a"].ERROR,n)];return function(){l.forEach(f["c"])}}},6620:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单号"}},[n("a-input",{attrs:{placeholder:"请输入订单号"},model:{value:e.queryParam.orderCode,callback:function(t){e.$set(e.queryParam,"orderCode",t)},expression:"queryParam.orderCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单类型"}},[n("a-select",{attrs:{placeholder:"请输入订单类型"},model:{value:e.queryParam.ctype,callback:function(t){e.$set(e.queryParam,"ctype",t)},expression:"queryParam.ctype"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),n("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",filterMultiple:"filterMultiple",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:e.type},customRow:e.clickThenCheck},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])})],1),n("a-tabs",{attrs:{defaultActiveKey:"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"客户信息"}},[n("Jeecg-Order-Customer-List",{ref:"JeecgOrderCustomerList"})],1),n("a-tab-pane",{key:"2",attrs:{tab:"机票信息",forceRender:""}},[n("Jeecg-Order-Ticket-List",{ref:"JeecgOrderTicketList"})],1)],1),n("jeecgOrderDMain-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=(n("28a5"),n("dd9d")),a=n("d544"),s=n("8c22"),l=n("0fea"),c=n("39a5"),u=n("aa8e"),d=n("b65a"),f={name:"JeecgOrderDMainList",mixins:[d["a"]],components:{JeecgOrderTicketModal:u["default"],JeecgOrderCustomerModal:c["default"],JeecgOrderDMainModal:o["default"],JeecgOrderCustomerList:a["default"],JeecgOrderTicketList:s["default"]},data:function(){return{description:"订单管理页面",ipagination:{current:1,pageSize:5,pageSizeOptions:["5","10","20"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"订单号",align:"center",dataIndex:"orderCode"},{title:"订单类型",align:"center",dataIndex:"ctype",customRender:function(e){var t="";return"1"===e?t="国内订单":"2"===e&&(t="国际订单"),t}},{title:"订单日期",align:"center",dataIndex:"orderDate"},{title:"订单金额",align:"center",dataIndex:"orderMoney"},{title:"订单备注",align:"center",dataIndex:"content"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],type:"radio",url:{list:"/test/order/orderList",delete:"/test/order/delete",deleteBatch:"/test/order/deleteBatch"}}},methods:{clickThenCheck:function(e){var t=this;return{on:{click:function(){t.onSelectChange(e.id.split(","),[e])}}}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t,this.$refs.JeecgOrderCustomerList.getOrderMain(this.selectedRowKeys[0]),this.$refs.JeecgOrderTicketList.getOrderMain(this.selectedRowKeys[0])},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[],this.$refs.JeecgOrderCustomerList.queryParam.mainId=null,this.$refs.JeecgOrderTicketList.queryParam.mainId=null,this.$refs.JeecgOrderCustomerList.loadData(),this.$refs.JeecgOrderTicketList.loadData(),this.$refs.JeecgOrderCustomerList.selectedRowKeys=[],this.$refs.JeecgOrderCustomerList.selectionRows=[],this.$refs.JeecgOrderTicketList.selectedRowKeys=[],this.$refs.JeecgOrderTicketList.selectionRows=[]},handleDelete:function(e){var t=this,n=this;Object(l["a"])(n.url.delete,{id:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),t.$refs.JeecgOrderCustomerList.loadData(),t.$refs.JeecgOrderTicketList.loadData()):n.$message.warning(e.message)}))},searchQuery:function(){this.selectedRowKeys=[],this.selectionRows=[],this.$refs.JeecgOrderCustomerList.queryParam.mainId=null,this.$refs.JeecgOrderTicketList.queryParam.mainId=null,this.$refs.JeecgOrderCustomerList.loadData(),this.$refs.JeecgOrderTicketList.loadData(),this.$refs.JeecgOrderCustomerList.selectedRowKeys=[],this.$refs.JeecgOrderCustomerList.selectionRows=[],this.$refs.JeecgOrderTicketList.selectedRowKeys=[],this.$refs.JeecgOrderTicketList.selectionRows=[],this.loadData()}}},h=f,p=(n("a468"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"1bacfb3c",null);t["default"]=m.exports},6668:function(e,t,n){"use strict";n("f44f")},6692:function(e,t,n){var r=n("9ba1"),i=n("be46"),o=n("3726").indexOf,a=n("4a43");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"66b6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"所拥有的图层分类"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand,select:e.onTreeNodeSelect},scopedSlots:e._u([{key:"hasDatarule",fn:function(t){var r=t.slotTitle,i=t.ruleFlag;return n("span",{},[e._v("\n          "+e._s(r)),i?n("a-icon",{staticStyle:{"margin-left":"5px",color:"red"},attrs:{type:"align-left"}}):e._e()],1)}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:function(t){return e.switchCheckStrictly(1)}}},[e._v("父子关联")]),n("a-menu-item",{key:"2",on:{click:function(t){return e.switchCheckStrictly(2)}}},[e._v("取消关联")]),n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")]),n("a-menu-item",{key:"5",on:{click:e.expandAll}},[e._v("展开所有")]),n("a-menu-item",{key:"6",on:{click:e.closeAll}},[e._v("合并所有")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1),n("role-datarule-modal",{ref:"datarule"})],1)},i=[],o=n("2909"),a=n("4ec3"),s=n("2285"),l={name:"UserRoleCategory",components:{RoleDataruleModal:s["default"]},data:function(){return{roleId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"图层分类配置",visible:!1,loading:!1}},methods:{onTreeNodeSelect:function(e){this.$refs.datarule.show(e[0],this.roleId)},onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.roleId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={roleId:e.roleId,categoryIds:e.checkedKeys.join(","),lastCategoryIds:e.defaultCheckedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["lb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["I"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["V"])({roleId:e.roleId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},c=l,u=(n("255a"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"0605647e",null);t["default"]=d.exports},6725:function(e,t,n){"use strict";n("a1af")},6741:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-skeleton",{attrs:{active:"",loading:e.loading,paragraph:{rows:17}}},[n("a-card",{attrs:{bordered:!1}},[n("a-alert",{attrs:{type:"info",showIcon:!0}},[n("div",{attrs:{slot:"message"},slot:"message"},[e._v("\n        上次更新时间:"+e._s(this.time)+"\n        "),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:e.handleClickUpdate}},[e._v("立即更新")])],1)]),n("a-table",{staticStyle:{"margin-top":"20px"},attrs:{rowKey:"id",size:"middle",columns:e.columns,dataSource:e.dataSource,pagination:!1,loading:e.tableLoading},scopedSlots:e._u([{key:"param",fn:function(t,r){return[n("a-tag",{attrs:{color:e.textInfo[r.param].color}},[e._v(e._s(t))])]}},{key:"text",fn:function(t,n){return[e._v("\n        "+e._s(e.textInfo[n.param].text)+"\n      ")]}},{key:"value",fn:function(t,n){return[e._v("\n        "+e._s(t)+" "+e._s(e.textInfo[n.param].unit)+"\n      ")]}}])})],1)],1)},i=[],o=(n("c5f6"),n("7f7f"),n("ac6a"),n("5df3"),n("c1df")),a=n.n(o),s=n("0fea");a.a.locale("zh-cn");var l={data:function(){return{time:"",loading:!0,tableLoading:!0,columns:[{title:"参数",width:"30%",dataIndex:"param",scopedSlots:{customRender:"param"}},{title:"描述",width:"40%",dataIndex:"text",scopedSlots:{customRender:"text"}},{title:"当前值",width:"30%",dataIndex:"value",scopedSlots:{customRender:"value"}}],dataSource:[],textInfo:{"jvm.memory.max":{color:"purple",text:"JVM 最大内存",unit:"MB"},"jvm.memory.committed":{color:"purple",text:"JVM 可用内存",unit:"MB"},"jvm.memory.used":{color:"purple",text:"JVM 已用内存",unit:"MB"},"jvm.buffer.memory.used":{color:"cyan",text:"JVM 缓冲区已用内存",unit:"MB"},"jvm.buffer.count":{color:"cyan",text:"当前缓冲区数量",unit:"个"},"jvm.threads.daemon":{color:"green",text:"JVM 守护线程数量",unit:"个"},"jvm.threads.live":{color:"green",text:"JVM 当前活跃线程数量",unit:"个"},"jvm.threads.peak":{color:"green",text:"JVM 峰值线程数量",unit:"个"},"jvm.classes.loaded":{color:"orange",text:"JVM 已加载 Class 数量",unit:"个"},"jvm.classes.unloaded":{color:"orange",text:"JVM 未加载 Class 数量",unit:"个"},"jvm.gc.memory.allocated":{color:"pink",text:"GC 时, 年轻代分配的内存空间",unit:"MB"},"jvm.gc.memory.promoted":{color:"pink",text:"GC 时, 老年代分配的内存空间",unit:"MB"},"jvm.gc.max.data.size":{color:"pink",text:"GC 时, 老年代的最大内存空间",unit:"MB"},"jvm.gc.live.data.size":{color:"pink",text:"FullGC 时, 老年代的内存空间",unit:"MB"},"jvm.gc.pause.count":{color:"blue",text:"系统启动以来GC 次数",unit:"次"},"jvm.gc.pause.totalTime":{color:"blue",text:"系统启动以来GC 总耗时",unit:"秒"}},moreInfo:{"jvm.gc.pause":[".count",".totalTime"]}}},mounted:function(){this.loadTomcatInfo()},methods:{handleClickUpdate:function(){this.loadTomcatInfo()},loadTomcatInfo:function(){var e=this;this.tableLoading=!0,this.time=a()().format("YYYY年MM月DD日 HH时mm分ss秒"),Promise.all([Object(s["d"])("actuator/metrics/jvm.memory.max"),Object(s["d"])("actuator/metrics/jvm.memory.committed"),Object(s["d"])("actuator/metrics/jvm.memory.used"),Object(s["d"])("actuator/metrics/jvm.buffer.memory.used"),Object(s["d"])("actuator/metrics/jvm.buffer.count"),Object(s["d"])("actuator/metrics/jvm.threads.daemon"),Object(s["d"])("actuator/metrics/jvm.threads.live"),Object(s["d"])("actuator/metrics/jvm.threads.peak"),Object(s["d"])("actuator/metrics/jvm.classes.loaded"),Object(s["d"])("actuator/metrics/jvm.classes.unloaded"),Object(s["d"])("actuator/metrics/jvm.gc.memory.allocated"),Object(s["d"])("actuator/metrics/jvm.gc.memory.promoted"),Object(s["d"])("actuator/metrics/jvm.gc.max.data.size"),Object(s["d"])("actuator/metrics/jvm.gc.live.data.size"),Object(s["d"])("actuator/metrics/jvm.gc.pause")]).then((function(t){var n=[];t.forEach((function(t,r){var i=e.moreInfo[t.name];i instanceof Array||(i=[""]),i.forEach((function(i,o){var a=t.name+i,s=t.measurements[o].value;"jvm.memory.max"!==a&&"jvm.memory.committed"!==a&&"jvm.memory.used"!==a&&"jvm.buffer.memory.used"!==a&&"jvm.gc.memory.allocated"!==a&&"jvm.gc.memory.promoted"!==a&&"jvm.gc.max.data.size"!==a&&"jvm.gc.live.data.size"!==a||(s=e.convert(s,Number)),n.push({id:a+r,param:a,text:"false value",value:s})}))})),e.dataSource=n})).catch((function(t){console.error(t),e.$message.error("获取JVM信息失败")})).finally((function(){e.loading=!1,e.tableLoading=!1}))},convert:function(e,t){return t===Number?Number(e/1048576).toFixed(3):t===Date?a()(1e3*e).format("YYYY-MM-DD HH:mm:ss"):e}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},6770:function(e,t,n){},"678a":function(e,t,n){"use strict";n("d268")},"679b":function(e,t,n){var r=n("9c2cc"),i=n("5b1a"),o=n("58b2"),a=n("1b2c");r({target:"Reflect",stat:!0,sham:!a},{getPrototypeOf:function(e){return o(i(e))}})},6816:function(e,t,n){"use strict";n("22b8")},6852:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-radio-group",{model:{value:e.icon_url,callback:function(t){e.icon_url=t},expression:"icon_url"}},e._l(e.fileList,(function(e,t){return n("a-radio-button",{staticStyle:{width:"100px",height:"100px"},attrs:{value:e.name}},[n("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.url}})])})),1)],1)},i=[],o=n("0fea"),a={name:"MainMenuModal",data:function(){return{title:"选择图例",visible:!1,confirmLoading:!1,fileList:[],icon_url:"",url:{list:"/sys/indexIcon/getIconWarehouse/index_icon_warehouse"}}},created:function(){this.loadchooseData()},methods:{handleOk:function(){this.$emit("ok",this.icon_url),this.close()},handleCancel:function(){this.close()},close:function(){this.visible=!1},loadchooseData:function(){var e=this;Object(o["d"])(this.url.list,{}).then((function(t){console.log(t),t.success?e.fileList=t.result:that.$message.warning(t.message)})).catch((function(t){e.$message.error("获取HTTP信息失败")}))}}},s=a,l=(n("438a"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"5db74f4a",null);t["default"]=c.exports},"68d2":function(e,t,n){var r,i,o=n("2ace"),a=n("784d"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(r=c.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"68da":function(e,t,n){var r=n("8f26"),i=n("e207");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"692e":function(e,t,n){var r={"./App.vue":"3dfd","./components/AvatarList/Item.vue":"58f7","./components/AvatarList/List.vue":"a40c","./components/ChartCard.vue":"05ed","./components/CountDown/CountDown.vue":"6a2a","./components/Ellipsis/Ellipsis.vue":"2095","./components/NumberInfo/NumberInfo.vue":"23fe","./components/Trend/Trend.vue":"996b","./components/chart/AreaChartTy.vue":"f552","./components/chart/Bar.vue":"edd9","./components/chart/BarAndLine.vue":"e659","./components/chart/BarMultid.vue":"8191","./components/chart/DashChartDemo.vue":"972f","./components/chart/LineChartMultid.vue":"4ec6","./components/chart/Liquid.vue":"4ced","./components/chart/MiniArea.vue":"1d43","./components/chart/MiniBar.vue":"942d","./components/chart/MiniProgress.vue":"bf13","./components/chart/Pie.vue":"6cb2","./components/chart/Radar.vue":"3981","./components/chart/RankList.vue":"0923","./components/chart/TransferBar.vue":"1cf5","./components/chart/Trend.vue":"527e","./components/checkboxDictModal.vue":"8cac","./components/city/CitySelect.vue":"d9be","./components/city/StreetSelect.vue":"90e4","./components/dataTreeResource.vue":"d329","./components/dataTreeResourceDept.vue":"1342","./components/dataTreeRisk.vue":"a5f0","./components/dataTreeRiskDept.vue":"b177","./components/dataTreeVerfiyResource.vue":"c7ce","./components/dataTreeXwy.vue":"8544","./components/dict/JDictSelectTag.vue":"7b16","./components/dict/JMultiSelectTag.vue":"f680","./components/dict/JSearchSelectTag.vue":"c010","./components/inputSearch.vue":"84a1","./components/jeecg/JCheckbox.vue":"a726","./components/jeecg/JCodeEditor.vue":"a876","./components/jeecg/JCron.vue":"1e29","./components/jeecg/JDate.vue":"2dab","./components/jeecg/JEditableTable.vue":"7550","./components/jeecg/JEditor.vue":"a061","./components/jeecg/JEllipsis.vue":"d579","./components/jeecg/JFormContainer.vue":"c681","./components/jeecg/JGraphicCode.vue":"4201","./components/jeecg/JImageUpload.vue":"e610","./components/jeecg/JImportModal.vue":"7c93","./components/jeecg/JSelectMultiple.vue":"13d2","./components/jeecg/JSlider.vue":"ae14","./components/jeecg/JSuperQuery.vue":"8c6e","./components/jeecg/JTreeDict.vue":"4165","./components/jeecg/JTreeSelect.vue":"b098","./components/jeecg/JTreeTable.vue":"6b87","./components/jeecg/JUpload.vue":"cf74","./components/jeecg/JVideoTreeSelect.vue":"61d0","./components/jeecg/modal/JCronModal.vue":"0ed5","./components/jeecgbiz/JSelectDepart.vue":"fe54","./components/jeecgbiz/JSelectDutyMulSel.vue":"b6eb","./components/jeecgbiz/JSelectDutySingle.vue":"f607","./components/jeecgbiz/JSelectDutyStreet.vue":"d185","./components/jeecgbiz/JSelectDutyUser.vue":"7c57","./components/jeecgbiz/JSelectMultiUser.vue":"0f9d","./components/jeecgbiz/JSelectUserByDep.vue":"c14a","./components/jeecgbiz/modal/JSelectDepartModal.vue":"b0cd","./components/jeecgbiz/modal/JSelectDutyMulSelModel.vue":"0243","./components/jeecgbiz/modal/JSelectDutySingleModel.vue":"af5c","./components/jeecgbiz/modal/JSelectDutyStreetModel.vue":"7e3c","./components/jeecgbiz/modal/JSelectDutyUserModel.vue":"2413","./components/jeecgbiz/modal/JSelectMultiUserModal.vue":"06db","./components/jeecgbiz/modal/JSelectUserByDepModal.vue":"a505","./components/jeecgbiz/modal/SelectUserListModal.vue":"9caf","./components/layouts/BackMap.vue":"ba3b","./components/layouts/BackMapArea.vue":"43fe","./components/layouts/BackMapXwy.vue":"7171","./components/layouts/BasicLayout.vue":"5f32","./components/layouts/BlankLayout.vue":"e017","./components/layouts/IframeFReportView.vue":"4505","./components/layouts/IframePageView.vue":"e6b8","./components/layouts/PageView.vue":"345a","./components/layouts/RouteView.vue":"501f","./components/layouts/TabLayout.vue":"0f63","./components/layouts/UserLayout.vue":"7efd","./components/mapChooseLine.vue":"854b","./components/mapChoosePoint.vue":"de10","./components/mapChoosePoint_copy.vue":"2a5d","./components/mapChoosePoints.vue":"cba0","./components/mapChoosePoints_video.vue":"5842","./components/mapChooseQuart.vue":"35d2","./components/mapChooseQuarts.vue":"e734","./components/mapTable.vue":"80f1","./components/mapTabletwo.vue":"7a44","./components/mapXwyChoosePoint.vue":"c120","./components/mapXwyChoosePoints.vue":"6020","./components/mapXwyTable.vue":"d46e","./components/menu/Contextmenu.vue":"91ad","./components/menu/SideMenu.vue":"e5f9","./components/page/GlobalFooter.vue":"911c","./components/page/GlobalHeader.vue":"630d","./components/page/GlobalLayout.vue":"8415","./components/page/PageHeader.vue":"603b","./components/page/PageLayout.vue":"b445","./components/page/SHeaderNotice.vue":"422d","./components/setting/SettingDrawer.vue":"2191","./components/setting/SettingItem.vue":"5d9b","./components/table/StandardTable.vue":"3521","./components/tools/Breadcrumb.vue":"e97b","./components/tools/DepartSelect.vue":"e2c7","./components/tools/DetailList.vue":"c16f","./components/tools/FooterToolBar.vue":"c984","./components/tools/HeadInfo.vue":"81d1","./components/tools/HeaderNotice.vue":"a4b0","./components/tools/Logo.vue":"a250","./components/tools/ShowAnnouncement.vue":"2bd9","./components/tools/TwoStepCaptcha.vue":"2ca2","./components/tools/UserMenu.vue":"8d4d","./components/tools/UserPassword.vue":"ce42","./components/tools/UserShowType.vue":"70cf","./views/404.vue":"8cdb","./views/Home.vue":"bb51","./views/TemplateEditSon/TemplateEditSon.vue":"0451","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongModal1.vue":"166f","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongModal2.vue":"2286b","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonCongtwo.vue":"7362","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonDuoxuan.vue":"6434","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonModal.vue":"26a1","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonModaltwo.vue":"2ab0","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonTable.vue":"d737","./views/TemplateEditSon/TemplateEditSonModal/TemplateEditSonTabletwo.vue":"ce6e","./views/account/center/Index.vue":"f2f0","./views/account/center/page/App.vue":"2f5e","./views/account/center/page/Article.vue":"b8ea","./views/account/center/page/Project.vue":"b8c5","./views/account/settings/AvatarModal.vue":"8d90","./views/account/settings/BaseSetting.vue":"33e6","./views/account/settings/Binding.vue":"91be","./views/account/settings/Custom.vue":"55c3","./views/account/settings/Index.vue":"cd07","./views/account/settings/Notification.vue":"0c3f","./views/account/settings/Security.vue":"a9a9","./views/activiti/ActivitiList.vue":"04f5","./views/activiti/modules/ActivitiModal.vue":"0b20","./views/activiti/modules/ActivitiModal__Style#Drawer.vue":"4489","./views/aqsc/aqsc_category/aqsc_category.vue":"6a70","./views/aqsc/aqsc_category/model/aqscCategoryModel.vue":"2c74","./views/aqsc/aqsc_category/modules/AqscCategoryDistrictModal.vue":"631d","./views/coverage/CoverageList.vue":"09cc","./views/coverage/modules/CoverageModal.vue":"4f86","./views/coverage/modules/CoverageModal__Style#Drawer.vue":"e46f","./views/dashboard/Analysis.vue":"2f3a","./views/dashboard/Monitor.vue":"0b56","./views/dashboard/Workplace.vue":"004c","./views/exception/403.vue":"e409","./views/exception/404.vue":"cc89","./views/exception/500.vue":"6c05","./views/exception/ExceptionPage.vue":"0673","./views/form/BasicForm.vue":"6239","./views/form/advancedForm/AdvancedForm.vue":"70d7","./views/form/advancedForm/RepositoryForm.vue":"cd43","./views/form/advancedForm/TaskForm.vue":"8dd6","./views/form/jzjz/MenuModuleList.vue":"f949","./views/form/jzjz/modules/MenuModuleModal.vue":"34f2","./views/form/map_point_quart_line/MapPointQuartLineList.vue":"ab7a","./views/form/map_point_quart_line/modules/MapPointQuartLineModal.vue":"7f04","./views/form/map_point_quart_line/modules/MapPointQuartLineModal__Style#Drawer.vue":"0b36","./views/form/menuindex/JZJZHomePage.vue":"84a6","./views/form/menuindex/MonitorHomePage.vue":"7679","./views/form/menuindex/SafeRiskHomePage.vue":"3d45","./views/form/monitor/MenuModuleList.vue":"c2f8","./views/form/monitor/modules/MenuModuleModal.vue":"1720","./views/form/qyyqgl/JeecgOrderCustomerList.vue":"2fe0","./views/form/qyyqgl/JeecgOrderDMainList.vue":"6c57","./views/form/qyyqgl/TableExpandeSu.vue":"5422","./views/form/qyyqgl/modules/JeecgOrderCustomerModal.vue":"4dc0","./views/form/qyyqgl/modules/JeecgOrderDMainModal.vue":"2143","./views/form/qyyqgl/modules/planeFigureModal.vue":"826f","./views/form/saferisk/MenuModuleList.vue":"22c5","./views/form/saferisk/modules/MenuModuleModal.vue":"78e4","./views/form/smoke/SmokeAlarmDeviceHisList.vue":"f6f8","./views/form/smoke/SmokeAlarmDeviceList.vue":"5293","./views/form/smoke/SmokeDeviceList.vue":"46f0","./views/form/smoke/modules/SmokeAlarmDeviceHisModal.vue":"4f7d","./views/form/smoke/modules/SmokeAlarmDeviceModal.vue":"ab53","./views/form/smoke/modules/SmokeDeviceModal.vue":"9b7d","./views/form/stepForm/Step1.vue":"82ef","./views/form/stepForm/Step2.vue":"f4a3","./views/form/stepForm/Step3.vue":"a462","./views/form/stepForm/StepForm.vue":"f311","./views/form/template/TemplateList.vue":"41b8","./views/form/template/XwyTemplateList.vue":"ba5a","./views/form/template/modules/Fileup.vue":"98ff","./views/form/template/modules/TemplateModal.vue":"b376","./views/form/template/modules/XwyTemplateModal.vue":"237a","./views/form/template_aqjgzf/TemplateList.vue":"2113","./views/form/template_aqjgzf/mapTable.vue":"6524","./views/form/template_aqjgzf/modules/TemplateModal.vue":"247d","./views/form/templateson/TemplatesonList.vue":"16fd","./views/form/templateson/modules/Fileup.vue":"ab8b","./views/form/templateson/modules/TemplateeditsonTabletwo.vue":"ba2e","./views/form/templateson/modules/TemplatesonModal.vue":"dc6f","./views/form/templateson/modules/TemplatesonModaltwo.vue":"b9ae","./views/form/templatety/TemplateList.vue":"9c41","./views/form/templatety/TemplateModal.vue":"9df0","./views/form/templatety/mapTable.vue":"d8bd","./views/form/test_parent_test_122/TestParentTest_1List.vue":"94f4","./views/form/test_parent_test_122/modules/TestParentTest_1Modal.vue":"6a5c","./views/form/video/CompanyVideoList.vue":"a29b","./views/form/video/modules/CompanyVideoModal.vue":"f4bf","./views/form/video/modules/CompanyVideoModal__Style#Drawer.vue":"6bfc","./views/form/waterbureau/start/Start.vue":"ca84","./views/jeecg/ImagPreview.vue":"8629","./views/jeecg/ImgDragSort.vue":"042c","./views/jeecg/ImgTurnPage.vue":"4874","./views/jeecg/InterfaceTest.vue":"ff2a","./views/jeecg/JeecgDemoList.vue":"15dc","./views/jeecg/JeecgEditableTableExample.vue":"b020","./views/jeecg/JeecgOrderMainList.vue":"9b15","./views/jeecg/JeecgOrderMainListForJEditableTable.vue":"b2da","./views/jeecg/JeecgPdfView.vue":"19c0","./views/jeecg/JeecgTreeTable.vue":"da9b","./views/jeecg/PrintDemo.vue":"91b6","./views/jeecg/RowspanTable.vue":"3826","./views/jeecg/SelectDemo.vue":"b2b7","./views/jeecg/SplitPanel.vue":"7896","./views/jeecg/TableExpandeSub.vue":"8428","./views/jeecg/TableTotal.vue":"0467","./views/jeecg/helloworld.vue":"33b1","./views/jeecg/helloworld2.vue":"2f9b","./views/jeecg/modules/JEditableTable/DefaultTable.vue":"ff3c","./views/jeecg/modules/JEditableTable/ReadOnlyTable.vue":"9ba5","./views/jeecg/modules/JEditableTable/ThreeLinkage.vue":"01fe","./views/jeecg/modules/JeecgDemoModal.vue":"c943","./views/jeecg/modules/JeecgDemoTabsModal.vue":"3335","./views/jeecg/modules/JeecgOrderMainModal.vue":"8a45","./views/jeecg/modules/JeecgOrderModalForJEditableTable.vue":"b8ad3","./views/jeecg/modules/PdfPreviewModal.vue":"588f","./views/jeecg/modules/SplitPanelA.vue":"54d3","./views/jeecg/modules/SplitPanelB.vue":"9606","./views/jeecg/modules/SplitPanelModal.vue":"5d1e","./views/jeecg/modules/SuperQueryModal.vue":"f534","./views/jeecg/modules/VueCronModal.vue":"2a1c","./views/jeecg/report/Analysis.vue":"617d0","./views/jeecg/report/ArchivesStatisticst.vue":"2832","./views/jeecg/report/ViserChartDemo.vue":"5139","./views/jeecg/tablist/JeecgOrderCustomerList.vue":"d544","./views/jeecg/tablist/JeecgOrderDMainList.vue":"6620","./views/jeecg/tablist/JeecgOrderTicketList.vue":"8c22","./views/jeecg/tablist/form/JeecgOrderCustomerModal.vue":"39a5","./views/jeecg/tablist/form/JeecgOrderDMainModal.vue":"dd9d","./views/jeecg/tablist/form/JeecgOrderTicketModal.vue":"aa8e","./views/list/CardList.vue":"d039","./views/list/PermissionList.vue":"5aa8","./views/list/RoleList.vue":"4002","./views/list/StandardList.vue":"2d51","./views/list/TableInnerEditList.vue":"5831","./views/list/TableList.vue":"f5eb","./views/list/UserList.vue":"5eda","./views/list/modules/RoleModal.vue":"0b38","./views/list/search/SearchLayout.vue":"9cbf","./views/modules/message/SysMessageList.vue":"17d8","./views/modules/message/SysMessageTemplateList.vue":"fd15","./views/modules/message/modules/SysMessageModal.vue":"89ba","./views/modules/message/modules/SysMessageTemplateModal.vue":"e5ab","./views/modules/message/modules/SysMessageTestModal.vue":"86a6","./views/modules/monitor/DiskMonitoring.vue":"a3fd","./views/modules/monitor/HttpTrace.vue":"3d75","./views/modules/monitor/JvmInfo.vue":"6741","./views/modules/monitor/RedisInfo.vue":"ebfa","./views/modules/monitor/RedisTerminal.vue":"b02a","./views/modules/monitor/SystemInfo.vue":"48f7","./views/modules/monitor/TomcatInfo.vue":"c3e2","./views/modules/online/cgform/OnlCgformHeadList.vue":"e3a7","./views/modules/online/cgform/auto/OnlCgformAutoList.vue":"9937","./views/modules/online/cgform/auto/OnlCgformTreeList.vue":"725c","./views/nullPage.vue":"bdb3","./views/profile/advanced/Advanced.vue":"b644","./views/profile/basic/Index.vue":"df55","./views/publicFormIndex/aqsc_xwy_source.vue":"a5b0","./views/publicFormIndex/emergency_data_audit.vue":"fa27","./views/publicFormIndex/emergency_data_audited.vue":"8a84","./views/publicFormIndex/emergency_data_unaudit.vue":"fdde0","./views/publicFormIndex/emergency_resource_index.vue":"26ea","./views/publicFormIndex/emergency_resource_index_dept.vue":"21dd","./views/publicFormIndex/emergency_risk_index.vue":"6e0c","./views/publicFormIndex/emergency_risk_index_dept.vue":"5d50","./views/result/Error.vue":"f32b","./views/result/Result.vue":"9a3d","./views/result/Success.vue":"3ada","./views/system/DataLogList.vue":"4867","./views/system/DepartList.vue":"c9c2","./views/system/DepartList2.vue":"444c","./views/system/DepartUserList.vue":"806e","./views/system/DictItemList.vue":"59a0","./views/system/DictList.vue":"b4e3","./views/system/DutyArrangeCustom.vue":"815a","./views/system/IndexIconEnterPrise.vue":"6477","./views/system/IndexIconList.vue":"ce6b","./views/system/IndexIconOnePicture.vue":"e4b6","./views/system/IndexIconWarehouse.vue":"9cc3","./views/system/LogList.vue":"2977","./views/system/MainMenuList.vue":"4b5c","./views/system/PermissionDataRuleList.vue":"56cd1","./views/system/PermissionList.vue":"25f0","./views/system/QuartzJobList.vue":"7a9d","./views/system/RoleList.vue":"4fa6","./views/system/RoleUserList.vue":"01c0","./views/system/StreetList.vue":"a16a","./views/system/SysAnnouncementList.vue":"1dc5","./views/system/SysCategoryList.vue":"ddf2","./views/system/SysCategoryWriteList.vue":"df2c","./views/system/TuoZhuai.vue":"60df","./views/system/UserAnnouncementList.vue":"bb705","./views/system/UserList.vue":"0d4b","./views/system/WlgzVideoDictionaryList.vue":"a217","./views/system/modules/CategoryDistrictModal.vue":"f1e3","./views/system/modules/DataLogCompareModal.vue":"fcbc","./views/system/modules/DataLogModal.vue":"b4690","./views/system/modules/DepartModal.vue":"c1af","./views/system/modules/DepartWindow.vue":"c63e","./views/system/modules/DeptBaseInfo.vue":"e326","./views/system/modules/DeptUserInfo.vue":"5859","./views/system/modules/DictItemModal.vue":"8144","./views/system/modules/DictModal.vue":"57ed","./views/system/modules/DistrictModal.vue":"65bd","./views/system/modules/DistrictModalHide.vue":"c594","./views/system/modules/DutyArrangeCustomizedModal.vue":"9bde","./views/system/modules/DutyArrangeCustomizedModal__Style#Drawer.vue":"50f0","./views/system/modules/IndexIcon.vue":"6852","./views/system/modules/IndexIconModal.vue":"cb78","./views/system/modules/MainMenuModal.vue":"f388","./views/system/modules/MenuHideModal.vue":"a9c6","./views/system/modules/MenuModal.vue":"0c7c","./views/system/modules/PasswordModal.vue":"ddf9","./views/system/modules/PermissionDataRuleModal.vue":"7c33","./views/system/modules/PermissionModal.vue":"b90e","./views/system/modules/QuartzJobModal.vue":"077e","./views/system/modules/RemarkModal.vue":"4488","./views/system/modules/RoleDataruleModal.vue":"2285","./views/system/modules/RoleModal.vue":"2a70","./views/system/modules/SelectUserListModal.vue":"ed2a","./views/system/modules/SelectUserModal.vue":"b3c4","./views/system/modules/SelectUserModal2.vue":"b81d","./views/system/modules/SelectWlVideoModal.vue":"4a0f","./views/system/modules/SysAnnouncementModal.vue":"4647","./views/system/modules/SysCategoryModal.vue":"f1cf","./views/system/modules/SysCategoryWriteModal.vue":"ebae","./views/system/modules/SysUserAgentModal.vue":"74c6","./views/system/modules/UserDepartCategory.vue":"7153","./views/system/modules/UserModal.vue":"418f","./views/system/modules/UserRoleCategory.vue":"66b6","./views/system/modules/UserRoleModal.vue":"ee18","./views/system/modules/WlgzVideoDictionaryModal.vue":"5ea7","./views/system/modules/icon/Icons.vue":"11cb","./views/system/video/VideoLabelSetting.vue":"ae57","./views/system/video/VideoLabelSetting1.vue":"7f71","./views/system/video/VideoPlay.vue":"815e","./views/system/video/VideoTreeLabel.vue":"c880","./views/system/video/modules/VideoMenu.vue":"c0fa","./views/system/video/modules/WlgzVideoModal.vue":"db99","./views/system/video/modules/WlgzVideoModal__Style#Drawer.vue":"f4b0","./views/system/video/video.vue":"c925","./views/system/video/videoTable.vue":"a056","./views/tongji/tongji.vue":"0941","./views/user/Alteration.vue":"ffc3","./views/user/Login.vue":"ac2a","./views/user/Register.vue":"1348","./views/user/RegisterResult.vue":"1037","./views/user/Step1.vue":"f14a","./views/user/Step2.vue":"ba6d","./views/user/Step3.vue":"f6d9","./views/user/Step4.vue":"8e46"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="692e"},"693d":function(e,t,n){(function(e){"use strict";e(n("56b3"),n("9eb9"),n("d5e0"),n("f9d4"),n("a0bd"),n("7b00"),n("1b63"),n("76d2"),n("5bef"),n("e1de"))})((function(e){var t={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};e.defineMode("vue-template",(function(t,n){var r={token:function(e){if(e.match(/^\{\{.*?\}\}/))return"meta mustache";while(e.next()&&!e.match("{{",!1));return null}};return e.overlayMode(e.getMode(t,n.backdrop||"text/html"),r)})),e.defineMode("vue",(function(n){return e.getMode(n,{name:"htmlmixed",tags:t})}),"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),e.defineMIME("script/x-vue","vue"),e.defineMIME("text/x-vue","vue")}))},"699e":function(e,t,n){},"699f":function(e,t,n){},"69d8":function(e,t,n){"use strict";var r=n("6bd0"),i=n("83cf");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},"6a5c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1200,visible:e.visible,maskClosable:!1,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-row",[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"哈哈",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["aa",e.validatorRules.aa],expression:"[ 'aa', validatorRules.aa]"}],attrs:{placeholder:"请输入哈哈"}})],1)],1),n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"黑嘿",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["bb",e.validatorRules.bb],expression:"[ 'bb', validatorRules.bb]"}],attrs:{placeholder:"请输入黑嘿"}})],1)],1)],1)],1),n("a-tabs",{on:{change:e.handleChangeTabs},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-tab-pane",{key:e.refKeys[0],attrs:{tab:"子表",forceRender:!0}},[n("j-editable-table",{ref:e.refKeys[0],attrs:{loading:e.testChildTest_1Table.loading,columns:e.testChildTest_1Table.columns,dataSource:e.testChildTest_1Table.dataSource,maxHeight:300,rowNumber:!0,rowSelection:!0,actionButton:!0}})],1)],1)],1)],1)},i=[],o=n("be94"),a=(n("ac6a"),n("5df3"),n("88bc")),s=n.n(a),l=n("e2e0"),c=n("7550"),u=n("0fea"),d={components:{JEditableTable:c["default"]},data:function(){return{title:"操作",visible:!1,form:this.$form.createForm(this),confirmLoading:!1,model:{},labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:18}}}},methods:{getAllTable:function(){var e=this;if(!(this.refKeys instanceof Array))throw this.throwNotArray("refKeys");var t=this.refKeys.map((function(t){return Object(l["c"])(e,t)}));return Promise.all(t)},eachAllTable:function(e){this.getAllTable().then((function(t){t.forEach((function(t,n){"function"===typeof e&&e(t,n)}))}))},add:function(){"function"===typeof this.addBefore&&this.addBefore();var e=this.addDefaultRowNum;"number"!==typeof e&&(e=1,console.warn("由于你没有在 data 中定义 addDefaultRowNum 或 addDefaultRowNum 不是数字,所以默认添加一条空数据,如果不想默认添加空数据,请将定义 addDefaultRowNum 为 0")),this.eachAllTable((function(t){t.add(e)})),"function"===typeof this.addAfter&&this.addAfter(this.model),this.edit({})},edit:function(e){"function"===typeof this.editBefore&&this.editBefore(e),this.visible=!0,this.activeKey=this.refKeys[0],this.form.resetFields(),this.model=Object.assign({},e),"function"===typeof this.editAfter&&this.editAfter(this.model)},close:function(){this.visible=!1,this.eachAllTable((function(e){e.initialize()})),this.$emit("close")},requestSubTableData:function(e,t,n){n.loading=!0,Object(u["d"])(e,t).then((function(e){n.dataSource=e.result||[]})).finally((function(){n.loading=!1}))},request:function(e){var t=this,n=this.url.add,r="post";this.model.id&&(n=this.url.edit,r="put"),this.confirmLoading=!0,Object(u["i"])(n,e,r).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))},handleChangeTabs:function(e){Object(l["c"])(this,e).then((function(e){e.resetScrollTop()}))},handleCancel:function(){this.close()},handleOk:function(){var e=this;this.getAllTable().then((function(t){return Object(l["d"])(e.form,t)})).then((function(t){if("function"!==typeof e.classifyIntoFormData)throw e.throwNotFunction("classifyIntoFormData");var n=e.classifyIntoFormData(t);return e.request(n)})).catch((function(t){t.error===l["b"]?e.activeKey=null==t.index?e.activeKey:e.refKeys[t.index]:console.error(t)}))},throwNotFunction:function(e){return"".concat(e," 未定义或不是一个函数")},throwNotArray:function(e){return"".concat(e," 未定义或不是一个数组")}}},f={name:"TestParentTest_1Modal",mixins:[d],components:{},data:function(){return{labelCol:{span:6},wrapperCol:{span:16},labelCol2:{span:3},wrapperCol2:{span:20},addDefaultRowNum:1,validatorRules:{aa:{},bb:{}},refKeys:["testChildTest_1"],tableKeys:["testChildTest_1"],activeKey:"testChildTest_1",testChildTest_1Table:{loading:!1,dataSource:[],columns:[{title:"拉拉",key:"dd",type:l["a"].input,defaultValue:"",placeholder:"请输入${title}"},{title:"嘟嘟",key:"ee",type:l["a"].input,defaultValue:"",placeholder:"请输入${title}"}]},url:{add:"/test_parent_test_122/testParentTest_1/add",edit:"/test_parent_test_122/testParentTest_1/edit",testChildTest_1:{list:"/test_parent_test_122/testParentTest_1/queryTestChildTest_1ByMainId"}}}},methods:{getAllTable:function(){var e=this,t=this.tableKeys.map((function(t){return Object(l["c"])(e,t)}));return Promise.all(t)},editAfter:function(){var e=this,t=s()(this.model,"aa","bb");if(this.$nextTick((function(){e.form.setFieldsValue(t)})),this.model.id){var n={id:this.model.id};this.requestSubTableData(this.url.testChildTest_1.list,n,this.testChildTest_1Table)}},classifyIntoFormData:function(e){var t=Object.assign(this.model,e.formValue);return Object(o["a"])({},t,{testChildTest_1List:e.tablesValue[0].values})},validateError:function(e){this.$message.error(e)}}},h=f,p=n("2877"),m=Object(p["a"])(h,r,i,!1,null,"12a4dc2a",null);t["default"]=m.exports},"6a70":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新建")]),e.selectedRowKeys.length>0?n("a-dropdown",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}]},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1"},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("批量删除")],1)],1)],1):e._e()],1),n("a-table",e._b({ref:"table",attrs:{size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,expandedRowKeys:e.expandedRowKeys,pagination:e.ipagination},on:{expand:e.handleExpand,change:e.handleTableChange},scopedSlots:e._u([{key:"serial",fn:function(t,r,i){return n("span",{},[e._v("\n      "+e._s(i+1)+"\n    ")])}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleGrant(r)}}},[e._v("授权")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])},"a-table",e.tableProps,!1)),n("aqsc-category-model",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("aqsc-category-district-modal",{ref:"modalCategoryDistrict"})],1)},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("96cf"),n("1da1")),a=n("2909"),s=n("b65a"),l=n("0fea"),c=n("2c74"),u=n("631d"),d={name:"TableList",components:{aqscCategoryModel:c["default"],AqscCategoryDistrictModal:u["default"]},mixins:[s["a"]],data:function(){return{columns:[{title:"名称",align:"left",dataIndex:"name"},{title:"排序",align:"left",dataIndex:"sort"},{title:"创建时间",align:"left",dataIndex:"createTime"},{title:"创建人",align:"left",dataIndex:"createUser"},{title:"修改时间",align:"left",dataIndex:"updateTime"},{title:"修改人",align:"left",dataIndex:"updateUser"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/aqscCategory/rootList",childList:"/aqscCategory/childList",deleteBatch:"/aqscCategory/deleteBatch",delete:"/aqscCategory/deleteNode"},isorter:{column:"",order:""}}},computed:{tableProps:function(){var e=this;return{rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:function(t){return e.selectedRowKeys=t}}}}},methods:{handleGrant:function(e){this.$refs.modalCategoryDistrict.show(e.id)},loadData:function(e){var t=this;if(this.expandedRowKeys=[],this.url.list){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();this.loading=!0,Object(l["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=t.getDataByResult(e.result.records),t.ipagination.total=e.result.total),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},getDataByResult:function(e){return e.map((function(e){if("1"==e["hasChild"]){var t={id:e.id+"_loadChild",name:"loading...",isLoading:!0};e.children=[t]}return e}))},handleExpand:function(e,t){var n=this;if(e){if(this.expandedRowKeys.push(t.id),t.children.length>0&&!0===t.children[0].isLoading){var r={};r["pid"]=t.id,Object(l["d"])(this.url.childList,r).then((function(e){e.success?e.result&&e.result.length>0?(t.children=n.getDataByResult(e.result),n.dataSource=Object(a["a"])(n.dataSource)):(t.children="",t.hasChildrenField="0"):n.$message.warning(e.message)}))}}else{var i=this.expandedRowKeys.indexOf(t.id);i>=0&&this.expandedRowKeys.splice(i,1)}},handleCancel:function(){this.visible=!1},handleOk:function(){},modalFormOk:function(e,t){e.id?(this.editOk(e,this.dataSource),this.dataSource=Object(a["a"])(this.dataSource)):this.addOk(e,t)},editOk:function(e,t){if(t&&t.length>0)for(var n=0;n<t.length;n++){if(t[n].id==e.id){t[n]=e;break}this.editOk(e,t[n].children)}},addOk:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t[this.pidField]&&"0"!=t[this.pidField]){e.next=5;break}this.loadData(),e.next=33;break;case 5:this.expandedRowKeys=[],console.log("22222",n),r=!0,i=!1,o=void 0,e.prev=10,a=n[Symbol.iterator]();case 12:if(r=(s=a.next()).done){e.next=19;break}return l=s.value,e.next=16,this.expandTreeNode(l);case 16:r=!0,e.next=12;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e["catch"](10),i=!0,o=e.t0;case 25:e.prev=25,e.prev=26,r||null==a.return||a.return();case 28:if(e.prev=28,!i){e.next=31;break}throw o;case 31:return e.finish(28);case 32:return e.finish(25);case 33:case"end":return e.stop()}}),e,this,[[10,21,25,33],[26,,28,32]])})));function t(t,n){return e.apply(this,arguments)}return t}(),onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t}}},f=d,h=n("2877"),p=Object(h["a"])(f,r,i,!1,null,null,null);t["default"]=p.exports},"6b3a":function(e,t,n){},"6b65":function(e,t,n){"use strict";n("5944")},"6b83":function(e,t,n){"use strict";n("e49c")},"6b87":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-table",e._b({attrs:{rowKey:e.rowKey,columns:e.columns,dataSource:e.dataSource},on:{expand:e.handleExpand},scopedSlots:e._u([e._l(e.slots,(function(t){return{key:t,fn:function(n,r,i){return[e._t(t,null,null,{text:n,record:r,index:i})]}}}))],null,!0)},"a-table",e.tableProps,!1))},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("0fea")),a={name:"JTreeTable",props:{rowKey:{type:String,default:"id"},queryKey:{type:String,default:"parentId"},queryParams:{type:Object,default:function(){}},topValue:{type:String,default:null},columns:{type:Array,required:!0},url:{type:String,required:!0},childrenUrl:{type:String,default:null},tableProps:{type:Object,default:function(){}}},data:function(){return{dataSource:[]}},computed:{getChildrenUrl:function(){return this.childrenUrl?this.childrenUrl:this.url},slots:function(){var e=[],t=!0,n=!1,r=void 0;try{for(var i,o=this.columns[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;a.scopedSlots&&a.scopedSlots.customRender&&e.push(a.scopedSlots.customRender)}}catch(s){n=!0,r=s}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return e}},watch:{queryParams:{deep:!0,handler:function(){this.loadData()}}},created:function(){this.loadData()},methods:{loadData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.topValue,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.url,i=Object.assign({},this.queryParams||{});return i[this.queryKey]=t,Object(o["d"])(r,i).then((function(t){var r=t.result.map((function(e){if(!0===e.hasChildren){var t={id:"".concat(e.id,"_loadChild"),name:"loading...",isLoading:!0};e.children=[t]}return e}));return n&&(e.dataSource=r),Promise.resolve(r)}))},handleExpand:function(e,t){e&&!0===t.children[0].isLoading&&this.loadData(t.id,!1,this.getChildrenUrl).then((function(e){0===e.length?t.children=null:t.children=e}))}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"1865b90c",null);t["default"]=c.exports},"6ba5":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"6bca":function(e,t,n){},"6bd0":function(e,t,n){var r=n("d75c"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"6bfc":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:e.title,width:800,placement:"right",closable:!1,visible:e.visible},on:{close:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"视频地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["videoUrl",{}],expression:"['videoUrl', {}]"}],attrs:{placeholder:"请输入视频地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"name"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入name"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"guid"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["guid",{}],expression:"['guid', {}]"}],attrs:{placeholder:"请输入guid"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"engname"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engname",{}],expression:"['engname', {}]"}],attrs:{placeholder:"请输入engname"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"districtCode"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",{}],expression:"['districtCode', {}]"}],attrs:{placeholder:"请输入districtCode"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"district"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",{}],expression:"['district', {}]"}],attrs:{placeholder:"请输入district"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"street"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",{}],expression:"['street', {}]"}],attrs:{placeholder:"请输入street"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"datatype"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datatype",{}],expression:"['datatype', {}]"}],attrs:{placeholder:"请输入datatype"}})],1)],1)],1),n("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("确定")]),n("a-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v("取消")])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"CompanyVideoModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/video/companyVideo/add",edit:"/video/companyVideo/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"videoUrl","name","guid","engname","districtCode","district","street","datatype"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=(n("54c0"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"496905c7",null);t["default"]=d.exports},"6c05":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("exception-page",{attrs:{type:"500"}})},i=[],o=n("0673"),a={components:{ExceptionPage:o["default"]}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"58acec66",null);t["default"]=c.exports},"6c57":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"企业名称"}},[n("a-input",{attrs:{placeholder:"请输入订单号"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"社会统一信用代码"}},[n("a-input",{attrs:{placeholder:"请输入社会统一信用代码"},model:{value:e.queryParam.socialCreditCode,callback:function(t){e.$set(e.queryParam,"socialCreditCode",t)},expression:"queryParam.socialCreditCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",filterMultiple:"filterMultiple",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:e.type},customRow:e.clickThenCheck},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])})],1),n("a-tabs",{attrs:{defaultActiveKey:"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"企业楼层信息"}},[n("Jeecg-Order-Customer-List",{ref:"JeecgOrderCustomerList"})],1)],1),n("jeecgOrderDMain-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=(n("28a5"),n("2143")),a=n("2fe0"),s=n("0fea"),l=n("4dc0"),c=n("b65a"),u={name:"JeecgOrderDMainList",mixins:[c["a"]],components:{JeecgOrderCustomerModal:l["default"],JeecgOrderDMainModal:o["default"],JeecgOrderCustomerList:a["default"]},data:function(){return{description:"订单管理页面",ipagination:{current:1,pageSize:5,pageSizeOptions:["5","10","20"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},columns:[{title:"序号",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"企业名称",align:"center",dataIndex:"name"},{title:"唯一代码号",align:"center",dataIndex:"socialCreditCode"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],type:"radio",url:{list:"/yuanqu/enterprise/list",delete:"/yuanqu/enterprise/delete",deleteBatch:"/yuanqu/enterprise/deleteBatch"}}},methods:{clickThenCheck:function(e){var t=this;return{on:{click:function(){t.onSelectChange(e.id.split(","),[e])}}}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t,this.$refs.JeecgOrderCustomerList.getOrderMain(this.selectedRowKeys[0]),this.$refs.JeecgOrderTicketList.getOrderMain(this.selectedRowKeys[0])},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[],this.$refs.JeecgOrderCustomerList.queryParam.mainId=null,this.$refs.JeecgOrderTicketList.queryParam.mainId=null,this.$refs.JeecgOrderCustomerList.loadData(),this.$refs.JeecgOrderTicketList.loadData(),this.$refs.JeecgOrderCustomerList.selectedRowKeys=[],this.$refs.JeecgOrderCustomerList.selectionRows=[],this.$refs.JeecgOrderTicketList.selectedRowKeys=[],this.$refs.JeecgOrderTicketList.selectionRows=[]},handleDelete:function(e){var t=this,n=this;Object(s["a"])(n.url.delete,{id:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),t.$refs.JeecgOrderCustomerList.loadData(),t.$refs.JeecgOrderTicketList.loadData()):n.$message.warning(e.message)}))},searchQuery:function(){this.selectedRowKeys=[],this.selectionRows=[],this.$refs.JeecgOrderCustomerList.queryParam.mainId=null,this.$refs.JeecgOrderTicketList.queryParam.mainId=null,this.$refs.JeecgOrderCustomerList.loadData(),this.$refs.JeecgOrderTicketList.loadData(),this.$refs.JeecgOrderCustomerList.selectedRowKeys=[],this.$refs.JeecgOrderCustomerList.selectionRows=[],this.$refs.JeecgOrderTicketList.selectedRowKeys=[],this.$refs.JeecgOrderTicketList.selectionRows=[],this.loadData()}}},d=u,f=(n("11da"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"ae107a62",null);t["default"]=h.exports},"6c77":function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n("ce2c"),i=n("83a6"),o=n("f623"),a=n("8682"),s=n("92fa5"),l=function(){function e(e){var t=e||{};this.geometry_=null,this.geometryFunction_=h,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}return e.prototype.clone=function(){var t=this.getGeometry();return t&&"object"===typeof t&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.setRenderer=function(e){this.renderer_=e},e.prototype.getGeometry=function(){return this.geometry_},e.prototype.getGeometryFunction=function(){return this.geometryFunction_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(e){this.fill_=e},e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(e){this.image_=e},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.getText=function(){return this.text_},e.prototype.setText=function(e){this.text_=e},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setGeometry=function(e){"function"===typeof e?this.geometryFunction_=e:"string"===typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=h,this.geometry_=e},e.prototype.setZIndex=function(e){this.zIndex_=e},e}();function c(e){var t;if("function"===typeof e)t=e;else{var n;if(Array.isArray(e))n=e;else{Object(s["a"])("function"===typeof e.getZIndex,41);var r=e;n=[r]}t=function(){return n}}return t}var u=null;function d(e,t){if(!u){var n=new i["a"]({color:"rgba(255,255,255,0.4)"}),o=new a["a"]({color:"#3399CC",width:1.25});u=[new l({image:new r["a"]({fill:n,stroke:o,radius:5}),fill:n,stroke:o})]}return u}function f(){var e={},t=[255,255,255,1],n=[0,153,255,1],s=3;return e[o["a"].POLYGON]=[new l({fill:new i["a"]({color:[255,255,255,.5]})})],e[o["a"].MULTI_POLYGON]=e[o["a"].POLYGON],e[o["a"].LINE_STRING]=[new l({stroke:new a["a"]({color:t,width:s+2})}),new l({stroke:new a["a"]({color:n,width:s})})],e[o["a"].MULTI_LINE_STRING]=e[o["a"].LINE_STRING],e[o["a"].CIRCLE]=e[o["a"].POLYGON].concat(e[o["a"].LINE_STRING]),e[o["a"].POINT]=[new l({image:new r["a"]({radius:2*s,fill:new i["a"]({color:n}),stroke:new a["a"]({color:t,width:s/2})}),zIndex:1/0})],e[o["a"].MULTI_POINT]=e[o["a"].POINT],e[o["a"].GEOMETRY_COLLECTION]=e[o["a"].POLYGON].concat(e[o["a"].LINE_STRING],e[o["a"].POINT]),e}function h(e){return e.getGeometry()}t["c"]=l},"6cb2":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-chart",{attrs:{forceFit:!0,height:e.height,data:e.data,scale:e.scale}},[n("v-tooltip",{attrs:{showTitle:!1,dataKey:"item*percent"}}),n("v-axis"),n("v-legend",{attrs:{dataKey:"item"}}),n("v-pie",{attrs:{position:"percent",color:"item","v-style":e.pieStyle,label:e.labelConfig}}),n("v-coord",{attrs:{type:"theta"}})],1)},i=[],o=(n("c5f6"),n("7104")),a={props:{title:{type:String,default:""},height:{type:Number,default:254},dataSource:{type:Array,default:function(){return[{item:"示例一",count:40},{item:"示例二",count:21},{item:"示例三",count:17},{item:"示例四",count:13},{item:"示例五",count:9}]}}},data:function(){return{scale:[{dataKey:"percent",min:0,formatter:".0%"}],pieStyle:{stroke:"#fff",lineWidth:1},labelConfig:["percent",{formatter:function(e,t){return t.point.item+": "+e}}]}},computed:{data:function(){var e=(new o.View).source(this.dataSource);return e.transform({type:"percent",field:"count",dimension:"item",as:"percent"}),e.rows}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},"6cbf":function(e,t,n){"use strict";var r=n("01d4"),i=n("82b0"),o={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},a=n("869f"),s=n("ab35"),l=n("5c38"),c=n("92fa5"),u=n("0ec0"),d=n("0999"),f=n("3c22"),h=n("6611"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=null,g=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.hitDetectionImage_=null,s.image_=t||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=r,s.src_=n,s.tainted_,s}return p(t,e),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===a["a"].LOADED){m||(m=Object(d["a"])(1,1)),m.drawImage(this.image_,0,0);try{m.getImageData(0,0,1,1),this.tainted_=!1}catch(e){m=null,this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(r["a"].CHANGE)},t.prototype.handleImageError_=function(){this.imageState_=a["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=a["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_},t.prototype.getPixelRatio=function(e){return this.replaceColor_(e),this.canvas_[e]?e:1},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],t=this.size_[1],n=Object(d["a"])(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(this.imageState_==a["a"].IDLE){this.imageState_=a["a"].LOADING;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=Object(h["a"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(e){if(this.color_&&!this.canvas_[e]){var t=document.createElement("canvas");this.canvas_[e]=t,t.width=Math.ceil(this.image_.width*e),t.height=Math.ceil(this.image_.height*e);var n=t.getContext("2d");if(n.scale(e,e),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=Object(l["b"])(this.color_),n.fillRect(0,0,t.width,t.height),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var r=n.getImageData(0,0,t.width,t.height),i=r.data,o=this.color_[0]/255,a=this.color_[1]/255,s=this.color_[2]/255,c=this.color_[3],u=0,d=i.length;u<d;u+=4)i[u]*=o,i[u+1]*=a,i[u+2]*=s,i[u+3]*=c;n.putImageData(r,0,0)}}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(u["a"]);function v(e,t,n,r,i,o){var a=f["a"].get(t,r,o);return a||(a=new g(e,t,n,r,i,o),f["a"].set(t,r,o,a)),a}var y=n("1300"),b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(e){function t(t){var n=this,r=t||{},s=void 0!==r.opacity?r.opacity:1,u=void 0!==r.rotation?r.rotation:0,d=void 0!==r.scale?r.scale:1,f=void 0!==r.rotateWithView&&r.rotateWithView;n=e.call(this,{opacity:s,rotation:u,scale:d,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:f})||this,n.anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:o.TOP_LEFT,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:i["a"].FRACTION,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:i["a"].FRACTION,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var h=void 0!==r.img?r.img:null,p=void 0!==r.imgSize?r.imgSize:null,m=r.src;Object(c["a"])(!(void 0!==m&&h),4),Object(c["a"])(!h||h&&p,5),void 0!==m&&0!==m.length||!h||(m=h.src||Object(y["c"])(h)),Object(c["a"])(void 0!==m&&m.length>0,6);var g=void 0!==r.src?a["a"].IDLE:a["a"].LOADED;return n.color_=void 0!==r.color?Object(l["a"])(r.color):null,n.iconImage_=v(h,m,p,n.crossOrigin_,g,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:o.TOP_LEFT,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return b(t,e),t.prototype.clone=function(){var e=this.getScale();return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},t.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var e=this.anchor_,t=this.getSize();if(this.anchorXUnits_==i["a"].FRACTION||this.anchorYUnits_==i["a"].FRACTION){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==i["a"].FRACTION&&(e[0]*=t[0]),this.anchorYUnits_==i["a"].FRACTION&&(e[1]*=t[1])}if(this.anchorOrigin_!=o.TOP_LEFT){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=o.TOP_RIGHT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=o.BOTTOM_LEFT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(e[1]=-e[1]+t[1])}return this.normalizedAnchor_=e,this.normalizedAnchor_},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getPixelRatio=function(e){return this.iconImage_.getPixelRatio(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_,t=this.getDisplacement();if(this.offsetOrigin_!=o.TOP_LEFT){var n=this.getSize(),r=this.iconImage_.getSize();if(!n||!r)return null;e=e.slice(),this.offsetOrigin_!=o.TOP_RIGHT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(e[0]=r[0]-n[0]-e[0]),this.offsetOrigin_!=o.BOTTOM_LEFT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(e[1]=r[1]-n[1]-e[1])}return e[0]+=t[0],e[1]+=t[1],this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e){this.iconImage_.addEventListener(r["a"].CHANGE,e)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e){this.iconImage_.removeEventListener(r["a"].CHANGE,e)},t}(s["a"]);t["a"]=_},"6d40":function(e,t,n){var r=n("4587");e.exports=r("document","documentElement")},"6d836":function(e,t,n){"use strict";t["a"]={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},"6daf":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6e0c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("a5f0"),a={name:"emergency_risk_index",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("0430"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"73fcfb35",null);t["default"]=c.exports},"6e80":function(e,t,n){"use strict";n("18c1")},"6ec0":function(e,t,n){},"6f24":function(e,t,n){var r=n("fbee"),i=n("16546").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";r&&!(l in o)&&i(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},"6f39":function(e,t,n){},"6f6b":function(e,t,n){"use strict";n("6770")},"6fdf":function(e,t,n){},"70d7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("div",[r("a-card",{staticClass:"card",attrs:{title:"仓库管理",bordered:!1}},[r("repository-form",{ref:"repository",attrs:{showSubmit:!1}})],1),r("a-card",{staticClass:"card",attrs:{title:"任务管理",bordered:!1}},[r("task-form",{ref:"task",attrs:{showSubmit:!1}})],1),r("a-card",[r("form",{attrs:{autoFormCreate:function(t){return e.form=t}}},[r("a-table",{attrs:{columns:t.columns,dataSource:t.data,pagination:!1},scopedSlots:t._u([t._l(["name","workId","department"],(function(e,n){return{key:e,fn:function(i,o,a){return[o.editable?r("a-input",{key:e,staticStyle:{margin:"-5px 0"},attrs:{value:i,placeholder:t.columns[n].title},on:{change:function(n){return t.handleChange(n.target.value,o.key,e)}}}):[t._v(t._s(i))]]}}})),{key:"operation",fn:function(e,n,i){return[n.editable?[n.isNew?r("span",[r("a",{on:{click:function(e){return t.saveRow(n.key)}}},[t._v("添加")]),r("a-divider",{attrs:{type:"vertical"}}),r("a-popconfirm",{attrs:{title:"是否要删除此行?"},on:{confirm:function(e){return t.remove(n.key)}}},[r("a",[t._v("删除")])])],1):r("span",[r("a",{on:{click:function(e){return t.saveRow(n.key)}}},[t._v("保存")]),r("a-divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.cancel(n.key)}}},[t._v("取消")])],1)]:r("span",[r("a",{on:{click:function(e){return t.toggle(n.key)}}},[t._v("编辑")]),r("a-divider",{attrs:{type:"vertical"}}),r("a-popconfirm",{attrs:{title:"是否要删除此行?"},on:{confirm:function(e){return t.remove(n.key)}}},[r("a",[t._v("删除")])])],1)]}}],null,!0)}),r("a-button",{staticStyle:{width:"100%","margin-top":"16px","margin-bottom":"8px"},attrs:{type:"dashed",icon:"plus"},on:{click:t.newMember}},[t._v("新增成员")])],1)]),r("footer-tool-bar",[r("a-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.validate}},[t._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("cd43"),s=n("8dd6"),l=n("c984"),c={name:"AdvancedForm",components:{FooterToolBar:l["default"],RepositoryForm:a["default"],TaskForm:s["default"]},data:function(){return{description:"高级表单常见于一次性输入和提交大批量数据的场景。",loading:!1,columns:[{title:"成员姓名",dataIndex:"name",key:"name",width:"20%",scopedSlots:{customRender:"name"}},{title:"工号",dataIndex:"workId",key:"workId",width:"20%",scopedSlots:{customRender:"workId"}},{title:"所属部门",dataIndex:"department",key:"department",width:"40%",scopedSlots:{customRender:"department"}},{title:"操作",key:"action",scopedSlots:{customRender:"operation"}}],data:[{key:"1",name:"小明",workId:"001",editable:!1,department:"行政部"},{key:"2",name:"李莉",workId:"002",editable:!1,department:"IT部"},{key:"3",name:"王小帅",workId:"003",editable:!1,department:"财务部"}]}},methods:{handleSubmit:function(e){e.preventDefault()},newMember:function(){this.data.push({key:"-1",name:"",workId:"",department:"",editable:!0,isNew:!0})},remove:function(e){var t=this.data.filter((function(t){return t.key!==e}));this.data=t},saveRow:function(e){var t=this.data.filter((function(t){return t.key===e}))[0];t.editable=!1,t.isNew=!1},toggle:function(e){var t=this.data.filter((function(t){return t.key===e}))[0];t.editable=!t.editable},getRowByKey:function(e,t){var n=this.data;return(t||n).filter((function(t){return t.key===e}))[0]},cancel:function(e){var t=this.data.filter((function(t){return t.key===e}))[0];t.editable=!1},handleChange:function(e,t,n){var r=Object(o["a"])(this.data),i=r.filter((function(e){return t===e.key}))[0];i&&(i[n]=e,this.data=r)},validate:function(){var e=this;this.$refs.repository.form.validateFields((function(t,n){t||e.$notification["error"]({message:"Received values of form:",description:n})})),this.$refs.task.form.validateFields((function(t,n){t||e.$notification["error"]({message:"Received values of form:",description:n})}))}}},u=c,d=(n("53d7"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"856511da",null);t["default"]=f.exports},"70e3":function(e,t,n){"use strict";n("02a9")},7104:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=195)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(103);n.d(t,"geoArea",(function(){return r["c"]}));var i=n(197);n.d(t,"geoBounds",(function(){return i["a"]}));var o=n(198);n.d(t,"geoCentroid",(function(){return o["a"]}));var a=n(104);n.d(t,"geoCircle",(function(){return a["b"]}));var s=n(65);n.d(t,"geoClipExtent",(function(){return s["b"]}));var l=n(217);n.d(t,"geoContains",(function(){return l["a"]}));var c=n(122);n.d(t,"geoDistance",(function(){return c["a"]}));var u=n(218);n.d(t,"geoGraticule",(function(){return u["a"]})),n.d(t,"geoGraticule10",(function(){return u["b"]}));var d=n(219);n.d(t,"geoInterpolate",(function(){return d["a"]}));var f=n(123);n.d(t,"geoLength",(function(){return f["a"]}));var h=n(220);n.d(t,"geoPath",(function(){return h["a"]}));var p=n(125);n.d(t,"geoAlbers",(function(){return p["a"]}));var m=n(230);n.d(t,"geoAlbersUsa",(function(){return m["a"]}));var g=n(231);n.d(t,"geoAzimuthalEqualArea",(function(){return g["b"]})),n.d(t,"geoAzimuthalEqualAreaRaw",(function(){return g["a"]}));var v=n(232);n.d(t,"geoAzimuthalEquidistant",(function(){return v["b"]})),n.d(t,"geoAzimuthalEquidistantRaw",(function(){return v["a"]}));var y=n(233);n.d(t,"geoConicConformal",(function(){return y["b"]})),n.d(t,"geoConicConformalRaw",(function(){return y["a"]}));var b=n(68);n.d(t,"geoConicEqualArea",(function(){return b["b"]})),n.d(t,"geoConicEqualAreaRaw",(function(){return b["a"]}));var _=n(234);n.d(t,"geoConicEquidistant",(function(){return _["b"]})),n.d(t,"geoConicEquidistantRaw",(function(){return _["a"]}));var w=n(127);n.d(t,"geoEquirectangular",(function(){return w["a"]})),n.d(t,"geoEquirectangularRaw",(function(){return w["b"]}));var x=n(235);n.d(t,"geoGnomonic",(function(){return x["a"]})),n.d(t,"geoGnomonicRaw",(function(){return x["b"]}));var S=n(236);n.d(t,"geoIdentity",(function(){return S["a"]}));var C=n(17);n.d(t,"geoProjection",(function(){return C["a"]})),n.d(t,"geoProjectionMutator",(function(){return C["b"]}));var E=n(71);n.d(t,"geoMercator",(function(){return E["a"]})),n.d(t,"geoMercatorRaw",(function(){return E["c"]}));var k=n(237);n.d(t,"geoOrthographic",(function(){return k["a"]})),n.d(t,"geoOrthographicRaw",(function(){return k["b"]}));var O=n(238);n.d(t,"geoStereographic",(function(){return O["a"]})),n.d(t,"geoStereographicRaw",(function(){return O["b"]}));var T=n(239);n.d(t,"geoTransverseMercator",(function(){return T["a"]})),n.d(t,"geoTransverseMercatorRaw",(function(){return T["b"]}));var I=n(50);n.d(t,"geoRotation",(function(){return I["a"]}));var A=n(22);n.d(t,"geoStream",(function(){return A["a"]}));var R=n(51);n.d(t,"geoTransform",(function(){return R["a"]}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"m",(function(){return s})),n.d(t,"n",(function(){return l})),n.d(t,"p",(function(){return c})),n.d(t,"q",(function(){return u})),n.d(t,"r",(function(){return d})),n.d(t,"t",(function(){return f})),n.d(t,"w",(function(){return h})),n.d(t,"x",(function(){return p})),n.d(t,"y",(function(){return m})),n.d(t,"F",(function(){return g})),n.d(t,"k",(function(){return v})),n.d(t,"l",(function(){return y})),n.d(t,"s",(function(){return b})),n.d(t,"o",(function(){return _})),n.d(t,"u",(function(){return w})),n.d(t,"C",(function(){return x})),n.d(t,"D",(function(){return S})),n.d(t,"E",(function(){return C})),n.d(t,"H",(function(){return E})),n.d(t,"j",(function(){return k})),n.d(t,"v",(function(){return O})),t["z"]=T,t["e"]=I,t["b"]=A,t["B"]=R,t["G"]=P,t["A"]=M,t["i"]=N,t["d"]=L,t["c"]=D;var r=Math.abs,i=Math.atan,o=Math.atan2,a=(Math.ceil,Math.cos),s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,d=Math.min,f=Math.pow,h=Math.round,p=Math.sign||function(e){return e>0?1:e<0?-1:0},m=Math.sin,g=Math.tan,v=1e-6,y=1e-12,b=Math.PI,_=b/2,w=b/4,x=Math.SQRT1_2,S=R(2),C=R(b),E=2*b,k=180/b,O=b/180;function T(e){return e?e/Math.sin(e):1}function I(e){return e>1?_:e<-1?-_:Math.asin(e)}function A(e){return e>1?0:e<-1?b:Math.acos(e)}function R(e){return e>0?Math.sqrt(e):0}function P(e){return e=s(2*e),(e-1)/(e+1)}function M(e){return(s(e)-s(-e))/2}function N(e){return(s(e)+s(-e))/2}function L(e){return c(e+R(e*e+1))}function D(e){return c(e+R(e*e-1))}},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var o=n(3),a=n(77),s=n(76),l=n(356),c=n(139),u=n(39),d=n(84),f=function(e){function t(n){var r;void 0===n&&(n={state:{}}),r=e.call(this)||this;var a=i(i(r));return o(a,{_onChangeTimer:null,DataSet:t,isDataSet:!0,views:{}},n),r}r(t,e);var n=t.prototype;return n._getUniqueViewName=function(){var e=this,t=l("view_");while(e.views[t])t=l("view_");return t},n.createView=function(e,t){void 0===t&&(t={});var n=this;if(a(e)&&(e=n._getUniqueViewName()),s(e)&&(t=e,e=n._getUniqueViewName()),n.views[e])throw new Error("data view exists: "+e);var r=new u(n,t);return n.views[e]=r,r},n.getView=function(e){return this.views[e]},n.setView=function(e,t){this.views[e]=t},n.setState=function(e,t){var n=this;n.state[e]=t,n._onChangeTimer&&(clearTimeout(n._onChangeTimer),n._onChangeTimer=null),n._onChangeTimer=setTimeout((function(){n.emit("statechange",e,t)}),16)},t}(c);o(f,{CONSTANTS:d,DataSet:f,DataView:u,View:u,connectors:{},transforms:{},registerConnector:function(e,t){f.connectors[e]=t},getConnector:function(e){return f.connectors[e]||f.connectors.default},registerTransform:function(e,t){f.transforms[e]=t},getTransform:function(e){return f.transforms[e]||f.transforms.default}},d),u.DataSet=f,o(f.prototype,{view:f.prototype.createView}),f.version="0.10.2",e.exports=f},function(e,t){function n(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}var r=function(e,t,r,i){return t&&n(e,t),r&&n(e,r),i&&n(e,i),e};e.exports=r},function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"j",(function(){return i})),n.d(t,"o",(function(){return o})),n.d(t,"l",(function(){return a})),n.d(t,"q",(function(){return s})),n.d(t,"w",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"r",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"n",(function(){return v})),n.d(t,"p",(function(){return y})),n.d(t,"t",(function(){return b})),n.d(t,"s",(function(){return _})),n.d(t,"u",(function(){return w})),n.d(t,"v",(function(){return x})),t["b"]=S,t["c"]=C,t["m"]=E;var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,l=2*o,c=180/o,u=o/180,d=Math.abs,f=Math.atan,h=Math.atan2,p=Math.cos,m=Math.ceil,g=Math.exp,v=(Math.floor,Math.log),y=Math.pow,b=Math.sin,_=Math.sign||function(e){return e>0?1:e<0?-1:0},w=Math.sqrt,x=Math.tan;function S(e){return e>1?0:e<-1?o:Math.acos(e)}function C(e){return e>1?a:e<-1?-a:Math.asin(e)}function E(e){return(e=b(e/2))*e}},function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"j",(function(){return i})),n.d(t,"o",(function(){return o})),n.d(t,"l",(function(){return a})),n.d(t,"q",(function(){return s})),n.d(t,"w",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"r",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"n",(function(){return v})),n.d(t,"p",(function(){return y})),n.d(t,"t",(function(){return b})),n.d(t,"s",(function(){return _})),n.d(t,"u",(function(){return w})),n.d(t,"v",(function(){return x})),t["b"]=S,t["c"]=C,t["m"]=E;var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,l=2*o,c=180/o,u=o/180,d=Math.abs,f=Math.atan,h=Math.atan2,p=Math.cos,m=Math.ceil,g=Math.exp,v=(Math.floor,Math.log),y=Math.pow,b=Math.sin,_=Math.sign||function(e){return e>0?1:e<0?-1:0},w=Math.sqrt,x=Math.tan;function S(e){return e>1?0:e<-1?o:Math.acos(e)}function C(e){return e>1?a:e<-1?-a:Math.asin(e)}function E(e){return(e=b(e/2))*e}},function(e,t,n){var r=n(41),i=Array.isArray?Array.isArray:function(e){return r(e,"Array")};e.exports=i},function(e,t,n){var r=n(6),i=n(10),o="Invalid field: it must be a string!",a="Invalid fields: it must be an array!";e.exports={getField:function(e,t){var n=e.field,a=e.fields;if(i(n))return n;if(r(n))return console.warn(o),n[0];if(console.warn(o+" will try to get fields instead."),i(a))return a;if(r(a)&&a.length)return a[0];if(t)return t;throw new TypeError(o)},getFields:function(e,t){var n=e.field,o=e.fields;if(r(o))return o;if(i(o))return console.warn(a),[o];if(console.warn(a+" will try to get field instead."),i(n))return console.warn(a),[n];if(r(n)&&n.length)return console.warn(a),n;if(t)return t;throw new TypeError(a)}}},function(e,t,n){var r;try{r=n(169)}catch(i){}r||(r=window._),e.exports=r},function(e,t,n){var r=n(76),i=n(6),o=function(e,t){if(e){var n=void 0;if(i(e)){for(var o=0,a=e.length;o<a;o++)if(n=t(e[o],o),!1===n)break}else if(r(e))for(var s in e)if(e.hasOwnProperty(s)&&(n=t(e[s],s),!1===n))break}};e.exports=o},function(e,t,n){var r=n(41),i=function(e){return r(e,"String")};e.exports=i},function(e,t,n){var r=n(41),i=function(e){return r(e,"Function")};e.exports=i},function(e,t,n){"use strict";var r=n(8),i=n(16).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function a(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t}function s(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t}function l(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)}function c(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)}function u(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,c=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}}function d(e){var t=r.map(r.range(m(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t}function f(e){var t=r.minBy(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))}function h(e){var t=r.minBy(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!==0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))}function p(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(e,"border",i,t)}function m(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}function g(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n}function v(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}}function y(e,t){return t()}e.exports={addDummyNode:o,simplify:a,asNonCompoundGraph:s,successorWeights:l,predecessorWeights:c,intersectRect:u,buildLayerMatrix:d,normalizeRanks:f,removeEmptyRanks:h,addBorderNode:p,maxRank:m,partition:g,time:v,notime:y}},function(e,t,n){var r;try{r=n(169)}catch(i){}r||(r=window._),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(109);n.d(t,"bisect",(function(){return r["c"]})),n.d(t,"bisectRight",(function(){return r["b"]})),n.d(t,"bisectLeft",(function(){return r["a"]}));var i=n(30);n.d(t,"ascending",(function(){return i["a"]}));var o=n(110);n.d(t,"bisector",(function(){return o["a"]}));var a=n(201);n.d(t,"cross",(function(){return a["a"]}));var s=n(202);n.d(t,"descending",(function(){return s["a"]}));var l=n(112);n.d(t,"deviation",(function(){return l["a"]}));var c=n(114);n.d(t,"extent",(function(){return c["a"]}));var u=n(203);n.d(t,"histogram",(function(){return u["a"]}));var d=n(206);n.d(t,"thresholdFreedmanDiaconis",(function(){return d["a"]}));var f=n(207);n.d(t,"thresholdScott",(function(){return f["a"]}));var h=n(118);n.d(t,"thresholdSturges",(function(){return h["a"]}));var p=n(208);n.d(t,"max",(function(){return p["a"]}));var m=n(209);n.d(t,"mean",(function(){return m["a"]}));var g=n(210);n.d(t,"median",(function(){return g["a"]}));var v=n(211);n.d(t,"merge",(function(){return v["a"]}));var y=n(119);n.d(t,"min",(function(){return y["a"]}));var b=n(111);n.d(t,"pairs",(function(){return b["a"]}));var _=n(212);n.d(t,"permute",(function(){return _["a"]}));var w=n(66);n.d(t,"quantile",(function(){return w["a"]}));var x=n(116);n.d(t,"range",(function(){return x["a"]}));var S=n(213);n.d(t,"scan",(function(){return S["a"]}));var C=n(214);n.d(t,"shuffle",(function(){return C["a"]}));var E=n(215);n.d(t,"sum",(function(){return E["a"]}));var k=n(117);n.d(t,"ticks",(function(){return k["a"]})),n.d(t,"tickIncrement",(function(){return k["b"]})),n.d(t,"tickStep",(function(){return k["c"]}));var O=n(120);n.d(t,"transpose",(function(){return O["a"]}));var T=n(113);n.d(t,"variance",(function(){return T["a"]}));var I=n(216);n.d(t,"zip",(function(){return I["a"]}))},function(e,t,n){var r=n(6),i=n(11),o=n(10),a=n(352),s=n(353);e.exports=function(e,t,n){void 0===n&&(n=[]);var l,c=e;n&&n.length&&(c=s(e,n)),i(t)?l=t:r(t)?l=function(e){return"_"+t.map((function(t){return e[t]})).join("-")}:o(t)&&(l=function(e){return"_"+e[t]});var u=a(c,l);return u}},function(e,t,n){var r;try{r=n(433)}catch(i){}r||(r=window.graphlib),e.exports=r},function(e,t,n){"use strict";t["a"]=p,t["b"]=m;var r=n(226),i=n(227),o=n(65),a=n(105),s=n(67),l=n(4),c=n(50),u=n(51),d=n(70),f=n(228),h=Object(u["b"])({point:function(e,t){this.stream.point(e*l["r"],t*l["r"])}});function p(e){return m((function(){return e}))()}function m(e){var t,n,u,p,m,g,v,y,b,_,w=150,x=480,S=250,C=0,E=0,k=0,O=0,T=0,I=null,A=r["a"],R=null,P=s["a"],M=.5,N=Object(f["a"])(j,M);function L(e){return e=m(e[0]*l["r"],e[1]*l["r"]),[e[0]*w+n,u-e[1]*w]}function D(e){return e=m.invert((e[0]-n)/w,(u-e[1])/w),e&&[e[0]*l["h"],e[1]*l["h"]]}function j(e,r){return e=t(e,r),[e[0]*w+n,u-e[1]*w]}function F(){m=Object(a["a"])(p=Object(c["b"])(k,O,T),t);var e=t(C,E);return n=x-e[0]*w,u=S+e[1]*w,B()}function B(){return b=_=null,L}return L.stream=function(e){return b&&_===e?b:b=h(A(p,N(P(_=e))))},L.clipAngle=function(e){return arguments.length?(A=+e?Object(i["a"])(I=e*l["r"],6*l["r"]):(I=null,r["a"]),B()):I*l["h"]},L.clipExtent=function(e){return arguments.length?(P=null==e?(R=g=v=y=null,s["a"]):Object(o["a"])(R=+e[0][0],g=+e[0][1],v=+e[1][0],y=+e[1][1]),B()):null==R?null:[[R,g],[v,y]]},L.scale=function(e){return arguments.length?(w=+e,F()):w},L.translate=function(e){return arguments.length?(x=+e[0],S=+e[1],F()):[x,S]},L.center=function(e){return arguments.length?(C=e[0]%360*l["r"],E=e[1]%360*l["r"],F()):[C*l["h"],E*l["h"]]},L.rotate=function(e){return arguments.length?(k=e[0]%360*l["r"],O=e[1]%360*l["r"],T=e.length>2?e[2]%360*l["r"]:0,F()):[k*l["h"],O*l["h"],T*l["h"]]},L.precision=function(e){return arguments.length?(N=Object(f["a"])(j,M=e*e),B()):Object(l["u"])(M)},L.fitExtent=function(e,t){return Object(d["a"])(L,e,t)},L.fitSize=function(e,t){return Object(d["b"])(L,e,t)},function(){return t=e.apply(this,arguments),L.invert=t.invert&&D,F()}}},function(e,t,n){"use strict";t["a"]=p,t["b"]=m;var r=n(336),i=n(338),o=n(145),a=n(144),s=n(150),l=n(5),c=n(78),u=n(81),d=n(154),f=n(339),h=Object(u["b"])({point:function(e,t){this.stream.point(e*l["r"],t*l["r"])}});function p(e){return m((function(){return e}))()}function m(e){var t,n,u,p,m,g,v,y,b,_,w=150,x=480,S=250,C=0,E=0,k=0,O=0,T=0,I=null,A=r["a"],R=null,P=s["a"],M=.5,N=Object(f["a"])(j,M);function L(e){return e=m(e[0]*l["r"],e[1]*l["r"]),[e[0]*w+n,u-e[1]*w]}function D(e){return e=m.invert((e[0]-n)/w,(u-e[1])/w),e&&[e[0]*l["h"],e[1]*l["h"]]}function j(e,r){return e=t(e,r),[e[0]*w+n,u-e[1]*w]}function F(){m=Object(a["a"])(p=Object(c["b"])(k,O,T),t);var e=t(C,E);return n=x-e[0]*w,u=S+e[1]*w,B()}function B(){return b=_=null,L}return L.stream=function(e){return b&&_===e?b:b=h(A(p,N(P(_=e))))},L.clipAngle=function(e){return arguments.length?(A=+e?Object(i["a"])(I=e*l["r"],6*l["r"]):(I=null,r["a"]),B()):I*l["h"]},L.clipExtent=function(e){return arguments.length?(P=null==e?(R=g=v=y=null,s["a"]):Object(o["a"])(R=+e[0][0],g=+e[0][1],v=+e[1][0],y=+e[1][1]),B()):null==R?null:[[R,g],[v,y]]},L.scale=function(e){return arguments.length?(w=+e,F()):w},L.translate=function(e){return arguments.length?(x=+e[0],S=+e[1],F()):[x,S]},L.center=function(e){return arguments.length?(C=e[0]%360*l["r"],E=e[1]%360*l["r"],F()):[C*l["h"],E*l["h"]]},L.rotate=function(e){return arguments.length?(k=e[0]%360*l["r"],O=e[1]%360*l["r"],T=e.length>2?e[2]%360*l["r"]:0,F()):[k*l["h"],O*l["h"],T*l["h"]]},L.precision=function(e){return arguments.length?(N=Object(f["a"])(j,M=e*e),B()):Object(l["u"])(M)},L.fitExtent=Object(d["a"])(L),L.fitSize=Object(d["b"])(L),function(){return t=e.apply(this,arguments),L.invert=t.invert&&D,F()}}},function(e,t,n){!function(e,n){n(t)}(0,(function(e){"use strict";function t(e){if(0===e.length)return 0;for(var t,n=e[0],r=0,i=1;i<e.length;i++)t=n+e[i],Math.abs(n)>=Math.abs(e[i])?r+=n-t+e[i]:r+=e[i]-t+n,n=t;return n+r}function n(e){if(0===e.length)throw new Error("mean requires at least one data point");return t(e)/e.length}function r(e,t){var r,i,o=n(e),a=0;if(2===t)for(i=0;i<e.length;i++)a+=(r=e[i]-o)*r;else for(i=0;i<e.length;i++)a+=Math.pow(e[i]-o,t);return a}function i(e){if(0===e.length)throw new Error("variance requires at least one data point");return r(e,2)/e.length}function o(e){if(1===e.length)return 0;var t=i(e);return Math.sqrt(t)}function a(e){if(0===e.length)throw new Error("mode requires at least one data point");if(1===e.length)return e[0];for(var t=e[0],n=NaN,r=0,i=1,o=1;o<e.length+1;o++)e[o]!==t?(r<i&&(r=i,n=t),i=1,t=e[o]):i++;return n}function s(e){return e.slice().sort((function(e,t){return e-t}))}function l(e){if(0===e.length)throw new Error("min requires at least one data point");for(var t=e[0],n=1;n<e.length;n++)e[n]<t&&(t=e[n]);return t}function c(e){if(0===e.length)throw new Error("max requires at least one data point");for(var t=e[0],n=1;n<e.length;n++)e[n]>t&&(t=e[n]);return t}function u(e,t){var n=e.length*t;if(0===e.length)throw new Error("quantile requires at least one data point.");if(t<0||1<t)throw new Error("quantiles must be between 0 and 1");return 1===t?e[e.length-1]:0===t?e[0]:n%1!=0?e[Math.ceil(n)-1]:e.length%2==0?(e[n-1]+e[n])/2:e[n]}function d(e,t,n,r){for(n=n||0,r=r||e.length-1;n<r;){if(600<r-n){var i=r-n+1,o=t-n+1,a=Math.log(i),s=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*s*(i-s)/i);o-i/2<0&&(l*=-1),d(e,t,Math.max(n,Math.floor(t-o*s/i+l)),Math.min(r,Math.floor(t+(i-o)*s/i+l)))}var c=e[t],u=n,h=r;for(f(e,n,t),e[r]>c&&f(e,n,r);u<h;){for(f(e,u,h),u++,h--;e[u]<c;)u++;for(;e[h]>c;)h--}e[n]===c?f(e,n,h):f(e,++h,r),h<=t&&(n=h+1),t<=h&&(r=h-1)}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function h(e,t){var n=e.slice();if(Array.isArray(t)){!function(e,t){for(var n=[0],r=0;r<t.length;r++)n.push(g(e.length,t[r]));n.push(e.length-1),n.sort(m);for(var i=[0,n.length-1];i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);p(e,n[s],n[a],n[o]),i.push(a,s,s,o)}}}(n,t);for(var r=[],i=0;i<t.length;i++)r[i]=u(n,t[i]);return r}return p(n,g(n.length,t),0,n.length-1),u(n,t)}function p(e,t,n,r){t%1==0?d(e,t,n,r):(d(e,t=Math.floor(t),n,r),d(e,t+1,t+1,r))}function m(e,t){return e-t}function g(e,t){var n=e*t;return 1===t?e-1:0===t?0:n%1!=0?Math.ceil(n)-1:e%2==0?n-.5:n}function v(e,t){if(t<e[0])return 0;if(t>e[e.length-1])return 1;var n=function(e,t){for(var n=0,r=0,i=e.length;r<i;)t<=e[n=r+i>>>1]?i=n:r=-~n;return r}(e,t);if(e[n]!==t)return n/e.length;n++;var r=function(e,t){for(var n=0,r=0,i=e.length;r<i;)t>=e[n=r+i>>>1]?r=-~n:i=n;return r}(e,t);if(r===n)return n/e.length;var i=r-n+1;return i*(r+n)/2/i/e.length}function y(e){var t=h(e,.75),n=h(e,.25);if("number"==typeof t&&"number"==typeof n)return t-n}function b(e){return+h(e,.5)}function _(e){for(var t=b(e),n=[],r=0;r<e.length;r++)n.push(Math.abs(e[r]-t));return b(n)}function w(e,t){t=t||Math.random;for(var n,r,i=e.length;0<i;)r=Math.floor(t()*i--),n=e[i],e[i]=e[r],e[r]=n;return e}function x(e,t){return w(e.slice().slice(),t)}function S(e){for(var t,n=0,r=0;r<e.length;r++)0!==r&&e[r]===t||(t=e[r],n++);return n}function C(e,t){for(var n=[],r=0;r<e;r++){for(var i=[],o=0;o<t;o++)i.push(0);n.push(i)}return n}function E(e,t,n,r){var i;if(0<e){var o=(n[t]-n[e-1])/(t-e+1);i=r[t]-r[e-1]-(t-e+1)*o*o}else i=r[t]-n[t]*n[t]/(t+1);return i<0?0:i}function k(e,t,n,r,i,o,a){if(!(t<e)){var s=Math.floor((e+t)/2);r[n][s]=r[n-1][s-1],i[n][s]=s;var l=n;n<e&&(l=Math.max(l,i[n][e-1]||0)),l=Math.max(l,i[n-1][s]||0);var c,u,d,f=s-1;t<r.length-1&&(f=Math.min(f,i[n][t+1]||0));for(var h=f;l<=h&&!((c=E(h,s,o,a))+r[n-1][l-1]>=r[n][s]);--h)(u=E(l,s,o,a)+r[n-1][l-1])<r[n][s]&&(r[n][s]=u,i[n][s]=l),l++,(d=c+r[n-1][h-1])<r[n][s]&&(r[n][s]=d,i[n][s]=h);k(e,s-1,n,r,i,o,a),k(s+1,t,n,r,i,o,a)}}function O(e,t){if(e.length!==t.length)throw new Error("sampleCovariance requires samples with equal lengths");if(e.length<2)throw new Error("sampleCovariance requires at least two data points in each sample");for(var r=n(e),i=n(t),o=0,a=0;a<e.length;a++)o+=(e[a]-r)*(t[a]-i);return o/(e.length-1)}function T(e){if(e.length<2)throw new Error("sampleVariance requires at least two data points");return r(e,2)/(e.length-1)}function I(e){var t=T(e);return Math.sqrt(t)}function A(e,t,n,r){return(e*t+n*r)/(t+r)}function R(e){if(0===e.length)throw new Error("rootMeanSquare requires at least one data point");for(var t=0,n=0;n<e.length;n++)t+=Math.pow(e[n],2);return Math.sqrt(t/e.length)}function P(){this.totalCount=0,this.data={}}function M(){this.weights=[],this.bias=0}P.prototype.train=function(e,t){for(var n in this.data[t]||(this.data[t]={}),e){var r=e[n];void 0===this.data[t][n]&&(this.data[t][n]={}),void 0===this.data[t][n][r]&&(this.data[t][n][r]=0),this.data[t][n][r]++}this.totalCount++},P.prototype.score=function(e){var t,n={};for(var r in e){var i=e[r];for(t in this.data)n[t]={},this.data[t][r]?n[t][r+"_"+i]=(this.data[t][r][i]||0)/this.totalCount:n[t][r+"_"+i]=0}var o={};for(t in n)for(var a in o[t]=0,n[t])o[t]+=n[t][a];return o},M.prototype.predict=function(e){if(e.length!==this.weights.length)return null;for(var t=0,n=0;n<this.weights.length;n++)t+=this.weights[n]*e[n];return 0<(t+=this.bias)?1:0},M.prototype.train=function(e,t){if(0!==t&&1!==t)return null;e.length!==this.weights.length&&(this.weights=e,this.bias=1);var n=this.predict(e);if(n!==t){for(var r=t-n,i=0;i<this.weights.length;i++)this.weights[i]+=r*e[i];this.bias+=r}return this};var N=1e-4;function L(e){if(e<0)throw new Error("factorial requires a non-negative value");if(Math.floor(e)!==e)throw new Error("factorial requires an integer input");for(var t=1,n=2;n<=e;n++)t*=n;return t}var D=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],j=Math.log(Math.sqrt(2*Math.PI)),F={1:{.995:0,.99:0,.975:0,.95:0,.9:.02,.5:.45,.1:2.71,.05:3.84,.025:5.02,.01:6.63,.005:7.88},2:{.995:.01,.99:.02,.975:.05,.95:.1,.9:.21,.5:1.39,.1:4.61,.05:5.99,.025:7.38,.01:9.21,.005:10.6},3:{.995:.07,.99:.11,.975:.22,.95:.35,.9:.58,.5:2.37,.1:6.25,.05:7.81,.025:9.35,.01:11.34,.005:12.84},4:{.995:.21,.99:.3,.975:.48,.95:.71,.9:1.06,.5:3.36,.1:7.78,.05:9.49,.025:11.14,.01:13.28,.005:14.86},5:{.995:.41,.99:.55,.975:.83,.95:1.15,.9:1.61,.5:4.35,.1:9.24,.05:11.07,.025:12.83,.01:15.09,.005:16.75},6:{.995:.68,.99:.87,.975:1.24,.95:1.64,.9:2.2,.5:5.35,.1:10.65,.05:12.59,.025:14.45,.01:16.81,.005:18.55},7:{.995:.99,.99:1.25,.975:1.69,.95:2.17,.9:2.83,.5:6.35,.1:12.02,.05:14.07,.025:16.01,.01:18.48,.005:20.28},8:{.995:1.34,.99:1.65,.975:2.18,.95:2.73,.9:3.49,.5:7.34,.1:13.36,.05:15.51,.025:17.53,.01:20.09,.005:21.96},9:{.995:1.73,.99:2.09,.975:2.7,.95:3.33,.9:4.17,.5:8.34,.1:14.68,.05:16.92,.025:19.02,.01:21.67,.005:23.59},10:{.995:2.16,.99:2.56,.975:3.25,.95:3.94,.9:4.87,.5:9.34,.1:15.99,.05:18.31,.025:20.48,.01:23.21,.005:25.19},11:{.995:2.6,.99:3.05,.975:3.82,.95:4.57,.9:5.58,.5:10.34,.1:17.28,.05:19.68,.025:21.92,.01:24.72,.005:26.76},12:{.995:3.07,.99:3.57,.975:4.4,.95:5.23,.9:6.3,.5:11.34,.1:18.55,.05:21.03,.025:23.34,.01:26.22,.005:28.3},13:{.995:3.57,.99:4.11,.975:5.01,.95:5.89,.9:7.04,.5:12.34,.1:19.81,.05:22.36,.025:24.74,.01:27.69,.005:29.82},14:{.995:4.07,.99:4.66,.975:5.63,.95:6.57,.9:7.79,.5:13.34,.1:21.06,.05:23.68,.025:26.12,.01:29.14,.005:31.32},15:{.995:4.6,.99:5.23,.975:6.27,.95:7.26,.9:8.55,.5:14.34,.1:22.31,.05:25,.025:27.49,.01:30.58,.005:32.8},16:{.995:5.14,.99:5.81,.975:6.91,.95:7.96,.9:9.31,.5:15.34,.1:23.54,.05:26.3,.025:28.85,.01:32,.005:34.27},17:{.995:5.7,.99:6.41,.975:7.56,.95:8.67,.9:10.09,.5:16.34,.1:24.77,.05:27.59,.025:30.19,.01:33.41,.005:35.72},18:{.995:6.26,.99:7.01,.975:8.23,.95:9.39,.9:10.87,.5:17.34,.1:25.99,.05:28.87,.025:31.53,.01:34.81,.005:37.16},19:{.995:6.84,.99:7.63,.975:8.91,.95:10.12,.9:11.65,.5:18.34,.1:27.2,.05:30.14,.025:32.85,.01:36.19,.005:38.58},20:{.995:7.43,.99:8.26,.975:9.59,.95:10.85,.9:12.44,.5:19.34,.1:28.41,.05:31.41,.025:34.17,.01:37.57,.005:40},21:{.995:8.03,.99:8.9,.975:10.28,.95:11.59,.9:13.24,.5:20.34,.1:29.62,.05:32.67,.025:35.48,.01:38.93,.005:41.4},22:{.995:8.64,.99:9.54,.975:10.98,.95:12.34,.9:14.04,.5:21.34,.1:30.81,.05:33.92,.025:36.78,.01:40.29,.005:42.8},23:{.995:9.26,.99:10.2,.975:11.69,.95:13.09,.9:14.85,.5:22.34,.1:32.01,.05:35.17,.025:38.08,.01:41.64,.005:44.18},24:{.995:9.89,.99:10.86,.975:12.4,.95:13.85,.9:15.66,.5:23.34,.1:33.2,.05:36.42,.025:39.36,.01:42.98,.005:45.56},25:{.995:10.52,.99:11.52,.975:13.12,.95:14.61,.9:16.47,.5:24.34,.1:34.28,.05:37.65,.025:40.65,.01:44.31,.005:46.93},26:{.995:11.16,.99:12.2,.975:13.84,.95:15.38,.9:17.29,.5:25.34,.1:35.56,.05:38.89,.025:41.92,.01:45.64,.005:48.29},27:{.995:11.81,.99:12.88,.975:14.57,.95:16.15,.9:18.11,.5:26.34,.1:36.74,.05:40.11,.025:43.19,.01:46.96,.005:49.65},28:{.995:12.46,.99:13.57,.975:15.31,.95:16.93,.9:18.94,.5:27.34,.1:37.92,.05:41.34,.025:44.46,.01:48.28,.005:50.99},29:{.995:13.12,.99:14.26,.975:16.05,.95:17.71,.9:19.77,.5:28.34,.1:39.09,.05:42.56,.025:45.72,.01:49.59,.005:52.34},30:{.995:13.79,.99:14.95,.975:16.79,.95:18.49,.9:20.6,.5:29.34,.1:40.26,.05:43.77,.025:46.98,.01:50.89,.005:53.67},40:{.995:20.71,.99:22.16,.975:24.43,.95:26.51,.9:29.05,.5:39.34,.1:51.81,.05:55.76,.025:59.34,.01:63.69,.005:66.77},50:{.995:27.99,.99:29.71,.975:32.36,.95:34.76,.9:37.69,.5:49.33,.1:63.17,.05:67.5,.025:71.42,.01:76.15,.005:79.49},60:{.995:35.53,.99:37.48,.975:40.48,.95:43.19,.9:46.46,.5:59.33,.1:74.4,.05:79.08,.025:83.3,.01:88.38,.005:91.95},70:{.995:43.28,.99:45.44,.975:48.76,.95:51.74,.9:55.33,.5:69.33,.1:85.53,.05:90.53,.025:95.02,.01:100.42,.005:104.22},80:{.995:51.17,.99:53.54,.975:57.15,.95:60.39,.9:64.28,.5:79.33,.1:96.58,.05:101.88,.025:106.63,.01:112.33,.005:116.32},90:{.995:59.2,.99:61.75,.975:65.65,.95:69.13,.9:73.29,.5:89.33,.1:107.57,.05:113.14,.025:118.14,.01:124.12,.005:128.3},100:{.995:67.33,.99:70.06,.975:74.22,.95:77.93,.9:82.36,.5:99.33,.1:118.5,.05:124.34,.025:129.56,.01:135.81,.005:140.17}},B=Math.sqrt(2*Math.PI),q={gaussian:function(e){return Math.exp(-.5*e*e)/B}},z={nrd:function(e){var t=I(e),n=y(e);return"number"==typeof n&&(t=Math.min(t,n/1.34)),1.06*t*Math.pow(e.length,-.2)}};function U(e,t,n){var r,i;if(void 0===t)r=q.gaussian;else if("string"==typeof t){if(!q[t])throw new Error('Unknown kernel "'+t+'"');r=q[t]}else r=t;if(void 0===n)i=z.nrd(e);else if("string"==typeof n){if(!z[n])throw new Error('Unknown bandwidth method "'+n+'"');i=z[n](e)}else i=n;return function(t){var n=0,o=0;for(n=0;n<e.length;n++)o+=r((t-e[n])/i);return o/i/e.length}}var G=Math.sqrt(2*Math.PI);function V(e){for(var t=e,n=e,r=1;r<15;r++)t+=n*=e*e/(2*r+1);return Math.round(1e4*(.5+t/G*Math.exp(-e*e/2)))/1e4}for(var W=[],H=0;H<=3.09;H+=.01)W.push(V(H));function $(e){var t=1/(1+.5*Math.abs(e)),n=t*Math.exp(-Math.pow(e,2)-1.26551223+1.00002368*t+.37409196*Math.pow(t,2)+.09678418*Math.pow(t,3)-.18628806*Math.pow(t,4)+.27886807*Math.pow(t,5)-1.13520398*Math.pow(t,6)+1.48851587*Math.pow(t,7)-.82215223*Math.pow(t,8)+.17087277*Math.pow(t,9));return 0<=e?1-n:n-1}function K(e){var t=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),n=Math.sqrt(Math.sqrt(Math.pow(2/(Math.PI*t)+Math.log(1-e*e)/2,2)-Math.log(1-e*e)/t)-(2/(Math.PI*t)+Math.log(1-e*e)/2));return 0<=e?n:-n}function X(e){if("number"==typeof e)return e<0?-1:0===e?0:1;throw new TypeError("not a number")}e.linearRegression=function(e){var t,n,r=e.length;if(1===r)n=e[t=0][1];else{for(var i,o,a,s=0,l=0,c=0,u=0,d=0;d<r;d++)s+=o=(i=e[d])[0],l+=a=i[1],c+=o*o,u+=o*a;n=l/r-(t=(r*u-s*l)/(r*c-s*s))*s/r}return{m:t,b:n}},e.linearRegressionLine=function(e){return function(t){return e.b+e.m*t}},e.standardDeviation=o,e.rSquared=function(e,t){if(e.length<2)return 1;for(var n,r=0,i=0;i<e.length;i++)r+=e[i][1];n=r/e.length;for(var o=0,a=0;a<e.length;a++)o+=Math.pow(n-e[a][1],2);for(var s=0,l=0;l<e.length;l++)s+=Math.pow(e[l][1]-t(e[l][0]),2);return 1-s/o},e.mode=function(e){return a(s(e))},e.modeFast=function(e){for(var t,n=new Map,r=0,i=0;i<e.length;i++){var o=n.get(e[i]);void 0===o?o=1:o++,r<o&&(t=e[i],r=o),n.set(e[i],o)}if(0===r)throw new Error("mode requires at last one data point");return t},e.modeSorted=a,e.min=l,e.max=c,e.extent=function(e){if(0===e.length)throw new Error("extent requires at least one data point");for(var t=e[0],n=e[0],r=1;r<e.length;r++)e[r]>n&&(n=e[r]),e[r]<t&&(t=e[r]);return[t,n]},e.minSorted=function(e){return e[0]},e.maxSorted=function(e){return e[e.length-1]},e.extentSorted=function(e){return[e[0],e[e.length-1]]},e.sum=t,e.sumSimple=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n];return t},e.product=function(e){for(var t=1,n=0;n<e.length;n++)t*=e[n];return t},e.quantile=h,e.quantileSorted=u,e.quantileRank=function(e,t){return v(s(e),t)},e.quantileRankSorted=v,e.interquartileRange=y,e.iqr=y,e.medianAbsoluteDeviation=_,e.mad=_,e.chunk=function(e,t){var n=[];if(t<1)throw new Error("chunk size must be a positive number");if(Math.floor(t)!==t)throw new Error("chunk size must be an integer");for(var r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},e.sampleWithReplacement=function(e,t,n){if(0===e.length)return[];n=n||Math.random;for(var r=e.length,i=[],o=0;o<t;o++){var a=Math.floor(n()*r);i.push(e[a])}return i},e.shuffle=x,e.shuffleInPlace=w,e.sample=function(e,t,n){return x(e,n).slice(0,t)},e.ckmeans=function(e,t){if(t>e.length)throw new Error("cannot generate more classes than there are data values");var n=s(e);if(1===S(n))return[n];var r=C(t,n.length),i=C(t,n.length);!function(e,t,n){for(var r,i=t[0].length,o=e[Math.floor(i/2)],a=[],s=[],l=0;l<i;++l)r=e[l]-o,0===l?(a.push(r),s.push(r*r)):(a.push(a[l-1]+r),s.push(s[l-1]+r*r)),t[0][l]=E(0,l,a,s),n[0][l]=0;for(var c=1;c<t.length;++c)k(c<t.length-1?c:i-1,i-1,c,t,n,a,s)}(n,r,i);for(var o=[],a=i[0].length-1,l=i.length-1;0<=l;l--){var c=i[l][a];o[l]=n.slice(c,a+1),0<l&&(a=c-1)}return o},e.uniqueCountSorted=S,e.sumNthPowerDeviations=r,e.equalIntervalBreaks=function(e,t){if(e.length<2)return e;for(var n=l(e),r=c(e),i=[n],o=(r-n)/t,a=1;a<t;a++)i.push(i[0]+o*a);return i.push(r),i},e.sampleCovariance=O,e.sampleCorrelation=function(e,t){return O(e,t)/I(e)/I(t)},e.sampleVariance=T,e.sampleStandardDeviation=I,e.sampleSkewness=function(e){if(e.length<3)throw new Error("sampleSkewness requires at least three data points");for(var t,r=n(e),i=0,o=0,a=0;a<e.length;a++)i+=(t=e[a]-r)*t,o+=t*t*t;var s=e.length-1,l=Math.sqrt(i/s),c=e.length;return c*o/((c-1)*(c-2)*Math.pow(l,3))},e.sampleKurtosis=function(e){var t=e.length;if(t<4)throw new Error("sampleKurtosis requires at least four data points");for(var r,i=n(e),o=0,a=0,s=0;s<t;s++)o+=(r=e[s]-i)*r,a+=r*r*r*r;return(t-1)/((t-2)*(t-3))*(t*(t+1)*a/(o*o)-3*(t-1))},e.permutationsHeap=function(e){for(var t=new Array(e.length),n=[e.slice()],r=0;r<e.length;r++)t[r]=0;for(r=0;r<e.length;)if(t[r]<r){var i=0;r%2!=0&&(i=t[r]);var o=e[i];e[i]=e[r],e[r]=o,n.push(e.slice()),t[r]++,r=0}else t[r]=0,r++;return n},e.combinations=function e(t,n){var r,i,o,a,s=[];for(r=0;r<t.length;r++)if(1===n)s.push([t[r]]);else for(o=e(t.slice(r+1,t.length),n-1),i=0;i<o.length;i++)(a=o[i]).unshift(t[r]),s.push(a);return s},e.combinationsReplacement=function e(t,n){for(var r=[],i=0;i<t.length;i++)if(1===n)r.push([t[i]]);else for(var o=e(t.slice(i,t.length),n-1),a=0;a<o.length;a++)r.push([t[i]].concat(o[a]));return r},e.addToMean=function(e,t,n){return e+(n-e)/(t+1)},e.combineMeans=A,e.combineVariances=function(e,t,n,r,i,o){var a=A(t,n,i,o);return(n*(e+Math.pow(t-a,2))+o*(r+Math.pow(i-a,2)))/(n+o)},e.geometricMean=function(e){if(0===e.length)throw new Error("geometricMean requires at least one data point");for(var t=1,n=0;n<e.length;n++){if(e[n]<=0)throw new Error("geometricMean requires only positive numbers as input");t*=e[n]}return Math.pow(t,1/e.length)},e.harmonicMean=function(e){if(0===e.length)throw new Error("harmonicMean requires at least one data point");for(var t=0,n=0;n<e.length;n++){if(e[n]<=0)throw new Error("harmonicMean requires only positive numbers as input");t+=1/e[n]}return e.length/t},e.average=n,e.mean=n,e.median=b,e.medianSorted=function(e){return u(e,.5)},e.subtractFromMean=function(e,t,n){return(e*t-n)/(t-1)},e.rootMeanSquare=R,e.rms=R,e.variance=i,e.tTest=function(e,t){return(n(e)-t)/(o(e)/Math.sqrt(e.length))},e.tTestTwoSample=function(e,t,r){var i=e.length,o=t.length;if(!i||!o)return null;r||(r=0);var a=n(e),s=n(t),l=T(e),c=T(t);if("number"==typeof a&&"number"==typeof s&&"number"==typeof l&&"number"==typeof c){var u=((i-1)*l+(o-1)*c)/(i+o-2);return(a-s-r)/Math.sqrt(u*(1/i+1/o))}},e.BayesianClassifier=P,e.bayesian=P,e.PerceptronModel=M,e.perceptron=M,e.epsilon=N,e.factorial=L,e.gamma=function e(t){if("number"==typeof(n=t)&&isFinite(n)&&Math.floor(n)===n)return t<=0?NaN:L(t-1);var n;if(--t<0)return Math.PI/(Math.sin(Math.PI*-t)*e(-t));var r=t+.25;return Math.pow(t/Math.E,t)*Math.sqrt(2*Math.PI*(t+1/6))*(1+1/144/Math.pow(r,2)-1/12960/Math.pow(r,3)-257/207360/Math.pow(r,4)-52/2612736/Math.pow(r,5)+5741173/9405849600/Math.pow(r,6)+37529/18811699200/Math.pow(r,7))},e.gammaln=function(e){if(e<=0)return 1/0;e--;for(var t=D[0],n=1;n<15;n++)t+=D[n]/(e+n);var r=5.2421875+e;return j+Math.log(t)-r+(e+.5)*Math.log(r)},e.bernoulliDistribution=function(e){if(e<0||1<e)throw new Error("bernoulliDistribution requires probability to be between 0 and 1 inclusive");return[1-e,e]},e.binomialDistribution=function(e,t){if(!(t<0||1<t||e<=0||e%1!=0)){for(var n=0,r=0,i=[],o=1;i[n]=o*Math.pow(t,n)*Math.pow(1-t,e-n),r+=i[n],o=o*(e-++n+1)/n,r<1-N;);return i}},e.poissonDistribution=function(e){if(!(e<=0)){for(var t=0,n=0,r=[],i=1;r[t]=Math.exp(-e)*Math.pow(e,t)/i,n+=r[t],i*=++t,n<1-N;);return r}},e.chiSquaredDistributionTable=F,e.chiSquaredGoodnessOfFit=function(e,t,r){for(var i,o,a=0,s=t(n(e)),l=[],c=[],u=0;u<e.length;u++)void 0===l[e[u]]&&(l[e[u]]=0),l[e[u]]++;for(u=0;u<l.length;u++)void 0===l[u]&&(l[u]=0);for(o in s)o in l&&(c[+o]=s[o]*e.length);for(o=c.length-1;0<=o;o--)c[o]<3&&(c[o-1]+=c[o],c.pop(),l[o-1]+=l[o],l.pop());for(o=0;o<l.length;o++)a+=Math.pow(l[o]-c[o],2)/c[o];return i=l.length-1-1,F[i][r]<a},e.kernelDensityEstimation=U,e.kde=U,e.zScore=function(e,t,n){return(e-t)/n},e.cumulativeStdNormalProbability=function(e){var t=Math.abs(e),n=Math.min(Math.round(100*t),W.length-1);return 0<=e?W[n]:+(1-W[n]).toFixed(4)},e.standardNormalTable=W,e.errorFunction=$,e.erf=$,e.inverseErrorFunction=K,e.probit=function(e){return 0===e?e=N:1<=e&&(e=1-N),Math.sqrt(2)*K(2*e-1)},e.permutationTest=function(e,t,r,i){if(void 0===i&&(i=1e4),void 0===r&&(r="two_side"),"two_side"!==r&&"greater"!==r&&"less"!==r)throw new Error("`alternative` must be either 'two_side', 'greater', or 'less'");for(var o=n(e)-n(t),a=new Array(i),s=e.concat(t),l=Math.floor(s.length/2),c=0;c<i;c++){w(s);var u=s.slice(0,l),d=s.slice(l,s.length),f=n(u)-n(d);a[c]=f}var h=0;if("two_side"===r)for(c=0;c<=i;c++)Math.abs(a[c])>=Math.abs(o)&&(h+=1);else if("greater"===r)for(c=0;c<=i;c++)a[c]>=o&&(h+=1);else for(c=0;c<=i;c++)a[c]<=o&&(h+=1);return h/i},e.bisect=function(e,t,n,r,i){if("function"!=typeof e)throw new TypeError("func must be a function");for(var o=0;o<r;o++){var a=(t+n)/2;if(0===e(a)||Math.abs((n-t)/2)<i)return a;X(e(a))===X(e(t))?t=a:n=a}throw new Error("maximum number of iterations exceeded")},e.quickselect=d,e.sign=X,e.numericSort=s,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,n){"use strict";function r(){}t["a"]=r},function(e,t,n){"use strict";t["c"]=o,t["b"]=a,n.d(t,"d",(function(){return s}));var r=n(0),i=n(1);function o(e,t){var n,r=e*Object(i["y"])(t),o=30;do{t-=n=(t+Object(i["y"])(t)-r)/(1+Object(i["h"])(t))}while(Object(i["a"])(n)>i["k"]&&--o>0);return t/2}function a(e,t,n){function r(r,a){return[e*r*Object(i["h"])(a=o(n,a)),t*Object(i["y"])(a)]}return r.invert=function(r,o){return o=Object(i["e"])(o/t),[r/(e*Object(i["h"])(o)),Object(i["e"])((2*o+Object(i["y"])(2*o))/n)]},r}var s=a(i["D"]/i["o"],i["D"],i["s"]);t["a"]=function(){return Object(r["geoProjection"])(s).scale(169.529)}},function(e,t,n){"use strict";function r(e,t){e&&o.hasOwnProperty(e.type)&&o[e.type](e,t)}var i={Feature:function(e,t){r(e.geometry,t)},FeatureCollection:function(e,t){var n=e.features,i=-1,o=n.length;while(++i<o)r(n[i].geometry,t)}},o={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)a(n[r],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)s(n[r],t)},GeometryCollection:function(e,t){var n=e.geometries,i=-1,o=n.length;while(++i<o)r(n[i],t)}};function a(e,t,n){var r,i=-1,o=e.length-n;t.lineStart();while(++i<o)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function s(e,t){var n=-1,r=e.length;t.polygonStart();while(++n<r)a(e[n],t,1);t.polygonEnd()}t["a"]=function(e,t){e&&i.hasOwnProperty(e.type)?i[e.type](e,t):r(e,t)}},function(e,t,n){"use strict";var r=n(14),i=n(0),o=n(1);function a(e,t){return Object(o["a"])(e[0]-t[0])<o["k"]&&Object(o["a"])(e[1]-t[1])<o["k"]}function s(e,t){var n,r,i,o=-1,a=e.length,s=e[0],l=[];while(++o<a){n=e[o],r=(n[0]-s[0])/t,i=(n[1]-s[1])/t;for(var c=0;c<t;++c)l.push([s[0]+c*r,s[1]+c*i]);s=n}return l.push(n),l}function l(e){var t,n,i,a,l,c,u,d=[],f=e[0].length;for(u=0;u<f;++u)t=e[0][u],n=t[0][0],i=t[0][1],a=t[1][1],l=t[2][0],c=t[2][1],d.push(s([[n+o["k"],i+o["k"]],[n+o["k"],a-o["k"]],[l-o["k"],a-o["k"]],[l-o["k"],c+o["k"]]],30));for(u=e[1].length-1;u>=0;--u)t=e[1][u],n=t[0][0],i=t[0][1],a=t[1][1],l=t[2][0],c=t[2][1],d.push(s([[l-o["k"],c-o["k"]],[l-o["k"],a+o["k"]],[n+o["k"],a+o["k"]],[n+o["k"],i-o["k"]]],30));return{type:"Polygon",coordinates:[Object(r["merge"])(d)]}}t["a"]=function(e,t){var n=l(t);t=t.map((function(e){return e.map((function(e){return[[e[0][0]*o["v"],e[0][1]*o["v"]],[e[1][0]*o["v"],e[1][1]*o["v"]],[e[2][0]*o["v"],e[2][1]*o["v"]]]}))}));var r=t.map((function(t){return t.map((function(t){var n,r=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],o=e(t[1][0],t[0][1])[1],a=e(t[1][0],t[1][1])[1];return o>a&&(n=o,o=a,a=n),[[r,o],[i,a]]}))}));function s(n,r){for(var i=r<0?-1:1,o=t[+(r<0)],a=0,s=o.length-1;a<s&&n>o[a][2][0];++a);var l=e(n-o[a][1][0],r);return l[0]+=e(o[a][1][0],i*r>i*o[a][0][1]?o[a][0][1]:r)[0],l}e.invert&&(s.invert=function(n,i){for(var o=r[+(i<0)],l=t[+(i<0)],c=0,u=o.length;c<u;++c){var d=o[c];if(d[0][0]<=n&&n<d[1][0]&&d[0][1]<=i&&i<d[1][1]){var f=e.invert(n-e(l[c][1][0],0)[0],i);return f[0]+=l[c][1][0],a(s(f[0],f[1]),[n,i])?f:null}}});var c=Object(i["geoProjection"])(s),u=c.stream;return c.stream=function(e){var t=c.rotate(),r=u(e),o=(c.rotate([0,0]),u(e));return c.rotate(t),r.sphere=function(){Object(i["geoStream"])(n,o)},r},c}},function(e,t,n){var r=n(9),i=n(11),o=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return r(e,(function(n,r){i(e)&&"prototype"===r||t.push(r)})),t};e.exports=o},function(e,t,n){"use strict";function r(){}t["a"]=r},function(e,t,n){"use strict";function r(e,t){e&&o.hasOwnProperty(e.type)&&o[e.type](e,t)}var i={Feature:function(e,t){r(e.geometry,t)},FeatureCollection:function(e,t){var n=e.features,i=-1,o=n.length;while(++i<o)r(n[i].geometry,t)}},o={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)a(n[r],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)s(n[r],t)},GeometryCollection:function(e,t){var n=e.geometries,i=-1,o=n.length;while(++i<o)r(n[i],t)}};function a(e,t,n){var r,i=-1,o=e.length-n;t.lineStart();while(++i<o)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function s(e,t){var n=-1,r=e.length;t.polygonStart();while(++n<r)a(e[n],t,1);t.polygonEnd()}t["a"]=function(e,t){e&&i.hasOwnProperty(e.type)?i[e.type](e,t):r(e,t)}},function(e,t,n){"use strict";t["a"]=function(e){return function(){return e}}},function(e,t,n){var r=n(3);e.exports={assign:r}},function(e,t,n){"use strict";function r(){this.reset()}t["a"]=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(e){o(i,e,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}},function(e,t,n){"use strict";t["a"]=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}},function(e,t,n){"use strict";var r=n(0),i=n(1);t["a"]=function(e){var t=0,n=Object(r["geoProjectionMutator"])(e),o=n(t);return o.parallel=function(e){return arguments.length?n(t=e*i["v"]):t*i["j"]},o}},function(e,t,n){var r=n(9),i=n(54),o=Object.prototype.hasOwnProperty,a=function(e,t){if(null===e||!i(e))return{};var n={};return r(t,(function(t){o.call(e,t)&&(n[t]=e[t])})),n};e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(349);n.d(t,"path",(function(){return r["a"]}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(369);n.d(t,"cluster",(function(){return r["a"]}));var i=n(86);n.d(t,"hierarchy",(function(){return i["c"]}));var o=n(381);n.d(t,"pack",(function(){return o["a"]}));var a=n(160);n.d(t,"packSiblings",(function(){return a["a"]}));var s=n(161);n.d(t,"packEnclose",(function(){return s["a"]}));var l=n(383);n.d(t,"partition",(function(){return l["a"]}));var c=n(384);n.d(t,"stratify",(function(){return c["a"]}));var u=n(385);n.d(t,"tree",(function(){return u["a"]}));var d=n(386);n.d(t,"treemap",(function(){return d["a"]}));var f=n(387);n.d(t,"treemapBinary",(function(){return f["a"]}));var h=n(45);n.d(t,"treemapDice",(function(){return h["a"]}));var p=n(55);n.d(t,"treemapSlice",(function(){return p["a"]}));var m=n(388);n.d(t,"treemapSliceDice",(function(){return m["a"]}));var g=n(88);n.d(t,"treemapSquarify",(function(){return g["a"]}));var v=n(389);n.d(t,"treemapResquarify",(function(){return v["a"]}))},function(e,t,n){"use strict";t["g"]=i,t["a"]=o,t["d"]=a,t["c"]=s,t["b"]=l,t["f"]=c,t["e"]=u;var r=n(4);function i(e){return[Object(r["e"])(e[1],e[0]),Object(r["c"])(e[2])]}function o(e){var t=e[0],n=e[1],i=Object(r["g"])(n);return[i*Object(r["g"])(t),i*Object(r["t"])(t),Object(r["t"])(n)]}function a(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function s(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function l(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function c(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function u(e){var t=Object(r["u"])(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}},function(e,t,n){"use strict";t["a"]=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";t["b"]=i,t["a"]=o;var r=n(4);function i(e){return function(t,n){var i=Object(r["g"])(t),o=Object(r["g"])(n),a=e(i*o);return[a*o*Object(r["t"])(t),a*Object(r["t"])(n)]}}function o(e){return function(t,n){var i=Object(r["u"])(t*t+n*n),o=e(i),a=Object(r["t"])(o),s=Object(r["g"])(o);return[Object(r["e"])(t*a,i*s),Object(r["c"])(i&&n*a/i)]}}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){return[e*Object(i["h"])(t),t]}o.invert=function(e,t){return[e/Object(i["h"])(t),t]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(152.63)}},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var o=n(139),a=n(3),s=n(40),l=n(40),c=n(320),u=n(9),d=n(6),f=n(54),h=n(140),p=n(76),m=n(10),g=n(24),v=n(32);function y(e){var t={};return u(e,(function(e,n){p(e)&&e.isView?t[n]=e:d(e)?t[n]=e.concat([]):f(e)?t[n]=s(e):t[n]=e})),t}var b=function(e){function t(t,n){var r;r=e.call(this)||this;var o=i(i(r));if(n=n||{},t=t||{},t.isDataSet||(n=t,t=null),a(o,{dataSet:t,loose:!t,dataType:"table",isView:!0,isDataView:!0,origin:[],rows:[],transforms:[],watchingStates:null},n),!o.loose){var s=o.watchingStates;t.on("statechange",(function(e){d(s)?s.indexOf(e)>-1&&o._reExecute():o._reExecute()}))}return r}r(t,e);var n=t.prototype;return n._parseStateExpression=function(e){var t=this.dataSet,n=/^\$state\.(\w+)/.exec(e);return n?t.state[n[1]]:e},n._preparseOptions=function(e){var t=this,n=y(e);return t.loose||u(n,(function(e,r){m(e)&&/^\$state\./.test(e)&&(n[r]=t._parseStateExpression(e))})),n},n._prepareSource=function(e,n){var r=this,i=t.DataSet;if(r._source={source:e,options:n},n)n=r._preparseOptions(n),r.origin=i.getConnector(n.type)(e,n,r);else if(e instanceof t||m(e))r.origin=i.getConnector("default")(e,r.dataSet);else if(d(e))r.origin=e;else{if(!p(e)||!e.type)throw new TypeError("Invalid source");n=r._preparseOptions(e),r.origin=i.getConnector(n.type)(n,r)}return r.rows=l(r.origin),r},n.source=function(e,t){var n=this;return n._prepareSource(e,t),n._reExecuteTransforms(),n.trigger("change"),n},n.transform=function(e){void 0===e&&(e={});var t=this;return t.transforms.push(e),t._executeTransform(e),t},n._executeTransform=function(e){var n=this;e=n._preparseOptions(e);var r=t.DataSet.getTransform(e.type);r(n,e)},n._reExecuteTransforms=function(){var e=this;e.transforms.forEach((function(t){e._executeTransform(t)}))},n.addRow=function(e){this.rows.push(e)},n.removeRow=function(e){this.rows.splice(e,1)},n.updateRow=function(e,t){a(this.rows[e],t)},n.findRows=function(e){return this.rows.filter((function(t){return h(t,e)}))},n.findRow=function(e){return c(this.rows,e)},n.getColumnNames=function(){var e=this.rows[0];return e?g(e):[]},n.getColumnName=function(e){return this.getColumnNames()[e]},n.getColumnIndex=function(e){var t=this.getColumnNames();return t.indexOf(e)},n.getColumn=function(e){return this.rows.map((function(t){return t[e]}))},n.getColumnData=function(e){return this.getColumn(e)},n.getSubset=function(e,t,n){for(var r=[],i=e;i<=t;i++)r.push(v(this.rows[i],n));return r},n.toString=function(e){var t=this;return e?JSON.stringify(t.rows,null,2):JSON.stringify(t.rows)},n._reExecute=function(){var e=this,t=e._source,n=t.source,r=t.options;e._prepareSource(n,r),e._reExecuteTransforms(),e.trigger("change")},t}(o);e.exports=b},function(e,t,n){var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(6),o=function e(t){if("object"!==("undefined"===typeof t?"undefined":r(t))||null===t)return t;var n=void 0;if(i(t)){n=[];for(var o=0,a=t.length;o<a;o++)"object"===r(t[o])&&null!=t[o]?n[o]=e(t[o]):n[o]=t[o]}else for(var s in n={},t)"object"===r(t[s])&&null!=t[s]?n[s]=e(t[s]):n[s]=t[s];return n};e.exports=o},function(e,t){var n={}.toString,r=function(e,t){return n.call(e)==="[object "+t+"]"};e.exports=r},function(e,t,n){"use strict";function r(){this.reset()}t["a"]=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(e){o(i,e,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}},function(e,t,n){"use strict";t["g"]=i,t["a"]=o,t["d"]=a,t["c"]=s,t["b"]=l,t["f"]=c,t["e"]=u;var r=n(5);function i(e){return[Object(r["e"])(e[1],e[0]),Object(r["c"])(e[2])]}function o(e){var t=e[0],n=e[1],i=Object(r["g"])(n);return[i*Object(r["g"])(t),i*Object(r["t"])(t),Object(r["t"])(n)]}function a(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function s(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function l(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function c(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function u(e){var t=Object(r["u"])(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}},function(e,t,n){"use strict";t["b"]=i,t["a"]=o;var r=n(5);function i(e){return function(t,n){var i=Object(r["g"])(t),o=Object(r["g"])(n),a=e(i*o);return[a*o*Object(r["t"])(t),a*Object(r["t"])(n)]}}function o(e){return function(t,n){var i=Object(r["u"])(t*t+n*n),o=e(i),a=Object(r["t"])(o),s=Object(r["g"])(o);return[Object(r["e"])(t*a,i*s),Object(r["c"])(i&&n*a/i)]}}},function(e,t,n){"use strict";t["a"]=function(e,t,n,r,i){var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-t)/e.value;while(++s<l)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"m",(function(){return h})),t["b"]=p,t["c"]=m;var r=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,f=d/2,h=2*d;function p(e){return e>1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},function(e,t,n){"use strict";t["a"]=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}},function(e,t,n){"use strict";t["a"]=function(e){var t=e.length,n=new Array(t);while(--t>=0)n[t]=t;return n}},function(e,t,n){"use strict";n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),t["d"]=g;var r,i,o,a,s=n(513),l=n(191),c=n(192),u=n(100),d=n(99),f=1e-6,h=1e-12;function p(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function m(e,t){return t[1]-e[1]||t[0]-e[0]}function g(e,t){var n,f,h,p=e.sort(m).pop();a=[],i=new Array(e.length),r=new d["b"],o=new d["b"];while(1)if(h=c["c"],p&&(!h||p[1]<h.y||p[1]===h.y&&p[0]<h.x))p[0]===n&&p[1]===f||(Object(s["a"])(p),n=p[0],f=p[1]),p=e.pop();else{if(!h)break;Object(s["b"])(h.arc)}if(Object(l["d"])(),t){var g=+t[0][0],v=+t[0][1],y=+t[1][0],b=+t[1][1];Object(u["a"])(g,v,y,b),Object(l["b"])(g,v,y,b)}this.edges=a,this.cells=i,r=o=a=i=null}g.prototype={constructor:g,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return Object(l["a"])(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length){var i,o,a,s=n.site,l=-1,c=t[i[o-1]],u=c.left===s?c.right:c.left;while(++l<o)a=u,c=t[i[l]],u=c.left===s?c.right:c.left,a&&u&&r<a.index&&r<u.index&&p(s,a,u)<0&&e.push([s.data,a.data,u.data])}})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){var r,i,o=this,a=o._found||0,s=o.cells.length;while(!(i=o.cells[a]))if(++a>=s)return null;var l=e-i.site[0],c=t-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;d<u&&(u=d,a=s.index)}}))}while(null!==a);return o._found=r,null==n||u<=n*n?i.site:null}}},function(e,t,n){"use strict";t["b"]=a;var r=n(105),i=n(4);function o(e,t){return[e>i["o"]?e-i["w"]:e<-i["o"]?e+i["w"]:e,t]}function a(e,t,n){return(e%=i["w"])?t||n?Object(r["a"])(l(e),c(t,n)):l(e):t||n?c(t,n):o}function s(e){return function(t,n){return t+=e,[t>i["o"]?t-i["w"]:t<-i["o"]?t+i["w"]:t,n]}}function l(e){var t=s(e);return t.invert=s(-e),t}function c(e,t){var n=Object(i["g"])(e),r=Object(i["t"])(e),o=Object(i["g"])(t),a=Object(i["t"])(t);function s(e,t){var s=Object(i["g"])(t),l=Object(i["g"])(e)*s,c=Object(i["t"])(e)*s,u=Object(i["t"])(t),d=u*n+l*r;return[Object(i["e"])(c*o-d*a,l*n-u*r),Object(i["c"])(d*o+c*a)]}return s.invert=function(e,t){var s=Object(i["g"])(t),l=Object(i["g"])(e)*s,c=Object(i["t"])(e)*s,u=Object(i["t"])(t),d=u*o-c*a;return[Object(i["e"])(c*o+u*a,l*n+d*r),Object(i["c"])(d*n-l*r)]},s}o.invert=o,t["a"]=function(e){function t(t){return t=e(t[0]*i["r"],t[1]*i["r"]),t[0]*=i["h"],t[1]*=i["h"],t}return e=a(e[0]*i["r"],e[1]*i["r"],e.length>2?e[2]*i["r"]:0),t.invert=function(t){return t=e.invert(t[0]*i["r"],t[1]*i["r"]),t[0]*=i["h"],t[1]*=i["h"],t},t}},function(e,t,n){"use strict";function r(e){return function(t){var n=new i;for(var r in e)n[r]=e[r];return n.stream=t,n}}function i(){}t["b"]=r,t["a"]=function(e){return{stream:r(e)}},i.prototype={constructor:i,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(e,t,n){"use strict";var r=n(1);t["a"]=function(e,t,n,i,o,a,s,l){function c(c,u){if(!u)return[e*c/r["s"],0];var d=u*u,f=e+d*(t+d*(n+d*i)),h=u*(o-1+d*(a-l+d*s)),p=(f*f+h*h)/(2*h),m=c*Object(r["e"])(f/p)/r["s"];return[p*Object(r["y"])(m),u*(1+d*l)+p*(1-Object(r["h"])(m))]}return arguments.length<8&&(l=0),c.invert=function(c,u){var d,f,h=r["s"]*c/e,p=u,m=50;do{var g=p*p,v=e+g*(t+g*(n+g*i)),y=p*(o-1+g*(a-l+g*s)),b=v*v+y*y,_=2*y,w=b/_,x=w*w,S=Object(r["e"])(v/w)/r["s"],C=h*S,E=v*v,k=(2*t+g*(4*n+6*g*i))*p,O=o+g*(3*a+5*g*s),T=2*(v*k+y*(O-1)),I=2*(O-1),A=(T*_-b*I)/(_*_),R=Object(r["h"])(C),P=Object(r["y"])(C),M=w*R,N=w*P,L=h/r["s"]*(1/Object(r["B"])(1-E/x))*(k*w-v*A)/x,D=N-c,j=p*(1+g*l)+w-M-u,F=A*P+M*L,B=M*S,q=1+A-(A*R-N*L),z=N*S,U=F*z-q*B;if(!U)break;h-=d=(j*F-D*q)/U,p-=f=(D*z-j*B)/U}while((Object(r["a"])(d)>r["k"]||Object(r["a"])(f)>r["k"])&&--m>0);return[h,p]},c}},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(294);function a(e,t,n){var o,s,l=t.edges,c=l.length,u={type:"MultiPoint",coordinates:t.face},d=t.face.filter((function(e){return 90!==Object(i["a"])(e[1])})),f=Object(r["geoBounds"])({type:"MultiPoint",coordinates:d}),h=!1,p=-1,m=f[1][0]-f[0][0],g=180===m||360===m?[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]:Object(r["geoCentroid"])(u);if(n)while(++p<c)if(l[p]===n)break;++p;for(var v=0;v<c;++v)s=l[(v+p)%c],Array.isArray(s)?(h||(e.point((o=Object(r["geoInterpolate"])(s[0],g)(i["k"]))[0],o[1]),h=!0),e.point((o=Object(r["geoInterpolate"])(s[1],g)(i["k"]))[0],o[1])):(h=!1,s!==n&&a(e,s,t))}function s(e,t){return e&&t&&e[0]===t[0]&&e[1]===t[1]}function l(e,t){for(var n,r,i=e.length,o=null,a=0;a<i;++a){n=e[a];for(var s=t.length;--s>=0;)if(r=t[s],n[0]===r[0]&&n[1]===r[1]){if(o)return[o,n];o=n}}}function c(e){for(var t=e.length,n=[],r=e[t-1],i=0;i<t;++i)n.push([r,r=e[i]]);return n}function u(e){return e.project.invert||e.children&&e.children.some(u)}t["a"]=function(e,t,n){function d(e,t){if(e.edges=c(e.face),t.face){var n=e.shared=l(e.face,t.face),r=Object(o["a"])(n.map(t.project),n.map(e.project));e.transform=t.transform?Object(o["c"])(t.transform,r):r;for(var i=t.edges,a=0,u=i.length;a<u;++a)s(n[0],i[a][1])&&s(n[1],i[a][0])&&(i[a]=e),s(n[0],i[a][0])&&s(n[1],i[a][1])&&(i[a]=e);for(i=e.edges,a=0,u=i.length;a<u;++a)s(n[0],i[a][0])&&s(n[1],i[a][1])&&(i[a]=t),s(n[0],i[a][1])&&s(n[1],i[a][0])&&(i[a]=t)}else e.transform=t.transform;return e.children&&e.children.forEach((function(t){d(t,e)})),e}function f(e,n){var r,o=t(e,n),a=o.project([e*i["j"],n*i["j"]]);return(r=o.transform)?[r[0]*a[0]+r[1]*a[1]+r[2],-(r[3]*a[0]+r[4]*a[1]+r[5])]:(a[1]=-a[1],a)}function h(e,t){var n=e.project.invert,r=e.transform,i=t;if(r&&(r=Object(o["b"])(r),i=[r[0]*i[0]+r[1]*i[1]+r[2],r[3]*i[0]+r[4]*i[1]+r[5]]),n&&e===p(a=n(i)))return a;for(var a,s=e.children,l=0,c=s&&s.length;l<c;++l)if(a=h(s[l],t))return a}function p(e){return t(e[0]*i["v"],e[1]*i["v"])}n=null==n?-i["s"]/6:n,d(e,{transform:[Object(i["h"])(n),Object(i["y"])(n),0,-Object(i["y"])(n),Object(i["h"])(n),0]}),u(e)&&(f.invert=function(t,n){var r=h(e,[t,-n]);return r&&(r[0]*=i["v"],r[1]*=i["v"],r)});var m=Object(r["geoProjection"])(f),g=m.stream;return m.stream=function(t){var n=m.rotate(),r=g(t),i=(m.rotate([0,0]),g(t));return m.rotate(n),r.sphere=function(){i.polygonStart(),i.lineStart(),a(i,e),i.lineEnd(),i.polygonEnd()},r},m}},function(e,t,n){var r=n(321),i=n(41),o=function(e){if(!r(e)||!i(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;var t=e;while(null!==Object.getPrototypeOf(t))t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};e.exports=o},function(e,t,n){"use strict";t["a"]=function(e,t,n,r,i){var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-n)/e.value;while(++s<l)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}},function(e,t,n){var r=n(41),i=function(e){return r(e,"Number")};e.exports=i},function(e,t){e.exports=function(e,t){var n=t||1,r=e[0],i=e[1],o=[],a=r;while(a<i)o.push(a),a+=n;return o.push(i),o}},function(e,t,n){var r=n(19),i=r.standardDeviation,o=r.interquartileRange;e.exports={silverman:function(e){var t=i(e),n=4*Math.pow(t,5),r=3*e.length;return Math.pow(n/r,.2)},nrd:function(e){var t=i(e),n=o(e);return"number"===typeof n&&(t=Math.min(t,n/1.34)),1.06*t*Math.pow(e.length,-.2)}}},function(e,t,n){"use strict";var r=n(8);function i(e){var t={};function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var a=r.minBy(r.map(e.outEdges(i),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),o.rank=a}r.forEach(e.sources(),n)}function o(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}e.exports={longestPath:i,slack:o}},function(e,t,n){"use strict";function r(e){this._context=e}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}},t["a"]=function(e){return new r(e)}},function(e,t,n){"use strict";t["a"]=function(){}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i(e){this._context=e}t["b"]=r,t["a"]=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}t["b"]=r,t["a"]=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n})(0)},function(e,t,n){var r=n(193),i=function(){function e(e,t){void 0===t&&(t={});var n=this;n.options=t,n.rootNode=r(e,t)}var t=e.prototype;return t.execute=function(){throw new Error("please override this method")},e}();e.exports=i},function(e,t,n){"use strict";t["a"]=u;var r=n(4),i=n(106),o=n(200),a=n(107),s=n(14),l=1e9,c=-l;function u(e,t,n,u){function d(r,i){return e<=r&&r<=n&&t<=i&&i<=u}function f(r,i,o,a){var s=0,l=0;if(null==r||(s=h(r,o))!==(l=h(i,o))||m(r,i)<0^o>0)do{a.point(0===s||3===s?e:n,s>1?u:t)}while((s=(s+o+4)%4)!==l);else a.point(i[0],i[1])}function h(i,o){return Object(r["a"])(i[0]-e)<r["i"]?o>0?0:3:Object(r["a"])(i[0]-n)<r["i"]?o>0?2:1:Object(r["a"])(i[1]-t)<r["i"]?o>0?1:0:o>0?3:2}function p(e,t){return m(e.x,t.x)}function m(e,t){var n=h(e,1),r=h(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(r){var h,m,g,v,y,b,_,w,x,S,C,E=r,k=Object(i["a"])(),O={point:T,lineStart:P,lineEnd:M,polygonStart:A,polygonEnd:R};function T(e,t){d(e,t)&&E.point(e,t)}function I(){for(var t=0,n=0,r=m.length;n<r;++n)for(var i,o,a=m[n],s=1,l=a.length,c=a[0],d=c[0],f=c[1];s<l;++s)i=d,o=f,c=a[s],d=c[0],f=c[1],o<=u?f>u&&(d-i)*(u-o)>(f-o)*(e-i)&&++t:f<=u&&(d-i)*(u-o)<(f-o)*(e-i)&&--t;return t}function A(){E=k,h=[],m=[],C=!0}function R(){var e=I(),t=C&&e,n=(h=Object(s["merge"])(h)).length;(t||n)&&(r.polygonStart(),t&&(r.lineStart(),f(null,null,1,r),r.lineEnd()),n&&Object(a["a"])(h,p,e,f,r),r.polygonEnd()),E=r,h=m=g=null}function P(){O.point=N,m&&m.push(g=[]),S=!0,x=!1,_=w=NaN}function M(){h&&(N(v,y),b&&x&&k.rejoin(),h.push(k.result())),O.point=T,x&&E.lineEnd()}function N(r,i){var a=d(r,i);if(m&&g.push([r,i]),S)v=r,y=i,b=a,S=!1,a&&(E.lineStart(),E.point(r,i));else if(a&&x)E.point(r,i);else{var s=[_=Math.max(c,Math.min(l,_)),w=Math.max(c,Math.min(l,w))],f=[r=Math.max(c,Math.min(l,r)),i=Math.max(c,Math.min(l,i))];Object(o["a"])(s,f,e,t,n,u)?(x||(E.lineStart(),E.point(s[0],s[1])),E.point(f[0],f[1]),a||E.lineEnd(),C=!1):a&&(E.lineStart(),E.point(r,i),C=!1)}_=r,w=i,x=a}return O}}t["b"]=function(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=u(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}}},function(e,t,n){"use strict";var r=n(36);t["a"]=function(e,t,n){if(null==n&&(n=r["a"]),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,o=(i-1)*t,a=Math.floor(o),s=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return s+(l-s)*(o-a)}}},function(e,t,n){"use strict";t["a"]=function(e){return e}},function(e,t,n){"use strict";t["a"]=a;var r=n(4),i=n(69),o=n(229);function a(e,t){var n=Object(r["t"])(e),i=(n+Object(r["t"])(t))/2;if(Object(r["a"])(i)<r["i"])return Object(o["a"])(e);var a=1+n*(2*i-n),s=Object(r["u"])(a)/i;function l(e,t){var n=Object(r["u"])(a-2*i*Object(r["t"])(t))/i;return[n*Object(r["t"])(e*=i),s-n*Object(r["g"])(e)]}return l.invert=function(e,t){var n=s-t;return[Object(r["e"])(e,Object(r["a"])(n))/i*Object(r["s"])(n),Object(r["c"])((a-(e*e+n*n)*i*i)/(2*i))]},l}t["b"]=function(){return Object(i["a"])(a).scale(155.424).center([0,33.6442])}},function(e,t,n){"use strict";t["a"]=o;var r=n(4),i=n(17);function o(e){var t=0,n=r["o"]/3,o=Object(i["b"])(e),a=o(t,n);return a.parallels=function(e){return arguments.length?o(t=e[0]*r["r"],n=e[1]*r["r"]):[t*r["h"],n*r["h"]]},a}},function(e,t,n){"use strict";t["a"]=o,t["b"]=a;var r=n(22),i=n(124);function o(e,t,n){var o=t[1][0]-t[0][0],a=t[1][1]-t[0][1],s=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=s&&e.clipExtent(null),Object(r["a"])(n,e.stream(i["a"]));var l=i["a"].result(),c=Math.min(o/(l[1][0]-l[0][0]),a/(l[1][1]-l[0][1])),u=+t[0][0]+(o-c*(l[1][0]+l[0][0]))/2,d=+t[0][1]+(a-c*(l[1][1]+l[0][1]))/2;return null!=s&&e.clipExtent(s),e.scale(150*c).translate([u,d])}function a(e,t,n){return o(e,[[0,0],t],n)}},function(e,t,n){"use strict";t["c"]=a,t["b"]=s;var r=n(4),i=n(50),o=n(17);function a(e,t){return[e,Object(r["n"])(Object(r["v"])((r["l"]+t)/2))]}function s(e){var t,n,s,l=Object(o["a"])(e),c=l.center,u=l.scale,d=l.translate,f=l.clipExtent,h=null;function p(){var o=r["o"]*u(),c=l(Object(i["a"])(l.rotate()).invert([0,0]));return f(null==h?[[c[0]-o,c[1]-o],[c[0]+o,c[1]+o]]:e===a?[[Math.max(c[0]-o,h),t],[Math.min(c[0]+o,n),s]]:[[h,Math.max(c[1]-o,t)],[n,Math.min(c[1]+o,s)]])}return l.scale=function(e){return arguments.length?(u(e),p()):u()},l.translate=function(e){return arguments.length?(d(e),p()):d()},l.center=function(e){return arguments.length?(c(e),p()):c()},l.clipExtent=function(e){return arguments.length?(null==e?h=t=n=s=null:(h=+e[0][0],t=+e[0][1],n=+e[1][0],s=+e[1][1]),p()):null==h?null:[[h,t],[n,s]]},p()}a.invert=function(e,t){return[e,2*Object(r["d"])(Object(r["k"])(t))-r["l"]]},t["a"]=function(){return s(a).scale(961/r["w"])}},function(e,t,n){"use strict";t["a"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["B"])(1-Object(i["y"])(t));return[2/i["E"]*e*n,i["E"]*(1-n)]}o.invert=function(e,t){var n=(n=t/i["E"]-1)*n;return[n>0?e*Object(i["B"])(i["s"]/n)/2:0,Object(i["e"])(1-n)]},t["b"]=function(){return Object(r["geoProjection"])(o).scale(95.6464).center([0,30])}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return s})),t["c"]=l;var r=n(0),i=n(21),o=n(38),a=.7109889596207567,s=.0528035274542;function l(e,t){return t>-a?(e=Object(i["d"])(e,t),e[1]+=s,e):Object(o["b"])(e,t)}l.invert=function(e,t){return t>-a?i["d"].invert(e,t-s):o["b"].invert(e,t)},t["a"]=function(){return Object(r["geoProjection"])(l).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(e,t,n){"use strict";var r=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];t["a"]=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(e){return e.map((function(e){return r[e]}))}))},function(e,t,n){"use strict";var r=n(0),i=n(1);t["a"]=function(e){var t=e(i["o"],0)[0]-e(-i["o"],0)[0];function n(n,r){var o=Object(i["a"])(n)<i["o"],a=e(o?n:n>0?n-i["s"]:n+i["s"],r),s=(a[0]-a[1])*i["C"],l=(a[0]+a[1])*i["C"];if(o)return[s,l];var c=t*i["C"],u=s>0^l>0?-1:1;return[u*s-Object(i["x"])(l)*c,u*l-Object(i["x"])(s)*c]}return e.invert&&(n.invert=function(n,r){var o=(n+r)*i["C"],a=(r-n)*i["C"],s=Object(i["a"])(o)<.5*t&&Object(i["a"])(a)<.5*t;if(!s){var l=t*i["C"],c=o>0^a>0?-1:1,u=-c*n+(a>0?1:-1)*l,d=-c*r+(o>0?1:-1)*l;o=(-u-d)*i["C"],a=(u-d)*i["C"]}var f=e.invert(o,a);return s||(f[0]+=o>0?i["s"]:-i["s"]),f}),Object(r["geoProjection"])(n).rotate([-90,-90,45]).clipAngle(179.999)}},function(e,t){var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e){var t="undefined"===typeof e?"undefined":n(e);return null!==e&&"object"===t||"function"===t};e.exports=r},function(e,t){var n=function(e){return null===e||void 0===e};e.exports=n},function(e,t,n){"use strict";t["b"]=a;var r=n(144),i=n(5);function o(e,t){return[e>i["o"]?e-i["w"]:e<-i["o"]?e+i["w"]:e,t]}function a(e,t,n){return(e%=i["w"])?t||n?Object(r["a"])(l(e),c(t,n)):l(e):t||n?c(t,n):o}function s(e){return function(t,n){return t+=e,[t>i["o"]?t-i["w"]:t<-i["o"]?t+i["w"]:t,n]}}function l(e){var t=s(e);return t.invert=s(-e),t}function c(e,t){var n=Object(i["g"])(e),r=Object(i["t"])(e),o=Object(i["g"])(t),a=Object(i["t"])(t);function s(e,t){var s=Object(i["g"])(t),l=Object(i["g"])(e)*s,c=Object(i["t"])(e)*s,u=Object(i["t"])(t),d=u*n+l*r;return[Object(i["e"])(c*o-d*a,l*n-u*r),Object(i["c"])(d*o+c*a)]}return s.invert=function(e,t){var s=Object(i["g"])(t),l=Object(i["g"])(e)*s,c=Object(i["t"])(e)*s,u=Object(i["t"])(t),d=u*o-c*a;return[Object(i["e"])(c*o+u*a,l*n+d*r),Object(i["c"])(d*n-l*r)]},s}o.invert=o,t["a"]=function(e){function t(t){return t=e(t[0]*i["r"],t[1]*i["r"]),t[0]*=i["h"],t[1]*=i["h"],t}return e=a(e[0]*i["r"],e[1]*i["r"],e.length>2?e[2]*i["r"]:0),t.invert=function(t){return t=e.invert(t[0]*i["r"],t[1]*i["r"]),t[0]*=i["h"],t[1]*=i["h"],t},t}},function(e,t,n){"use strict";t["a"]=o;var r=n(5),i=n(80);function o(e,t){var n=Object(r["t"])(e),i=(n+Object(r["t"])(t))/2,o=1+n*(2*i-n),a=Object(r["u"])(o)/i;function s(e,t){var n=Object(r["u"])(o-2*i*Object(r["t"])(t))/i;return[n*Object(r["t"])(e*=i),a-n*Object(r["g"])(e)]}return s.invert=function(e,t){var n=a-t;return[Object(r["e"])(e,n)/i,Object(r["c"])((o-(e*e+n*n)*i*i)/(2*i))]},s}t["b"]=function(){return Object(i["a"])(o).scale(155.424).center([0,33.6442])}},function(e,t,n){"use strict";t["a"]=o;var r=n(5),i=n(18);function o(e){var t=0,n=r["o"]/3,o=Object(i["b"])(e),a=o(t,n);return a.parallels=function(e){return arguments.length?o(t=e[0]*r["r"],n=e[1]*r["r"]):[t*r["h"],n*r["h"]]},a}},function(e,t,n){"use strict";function r(e){function t(){}var n=t.prototype=Object.create(i.prototype);for(var r in e)n[r]=e[r];return function(e){var n=new t;return n.stream=e,n}}function i(){}t["b"]=r,t["a"]=function(e){return{stream:r(e)}},i.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(e,t,n){"use strict";t["c"]=o,t["b"]=a;var r=n(18),i=n(5);function o(e,t){return[e,Object(i["n"])(Object(i["v"])((i["l"]+t)/2))]}function a(e){var t,n=Object(r["a"])(e),o=n.scale,a=n.translate,s=n.clipExtent;return n.scale=function(e){return arguments.length?(o(e),t&&n.clipExtent(null),n):o()},n.translate=function(e){return arguments.length?(a(e),t&&n.clipExtent(null),n):a()},n.clipExtent=function(e){if(!arguments.length)return t?null:s();if(t=null==e){var r=i["o"]*o(),l=a();e=[[l[0]-r,l[1]-r],[l[0]+r,l[1]+r]]}return s(e),n},n.clipExtent(null)}o.invert=function(e,t){return[e,2*Object(i["d"])(Object(i["k"])(t))-i["l"]]},t["a"]=function(){return a(o).scale(961/i["w"])}},function(e,t,n){var r=n(9),i=n(11),o=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return r(e,(function(n,r){i(e)&&"prototype"===r||t.push(n)})),t};e.exports=o},function(e,t){e.exports={HIERARCHY:"hierarchy",GEO:"geo",HEX:"hex",GRAPH:"graph",TABLE:"table",GEO_GRATICULE:"geo-graticule",STATISTICS_METHODS:["max","mean","median","min","mode","product","standardDeviation","sum","sumSimple","variance"]}},function(e,t,n){"use strict";var r={},i={},o=34,a=10,s=13;function l(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}")}function c(e,t){var n=l(e);return function(r,i){return t(n(r),i,e)}}function u(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}t["a"]=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function d(e,t){var n,r,i=f(e,(function(e,i){if(n)return n(e,i-1);r=e,n=t?c(e,t):l(e)}));return i.columns=r||[],i}function f(e,t){var l,c=[],u=e.length,d=0,f=0,h=u<=0,p=!1;function m(){if(h)return i;if(p)return p=!1,r;var t,l,c=d;if(e.charCodeAt(c)===o){while(d++<u&&e.charCodeAt(d)!==o||e.charCodeAt(++d)===o);return(t=d)>=u?h=!0:(l=e.charCodeAt(d++))===a?p=!0:l===s&&(p=!0,e.charCodeAt(d)===a&&++d),e.slice(c+1,t-1).replace(/""/g,'"')}while(d<u){if((l=e.charCodeAt(t=d++))===a)p=!0;else if(l===s)p=!0,e.charCodeAt(d)===a&&++d;else if(l!==n)continue;return e.slice(c,t)}return h=!0,e.slice(c,u)}e.charCodeAt(u-1)===a&&--u,e.charCodeAt(u-1)===s&&--u;while((l=m())!==i){var g=[];while(l!==r&&l!==i)g.push(l),l=m();t&&null==(g=t(g,f++))||c.push(g)}return c}function h(t,n){return null==n&&(n=u(t)),[n.map(g).join(e)].concat(t.map((function(t){return n.map((function(e){return g(t[e])})).join(e)}))).join("\n")}function p(e){return e.map(m).join("\n")}function m(t){return t.map(g).join(e)}function g(e){return null==e?"":t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:d,parseRows:f,format:h,formatRows:p}}},function(e,t,n){"use strict";t["c"]=p,t["b"]=y,t["a"]=b;var r=n(370),i=n(371),o=n(372),a=n(373),s=n(374),l=n(375),c=n(376),u=n(377),d=n(378),f=n(379),h=n(380);function p(e,t){var n,r,i,o,a,s=new b(e),l=+e.value&&(s.value=e.value),c=[s];null==t&&(t=g);while(n=c.pop())if(l&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new b(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(y)}function m(){return p(this).eachBefore(v)}function g(e){return e.children}function v(e){e.data=e.data.data}function y(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function b(e){this.data=e,this.depth=this.height=0,this.parent=null}b.prototype=p.prototype={constructor:b,count:r["a"],each:i["a"],eachAfter:a["a"],eachBefore:o["a"],sum:s["a"],sort:l["a"],path:c["a"],ancestors:u["a"],descendants:d["a"],leaves:f["a"],links:h["a"],copy:m}},function(e,t,n){"use strict";function r(e){return null==e?null:i(e)}function i(e){if("function"!==typeof e)throw new Error;return e}t["a"]=r,t["b"]=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),t["c"]=a;var r=n(45),i=n(55),o=(1+Math.sqrt(5))/2;function a(e,t,n,o,a,s){var l,c,u,d,f,h,p,m,g,v,y,b=[],_=t.children,w=0,x=0,S=_.length,C=t.value;while(w<S){u=a-n,d=s-o;do{f=_[x++].value}while(!f&&x<S);for(h=p=f,v=Math.max(d/u,u/d)/(C*e),y=f*f*v,g=Math.max(p/y,y/h);x<S;++x){if(f+=c=_[x].value,c<h&&(h=c),c>p&&(p=c),y=f*f*v,m=Math.max(p/y,y/h),m>g){f-=c;break}g=m}b.push(l={value:f,dice:u<d,children:_.slice(w,x)}),l.dice?Object(r["a"])(l,n,o,a,C?o+=d*f/C:s):Object(i["a"])(l,n,o,C?n+=u*f/C:a,s),C-=f,w=x}return b}t["a"]=function e(t){function n(e,n,r,i,o){a(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(o)},function(e,t,n){"use strict";var r=n(165);t["a"]=function(e){if(null==e)return r["a"];var t,n,i=e.scale[0],o=e.scale[1],a=e.translate[0],s=e.translate[1];return function(e,r){r||(t=n=0);var l=2,c=e.length,u=new Array(c);u[0]=(t+=e[0])*i+a,u[1]=(n+=e[1])*o+s;while(l<c)u[l]=e[l],++l;return u}}},function(e,t,n){"use strict";t["b"]=a;var r=n(392),i=n(89);function o(e,t){var n=t.id,r=t.bbox,i=null==t.properties?{}:t.properties,o=a(e,t);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function a(e,t){var n=Object(i["a"])(e.transform),o=e.arcs;function a(e,t){t.length&&t.pop();for(var i=o[e<0?~e:e],a=0,s=i.length;a<s;++a)t.push(n(i[a],a));e<0&&Object(r["a"])(t,s)}function s(e){return n(e)}function l(e){for(var t=[],n=0,r=e.length;n<r;++n)a(e[n],t);return t.length<2&&t.push(t[0]),t}function c(e){var t=l(e);while(t.length<4)t.push(t[0]);return t}function u(e){return e.map(c)}function d(e){var t,n=e.type;switch(n){case"GeometryCollection":return{type:n,geometries:e.geometries.map(d)};case"Point":t=s(e.coordinates);break;case"MultiPoint":t=e.coordinates.map(s);break;case"LineString":t=l(e.arcs);break;case"MultiLineString":t=e.arcs.map(l);break;case"Polygon":t=u(e.arcs);break;case"MultiPolygon":t=e.arcs.map(u);break;default:return null}return{type:n,coordinates:t}}return d(t)}t["a"]=function(e,t){return"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map((function(t){return o(e,t)}))}:o(e,t)}},function(e,t){var n=function(e){return null!==e&&"function"!==typeof e&&isFinite(e.length)};e.exports=n},function(e,t){function n(e){return Math.abs(e)<=1?.5:0}function r(e){var t=1-Math.pow(Math.abs(e),3);return Math.pow(t,3)}e.exports={boxcar:n,cosine:function(e){return Math.abs(e)<=1?Math.PI/4*Math.cos(Math.PI/2*e):0},epanechnikov:function(e){return Math.abs(e)<1?.75*(1-e*e):0},gaussian:function(e){return.3989422804*Math.exp(-.5*e*e)},quartic:function(e){if(Math.abs(e)<1){var t=1-e*e;return 15/16*t*t}return 0},triangular:function(e){var t=Math.abs(e);return t<1?1-t:0},tricube:function(e){return Math.abs(e)<1?70/81*r(e):0},triweight:function(e){if(Math.abs(e)<1){var t=1-e*e;return 35/32*t*t*t}return 0},uniform:n}},function(e,t,n){"use strict";var r=n(13);e.exports=s;var i="\0",o="\0",a="";function s(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function u(e,t,n,o){var s=""+t,l=""+n;if(!e&&s>l){var c=s;s=l,l=c}return s+a+l+a+(r.isUndefined(o)?i:o)}function d(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function f(e,t){return u(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},s.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=o;else{t+="";for(var n=t;!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){var t;return t=this.isDirected()?this.successors(e):this.neighbors(e),0===t.length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};function o(e){var r=n.parent(e);return void 0===r||t.hasNode(r)?(i[e]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,o(e))})),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},s.prototype.setEdge=function(){var e,t,n,i,o=!1,a=arguments[0];"object"===typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=u(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return o&&(this._edgeLabels[s]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=o?i:this._defaultEdgeLabelFn(e,t,n);var c=d(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,l(this._preds[t],e),l(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?f(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));var r="$";function i(){}function o(e,t){var n=new i;if(e instanceof i)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,a=e.length;if(null==t)while(++o<a)n.set(o,e[o]);else while(++o<a)n.set(t(r=e[o],o,e),r)}else if(e)for(var s in e)n.set(s,e[s]);return n}i.prototype=o.prototype={constructor:i,has:function(e){return r+e in this},get:function(e){return this[r+e]},set:function(e,t){return this[r+e]=t,this},remove:function(e){var t=r+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===r&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===r&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===r&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===r&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===r&&++e;return e},empty:function(){for(var e in this)if(e[0]===r)return!1;return!0},each:function(e){for(var t in this)t[0]===r&&e(this[t],t.slice(1),this)}},t["a"]=o},function(e,t,n){"use strict";var r=n(33),i=n(27),o=n(60),a=n(96);t["a"]=function(){var e=a["a"],t=a["b"],n=Object(i["a"])(!0),s=null,l=o["a"],c=null;function u(i){var o,a,u,d=i.length,f=!1;for(null==s&&(c=l(u=Object(r["path"])())),o=0;o<=d;++o)!(o<d&&n(a=i[o],o,i))===f&&((f=!f)?c.lineStart():c.lineEnd()),f&&c.point(+e(a,o,i),+t(a,o,i));if(u)return c=null,u+""||null}return u.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(i["a"])(+t),u):e},u.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(i["a"])(+e),u):t},u.defined=function(e){return arguments.length?(n="function"===typeof e?e:Object(i["a"])(!!e),u):n},u.curve=function(e){return arguments.length?(l=e,null!=s&&(c=l(s)),u):l},u.context=function(e){return arguments.length?(null==e?s=c=null:c=l(s=e),u):s},u}},function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}t["a"]=r,t["b"]=i},function(e,t,n){"use strict";t["a"]=o;var r=n(46),i=n(63);function o(e,t,n){var i=e._x1,o=e._y1,a=e._x2,s=e._y2;if(e._l01_a>r["f"]){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>r["f"]){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(i,o,a,s,e._x2,e._y2)}function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:o(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new a(e,t):new i["a"](e,0)}return n.alpha=function(t){return e(+t)},n})(.5)},function(e,t,n){"use strict";t["b"]=i;var r=n(48);function i(e){var t,n=0,r=-1,i=e.length;while(++r<i)(t=+e[r][1])&&(n+=t);return n}t["a"]=function(e){var t=e.map(i);return Object(r["a"])(e).sort((function(e,n){return t[e]-t[n]}))}},function(e,t,n){"use strict";function r(){this._=null}function i(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function o(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function a(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function s(e){while(e.L)e=e.L;return e}t["a"]=i,r.prototype={constructor:r,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){e=e.R;while(e.L)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=s(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);t.L=t.R=null,t.U=n,t.C=!0,e=t;while(n&&n.C)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(o(this,n),e=n,n=e.U),n.C=!1,r.C=!0,a(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(a(this,n),e=n,n=e.U),n.C=!1,r.C=!0,o(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,l=e.L,c=e.R;if(n=l?c?s(c):l:c,i?i.L===e?i.L=n:i.R=n:this._=n,l&&c?(r=n.C,n.C=e.C,n.L=l,l.U=n,n!==c?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=c,c.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,o(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,a(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,o(this,i),e=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,a(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,o(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,a(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}},t["b"]=r},function(e,t,n){"use strict";t["c"]=i,t["b"]=o,t["d"]=a,t["a"]=c;var r=n(49);function i(e,t,n,i){var o=[null,null],s=r["e"].push(o)-1;return o.left=e,o.right=t,n&&a(o,e,t,n),i&&a(o,t,e,i),r["b"][e.index].halfedges.push(s),r["b"][t.index].halfedges.push(s),o}function o(e,t,n){var r=[t,n];return r.left=e,r}function a(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function s(e,t,n,r,i){var o,a=e[0],s=e[1],l=a[0],c=a[1],u=s[0],d=s[1],f=0,h=1,p=u-l,m=d-c;if(o=t-l,p||!(o>0)){if(o/=p,p<0){if(o<f)return;o<h&&(h=o)}else if(p>0){if(o>h)return;o>f&&(f=o)}if(o=r-l,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>f&&(f=o)}else if(p>0){if(o<f)return;o<h&&(h=o)}if(o=n-c,m||!(o>0)){if(o/=m,m<0){if(o<f)return;o<h&&(h=o)}else if(m>0){if(o>h)return;o>f&&(f=o)}if(o=i-c,m||!(o<0)){if(o/=m,m<0){if(o>h)return;o>f&&(f=o)}else if(m>0){if(o<f)return;o<h&&(h=o)}return!(f>0||h<1)||(f>0&&(e[0]=[l+f*p,c+f*m]),h<1&&(e[1]=[l+h*p,c+h*m]),!0)}}}}}function l(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],f=c[1],h=u[0],p=u[1],m=(d+h)/2,g=(f+p)/2;if(p===f){if(m<t||m>=r)return;if(d>h){if(l){if(l[1]>=i)return}else l=[m,n];o=[m,i]}else{if(l){if(l[1]<n)return}else l=[m,i];o=[m,n]}}else if(a=(d-h)/(p-f),s=g-a*m,a<-1||a>1)if(d>h){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]<n)return}else l=[(i-s)/a,i];o=[(n-s)/a,n]}else if(f<p){if(l){if(l[0]>=r)return}else l=[t,a*t+s];o=[r,a*r+s]}else{if(l){if(l[0]<t)return}else l=[r,a*r+s];o=[t,a*t+s]}return e[0]=l,e[1]=o,!0}function c(e,t,n,i){var o,a=r["e"].length;while(a--)l(o=r["e"][a],e,t,n,i)&&s(o,e,t,n,i)&&(Math.abs(o[0][0]-o[1][0])>r["f"]||Math.abs(o[0][1]-o[1][1])>r["f"])||delete r["e"][a]}},function(e,t,n){var r={compactBox:n(516),dendrogram:n(518),indented:n(520),mindmap:n(522)};e.exports=r},function(e,t,n){var r=n(194),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=function(e){return o.indexOf(e)>-1},s=i[0];e.exports=function(e,t,n){var o=t.direction||s;if(t.isHorizontal=a(o),o&&-1===i.indexOf(o))throw new TypeError("Invalid direction: "+o);if(o===i[0])n(e,t);else if(o===i[1])n(e,t),e.right2left();else if(o===i[2])n(e,t);else if(o===i[3])n(e,t),e.bottom2top();else if(o===i[4]||o===i[5]){var l=r(e,t),c=l.left,u=l.right;n(c,t),n(u,t),t.isHorizontal?c.right2left():c.bottom2top(),u.translate(c.x-u.x,c.y-u.y),e.x=c.x,e.y=u.y;var d=e.getBoundingBox();t.isHorizontal?d.top<0&&e.translate(0,-d.top):d.left<0&&e.translate(-d.left,0)}return e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r,i,o,a,s,l=n(29),c=n(4),u=n(20),d=n(22),f=Object(l["a"])(),h=Object(l["a"])(),p={point:u["a"],lineStart:u["a"],lineEnd:u["a"],polygonStart:function(){f.reset(),p.lineStart=m,p.lineEnd=g},polygonEnd:function(){var e=+f;h.add(e<0?c["w"]+e:e),this.lineStart=this.lineEnd=this.point=u["a"]},sphere:function(){h.add(c["w"])}};function m(){p.point=v}function g(){y(r,i)}function v(e,t){p.point=y,r=e,i=t,e*=c["r"],t*=c["r"],o=e,a=Object(c["g"])(t=t/2+c["q"]),s=Object(c["t"])(t)}function y(e,t){e*=c["r"],t*=c["r"],t=t/2+c["q"];var n=e-o,r=n>=0?1:-1,i=r*n,l=Object(c["g"])(t),u=Object(c["t"])(t),d=s*u,h=a*l+d*Object(c["g"])(i),p=d*r*Object(c["t"])(i);f.add(Object(c["e"])(p,h)),o=e,a=l,s=u}t["c"]=function(e){return h.reset(),Object(d["a"])(e,p),2*h}},function(e,t,n){"use strict";t["a"]=s;var r=n(35),i=n(199),o=n(4),a=n(50);function s(e,t,n,i,a,s){if(n){var c=Object(o["g"])(t),u=Object(o["t"])(t),d=i*n;null==a?(a=t+i*o["w"],s=t-d/2):(a=l(c,a),s=l(c,s),(i>0?a<s:a>s)&&(a+=i*o["w"]));for(var f,h=a;i>0?h>s:h<s;h-=d)f=Object(r["g"])([c,-u*Object(o["g"])(h),-u*Object(o["t"])(h)]),e.point(f[0],f[1])}}function l(e,t){t=Object(r["a"])(t),t[0]-=e,Object(r["e"])(t);var n=Object(o["b"])(-t[1]);return((-t[2]<0?-n:n)+o["w"]-o["i"])%o["w"]}t["b"]=function(){var e,t,n=Object(i["a"])([0,0]),r=Object(i["a"])(90),l=Object(i["a"])(6),c={point:u};function u(n,r){e.push(n=t(n,r)),n[0]*=o["h"],n[1]*=o["h"]}function d(){var i=n.apply(this,arguments),u=r.apply(this,arguments)*o["r"],d=l.apply(this,arguments)*o["r"];return e=[],t=Object(a["b"])(-i[0]*o["r"],-i[1]*o["r"],0).invert,s(c,u,d,1),i={type:"Polygon",coordinates:[e]},e=t=null,i}return d.center=function(e){return arguments.length?(n="function"===typeof e?e:Object(i["a"])([+e[0],+e[1]]),d):n},d.radius=function(e){return arguments.length?(r="function"===typeof e?e:Object(i["a"])(+e),d):r},d.precision=function(e){return arguments.length?(l="function"===typeof e?e:Object(i["a"])(+e),d):l},d}},function(e,t,n){"use strict";t["a"]=function(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}},function(e,t,n){"use strict";var r=n(20);t["a"]=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:r["a"],rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}},function(e,t,n){"use strict";var r=n(108);function i(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function o(e){if(t=e.length){var t,n,r=0,i=e[0];while(++r<t)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}t["a"]=function(e,t,n,a,s){var l,c,u=[],d=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,o=e[0],a=e[t];if(Object(r["a"])(o,a)){for(s.lineStart(),l=0;l<t;++l)s.point((o=e[l])[0],o[1]);s.lineEnd()}else u.push(n=new i(o,e,null,!0)),d.push(n.o=new i(o,null,n,!1)),u.push(n=new i(a,e,null,!1)),d.push(n.o=new i(a,null,n,!0))}})),u.length){for(d.sort(t),o(u),o(d),l=0,c=d.length;l<c;++l)d[l].e=n=!n;var f,h,p=u[0];while(1){var m=p,g=!0;while(m.v)if((m=m.n)===p)return;f=m.z,s.lineStart();do{if(m.v=m.o.v=!0,m.e){if(g)for(l=0,c=f.length;l<c;++l)s.point((h=f[l])[0],h[1]);else a(m.x,m.n.x,1,s);m=m.n}else{if(g)for(f=m.p.z,l=f.length-1;l>=0;--l)s.point((h=f[l])[0],h[1]);else a(m.x,m.p.x,-1,s);m=m.p}m=m.o,f=m.z,g=!g}while(!m.v);s.lineEnd()}}}},function(e,t,n){"use strict";var r=n(4);t["a"]=function(e,t){return Object(r["a"])(e[0]-t[0])<r["i"]&&Object(r["a"])(e[1]-t[1])<r["i"]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(30),i=n(110),o=Object(i["a"])(r["a"]),a=o.right,s=o.left;t["c"]=a},function(e,t,n){"use strict";var r=n(30);function i(e){return function(t,n){return Object(r["a"])(e(t),n)}}t["a"]=function(e){return 1===e.length&&(e=i(e)),{left:function(t,n,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}},function(e,t,n){"use strict";function r(e,t){return[e,t]}t["b"]=r,t["a"]=function(e,t){null==t&&(t=r);var n=0,i=e.length-1,o=e[0],a=new Array(i<0?0:i);while(n<i)a[n]=t(o,o=e[++n]);return a}},function(e,t,n){"use strict";var r=n(113);t["a"]=function(e,t){var n=Object(r["a"])(e,t);return n?Math.sqrt(n):n}},function(e,t,n){"use strict";var r=n(36);t["a"]=function(e,t){var n,i,o=e.length,a=0,s=-1,l=0,c=0;if(null==t)while(++s<o)isNaN(n=Object(r["a"])(e[s]))||(i=n-l,l+=i/++a,c+=i*(n-l));else while(++s<o)isNaN(n=Object(r["a"])(t(e[s],s,e)))||(i=n-l,l+=i/++a,c+=i*(n-l));if(a>1)return c/(a-1)}},function(e,t,n){"use strict";t["a"]=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){while(++a<o)if(null!=(n=e[a])&&n>=n){r=i=n;while(++a<o)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=t(e[a],a,e))&&n>=n){r=i=n;while(++a<o)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=Array.prototype,i=r.slice,o=r.map},function(e,t,n){"use strict";t["a"]=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);while(++r<i)o[r]=e+r*n;return o}},function(e,t,n){"use strict";t["b"]=a,t["c"]=s;var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,s);return s>=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function s(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t<e?-s:s}t["a"]=function(e,t,n){var r,i,o,s,l=-1;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(s=a(e,t,n))||!isFinite(s))return[];if(s>0){e=Math.ceil(e/s),t=Math.floor(t/s),o=new Array(i=Math.ceil(t-e+1));while(++l<i)o[l]=(e+l)*s}else{e=Math.floor(e*s),t=Math.ceil(t*s),o=new Array(i=Math.ceil(e-t+1));while(++l<i)o[l]=(e-l)/s}return r&&o.reverse(),o}},function(e,t,n){"use strict";t["a"]=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}},function(e,t,n){"use strict";t["a"]=function(e,t){var n,r,i=e.length,o=-1;if(null==t){while(++o<i)if(null!=(n=e[o])&&n>=n){r=n;while(++o<i)null!=(n=e[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=t(e[o],o,e))&&n>=n){r=n;while(++o<i)null!=(n=t(e[o],o,e))&&r>n&&(r=n)}return r}},function(e,t,n){"use strict";var r=n(119);function i(e){return e.length}t["a"]=function(e){if(!(a=e.length))return[];for(var t=-1,n=Object(r["a"])(e,i),o=new Array(n);++t<n;)for(var a,s=-1,l=o[t]=new Array(a);++s<a;)l[s]=e[s][t];return o}},function(e,t,n){"use strict";var r=n(29),i=n(35),o=n(4),a=Object(r["a"])();t["a"]=function(e,t){var n=t[0],r=t[1],s=[Object(o["t"])(n),-Object(o["g"])(n),0],l=0,c=0;a.reset();for(var u=0,d=e.length;u<d;++u)if(h=(f=e[u]).length)for(var f,h,p=f[h-1],m=p[0],g=p[1]/2+o["q"],v=Object(o["t"])(g),y=Object(o["g"])(g),b=0;b<h;++b,m=w,v=S,y=C,p=_){var _=f[b],w=_[0],x=_[1]/2+o["q"],S=Object(o["t"])(x),C=Object(o["g"])(x),E=w-m,k=E>=0?1:-1,O=k*E,T=O>o["o"],I=v*S;if(a.add(Object(o["e"])(I*k*Object(o["t"])(O),y*C+I*Object(o["g"])(O))),l+=T?E+k*o["w"]:E,T^m>=n^w>=n){var A=Object(i["c"])(Object(i["a"])(p),Object(i["a"])(_));Object(i["e"])(A);var R=Object(i["c"])(s,A);Object(i["e"])(R);var P=(T^E>=0?-1:1)*Object(o["c"])(R[2]);(r>P||r===P&&(A[0]||A[1]))&&(c+=T^E>=0?1:-1)}}return(l<-o["i"]||l<o["i"]&&a<-o["i"])^1&c}},function(e,t,n){"use strict";var r=n(123),i=[null,null],o={type:"LineString",coordinates:i};t["a"]=function(e,t){return i[0]=e,i[1]=t,Object(r["a"])(o)}},function(e,t,n){"use strict";var r,i,o,a=n(29),s=n(4),l=n(20),c=n(22),u=Object(a["a"])(),d={sphere:l["a"],point:l["a"],lineStart:f,lineEnd:l["a"],polygonStart:l["a"],polygonEnd:l["a"]};function f(){d.point=p,d.lineEnd=h}function h(){d.point=d.lineEnd=l["a"]}function p(e,t){e*=s["r"],t*=s["r"],r=e,i=Object(s["t"])(t),o=Object(s["g"])(t),d.point=m}function m(e,t){e*=s["r"],t*=s["r"];var n=Object(s["t"])(t),a=Object(s["g"])(t),l=Object(s["a"])(e-r),c=Object(s["g"])(l),d=Object(s["t"])(l),f=a*d,h=o*n-i*a*c,p=i*n+o*a*c;u.add(Object(s["e"])(Object(s["u"])(f*f+h*h),p)),r=e,i=n,o=a}t["a"]=function(e){return u.reset(),Object(c["a"])(e,d),+u}},function(e,t,n){"use strict";var r=n(20),i=1/0,o=i,a=-i,s=a,l={point:c,lineStart:r["a"],lineEnd:r["a"],polygonStart:r["a"],polygonEnd:r["a"],result:function(){var e=[[i,o],[a,s]];return a=s=-(o=i=1/0),e}};function c(e,t){e<i&&(i=e),e>a&&(a=e),t<o&&(o=t),t>s&&(s=t)}t["a"]=l},function(e,t,n){"use strict";var r=n(68);t["a"]=function(){return Object(r["b"])().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(e,t,n){"use strict";var r=n(106),i=n(107),o=n(4),a=n(121),s=n(14);function l(e){return e.length>1}function c(e,t){return((e=e.x)[0]<0?e[1]-o["l"]-o["i"]:o["l"]-e[1])-((t=t.x)[0]<0?t[1]-o["l"]-o["i"]:o["l"]-t[1])}t["a"]=function(e,t,n,o){return function(u,d){var f,h,p,m=t(d),g=u.invert(o[0],o[1]),v=Object(r["a"])(),y=t(v),b=!1,_={point:w,lineStart:S,lineEnd:C,polygonStart:function(){_.point=E,_.lineStart=k,_.lineEnd=O,h=[],f=[]},polygonEnd:function(){_.point=w,_.lineStart=S,_.lineEnd=C,h=Object(s["merge"])(h);var e=Object(a["a"])(f,g);h.length?(b||(d.polygonStart(),b=!0),Object(i["a"])(h,c,e,n,d)):e&&(b||(d.polygonStart(),b=!0),d.lineStart(),n(null,null,1,d),d.lineEnd()),b&&(d.polygonEnd(),b=!1),h=f=null},sphere:function(){d.polygonStart(),d.lineStart(),n(null,null,1,d),d.lineEnd(),d.polygonEnd()}};function w(t,n){var r=u(t,n);e(t=r[0],n=r[1])&&d.point(t,n)}function x(e,t){var n=u(e,t);m.point(n[0],n[1])}function S(){_.point=x,m.lineStart()}function C(){_.point=w,m.lineEnd()}function E(e,t){p.push([e,t]);var n=u(e,t);y.point(n[0],n[1])}function k(){y.lineStart(),p=[]}function O(){E(p[0][0],p[0][1]),y.lineEnd();var e,t,n,r,i=y.clean(),o=v.result(),a=o.length;if(p.pop(),f.push(p),p=null,a)if(1&i){if(n=o[0],(t=n.length-1)>0){for(b||(d.polygonStart(),b=!0),d.lineStart(),e=0;e<t;++e)d.point((r=n[e])[0],r[1]);d.lineEnd()}}else a>1&&2&i&&o.push(o.pop().concat(o.shift())),h.push(o.filter(l))}return _}}},function(e,t,n){"use strict";t["b"]=i;var r=n(17);function i(e,t){return[e,t]}i.invert=i,t["a"]=function(){return Object(r["a"])(i).scale(152.63)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(240);n.d(t,"geoAiry",(function(){return r["b"]})),n.d(t,"geoAiryRaw",(function(){return r["a"]}));var i=n(129);n.d(t,"geoAitoff",(function(){return i["b"]})),n.d(t,"geoAitoffRaw",(function(){return i["a"]}));var o=n(241);n.d(t,"geoArmadillo",(function(){return o["b"]})),n.d(t,"geoArmadilloRaw",(function(){return o["a"]}));var a=n(130);n.d(t,"geoAugust",(function(){return a["b"]})),n.d(t,"geoAugustRaw",(function(){return a["a"]}));var s=n(242);n.d(t,"geoBaker",(function(){return s["b"]})),n.d(t,"geoBakerRaw",(function(){return s["a"]}));var l=n(243);n.d(t,"geoBerghaus",(function(){return l["b"]})),n.d(t,"geoBerghausRaw",(function(){return l["a"]}));var c=n(131);n.d(t,"geoBoggs",(function(){return c["b"]})),n.d(t,"geoBoggsRaw",(function(){return c["a"]}));var u=n(244);n.d(t,"geoBonne",(function(){return u["b"]})),n.d(t,"geoBonneRaw",(function(){return u["a"]}));var d=n(245);n.d(t,"geoBottomley",(function(){return d["b"]})),n.d(t,"geoBottomleyRaw",(function(){return d["a"]}));var f=n(246);n.d(t,"geoBromley",(function(){return f["b"]})),n.d(t,"geoBromleyRaw",(function(){return f["a"]}));var h=n(247);n.d(t,"geoChamberlin",(function(){return h["c"]})),n.d(t,"geoChamberlinRaw",(function(){return h["b"]})),n.d(t,"geoChamberlinAfrica",(function(){return h["a"]}));var p=n(72);n.d(t,"geoCollignon",(function(){return p["b"]})),n.d(t,"geoCollignonRaw",(function(){return p["a"]}));var m=n(248);n.d(t,"geoCraig",(function(){return m["b"]})),n.d(t,"geoCraigRaw",(function(){return m["a"]}));var g=n(249);n.d(t,"geoCraster",(function(){return g["b"]})),n.d(t,"geoCrasterRaw",(function(){return g["a"]}));var v=n(132);n.d(t,"geoCylindricalEqualArea",(function(){return v["b"]})),n.d(t,"geoCylindricalEqualAreaRaw",(function(){return v["a"]}));var y=n(250);n.d(t,"geoCylindricalStereographic",(function(){return y["b"]})),n.d(t,"geoCylindricalStereographicRaw",(function(){return y["a"]}));var b=n(251);n.d(t,"geoEckert1",(function(){return b["a"]})),n.d(t,"geoEckert1Raw",(function(){return b["b"]}));var _=n(252);n.d(t,"geoEckert2",(function(){return _["a"]})),n.d(t,"geoEckert2Raw",(function(){return _["b"]}));var w=n(253);n.d(t,"geoEckert3",(function(){return w["a"]})),n.d(t,"geoEckert3Raw",(function(){return w["b"]}));var x=n(254);n.d(t,"geoEckert4",(function(){return x["a"]})),n.d(t,"geoEckert4Raw",(function(){return x["b"]}));var S=n(255);n.d(t,"geoEckert5",(function(){return S["a"]})),n.d(t,"geoEckert5Raw",(function(){return S["b"]}));var C=n(256);n.d(t,"geoEckert6",(function(){return C["a"]})),n.d(t,"geoEckert6Raw",(function(){return C["b"]}));var E=n(257);n.d(t,"geoEisenlohr",(function(){return E["a"]})),n.d(t,"geoEisenlohrRaw",(function(){return E["b"]}));var k=n(258);n.d(t,"geoFahey",(function(){return k["a"]})),n.d(t,"geoFaheyRaw",(function(){return k["b"]}));var O=n(259);n.d(t,"geoFoucaut",(function(){return O["a"]})),n.d(t,"geoFoucautRaw",(function(){return O["b"]}));var T=n(260);n.d(t,"geoGilbert",(function(){return T["a"]}));var I=n(261);n.d(t,"geoGingery",(function(){return I["a"]})),n.d(t,"geoGingeryRaw",(function(){return I["b"]}));var A=n(262);n.d(t,"geoGinzburg4",(function(){return A["a"]})),n.d(t,"geoGinzburg4Raw",(function(){return A["b"]}));var R=n(263);n.d(t,"geoGinzburg5",(function(){return R["a"]})),n.d(t,"geoGinzburg5Raw",(function(){return R["b"]}));var P=n(264);n.d(t,"geoGinzburg6",(function(){return P["a"]})),n.d(t,"geoGinzburg6Raw",(function(){return P["b"]}));var M=n(265);n.d(t,"geoGinzburg8",(function(){return M["a"]})),n.d(t,"geoGinzburg8Raw",(function(){return M["b"]}));var N=n(266);n.d(t,"geoGinzburg9",(function(){return N["a"]})),n.d(t,"geoGinzburg9Raw",(function(){return N["b"]}));var L=n(133);n.d(t,"geoGringorten",(function(){return L["a"]})),n.d(t,"geoGringortenRaw",(function(){return L["b"]}));var D=n(135);n.d(t,"geoGuyou",(function(){return D["a"]})),n.d(t,"geoGuyouRaw",(function(){return D["b"]}));var j=n(268);n.d(t,"geoHammer",(function(){return j["a"]})),n.d(t,"geoHammerRaw",(function(){return j["b"]}));var F=n(269);n.d(t,"geoHammerRetroazimuthal",(function(){return F["a"]})),n.d(t,"geoHammerRetroazimuthalRaw",(function(){return F["b"]}));var B=n(270);n.d(t,"geoHealpix",(function(){return B["a"]})),n.d(t,"geoHealpixRaw",(function(){return B["b"]}));var q=n(271);n.d(t,"geoHill",(function(){return q["a"]})),n.d(t,"geoHillRaw",(function(){return q["b"]}));var z=n(136);n.d(t,"geoHomolosine",(function(){return z["a"]})),n.d(t,"geoHomolosineRaw",(function(){return z["b"]}));var U=n(23);n.d(t,"geoInterrupt",(function(){return U["a"]}));var G=n(272);n.d(t,"geoInterruptedBoggs",(function(){return G["a"]}));var V=n(273);n.d(t,"geoInterruptedHomolosine",(function(){return V["a"]}));var W=n(274);n.d(t,"geoInterruptedMollweide",(function(){return W["a"]}));var H=n(275);n.d(t,"geoInterruptedMollweideHemispheres",(function(){return H["a"]}));var $=n(276);n.d(t,"geoInterruptedSinuMollweide",(function(){return $["a"]}));var K=n(277);n.d(t,"geoInterruptedSinusoidal",(function(){return K["a"]}));var X=n(278);n.d(t,"geoKavrayskiy7",(function(){return X["a"]})),n.d(t,"geoKavrayskiy7Raw",(function(){return X["b"]}));var Y=n(279);n.d(t,"geoLagrange",(function(){return Y["a"]})),n.d(t,"geoLagrangeRaw",(function(){return Y["b"]}));var J=n(280);n.d(t,"geoLarrivee",(function(){return J["a"]})),n.d(t,"geoLarriveeRaw",(function(){return J["b"]}));var Q=n(281);n.d(t,"geoLaskowski",(function(){return Q["a"]})),n.d(t,"geoLaskowskiRaw",(function(){return Q["b"]}));var Z=n(282);n.d(t,"geoLittrow",(function(){return Z["a"]})),n.d(t,"geoLittrowRaw",(function(){return Z["b"]}));var ee=n(283);n.d(t,"geoLoximuthal",(function(){return ee["a"]})),n.d(t,"geoLoximuthalRaw",(function(){return ee["b"]}));var te=n(284);n.d(t,"geoMiller",(function(){return te["a"]})),n.d(t,"geoMillerRaw",(function(){return te["b"]}));var ne=n(285);n.d(t,"geoModifiedStereographic",(function(){return ne["a"]})),n.d(t,"geoModifiedStereographicRaw",(function(){return ne["g"]})),n.d(t,"geoModifiedStereographicAlaska",(function(){return ne["b"]})),n.d(t,"geoModifiedStereographicGs48",(function(){return ne["c"]})),n.d(t,"geoModifiedStereographicGs50",(function(){return ne["d"]})),n.d(t,"geoModifiedStereographicMiller",(function(){return ne["f"]})),n.d(t,"geoModifiedStereographicLee",(function(){return ne["e"]}));var re=n(21);n.d(t,"geoMollweide",(function(){return re["a"]})),n.d(t,"geoMollweideRaw",(function(){return re["d"]}));var ie=n(286);n.d(t,"geoMtFlatPolarParabolic",(function(){return ie["a"]})),n.d(t,"geoMtFlatPolarParabolicRaw",(function(){return ie["b"]}));var oe=n(287);n.d(t,"geoMtFlatPolarQuartic",(function(){return oe["a"]})),n.d(t,"geoMtFlatPolarQuarticRaw",(function(){return oe["b"]}));var ae=n(288);n.d(t,"geoMtFlatPolarSinusoidal",(function(){return ae["a"]})),n.d(t,"geoMtFlatPolarSinusoidalRaw",(function(){return ae["b"]}));var se=n(289);n.d(t,"geoNaturalEarth",(function(){return se["a"]})),n.d(t,"geoNaturalEarthRaw",(function(){return se["b"]}));var le=n(290);n.d(t,"geoNaturalEarth2",(function(){return le["a"]})),n.d(t,"geoNaturalEarth2Raw",(function(){return le["b"]}));var ce=n(291);n.d(t,"geoNellHammer",(function(){return ce["a"]})),n.d(t,"geoNellHammerRaw",(function(){return ce["b"]}));var ue=n(292);n.d(t,"geoPatterson",(function(){return ue["a"]})),n.d(t,"geoPattersonRaw",(function(){return ue["b"]}));var de=n(293);n.d(t,"geoPolyconic",(function(){return de["a"]})),n.d(t,"geoPolyconicRaw",(function(){return de["b"]}));var fe=n(53);n.d(t,"geoPolyhedral",(function(){return fe["a"]}));var he=n(295);n.d(t,"geoPolyhedralButterfly",(function(){return he["a"]}));var pe=n(296);n.d(t,"geoPolyhedralCollignon",(function(){return pe["a"]}));var me=n(297);n.d(t,"geoPolyhedralWaterman",(function(){return me["a"]}));var ge=n(298);n.d(t,"geoProject",(function(){return ge["a"]}));var ve=n(302);n.d(t,"geoGringortenQuincuncial",(function(){return ve["a"]}));var ye=n(137);n.d(t,"geoPeirceQuincuncial",(function(){return ye["a"]})),n.d(t,"geoPierceQuincuncial",(function(){return ye["a"]}));var be=n(303);n.d(t,"geoQuantize",(function(){return be["a"]}));var _e=n(75);n.d(t,"geoQuincuncial",(function(){return _e["a"]}));var we=n(304);n.d(t,"geoRectangularPolyconic",(function(){return we["a"]})),n.d(t,"geoRectangularPolyconicRaw",(function(){return we["b"]}));var xe=n(305);n.d(t,"geoRobinson",(function(){return xe["a"]})),n.d(t,"geoRobinsonRaw",(function(){return xe["b"]}));var Se=n(306);n.d(t,"geoSatellite",(function(){return Se["a"]})),n.d(t,"geoSatelliteRaw",(function(){return Se["b"]}));var Ce=n(73);n.d(t,"geoSinuMollweide",(function(){return Ce["a"]})),n.d(t,"geoSinuMollweideRaw",(function(){return Ce["c"]}));var Ee=n(38);n.d(t,"geoSinusoidal",(function(){return Ee["a"]})),n.d(t,"geoSinusoidalRaw",(function(){return Ee["b"]}));var ke=n(307);n.d(t,"geoStitch",(function(){return ke["a"]}));var Oe=n(308);n.d(t,"geoTimes",(function(){return Oe["a"]})),n.d(t,"geoTimesRaw",(function(){return Oe["b"]}));var Te=n(309);n.d(t,"geoTwoPointAzimuthal",(function(){return Te["a"]})),n.d(t,"geoTwoPointAzimuthalRaw",(function(){return Te["b"]})),n.d(t,"geoTwoPointAzimuthalUsa",(function(){return Te["c"]}));var Ie=n(310);n.d(t,"geoTwoPointEquidistant",(function(){return Ie["a"]})),n.d(t,"geoTwoPointEquidistantRaw",(function(){return Ie["b"]})),n.d(t,"geoTwoPointEquidistantUsa",(function(){return Ie["c"]}));var Ae=n(311);n.d(t,"geoVanDerGrinten",(function(){return Ae["a"]})),n.d(t,"geoVanDerGrintenRaw",(function(){return Ae["b"]}));var Re=n(312);n.d(t,"geoVanDerGrinten2",(function(){return Re["a"]})),n.d(t,"geoVanDerGrinten2Raw",(function(){return Re["b"]}));var Pe=n(313);n.d(t,"geoVanDerGrinten3",(function(){return Pe["a"]})),n.d(t,"geoVanDerGrinten3Raw",(function(){return Pe["b"]}));var Me=n(314);n.d(t,"geoVanDerGrinten4",(function(){return Me["a"]})),n.d(t,"geoVanDerGrinten4Raw",(function(){return Me["b"]}));var Ne=n(315);n.d(t,"geoWagner4",(function(){return Ne["a"]})),n.d(t,"geoWagner4Raw",(function(){return Ne["b"]}));var Le=n(316);n.d(t,"geoWagner6",(function(){return Le["a"]})),n.d(t,"geoWagner6Raw",(function(){return Le["b"]}));var De=n(317);n.d(t,"geoWagner7",(function(){return De["a"]})),n.d(t,"geoWagner7Raw",(function(){return De["b"]}));var je=n(318);n.d(t,"geoWiechel",(function(){return je["a"]})),n.d(t,"geoWiechelRaw",(function(){return je["b"]}));var Fe=n(319);n.d(t,"geoWinkel3",(function(){return Fe["a"]})),n.d(t,"geoWinkel3Raw",(function(){return Fe["b"]}))},function(e,t,n){"use strict";t["a"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["h"])(t),r=Object(i["z"])(Object(i["b"])(n*Object(i["h"])(e/=2)));return[2*n*Object(i["y"])(e)*r,Object(i["y"])(t)*r]}o.invert=function(e,t){if(!(e*e+4*t*t>i["s"]*i["s"]+i["k"])){var n=e,r=t,o=25;do{var a,s=Object(i["y"])(n),l=Object(i["y"])(n/2),c=Object(i["h"])(n/2),u=Object(i["y"])(r),d=Object(i["h"])(r),f=Object(i["y"])(2*r),h=u*u,p=d*d,m=l*l,g=1-p*c*c,v=g?Object(i["b"])(d*c)*Object(i["B"])(a=1/g):a=0,y=2*v*d*l-e,b=v*u-t,_=a*(p*m+v*d*c*h),w=a*(.5*s*f-2*v*u*l),x=.25*a*(f*l-v*u*p*s),S=a*(h*c+v*m*d),C=w*x-S*_;if(!C)break;var E=(b*w-y*S)/C,k=(y*x-b*_)/C;n-=E,r-=k}while((Object(i["a"])(E)>i["k"]||Object(i["a"])(k)>i["k"])&&--o>0);return[n,r]}},t["b"]=function(){return Object(r["geoProjection"])(o).scale(152.63)}},function(e,t,n){"use strict";t["a"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["F"])(t/2),r=Object(i["B"])(1-n*n),o=1+r*Object(i["h"])(e/=2),a=Object(i["y"])(e)*r/o,s=n/o,l=a*a,c=s*s;return[4/3*a*(3+l-3*c),4/3*s*(3+3*l-c)]}o.invert=function(e,t){if(e*=3/8,t*=3/8,!e&&Object(i["a"])(t)>1)return null;var n=e*e,r=t*t,o=1+n+r,a=Object(i["B"])((o-Object(i["B"])(o*o-4*t*t))/2),s=Object(i["e"])(a)/3,l=a?Object(i["c"])(Object(i["a"])(t/a))/3:Object(i["d"])(Object(i["a"])(e))/3,c=Object(i["h"])(s),u=Object(i["i"])(l),d=u*u-c*c;return[2*Object(i["x"])(e)*Object(i["g"])(Object(i["A"])(l)*c,.25-d),2*Object(i["x"])(t)*Object(i["g"])(u*Object(i["y"])(s),.25+d)]},t["b"]=function(){return Object(r["geoProjection"])(o).scale(66.1603)}},function(e,t,n){"use strict";t["a"]=l;var r=n(0),i=n(21),o=n(1),a=2.00276,s=1.11072;function l(e,t){var n=Object(i["c"])(o["s"],t);return[a*e/(1/Object(o["h"])(t)+s/Object(o["h"])(n)),(t+o["D"]*Object(o["y"])(n))/a]}l.invert=function(e,t){var n,r,i=a*t,l=t<0?-o["u"]:o["u"],c=25;do{r=i-o["D"]*Object(o["y"])(l),l-=n=(Object(o["y"])(2*l)+2*l-o["s"]*Object(o["y"])(r))/(2*Object(o["h"])(2*l)+2+o["s"]*Object(o["h"])(r)*o["D"]*Object(o["h"])(l))}while(Object(o["a"])(n)>o["k"]&&--c>0);return r=i-o["D"]*Object(o["y"])(l),[e*(1/Object(o["h"])(r)+s/Object(o["h"])(l))/a,r]},t["b"]=function(){return Object(r["geoProjection"])(l).scale(160.857)}},function(e,t,n){"use strict";t["a"]=o;var r=n(1),i=n(31);function o(e){var t=Object(r["h"])(e);function n(e,n){return[e*t,Object(r["y"])(n)/t]}return n.invert=function(e,n){return[e/t,Object(r["e"])(n*t)]},n}t["b"]=function(){return Object(i["a"])(o).parallel(38.58).scale(195.044)}},function(e,t,n){"use strict";t["b"]=a;var r=n(0),i=n(1),o=n(134);function a(e,t){var n=Object(i["x"])(e),r=Object(i["x"])(t),o=Object(i["h"])(t),a=Object(i["h"])(e)*o,l=Object(i["y"])(e)*o,c=Object(i["y"])(r*t);e=Object(i["a"])(Object(i["g"])(l,c)),t=Object(i["e"])(a),Object(i["a"])(e-i["o"])>i["k"]&&(e%=i["o"]);var u=s(e>i["s"]/4?i["o"]-e:e,t);return e>i["s"]/4&&(c=u[0],u[0]=-u[1],u[1]=-c),u[0]*=n,u[1]*=-r,u}function s(e,t){if(t===i["o"])return[0,0];var n,r,o=Object(i["y"])(t),a=o*o,s=a*a,l=1+s,c=1+3*s,u=1-s,d=Object(i["e"])(1/Object(i["B"])(l)),f=u+a*l*d,h=(1-o)/f,p=Object(i["B"])(h),m=h*l,g=Object(i["B"])(m),v=p*u;if(0===e)return[0,-(v+a*g)];var y,b=Object(i["h"])(t),_=1/b,w=2*o*b,x=(-3*a+d*c)*w,S=(-f*b-(1-o)*x)/(f*f),C=.5*S/p,E=u*C-2*a*p*w,k=a*l*S+h*c*w,O=-_*w,T=-_*k,I=-2*_*E,A=4*e/i["s"];if(e>.222*i["s"]||t<i["s"]/4&&e>.175*i["s"]){if(n=(v+a*Object(i["B"])(m*(1+s)-v*v))/(1+s),e>i["s"]/4)return[n,n];var R=n,P=.5*n;n=.5*(P+R),r=50;do{var M=Object(i["B"])(m-n*n),N=n*(I+O*M)+T*Object(i["e"])(n/g)-A;if(!N)break;N<0?P=n:R=n,n=.5*(P+R)}while(Object(i["a"])(R-P)>i["k"]&&--r>0)}else{n=i["k"],r=25;do{var L=n*n,D=Object(i["B"])(m-L),j=I+O*D,F=n*j+T*Object(i["e"])(n/g)-A,B=j+(T-O*L)/D;n-=y=D?F/B:0}while(Object(i["a"])(y)>i["k"]&&--r>0)}return[n,-v-a*Object(i["B"])(m-n*n)]}function l(e,t){var n=0,r=1,o=.5,a=50;while(1){var s=o*o,l=Object(i["B"])(o),c=Object(i["e"])(1/Object(i["B"])(1+s)),u=1-s+o*(1+s)*c,d=(1-l)/u,f=Object(i["B"])(d),h=d*(1+s),p=f*(1-s),m=h-e*e,g=Object(i["B"])(m),v=t+p+o*g;if(Object(i["a"])(r-n)<i["l"]||0===--a||0===v)break;v>0?n=o:r=o,o=.5*(n+r)}if(!a)return null;var y=Object(i["e"])(l),b=Object(i["h"])(y),_=1/b,w=2*l*b,x=(-3*o+c*(1+3*s))*w,S=(-u*b-(1-l)*x)/(u*u),C=.5*S/f,E=(1-s)*C-2*o*f*w,k=-2*_*E,O=-_*w,T=-_*(o*(1+s)*S+d*(1+3*s)*w);return[i["s"]/4*(e*(k+O*g)+T*Object(i["e"])(e/Object(i["B"])(h))),y]}a.invert=function(e,t){Object(i["a"])(e)>1&&(e=2*Object(i["x"])(e)-e),Object(i["a"])(t)>1&&(t=2*Object(i["x"])(t)-t);var n=Object(i["x"])(e),r=Object(i["x"])(t),o=-n*e,a=-r*t,s=a/o<1,c=l(s?a:o,s?o:a),u=c[0],d=c[1],f=Object(i["h"])(d);return s&&(u=-i["o"]-u),[n*(Object(i["g"])(Object(i["y"])(u)*f,-Object(i["y"])(d))+i["s"]),r*Object(i["e"])(Object(i["h"])(u)*f)]},t["a"]=function(){return Object(r["geoProjection"])(Object(o["a"])(a)).scale(239.75)}},function(e,t,n){"use strict";var r=n(1);t["a"]=function(e){var t=e(r["o"],0)[0]-e(-r["o"],0)[0];function n(n,i){var o=n>0?-.5:.5,a=e(n+o*r["s"],i);return a[0]-=o*t,a}return e.invert&&(n.invert=function(n,i){var o=n>0?-.5:.5,a=e.invert(n+o*t,i),s=a[0]-o*r["s"];return s<-r["s"]?s+=2*r["s"]:s>r["s"]&&(s-=2*r["s"]),a[0]=s,a}),n}},function(e,t,n){"use strict";t["b"]=s;var r=n(0),i=n(267),o=n(1),a=n(134);function s(e,t){var n=(o["D"]-1)/(o["D"]+1),r=Object(o["B"])(1-n*n),a=Object(i["a"])(o["o"],r*r),s=-1,c=Object(o["p"])(Object(o["F"])(o["s"]/4+Object(o["a"])(t)/2)),u=Object(o["m"])(s*c)/Object(o["B"])(n),d=l(u*Object(o["h"])(s*e),u*Object(o["y"])(s*e)),f=Object(i["b"])(d[0],d[1],r*r);return[-f[1],(t>=0?1:-1)*(.5*a-f[0])]}function l(e,t){var n=e*e,r=t+1,i=1-n-t*t;return[.5*((e>=0?o["o"]:-o["o"])-Object(o["g"])(i,2*e)),-.25*Object(o["p"])(i*i+4*n)+.5*Object(o["p"])(r*r+n)]}function c(e,t){var n=t[0]*t[0]+t[1]*t[1];return[(e[0]*t[0]+e[1]*t[1])/n,(e[1]*t[0]-e[0]*t[1])/n]}s.invert=function(e,t){var n=(o["D"]-1)/(o["D"]+1),r=Object(o["B"])(1-n*n),a=Object(i["a"])(o["o"],r*r),s=-1,l=Object(i["c"])(.5*a-t,-e,r*r),u=c(l[0],l[1]),d=Object(o["g"])(u[1],u[0])/s;return[d,2*Object(o["f"])(Object(o["m"])(.5/s*Object(o["p"])(n*u[0]*u[0]+n*u[1]*u[1])))-o["o"]]},t["a"]=function(){return Object(r["geoProjection"])(Object(a["a"])(s)).scale(151.496)}},function(e,t,n){"use strict";t["b"]=l;var r=n(0),i=n(1),o=n(21),a=n(38),s=n(73);function l(e,t){return Object(i["a"])(t)>s["b"]?(e=Object(o["d"])(e,t),e[1]-=t>0?s["d"]:-s["d"],e):Object(a["b"])(e,t)}l.invert=function(e,t){return Object(i["a"])(t)>s["b"]?o["d"].invert(e,t+(t>0?s["d"]:-s["d"])):a["b"].invert(e,t)},t["a"]=function(){return Object(r["geoProjection"])(l).scale(152.63)}},function(e,t,n){"use strict";var r=n(135),i=n(75);t["a"]=function(){return Object(i["a"])(r["b"]).scale(111.48)}},function(e,t,n){"use strict";var r=n(0),i=n(1);t["a"]=function(e,t,n){var o=Object(r["geoInterpolate"])(t,n),a=o(.5),s=Object(r["geoRotation"])([-a[0],-a[1]])(t),l=o.distance/2,c=-Object(i["e"])(Object(i["y"])(s[1]*i["v"])/Object(i["y"])(l)),u=[-a[0],-a[1],-(s[0]>0?i["s"]-c:c)*i["j"]],d=Object(r["geoProjection"])(e(l)).rotate(u),f=Object(r["geoRotation"])(u),h=d.center;return delete d.rotate,d.center=function(e){return arguments.length?h(f(e)):f.invert(h())},d.clipAngle(90)}},function(e,t,n){var r;
/*!
 * EventEmitter v5.1.0 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */(function(t){"use strict";function i(){}var o=i.prototype,a=t.EventEmitter;function s(e,t){var n=e.length;while(n--)if(e[n].listener===t)return n;return-1}function l(e){return function(){return this[e].apply(this,arguments)}}function c(e){return"function"===typeof e||e instanceof RegExp||!(!e||"object"!==typeof e)&&c(e.listener)}o.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},o.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},o.addListener=function(e,t){if(!c(t))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(e),i="object"===typeof t;for(n in r)r.hasOwnProperty(n)&&-1===s(r[n],t)&&r[n].push(i?t:{listener:t,once:!1});return this},o.on=l("addListener"),o.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},o.once=l("addOnceListener"),o.defineEvent=function(e){return this.getListeners(e),this},o.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},o.removeListener=function(e,t){var n,r,i=this.getListenersAsObject(e);for(r in i)i.hasOwnProperty(r)&&(n=s(i[r],t),-1!==n&&i[r].splice(n,1));return this},o.off=l("removeListener"),o.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},o.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},o.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!==typeof t||t instanceof RegExp){r=n.length;while(r--)o.call(this,t,n[r])}else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"===typeof i?o.call(this,r,i):a.call(this,r,i));return this},o.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if(e instanceof RegExp)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},o.removeAllListeners=l("removeEvent"),o.emitEvent=function(e,t){var n,r,i,o,a,s=this.getListenersAsObject(e);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].slice(0),i=0;i<n.length;i++)r=n[i],!0===r.once&&this.removeListener(e,r.listener),a=r.listener.apply(this,t||[]),a===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},o.trigger=l("emitEvent"),o.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},o.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return t.EventEmitter=a,i},r=function(){return i}.call(t,n,t,e),void 0===r||(e.exports=r)})(this||{})},function(e,t,n){var r=n(24),i=n(77);function o(e,t){var n=r(t),o=n.length;if(i(e))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(t[s]!==e[s]||!(s in e))return!1}return!0}e.exports=o},function(e,t,n){var r=n(11),i=n(10),o=n(0),a=n(128),s=n(322);e.exports=function(e,t){if(r(e))return t?e:e();if(i(e)){if(o[e])return t?o[e]:o[e]();if(a[e])return t?a[e]:a[e]();if(s[e])return t?s[e]:s[e]()}return null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r,i,o,a,s,l=n(42),c=n(5),u=n(25),d=n(26),f=Object(l["a"])(),h=Object(l["a"])(),p={point:u["a"],lineStart:u["a"],lineEnd:u["a"],polygonStart:function(){f.reset(),p.lineStart=m,p.lineEnd=g},polygonEnd:function(){var e=+f;h.add(e<0?c["w"]+e:e),this.lineStart=this.lineEnd=this.point=u["a"]},sphere:function(){h.add(c["w"])}};function m(){p.point=v}function g(){y(r,i)}function v(e,t){p.point=y,r=e,i=t,e*=c["r"],t*=c["r"],o=e,a=Object(c["g"])(t=t/2+c["q"]),s=Object(c["t"])(t)}function y(e,t){e*=c["r"],t*=c["r"],t=t/2+c["q"];var n=e-o,r=n>=0?1:-1,i=r*n,l=Object(c["g"])(t),u=Object(c["t"])(t),d=s*u,h=a*l+d*Object(c["g"])(i),p=d*r*Object(c["t"])(i);f.add(Object(c["e"])(p,h)),o=e,a=l,s=u}t["c"]=function(e){return h.reset(),Object(d["a"])(e,p),2*h}},function(e,t,n){"use strict";t["a"]=s;var r=n(43),i=n(326),o=n(5),a=n(78);function s(e,t,n,i,a,s){if(n){var c=Object(o["g"])(t),u=Object(o["t"])(t),d=i*n;null==a?(a=t+i*o["w"],s=t-d/2):(a=l(c,a),s=l(c,s),(i>0?a<s:a>s)&&(a+=i*o["w"]));for(var f,h=a;i>0?h>s:h<s;h-=d)f=Object(r["g"])([c,-u*Object(o["g"])(h),-u*Object(o["t"])(h)]),e.point(f[0],f[1])}}function l(e,t){t=Object(r["a"])(t),t[0]-=e,Object(r["e"])(t);var n=Object(o["b"])(-t[1]);return((-t[2]<0?-n:n)+o["w"]-o["i"])%o["w"]}t["b"]=function(){var e,t,n=Object(i["a"])([0,0]),r=Object(i["a"])(90),l=Object(i["a"])(6),c={point:u};function u(n,r){e.push(n=t(n,r)),n[0]*=o["h"],n[1]*=o["h"]}function d(){var i=n.apply(this,arguments),u=r.apply(this,arguments)*o["r"],d=l.apply(this,arguments)*o["r"];return e=[],t=Object(a["b"])(-i[0]*o["r"],-i[1]*o["r"],0).invert,s(c,u,d,1),i={type:"Polygon",coordinates:[e]},e=t=null,i}return d.center=function(e){return arguments.length?(n="function"===typeof e?e:Object(i["a"])([+e[0],+e[1]]),d):n},d.radius=function(e){return arguments.length?(r="function"===typeof e?e:Object(i["a"])(+e),d):r},d.precision=function(e){return arguments.length?(l="function"===typeof e?e:Object(i["a"])(+e),d):l},d}},function(e,t,n){"use strict";t["a"]=function(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}},function(e,t,n){"use strict";t["a"]=u;var r=n(5),i=n(146),o=n(327),a=n(147),s=n(14),l=1e9,c=-l;function u(e,t,n,u){function d(r,i){return e<=r&&r<=n&&t<=i&&i<=u}function f(r,i,o,a){var s=0,l=0;if(null==r||(s=h(r,o))!==(l=h(i,o))||m(r,i)<0^o>0)do{a.point(0===s||3===s?e:n,s>1?u:t)}while((s=(s+o+4)%4)!==l);else a.point(i[0],i[1])}function h(i,o){return Object(r["a"])(i[0]-e)<r["i"]?o>0?0:3:Object(r["a"])(i[0]-n)<r["i"]?o>0?2:1:Object(r["a"])(i[1]-t)<r["i"]?o>0?1:0:o>0?3:2}function p(e,t){return m(e.x,t.x)}function m(e,t){var n=h(e,1),r=h(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(r){var h,m,g,v,y,b,_,w,x,S,C,E=r,k=Object(i["a"])(),O={point:T,lineStart:P,lineEnd:M,polygonStart:A,polygonEnd:R};function T(e,t){d(e,t)&&E.point(e,t)}function I(){for(var t=0,n=0,r=m.length;n<r;++n)for(var i,o,a=m[n],s=1,l=a.length,c=a[0],d=c[0],f=c[1];s<l;++s)i=d,o=f,c=a[s],d=c[0],f=c[1],o<=u?f>u&&(d-i)*(u-o)>(f-o)*(e-i)&&++t:f<=u&&(d-i)*(u-o)<(f-o)*(e-i)&&--t;return t}function A(){E=k,h=[],m=[],C=!0}function R(){var e=I(),t=C&&e,n=(h=Object(s["merge"])(h)).length;(t||n)&&(r.polygonStart(),t&&(r.lineStart(),f(null,null,1,r),r.lineEnd()),n&&Object(a["a"])(h,p,e,f,r),r.polygonEnd()),E=r,h=m=g=null}function P(){O.point=N,m&&m.push(g=[]),S=!0,x=!1,_=w=NaN}function M(){h&&(N(v,y),b&&x&&k.rejoin(),h.push(k.result())),O.point=T,x&&E.lineEnd()}function N(r,i){var a=d(r,i);if(m&&g.push([r,i]),S)v=r,y=i,b=a,S=!1,a&&(E.lineStart(),E.point(r,i));else if(a&&x)E.point(r,i);else{var s=[_=Math.max(c,Math.min(l,_)),w=Math.max(c,Math.min(l,w))],f=[r=Math.max(c,Math.min(l,r)),i=Math.max(c,Math.min(l,i))];Object(o["a"])(s,f,e,t,n,u)?(x||(E.lineStart(),E.point(s[0],s[1])),E.point(f[0],f[1]),a||E.lineEnd(),C=!1):a&&(E.lineStart(),E.point(r,i),C=!1)}_=r,w=i,x=a}return O}}t["b"]=function(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=u(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}}},function(e,t,n){"use strict";var r=n(25);t["a"]=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:r["a"],rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}},function(e,t,n){"use strict";var r=n(148);function i(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function o(e){if(t=e.length){var t,n,r=0,i=e[0];while(++r<t)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}t["a"]=function(e,t,n,a,s){var l,c,u=[],d=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,o=e[0],a=e[t];if(Object(r["a"])(o,a)){for(s.lineStart(),l=0;l<t;++l)s.point((o=e[l])[0],o[1]);s.lineEnd()}else u.push(n=new i(o,e,null,!0)),d.push(n.o=new i(o,null,n,!1)),u.push(n=new i(a,e,null,!1)),d.push(n.o=new i(a,null,n,!0))}})),u.length){for(d.sort(t),o(u),o(d),l=0,c=d.length;l<c;++l)d[l].e=n=!n;var f,h,p=u[0];while(1){var m=p,g=!0;while(m.v)if((m=m.n)===p)return;f=m.z,s.lineStart();do{if(m.v=m.o.v=!0,m.e){if(g)for(l=0,c=f.length;l<c;++l)s.point((h=f[l])[0],h[1]);else a(m.x,m.n.x,1,s);m=m.n}else{if(g)for(f=m.p.z,l=f.length-1;l>=0;--l)s.point((h=f[l])[0],h[1]);else a(m.x,m.p.x,-1,s);m=m.p}m=m.o,f=m.z,g=!g}while(!m.v);s.lineEnd()}}}},function(e,t,n){"use strict";var r=n(5);t["a"]=function(e,t){return Object(r["a"])(e[0]-t[0])<r["i"]&&Object(r["a"])(e[1]-t[1])<r["i"]}},function(e,t,n){"use strict";var r,i,o,a=n(42),s=n(5),l=n(25),c=n(26),u=Object(a["a"])(),d={sphere:l["a"],point:l["a"],lineStart:f,lineEnd:l["a"],polygonStart:l["a"],polygonEnd:l["a"]};function f(){d.point=p,d.lineEnd=h}function h(){d.point=d.lineEnd=l["a"]}function p(e,t){e*=s["r"],t*=s["r"],r=e,i=Object(s["t"])(t),o=Object(s["g"])(t),d.point=m}function m(e,t){e*=s["r"],t*=s["r"];var n=Object(s["t"])(t),a=Object(s["g"])(t),l=Object(s["a"])(e-r),c=Object(s["g"])(l),d=Object(s["t"])(l),f=a*d,h=o*n-i*a*c,p=i*n+o*a*c;u.add(Object(s["e"])(Object(s["u"])(f*f+h*h),p)),r=e,i=n,o=a}t["a"]=function(e){return u.reset(),Object(c["a"])(e,d),+u}},function(e,t,n){"use strict";t["a"]=function(e){return e}},function(e,t,n){"use strict";var r=n(25),i=1/0,o=i,a=-i,s=a,l={point:c,lineStart:r["a"],lineEnd:r["a"],polygonStart:r["a"],polygonEnd:r["a"],result:function(){var e=[[i,o],[a,s]];return a=s=-(o=i=1/0),e}};function c(e,t){e<i&&(i=e),e>a&&(a=e),t<o&&(o=t),t>s&&(s=t)}t["a"]=l},function(e,t,n){"use strict";var r=n(79);t["a"]=function(){return Object(r["b"])().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(e,t,n){"use strict";var r=n(146),i=n(147),o=n(5),a=n(337),s=n(14);function l(e){return e.length>1}function c(e,t){return((e=e.x)[0]<0?e[1]-o["l"]-o["i"]:o["l"]-e[1])-((t=t.x)[0]<0?t[1]-o["l"]-o["i"]:o["l"]-t[1])}t["a"]=function(e,t,n,o){return function(u,d){var f,h,p,m=t(d),g=u.invert(o[0],o[1]),v=Object(r["a"])(),y=t(v),b=!1,_={point:w,lineStart:S,lineEnd:C,polygonStart:function(){_.point=E,_.lineStart=k,_.lineEnd=O,h=[],f=[]},polygonEnd:function(){_.point=w,_.lineStart=S,_.lineEnd=C,h=Object(s["merge"])(h);var e=Object(a["a"])(f,g);h.length?(b||(d.polygonStart(),b=!0),Object(i["a"])(h,c,e,n,d)):e&&(b||(d.polygonStart(),b=!0),d.lineStart(),n(null,null,1,d),d.lineEnd()),b&&(d.polygonEnd(),b=!1),h=f=null},sphere:function(){d.polygonStart(),d.lineStart(),n(null,null,1,d),d.lineEnd(),d.polygonEnd()}};function w(t,n){var r=u(t,n);e(t=r[0],n=r[1])&&d.point(t,n)}function x(e,t){var n=u(e,t);m.point(n[0],n[1])}function S(){_.point=x,m.lineStart()}function C(){_.point=w,m.lineEnd()}function E(e,t){p.push([e,t]);var n=u(e,t);y.point(n[0],n[1])}function k(){y.lineStart(),p=[]}function O(){E(p[0][0],p[0][1]),y.lineEnd();var e,t,n,r,i=y.clean(),o=v.result(),a=o.length;if(p.pop(),f.push(p),p=null,a)if(1&i){if(n=o[0],(t=n.length-1)>0){for(b||(d.polygonStart(),b=!0),d.lineStart(),e=0;e<t;++e)d.point((r=n[e])[0],r[1]);d.lineEnd()}}else a>1&&2&i&&o.push(o.pop().concat(o.shift())),h.push(o.filter(l))}return _}}},function(e,t,n){"use strict";t["b"]=a,t["a"]=s;var r=n(26),i=n(151);function o(e,t,n){var o=t[1][0]-t[0][0],a=t[1][1]-t[0][1],s=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=s&&e.clipExtent(null),Object(r["a"])(n,e.stream(i["a"]));var l=i["a"].result(),c=Math.min(o/(l[1][0]-l[0][0]),a/(l[1][1]-l[0][1])),u=+t[0][0]+(o-c*(l[1][0]+l[0][0]))/2,d=+t[0][1]+(a-c*(l[1][1]+l[0][1]))/2;return null!=s&&e.clipExtent(s),e.scale(150*c).translate([u,d])}function a(e){return function(t,n){return o(e,[[0,0],t],n)}}function s(e){return function(t,n){return o(e,t,n)}}},function(e,t,n){"use strict";t["b"]=i;var r=n(18);function i(e,t){return[e,t]}i.invert=i,t["a"]=function(){return Object(r["a"])(i).scale(152.63)}},function(e,t,n){var r=n(6),i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(t))for(var i=0;i<t.length;i+=1)e(t[i],n);else n.push(t);return n};e.exports=i},function(e,t){e.exports=function(e){for(var t=1/e,n=[],r=0;r<=1;r+=t)n.push(r);return n}},function(e,t,n){var r=n(159),i=n(40),o=n(0),a=o.geoPath,s=n(2),l=s.GEO,c=s.registerConnector,u=a();function d(e,t,n){n.dataType=l;var o=i(e.features);return o.forEach((function(e){e.name=e.properties.name,e.longitude=[],e.latitude=[];var t=e.pathData=u(e),n=r(t);n._path.forEach((function(t){e.longitude.push(t[1]),e.latitude.push(t[2])}));var i=u.centroid(e);e.centroidX=i[0],e.centroidY=i[1]})),o}c("geo",d),c("geojson",d),c("GeoJSON",d),e.exports=d},function(e,t,n){var r=n(362),i=n(363),o=n(364);function a(e){if(!(this instanceof a))return new a(e);this._path=i(e)?e:r(e),this._path=o(this._path),this._path=l(this._path)}function s(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)}function l(e){for(var t=[],n=["L",0,0],r=0,i=e.length;r<i;r++){var o=e[r];switch(o[0]){case"M":n=["L",o[1],o[2]],t.push(o);break;case"Z":t.push(n);break;default:t.push(o)}}return t}e.exports=a,a.prototype.at=function(e,t){return this._walk(e,t).pos},a.prototype.length=function(){return this._walk(null).length},a.prototype._walk=function(e,t){var n=[0,0],r=[0,0,0],i=0,o=1.045;"number"===typeof e&&(e*=o);for(var a=0;a<this._path.length;a++){var l=this._path[a];if("M"===l[0]){if(n[0]=l[1],n[1]=l[2],0===e)return{length:i,pos:n}}else if("C"===l[0]){r[0]=n[0],r[1]=n[1],r[2]=i;for(var c=100,u=0;u<=c;u++){var d=u/c,f=g(l,d),h=v(l,d);if(i+=s(n[0],n[1],f,h),n[0]=f,n[1]=h,"number"===typeof e&&i>=e){var p=(i-e)/(i-r[2]),m=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:i,pos:m}}r[0]=n[0],r[1]=n[1],r[2]=i}}else if("Q"===l[0]){r[0]=n[0],r[1]=n[1],r[2]=i;for(c=100,u=0;u<=c;u++){d=u/c,f=y(l,d),h=b(l,d);if(i+=s(n[0],n[1],f,h),n[0]=f,n[1]=h,"number"===typeof e&&i>=e){p=(i-e)/(i-r[2]),m=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:i,pos:m}}r[0]=n[0],r[1]=n[1],r[2]=i}}else if("L"===l[0]){if(r[0]=n[0],r[1]=n[1],r[2]=i,i+=s(n[0],n[1],l[1],l[2]),n[0]=l[1],n[1]=l[2],"number"===typeof e&&i>=e){p=(i-e)/(i-r[2]),m=[n[0]*(1-p)+r[0]*p,n[1]*(1-p)+r[1]*p];return{length:i,pos:m}}r[0]=n[0],r[1]=n[1],r[2]=i}}return{length:i/o,pos:n};function g(e,t){return Math.pow(1-t,3)*n[0]+3*Math.pow(1-t,2)*t*e[1]+3*(1-t)*Math.pow(t,2)*e[3]+Math.pow(t,3)*e[5]}function v(e,t){return Math.pow(1-t,3)*n[1]+3*Math.pow(1-t,2)*t*e[2]+3*(1-t)*Math.pow(t,2)*e[4]+Math.pow(t,3)*e[6]}function y(e,t){return Math.pow(1-t,2)*n[0]+2*(1-t)*t*e[1]+Math.pow(t,2)*e[3]}function b(e,t){return Math.pow(1-t,2)*n[1]+2*(1-t)*t*e[2]+Math.pow(t,2)*e[4]}}},function(e,t,n){"use strict";t["b"]=l;var r=n(161);function i(e,t,n){var r=e.x,i=e.y,o=t.r+n.r,a=e.r+n.r,s=t.x-r,l=t.y-i,c=s*s+l*l;if(c){var u=.5+((a*=a)-(o*=o))/(2*c),d=Math.sqrt(Math.max(0,2*o*(a+c)-(a-=c)*a-o*o))/(2*c);n.x=r+u*s+d*l,n.y=i+u*l-d*s}else n.x=r+a,n.y=i}function o(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return i*i-1e-6>n*n+r*r}function a(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function s(e){this._=e,this.next=null,this.previous=null}function l(e){if(!(c=e.length))return 0;var t,n,l,c,u,d,f,h,p,m,g;if(t=e[0],t.x=0,t.y=0,!(c>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(c>2))return t.r+n.r;i(n,t,l=e[2]),t=new s(t),n=new s(n),l=new s(l),t.next=l.previous=n,n.next=t.previous=l,l.next=n.previous=t;e:for(f=3;f<c;++f){i(t._,n._,l=e[f]),l=new s(l),h=n.next,p=t.previous,m=n._.r,g=t._.r;do{if(m<=g){if(o(h._,l._)){n=h,t.next=n,n.previous=t,--f;continue e}m+=h._.r,h=h.next}else{if(o(p._,l._)){t=p,t.next=n,n.previous=t,--f;continue e}g+=p._.r,p=p.previous}}while(h!==p.next);l.previous=t,l.next=n,t.next=n.previous=n=l,u=a(t);while((l=l.next)!==n)(d=a(l))<u&&(t=l,u=d);n=t.next}t=[n._],l=n;while((l=l.next)!==n)t.push(l._);for(l=Object(r["a"])(t),f=0;f<c;++f)t=e[f],t.x-=l.x,t.y-=l.y;return l.r}t["a"]=function(e){return l(e),e}},function(e,t,n){"use strict";var r=n(382);function i(e,t){var n,r;if(s(t,e))return[t];for(n=0;n<e.length;++n)if(o(t,e[n])&&s(u(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(o(u(e[n],e[r]),t)&&o(u(e[n],t),e[r])&&o(u(e[r],t),e[n])&&s(d(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function o(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function a(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function s(e,t){for(var n=0;n<t.length;++n)if(!a(e,t[n]))return!1;return!0}function l(e){switch(e.length){case 1:return c(e[0]);case 2:return u(e[0],e[1]);case 3:return d(e[0],e[1],e[2])}}function c(e){return{x:e.x,y:e.y,r:e.r}}function u(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,l=o-n,c=a-r,u=s-i,d=Math.sqrt(l*l+c*c);return{x:(n+o+l/d*u)/2,y:(r+a+c/d*u)/2,r:(d+i+s)/2}}function d(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,l=t.r,c=n.x,u=n.y,d=n.r,f=r-a,h=r-c,p=i-s,m=i-u,g=l-o,v=d-o,y=r*r+i*i-o*o,b=y-a*a-s*s+l*l,_=y-c*c-u*u+d*d,w=h*p-f*m,x=(p*_-m*b)/(2*w)-r,S=(m*g-p*v)/w,C=(h*b-f*_)/(2*w)-i,E=(f*v-h*g)/w,k=S*S+E*E-1,O=2*(o+x*S+C*E),T=x*x+C*C-o*o,I=-(k?(O+Math.sqrt(O*O-4*k*T))/(2*k):T/O);return{x:r+x+S*I,y:i+C+E*I,r:I}}t["a"]=function(e){var t,n,o=0,s=(e=Object(r["a"])(r["b"].call(e))).length,c=[];while(o<s)t=e[o],n&&a(n,t)?++o:(n=l(c=i(c,t)),o=0);return n}},function(e,t,n){"use strict";function r(){return 0}t["a"]=r,t["b"]=function(e){return function(){return e}}},function(e,t,n){"use strict";t["a"]=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}},function(e,t,n){"use strict";var r=n(89);t["a"]=function(e){var t,n=Object(r["a"])(e.transform),i=1/0,o=i,a=-i,s=-i;function l(e){e=n(e),e[0]<i&&(i=e[0]),e[0]>a&&(a=e[0]),e[1]<o&&(o=e[1]),e[1]>s&&(s=e[1])}function c(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(c);break;case"Point":l(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(l);break}}for(t in e.arcs.forEach((function(e){var t,r=-1,l=e.length;while(++r<l)t=n(e[r],r),t[0]<i&&(i=t[0]),t[0]>a&&(a=t[0]),t[1]<o&&(o=t[1]),t[1]>s&&(s=t[1])})),e.objects)c(e.objects[t]);return[i,o,a,s]}},function(e,t,n){"use strict";t["a"]=function(e){return e}},function(e,t,n){"use strict";t["a"]=function(e,t){var n={},r={},i={},o=[],a=-1;function s(t){var n,r=e.arcs[t<0?~t:t],i=r[0];return e.transform?(n=[0,0],r.forEach((function(e){n[0]+=e[0],n[1]+=e[1]}))):n=r[r.length-1],t<0?[n,i]:[i,n]}function l(e,t){for(var r in e){var i=e[r];delete t[i.start],delete i.start,delete i.end,i.forEach((function(e){n[e<0?~e:e]=1})),o.push(i)}}return t.forEach((function(n,r){var i,o=e.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=t[++a],t[a]=n,t[r]=i)})),t.forEach((function(e){var t,n,o=s(e),a=o[0],l=o[1];if(t=i[a])if(delete i[t.end],t.push(e),t.end=l,n=r[l]){delete r[n.start];var c=n===t?t:t.concat(n);r[c.start=t.start]=i[c.end=n.end]=c}else r[t.start]=i[t.end]=t;else if(t=r[l])if(delete r[t.start],t.unshift(e),t.start=a,n=i[a]){delete i[n.end];var u=n===t?t:n.concat(t);r[u.start=n.start]=i[u.end=t.end]=u}else r[t.start]=i[t.end]=t;else t=[e],r[t.start=a]=i[t.end=l]=t})),l(i,r),l(r,i),t.forEach((function(e){n[e<0?~e:e]||o.push([e])})),o}},function(e,t,n){"use strict";var r=n(165);t["a"]=function(e){if(null==e)return r["a"];var t,n,i=e.scale[0],o=e.scale[1],a=e.translate[0],s=e.translate[1];return function(e,r){r||(t=n=0);var l=2,c=e.length,u=new Array(c),d=Math.round((e[0]-a)/i),f=Math.round((e[1]-s)/o);u[0]=d-t,t=d,u[1]=f-n,n=f;while(l<c)u[l]=e[l],++l;return u}}},function(e,t,n){var r=n(91),i=Array.prototype.indexOf,o=function(e,t){return!!r(e)&&i.call(e,t)>-1};e.exports=o},function(e,t,n){(function(e,r){var i;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright JS Foundation and other contributors <https://js.foundation/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(){var o,a="4.17.4",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,m=4,g=1,v=2,y=1,b=2,_=4,w=8,x=16,S=32,C=64,E=128,k=256,O=512,T=30,I="...",A=800,R=16,P=1,M=2,N=3,L=1/0,D=9007199254740991,j=17976931348623157e292,F=NaN,B=4294967295,q=B-1,z=B>>>1,U=[["ary",E],["bind",y],["bindKey",b],["curry",w],["curryRight",x],["flip",O],["partial",S],["partialRight",C],["rearg",k]],G="[object Arguments]",V="[object Array]",W="[object AsyncFunction]",H="[object Boolean]",$="[object Date]",K="[object DOMException]",X="[object Error]",Y="[object Function]",J="[object GeneratorFunction]",Q="[object Map]",Z="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",re="[object Proxy]",ie="[object RegExp]",oe="[object Set]",ae="[object String]",se="[object Symbol]",le="[object Undefined]",ce="[object WeakMap]",ue="[object WeakSet]",de="[object ArrayBuffer]",fe="[object DataView]",he="[object Float32Array]",pe="[object Float64Array]",me="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",ye="[object Uint8Array]",be="[object Uint8ClampedArray]",_e="[object Uint16Array]",we="[object Uint32Array]",xe=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Oe=RegExp(Ee.source),Te=RegExp(ke.source),Ie=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Re=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/,Ne=/^\./,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/[\\^$.*+?()[\]{}|]/g,je=RegExp(De.source),Fe=/^\s+|\s+$/g,Be=/^\s+/,qe=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Ge=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=rt+it+ot,st="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",ft=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",mt=ct+ut+dt+ft,gt="['’]",vt="["+nt+"]",yt="["+mt+"]",bt="["+at+"]",_t="\\d+",wt="["+st+"]",xt="["+lt+"]",St="[^"+nt+mt+_t+st+lt+ht+"]",Ct="\\ud83c[\\udffb-\\udfff]",Et="(?:"+bt+"|"+Ct+")",kt="[^"+nt+"]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+ht+"]",At="\\u200d",Rt="(?:"+xt+"|"+St+")",Pt="(?:"+It+"|"+St+")",Mt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Nt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",Lt=Et+"?",Dt="["+pt+"]?",jt="(?:"+At+"(?:"+[kt,Ot,Tt].join("|")+")"+Dt+Lt+")*",Ft="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Bt="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",qt=Dt+Lt+jt,zt="(?:"+[wt,Ot,Tt].join("|")+")"+qt,Ut="(?:"+[kt+bt+"?",bt,Ot,Tt,vt].join("|")+")",Gt=RegExp(gt,"g"),Vt=RegExp(bt,"g"),Wt=RegExp(Ct+"(?="+Ct+")|"+Ut+qt,"g"),Ht=RegExp([It+"?"+xt+"+"+Mt+"(?="+[yt,It,"$"].join("|")+")",Pt+"+"+Nt+"(?="+[yt,It+Rt,"$"].join("|")+")",It+"?"+Rt+"+"+Mt,It+"+"+Nt,Bt,Ft,_t,zt].join("|"),"g"),$t=RegExp("["+At+nt+at+pt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Jt={};Jt[he]=Jt[pe]=Jt[me]=Jt[ge]=Jt[ve]=Jt[ye]=Jt[be]=Jt[_e]=Jt[we]=!0,Jt[G]=Jt[V]=Jt[de]=Jt[H]=Jt[fe]=Jt[$]=Jt[X]=Jt[Y]=Jt[Q]=Jt[Z]=Jt[te]=Jt[ie]=Jt[oe]=Jt[ae]=Jt[ce]=!1;var Qt={};Qt[G]=Qt[V]=Qt[de]=Qt[fe]=Qt[H]=Qt[$]=Qt[he]=Qt[pe]=Qt[me]=Qt[ge]=Qt[ve]=Qt[Q]=Qt[Z]=Qt[te]=Qt[ie]=Qt[oe]=Qt[ae]=Qt[se]=Qt[ye]=Qt[be]=Qt[_e]=Qt[we]=!0,Qt[X]=Qt[Y]=Qt[ce]=!1;var Zt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,sn="object"==typeof self&&self&&self.Object===Object&&self,ln=an||sn||Function("return this")(),cn="object"==typeof t&&t&&!t.nodeType&&t,un=cn&&"object"==typeof r&&r&&!r.nodeType&&r,dn=un&&un.exports===cn,fn=dn&&an.process,hn=function(){try{return fn&&fn.binding&&fn.binding("util")}catch(e){}}(),pn=hn&&hn.isArrayBuffer,mn=hn&&hn.isDate,gn=hn&&hn.isMap,vn=hn&&hn.isRegExp,yn=hn&&hn.isSet,bn=hn&&hn.isTypedArray;function _n(e,t){return e.set(t[0],t[1]),e}function wn(e,t){return e.add(t),e}function xn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Sn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}function Cn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function En(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function kn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function On(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Tn(e,t){var n=null==e?0:e.length;return!!n&&qn(e,t,0)>-1}function In(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function An(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Rn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Pn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Mn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function Nn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Ln=Vn("length");function Dn(e){return e.split("")}function jn(e){return e.match(Ve)||[]}function Fn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Bn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function qn(e,t,n){return t===t?mr(e,t,n):Bn(e,Un,n)}function zn(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function Un(e){return e!==e}function Gn(e,t){var n=null==e?0:e.length;return n?Kn(e,t)/n:F}function Vn(e){return function(t){return null==t?o:t[e]}}function Wn(e){return function(t){return null==e?o:e[t]}}function Hn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $n(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Kn(e,t){var n,r=-1,i=e.length;while(++r<i){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Yn(e,t){return An(t,(function(t){return[t,e[t]]}))}function Jn(e){return function(t){return e(t)}}function Qn(e,t){return An(t,(function(t){return e[t]}))}function Zn(e,t){return e.has(t)}function er(e,t){var n=-1,r=e.length;while(++n<r&&qn(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length;while(n--&&qn(t,e[n],0)>-1);return n}function nr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var rr=Wn(Zt),ir=Wn(en);function or(e){return"\\"+nn[e]}function ar(e,t){return null==e?o:e[t]}function sr(e){return $t.test(e)}function lr(e){return Kt.test(e)}function cr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ur(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function dr(e,t){return function(n){return e(t(n))}}function fr(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n];a!==t&&a!==f||(e[n]=f,o[i++]=n)}return o}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function mr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function gr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function vr(e){return sr(e)?_r(e):Ln(e)}function yr(e){return sr(e)?wr(e):Dn(e)}var br=Wn(tn);function _r(e){var t=Wt.lastIndex=0;while(Wt.test(e))++t;return t}function wr(e){return e.match(Wt)||[]}function xr(e){return e.match(Ht)||[]}var Sr=function e(t){t=null==t?ln:Cr.defaults(ln.Object(),t,Cr.pick(ln,Xt));var n=t.Array,r=t.Date,i=t.Error,Ve=t.Function,nt=t.Math,rt=t.Object,it=t.RegExp,ot=t.String,at=t.TypeError,st=n.prototype,lt=Ve.prototype,ct=rt.prototype,ut=t["__core-js_shared__"],dt=lt.toString,ft=ct.hasOwnProperty,ht=0,pt=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mt=ct.toString,gt=dt.call(rt),vt=ln._,yt=it("^"+dt.call(ft).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=dn?t.Buffer:o,_t=t.Symbol,wt=t.Uint8Array,xt=bt?bt.allocUnsafe:o,St=dr(rt.getPrototypeOf,rt),Ct=rt.create,Et=ct.propertyIsEnumerable,kt=st.splice,Ot=_t?_t.isConcatSpreadable:o,Tt=_t?_t.iterator:o,It=_t?_t.toStringTag:o,At=function(){try{var e=Ya(rt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==ln.clearTimeout&&t.clearTimeout,Pt=r&&r.now!==ln.Date.now&&r.now,Mt=t.setTimeout!==ln.setTimeout&&t.setTimeout,Nt=nt.ceil,Lt=nt.floor,Dt=rt.getOwnPropertySymbols,jt=bt?bt.isBuffer:o,Ft=t.isFinite,Bt=st.join,qt=dr(rt.keys,rt),zt=nt.max,Ut=nt.min,Wt=r.now,Ht=t.parseInt,$t=nt.random,Kt=st.reverse,Zt=Ya(t,"DataView"),en=Ya(t,"Map"),tn=Ya(t,"Promise"),nn=Ya(t,"Set"),an=Ya(t,"WeakMap"),sn=Ya(rt,"create"),cn=an&&new an,un={},fn=Ns(Zt),hn=Ns(en),Ln=Ns(tn),Dn=Ns(nn),Wn=Ns(an),mr=_t?_t.prototype:o,_r=mr?mr.valueOf:o,wr=mr?mr.toString:o;function Sr(e){if(Ou(e)&&!uu(e)&&!(e instanceof Tr)){if(e instanceof Or)return e;if(ft.call(e,"__wrapped__"))return Ds(e)}return new Or(e)}var Er=function(){function e(){}return function(t){if(!ku(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function kr(){}function Or(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Tr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Ir(){var e=new Tr(this.__wrapped__);return e.__actions__=sa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=sa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=sa(this.__views__),e}function Ar(){if(this.__filtered__){var e=new Tr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=uu(e),r=t<0,i=n?e.length:0,o=ts(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=Ut(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return qo(e,this.__actions__);var p=[];e:while(l--&&f<h){c+=t;var m=-1,g=e[c];while(++m<d){var v=u[m],y=v.iteratee,b=v.type,_=y(g);if(b==M)g=_;else if(!_){if(b==P)continue e;break e}}p[f++]=g}return p}function Pr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Mr(){this.__data__=sn?sn(null):{},this.size=0}function Nr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Lr(e){var t=this.__data__;if(sn){var n=t[e];return n===u?o:n}return ft.call(t,e)?t[e]:o}function Dr(e){var t=this.__data__;return sn?t[e]!==o:ft.call(t,e)}function jr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===o?u:t,this}function Fr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function qr(e){var t=this.__data__,n=di(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function zr(e){var t=this.__data__,n=di(t,e);return n<0?o:t[n][1]}function Ur(e){return di(this.__data__,e)>-1}function Gr(e,t){var n=this.__data__,r=di(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Vr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Wr(){this.size=0,this.__data__={hash:new Pr,map:new(en||Fr),string:new Pr}}function Hr(e){var t=Ka(this,e)["delete"](e);return this.size-=t?1:0,t}function $r(e){return Ka(this,e).get(e)}function Kr(e){return Ka(this,e).has(e)}function Xr(e,t){var n=Ka(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Vr;while(++t<n)this.add(e[t])}function Jr(e){return this.__data__.set(e,u),this}function Qr(e){return this.__data__.has(e)}function Zr(e){var t=this.__data__=new Fr(e);this.size=t.size}function ei(){this.__data__=new Fr,this.size=0}function ti(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ni(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ii(e,t){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!en||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vr(r)}return n.set(e,t),this.size=n.size,this}function oi(e,t){var n=uu(e),r=!n&&cu(e),i=!n&&!r&&mu(e),o=!n&&!r&&!i&&Uu(e),a=n||r||i||o,s=a?Xn(e.length,ot):[],l=s.length;for(var c in e)!t&&!ft.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||cs(c,l))||s.push(c);return s}function ai(e){var t=e.length;return t?e[bo(0,t-1)]:o}function si(e,t){return Rs(sa(e),vi(t,0,e.length))}function li(e){return Rs(sa(e))}function ci(e,t,n){(n!==o&&!au(e[t],n)||n===o&&!(t in e))&&mi(e,t,n)}function ui(e,t,n){var r=e[t];ft.call(e,t)&&au(r,n)&&(n!==o||t in e)||mi(e,t,n)}function di(e,t){var n=e.length;while(n--)if(au(e[n][0],t))return n;return-1}function fi(e,t,n,r){return Si(e,(function(e,i,o){t(r,e,n(e),o)})),r}function hi(e,t){return e&&la(t,Cd(t),e)}function pi(e,t){return e&&la(t,Ed(t),e)}function mi(e,t,n){"__proto__"==t&&At?At(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gi(e,t){var r=-1,i=t.length,a=n(i),s=null==e;while(++r<i)a[r]=s?o:yd(e,t[r]);return a}function vi(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function yi(e,t,n,r,i,a){var s,l=t&h,c=t&p,u=t&m;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ku(e))return e;var d=uu(e);if(d){if(s=is(e),!l)return sa(e,s)}else{var f=es(e),g=f==Y||f==J;if(mu(e))return Xo(e,l);if(f==te||f==G||g&&!i){if(s=c||g?{}:os(e),!l)return c?ua(e,pi(s,e)):ca(e,hi(s,e))}else{if(!Qt[f])return i?e:{};s=as(e,f,yi,l)}}a||(a=new Zr);var v=a.get(e);if(v)return v;a.set(e,s);var y=u?c?Ga:Ua:c?Ed:Cd,b=d?o:y(e);return Cn(b||e,(function(r,i){b&&(i=r,r=e[i]),ui(s,i,yi(r,t,n,i,e,a))})),s}function bi(e){var t=Cd(e);return function(n){return _i(n,e,t)}}function _i(e,t,n){var r=n.length;if(null==e)return!r;e=rt(e);while(r--){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function wi(e,t,n){if("function"!=typeof e)throw new at(c);return Os((function(){e.apply(o,n)}),t)}function xi(e,t,n,r){var i=-1,o=Tn,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=An(t,Jn(n))),r?(o=In,a=!1):t.length>=s&&(o=Zn,a=!1,t=new Yr(t));e:while(++i<l){var d=e[i],f=null==n?d:n(d);if(d=r||0!==d?d:0,a&&f===f){var h=u;while(h--)if(t[h]===f)continue e;c.push(d)}else o(t,f,r)||c.push(d)}return c}Sr.templateSettings={escape:Ie,evaluate:Ae,interpolate:Re,variable:"",imports:{_:Sr}},Sr.prototype=kr.prototype,Sr.prototype.constructor=Sr,Or.prototype=Er(kr.prototype),Or.prototype.constructor=Or,Tr.prototype=Er(kr.prototype),Tr.prototype.constructor=Tr,Pr.prototype.clear=Mr,Pr.prototype["delete"]=Nr,Pr.prototype.get=Lr,Pr.prototype.has=Dr,Pr.prototype.set=jr,Fr.prototype.clear=Br,Fr.prototype["delete"]=qr,Fr.prototype.get=zr,Fr.prototype.has=Ur,Fr.prototype.set=Gr,Vr.prototype.clear=Wr,Vr.prototype["delete"]=Hr,Vr.prototype.get=$r,Vr.prototype.has=Kr,Vr.prototype.set=Xr,Yr.prototype.add=Yr.prototype.push=Jr,Yr.prototype.has=Qr,Zr.prototype.clear=ei,Zr.prototype["delete"]=ti,Zr.prototype.get=ni,Zr.prototype.has=ri,Zr.prototype.set=ii;var Si=ha(Pi),Ci=ha(Mi,!0);function Ei(e,t){var n=!0;return Si(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function ki(e,t,n){var r=-1,i=e.length;while(++r<i){var a=e[r],s=t(a);if(null!=s&&(l===o?s===s&&!zu(s):n(s,l)))var l=s,c=a}return c}function Oi(e,t,n,r){var i=e.length;n=Yu(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Yu(r),r<0&&(r+=i),r=n>r?0:Ju(r);while(n<r)e[n++]=t;return e}function Ti(e,t){var n=[];return Si(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ii(e,t,n,r,i){var o=-1,a=e.length;n||(n=ls),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?Ii(s,t-1,n,r,i):Rn(i,s):r||(i[i.length]=s)}return i}var Ai=pa(),Ri=pa(!0);function Pi(e,t){return e&&Ai(e,t,Cd)}function Mi(e,t){return e&&Ri(e,t,Cd)}function Ni(e,t){return On(t,(function(t){return Su(e[t])}))}function Li(e,t){t=Wo(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ms(t[n++])];return n&&n==r?e:o}function Di(e,t,n){var r=t(e);return uu(e)?r:Rn(r,n(e))}function ji(e){return null==e?e===o?le:ee:It&&It in rt(e)?Ja(e):xs(e)}function Fi(e,t){return e>t}function Bi(e,t){return null!=e&&ft.call(e,t)}function qi(e,t){return null!=e&&t in rt(e)}function zi(e,t,n){return e>=Ut(t,n)&&e<zt(t,n)}function Ui(e,t,r){var i=r?In:Tn,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];while(l--){var f=e[l];l&&t&&(f=An(f,Jn(t))),u=Ut(f.length,u),c[l]=!r&&(t||a>=120&&f.length>=120)?new Yr(l&&f):o}f=e[0];var h=-1,p=c[0];e:while(++h<a&&d.length<u){var m=f[h],g=t?t(m):m;if(m=r||0!==m?m:0,!(p?Zn(p,g):i(d,g,r))){l=s;while(--l){var v=c[l];if(!(v?Zn(v,g):i(e[l],g,r)))continue e}p&&p.push(g),d.push(m)}}return d}function Gi(e,t,n,r){return Pi(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Vi(e,t,n){t=Wo(t,e),e=Cs(e,t);var r=null==e?e:e[Ms(sl(t))];return null==r?o:xn(r,e,n)}function Wi(e){return Ou(e)&&ji(e)==G}function Hi(e){return Ou(e)&&ji(e)==de}function $i(e){return Ou(e)&&ji(e)==$}function Ki(e,t,n,r,i){return e===t||(null==e||null==t||!Ou(e)&&!Ou(t)?e!==e&&t!==t:Xi(e,t,n,r,Ki,i))}function Xi(e,t,n,r,i,o){var a=uu(e),s=uu(t),l=a?V:es(e),c=s?V:es(t);l=l==G?te:l,c=c==G?te:c;var u=l==te,d=c==te,f=l==c;if(f&&mu(e)){if(!mu(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Zr),a||Uu(e)?Fa(e,t,n,r,i,o):Ba(e,t,l,n,r,i,o);if(!(n&g)){var h=u&&ft.call(e,"__wrapped__"),p=d&&ft.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return o||(o=new Zr),i(m,v,n,r,o)}}return!!f&&(o||(o=new Zr),qa(e,t,n,r,i,o))}function Yi(e){return Ou(e)&&es(e)==Q}function Ji(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;e=rt(e);while(i--){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++i<a){l=n[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var f=new Zr;if(r)var h=r(u,d,c,e,t,f);if(!(h===o?Ki(d,u,g|v,r,f):h))return!1}}return!0}function Qi(e){if(!ku(e)||ps(e))return!1;var t=Su(e)?yt:Ye;return t.test(Ns(e))}function Zi(e){return Ou(e)&&ji(e)==ie}function eo(e){return Ou(e)&&es(e)==oe}function to(e){return Ou(e)&&Eu(e.length)&&!!Jt[ji(e)]}function no(e){return"function"==typeof e?e:null==e?Mf:"object"==typeof e?uu(e)?lo(e[0],e[1]):so(e):Hf(e)}function ro(e){if(!gs(e))return qt(e);var t=[];for(var n in rt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function io(e){if(!ku(e))return ws(e);var t=gs(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function oo(e,t){return e<t}function ao(e,t){var r=-1,i=fu(e)?n(e.length):[];return Si(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function so(e){var t=Xa(e);return 1==t.length&&t[0][2]?ys(t[0][0],t[0][1]):function(n){return n===e||Ji(n,e,t)}}function lo(e,t){return ds(e)&&vs(t)?ys(Ms(e),t):function(n){var r=yd(n,e);return r===o&&r===t?_d(n,e):Ki(t,r,g|v)}}function co(e,t,n,r,i){e!==t&&Ai(t,(function(a,s){if(ku(a))i||(i=new Zr),uo(e,t,s,n,co,r,i);else{var l=r?r(e[s],a,s+"",e,t,i):o;l===o&&(l=a),ci(e,s,l)}}),Ed)}function uo(e,t,n,r,i,a,s){var l=e[n],c=t[n],u=s.get(c);if(u)ci(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):o,f=d===o;if(f){var h=uu(c),p=!h&&mu(c),m=!h&&!p&&Uu(c);d=c,h||p||m?uu(l)?d=l:hu(l)?d=sa(l):p?(f=!1,d=Xo(c,!0)):m?(f=!1,d=na(c,!0)):d=[]:Du(c)||cu(c)?(d=l,cu(l)?d=Zu(l):(!ku(l)||r&&Su(l))&&(d=os(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s["delete"](c)),ci(e,n,d)}}function fo(e,t){var n=e.length;if(n)return t+=t<0?n:0,cs(t,n)?e[t]:o}function ho(e,t,n){var r=-1;t=An(t.length?t:[Mf],Jn($a()));var i=ao(e,(function(e,n,i){var o=An(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return $n(i,(function(e,t){return ia(e,t,n)}))}function po(e,t){return mo(e,t,(function(t,n){return _d(e,n)}))}function mo(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Li(e,a);n(s,a)&&Eo(o,Wo(a,e),s)}return o}function go(e){return function(t){return Li(t,e)}}function vo(e,t,n,r){var i=r?zn:qn,o=-1,a=t.length,s=e;e===t&&(t=sa(t)),n&&(s=An(e,Jn(n)));while(++o<a){var l=0,c=t[o],u=n?n(c):c;while((l=i(s,u,l,r))>-1)s!==e&&kt.call(s,l,1),kt.call(e,l,1)}return e}function yo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;cs(i)?kt.call(e,i,1):jo(e,i)}}return e}function bo(e,t){return e+Lt($t()*(t-e+1))}function _o(e,t,r,i){var o=-1,a=zt(Nt((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function wo(e,t){var n="";if(!e||t<1||t>D)return n;do{t%2&&(n+=e),t=Lt(t/2),t&&(e+=e)}while(t);return n}function xo(e,t){return Ts(Ss(e,t,Mf),e+"")}function So(e){return ai(Gd(e))}function Co(e,t){var n=Gd(e);return Rs(n,vi(t,0,n.length))}function Eo(e,t,n,r){if(!ku(e))return e;t=Wo(t,e);var i=-1,a=t.length,s=a-1,l=e;while(null!=l&&++i<a){var c=Ms(t[i]),u=n;if(i!=s){var d=l[c];u=r?r(d,c,l):o,u===o&&(u=ku(d)?d:cs(t[i+1])?[]:{})}ui(l,c,u),l=l[c]}return e}var ko=cn?function(e,t){return cn.set(e,t),e}:Mf,Oo=At?function(e,t){return At(e,"toString",{configurable:!0,enumerable:!1,value:If(t),writable:!0})}:Mf;function To(e){return Rs(Gd(e))}function Io(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i<o)a[i]=e[i+t];return a}function Ao(e,t){var n;return Si(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Ro(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=z){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!zu(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Po(e,t,Mf,n)}function Po(e,t,n,r){t=n(t);var i=0,a=null==e?0:e.length,s=t!==t,l=null===t,c=zu(t),u=t===o;while(i<a){var d=Lt((i+a)/2),f=n(e[d]),h=f!==o,p=null===f,m=f===f,g=zu(f);if(s)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!p):c?m&&h&&!p&&(r||!g):!p&&!g&&(r?f<=t:f<t);v?i=d+1:a=d}return Ut(a,q)}function Mo(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!au(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function No(e){return"number"==typeof e?e:zu(e)?F:+e}function Lo(e){if("string"==typeof e)return e;if(uu(e))return An(e,Lo)+"";if(zu(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Do(e,t,n){var r=-1,i=Tn,o=e.length,a=!0,l=[],c=l;if(n)a=!1,i=In;else if(o>=s){var u=t?null:Pa(e);if(u)return hr(u);a=!1,i=Zn,c=new Yr}else c=t?[]:l;e:while(++r<o){var d=e[r],f=t?t(d):d;if(d=n||0!==d?d:0,a&&f===f){var h=c.length;while(h--)if(c[h]===f)continue e;t&&c.push(f),l.push(d)}else i(c,f,n)||(c!==l&&c.push(f),l.push(d))}return l}function jo(e,t){return t=Wo(t,e),e=Cs(e,t),null==e||delete e[Ms(sl(t))]}function Fo(e,t,n,r){return Eo(e,t,n(Li(e,t)),r)}function Bo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?Io(e,r?0:o,r?o+1:i):Io(e,r?o+1:0,r?i:o)}function qo(e,t){var n=e;return n instanceof Tr&&(n=n.value()),Pn(t,(function(e,t){return t.func.apply(t.thisArg,Rn([e],t.args))}),n)}function zo(e,t,r){var i=e.length;if(i<2)return i?Do(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],l=-1;while(++l<i)l!=o&&(a[o]=xi(a[o]||s,e[l],t,r))}return Do(Ii(a,1),t,r)}function Uo(e,t,n){var r=-1,i=e.length,a=t.length,s={};while(++r<i){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function Go(e){return hu(e)?e:[]}function Vo(e){return"function"==typeof e?e:Mf}function Wo(e,t){return uu(e)?e:ds(e,t)?[e]:Ps(td(e))}var Ho=xo;function $o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Io(e,t,n)}var Ko=Rt||function(e){return ln.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Yo(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Jo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Qo(e,t,n){var r=t?n(ur(e),h):ur(e);return Pn(r,_n,new e.constructor)}function Zo(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}function ea(e,t,n){var r=t?n(hr(e),h):hr(e);return Pn(r,wn,new e.constructor)}function ta(e){return _r?rt(_r.call(e)):{}}function na(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ra(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=zu(e),s=t!==o,l=null===t,c=t===t,u=zu(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function ia(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var l=ra(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}function oa(e,t,r,i){var o=-1,a=e.length,s=r.length,l=-1,c=t.length,u=zt(a-s,0),d=n(c+u),f=!i;while(++l<c)d[l]=t[l];while(++o<s)(f||o<a)&&(d[r[o]]=e[o]);while(u--)d[l++]=e[o++];return d}function aa(e,t,r,i){var o=-1,a=e.length,s=-1,l=r.length,c=-1,u=t.length,d=zt(a-l,0),f=n(d+u),h=!i;while(++o<d)f[o]=e[o];var p=o;while(++c<u)f[p+c]=t[c];while(++s<l)(h||o<a)&&(f[p+r[s]]=e[o++]);return f}function sa(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function la(e,t,n,r){var i=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?mi(n,l,c):ui(n,l,c)}return n}function ca(e,t){return la(e,Qa(e),t)}function ua(e,t){return la(e,Za(e),t)}function da(e,t){return function(n,r){var i=uu(n)?Sn:fi,o=t?t():{};return i(n,e,$a(r,2),o)}}function fa(e){return xo((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,s&&us(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=rt(t);while(++r<i){var l=n[r];l&&e(t,l,r,a)}return t}))}function ha(e,t){return function(n,r){if(null==n)return n;if(!fu(n))return e(n,r);var i=n.length,o=t?i:-1,a=rt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function pa(e){return function(t,n,r){var i=-1,o=rt(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function ma(e,t,n){var r=t&y,i=ya(e);function o(){var t=this&&this!==ln&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function ga(e){return function(t){t=td(t);var n=sr(t)?yr(t):o,r=n?n[0]:t.charAt(0),i=n?$o(n,1).join(""):t.slice(1);return r[e]()+i}}function va(e){return function(t){return Pn(Cf(Yd(t).replace(Gt,"")),e,"")}}function ya(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Er(e.prototype),r=e.apply(n,t);return ku(r)?r:n}}function ba(e,t,r){var i=ya(e);function a(){var s=arguments.length,l=n(s),c=s,u=Ha(a);while(c--)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:fr(l,u);if(s-=d.length,s<r)return Aa(e,t,xa,a.placeholder,o,l,d,o,o,r-s);var f=this&&this!==ln&&this instanceof a?i:e;return xn(f,this,l)}return a}function _a(e){return function(t,n,r){var i=rt(t);if(!fu(t)){var a=$a(n,3);t=Cd(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function wa(e){return za((function(t){var n=t.length,r=n,i=Or.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new at(c);if(i&&!s&&"wrapper"==Wa(a))var s=new Or([],!0)}r=s?r:n;while(++r<n){a=t[r];var l=Wa(a),u="wrapper"==l?Va(a):o;s=u&&hs(u[0])&&u[1]==(E|w|S|k)&&!u[4].length&&1==u[9]?s[Wa(u[0])].apply(s,u[3]):1==a.length&&hs(a)?s[l]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&uu(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function xa(e,t,r,i,a,s,l,c,u,d){var f=t&E,h=t&y,p=t&b,m=t&(w|x),g=t&O,v=p?o:ya(e);function _(){var o=arguments.length,y=n(o),b=o;while(b--)y[b]=arguments[b];if(m)var w=Ha(_),x=nr(y,w);if(i&&(y=oa(y,i,a,m)),s&&(y=aa(y,s,l,m)),o-=x,m&&o<d){var S=fr(y,w);return Aa(e,t,xa,_.placeholder,r,y,S,c,u,d-o)}var C=h?r:this,E=p?C[e]:e;return o=y.length,c?y=Es(y,c):g&&o>1&&y.reverse(),f&&u<o&&(y.length=u),this&&this!==ln&&this instanceof _&&(E=v||ya(E)),E.apply(C,y)}return _}function Sa(e,t){return function(n,r){return Gi(n,e,t(r),{})}}function Ca(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Lo(n),r=Lo(r)):(n=No(n),r=No(r)),i=e(n,r)}return i}}function Ea(e){return za((function(t){return t=An(t,Jn($a())),xo((function(n){var r=this;return e(t,(function(e){return xn(e,r,n)}))}))}))}function ka(e,t){t=t===o?" ":Lo(t);var n=t.length;if(n<2)return n?wo(t,e):t;var r=wo(t,Nt(e/vr(t)));return sr(t)?$o(yr(r),0,e).join(""):r.slice(0,e)}function Oa(e,t,r,i){var o=t&y,a=ya(e);function s(){var t=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),f=this&&this!==ln&&this instanceof s?a:e;while(++c<u)d[c]=i[c];while(l--)d[c++]=arguments[++t];return xn(f,o?r:this,d)}return s}function Ta(e){return function(t,n,r){return r&&"number"!=typeof r&&us(t,n,r)&&(n=r=o),t=Xu(t),n===o?(n=t,t=0):n=Xu(n),r=r===o?t<n?1:-1:Xu(r),_o(t,n,r,e)}}function Ia(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qu(t),n=Qu(n)),e(t,n)}}function Aa(e,t,n,r,i,a,s,l,c,u){var d=t&w,f=d?s:o,h=d?o:s,p=d?a:o,m=d?o:a;t|=d?S:C,t&=~(d?C:S),t&_||(t&=~(y|b));var g=[e,t,i,p,f,m,h,l,c,u],v=n.apply(o,g);return hs(e)&&ks(v,g),v.placeholder=r,Is(v,e,t)}function Ra(e){var t=nt[e];return function(e,n){if(e=Qu(e),n=null==n?0:Ut(Yu(n),292),n){var r=(td(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(td(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Pa=nn&&1/hr(new nn([,-0]))[1]==L?function(e){return new nn(e)}:zf;function Ma(e){return function(t){var n=es(t);return n==Q?ur(t):n==oe?pr(t):Yn(t,e(t))}}function Na(e,t,n,r,i,a,s,l){var u=t&b;if(!u&&"function"!=typeof e)throw new at(c);var d=r?r.length:0;if(d||(t&=~(S|C),r=i=o),s=s===o?s:zt(Yu(s),0),l=l===o?l:Yu(l),d-=i?i.length:0,t&C){var f=r,h=i;r=i=o}var p=u?o:Va(e),m=[e,t,n,r,i,f,h,a,s,l];if(p&&_s(m,p),e=m[0],t=m[1],n=m[2],r=m[3],i=m[4],l=m[9]=m[9]===o?u?0:e.length:zt(m[9]-d,0),!l&&t&(w|x)&&(t&=~(w|x)),t&&t!=y)g=t==w||t==x?ba(e,t,l):t!=S&&t!=(y|S)||i.length?xa.apply(o,m):Oa(e,t,n,r);else var g=ma(e,t,n);var v=p?ko:ks;return Is(v(g,m),e,t)}function La(e,t,n,r){return e===o||au(e,ct[n])&&!ft.call(r,n)?t:e}function Da(e,t,n,r,i,a){return ku(e)&&ku(t)&&(a.set(t,e),co(e,t,o,Da,a),a["delete"](t)),e}function ja(e){return Du(e)?o:e}function Fa(e,t,n,r,i,a){var s=n&g,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var d=-1,f=!0,h=n&v?new Yr:o;a.set(e,t),a.set(t,e);while(++d<l){var p=e[d],m=t[d];if(r)var y=s?r(m,p,d,t,e,a):r(p,m,d,e,t,a);if(y!==o){if(y)continue;f=!1;break}if(h){if(!Nn(t,(function(e,t){if(!Zn(h,t)&&(p===e||i(p,e,n,r,a)))return h.push(t)}))){f=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){f=!1;break}}return a["delete"](e),a["delete"](t),f}function Ba(e,t,n,r,i,o,a){switch(n){case fe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case H:case $:case Z:return au(+e,+t);case X:return e.name==t.name&&e.message==t.message;case ie:case ae:return e==t+"";case Q:var s=ur;case oe:var l=r&g;if(s||(s=hr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=v,a.set(e,t);var u=Fa(s(e),s(t),r,i,o,a);return a["delete"](e),u;case se:if(_r)return _r.call(e)==_r.call(t)}return!1}function qa(e,t,n,r,i,a){var s=n&g,l=Ua(e),c=l.length,u=Ua(t),d=u.length;if(c!=d&&!s)return!1;var f=c;while(f--){var h=l[f];if(!(s?h in t:ft.call(t,h)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var m=!0;a.set(e,t),a.set(t,e);var v=s;while(++f<c){h=l[f];var y=e[h],b=t[h];if(r)var _=s?r(b,y,h,t,e,a):r(y,b,h,e,t,a);if(!(_===o?y===b||i(y,b,n,r,a):_)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return a["delete"](e),a["delete"](t),m}function za(e){return Ts(Ss(e,o,Ys),e+"")}function Ua(e){return Di(e,Cd,Qa)}function Ga(e){return Di(e,Ed,Za)}var Va=cn?function(e){return cn.get(e)}:zf;function Wa(e){var t=e.name+"",n=un[t],r=ft.call(un,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ha(e){var t=ft.call(Sr,"placeholder")?Sr:e;return t.placeholder}function $a(){var e=Sr.iteratee||Nf;return e=e===Nf?no:e,arguments.length?e(arguments[0],arguments[1]):e}function Ka(e,t){var n=e.__data__;return fs(t)?n["string"==typeof t?"string":"hash"]:n.map}function Xa(e){var t=Cd(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,vs(i)]}return t}function Ya(e,t){var n=ar(e,t);return Qi(n)?n:o}function Ja(e){var t=ft.call(e,It),n=e[It];try{e[It]=o;var r=!0}catch(a){}var i=mt.call(e);return r&&(t?e[It]=n:delete e[It]),i}var Qa=Dt?function(e){return null==e?[]:(e=rt(e),On(Dt(e),(function(t){return Et.call(e,t)})))}:Yf,Za=Dt?function(e){var t=[];while(e)Rn(t,Qa(e)),e=St(e);return t}:Yf,es=ji;function ts(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ut(t,e+a);break;case"takeRight":e=zt(e,t-a);break}}return{start:e,end:t}}function ns(e){var t=e.match(Ue);return t?t[1].split(Ge):[]}function rs(e,t,n){t=Wo(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Ms(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Eu(i)&&cs(a,i)&&(uu(e)||cu(e)))}function is(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function os(e){return"function"!=typeof e.constructor||gs(e)?{}:Er(St(e))}function as(e,t,n,r){var i=e.constructor;switch(t){case de:return Yo(e);case H:case $:return new i(+e);case fe:return Jo(e,r);case he:case pe:case me:case ge:case ve:case ye:case be:case _e:case we:return na(e,r);case Q:return Qo(e,r,n);case Z:case ae:return new i(e);case ie:return Zo(e);case oe:return ea(e,r,n);case se:return ta(e)}}function ss(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}function ls(e){return uu(e)||cu(e)||!!(Ot&&e&&e[Ot])}function cs(e,t){return t=null==t?D:t,!!t&&("number"==typeof e||Qe.test(e))&&e>-1&&e%1==0&&e<t}function us(e,t,n){if(!ku(n))return!1;var r=typeof t;return!!("number"==r?fu(n)&&cs(t,n.length):"string"==r&&t in n)&&au(n[t],e)}function ds(e,t){if(uu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!zu(e))||(Me.test(e)||!Pe.test(e)||null!=t&&e in rt(t))}function fs(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function hs(e){var t=Wa(e),n=Sr[t];if("function"!=typeof n||!(t in Tr.prototype))return!1;if(e===n)return!0;var r=Va(n);return!!r&&e===r[0]}function ps(e){return!!pt&&pt in e}(Zt&&es(new Zt(new ArrayBuffer(1)))!=fe||en&&es(new en)!=Q||tn&&es(tn.resolve())!=ne||nn&&es(new nn)!=oe||an&&es(new an)!=ce)&&(es=function(e){var t=ji(e),n=t==te?e.constructor:o,r=n?Ns(n):"";if(r)switch(r){case fn:return fe;case hn:return Q;case Ln:return ne;case Dn:return oe;case Wn:return ce}return t});var ms=ut?Su:Jf;function gs(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ct;return e===n}function vs(e){return e===e&&!ku(e)}function ys(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in rt(n)))}}function bs(e){var t=Uc(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function _s(e,t){var n=e[1],r=t[1],i=n|r,o=i<(y|b|E),a=r==E&&n==w||r==E&&n==k&&e[7].length<=t[8]||r==(E|k)&&t[7].length<=t[8]&&n==w;if(!o&&!a)return e;r&y&&(e[2]=t[2],i|=n&y?0:_);var s=t[3];if(s){var l=e[3];e[3]=l?oa(l,s,t[4]):s,e[4]=l?fr(e[3],f):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?aa(l,s,t[6]):s,e[6]=l?fr(e[5],f):t[6]),s=t[7],s&&(e[7]=s),r&E&&(e[8]=null==e[8]?t[8]:Ut(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ws(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}function xs(e){return mt.call(e)}function Ss(e,t,r){return t=zt(t===o?e.length-1:t,0),function(){var i=arguments,o=-1,a=zt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=i[o];return l[t]=r(s),xn(e,this,l)}}function Cs(e,t){return t.length<2?e:Li(e,Io(t,0,-1))}function Es(e,t){var n=e.length,r=Ut(t.length,n),i=sa(e);while(r--){var a=t[r];e[r]=cs(a,n)?i[a]:o}return e}var ks=As(ko),Os=Mt||function(e,t){return ln.setTimeout(e,t)},Ts=As(Oo);function Is(e,t,n){var r=t+"";return Ts(e,ss(r,Ls(ns(r),n)))}function As(e){var t=0,n=0;return function(){var r=Wt(),i=R-(r-n);if(n=r,i>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Rs(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var a=bo(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ps=bs((function(e){var t=[];return Ne.test(e)&&t.push(""),e.replace(Le,(function(e,n,r,i){t.push(r?i.replace(We,"$1"):n||e)})),t}));function Ms(e){if("string"==typeof e||zu(e))return e;var t=e+"";return"0"==t&&1/e==-L?"-0":t}function Ns(e){if(null!=e){try{return dt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ls(e,t){return Cn(U,(function(n){var r="_."+n[0];t&n[1]&&!Tn(e,r)&&e.push(r)})),e.sort()}function Ds(e){if(e instanceof Tr)return e.clone();var t=new Or(e.__wrapped__,e.__chain__);return t.__actions__=sa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function js(e,t,r){t=(r?us(e,t,r):t===o)?1:zt(Yu(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var a=0,s=0,l=n(Nt(i/t));while(a<i)l[s++]=Io(e,a,a+=t);return l}function Fs(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function Bs(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Rn(uu(r)?sa(r):[r],Ii(t,1))}var qs=xo((function(e,t){return hu(e)?xi(e,Ii(t,1,hu,!0)):[]})),zs=xo((function(e,t){var n=sl(t);return hu(n)&&(n=o),hu(e)?xi(e,Ii(t,1,hu,!0),$a(n,2)):[]})),Us=xo((function(e,t){var n=sl(t);return hu(n)&&(n=o),hu(e)?xi(e,Ii(t,1,hu,!0),o,n):[]}));function Gs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Yu(t),Io(e,t<0?0:t,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Yu(t),t=r-t,Io(e,0,t<0?0:t)):[]}function Ws(e,t){return e&&e.length?Bo(e,$a(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Bo(e,$a(t,3),!0):[]}function $s(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&us(e,t,n)&&(n=0,r=i),Oi(e,t,n,r)):[]}function Ks(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Yu(n);return i<0&&(i=zt(r+i,0)),Bn(e,$a(t,3),i)}function Xs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Yu(n),i=n<0?zt(r+i,0):Ut(i,r-1)),Bn(e,$a(t,3),i,!0)}function Ys(e){var t=null==e?0:e.length;return t?Ii(e,1):[]}function Js(e){var t=null==e?0:e.length;return t?Ii(e,L):[]}function Qs(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Yu(t),Ii(e,t)):[]}function Zs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function el(e){return e&&e.length?e[0]:o}function tl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Yu(n);return i<0&&(i=zt(r+i,0)),qn(e,t,i)}function nl(e){var t=null==e?0:e.length;return t?Io(e,0,-1):[]}var rl=xo((function(e){var t=An(e,Go);return t.length&&t[0]===e[0]?Ui(t):[]})),il=xo((function(e){var t=sl(e),n=An(e,Go);return t===sl(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ui(n,$a(t,2)):[]})),ol=xo((function(e){var t=sl(e),n=An(e,Go);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?Ui(n,o,t):[]}));function al(e,t){return null==e?"":Bt.call(e,t)}function sl(e){var t=null==e?0:e.length;return t?e[t-1]:o}function ll(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Yu(n),i=i<0?zt(r+i,0):Ut(i,r-1)),t===t?gr(e,t,i):Bn(e,Un,i,!0)}function cl(e,t){return e&&e.length?fo(e,Yu(t)):o}var ul=xo(dl);function dl(e,t){return e&&e.length&&t&&t.length?vo(e,t):e}function fl(e,t,n){return e&&e.length&&t&&t.length?vo(e,t,$a(n,2)):e}function hl(e,t,n){return e&&e.length&&t&&t.length?vo(e,t,o,n):e}var pl=za((function(e,t){var n=null==e?0:e.length,r=gi(e,t);return yo(e,An(t,(function(e){return cs(e,n)?+e:e})).sort(ra)),r}));function ml(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=$a(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return yo(e,i),n}function gl(e){return null==e?e:Kt.call(e)}function vl(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&us(e,t,n)?(t=0,n=r):(t=null==t?0:Yu(t),n=n===o?r:Yu(n)),Io(e,t,n)):[]}function yl(e,t){return Ro(e,t)}function bl(e,t,n){return Po(e,t,$a(n,2))}function _l(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t);if(r<n&&au(e[r],t))return r}return-1}function wl(e,t){return Ro(e,t,!0)}function xl(e,t,n){return Po(e,t,$a(n,2),!0)}function Sl(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t,!0)-1;if(au(e[r],t))return r}return-1}function Cl(e){return e&&e.length?Mo(e):[]}function El(e,t){return e&&e.length?Mo(e,$a(t,2)):[]}function kl(e){var t=null==e?0:e.length;return t?Io(e,1,t):[]}function Ol(e,t,n){return e&&e.length?(t=n||t===o?1:Yu(t),Io(e,0,t<0?0:t)):[]}function Tl(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Yu(t),t=r-t,Io(e,t<0?0:t,r)):[]}function Il(e,t){return e&&e.length?Bo(e,$a(t,3),!1,!0):[]}function Al(e,t){return e&&e.length?Bo(e,$a(t,3)):[]}var Rl=xo((function(e){return Do(Ii(e,1,hu,!0))})),Pl=xo((function(e){var t=sl(e);return hu(t)&&(t=o),Do(Ii(e,1,hu,!0),$a(t,2))})),Ml=xo((function(e){var t=sl(e);return t="function"==typeof t?t:o,Do(Ii(e,1,hu,!0),o,t)}));function Nl(e){return e&&e.length?Do(e):[]}function Ll(e,t){return e&&e.length?Do(e,$a(t,2)):[]}function Dl(e,t){return t="function"==typeof t?t:o,e&&e.length?Do(e,o,t):[]}function jl(e){if(!e||!e.length)return[];var t=0;return e=On(e,(function(e){if(hu(e))return t=zt(e.length,t),!0})),Xn(t,(function(t){return An(e,Vn(t))}))}function Fl(e,t){if(!e||!e.length)return[];var n=jl(e);return null==t?n:An(n,(function(e){return xn(t,o,e)}))}var Bl=xo((function(e,t){return hu(e)?xi(e,t):[]})),ql=xo((function(e){return zo(On(e,hu))})),zl=xo((function(e){var t=sl(e);return hu(t)&&(t=o),zo(On(e,hu),$a(t,2))})),Ul=xo((function(e){var t=sl(e);return t="function"==typeof t?t:o,zo(On(e,hu),o,t)})),Gl=xo(jl);function Vl(e,t){return Uo(e||[],t||[],ui)}function Wl(e,t){return Uo(e||[],t||[],Eo)}var Hl=xo((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Fl(e,n)}));function $l(e){var t=Sr(e);return t.__chain__=!0,t}function Kl(e,t){return t(e),e}function Xl(e,t){return t(e)}var Yl=za((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return gi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Tr&&cs(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Xl,args:[i],thisArg:o}),new Or(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Jl(){return $l(this)}function Ql(){return new Or(this.value(),this.__chain__)}function Zl(){this.__values__===o&&(this.__values__=Ku(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function ec(){return this}function tc(e){var t,n=this;while(n instanceof kr){var r=Ds(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function nc(){var e=this.__wrapped__;if(e instanceof Tr){var t=e;return this.__actions__.length&&(t=new Tr(this)),t=t.reverse(),t.__actions__.push({func:Xl,args:[gl],thisArg:o}),new Or(t,this.__chain__)}return this.thru(gl)}function rc(){return qo(this.__wrapped__,this.__actions__)}var ic=da((function(e,t,n){ft.call(e,n)?++e[n]:mi(e,n,1)}));function oc(e,t,n){var r=uu(e)?kn:Ei;return n&&us(e,t,n)&&(t=o),r(e,$a(t,3))}function ac(e,t){var n=uu(e)?On:Ti;return n(e,$a(t,3))}var sc=_a(Ks),lc=_a(Xs);function cc(e,t){return Ii(yc(e,t),1)}function uc(e,t){return Ii(yc(e,t),L)}function dc(e,t,n){return n=n===o?1:Yu(n),Ii(yc(e,t),n)}function fc(e,t){var n=uu(e)?Cn:Si;return n(e,$a(t,3))}function hc(e,t){var n=uu(e)?En:Ci;return n(e,$a(t,3))}var pc=da((function(e,t,n){ft.call(e,n)?e[n].push(t):mi(e,n,[t])}));function mc(e,t,n,r){e=fu(e)?e:Gd(e),n=n&&!r?Yu(n):0;var i=e.length;return n<0&&(n=zt(i+n,0)),qu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qn(e,t,n)>-1}var gc=xo((function(e,t,r){var i=-1,o="function"==typeof t,a=fu(e)?n(e.length):[];return Si(e,(function(e){a[++i]=o?xn(t,e,r):Vi(e,t,r)})),a})),vc=da((function(e,t,n){mi(e,n,t)}));function yc(e,t){var n=uu(e)?An:ao;return n(e,$a(t,3))}function bc(e,t,n,r){return null==e?[]:(uu(t)||(t=null==t?[]:[t]),n=r?o:n,uu(n)||(n=null==n?[]:[n]),ho(e,t,n))}var _c=da((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function wc(e,t,n){var r=uu(e)?Pn:Hn,i=arguments.length<3;return r(e,$a(t,4),n,i,Si)}function xc(e,t,n){var r=uu(e)?Mn:Hn,i=arguments.length<3;return r(e,$a(t,4),n,i,Ci)}function Sc(e,t){var n=uu(e)?On:Ti;return n(e,Gc($a(t,3)))}function Cc(e){var t=uu(e)?ai:So;return t(e)}function Ec(e,t,n){t=(n?us(e,t,n):t===o)?1:Yu(t);var r=uu(e)?si:Co;return r(e,t)}function kc(e){var t=uu(e)?li:To;return t(e)}function Oc(e){if(null==e)return 0;if(fu(e))return qu(e)?vr(e):e.length;var t=es(e);return t==Q||t==oe?e.size:ro(e).length}function Tc(e,t,n){var r=uu(e)?Nn:Ao;return n&&us(e,t,n)&&(t=o),r(e,$a(t,3))}var Ic=xo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&us(e,t[0],t[1])?t=[]:n>2&&us(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Ii(t,1),[])})),Ac=Pt||function(){return ln.Date.now()};function Rc(e,t){if("function"!=typeof t)throw new at(c);return e=Yu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Pc(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Na(e,E,o,o,o,o,t)}function Mc(e,t){var n;if("function"!=typeof t)throw new at(c);return e=Yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Nc=xo((function(e,t,n){var r=y;if(n.length){var i=fr(n,Ha(Nc));r|=S}return Na(e,r,t,n,i)})),Lc=xo((function(e,t,n){var r=y|b;if(n.length){var i=fr(n,Ha(Lc));r|=S}return Na(t,r,e,n,i)}));function Dc(e,t,n){t=n?o:t;var r=Na(e,w,o,o,o,o,o,t);return r.placeholder=Dc.placeholder,r}function jc(e,t,n){t=n?o:t;var r=Na(e,x,o,o,o,o,o,t);return r.placeholder=jc.placeholder,r}function Fc(e,t,n){var r,i,a,s,l,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new at(c);function m(t){var n=r,a=i;return r=i=o,d=t,s=e.apply(a,n),s}function g(e){return d=e,l=Os(b,t),f?m(e):s}function v(e){var n=e-u,r=e-d,i=t-n;return h?Ut(i,a-r):i}function y(e){var n=e-u,r=e-d;return u===o||n>=t||n<0||h&&r>=a}function b(){var e=Ac();if(y(e))return _(e);l=Os(b,v(e))}function _(e){return l=o,p&&r?m(e):(r=i=o,s)}function w(){l!==o&&Ko(l),d=0,r=u=i=l=o}function x(){return l===o?s:_(Ac())}function S(){var e=Ac(),n=y(e);if(r=arguments,i=this,u=e,n){if(l===o)return g(u);if(h)return l=Os(b,t),m(u)}return l===o&&(l=Os(b,t)),s}return t=Qu(t)||0,ku(n)&&(f=!!n.leading,h="maxWait"in n,a=h?zt(Qu(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),S.cancel=w,S.flush=x,S}var Bc=xo((function(e,t){return wi(e,1,t)})),qc=xo((function(e,t,n){return wi(e,Qu(t)||0,n)}));function zc(e){return Na(e,O)}function Uc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(c);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Uc.Cache||Vr),n}function Gc(e){if("function"!=typeof e)throw new at(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vc(e){return Mc(2,e)}Uc.Cache=Vr;var Wc=Ho((function(e,t){t=1==t.length&&uu(t[0])?An(t[0],Jn($a())):An(Ii(t,1),Jn($a()));var n=t.length;return xo((function(r){var i=-1,o=Ut(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return xn(e,this,r)}))})),Hc=xo((function(e,t){var n=fr(t,Ha(Hc));return Na(e,S,o,t,n)})),$c=xo((function(e,t){var n=fr(t,Ha($c));return Na(e,C,o,t,n)})),Kc=za((function(e,t){return Na(e,k,o,o,o,t)}));function Xc(e,t){if("function"!=typeof e)throw new at(c);return t=t===o?t:Yu(t),xo(e,t)}function Yc(e,t){if("function"!=typeof e)throw new at(c);return t=null==t?0:zt(Yu(t),0),xo((function(n){var r=n[t],i=$o(n,0,t);return r&&Rn(i,r),xn(e,this,i)}))}function Jc(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(c);return ku(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Fc(e,t,{leading:r,maxWait:t,trailing:i})}function Qc(e){return Pc(e,1)}function Zc(e,t){return Hc(Vo(t),e)}function eu(){if(!arguments.length)return[];var e=arguments[0];return uu(e)?e:[e]}function tu(e){return yi(e,m)}function nu(e,t){return t="function"==typeof t?t:o,yi(e,m,t)}function ru(e){return yi(e,h|m)}function iu(e,t){return t="function"==typeof t?t:o,yi(e,h|m,t)}function ou(e,t){return null==t||_i(e,t,Cd(t))}function au(e,t){return e===t||e!==e&&t!==t}var su=Ia(Fi),lu=Ia((function(e,t){return e>=t})),cu=Wi(function(){return arguments}())?Wi:function(e){return Ou(e)&&ft.call(e,"callee")&&!Et.call(e,"callee")},uu=n.isArray,du=pn?Jn(pn):Hi;function fu(e){return null!=e&&Eu(e.length)&&!Su(e)}function hu(e){return Ou(e)&&fu(e)}function pu(e){return!0===e||!1===e||Ou(e)&&ji(e)==H}var mu=jt||Jf,gu=mn?Jn(mn):$i;function vu(e){return Ou(e)&&1===e.nodeType&&!Du(e)}function yu(e){if(null==e)return!0;if(fu(e)&&(uu(e)||"string"==typeof e||"function"==typeof e.splice||mu(e)||Uu(e)||cu(e)))return!e.length;var t=es(e);if(t==Q||t==oe)return!e.size;if(gs(e))return!ro(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function bu(e,t){return Ki(e,t)}function _u(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Ki(e,t,o,n):!!r}function wu(e){if(!Ou(e))return!1;var t=ji(e);return t==X||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Du(e)}function xu(e){return"number"==typeof e&&Ft(e)}function Su(e){if(!ku(e))return!1;var t=ji(e);return t==Y||t==J||t==W||t==re}function Cu(e){return"number"==typeof e&&e==Yu(e)}function Eu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function ku(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ou(e){return null!=e&&"object"==typeof e}var Tu=gn?Jn(gn):Yi;function Iu(e,t){return e===t||Ji(e,t,Xa(t))}function Au(e,t,n){return n="function"==typeof n?n:o,Ji(e,t,Xa(t),n)}function Ru(e){return Lu(e)&&e!=+e}function Pu(e){if(ms(e))throw new i(l);return Qi(e)}function Mu(e){return null===e}function Nu(e){return null==e}function Lu(e){return"number"==typeof e||Ou(e)&&ji(e)==Z}function Du(e){if(!Ou(e)||ji(e)!=te)return!1;var t=St(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==gt}var ju=vn?Jn(vn):Zi;function Fu(e){return Cu(e)&&e>=-D&&e<=D}var Bu=yn?Jn(yn):eo;function qu(e){return"string"==typeof e||!uu(e)&&Ou(e)&&ji(e)==ae}function zu(e){return"symbol"==typeof e||Ou(e)&&ji(e)==se}var Uu=bn?Jn(bn):to;function Gu(e){return e===o}function Vu(e){return Ou(e)&&es(e)==ce}function Wu(e){return Ou(e)&&ji(e)==ue}var Hu=Ia(oo),$u=Ia((function(e,t){return e<=t}));function Ku(e){if(!e)return[];if(fu(e))return qu(e)?yr(e):sa(e);if(Tt&&e[Tt])return cr(e[Tt]());var t=es(e),n=t==Q?ur:t==oe?hr:Gd;return n(e)}function Xu(e){if(!e)return 0===e?e:0;if(e=Qu(e),e===L||e===-L){var t=e<0?-1:1;return t*j}return e===e?e:0}function Yu(e){var t=Xu(e),n=t%1;return t===t?n?t-n:t:0}function Ju(e){return e?vi(Yu(e),0,B):0}function Qu(e){if("number"==typeof e)return e;if(zu(e))return F;if(ku(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ku(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Fe,"");var n=Xe.test(e);return n||Je.test(e)?on(e.slice(2),n?2:8):Ke.test(e)?F:+e}function Zu(e){return la(e,Ed(e))}function ed(e){return e?vi(Yu(e),-D,D):0===e?e:0}function td(e){return null==e?"":Lo(e)}var nd=fa((function(e,t){if(gs(t)||fu(t))la(t,Cd(t),e);else for(var n in t)ft.call(t,n)&&ui(e,n,t[n])})),rd=fa((function(e,t){la(t,Ed(t),e)})),id=fa((function(e,t,n,r){la(t,Ed(t),e,r)})),od=fa((function(e,t,n,r){la(t,Cd(t),e,r)})),ad=za(gi);function sd(e,t){var n=Er(e);return null==t?n:hi(n,t)}var ld=xo((function(e){return e.push(o,La),xn(id,o,e)})),cd=xo((function(e){return e.push(o,Da),xn(Id,o,e)}));function ud(e,t){return Fn(e,$a(t,3),Pi)}function dd(e,t){return Fn(e,$a(t,3),Mi)}function fd(e,t){return null==e?e:Ai(e,$a(t,3),Ed)}function hd(e,t){return null==e?e:Ri(e,$a(t,3),Ed)}function pd(e,t){return e&&Pi(e,$a(t,3))}function md(e,t){return e&&Mi(e,$a(t,3))}function gd(e){return null==e?[]:Ni(e,Cd(e))}function vd(e){return null==e?[]:Ni(e,Ed(e))}function yd(e,t,n){var r=null==e?o:Li(e,t);return r===o?n:r}function bd(e,t){return null!=e&&rs(e,t,Bi)}function _d(e,t){return null!=e&&rs(e,t,qi)}var wd=Sa((function(e,t,n){e[t]=n}),If(Mf)),xd=Sa((function(e,t,n){ft.call(e,t)?e[t].push(n):e[t]=[n]}),$a),Sd=xo(Vi);function Cd(e){return fu(e)?oi(e):ro(e)}function Ed(e){return fu(e)?oi(e,!0):io(e)}function kd(e,t){var n={};return t=$a(t,3),Pi(e,(function(e,r,i){mi(n,t(e,r,i),e)})),n}function Od(e,t){var n={};return t=$a(t,3),Pi(e,(function(e,r,i){mi(n,r,t(e,r,i))})),n}var Td=fa((function(e,t,n){co(e,t,n)})),Id=fa((function(e,t,n,r){co(e,t,n,r)})),Ad=za((function(e,t){var n={};if(null==e)return n;var r=!1;t=An(t,(function(t){return t=Wo(t,e),r||(r=t.length>1),t})),la(e,Ga(e),n),r&&(n=yi(n,h|p|m,ja));var i=t.length;while(i--)jo(n,t[i]);return n}));function Rd(e,t){return Md(e,Gc($a(t)))}var Pd=za((function(e,t){return null==e?{}:po(e,t)}));function Md(e,t){if(null==e)return{};var n=An(Ga(e),(function(e){return[e]}));return t=$a(t),mo(e,n,(function(e,n){return t(e,n[0])}))}function Nd(e,t,n){t=Wo(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var a=null==e?o:e[Ms(t[r])];a===o&&(r=i,a=n),e=Su(a)?a.call(e):a}return e}function Ld(e,t,n){return null==e?e:Eo(e,t,n)}function Dd(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Eo(e,t,n,r)}var jd=Ma(Cd),Fd=Ma(Ed);function Bd(e,t,n){var r=uu(e),i=r||mu(e)||Uu(e);if(t=$a(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ku(e)&&Su(o)?Er(St(e)):{}}return(i?Cn:Pi)(e,(function(e,r,i){return t(n,e,r,i)})),n}function qd(e,t){return null==e||jo(e,t)}function zd(e,t,n){return null==e?e:Fo(e,t,Vo(n))}function Ud(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Fo(e,t,Vo(n),r)}function Gd(e){return null==e?[]:Qn(e,Cd(e))}function Vd(e){return null==e?[]:Qn(e,Ed(e))}function Wd(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Qu(n),n=n===n?n:0),t!==o&&(t=Qu(t),t=t===t?t:0),vi(Qu(e),t,n)}function Hd(e,t,n){return t=Xu(t),n===o?(n=t,t=0):n=Xu(n),e=Qu(e),zi(e,t,n)}function $d(e,t,n){if(n&&"boolean"!=typeof n&&us(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Xu(e),t===o?(t=e,e=0):t=Xu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=$t();return Ut(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return bo(e,t)}var Kd=va((function(e,t,n){return t=t.toLowerCase(),e+(n?Xd(t):t)}));function Xd(e){return Sf(td(e).toLowerCase())}function Yd(e){return e=td(e),e&&e.replace(Ze,rr).replace(Vt,"")}function Jd(e,t,n){e=td(e),t=Lo(t);var r=e.length;n=n===o?r:vi(Yu(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Qd(e){return e=td(e),e&&Te.test(e)?e.replace(ke,ir):e}function Zd(e){return e=td(e),e&&je.test(e)?e.replace(De,"\\$&"):e}var ef=va((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),tf=va((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),nf=ga("toLowerCase");function rf(e,t,n){e=td(e),t=Yu(t);var r=t?vr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ka(Lt(i),n)+e+ka(Nt(i),n)}function of(e,t,n){e=td(e),t=Yu(t);var r=t?vr(e):0;return t&&r<t?e+ka(t-r,n):e}function af(e,t,n){e=td(e),t=Yu(t);var r=t?vr(e):0;return t&&r<t?ka(t-r,n)+e:e}function sf(e,t,n){return n||null==t?t=0:t&&(t=+t),Ht(td(e).replace(Be,""),t||0)}function lf(e,t,n){return t=(n?us(e,t,n):t===o)?1:Yu(t),wo(td(e),t)}function cf(){var e=arguments,t=td(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var uf=va((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function df(e,t,n){return n&&"number"!=typeof n&&us(e,t,n)&&(t=n=o),n=n===o?B:n>>>0,n?(e=td(e),e&&("string"==typeof t||null!=t&&!ju(t))&&(t=Lo(t),!t&&sr(e))?$o(yr(e),0,n):e.split(t,n)):[]}var ff=va((function(e,t,n){return e+(n?" ":"")+Sf(t)}));function hf(e,t,n){return e=td(e),n=null==n?0:vi(Yu(n),0,e.length),t=Lo(t),e.slice(n,n+t.length)==t}function pf(e,t,n){var r=Sr.templateSettings;n&&us(e,t,n)&&(t=o),e=td(e),t=id({},t,r,La);var i,a,s=id({},t.imports,r.imports,La),l=Cd(s),c=Qn(s,l),u=0,d=t.interpolate||et,f="__p += '",h=it((t.escape||et).source+"|"+d.source+"|"+(d===Re?He:et).source+"|"+(t.evaluate||et).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Yt+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),f+=e.slice(u,l).replace(tt,or),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var m=t.variable;m||(f="with (obj) {\n"+f+"\n}\n"),f=(a?f.replace(xe,""):f).replace(Se,"$1").replace(Ce,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Ef((function(){return Ve(l,p+"return "+f).apply(o,c)}));if(g.source=f,wu(g))throw g;return g}function mf(e){return td(e).toLowerCase()}function gf(e){return td(e).toUpperCase()}function vf(e,t,n){if(e=td(e),e&&(n||t===o))return e.replace(Fe,"");if(!e||!(t=Lo(t)))return e;var r=yr(e),i=yr(t),a=er(r,i),s=tr(r,i)+1;return $o(r,a,s).join("")}function yf(e,t,n){if(e=td(e),e&&(n||t===o))return e.replace(qe,"");if(!e||!(t=Lo(t)))return e;var r=yr(e),i=tr(r,yr(t))+1;return $o(r,0,i).join("")}function bf(e,t,n){if(e=td(e),e&&(n||t===o))return e.replace(Be,"");if(!e||!(t=Lo(t)))return e;var r=yr(e),i=er(r,yr(t));return $o(r,i).join("")}function _f(e,t){var n=T,r=I;if(ku(t)){var i="separator"in t?t.separator:i;n="length"in t?Yu(t.length):n,r="omission"in t?Lo(t.omission):r}e=td(e);var a=e.length;if(sr(e)){var s=yr(e);a=s.length}if(n>=a)return e;var l=n-vr(r);if(l<1)return r;var c=s?$o(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),ju(i)){if(e.slice(l).search(i)){var u,d=c;i.global||(i=it(i.source,td($e.exec(i))+"g")),i.lastIndex=0;while(u=i.exec(d))var f=u.index;c=c.slice(0,f===o?l:f)}}else if(e.indexOf(Lo(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r}function wf(e){return e=td(e),e&&Oe.test(e)?e.replace(Ee,br):e}var xf=va((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Sf=ga("toUpperCase");function Cf(e,t,n){return e=td(e),t=n?o:t,t===o?lr(e)?xr(e):jn(e):e.match(t)||[]}var Ef=xo((function(e,t){try{return xn(e,o,t)}catch(n){return wu(n)?n:new i(n)}})),kf=za((function(e,t){return Cn(t,(function(t){t=Ms(t),mi(e,t,Nc(e[t],e))})),e}));function Of(e){var t=null==e?0:e.length,n=$a();return e=t?An(e,(function(e){if("function"!=typeof e[1])throw new at(c);return[n(e[0]),e[1]]})):[],xo((function(n){var r=-1;while(++r<t){var i=e[r];if(xn(i[0],this,n))return xn(i[1],this,n)}}))}function Tf(e){return bi(yi(e,h))}function If(e){return function(){return e}}function Af(e,t){return null==e||e!==e?t:e}var Rf=wa(),Pf=wa(!0);function Mf(e){return e}function Nf(e){return no("function"==typeof e?e:yi(e,h))}function Lf(e){return so(yi(e,h))}function Df(e,t){return lo(e,yi(t,h))}var jf=xo((function(e,t){return function(n){return Vi(n,e,t)}})),Ff=xo((function(e,t){return function(n){return Vi(e,n,t)}}));function Bf(e,t,n){var r=Cd(t),i=Ni(t,r);null!=n||ku(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ni(t,Cd(t)));var o=!(ku(n)&&"chain"in n)||!!n.chain,a=Su(e);return Cn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=sa(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rn([this.value()],arguments))})})),e}function qf(){return ln._===this&&(ln._=vt),this}function zf(){}function Uf(e){return e=Yu(e),xo((function(t){return fo(t,e)}))}var Gf=Ea(An),Vf=Ea(kn),Wf=Ea(Nn);function Hf(e){return ds(e)?Vn(Ms(e)):go(e)}function $f(e){return function(t){return null==e?o:Li(e,t)}}var Kf=Ta(),Xf=Ta(!0);function Yf(){return[]}function Jf(){return!1}function Qf(){return{}}function Zf(){return""}function eh(){return!0}function th(e,t){if(e=Yu(e),e<1||e>D)return[];var n=B,r=Ut(e,B);t=$a(t),e-=B;var i=Xn(r,t);while(++n<e)t(n);return i}function nh(e){return uu(e)?An(e,Ms):zu(e)?[e]:sa(Ps(td(e)))}function rh(e){var t=++ht;return td(e)+t}var ih=Ca((function(e,t){return e+t}),0),oh=Ra("ceil"),ah=Ca((function(e,t){return e/t}),1),sh=Ra("floor");function lh(e){return e&&e.length?ki(e,Mf,Fi):o}function ch(e,t){return e&&e.length?ki(e,$a(t,2),Fi):o}function uh(e){return Gn(e,Mf)}function dh(e,t){return Gn(e,$a(t,2))}function fh(e){return e&&e.length?ki(e,Mf,oo):o}function hh(e,t){return e&&e.length?ki(e,$a(t,2),oo):o}var ph=Ca((function(e,t){return e*t}),1),mh=Ra("round"),gh=Ca((function(e,t){return e-t}),0);function vh(e){return e&&e.length?Kn(e,Mf):0}function yh(e,t){return e&&e.length?Kn(e,$a(t,2)):0}return Sr.after=Rc,Sr.ary=Pc,Sr.assign=nd,Sr.assignIn=rd,Sr.assignInWith=id,Sr.assignWith=od,Sr.at=ad,Sr.before=Mc,Sr.bind=Nc,Sr.bindAll=kf,Sr.bindKey=Lc,Sr.castArray=eu,Sr.chain=$l,Sr.chunk=js,Sr.compact=Fs,Sr.concat=Bs,Sr.cond=Of,Sr.conforms=Tf,Sr.constant=If,Sr.countBy=ic,Sr.create=sd,Sr.curry=Dc,Sr.curryRight=jc,Sr.debounce=Fc,Sr.defaults=ld,Sr.defaultsDeep=cd,Sr.defer=Bc,Sr.delay=qc,Sr.difference=qs,Sr.differenceBy=zs,Sr.differenceWith=Us,Sr.drop=Gs,Sr.dropRight=Vs,Sr.dropRightWhile=Ws,Sr.dropWhile=Hs,Sr.fill=$s,Sr.filter=ac,Sr.flatMap=cc,Sr.flatMapDeep=uc,Sr.flatMapDepth=dc,Sr.flatten=Ys,Sr.flattenDeep=Js,Sr.flattenDepth=Qs,Sr.flip=zc,Sr.flow=Rf,Sr.flowRight=Pf,Sr.fromPairs=Zs,Sr.functions=gd,Sr.functionsIn=vd,Sr.groupBy=pc,Sr.initial=nl,Sr.intersection=rl,Sr.intersectionBy=il,Sr.intersectionWith=ol,Sr.invert=wd,Sr.invertBy=xd,Sr.invokeMap=gc,Sr.iteratee=Nf,Sr.keyBy=vc,Sr.keys=Cd,Sr.keysIn=Ed,Sr.map=yc,Sr.mapKeys=kd,Sr.mapValues=Od,Sr.matches=Lf,Sr.matchesProperty=Df,Sr.memoize=Uc,Sr.merge=Td,Sr.mergeWith=Id,Sr.method=jf,Sr.methodOf=Ff,Sr.mixin=Bf,Sr.negate=Gc,Sr.nthArg=Uf,Sr.omit=Ad,Sr.omitBy=Rd,Sr.once=Vc,Sr.orderBy=bc,Sr.over=Gf,Sr.overArgs=Wc,Sr.overEvery=Vf,Sr.overSome=Wf,Sr.partial=Hc,Sr.partialRight=$c,Sr.partition=_c,Sr.pick=Pd,Sr.pickBy=Md,Sr.property=Hf,Sr.propertyOf=$f,Sr.pull=ul,Sr.pullAll=dl,Sr.pullAllBy=fl,Sr.pullAllWith=hl,Sr.pullAt=pl,Sr.range=Kf,Sr.rangeRight=Xf,Sr.rearg=Kc,Sr.reject=Sc,Sr.remove=ml,Sr.rest=Xc,Sr.reverse=gl,Sr.sampleSize=Ec,Sr.set=Ld,Sr.setWith=Dd,Sr.shuffle=kc,Sr.slice=vl,Sr.sortBy=Ic,Sr.sortedUniq=Cl,Sr.sortedUniqBy=El,Sr.split=df,Sr.spread=Yc,Sr.tail=kl,Sr.take=Ol,Sr.takeRight=Tl,Sr.takeRightWhile=Il,Sr.takeWhile=Al,Sr.tap=Kl,Sr.throttle=Jc,Sr.thru=Xl,Sr.toArray=Ku,Sr.toPairs=jd,Sr.toPairsIn=Fd,Sr.toPath=nh,Sr.toPlainObject=Zu,Sr.transform=Bd,Sr.unary=Qc,Sr.union=Rl,Sr.unionBy=Pl,Sr.unionWith=Ml,Sr.uniq=Nl,Sr.uniqBy=Ll,Sr.uniqWith=Dl,Sr.unset=qd,Sr.unzip=jl,Sr.unzipWith=Fl,Sr.update=zd,Sr.updateWith=Ud,Sr.values=Gd,Sr.valuesIn=Vd,Sr.without=Bl,Sr.words=Cf,Sr.wrap=Zc,Sr.xor=ql,Sr.xorBy=zl,Sr.xorWith=Ul,Sr.zip=Gl,Sr.zipObject=Vl,Sr.zipObjectDeep=Wl,Sr.zipWith=Hl,Sr.entries=jd,Sr.entriesIn=Fd,Sr.extend=rd,Sr.extendWith=id,Bf(Sr,Sr),Sr.add=ih,Sr.attempt=Ef,Sr.camelCase=Kd,Sr.capitalize=Xd,Sr.ceil=oh,Sr.clamp=Wd,Sr.clone=tu,Sr.cloneDeep=ru,Sr.cloneDeepWith=iu,Sr.cloneWith=nu,Sr.conformsTo=ou,Sr.deburr=Yd,Sr.defaultTo=Af,Sr.divide=ah,Sr.endsWith=Jd,Sr.eq=au,Sr.escape=Qd,Sr.escapeRegExp=Zd,Sr.every=oc,Sr.find=sc,Sr.findIndex=Ks,Sr.findKey=ud,Sr.findLast=lc,Sr.findLastIndex=Xs,Sr.findLastKey=dd,Sr.floor=sh,Sr.forEach=fc,Sr.forEachRight=hc,Sr.forIn=fd,Sr.forInRight=hd,Sr.forOwn=pd,Sr.forOwnRight=md,Sr.get=yd,Sr.gt=su,Sr.gte=lu,Sr.has=bd,Sr.hasIn=_d,Sr.head=el,Sr.identity=Mf,Sr.includes=mc,Sr.indexOf=tl,Sr.inRange=Hd,Sr.invoke=Sd,Sr.isArguments=cu,Sr.isArray=uu,Sr.isArrayBuffer=du,Sr.isArrayLike=fu,Sr.isArrayLikeObject=hu,Sr.isBoolean=pu,Sr.isBuffer=mu,Sr.isDate=gu,Sr.isElement=vu,Sr.isEmpty=yu,Sr.isEqual=bu,Sr.isEqualWith=_u,Sr.isError=wu,Sr.isFinite=xu,Sr.isFunction=Su,Sr.isInteger=Cu,Sr.isLength=Eu,Sr.isMap=Tu,Sr.isMatch=Iu,Sr.isMatchWith=Au,Sr.isNaN=Ru,Sr.isNative=Pu,Sr.isNil=Nu,Sr.isNull=Mu,Sr.isNumber=Lu,Sr.isObject=ku,Sr.isObjectLike=Ou,Sr.isPlainObject=Du,Sr.isRegExp=ju,Sr.isSafeInteger=Fu,Sr.isSet=Bu,Sr.isString=qu,Sr.isSymbol=zu,Sr.isTypedArray=Uu,Sr.isUndefined=Gu,Sr.isWeakMap=Vu,Sr.isWeakSet=Wu,Sr.join=al,Sr.kebabCase=ef,Sr.last=sl,Sr.lastIndexOf=ll,Sr.lowerCase=tf,Sr.lowerFirst=nf,Sr.lt=Hu,Sr.lte=$u,Sr.max=lh,Sr.maxBy=ch,Sr.mean=uh,Sr.meanBy=dh,Sr.min=fh,Sr.minBy=hh,Sr.stubArray=Yf,Sr.stubFalse=Jf,Sr.stubObject=Qf,Sr.stubString=Zf,Sr.stubTrue=eh,Sr.multiply=ph,Sr.nth=cl,Sr.noConflict=qf,Sr.noop=zf,Sr.now=Ac,Sr.pad=rf,Sr.padEnd=of,Sr.padStart=af,Sr.parseInt=sf,Sr.random=$d,Sr.reduce=wc,Sr.reduceRight=xc,Sr.repeat=lf,Sr.replace=cf,Sr.result=Nd,Sr.round=mh,Sr.runInContext=e,Sr.sample=Cc,Sr.size=Oc,Sr.snakeCase=uf,Sr.some=Tc,Sr.sortedIndex=yl,Sr.sortedIndexBy=bl,Sr.sortedIndexOf=_l,Sr.sortedLastIndex=wl,Sr.sortedLastIndexBy=xl,Sr.sortedLastIndexOf=Sl,Sr.startCase=ff,Sr.startsWith=hf,Sr.subtract=gh,Sr.sum=vh,Sr.sumBy=yh,Sr.template=pf,Sr.times=th,Sr.toFinite=Xu,Sr.toInteger=Yu,Sr.toLength=Ju,Sr.toLower=mf,Sr.toNumber=Qu,Sr.toSafeInteger=ed,Sr.toString=td,Sr.toUpper=gf,Sr.trim=vf,Sr.trimEnd=yf,Sr.trimStart=bf,Sr.truncate=_f,Sr.unescape=wf,Sr.uniqueId=rh,Sr.upperCase=xf,Sr.upperFirst=Sf,Sr.each=fc,Sr.eachRight=hc,Sr.first=el,Bf(Sr,function(){var e={};return Pi(Sr,(function(t,n){ft.call(Sr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Sr.VERSION=a,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Sr[e].placeholder=Sr})),Cn(["drop","take"],(function(e,t){Tr.prototype[e]=function(n){n=n===o?1:zt(Yu(n),0);var r=this.__filtered__&&!t?new Tr(this):this.clone();return r.__filtered__?r.__takeCount__=Ut(n,r.__takeCount__):r.__views__.push({size:Ut(n,B),type:e+(r.__dir__<0?"Right":"")}),r},Tr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Cn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==P||n==N;Tr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:$a(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Cn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Tr.prototype[e]=function(){return this[n](1).value()[0]}})),Cn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Tr.prototype[e]=function(){return this.__filtered__?new Tr(this):this[n](1)}})),Tr.prototype.compact=function(){return this.filter(Mf)},Tr.prototype.find=function(e){return this.filter(e).head()},Tr.prototype.findLast=function(e){return this.reverse().find(e)},Tr.prototype.invokeMap=xo((function(e,t){return"function"==typeof e?new Tr(this):this.map((function(n){return Vi(n,e,t)}))})),Tr.prototype.reject=function(e){return this.filter(Gc($a(e)))},Tr.prototype.slice=function(e,t){e=Yu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Tr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Yu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Tr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Tr.prototype.toArray=function(){return this.take(B)},Pi(Tr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Sr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Sr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Tr,c=s[0],u=l||uu(t),d=function(e){var t=i.apply(Sr,Rn([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=l&&!h;if(!a&&u){t=m?t:new Tr(this);var g=e.apply(t,s);return g.__actions__.push({func:Xl,args:[d],thisArg:o}),new Or(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),Cn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Sr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(uu(i)?i:[],e)}return this[n]((function(n){return t.apply(uu(n)?n:[],e)}))}})),Pi(Tr.prototype,(function(e,t){var n=Sr[t];if(n){var r=n.name+"",i=un[r]||(un[r]=[]);i.push({name:t,func:n})}})),un[xa(o,b).name]=[{name:"wrapper",func:o}],Tr.prototype.clone=Ir,Tr.prototype.reverse=Ar,Tr.prototype.value=Rr,Sr.prototype.at=Yl,Sr.prototype.chain=Jl,Sr.prototype.commit=Ql,Sr.prototype.next=Zl,Sr.prototype.plant=tc,Sr.prototype.reverse=nc,Sr.prototype.toJSON=Sr.prototype.valueOf=Sr.prototype.value=rc,Sr.prototype.first=Sr.prototype.head,Tt&&(Sr.prototype[Tt]=ec),Sr},Cr=Sr();ln._=Cr,i=function(){return Cr}.call(t,n,t,r),i===o||(r.exports=i)}).call(this)}).call(t,n(435),n(436)(e))},function(e,t,n){var r=n(13),i=n(171);e.exports=a;var o=r.constant(1);function a(e,t,n,r){return s(e,String(t),n||o,r||function(t){return e.outEdges(t)})}function s(e,t,n,r){var o,a,s={},l=new i,c=function(e){var t=e.v!==o?e.v:e.w,r=s[t],i=n(e),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=o,l.decrease(t,c))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},l.add(e,n)}));while(l.size()>0){if(o=l.removeMin(),a=s[o],a.distance===Number.POSITIVE_INFINITY)break;r(o).forEach(c)}return s}},function(e,t,n){var r=n(13);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){var t,n=this._arr,r=n[e].priority;while(0!==e){if(t=e>>1,n[t].priority<r)break;this._swap(e,t),e=t}},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},function(e,t,n){var r=n(13);function i(e){var t=0,n=[],i={},o=[];function a(s){var l=i[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(a(e),l.lowlink=Math.min(l.lowlink,i[e].lowlink))})),l.lowlink===l.index){var c,u=[];do{c=n.pop(),i[c].onStack=!1,u.push(c)}while(s!==c);o.push(u)}}return e.nodes().forEach((function(e){r.has(i,e)||a(e)})),o}e.exports=i},function(e,t,n){var r=n(13);function i(e){var t={},n={},i=[];function a(s){if(r.has(n,s))throw new o;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],i.push(s))}if(r.each(e.sinks(),a),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o},function(e,t,n){var r=n(13);function i(e,t,n){r.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],s={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);o(e,t,"post"===n,s,i,a)})),a}function o(e,t,n,i,a,s){r.has(i,t)||(i[t]=!0,n||s.push(t),r.each(a(t),(function(t){o(e,t,n,i,a,s)})),n&&s.push(t))}e.exports=i},function(e,t,n){"use strict";var r=n(8),i=n(16).Graph,o=n(59).slack;function a(e){var t,n,r=new i({directed:!1}),a=e.nodes()[0],u=e.nodeCount();r.setNode(a,{});while(s(r,e)<u)t=l(r,e),n=r.hasNode(t.v)?o(e,t):-o(e,t),c(r,e,n);return r}function s(e,t){function n(i){r.forEach(t.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;e.hasNode(s)||o(t,r)||(e.setNode(s,{}),e.setEdge(i,s,{}),n(s))}))}return r.forEach(e.nodes(),n),e.nodeCount()}function l(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function c(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=a},function(e,t,n){"use strict";t["c"]=o,t["d"]=a,t["b"]=s,t["a"]=l;var r=n(14);function i(e){return e.target.depth}function o(e){return e.depth}function a(e,t){return t-1-e.height}function s(e,t){return e.sourceLinks.length?e.depth:t-1}function l(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?Object(r["min"])(e.sourceLinks,i)-1:0}},function(e,t,n){"use strict";var r=n(33),i=n(27),o=n(60),a=n(95),s=n(96);t["a"]=function(){var e=s["a"],t=null,n=Object(i["a"])(0),l=s["b"],c=Object(i["a"])(!0),u=null,d=o["a"],f=null;function h(i){var o,a,s,h,p,m=i.length,g=!1,v=new Array(m),y=new Array(m);for(null==u&&(f=d(p=Object(r["path"])())),o=0;o<=m;++o){if(!(o<m&&c(h=i[o],o,i))===g)if(g=!g)a=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),s=o-1;s>=a;--s)f.point(v[s],y[s]);f.lineEnd(),f.areaEnd()}g&&(v[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):v[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return Object(a["a"])().defined(c).curve(d).context(u)}return h.x=function(n){return arguments.length?(e="function"===typeof n?n:Object(i["a"])(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"===typeof t?t:Object(i["a"])(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Object(i["a"])(+e),h):t},h.y=function(e){return arguments.length?(n="function"===typeof e?e:Object(i["a"])(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"===typeof e?e:Object(i["a"])(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"===typeof e?e:Object(i["a"])(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(c="function"===typeof e?e:Object(i["a"])(!!e),h):c},h.curve=function(e){return arguments.length?(d=e,null!=u&&(f=d(u)),h):d},h.context=function(e){return arguments.length?(null==e?u=f=null:f=d(u=e),h):u},h}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),t["b"]=a;var r=n(60),i=a(r["a"]);function o(e){this._curve=e}function a(e){function t(t){return new o(e(t))}return t._curve=e,t}o.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},function(e,t,n){"use strict";t["a"]=i;var r=n(178);n(95);function i(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Object(r["b"])(e)):t()._curve},e}},function(e,t,n){"use strict";t["a"]=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Array.prototype.slice},function(e,t,n){"use strict";var r=n(46);t["a"]={draw:function(e,t){var n=Math.sqrt(t/r["j"]);e.moveTo(n,0),e.arc(0,0,n,0,r["m"])}}},function(e,t,n){"use strict";t["a"]={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}}},function(e,t,n){"use strict";var r=Math.sqrt(1/3),i=2*r;t["a"]={draw:function(e,t){var n=Math.sqrt(t/i),o=n*r;e.moveTo(0,-n),e.lineTo(o,0),e.lineTo(0,n),e.lineTo(-o,0),e.closePath()}}},function(e,t,n){"use strict";var r=n(46),i=.8908130915292852,o=Math.sin(r["j"]/10)/Math.sin(7*r["j"]/10),a=Math.sin(r["m"]/10)*o,s=-Math.cos(r["m"]/10)*o;t["a"]={draw:function(e,t){var n=Math.sqrt(t*i),o=a*n,l=s*n;e.moveTo(0,-n),e.lineTo(o,l);for(var c=1;c<5;++c){var u=r["m"]*c/5,d=Math.cos(u),f=Math.sin(u);e.lineTo(f*n,-d*n),e.lineTo(d*o-f*l,f*o+d*l)}e.closePath()}}},function(e,t,n){"use strict";t["a"]={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}}},function(e,t,n){"use strict";var r=Math.sqrt(3);t["a"]={draw:function(e,t){var n=-Math.sqrt(t/(3*r));e.moveTo(0,2*n),e.lineTo(-r*n,-n),e.lineTo(r*n,-n),e.closePath()}}},function(e,t,n){"use strict";var r=-.5,i=Math.sqrt(3)/2,o=1/Math.sqrt(12),a=3*(o/2+1);t["a"]={draw:function(e,t){var n=Math.sqrt(t/a),s=n/2,l=n*o,c=s,u=n*o+n,d=-c,f=u;e.moveTo(s,l),e.lineTo(c,u),e.lineTo(d,f),e.lineTo(r*s-i*l,i*s+r*l),e.lineTo(r*c-i*u,i*c+r*u),e.lineTo(r*d-i*f,i*d+r*f),e.lineTo(r*s+i*l,r*l-i*s),e.lineTo(r*c+i*u,r*u-i*c),e.lineTo(r*d+i*f,r*f-i*d),e.closePath()}}},function(e,t,n){"use strict";t["a"]=o;var r=n(61),i=n(63);function o(e,t){this._context=e,this._k=(1-t)/6}o.prototype={areaStart:r["a"],areaEnd:r["a"],lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Object(i["b"])(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new o(e,t)}return n.tension=function(t){return e(+t)},n})(0)},function(e,t,n){"use strict";t["a"]=i;var r=n(63);function i(e,t){this._context=e,this._k=(1-t)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(r["b"])(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n})(0)},function(e,t,n){"use strict";t["c"]=o,t["a"]=s,t["d"]=c,t["b"]=u;var r=n(100),i=n(49);function o(e){return i["b"][e.index]={site:e,halfedges:[]}}function a(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function s(e,t){return t[+(t.left!==e.site)]}function l(e,t){return t[+(t.left===e.site)]}function c(){for(var e,t,n,r,o=0,s=i["b"].length;o<s;++o)if((e=i["b"][o])&&(r=(t=e.halfedges).length)){var l=new Array(r),c=new Array(r);for(n=0;n<r;++n)l[n]=n,c[n]=a(e,i["e"][t[n]]);for(l.sort((function(e,t){return c[t]-c[e]})),n=0;n<r;++n)c[n]=t[l[n]];for(n=0;n<r;++n)t[n]=c[n]}}function u(e,t,n,o){var a,c,u,d,f,h,p,m,g,v,y,b,_=i["b"].length,w=!0;for(a=0;a<_;++a)if(c=i["b"][a]){u=c.site,f=c.halfedges,d=f.length;while(d--)i["e"][f[d]]||f.splice(d,1);d=0,h=f.length;while(d<h)v=l(c,i["e"][f[d]]),y=v[0],b=v[1],p=s(c,i["e"][f[++d%h]]),m=p[0],g=p[1],(Math.abs(y-m)>i["f"]||Math.abs(b-g)>i["f"])&&(f.splice(d,0,i["e"].push(Object(r["b"])(u,v,Math.abs(y-e)<i["f"]&&o-b>i["f"]?[e,Math.abs(m-e)<i["f"]?g:o]:Math.abs(b-o)<i["f"]&&n-y>i["f"]?[Math.abs(g-o)<i["f"]?m:n,o]:Math.abs(y-n)<i["f"]&&b-t>i["f"]?[n,Math.abs(m-n)<i["f"]?g:t]:Math.abs(b-t)<i["f"]&&y-e>i["f"]?[Math.abs(g-t)<i["f"]?m:e,t]:null))-1),++h);h&&(w=!1)}if(w){var x,S,C,E=1/0;for(a=0,w=null;a<_;++a)(c=i["b"][a])&&(u=c.site,x=u[0]-e,S=u[1]-t,C=x*x+S*S,C<E&&(E=C,w=c));if(w){var k=[e,t],O=[e,o],T=[n,o],I=[n,t];w.halfedges.push(i["e"].push(Object(r["b"])(u=w.site,k,O))-1,i["e"].push(Object(r["b"])(u,O,T))-1,i["e"].push(Object(r["b"])(u,T,I))-1,i["e"].push(Object(r["b"])(u,I,k))-1)}}for(a=0;a<_;++a)(c=i["b"][a])&&(c.halfedges.length||delete i["b"][a])}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),t["a"]=l,t["b"]=c;var r,i=n(99),o=n(49),a=[];function s(){Object(i["a"])(this),this.x=this.y=this.arc=this.site=this.cy=null}function l(e){var t=e.P,n=e.N;if(t&&n){var i=t.site,l=e.site,c=n.site;if(i!==c){var u=l[0],d=l[1],f=i[0]-u,h=i[1]-d,p=c[0]-u,m=c[1]-d,g=2*(f*m-h*p);if(!(g>=-o["g"])){var v=f*f+h*h,y=p*p+m*m,b=(m*v-h*y)/g,_=(f*y-p*v)/g,w=a.pop()||new s;w.arc=e,w.site=l,w.x=b+u,w.y=(w.cy=_+d)+Math.sqrt(b*b+_*_),e.circle=w;var x=null,S=o["c"]._;while(S)if(w.y<S.y||w.y===S.y&&w.x<=S.x){if(!S.L){x=S.P;break}S=S.L}else{if(!S.R){x=S;break}S=S.R}o["c"].insert(x,w),x||(r=w)}}}}function c(e){var t=e.circle;t&&(t.P||(r=t.N),o["c"].remove(t),a.push(t),Object(i["a"])(t),e.circle=null)}},function(e,t,n){var r=n(28),i=18,o=2*i,a=i,s={getId:function(e){return e.id||e.name},getHGap:function(e){return e.hgap||a},getVGap:function(e){return e.vgap||a},getChildren:function(e){return e.children},getHeight:function(e){return e.height||o},getWidth:function(e){var t=e.name||" ";return e.width||t.split("").length*i}};function l(e,t){var n=this;if(n.vgap=n.hgap=0,e instanceof l)return e;n.data=e;var r=t.getHGap(e),i=t.getVGap(e);return n.width=t.getWidth(e),n.height=t.getHeight(e),n.id=t.getId(e),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}function c(e,t,n){void 0===t&&(t={}),t=r.assign({},s,t);var i,o=new l(e,t),a=[o];if(!n&&!e.collapsed)while(i=a.pop())if(!i.data.collapsed){var c=t.getChildren(i.data),u=c?c.length:0;if(i.children=new Array(u),c&&u)for(var d=0;d<u;d++){var f=new l(c[d],t);i.children[d]=f,a.push(f),f.parent=i,f.depth=i.depth+1}}return o}r.assign(l.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(e,t){var n=this;n.hgap+=e,n.vgap+=t,n.width+=2*e,n.height+=2*t},eachNode:function(e){var t,n=this,r=[n];while(t=r.pop())e(t),r=r.concat(t.children)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){var t,n=this,r=[n];while(t=r.shift())e(t),r=r.concat(t.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.width=Math.max(e.width,t.x+t.width),e.height=Math.max(e.height,t.y+t.height)})),e},translate:function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.eachNode((function(n){n.x+=e,n.y+=t}))},right2left:function(){var e=this,t=e.getBoundingBox();e.eachNode((function(e){e.x=e.x-2*(e.x-t.left)-e.width})),e.translate(t.width,0)},bottom2top:function(){var e=this,t=e.getBoundingBox();e.eachNode((function(e){e.y=e.y-2*(e.y-t.top)-e.height})),e.translate(0,t.height)}}),e.exports=c},function(e,t,n){var r=n(193);e.exports=function(e,t){for(var n=r(e.data,t,!0),i=r(e.data,t,!0),o=e.children.length,a=Math.round(o/2),s=t.getSide||function(e,t){return t<a?"right":"left"},l=0;l<o;l++){var c=e.children[l],u=s(c,l);"right"===u?i.children.push(c):n.children.push(c)}return n.eachNode((function(e){e.isRoot()||(e.side="left")})),i.eachNode((function(e){e.isRoot()||(e.side="right")})),{left:n,right:i}}},function(e,t,n){n(196),n(350),n(351),n(354),n(355),n(357),n(361),n(158),n(365),n(366),n(368),n(390),n(398),n(399),n(400),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(413),n(414),n(415),n(418),n(420),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(472),n(508),n(514),n(515),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(532),n(534),n(535),e.exports=n(2)},function(e,t,n){var r=n(3),i=n(0),o=i.geoArea,a=i.geoCentroid,s=i.geoContains,l=i.geoDistance,c=i.geoLength,u=n(128),d=u.geoProject,f=n(39),h=n(141);r(f.prototype,{geoArea:function(e){return o(e)},geoAreaByName:function(e){return o(this.geoFeatureByName(e))},geoCentroid:function(e){return a(e)},geoCentroidByName:function(e){return a(this.geoFeatureByName(e))},geoDistance:function(e,t){return l(e,t)},geoLength:function(e){return c(e)},geoLengthByName:function(e){return c(this.geoFeatureByName(e))},geoContains:function(e,t){return s(e,t)},geoFeatureByName:function(e){var t,n=this.rows;return n.some((function(n){return n.name===e&&(t=n,!0)})),t},geoFeatureByPosition:function(e){var t,n=this.rows;return n.some((function(n){return!!s(n,e)&&(t=n,!0)})),t},geoNameByPosition:function(e){var t=this.geoFeatureByPosition(e);if(t)return t.name},getGeoProjection:h,geoProject:function(e,t,n){return t=h(t,n),d(e,t)},geoProjectByName:function(e,t,n){return t=h(t,n),d(this.geoFeatureByName(e),t)},geoProjectPosition:function(e,t,n){return t=h(t,n),t(e)},geoProjectInvert:function(e,t,n){return t=h(t,n),t.invert(e)}})},function(e,t,n){"use strict";var r,i,o,a,s,l,c,u,d,f,h=n(29),p=n(103),m=n(35),g=n(4),v=n(22),y=Object(h["a"])(),b={point:_,lineStart:x,lineEnd:S,polygonStart:function(){b.point=C,b.lineStart=E,b.lineEnd=k,y.reset(),p["b"].polygonStart()},polygonEnd:function(){p["b"].polygonEnd(),b.point=_,b.lineStart=x,b.lineEnd=S,p["a"]<0?(r=-(o=180),i=-(a=90)):y>g["i"]?a=90:y<-g["i"]&&(i=-90),f[0]=r,f[1]=o}};function _(e,t){d.push(f=[r=e,o=e]),t<i&&(i=t),t>a&&(a=t)}function w(e,t){var n=Object(m["a"])([e*g["r"],t*g["r"]]);if(u){var l=Object(m["c"])(u,n),c=[l[1],-l[0],0],h=Object(m["c"])(c,l);Object(m["e"])(h),h=Object(m["g"])(h);var p,v=e-s,y=v>0?1:-1,b=h[0]*g["h"]*y,_=Object(g["a"])(v)>180;_^(y*s<b&&b<y*e)?(p=h[1]*g["h"],p>a&&(a=p)):(b=(b+360)%360-180,_^(y*s<b&&b<y*e)?(p=-h[1]*g["h"],p<i&&(i=p)):(t<i&&(i=t),t>a&&(a=t))),_?e<s?O(r,e)>O(r,o)&&(o=e):O(e,o)>O(r,o)&&(r=e):o>=r?(e<r&&(r=e),e>o&&(o=e)):e>s?O(r,e)>O(r,o)&&(o=e):O(e,o)>O(r,o)&&(r=e)}else d.push(f=[r=e,o=e]);t<i&&(i=t),t>a&&(a=t),u=n,s=e}function x(){b.point=w}function S(){f[0]=r,f[1]=o,b.point=_,u=null}function C(e,t){if(u){var n=e-s;y.add(Object(g["a"])(n)>180?n+(n>0?360:-360):n)}else l=e,c=t;p["b"].point(e,t),w(e,t)}function E(){p["b"].lineStart()}function k(){C(l,c),p["b"].lineEnd(),Object(g["a"])(y)>g["i"]&&(r=-(o=180)),f[0]=r,f[1]=o,u=null}function O(e,t){return(t-=e)<0?t+360:t}function T(e,t){return e[0]-t[0]}function I(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}t["a"]=function(e){var t,n,s,l,c,u,h;if(a=o=-(r=i=1/0),d=[],Object(v["a"])(e,b),n=d.length){for(d.sort(T),t=1,s=d[0],c=[s];t<n;++t)l=d[t],I(s,l[0])||I(s,l[1])?(O(s[0],l[1])>O(s[0],s[1])&&(s[1]=l[1]),O(l[0],s[1])>O(s[0],s[1])&&(s[0]=l[0])):c.push(s=l);for(u=-1/0,n=c.length-1,t=0,s=c[n];t<=n;s=l,++t)l=c[t],(h=O(s[1],l[0]))>u&&(u=h,r=l[0],o=s[1])}return d=f=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}},function(e,t,n){"use strict";var r,i,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b=n(4),_=n(20),w=n(22),x={sphere:_["a"],point:S,lineStart:E,lineEnd:T,polygonStart:function(){x.lineStart=I,x.lineEnd=A},polygonEnd:function(){x.lineStart=E,x.lineEnd=T}};function S(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t);C(n*Object(b["g"])(e),n*Object(b["t"])(e),Object(b["t"])(t))}function C(e,t,n){++r,o+=(e-o)/r,a+=(t-a)/r,s+=(n-s)/r}function E(){x.point=k}function k(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t);g=n*Object(b["g"])(e),v=n*Object(b["t"])(e),y=Object(b["t"])(t),x.point=O,C(g,v,y)}function O(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t),r=n*Object(b["g"])(e),o=n*Object(b["t"])(e),a=Object(b["t"])(t),s=Object(b["e"])(Object(b["u"])((s=v*a-y*o)*s+(s=y*r-g*a)*s+(s=g*o-v*r)*s),g*r+v*o+y*a);i+=s,l+=s*(g+(g=r)),c+=s*(v+(v=o)),u+=s*(y+(y=a)),C(g,v,y)}function T(){x.point=S}function I(){x.point=R}function A(){P(p,m),x.point=S}function R(e,t){p=e,m=t,e*=b["r"],t*=b["r"],x.point=P;var n=Object(b["g"])(t);g=n*Object(b["g"])(e),v=n*Object(b["t"])(e),y=Object(b["t"])(t),C(g,v,y)}function P(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t),r=n*Object(b["g"])(e),o=n*Object(b["t"])(e),a=Object(b["t"])(t),s=v*a-y*o,p=y*r-g*a,m=g*o-v*r,_=Object(b["u"])(s*s+p*p+m*m),w=Object(b["c"])(_),x=_&&-w/_;d+=x*s,f+=x*p,h+=x*m,i+=w,l+=w*(g+(g=r)),c+=w*(v+(v=o)),u+=w*(y+(y=a)),C(g,v,y)}t["a"]=function(e){r=i=o=a=s=l=c=u=d=f=h=0,Object(w["a"])(e,x);var t=d,n=f,p=h,m=t*t+n*n+p*p;return m<b["j"]&&(t=l,n=c,p=u,i<b["i"]&&(t=o,n=a,p=s),m=t*t+n*n+p*p,m<b["j"])?[NaN,NaN]:[Object(b["e"])(n,t)*b["h"],Object(b["c"])(p/Object(b["u"])(m))*b["h"]]}},function(e,t,n){"use strict";t["a"]=function(e){return function(){return e}}},function(e,t,n){"use strict";t["a"]=function(e,t,n,r,i,o){var a,s=e[0],l=e[1],c=t[0],u=t[1],d=0,f=1,h=c-s,p=u-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<d)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>d&&(d=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>d&&(d=a)}else if(h>0){if(a<d)return;a<f&&(f=a)}if(a=r-l,p||!(a>0)){if(a/=p,p<0){if(a<d)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>d&&(d=a)}if(a=o-l,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>d&&(d=a)}else if(p>0){if(a<d)return;a<f&&(f=a)}return d>0&&(e[0]=s+d*h,e[1]=l+d*p),f<1&&(t[0]=s+f*h,t[1]=l+f*p),!0}}}}}},function(e,t,n){"use strict";var r=n(111);t["a"]=function(e,t,n){var i,o,a,s,l=e.length,c=t.length,u=new Array(l*c);for(null==n&&(n=r["b"]),i=a=0;i<l;++i)for(s=e[i],o=0;o<c;++o,++a)u[a]=n(s,t[o]);return u}},function(e,t,n){"use strict";t["a"]=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}},function(e,t,n){"use strict";var r=n(115),i=n(109),o=n(204),a=n(114),s=n(205),l=n(116),c=n(117),u=n(118);t["a"]=function(){var e=s["a"],t=a["a"],n=u["a"];function d(r){var o,a,s=r.length,u=new Array(s);for(o=0;o<s;++o)u[o]=e(r[o],o,r);var d=t(u),f=d[0],h=d[1],p=n(u,f,h);Array.isArray(p)||(p=Object(c["c"])(f,h,p),p=Object(l["a"])(Math.ceil(f/p)*p,Math.floor(h/p)*p,p));var m=p.length;while(p[0]<=f)p.shift(),--m;while(p[m-1]>h)p.pop(),--m;var g,v=new Array(m+1);for(o=0;o<=m;++o)g=v[o]=[],g.x0=o>0?p[o-1]:f,g.x1=o<m?p[o]:h;for(o=0;o<s;++o)a=u[o],f<=a&&a<=h&&v[Object(i["c"])(p,a,0,m)].push(r[o]);return v}return d.value=function(t){return arguments.length?(e="function"===typeof t?t:Object(o["a"])(t),d):e},d.domain=function(e){return arguments.length?(t="function"===typeof e?e:Object(o["a"])([e[0],e[1]]),d):t},d.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?Object(o["a"])(r["b"].call(e)):Object(o["a"])(e),d):n},d}},function(e,t,n){"use strict";t["a"]=function(e){return function(){return e}}},function(e,t,n){"use strict";t["a"]=function(e){return e}},function(e,t,n){"use strict";var r=n(115),i=n(30),o=n(36),a=n(66);t["a"]=function(e,t,n){return e=r["a"].call(e,o["a"]).sort(i["a"]),Math.ceil((n-t)/(2*(Object(a["a"])(e,.75)-Object(a["a"])(e,.25))*Math.pow(e.length,-1/3)))}},function(e,t,n){"use strict";var r=n(112);t["a"]=function(e,t,n){return Math.ceil((n-t)/(3.5*Object(r["a"])(e)*Math.pow(e.length,-1/3)))}},function(e,t,n){"use strict";t["a"]=function(e,t){var n,r,i=e.length,o=-1;if(null==t){while(++o<i)if(null!=(n=e[o])&&n>=n){r=n;while(++o<i)null!=(n=e[o])&&n>r&&(r=n)}}else while(++o<i)if(null!=(n=t(e[o],o,e))&&n>=n){r=n;while(++o<i)null!=(n=t(e[o],o,e))&&n>r&&(r=n)}return r}},function(e,t,n){"use strict";var r=n(36);t["a"]=function(e,t){var n,i=e.length,o=i,a=-1,s=0;if(null==t)while(++a<i)isNaN(n=Object(r["a"])(e[a]))?--o:s+=n;else while(++a<i)isNaN(n=Object(r["a"])(t(e[a],a,e)))?--o:s+=n;if(o)return s/o}},function(e,t,n){"use strict";var r=n(30),i=n(36),o=n(66);t["a"]=function(e,t){var n,a=e.length,s=-1,l=[];if(null==t)while(++s<a)isNaN(n=Object(i["a"])(e[s]))||l.push(n);else while(++s<a)isNaN(n=Object(i["a"])(t(e[s],s,e)))||l.push(n);return Object(o["a"])(l.sort(r["a"]),.5)}},function(e,t,n){"use strict";t["a"]=function(e){var t,n,r,i=e.length,o=-1,a=0;while(++o<i)a+=e[o].length;n=new Array(a);while(--i>=0){r=e[i],t=r.length;while(--t>=0)n[--a]=r[t]}return n}},function(e,t,n){"use strict";t["a"]=function(e,t){var n=t.length,r=new Array(n);while(n--)r[n]=e[t[n]];return r}},function(e,t,n){"use strict";var r=n(30);t["a"]=function(e,t){if(n=e.length){var n,i,o=0,a=0,s=e[a];null==t&&(t=r["a"]);while(++o<n)(t(i=e[o],s)<0||0!==t(s,s))&&(s=i,a=o);return 0===t(s,s)?a:void 0}}},function(e,t,n){"use strict";t["a"]=function(e,t,n){var r,i,o=(null==n?e.length:n)-(t=null==t?0:+t);while(o)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e}},function(e,t,n){"use strict";t["a"]=function(e,t){var n,r=e.length,i=-1,o=0;if(null==t)while(++i<r)(n=+e[i])&&(o+=n);else while(++i<r)(n=+t(e[i],i,e))&&(o+=n);return o}},function(e,t,n){"use strict";var r=n(120);t["a"]=function(){return Object(r["a"])(arguments)}},function(e,t,n){"use strict";var r=n(121),i=n(122),o=n(4),a={Feature:function(e,t){return l(e.geometry,t)},FeatureCollection:function(e,t){var n=e.features,r=-1,i=n.length;while(++r<i)if(l(n[r].geometry,t))return!0;return!1}},s={Sphere:function(){return!0},Point:function(e,t){return c(e.coordinates,t)},MultiPoint:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)if(c(n[r],t))return!0;return!1},LineString:function(e,t){return u(e.coordinates,t)},MultiLineString:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)if(u(n[r],t))return!0;return!1},Polygon:function(e,t){return d(e.coordinates,t)},MultiPolygon:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)if(d(n[r],t))return!0;return!1},GeometryCollection:function(e,t){var n=e.geometries,r=-1,i=n.length;while(++r<i)if(l(n[r],t))return!0;return!1}};function l(e,t){return!(!e||!s.hasOwnProperty(e.type))&&s[e.type](e,t)}function c(e,t){return 0===Object(i["a"])(e,t)}function u(e,t){var n=Object(i["a"])(e[0],e[1]),r=Object(i["a"])(e[0],t),a=Object(i["a"])(t,e[1]);return r+a<=n+o["i"]}function d(e,t){return!!Object(r["a"])(e.map(f),h(t))}function f(e){return e=e.map(h),e.pop(),e}function h(e){return[e[0]*o["r"],e[1]*o["r"]]}t["a"]=function(e,t){return(e&&a.hasOwnProperty(e.type)?a[e.type]:l)(e,t)}},function(e,t,n){"use strict";t["a"]=s,t["b"]=l;var r=n(14),i=n(4);function o(e,t,n){var o=Object(r["range"])(e,t-i["i"],n).concat(t);return function(e){return o.map((function(t){return[e,t]}))}}function a(e,t,n){var o=Object(r["range"])(e,t-i["i"],n).concat(t);return function(e){return o.map((function(t){return[t,e]}))}}function s(){var e,t,n,s,l,c,u,d,f,h,p,m,g=10,v=g,y=90,b=360,_=2.5;function w(){return{type:"MultiLineString",coordinates:x()}}function x(){return Object(r["range"])(Object(i["f"])(s/y)*y,n,y).map(p).concat(Object(r["range"])(Object(i["f"])(d/b)*b,u,b).map(m)).concat(Object(r["range"])(Object(i["f"])(t/g)*g,e,g).filter((function(e){return Object(i["a"])(e%y)>i["i"]})).map(f)).concat(Object(r["range"])(Object(i["f"])(c/v)*v,l,v).filter((function(e){return Object(i["a"])(e%b)>i["i"]})).map(h))}return w.lines=function(){return x().map((function(e){return{type:"LineString",coordinates:e}}))},w.outline=function(){return{type:"Polygon",coordinates:[p(s).concat(m(u).slice(1),p(n).reverse().slice(1),m(d).reverse().slice(1))]}},w.extent=function(e){return arguments.length?w.extentMajor(e).extentMinor(e):w.extentMinor()},w.extentMajor=function(e){return arguments.length?(s=+e[0][0],n=+e[1][0],d=+e[0][1],u=+e[1][1],s>n&&(e=s,s=n,n=e),d>u&&(e=d,d=u,u=e),w.precision(_)):[[s,d],[n,u]]},w.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],c=+n[0][1],l=+n[1][1],t>e&&(n=t,t=e,e=n),c>l&&(n=c,c=l,l=n),w.precision(_)):[[t,c],[e,l]]},w.step=function(e){return arguments.length?w.stepMajor(e).stepMinor(e):w.stepMinor()},w.stepMajor=function(e){return arguments.length?(y=+e[0],b=+e[1],w):[y,b]},w.stepMinor=function(e){return arguments.length?(g=+e[0],v=+e[1],w):[g,v]},w.precision=function(r){return arguments.length?(_=+r,f=o(c,l,90),h=a(t,e,_),p=o(d,u,90),m=a(s,n,_),w):_},w.extentMajor([[-180,-90+i["i"]],[180,90-i["i"]]]).extentMinor([[-180,-80-i["i"]],[180,80+i["i"]]])}function l(){return s()()}},function(e,t,n){"use strict";var r=n(4);t["a"]=function(e,t){var n=e[0]*r["r"],i=e[1]*r["r"],o=t[0]*r["r"],a=t[1]*r["r"],s=Object(r["g"])(i),l=Object(r["t"])(i),c=Object(r["g"])(a),u=Object(r["t"])(a),d=s*Object(r["g"])(n),f=s*Object(r["t"])(n),h=c*Object(r["g"])(o),p=c*Object(r["t"])(o),m=2*Object(r["c"])(Object(r["u"])(Object(r["m"])(a-i)+s*c*Object(r["m"])(o-n))),g=Object(r["t"])(m),v=m?function(e){var t=Object(r["t"])(e*=m)/g,n=Object(r["t"])(m-e)/g,i=n*d+t*h,o=n*f+t*p,a=n*l+t*u;return[Object(r["e"])(o,i)*r["h"],Object(r["e"])(a,Object(r["u"])(i*i+o*o))*r["h"]]}:function(){return[n*r["h"],i*r["h"]]};return v.distance=m,v}},function(e,t,n){"use strict";var r=n(67),i=n(22),o=n(221),a=n(124),s=n(222),l=n(223),c=n(224),u=n(225);t["a"]=function(e,t){var n,d,f=4.5;function h(e){return e&&("function"===typeof f&&d.pointRadius(+f.apply(this,arguments)),Object(i["a"])(e,n(d))),d.result()}return h.area=function(e){return Object(i["a"])(e,n(o["a"])),o["a"].result()},h.measure=function(e){return Object(i["a"])(e,n(c["a"])),c["a"].result()},h.bounds=function(e){return Object(i["a"])(e,n(a["a"])),a["a"].result()},h.centroid=function(e){return Object(i["a"])(e,n(s["a"])),s["a"].result()},h.projection=function(t){return arguments.length?(n=null==t?(e=null,r["a"]):(e=t).stream,h):e},h.context=function(e){return arguments.length?(d=null==e?(t=null,new u["a"]):new l["a"](t=e),"function"!==typeof f&&d.pointRadius(f),h):t},h.pointRadius=function(e){return arguments.length?(f="function"===typeof e?e:(d.pointRadius(+e),+e),h):f},h.projection(e).context(t)}},function(e,t,n){"use strict";var r,i,o,a,s=n(29),l=n(4),c=n(20),u=Object(s["a"])(),d=Object(s["a"])(),f={point:c["a"],lineStart:c["a"],lineEnd:c["a"],polygonStart:function(){f.lineStart=h,f.lineEnd=g},polygonEnd:function(){f.lineStart=f.lineEnd=f.point=c["a"],u.add(Object(l["a"])(d)),d.reset()},result:function(){var e=u/2;return u.reset(),e}};function h(){f.point=p}function p(e,t){f.point=m,r=o=e,i=a=t}function m(e,t){d.add(a*e-o*t),o=e,a=t}function g(){m(r,i)}t["a"]=f},function(e,t,n){"use strict";var r,i,o,a,s=n(4),l=0,c=0,u=0,d=0,f=0,h=0,p=0,m=0,g=0,v={point:y,lineStart:b,lineEnd:x,polygonStart:function(){v.lineStart=S,v.lineEnd=C},polygonEnd:function(){v.point=y,v.lineStart=b,v.lineEnd=x},result:function(){var e=g?[p/g,m/g]:h?[d/h,f/h]:u?[l/u,c/u]:[NaN,NaN];return l=c=u=d=f=h=p=m=g=0,e}};function y(e,t){l+=e,c+=t,++u}function b(){v.point=_}function _(e,t){v.point=w,y(o=e,a=t)}function w(e,t){var n=e-o,r=t-a,i=Object(s["u"])(n*n+r*r);d+=i*(o+e)/2,f+=i*(a+t)/2,h+=i,y(o=e,a=t)}function x(){v.point=y}function S(){v.point=E}function C(){k(r,i)}function E(e,t){v.point=k,y(r=o=e,i=a=t)}function k(e,t){var n=e-o,r=t-a,i=Object(s["u"])(n*n+r*r);d+=i*(o+e)/2,f+=i*(a+t)/2,h+=i,i=a*e-o*t,p+=i*(o+e),m+=i*(a+t),g+=3*i,y(o=e,a=t)}t["a"]=v},function(e,t,n){"use strict";t["a"]=o;var r=n(4),i=n(20);function o(e){this._context=e}o.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,r["w"]);break}},result:i["a"]}},function(e,t,n){"use strict";var r,i,o,a,s,l=n(29),c=n(4),u=n(20),d=Object(l["a"])(),f={point:u["a"],lineStart:function(){f.point=h},lineEnd:function(){r&&p(i,o),f.point=u["a"]},polygonStart:function(){r=!0},polygonEnd:function(){r=null},result:function(){var e=+d;return d.reset(),e}};function h(e,t){f.point=p,i=a=e,o=s=t}function p(e,t){a-=e,s-=t,d.add(Object(c["u"])(a*a+s*s)),a=e,s=t}t["a"]=f},function(e,t,n){"use strict";function r(){this._string=[]}function i(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}t["a"]=r,r.prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",e,",",t,this._circle);break}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}}},function(e,t,n){"use strict";var r=n(126),i=n(4);function o(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(s,l){var c=s>0?i["o"]:-i["o"],u=Object(i["a"])(s-n);Object(i["a"])(u-i["o"])<i["i"]?(e.point(n,r=(r+l)/2>0?i["l"]:-i["l"]),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),e.point(s,r),t=0):o!==c&&u>=i["o"]&&(Object(i["a"])(n-o)<i["i"]&&(n-=o*i["i"]),Object(i["a"])(s-c)<i["i"]&&(s-=c*i["i"]),r=a(n,r,s,l),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),t=0),e.point(n=s,r=l),o=c},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function a(e,t,n,r){var o,a,s=Object(i["t"])(e-n);return Object(i["a"])(s)>i["i"]?Object(i["d"])((Object(i["t"])(t)*(a=Object(i["g"])(r))*Object(i["t"])(n)-Object(i["t"])(r)*(o=Object(i["g"])(t))*Object(i["t"])(e))/(o*a*s)):(t+r)/2}function s(e,t,n,r){var o;if(null==e)o=n*i["l"],r.point(-i["o"],o),r.point(0,o),r.point(i["o"],o),r.point(i["o"],0),r.point(i["o"],-o),r.point(0,-o),r.point(-i["o"],-o),r.point(-i["o"],0),r.point(-i["o"],o);else if(Object(i["a"])(e[0]-t[0])>i["i"]){var a=e[0]<t[0]?i["o"]:-i["o"];o=n*a/2,r.point(-a,o),r.point(0,o),r.point(a,o)}else r.point(t[0],t[1])}t["a"]=Object(r["a"])((function(){return!0}),o,s,[-i["o"],-i["l"]])},function(e,t,n){"use strict";var r=n(35),i=n(104),o=n(4),a=n(108),s=n(126);t["a"]=function(e,t){var n=Object(o["g"])(e),l=n>0,c=Object(o["a"])(n)>o["i"];function u(n,r,o,a){Object(i["a"])(a,e,t,o,n,r)}function d(e,t){return Object(o["g"])(e)*Object(o["g"])(t)>n}function f(e){var t,n,r,i,s;return{lineStart:function(){i=r=!1,s=1},point:function(u,f){var m,g=[u,f],v=d(u,f),y=l?v?0:p(u,f):v?p(u+(u<0?o["o"]:-o["o"]),f):0;if(!t&&(i=r=v)&&e.lineStart(),v!==r&&(m=h(t,g),(!m||Object(a["a"])(t,m)||Object(a["a"])(g,m))&&(g[0]+=o["i"],g[1]+=o["i"],v=d(g[0],g[1]))),v!==r)s=0,v?(e.lineStart(),m=h(g,t),e.point(m[0],m[1])):(m=h(t,g),e.point(m[0],m[1]),e.lineEnd()),t=m;else if(c&&t&&l^v){var b;y&n||!(b=h(g,t,!0))||(s=0,l?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!v||t&&Object(a["a"])(t,g)||e.point(g[0],g[1]),t=g,r=v,n=y},lineEnd:function(){r&&e.lineEnd(),t=null},clean:function(){return s|(i&&r)<<1}}}function h(e,t,i){var a=Object(r["a"])(e),s=Object(r["a"])(t),l=[1,0,0],c=Object(r["c"])(a,s),u=Object(r["d"])(c,c),d=c[0],f=u-d*d;if(!f)return!i&&e;var h=n*u/f,p=-n*d/f,m=Object(r["c"])(l,c),g=Object(r["f"])(l,h),v=Object(r["f"])(c,p);Object(r["b"])(g,v);var y=m,b=Object(r["d"])(g,y),_=Object(r["d"])(y,y),w=b*b-_*(Object(r["d"])(g,g)-1);if(!(w<0)){var x=Object(o["u"])(w),S=Object(r["f"])(y,(-b-x)/_);if(Object(r["b"])(S,g),S=Object(r["g"])(S),!i)return S;var C,E=e[0],k=t[0],O=e[1],T=t[1];k<E&&(C=E,E=k,k=C);var I=k-E,A=Object(o["a"])(I-o["o"])<o["i"],R=A||I<o["i"];if(!A&&T<O&&(C=O,O=T,T=C),R?A?O+T>0^S[1]<(Object(o["a"])(S[0]-E)<o["i"]?O:T):O<=S[1]&&S[1]<=T:I>o["o"]^(E<=S[0]&&S[0]<=k)){var P=Object(r["f"])(y,(-b+x)/_);return Object(r["b"])(P,g),[S,Object(r["g"])(P)]}}}function p(t,n){var r=l?e:o["o"]-e,i=0;return t<-r?i|=1:t>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}return Object(s["a"])(d,f,u,l?[0,-e]:[-o["o"],e-o["o"]])}},function(e,t,n){"use strict";var r=n(35),i=n(4),o=n(51),a=16,s=Object(i["g"])(30*i["r"]);function l(e){return Object(o["b"])({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function c(e,t){function n(r,o,a,l,c,u,d,f,h,p,m,g,v,y){var b=d-r,_=f-o,w=b*b+_*_;if(w>4*t&&v--){var x=l+p,S=c+m,C=u+g,E=Object(i["u"])(x*x+S*S+C*C),k=Object(i["c"])(C/=E),O=Object(i["a"])(Object(i["a"])(C)-1)<i["i"]||Object(i["a"])(a-h)<i["i"]?(a+h)/2:Object(i["e"])(S,x),T=e(O,k),I=T[0],A=T[1],R=I-r,P=A-o,M=_*R-b*P;(M*M/w>t||Object(i["a"])((b*R+_*P)/w-.5)>.3||l*p+c*m+u*g<s)&&(n(r,o,a,l,c,u,I,A,O,x/=E,S/=E,C,v,y),y.point(I,A),n(I,A,O,x,S,C,d,f,h,p,m,g,v,y))}}return function(t){var i,o,s,l,c,u,d,f,h,p,m,g,v={point:y,lineStart:b,lineEnd:w,polygonStart:function(){t.polygonStart(),v.lineStart=x},polygonEnd:function(){t.polygonEnd(),v.lineStart=b}};function y(n,r){n=e(n,r),t.point(n[0],n[1])}function b(){f=NaN,v.point=_,t.lineStart()}function _(i,o){var s=Object(r["a"])([i,o]),l=e(i,o);n(f,h,d,p,m,g,f=l[0],h=l[1],d=i,p=s[0],m=s[1],g=s[2],a,t),t.point(f,h)}function w(){v.point=y,t.lineEnd()}function x(){b(),v.point=S,v.lineEnd=C}function S(e,t){_(i=e,t),o=f,s=h,l=p,c=m,u=g,v.point=_}function C(){n(f,h,d,p,m,g,o,s,i,l,c,u,a,t),v.lineEnd=w,w()}return v}}t["a"]=function(e,t){return+t?c(e,t):l(e)}},function(e,t,n){"use strict";t["a"]=i;var r=n(4);function i(e){var t=Object(r["g"])(e);function n(e,n){return[e*t,Object(r["t"])(n)/t]}return n.invert=function(e,n){return[e/t,Object(r["c"])(n*t)]},n}},function(e,t,n){"use strict";var r=n(4),i=n(125),o=n(68),a=n(70);function s(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}t["a"]=function(){var e,t,n,l,c,u,d=Object(i["a"])(),f=Object(o["b"])().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=Object(o["b"])().rotate([157,0]).center([-3,19.9]).parallels([8,18]),p={point:function(e,t){u=[e,t]}};function m(e){var t=e[0],r=e[1];return u=null,n.point(t,r),u||(l.point(t,r),u)||(c.point(t,r),u)}function g(){return e=t=null,m}return m.invert=function(e){var t=d.scale(),n=d.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?f:i>=.166&&i<.234&&r>=-.214&&r<-.115?h:d).invert(e)},m.stream=function(n){return e&&t===n?e:e=s([d.stream(t=n),f.stream(n),h.stream(n)])},m.precision=function(e){return arguments.length?(d.precision(e),f.precision(e),h.precision(e),g()):d.precision()},m.scale=function(e){return arguments.length?(d.scale(e),f.scale(.35*e),h.scale(e),m.translate(d.translate())):d.scale()},m.translate=function(e){if(!arguments.length)return d.translate();var t=d.scale(),i=+e[0],o=+e[1];return n=d.translate(e).clipExtent([[i-.455*t,o-.238*t],[i+.455*t,o+.238*t]]).stream(p),l=f.translate([i-.307*t,o+.201*t]).clipExtent([[i-.425*t+r["i"],o+.12*t+r["i"]],[i-.214*t-r["i"],o+.234*t-r["i"]]]).stream(p),c=h.translate([i-.205*t,o+.212*t]).clipExtent([[i-.214*t+r["i"],o+.166*t+r["i"]],[i-.115*t-r["i"],o+.234*t-r["i"]]]).stream(p),g()},m.fitExtent=function(e,t){return Object(a["a"])(m,e,t)},m.fitSize=function(e,t){return Object(a["b"])(m,e,t)},m.scale(1070)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(37),o=n(17),a=Object(i["b"])((function(e){return Object(r["u"])(2/(1+e))}));a.invert=Object(i["a"])((function(e){return 2*Object(r["c"])(e/2)})),t["b"]=function(){return Object(o["a"])(a).scale(124.75).clipAngle(179.999)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(37),o=n(17),a=Object(i["b"])((function(e){return(e=Object(r["b"])(e))&&e/Object(r["t"])(e)}));a.invert=Object(i["a"])((function(e){return e})),t["b"]=function(){return Object(o["a"])(a).scale(79.4188).clipAngle(179.999)}},function(e,t,n){"use strict";t["a"]=s;var r=n(4),i=n(69),o=n(71);function a(e){return Object(r["v"])((r["l"]+e)/2)}function s(e,t){var n=Object(r["g"])(e),i=e===t?Object(r["t"])(e):Object(r["n"])(n/Object(r["g"])(t))/Object(r["n"])(a(t)/a(e)),s=n*Object(r["p"])(a(e),i)/i;if(!i)return o["c"];function l(e,t){s>0?t<-r["l"]+r["i"]&&(t=-r["l"]+r["i"]):t>r["l"]-r["i"]&&(t=r["l"]-r["i"]);var n=s/Object(r["p"])(a(t),i);return[n*Object(r["t"])(i*e),s-n*Object(r["g"])(i*e)]}return l.invert=function(e,t){var n=s-t,o=Object(r["s"])(i)*Object(r["u"])(e*e+n*n);return[Object(r["e"])(e,Object(r["a"])(n))/i*Object(r["s"])(n),2*Object(r["d"])(Object(r["p"])(s/o,1/i))-r["l"]]},l}t["b"]=function(){return Object(i["a"])(s).scale(109.5).parallels([30,30])}},function(e,t,n){"use strict";t["a"]=a;var r=n(4),i=n(69),o=n(127);function a(e,t){var n=Object(r["g"])(e),i=e===t?Object(r["t"])(e):(n-Object(r["g"])(t))/(t-e),a=n/i+e;if(Object(r["a"])(i)<r["i"])return o["b"];function s(e,t){var n=a-t,o=i*e;return[n*Object(r["t"])(o),a-n*Object(r["g"])(o)]}return s.invert=function(e,t){var n=a-t;return[Object(r["e"])(e,Object(r["a"])(n))/i*Object(r["s"])(n),a-Object(r["s"])(i)*Object(r["u"])(e*e+n*n)]},s}t["b"]=function(){return Object(i["a"])(a).scale(131.154).center([0,13.9389])}},function(e,t,n){"use strict";t["b"]=a;var r=n(4),i=n(37),o=n(17);function a(e,t){var n=Object(r["g"])(t),i=Object(r["g"])(e)*n;return[n*Object(r["t"])(e)/i,Object(r["t"])(t)/i]}a.invert=Object(i["a"])(r["d"]),t["a"]=function(){return Object(o["a"])(a).scale(144.049).clipAngle(60)}},function(e,t,n){"use strict";var r=n(65),i=n(67),o=n(51),a=n(70);function s(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?i["a"]:Object(o["b"])({point:function(i,o){this.stream.point(i*e+n,o*t+r)}})}t["a"]=function(){var e,t,n,o,l,c,u=1,d=0,f=0,h=1,p=1,m=i["a"],g=null,v=i["a"];function y(){return o=l=null,c}return c={stream:function(e){return o&&l===e?o:o=m(v(l=e))},clipExtent:function(o){return arguments.length?(v=null==o?(g=e=t=n=null,i["a"]):Object(r["a"])(g=+o[0][0],e=+o[0][1],t=+o[1][0],n=+o[1][1]),y()):null==g?null:[[g,e],[t,n]]},scale:function(e){return arguments.length?(m=s((u=+e)*h,u*p,d,f),y()):u},translate:function(e){return arguments.length?(m=s(u*h,u*p,d=+e[0],f=+e[1]),y()):[d,f]},reflectX:function(e){return arguments.length?(m=s(u*(h=e?-1:1),u*p,d,f),y()):h<0},reflectY:function(e){return arguments.length?(m=s(u*h,u*(p=e?-1:1),d,f),y()):p<0},fitExtent:function(e,t){return Object(a["a"])(c,e,t)},fitSize:function(e,t){return Object(a["b"])(c,e,t)}}}},function(e,t,n){"use strict";t["b"]=a;var r=n(4),i=n(37),o=n(17);function a(e,t){return[Object(r["g"])(t)*Object(r["t"])(e),Object(r["t"])(t)]}a.invert=Object(i["a"])(r["c"]),t["a"]=function(){return Object(o["a"])(a).scale(249.5).clipAngle(90+r["i"])}},function(e,t,n){"use strict";t["b"]=a;var r=n(4),i=n(37),o=n(17);function a(e,t){var n=Object(r["g"])(t),i=1+Object(r["g"])(e)*n;return[n*Object(r["t"])(e)/i,Object(r["t"])(t)/i]}a.invert=Object(i["a"])((function(e){return 2*Object(r["d"])(e)})),t["a"]=function(){return Object(o["a"])(a).scale(250).clipAngle(142)}},function(e,t,n){"use strict";t["b"]=o;var r=n(4),i=n(71);function o(e,t){return[Object(r["n"])(Object(r["v"])((r["l"]+t)/2)),-e]}o.invert=function(e,t){return[-t,2*Object(r["d"])(Object(r["k"])(e))-r["l"]]},t["a"]=function(){var e=Object(i["b"])(o),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)}},function(e,t,n){"use strict";t["a"]=o;var r=n(0),i=n(1);function o(e){var t=Object(i["F"])(e/2),n=2*Object(i["p"])(Object(i["h"])(e/2))/(t*t);function r(e,t){var r=Object(i["h"])(e),o=Object(i["h"])(t),a=Object(i["y"])(t),s=o*r,l=-((1-s?Object(i["p"])((1+s)/2)/(1-s):-.5)+n/(1+s));return[l*o*Object(i["y"])(e),l*a]}return r.invert=function(t,r){var o,a=Object(i["B"])(t*t+r*r),s=-e/2,l=50;if(!a)return[0,0];do{var c=s/2,u=Object(i["h"])(c),d=Object(i["y"])(c),f=Object(i["F"])(c),h=Object(i["p"])(1/u);s-=o=(2/f*h-n*f-a)/(-h/(d*d)+1-n/(2*u*u))}while(Object(i["a"])(o)>i["k"]&&--l>0);var p=Object(i["y"])(s);return[Object(i["g"])(t*p,a*Object(i["h"])(s)),Object(i["e"])(r*p/a)]},r}t["b"]=function(){var e=i["o"],t=Object(r["geoProjectionMutator"])(o),n=t(e);return n.radius=function(n){return arguments.length?t(e=n*i["v"]):e*i["j"]},n.scale(179.976).clipAngle(147)}},function(e,t,n){"use strict";t["a"]=o;var r=n(0),i=n(1);function o(e){var t=Object(i["y"])(e),n=Object(i["h"])(e),r=e>=0?1:-1,o=Object(i["F"])(r*e),a=(1+t-n)/2;function s(e,s){var l=Object(i["h"])(s),c=Object(i["h"])(e/=2);return[(1+l)*Object(i["y"])(e),(r*s>-Object(i["g"])(c,o)-.001?0:10*-r)+a+Object(i["y"])(s)*n-(1+l)*t*c]}return s.invert=function(e,s){var l=0,c=0,u=50;do{var d=Object(i["h"])(l),f=Object(i["y"])(l),h=Object(i["h"])(c),p=Object(i["y"])(c),m=1+h,g=m*f-e,v=a+p*n-m*t*d-s,y=m*d/2,b=-f*p,_=t*m*f/2,w=n*h+t*d*p,x=b*_-w*y,S=(v*b-g*w)/x/2,C=(g*_-v*y)/x;l-=S,c-=C}while((Object(i["a"])(S)>i["k"]||Object(i["a"])(C)>i["k"])&&--u>0);return r*c>-Object(i["g"])(Object(i["h"])(l),o)-.001?[2*l,c]:null},s}t["b"]=function(){var e=20*i["v"],t=e>=0?1:-1,n=Object(i["F"])(t*e),a=Object(r["geoProjectionMutator"])(o),s=a(e),l=s.stream;return s.parallel=function(r){return arguments.length?(n=Object(i["F"])((t=(e=r*i["v"])>=0?1:-1)*e),a(e)):e*i["j"]},s.stream=function(r){var o=s.rotate(),a=l(r),c=(s.rotate([0,0]),l(r));return s.rotate(o),a.sphere=function(){c.polygonStart(),c.lineStart();for(var r=-180*t;t*r<180;r+=90*t)c.point(r,90*t);while(t*(r-=e)>=-180)c.point(r,t*-Object(i["g"])(Object(i["h"])(r*i["v"]/2),n)*i["j"]);c.lineEnd(),c.polygonEnd()},a},s.scale(218.695).center([0,28.0974])}},function(e,t,n){"use strict";t["a"]=s;var r=n(0),i=n(1),o=Object(i["B"])(8),a=Object(i["p"])(1+i["D"]);function s(e,t){var n=Object(i["a"])(t);return n<i["u"]?[e,Object(i["p"])(Object(i["F"])(i["u"]+t/2))]:[e*Object(i["h"])(n)*(2*i["D"]-1/Object(i["y"])(n)),Object(i["x"])(t)*(2*i["D"]*(n-i["u"])-Object(i["p"])(Object(i["F"])(n/2)))]}s.invert=function(e,t){if((r=Object(i["a"])(t))<a)return[e,2*Object(i["f"])(Object(i["m"])(t))-i["o"]];var n,r,s=i["u"],l=25;do{var c=Object(i["h"])(s/2),u=Object(i["F"])(s/2);s-=n=(o*(s-i["u"])-Object(i["p"])(u)-r)/(o-c*c/(2*u))}while(Object(i["a"])(n)>i["l"]&&--l>0);return[e/(Object(i["h"])(s)*(o-1/Object(i["y"])(s))),Object(i["x"])(t)*s]},t["b"]=function(){return Object(r["geoProjection"])(s).scale(112.314)}},function(e,t,n){"use strict";t["a"]=o;var r=n(0),i=n(1);function o(e){var t=2*i["s"]/e;function n(e,n){var o=Object(r["geoAzimuthalEquidistantRaw"])(e,n);if(Object(i["a"])(e)>i["o"]){var a=Object(i["g"])(o[1],o[0]),s=Object(i["B"])(o[0]*o[0]+o[1]*o[1]),l=t*Object(i["w"])((a-i["o"])/t)+i["o"],c=Object(i["g"])(Object(i["y"])(a-=l),2-Object(i["h"])(a));a=l+Object(i["e"])(i["s"]/s*Object(i["y"])(c))-c,o[0]=s*Object(i["h"])(a),o[1]=s*Object(i["y"])(a)}return o}return n.invert=function(e,n){var o=Object(i["B"])(e*e+n*n);if(o>i["o"]){var a=Object(i["g"])(n,e),s=t*Object(i["w"])((a-i["o"])/t)+i["o"],l=a>s?-1:1,c=o*Object(i["h"])(s-a),u=1/Object(i["F"])(l*Object(i["b"])((c-i["s"])/Object(i["B"])(i["s"]*(i["s"]-2*c)+o*o)));a=s+2*Object(i["f"])((u+l*Object(i["B"])(u*u-3))/3),e=o*Object(i["h"])(a),n=o*Object(i["y"])(a)}return r["geoAzimuthalEquidistantRaw"].invert(e,n)},n}t["b"]=function(){var e=5,t=Object(r["geoProjectionMutator"])(o),n=t(e),a=n.stream,s=.01,l=-Object(i["h"])(s*i["v"]),c=Object(i["y"])(s*i["v"]);return n.lobes=function(n){return arguments.length?t(e=+n):e},n.stream=function(t){var r=n.rotate(),o=a(t),u=(n.rotate([0,0]),a(t));return n.rotate(r),o.sphere=function(){u.polygonStart(),u.lineStart();for(var t=0,n=360/e,r=2*i["s"]/e,o=90-180/e,a=i["o"];t<e;++t,o-=n,a-=r)u.point(Object(i["g"])(c*Object(i["h"])(a),l)*i["j"],Object(i["e"])(c*Object(i["y"])(a))*i["j"]),o<-90?(u.point(-90,-180-o-s),u.point(-90,-180-o+s)):(u.point(90,o+s),u.point(90,o-s));u.lineEnd(),u.polygonEnd()},o},n.scale(87.8076).center([0,17.1875]).clipAngle(179.999)}},function(e,t,n){"use strict";t["a"]=a;var r=n(31),i=n(1),o=n(38);function a(e){if(!e)return o["b"];var t=1/Object(i["F"])(e);function n(n,r){var o=t+e-r,a=o?n*Object(i["h"])(r)/o:o;return[o*Object(i["y"])(a),t-o*Object(i["h"])(a)]}return n.invert=function(n,r){var o=Object(i["B"])(n*n+(r=t-r)*r),a=t+e-o;return[o/Object(i["h"])(a)*Object(i["g"])(n,r),a]},n}t["b"]=function(){return Object(r["a"])(a).scale(123.082).center([0,26.1441]).parallel(45)}},function(e,t,n){"use strict";t["a"]=o;var r=n(0),i=n(1);function o(e){function t(t,n){var r=i["o"]-n,o=r?t*e*Object(i["y"])(r)/r:r;return[r*Object(i["y"])(o)/e,i["o"]-r*Object(i["h"])(o)]}return t.invert=function(t,n){var r=t*e,o=i["o"]-n,a=Object(i["B"])(r*r+o*o),s=Object(i["g"])(r,o);return[(a?a/Object(i["y"])(a):1)*s/e,i["o"]-a]},t}t["b"]=function(){var e=.5,t=Object(r["geoProjectionMutator"])(o),n=t(e);return n.fraction=function(n){return arguments.length?t(e=+n):e},n.scale(158.837)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(1),o=n(21),a=Object(o["b"])(1,4/i["s"],i["s"]);t["b"]=function(){return Object(r["geoProjection"])(a).scale(152.63)}},function(e,t,n){"use strict";t["b"]=l,t["a"]=u,t["c"]=d;var r=n(0),i=n(1);function o(e,t,n,r,o,a){var s,l=Object(i["h"])(a);if(Object(i["a"])(e)>1||Object(i["a"])(a)>1)s=Object(i["b"])(n*o+t*r*l);else{var c=Object(i["y"])(e/2),u=Object(i["y"])(a/2);s=2*Object(i["e"])(Object(i["B"])(c*c+t*r*u*u))}return Object(i["a"])(s)>i["k"]?[s,Object(i["g"])(r*Object(i["y"])(a),t*o-n*r*l)]:[0,0]}function a(e,t,n){return Object(i["b"])((e*e+t*t-n*n)/(2*e*t))}function s(e){return e-2*i["s"]*Object(i["n"])((e+i["s"])/(2*i["s"]))}function l(e,t,n){for(var r,l=[[e[0],e[1],Object(i["y"])(e[1]),Object(i["h"])(e[1])],[t[0],t[1],Object(i["y"])(t[1]),Object(i["h"])(t[1])],[n[0],n[1],Object(i["y"])(n[1]),Object(i["h"])(n[1])]],c=l[2],u=0;u<3;++u,c=r)r=l[u],c.v=o(r[1]-c[1],c[3],c[2],r[3],r[2],r[0]-c[0]),c.point=[0,0];var d=a(l[0].v[0],l[2].v[0],l[1].v[0]),f=a(l[0].v[0],l[1].v[0],l[2].v[0]),h=i["s"]-d;l[2].point[1]=0,l[0].point[0]=-(l[1].point[0]=l[0].v[0]/2);var p=[l[2].point[0]=l[0].point[0]+l[2].v[0]*Object(i["h"])(d),2*(l[0].point[1]=l[1].point[1]=l[2].v[0]*Object(i["y"])(d))];function m(e,t){var n,r=Object(i["y"])(t),c=Object(i["h"])(t),u=new Array(3);for(n=0;n<3;++n){var d=l[n];if(u[n]=o(t-d[1],d[3],d[2],c,r,e-d[0]),!u[n][0])return d.point;u[n][1]=s(u[n][1]-d.v[1])}var m=p.slice();for(n=0;n<3;++n){var g=2==n?0:n+1,v=a(l[n].v[0],u[n][0],u[g][0]);u[n][1]<0&&(v=-v),n?1==n?(v=f-v,m[0]-=u[n][0]*Object(i["h"])(v),m[1]-=u[n][0]*Object(i["y"])(v)):(v=h-v,m[0]+=u[n][0]*Object(i["h"])(v),m[1]+=u[n][0]*Object(i["y"])(v)):(m[0]+=u[n][0]*Object(i["h"])(v),m[1]-=u[n][0]*Object(i["y"])(v))}return m[0]/=3,m[1]/=3,m}return m}function c(e){return e[0]*=i["v"],e[1]*=i["v"],e}function u(){return d([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function d(e,t,n){var i=Object(r["geoCentroid"])({type:"MultiPoint",coordinates:[e,t,n]}),o=[-i[0],-i[1]],a=Object(r["geoRotation"])(o),s=Object(r["geoProjection"])(l(c(a(e)),c(a(t)),c(a(n)))).rotate(o),u=s.center;return delete s.rotate,s.center=function(e){return arguments.length?u(a(e)):a.invert(u())},s.clipAngle(90)}},function(e,t,n){"use strict";t["a"]=o;var r=n(1),i=n(31);function o(e){var t=Object(r["F"])(e);function n(e,n){return[e,(e?e/Object(r["y"])(e):1)*(Object(r["y"])(n)*Object(r["h"])(e)-t*Object(r["h"])(n))]}return n.invert=t?function(e,n){e&&(n*=Object(r["y"])(e)/e);var i=Object(r["h"])(e);return[e,2*Object(r["g"])(Object(r["B"])(i*i+t*t-n*n)-i,t-n)]}:function(e,t){return[e,Object(r["e"])(e?t*Object(r["F"])(e)/e:t)]},n}t["b"]=function(){return Object(i["a"])(o).scale(249.828).clipAngle(90)}},function(e,t,n){"use strict";t["a"]=a;var r=n(0),i=n(1),o=Object(i["B"])(3);function a(e,t){return[o*e*(2*Object(i["h"])(2*t/3)-1)/i["E"],o*i["E"]*Object(i["y"])(t/3)]}a.invert=function(e,t){var n=3*Object(i["e"])(t/(o*i["E"]));return[i["E"]*e/(o*(2*Object(i["h"])(2*n/3)-1)),n]},t["b"]=function(){return Object(r["geoProjection"])(a).scale(156.19)}},function(e,t,n){"use strict";t["a"]=o;var r=n(1),i=n(31);function o(e){var t=Object(r["h"])(e);function n(e,n){return[e*t,(1+t)*Object(r["F"])(n/2)]}return n.invert=function(e,n){return[e/t,2*Object(r["f"])(n/(1+t))]},n}t["b"]=function(){return Object(i["a"])(o).scale(124.75)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["B"])(8/(3*i["s"]));return[n*e*(1-Object(i["a"])(t)/i["s"]),n*t]}o.invert=function(e,t){var n=Object(i["B"])(8/(3*i["s"])),r=t/n;return[e/(n*(1-Object(i["a"])(r)/i["s"])),r]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(165.664)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["B"])(4-3*Object(i["y"])(Object(i["a"])(t)));return[2/Object(i["B"])(6*i["s"])*e*n,Object(i["x"])(t)*Object(i["B"])(2*i["s"]/3)*(2-n)]}o.invert=function(e,t){var n=2-Object(i["a"])(t)/Object(i["B"])(2*i["s"]/3);return[e*Object(i["B"])(6*i["s"])/(2*n),Object(i["x"])(t)*Object(i["e"])((4-n*n)/3)]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(165.664)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["B"])(i["s"]*(4+i["s"]));return[2/n*e*(1+Object(i["B"])(1-4*t*t/(i["s"]*i["s"]))),4/n*t]}o.invert=function(e,t){var n=Object(i["B"])(i["s"]*(4+i["s"]))/2;return[e*n/(1+Object(i["B"])(1-t*t*(4+i["s"])/(4*i["s"]))),t*n/2]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(180.739)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=(2+i["o"])*Object(i["y"])(t);t/=2;for(var r=0,o=1/0;r<10&&Object(i["a"])(o)>i["k"];r++){var a=Object(i["h"])(t);t-=o=(t+Object(i["y"])(t)*(a+2)-n)/(2*a*(1+a))}return[2/Object(i["B"])(i["s"]*(4+i["s"]))*e*(1+Object(i["h"])(t)),2*Object(i["B"])(i["s"]/(4+i["s"]))*Object(i["y"])(t)]}o.invert=function(e,t){var n=t*Object(i["B"])((4+i["s"])/i["s"])/2,r=Object(i["e"])(n),o=Object(i["h"])(r);return[e/(2/Object(i["B"])(i["s"]*(4+i["s"]))*(1+o)),Object(i["e"])((r+n*(o+2))/(2+i["o"]))]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(180.739)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){return[e*(1+Object(i["h"])(t))/Object(i["B"])(2+i["s"]),2*t/Object(i["B"])(2+i["s"])]}o.invert=function(e,t){var n=Object(i["B"])(2+i["s"]),r=t*n/2;return[n*e/(1+Object(i["h"])(r)),r]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(173.044)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){for(var n=(1+i["o"])*Object(i["y"])(t),r=0,o=1/0;r<10&&Object(i["a"])(o)>i["k"];r++)t-=o=(t+Object(i["y"])(t)-n)/(1+Object(i["h"])(t));return n=Object(i["B"])(2+i["s"]),[e*(1+Object(i["h"])(t))/n,2*t/n]}o.invert=function(e,t){var n=1+i["o"],r=Object(i["B"])(n/2);return[2*e*r/(1+Object(i["h"])(t*=r)),Object(i["e"])((t+Object(i["y"])(t))/n)]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(173.044)}},function(e,t,n){"use strict";t["b"]=s;var r=n(0),i=n(130),o=n(1),a=3+2*o["D"];function s(e,t){var n=Object(o["y"])(e/=2),r=Object(o["h"])(e),i=Object(o["B"])(Object(o["h"])(t)),s=Object(o["h"])(t/=2),l=Object(o["y"])(t)/(s+o["D"]*r*i),c=Object(o["B"])(2/(1+l*l)),u=Object(o["B"])((o["D"]*s+(r+n)*i)/(o["D"]*s+(r-n)*i));return[a*(c*(u-1/u)-2*Object(o["p"])(u)),a*(c*l*(u+1/u)-2*Object(o["f"])(l))]}s.invert=function(e,t){if(!(n=i["a"].invert(e/1.2,1.065*t)))return null;var n,r=n[0],s=n[1],l=20;e/=a,t/=a;do{var c=r/2,u=s/2,d=Object(o["y"])(c),f=Object(o["h"])(c),h=Object(o["y"])(u),p=Object(o["h"])(u),m=Object(o["h"])(s),g=Object(o["B"])(m),v=h/(p+o["D"]*f*g),y=v*v,b=Object(o["B"])(2/(1+y)),_=o["D"]*p+(f+d)*g,w=o["D"]*p+(f-d)*g,x=_/w,S=Object(o["B"])(x),C=S-1/S,E=S+1/S,k=b*C-2*Object(o["p"])(S)-e,O=b*v*E-2*Object(o["f"])(v)-t,T=h&&o["C"]*g*d*y/h,I=(o["D"]*f*p+g)/(2*(p+o["D"]*f*g)*(p+o["D"]*f*g)*g),A=-.5*v*b*b*b,R=A*T,P=A*I,M=(M=2*p+o["D"]*g*(f-d))*M*S,N=(o["D"]*f*p*g+m)/M,L=-o["D"]*d*h/(g*M),D=C*R-2*N/S+b*(N+N/x),j=C*P-2*L/S+b*(L+L/x),F=v*E*R-2*T/(1+y)+b*E*T+b*v*(N-N/x),B=v*E*P-2*I/(1+y)+b*E*I+b*v*(L-L/x),q=j*F-B*D;if(!q)break;var z=(O*j-k*B)/q,U=(k*F-O*D)/q;r-=z,s=Object(o["q"])(-o["o"],Object(o["r"])(o["o"],s-U))}while((Object(o["a"])(z)>o["k"]||Object(o["a"])(U)>o["k"])&&--l>0);return Object(o["a"])(Object(o["a"])(s)-o["o"])<o["k"]?[0,s]:l&&[r,s]},t["a"]=function(){return Object(r["geoProjection"])(s).scale(62.5271)}},function(e,t,n){"use strict";t["b"]=a;var r=n(0),i=n(1),o=Object(i["h"])(35*i["v"]);function a(e,t){var n=Object(i["F"])(t/2);return[e*o*Object(i["B"])(1-n*n),(1+o)*n]}a.invert=function(e,t){var n=t/(1+o);return[e&&e/(o*Object(i["B"])(1-n*n)),2*Object(i["f"])(n)]},t["a"]=function(){return Object(r["geoProjection"])(a).scale(137.152)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=t/2,r=Object(i["h"])(n);return[2*e/i["E"]*Object(i["h"])(t)*r*r,i["E"]*Object(i["F"])(n)]}o.invert=function(e,t){var n=Object(i["f"])(t/i["E"]),r=Object(i["h"])(n),o=2*n;return[e*i["E"]/2/(Object(i["h"])(o)*r*r),o]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(135.264)}},function(e,t,n){"use strict";var r=n(0),i=n(1);function o(e){return[e[0]/2,Object(i["e"])(Object(i["F"])(e[1]/2*i["v"]))*i["j"]]}function a(e){return[2*e[0],2*Object(i["f"])(Object(i["y"])(e[1]*i["v"]))*i["j"]]}t["a"]=function(e){null==e&&(e=r["geoOrthographic"]);var t=e(),n=Object(r["geoEquirectangular"])().scale(i["j"]).precision(0).clipAngle(null).translate([0,0]);function s(e){return t(o(e))}function l(e){s[e]=function(n){return arguments.length?(t[e](n),s):t[e]()}}return t.invert&&(s.invert=function(e){return a(t.invert(e))}),s.stream=function(e){var r=t.stream(e),o=n.stream({point:function(e,t){r.point(e/2,Object(i["e"])(Object(i["F"])(-t/2*i["v"]))*i["j"])},lineStart:function(){r.lineStart()},lineEnd:function(){r.lineEnd()},polygonStart:function(){r.polygonStart()},polygonEnd:function(){r.polygonEnd()}});return o.sphere=r.sphere,o},s.rotate=function(e){return arguments.length?(n.rotate(e),s):n.rotate()},s.center=function(e){return arguments.length?(t.center(o(e)),s):a(t.center())},l("clipAngle"),l("clipExtent"),l("scale"),l("translate"),l("precision"),s.scale(249.5)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=2*i["s"]/t,o=e*e;function l(t,l){var c=Object(r["geoAzimuthalEquidistantRaw"])(t,l),u=c[0],d=c[1],f=u*u+d*d;if(f>o){var h=Object(i["B"])(f),p=Object(i["g"])(d,u),m=n*Object(i["w"])(p/n),g=p-m,v=e*Object(i["h"])(g),y=(e*Object(i["y"])(g)-g*Object(i["y"])(v))/(i["o"]-v),b=a(g,y),_=(i["s"]-e)/s(b,v,i["s"]);u=h;var w,x=50;do{u-=w=(e+s(b,v,u)*_-h)/(b(u)*_)}while(Object(i["a"])(w)>i["k"]&&--x>0);d=g*Object(i["y"])(u),u<i["o"]&&(d-=y*(u-i["o"]));var S=Object(i["y"])(m),C=Object(i["h"])(m);c[0]=u*C-d*S,c[1]=u*S+d*C}return c}return l.invert=function(t,l){var c=t*t+l*l;if(c>o){var u=Object(i["B"])(c),d=Object(i["g"])(l,t),f=n*Object(i["w"])(d/n),h=d-f;t=u*Object(i["h"])(h),l=u*Object(i["y"])(h);var p=t-i["o"],m=Object(i["y"])(t),g=l/m,v=t<i["o"]?1/0:0,y=10;while(1){var b=e*Object(i["y"])(g),_=e*Object(i["h"])(g),w=Object(i["y"])(_),x=i["o"]-_,S=(b-g*w)/x,C=a(g,S);if(Object(i["a"])(v)<i["l"]||!--y)break;g-=v=(g*m-S*p-l)/(m-2*p*(x*(_+g*b*Object(i["h"])(_)-w)-b*(b-g*w))/(x*x))}u=e+s(C,_,t)*(i["s"]-e)/s(C,_,i["s"]),d=f+g,t=u*Object(i["h"])(d),l=u*Object(i["y"])(d)}return r["geoAzimuthalEquidistantRaw"].invert(t,l)},l}function a(e,t){return function(n){var r=e*Object(i["h"])(n);return n<i["o"]&&(r-=t),Object(i["B"])(1+r*r)}}function s(e,t,n){for(var r=50,i=(n-t)/r,o=e(t)+e(n),a=1,s=t;a<r;++a)o+=2*e(s+=i);return.5*o*i}t["a"]=function(){var e=6,t=30*i["v"],n=Object(i["h"])(t),a=Object(i["y"])(t),s=Object(r["geoProjectionMutator"])(o),l=s(t,e),c=l.stream,u=.01,d=-Object(i["h"])(u*i["v"]),f=Object(i["y"])(u*i["v"]);return l.radius=function(r){return arguments.length?(n=Object(i["h"])(t=r*i["v"]),a=Object(i["y"])(t),s(t,e)):t*i["j"]},l.lobes=function(n){return arguments.length?s(t,e=+n):e},l.stream=function(t){var r=l.rotate(),o=c(t),s=(l.rotate([0,0]),c(t));return l.rotate(r),o.sphere=function(){s.polygonStart(),s.lineStart();for(var t=0,r=2*i["s"]/e,o=0;t<e;++t,o-=r)s.point(Object(i["g"])(f*Object(i["h"])(o),d)*i["j"],Object(i["e"])(f*Object(i["y"])(o))*i["j"]),s.point(Object(i["g"])(a*Object(i["h"])(o-r/2),n)*i["j"],Object(i["e"])(a*Object(i["y"])(o-r/2))*i["j"]);s.lineEnd(),s.polygonEnd()},o},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=n(52),o=Object(i["a"])(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);t["a"]=function(){return Object(r["geoProjection"])(o).scale(149.995)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=n(52),o=Object(i["a"])(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);t["a"]=function(){return Object(r["geoProjection"])(o).scale(153.93)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(0),i=n(52),o=n(1),a=Object(i["a"])(5/6*o["s"],-.62636,-.0344,0,1.3493,-.05524,0,.045);t["a"]=function(){return Object(r["geoProjection"])(a).scale(130.945)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=e*e,r=t*t;return[e*(1-.162388*r)*(.87-952426e-9*n*n),t*(1+r/12)]}o.invert=function(e,t){var n,r=e,o=t,a=50;do{var s=o*o;o-=n=(o*(1+s/12)-t)/(1+s/4)}while(Object(i["a"])(n)>i["k"]&&--a>0);a=50,e/=1-.162388*s;do{var l=(l=r*r)*l;r-=n=(r*(.87-952426e-9*l)-e)/(.87-.00476213*l)}while(Object(i["a"])(n)>i["k"]&&--a>0);return[r,o]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(131.747)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=n(52),o=Object(i["a"])(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);t["a"]=function(){return Object(r["geoProjection"])(o).scale(131.087)}},function(e,t,n){"use strict";t["c"]=i,t["b"]=a,t["a"]=s;var r=n(1);function i(e,t,n){var r,i,a;return e?(r=o(e,n),t?(i=o(t,1-n),a=i[1]*i[1]+n*r[0]*r[0]*i[0]*i[0],[[r[0]*i[2]/a,r[1]*r[2]*i[0]*i[1]/a],[r[1]*i[1]/a,-r[0]*r[2]*i[0]*i[2]/a],[r[2]*i[1]*i[2]/a,-n*r[0]*r[1]*i[0]/a]]):[[r[0],0],[r[1],0],[r[2],0]]):(i=o(t,1-n),[[0,i[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]])}function o(e,t){var n,i,o,a,s;if(t<r["k"])return a=Object(r["y"])(e),i=Object(r["h"])(e),n=t*(e-a*i)/4,[a-n*i,i+n*a,1-t*a*a/2,e-n];if(t>=1-r["k"])return n=(1-t)/4,i=Object(r["i"])(e),a=Object(r["G"])(e),o=1/i,s=i*Object(r["A"])(e),[a+n*(s-e)/(i*i),o-n*a*o*(s-e),o+n*a*o*(s+e),2*Object(r["f"])(Object(r["m"])(e))-r["o"]+n*(s-e)/i];var l=[1,0,0,0,0,0,0,0,0],c=[Object(r["B"])(t),0,0,0,0,0,0,0,0],u=0;i=Object(r["B"])(1-t),s=1;while(Object(r["a"])(c[u]/l[u])>r["k"]&&u<8)n=l[u++],c[u]=(n-i)/2,l[u]=(n+i)/2,i=Object(r["B"])(n*i),s*=2;o=s*l[u]*e;do{a=c[u]*Object(r["y"])(i=o)/l[u],o=(Object(r["e"])(a)+o)/2}while(--u);return[Object(r["y"])(o),a=Object(r["h"])(o),a/Object(r["h"])(o-i),o]}function a(e,t,n){var i=Object(r["a"])(e),o=Object(r["a"])(t),a=Object(r["A"])(o);if(i){var l=1/Object(r["y"])(i),c=1/(Object(r["F"])(i)*Object(r["F"])(i)),u=-(c+n*(a*a*l*l)-1+n),d=(n-1)*c,f=(-u+Object(r["B"])(u*u-4*d))/2;return[s(Object(r["f"])(1/Object(r["B"])(f)),n)*Object(r["x"])(e),s(Object(r["f"])(Object(r["B"])((f/c-1)/n)),1-n)*Object(r["x"])(t)]}return[0,s(Object(r["f"])(a),1-n)*Object(r["x"])(t)]}function s(e,t){if(!t)return e;if(1===t)return Object(r["p"])(Object(r["F"])(e/2+r["u"]));for(var n=1,i=Object(r["B"])(1-t),o=Object(r["B"])(t),a=0;Object(r["a"])(o)>r["k"];a++){if(e%r["s"]){var s=Object(r["f"])(i*Object(r["F"])(e)/n);s<0&&(s+=r["s"]),e+=s+~~(e/r["s"])*r["s"]}else e+=e;o=(n+i)/2,i=Object(r["B"])(n*i),o=((n=o)-i)/2}return e/(Object(r["t"])(2,a)*n)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){if(arguments.length<2&&(t=e),1===t)return r["geoAzimuthalEqualAreaRaw"];if(t===1/0)return a;function n(n,i){var o=Object(r["geoAzimuthalEqualAreaRaw"])(n/t,i);return o[0]*=e,o}return n.invert=function(n,i){var o=r["geoAzimuthalEqualAreaRaw"].invert(n/e,i);return o[0]*=t,o},n}function a(e,t){return[e*Object(i["h"])(t)/Object(i["h"])(t/=2),2*Object(i["y"])(t)]}a.invert=function(e,t){var n=2*Object(i["e"])(t/2);return[e*Object(i["h"])(n/2)/Object(i["h"])(n),n]},t["a"]=function(){var e=2,t=Object(r["geoProjectionMutator"])(o),n=t(e);return n.coefficient=function(n){return arguments.length?t(e=+n):e},n.scale(169.529)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e){var t=Object(i["y"])(e),n=Object(i["h"])(e),r=a(e);function o(e,o){var a=r(e,o);e=a[0],o=a[1];var s=Object(i["y"])(o),l=Object(i["h"])(o),c=Object(i["h"])(e),u=Object(i["b"])(t*s+n*l*c),d=Object(i["y"])(u),f=Object(i["a"])(d)>i["k"]?u/d:1;return[f*n*Object(i["y"])(e),(Object(i["a"])(e)>i["o"]?f:-f)*(t*l-n*s*c)]}return r.invert=a(-e),o.invert=function(e,n){var o=Object(i["B"])(e*e+n*n),a=-Object(i["y"])(o),s=Object(i["h"])(o),l=o*s,c=-n*a,u=o*t,d=Object(i["B"])(l*l+c*c-u*u),f=Object(i["g"])(l*u+c*d,c*u-l*d),h=(o>i["o"]?-1:1)*Object(i["g"])(e*a,o*Object(i["h"])(f)*s+n*Object(i["y"])(f)*a);return r.invert(h,f)},o}function a(e){var t=Object(i["y"])(e),n=Object(i["h"])(e);return function(e,r){var o=Object(i["h"])(r),a=Object(i["h"])(e)*o,s=Object(i["y"])(e)*o,l=Object(i["y"])(r);return[Object(i["g"])(s,a*n-l*t),Object(i["e"])(l*n+a*t)]}}t["a"]=function(){var e=0,t=Object(r["geoProjectionMutator"])(o),n=t(e),a=n.rotate,s=n.stream,l=Object(r["geoCircle"])();return n.parallel=function(r){if(!arguments.length)return e*i["j"];var o=n.rotate();return t(e=r*i["v"]).rotate(o)},n.rotate=function(t){return arguments.length?(a.call(n,[t[0],t[1]-e*i["j"]]),l.center([-t[0],-t[1]]),n):(t=a.call(n),t[1]+=e*i["j"],t)},n.stream=function(e){return e=s(e),e.sphere=function(){e.polygonStart();var t,n=.01,r=l.radius(90-n)().coordinates[0],i=r.length-1,o=-1;e.lineStart();while(++o<i)e.point((t=r[o])[0],t[1]);e.lineEnd(),r=l.radius(90+n)().coordinates[0],i=r.length-1,e.lineStart();while(--o>=0)e.point((t=r[o])[0],t[1]);e.lineEnd(),e.polygonEnd()},e},n.scale(79.4187).parallel(45).clipAngle(179.999)}},function(e,t,n){"use strict";t["b"]=u;var r=n(14),i=n(0),o=n(72),a=n(132),s=n(1),l=41+48/36+37/3600,c=Object(a["a"])(0);function u(e){var t=l*s["v"],n=Object(o["a"])(s["s"],t)[0]-Object(o["a"])(-s["s"],t)[0],r=c(0,t)[1],i=Object(o["a"])(0,t)[1],a=s["E"]-i,u=s["H"]/e,d=4/s["H"],f=r+a*a*4/s["H"];function h(l,h){var p,m=Object(s["a"])(h);if(m>t){var g=Object(s["r"])(e-1,Object(s["q"])(0,Object(s["n"])((l+s["s"])/u)));l+=s["s"]*(e-1)/e-g*u,p=Object(o["a"])(l,m),p[0]=p[0]*s["H"]/n-s["H"]*(e-1)/(2*e)+g*s["H"]/e,p[1]=r+4*(p[1]-i)*a/s["H"],h<0&&(p[1]=-p[1])}else p=c(l,h);return p[0]*=d,p[1]/=f,p}return h.invert=function(t,l){t/=d,l*=f;var h=Object(s["a"])(l);if(h>r){var p=Object(s["r"])(e-1,Object(s["q"])(0,Object(s["n"])((t+s["s"])/u)));t=(t+s["s"]*(e-1)/e-p*u)*n/s["H"];var m=o["a"].invert(t,.25*(h-r)*s["H"]/a+i);return m[0]-=s["s"]*(e-1)/e-p*u,l<0&&(m[1]=-m[1]),m}return c.invert(t,l)},h}function d(e){return{type:"Polygon",coordinates:[Object(r["range"])(-180,180+e/2,e).map((function(e,t){return[e,1&t?89.999999:l]})).concat(Object(r["range"])(180,-180-e/2,-e).map((function(e,t){return[e,1&t?-89.999999:-l]})))]}}t["a"]=function(){var e=4,t=Object(i["geoProjectionMutator"])(u),n=t(e),r=n.stream;return n.lobes=function(n){return arguments.length?t(e=+n):e},n.stream=function(t){var o=n.rotate(),a=r(t),s=(n.rotate([0,0]),r(t));return n.rotate(o),a.sphere=function(){Object(i["geoStream"])(d(180/e),s)},a},n.scale(239.75)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e){var t,n=1+e,r=Object(i["y"])(1/n),o=Object(i["e"])(r),a=2*Object(i["B"])(i["s"]/(t=i["s"]+4*o*n)),s=.5*a*(n+Object(i["B"])(e*(2+e))),l=e*e,c=n*n;function u(r,u){var d,f,h=1-Object(i["y"])(u);if(h&&h<2){var p,m=i["o"]-u,g=25;do{var v=Object(i["y"])(m),y=Object(i["h"])(m),b=o+Object(i["g"])(v,n-y),_=1+c-2*n*y;m-=p=(m-l*o-n*v+_*b-.5*h*t)/(2*n*v*b)}while(Object(i["a"])(p)>i["l"]&&--g>0);d=a*Object(i["B"])(_),f=r*b/i["s"]}else d=a*(e+h),f=r*o/i["s"];return[d*Object(i["y"])(f),s-d*Object(i["h"])(f)]}return u.invert=function(e,r){var u=e*e+(r-=s)*r,d=(1+c-u/(a*a))/(2*n),f=Object(i["b"])(d),h=Object(i["y"])(f),p=o+Object(i["g"])(h,n-d);return[Object(i["e"])(e/Object(i["B"])(u))*i["s"]/p,Object(i["e"])(1-2*(f-l*o-n*h+(1+c-2*n*d)*p)/t)]},u}t["a"]=function(){var e=1,t=Object(r["geoProjectionMutator"])(o),n=t(e);return n.ratio=function(n){return arguments.length?t(e=+n):e},n.scale(167.774).center([0,18.67])}},function(e,t,n){"use strict";var r=n(131),i=n(23),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];t["a"]=function(){return Object(i["a"])(r["a"],o).scale(160.857)}},function(e,t,n){"use strict";var r=n(136),i=n(23),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];t["a"]=function(){return Object(i["a"])(r["b"],o).scale(152.63)}},function(e,t,n){"use strict";var r=n(21),i=n(23),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];t["a"]=function(){return Object(i["a"])(r["d"],o).scale(169.529)}},function(e,t,n){"use strict";var r=n(21),i=n(23),o=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];t["a"]=function(){return Object(i["a"])(r["d"],o).scale(169.529).rotate([20,0])}},function(e,t,n){"use strict";var r=n(73),i=n(23),o=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];t["a"]=function(){return Object(i["a"])(r["c"],o).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(e,t,n){"use strict";var r=n(38),i=n(23),o=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];t["a"]=function(){return Object(i["a"])(r["b"],o).scale(152.63).rotate([-20,0])}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){return[3/i["H"]*e*Object(i["B"])(i["s"]*i["s"]/3-t*t),t]}o.invert=function(e,t){return[i["H"]/3*e/Object(i["B"])(i["s"]*i["s"]/3-t*t),t]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(158.837)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e){function t(t,n){if(Object(i["a"])(Object(i["a"])(n)-i["o"])<i["k"])return[0,n<0?-2:2];var r=Object(i["y"])(n),o=Object(i["t"])((1+r)/(1-r),e/2),a=.5*(o+1/o)+Object(i["h"])(t*=e);return[2*Object(i["y"])(t)/a,(o-1/o)/a]}return t.invert=function(t,n){var r=Object(i["a"])(n);if(Object(i["a"])(r-2)<i["k"])return t?null:[0,Object(i["x"])(n)*i["o"]];if(r>2)return null;t/=2,n/=2;var o=t*t,a=n*n,s=2*n/(1+o+a);return s=Object(i["t"])((1+s)/(1-s),1/e),[Object(i["g"])(2*t,1-o-a)/e,Object(i["e"])((s-1)/(s+1))]},t}t["a"]=function(){var e=.5,t=Object(r["geoProjectionMutator"])(o),n=t(e);return n.spacing=function(n){return arguments.length?t(e=+n):e},n.scale(124.75)}},function(e,t,n){"use strict";t["b"]=a;var r=n(0),i=n(1),o=i["s"]/i["D"];function a(e,t){return[e*(1+Object(i["B"])(Object(i["h"])(t)))/2,t/(Object(i["h"])(t/2)*Object(i["h"])(e/6))]}a.invert=function(e,t){var n=Object(i["a"])(e),r=Object(i["a"])(t),a=i["k"],s=i["o"];r<o?s*=r/o:a+=6*Object(i["b"])(o/r);for(var l=0;l<25;l++){var c=Object(i["y"])(s),u=Object(i["B"])(Object(i["h"])(s)),d=Object(i["y"])(s/2),f=Object(i["h"])(s/2),h=Object(i["y"])(a/6),p=Object(i["h"])(a/6),m=.5*a*(1+u)-n,g=s/(f*p)-r,v=u?-.25*a*c/u:0,y=.5*(1+u),b=(1+.5*s*d/f)/(f*p),_=s/f*(h/6)/(p*p),w=v*_-b*y,x=(m*_-g*y)/w,S=(g*v-m*b)/w;if(s-=x,a-=S,Object(i["a"])(x)<i["k"]&&Object(i["a"])(S)<i["k"])break}return[e<0?-a:a,t<0?-s:s]},t["a"]=function(){return Object(r["geoProjection"])(a).scale(97.2672)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=e*e,r=t*t;return[e*(.975534+r*(-.0143059*n-.119161+-.0547009*r)),t*(1.00384+n*(.0802894+-.02855*r+199025e-9*n)+r*(.0998909+-.0491032*r))]}o.invert=function(e,t){var n=Object(i["x"])(e)*i["s"],r=t/2,o=50;do{var a=n*n,s=r*r,l=n*r,c=n*(.975534+s*(-.0143059*a-.119161+-.0547009*s))-e,u=r*(1.00384+a*(.0802894+-.02855*s+199025e-9*a)+s*(.0998909+-.0491032*s))-t,d=.975534-s*(.119161+3*a*.0143059+.0547009*s),f=-l*(.238322+.2188036*s+.0286118*a),h=l*(.1605788+7961e-7*a+-.0571*s),p=1.00384+a*(.0802894+199025e-9*a)+s*(3*(.0998909-.02855*a)-.245516*s),m=f*h-p*d,g=(u*f-c*p)/m,v=(c*h-u*d)/m;n-=g,r-=v}while((Object(i["a"])(g)>i["k"]||Object(i["a"])(v)>i["k"])&&--o>0);return o&&[n,r]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(139.98)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){return[Object(i["y"])(e)/Object(i["h"])(t),Object(i["F"])(t)*Object(i["h"])(e)]}o.invert=function(e,t){var n=e*e,r=t*t,o=r+1,a=e?i["C"]*Object(i["B"])((o-Object(i["B"])(n*n+2*n*(r-1)+o*o))/n+1):1/Object(i["B"])(o);return[Object(i["e"])(e*a),Object(i["x"])(t)*Object(i["b"])(a)]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(144.049).clipAngle(89.999)}},function(e,t,n){"use strict";t["b"]=o;var r=n(31),i=n(1);function o(e){var t=Object(i["h"])(e),n=Object(i["F"])(i["u"]+e/2);function r(r,o){var a=o-e,s=Object(i["a"])(a)<i["k"]?r*t:Object(i["a"])(s=i["u"]+o/2)<i["k"]||Object(i["a"])(Object(i["a"])(s)-i["o"])<i["k"]?0:r*a/Object(i["p"])(Object(i["F"])(s)/n);return[s,a]}return r.invert=function(r,o){var a,s=o+e;return[Object(i["a"])(o)<i["k"]?r/t:Object(i["a"])(a=i["u"]+s/2)<i["k"]||Object(i["a"])(Object(i["a"])(a)-i["o"])<i["k"]?0:r*Object(i["p"])(Object(i["F"])(a)/n)/o,s]},r}t["a"]=function(){return Object(r["a"])(o).parallel(40).scale(158.837)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){return[e,1.25*Object(i["p"])(Object(i["F"])(i["u"]+.4*t))]}o.invert=function(e,t){return[e,2.5*Object(i["f"])(Object(i["m"])(.8*t))-.625*i["s"]]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(108.318)}},function(e,t,n){"use strict";t["g"]=o,t["b"]=d,t["c"]=f,t["d"]=h,t["f"]=p,t["e"]=m,t["a"]=g;var r=n(0),i=n(1);function o(e){var t=e.length-1;function n(n,r){var o,a=Object(i["h"])(r),s=2/(1+a*Object(i["h"])(n)),l=s*a*Object(i["y"])(n),c=s*Object(i["y"])(r),u=t,d=e[u],f=d[0],h=d[1];while(--u>=0)d=e[u],f=d[0]+l*(o=f)-c*h,h=d[1]+l*h+c*o;return f=l*(o=f)-c*h,h=l*h+c*o,[f,h]}return n.invert=function(n,r){var o=20,a=n,s=r;do{var l,c=t,u=e[c],d=u[0],f=u[1],h=0,p=0;while(--c>=0)u=e[c],h=d+a*(l=h)-s*p,p=f+a*p+s*l,d=u[0]+a*(l=d)-s*f,f=u[1]+a*f+s*l;h=d+a*(l=h)-s*p,p=f+a*p+s*l,d=a*(l=d)-s*f-n,f=a*f+s*l-r;var m,g,v=h*h+p*p;a-=m=(d*h+f*p)/v,s-=g=(f*h-d*p)/v}while(Object(i["a"])(m)+Object(i["a"])(g)>i["k"]*i["k"]&&--o>0);if(o){var y=Object(i["B"])(a*a+s*s),b=2*Object(i["f"])(.5*y),_=Object(i["y"])(b);return[Object(i["g"])(a*_,y*Object(i["h"])(b)),y?Object(i["e"])(s*_/y):0]}},n}var a=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],s=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],l=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],c=[[.9245,0],[0,0],[.01943,0]],u=[[.721316,0],[0,0],[-.00881625,-.00617325]];function d(){return g(a,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)}function f(){return g(s,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function h(){return g(l,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function p(){return g(c,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function m(){return g(u,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function g(e,t){var n=Object(r["geoProjection"])(o(e)).rotate(t).clipAngle(90),i=Object(r["geoRotation"])(t),a=n.center;return delete n.rotate,n.center=function(e){return arguments.length?a(i(e)):i.invert(a())},n}},function(e,t,n){"use strict";t["b"]=s;var r=n(0),i=n(1),o=Object(i["B"])(6),a=Object(i["B"])(7);function s(e,t){var n=Object(i["e"])(7*Object(i["y"])(t)/(3*o));return[o*e*(2*Object(i["h"])(2*n/3)-1)/a,9*Object(i["y"])(n/3)/a]}s.invert=function(e,t){var n=3*Object(i["e"])(t*a/9);return[e*a/(o*(2*Object(i["h"])(2*n/3)-1)),Object(i["e"])(3*Object(i["y"])(n)*o/7)]},t["a"]=function(){return Object(r["geoProjection"])(s).scale(164.859)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){for(var n,r=(1+i["C"])*Object(i["y"])(t),o=t,a=0;a<25;a++)if(o-=n=(Object(i["y"])(o/2)+Object(i["y"])(o)-r)/(.5*Object(i["h"])(o/2)+Object(i["h"])(o)),Object(i["a"])(n)<i["k"])break;return[e*(1+2*Object(i["h"])(o)/Object(i["h"])(o/2))/(3*i["D"]),2*Object(i["B"])(3)*Object(i["y"])(o/2)/Object(i["B"])(2+i["D"])]}o.invert=function(e,t){var n=t*Object(i["B"])(2+i["D"])/(2*Object(i["B"])(3)),r=2*Object(i["e"])(n);return[3*i["D"]*e/(1+2*Object(i["h"])(r)/Object(i["h"])(r/2)),Object(i["e"])((n+Object(i["y"])(r))/(1+i["C"]))]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(188.209)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){for(var n,r=Object(i["B"])(6/(4+i["s"])),o=(1+i["s"]/4)*Object(i["y"])(t),a=t/2,s=0;s<25;s++)if(a-=n=(a/2+Object(i["y"])(a)-o)/(.5+Object(i["h"])(a)),Object(i["a"])(n)<i["k"])break;return[r*(.5+Object(i["h"])(a))*e/1.5,r*a]}o.invert=function(e,t){var n=Object(i["B"])(6/(4+i["s"])),r=t/n;return Object(i["a"])(Object(i["a"])(r)-i["o"])<i["k"]&&(r=r<0?-i["o"]:i["o"]),[1.5*e/(n*(.5+Object(i["h"])(r))),Object(i["e"])((r/2+Object(i["y"])(r))/(1+i["s"]/4))]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(166.518)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}o.invert=function(e,t){var n,r=t,o=25;do{var a=r*r,s=a*a;r-=n=(r*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-t)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Object(i["a"])(n)>i["k"]&&--o>0);return[e/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(175.295)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=t*t,r=n*n,i=n*r;return[e*(.84719-.13063*n+i*i*(.05494*n-.04515-.02326*r+.00331*i)),t*(1.01183+r*r*(.01926*n-.02625-.00396*r))]}o.invert=function(e,t){var n,r,o,a,s=t,l=25;do{r=s*s,o=r*r,s-=n=(s*(1.01183+o*o*(.01926*r-.02625-.00396*o))-t)/(1.01183+o*o*(.21186*r-.23625+-.05148*o))}while(Object(i["a"])(n)>i["l"]&&--l>0);return r=s*s,o=r*r,a=r*o,[e/(.84719-.13063*r+a*a*(.05494*r-.04515-.02326*o+.00331*a)),s]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(175.295)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){return[e*(1+Object(i["h"])(t))/2,2*(t-Object(i["F"])(t/2))]}o.invert=function(e,t){for(var n=t/2,r=0,o=1/0;r<10&&Object(i["a"])(o)>i["k"];++r){var a=Object(i["h"])(t/2);t-=o=(t-Object(i["F"])(t/2)-n)/(1-.5/(a*a))}return[2*e/(1+Object(i["h"])(t)),t]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(152.63)}},function(e,t,n){"use strict";t["b"]=p;var r=n(0),i=n(1),o=1.0148,a=.23185,s=-.14499,l=.02406,c=o,u=5*a,d=7*s,f=9*l,h=1.790857183;function p(e,t){var n=t*t;return[e,t*(o+n*n*(a+n*(s+l*n)))]}p.invert=function(e,t){t>h?t=h:t<-h&&(t=-h);var n,r=t;do{var p=r*r;r-=n=(r*(o+p*p*(a+p*(s+l*p)))-t)/(c+p*p*(u+p*(d+f*p)))}while(Object(i["a"])(n)>i["k"]);return[e,r]},t["a"]=function(){return Object(r["geoProjection"])(p).scale(139.319)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){if(Object(i["a"])(t)<i["k"])return[e,0];var n=Object(i["F"])(t),r=e*Object(i["y"])(t);return[Object(i["y"])(r)/n,t+(1-Object(i["h"])(r))/n]}o.invert=function(e,t){if(Object(i["a"])(t)<i["k"])return[e,0];var n,r=e*e+t*t,o=.5*t,a=10;do{var s=Object(i["F"])(o),l=1/Object(i["h"])(o),c=r-2*t*o+o*o;o-=n=(s*c+2*(o-t))/(2+c*l*l+2*(o-t)*s)}while(Object(i["a"])(n)>i["k"]&&--a>0);return s=Object(i["F"])(o),[(Object(i["a"])(t)<Object(i["a"])(o+1/s)?Object(i["e"])(e*s):Object(i["x"])(e)*(Object(i["b"])(Object(i["a"])(e*s))+i["o"]))/Object(i["y"])(o),o]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(103.74)}},function(e,t,n){"use strict";t["b"]=i,t["c"]=o;var r=n(1);function i(e){var t=1/(e[0]*e[4]-e[1]*e[3]);return[t*e[4],-t*e[1],t*(e[1]*e[5]-e[2]*e[4]),-t*e[3],t*e[0],t*(e[2]*e[3]-e[0]*e[5])]}function o(e,t){return[e[0]*t[0]+e[1]*t[3],e[0]*t[1]+e[1]*t[4],e[0]*t[2]+e[1]*t[5]+e[2],e[3]*t[0]+e[4]*t[3],e[3]*t[1]+e[4]*t[4],e[3]*t[2]+e[4]*t[5]+e[5]]}function a(e,t){return[e[0]-t[0],e[1]-t[1]]}function s(e){return Object(r["B"])(e[0]*e[0]+e[1]*e[1])}function l(e,t){return Object(r["g"])(e[0]*t[1]-e[1]*t[0],e[0]*t[0]+e[1]*t[1])}t["a"]=function(e,t){var n=a(e[1],e[0]),i=a(t[1],t[0]),c=l(n,i),u=s(n)/s(i);return o([1,0,e[0][0],0,1,e[0][1]],o([u,0,0,0,u,0],o([Object(r["h"])(c),Object(r["y"])(c),0,-Object(r["y"])(c),Object(r["h"])(c),0],[1,0,-t[0][0],0,1,-t[0][1]])))}},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(53),a=n(74);t["a"]=function(e){e=e||function(e){var t=Object(r["geoCentroid"])({type:"MultiPoint",coordinates:e});return Object(r["geoGnomonic"])().scale(1).translate([0,0]).rotate([-t[0],-t[1]])};var t=a["a"].map((function(t){return{face:t,project:e(t)}}));return[-1,0,0,1,0,1,4,5].forEach((function(e,n){var r=t[e];r&&(r.children||(r.children=[])).push(t[n])})),Object(o["a"])(t[0],(function(e,n){return t[e<-i["s"]/2?n<0?6:4:e<0?n<0?2:0:e<i["s"]/2?n<0?3:1:n<0?7:5]})).scale(101.858).center([0,45])}},function(e,t,n){"use strict";var r=n(0),i=n(72),o=n(1),a=n(53),s=n(74),l=2/Object(o["B"])(3);function c(e,t){var n=Object(i["a"])(e,t);return[n[0]*l,n[1]]}c.invert=function(e,t){return i["a"].invert(e/l,t)},t["a"]=function(e){e=e||function(e){var t=Object(r["geoCentroid"])({type:"MultiPoint",coordinates:e});return Object(r["geoProjection"])(c).translate([0,0]).scale(1).rotate(t[1]>0?[-t[0],0]:[180-t[0],180])};var t=s["a"].map((function(t){return{face:t,project:e(t)}}));return[-1,0,0,1,0,1,4,5].forEach((function(e,n){var r=t[e];r&&(r.children||(r.children=[])).push(t[n])})),Object(a["a"])(t[0],(function(e,n){return t[e<-o["s"]/2?n<0?6:4:e<0?n<0?2:0:e<o["s"]/2?n<0?3:1:n<0?7:5]})).scale(121.906).center([0,48.5904])}},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(53),a=n(74);function s(e,t){for(var n=0,r=e.length,i=0;n<r;++n)i+=e[n]*t[n];return i}function l(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function c(e){return[Object(i["g"])(e[1],e[0])*i["j"],Object(i["e"])(Object(i["q"])(-1,Object(i["r"])(1,e[2])))*i["j"]]}function u(e){var t=e[0]*i["v"],n=e[1]*i["v"],r=Object(i["h"])(n);return[r*Object(i["h"])(t),r*Object(i["y"])(t),Object(i["y"])(n)]}t["a"]=function(e){e=e||function(e){var t=6===e.length?Object(r["geoCentroid"])({type:"MultiPoint",coordinates:e}):e[0];return Object(r["geoGnomonic"])().scale(1).translate([0,0]).rotate([-t[0],-t[1]])};var t=a["a"].map((function(e){for(var t,n=e.map(u),r=n.length,i=n[r-1],o=[],a=0;a<r;++a)t=n[a],o.push(c([.9486832980505138*i[0]+.31622776601683794*t[0],.9486832980505138*i[1]+.31622776601683794*t[1],.9486832980505138*i[2]+.31622776601683794*t[2]]),c([.9486832980505138*t[0]+.31622776601683794*i[0],.9486832980505138*t[1]+.31622776601683794*i[1],.9486832980505138*t[2]+.31622776601683794*i[2]])),i=t;return o})),n=[],d=[-1,0,0,1,0,1,4,5];t.forEach((function(e,r){for(var i=a["a"][r],o=i.length,s=n[r]=[],c=0;c<o;++c)t.push([i[c],e[(2*c+2)%(2*o)],e[(2*c+1)%(2*o)]]),d.push(r),s.push(l(u(e[(2*c+2)%(2*o)]),u(e[(2*c+1)%(2*o)])))}));var f=t.map((function(t){return{project:e(t),face:t}}));function h(e,t){var r=Object(i["h"])(t),o=[r*Object(i["h"])(e),r*Object(i["y"])(e),Object(i["y"])(t)],a=e<-i["s"]/2?t<0?6:4:e<0?t<0?2:0:e<i["s"]/2?t<0?3:1:t<0?7:5,l=n[a];return f[s(l[0],o)<0?8+3*a:s(l[1],o)<0?8+3*a+1:s(l[2],o)<0?8+3*a+2:a]}return d.forEach((function(e,t){var n=f[e];n&&(n.children||(n.children=[])).push(f[t])})),Object(o["a"])(f[0],h).scale(110.625).center([0,45])}},function(e,t,n){"use strict";var r=n(0),i=n(299),o=n(300),a=n(301);function s(e,t){return{type:"FeatureCollection",features:e.features.map((function(e){return l(e,t)}))}}function l(e,t){return{type:"Feature",id:e.id,properties:e.properties,geometry:u(e.geometry,t)}}function c(e,t){return{type:"GeometryCollection",geometries:e.geometries.map((function(e){return u(e,t)}))}}function u(e,t){if(!e)return null;if("GeometryCollection"===e.type)return c(e,t);var n;switch(e.type){case"Point":n=h;break;case"MultiPoint":n=h;break;case"LineString":n=p;break;case"MultiLineString":n=p;break;case"Polygon":n=m;break;case"MultiPolygon":n=m;break;case"Sphere":n=m;break;default:return null}return Object(r["geoStream"])(e,t(n)),n.result()}t["a"]=function(e,t){var n,r=t.stream;if(!r)throw new Error("invalid projection");switch(e&&e.type){case"Feature":n=l;break;case"FeatureCollection":n=s;break;default:n=u;break}return n(e,r)};var d=[],f=[],h={point:function(e,t){d.push([e,t])},result:function(){var e=d.length?d.length<2?{type:"Point",coordinates:d[0]}:{type:"MultiPoint",coordinates:d}:null;return d=[],e}},p={lineStart:i["a"],point:function(e,t){d.push([e,t])},lineEnd:function(){d.length&&(f.push(d),d=[])},result:function(){var e=f.length?f.length<2?{type:"LineString",coordinates:f[0]}:{type:"MultiLineString",coordinates:f}:null;return f=[],e}},m={polygonStart:i["a"],lineStart:i["a"],point:function(e,t){d.push([e,t])},lineEnd:function(){var e=d.length;if(e){do{d.push(d[0].slice())}while(++e<4);f.push(d),d=[]}},polygonEnd:i["a"],result:function(){if(!f.length)return null;var e=[],t=[];return f.forEach((function(n){Object(o["a"])(n)?e.push([n]):t.push(n)})),t.forEach((function(t){var n=t[0];e.some((function(e){if(Object(a["a"])(e[0],n))return e.push(t),!0}))||e.push([t])})),f=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}}},function(e,t,n){"use strict";t["a"]=function(){}},function(e,t,n){"use strict";t["a"]=function(e){if((t=e.length)<4)return!1;var t,n=0,r=e[t-1][1]*e[0][0]-e[t-1][0]*e[0][1];while(++n<t)r+=e[n-1][1]*e[n][0]-e[n-1][0]*e[n][1];return r<=0}},function(e,t,n){"use strict";t["a"]=function(e,t){for(var n=t[0],r=t[1],i=!1,o=0,a=e.length,s=a-1;o<a;s=o++){var l=e[o],c=l[0],u=l[1],d=e[s],f=d[0],h=d[1];u>r^h>r&&n<(f-c)*(r-u)/(h-u)+c&&(i=!i)}return i}},function(e,t,n){"use strict";var r=n(133),i=n(75);t["a"]=function(){return Object(i["a"])(r["b"]).scale(176.423)}},function(e,t,n){"use strict";t["a"]=function(e,t){if(!(0<=(t=+t)&&t<=20))throw new Error("invalid digits");function n(e){var n=e.length,r=2,i=new Array(n);i[0]=+e[0].toFixed(t),i[1]=+e[1].toFixed(t);while(r<n)i[r]=e[r],++r;return i}function r(e){return e.map(n)}function i(e){return e.map(r)}function o(e){if(null==e)return e;var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(o)};break;case"Point":t={type:"Point",coordinates:n(e.coordinates)};break;case"MultiPoint":case"LineString":t={type:e.type,coordinates:r(e.coordinates)};break;case"MultiLineString":case"Polygon":t={type:e.type,coordinates:i(e.coordinates)};break;case"MultiPolygon":t={type:"MultiPolygon",coordinates:e.coordinates.map(i)};break;default:return e}return null!=e.bbox&&(t.bbox=e.bbox),t}function a(e){var t={type:"Feature",properties:e.properties,geometry:o(e.geometry)};return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),t}if(null!=e)switch(e.type){case"Feature":return a(e);case"FeatureCollection":var s={type:"FeatureCollection",features:e.features.map(a)};return null!=e.bbox&&(s.bbox=e.bbox),s;default:return o(e)}return e}},function(e,t,n){"use strict";t["b"]=o;var r=n(1),i=n(31);function o(e){var t=Object(r["y"])(e);function n(n,i){var o=t?Object(r["F"])(n*t/2)/t:n/2;if(!i)return[2*o,-e];var a=2*Object(r["f"])(o*Object(r["y"])(i)),s=1/Object(r["F"])(i);return[Object(r["y"])(a)*s,i+(1-Object(r["h"])(a))*s-e]}return n.invert=function(n,i){if(Object(r["a"])(i+=e)<r["k"])return[t?2*Object(r["f"])(t*n/2)/t:n,0];var o,a=n*n+i*i,s=0,l=10;do{var c=Object(r["F"])(s),u=1/Object(r["h"])(s),d=a-2*i*s+s*s;s-=o=(c*d+2*(s-i))/(2+d*u*u+2*(s-i)*c)}while(Object(r["a"])(o)>r["k"]&&--l>0);var f=n*(c=Object(r["F"])(s)),h=Object(r["F"])(Object(r["a"])(i)<Object(r["a"])(s+1/c)?.5*Object(r["e"])(f):.5*Object(r["b"])(f)+r["s"]/4)/Object(r["y"])(s);return[t?2*Object(r["f"])(t*h)/t:2*h,s]},n}t["a"]=function(){return Object(i["a"])(o).scale(131.215)}},function(e,t,n){"use strict";t["b"]=a;var r=n(0),i=n(1),o=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function a(e,t){var n,r=Object(i["r"])(18,36*Object(i["a"])(t)/i["s"]),a=Object(i["n"])(r),s=r-a,l=(n=o[a])[0],c=n[1],u=(n=o[++a])[0],d=n[1],f=(n=o[Object(i["r"])(19,++a)])[0],h=n[1];return[e*(u+s*(f-l)/2+s*s*(f-2*u+l)/2),(t>0?i["o"]:-i["o"])*(d+s*(h-c)/2+s*s*(h-2*d+c)/2)]}o.forEach((function(e){e[1]*=1.0144})),a.invert=function(e,t){var n=t/i["o"],r=90*n,a=Object(i["r"])(18,Object(i["a"])(r/5)),s=Object(i["q"])(0,Object(i["n"])(a));do{var l=o[s][1],c=o[s+1][1],u=o[Object(i["r"])(19,s+2)][1],d=u-l,f=u-2*c+l,h=2*(Object(i["a"])(n)-c)/d,p=f/d,m=h*(1-p*h*(1-2*p*h));if(m>=0||1===s){r=(t>=0?5:-5)*(m+a);var g,v=50;do{a=Object(i["r"])(18,Object(i["a"])(r)/5),s=Object(i["n"])(a),m=a-s,l=o[s][1],c=o[s+1][1],u=o[Object(i["r"])(19,s+2)][1],r-=(g=(t>=0?i["o"]:-i["o"])*(c+m*(u-l)/2+m*m*(u-2*c+l)/2)-t)*i["j"]}while(Object(i["a"])(g)>i["l"]&&--v>0);break}}while(--s>=0);var y=o[s][0],b=o[s+1][0],_=o[Object(i["r"])(19,s+2)][0];return[e/(b+m*(_-y)/2+m*m*(_-2*b+y)/2),r*i["v"]]},t["a"]=function(){return Object(r["geoProjection"])(a).scale(152.63)}},function(e,t,n){"use strict";t["b"]=a;var r=n(0),i=n(1);function o(e){function t(t,n){var r=Object(i["h"])(n),o=(e-1)/(e-r*Object(i["h"])(t));return[o*r*Object(i["y"])(t),o*Object(i["y"])(n)]}return t.invert=function(t,n){var r=t*t+n*n,o=Object(i["B"])(r),a=(e-Object(i["B"])(1-r*(e+1)/(e-1)))/((e-1)/o+o/(e-1));return[Object(i["g"])(t*a,o*Object(i["B"])(1-a*a)),o?Object(i["e"])(n*a/o):0]},t}function a(e,t){var n=o(e);if(!t)return n;var r=Object(i["h"])(t),a=Object(i["y"])(t);function s(t,i){var o=n(t,i),s=o[1],l=s*a/(e-1)+r;return[o[0]*r/l,s/l]}return s.invert=function(t,i){var o=(e-1)/(e-1-i*a);return n.invert(o*t,o*i*r)},s}t["a"]=function(){var e=2,t=0,n=Object(r["geoProjectionMutator"])(a),o=n(e,t);return o.distance=function(r){return arguments.length?n(e=+r,t):e},o.tilt=function(r){return arguments.length?n(e,t=r*i["v"]):t*i["j"]},o.scale(432.147).clipAngle(Object(i["b"])(1/e)*i["j"]-1e-6)}},function(e,t,n){"use strict";var r=1e-4,i=1e4,o=-180,a=o+r,s=180,l=s-r,c=-90,u=c+r,d=90,f=d-r;function h(e){return e.length>0}function p(e){return Math.floor(e*i)/i}function m(e){return e===c||e===d?[0,e]:[o,p(e)]}function g(e){var t=e[0],n=e[1],r=!1;return t<=a?(t=o,r=!0):t>=l&&(t=s,r=!0),n<=u?(n=c,r=!0):n>=f&&(n=d,r=!0),r?[t,n]:e}function v(e){return e.map(g)}function y(e,t,n){for(var r=0,i=e.length;r<i;++r){var o=e[r].slice();n.push({index:-1,polygon:t,ring:o});for(var s=0,c=o.length;s<c;++s){var d=o[s],h=d[0],p=d[1];if(h<=a||h>=l||p<=u||p>=f){o[s]=g(d);for(var v=s+1;v<c;++v){var y=o[v],b=y[0],_=y[1];if(b>a&&b<l&&_>u&&_<f)break}if(v===s+1)continue;if(s){var w={index:-1,polygon:t,ring:o.slice(0,s+1)};w.ring[w.ring.length-1]=m(p),n[n.length-1]=w}else n.pop();if(v>=c)break;n.push({index:-1,polygon:t,ring:o=o.slice(v-1)}),o[0]=m(o[0][1]),s=-1,c=o.length}}}}function b(e){var t,n,r,i,o,a,s=e.length,l={},c={};for(t=0;t<s;++t)n=e[t],r=n.ring[0],o=n.ring[n.ring.length-1],r[0]!==o[0]||r[1]!==o[1]?(n.index=t,l[r]=c[o]=n):(n.polygon.push(n.ring),e[t]=null);for(t=0;t<s;++t)if(n=e[t],n){if(r=n.ring[0],o=n.ring[n.ring.length-1],i=c[r],a=l[o],delete l[r],delete c[o],r[0]===o[0]&&r[1]===o[1]){n.polygon.push(n.ring);continue}i?(delete c[r],delete l[i.ring[0]],i.ring.pop(),e[i.index]=null,n={index:-1,polygon:i.polygon,ring:i.ring.concat(n.ring)},i===a?n.polygon.push(n.ring):(n.index=s++,e.push(l[n.ring[0]]=c[n.ring[n.ring.length-1]]=n))):a?(delete l[o],delete c[a.ring[a.ring.length-1]],n.ring.pop(),n={index:s++,polygon:a.polygon,ring:n.ring.concat(a.ring)},e[a.index]=null,e.push(l[n.ring[0]]=c[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function _(e){var t={type:"Feature",geometry:w(e.geometry)};return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}function w(e){if(null==e)return e;var t,n,r,i;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(w)};break;case"Point":t={type:"Point",coordinates:g(e.coordinates)};break;case"MultiPoint":case"LineString":t={type:e.type,coordinates:v(e.coordinates)};break;case"MultiLineString":t={type:"MultiLineString",coordinates:e.coordinates.map(v)};break;case"Polygon":var o=[];y(e.coordinates,o,n=[]),b(n),t={type:"Polygon",coordinates:o};break;case"MultiPolygon":n=[],r=-1,i=e.coordinates.length;var a=new Array(i);while(++r<i)y(e.coordinates[r],a[r]=[],n);b(n),t={type:"MultiPolygon",coordinates:a.filter(h)};break;default:return e}return null!=e.bbox&&(t.bbox=e.bbox),t}t["a"]=function(e){if(null==e)return e;switch(e.type){case"Feature":return _(e);case"FeatureCollection":var t={type:"FeatureCollection",features:e.features.map(_)};return null!=e.bbox&&(t.bbox=e.bbox),t;default:return w(e)}}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["F"])(t/2),r=Object(i["y"])(i["u"]*n);return[e*(.74482-.34588*r*r),1.70711*n]}o.invert=function(e,t){var n=t/1.70711,r=Object(i["y"])(i["u"]*n);return[e/(.74482-.34588*r*r),2*Object(i["f"])(n)]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(146.153)}},function(e,t,n){"use strict";t["b"]=a,t["c"]=s,t["a"]=l;var r=n(0),i=n(1),o=n(138);function a(e){var t=Object(i["h"])(e);function n(e,n){var i=Object(r["geoGnomonicRaw"])(e,n);return i[0]*=t,i}return n.invert=function(e,n){return r["geoGnomonicRaw"].invert(e/t,n)},n}function s(){return l([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function l(e,t){return Object(o["a"])(a,e,t)}},function(e,t,n){"use strict";t["b"]=a,t["c"]=s,t["a"]=l;var r=n(0),i=n(1),o=n(138);function a(e){if(!(e*=2))return r["geoAzimuthalEquidistantRaw"];var t=-e/2,n=-t,o=e*e,a=Object(i["F"])(n),s=.5/Object(i["y"])(n);function l(r,a){var s=Object(i["b"])(Object(i["h"])(a)*Object(i["h"])(r-t)),l=Object(i["b"])(Object(i["h"])(a)*Object(i["h"])(r-n)),c=a<0?-1:1;return s*=s,l*=l,[(s-l)/(2*e),c*Object(i["B"])(4*o*l-(o-s+l)*(o-s+l))/(2*e)]}return l.invert=function(e,r){var o,l,c=r*r,u=Object(i["h"])(Object(i["B"])(c+(o=e+t)*o)),d=Object(i["h"])(Object(i["B"])(c+(o=e+n)*o));return[Object(i["g"])(l=u-d,o=(u+d)*a),(r<0?-1:1)*Object(i["b"])(Object(i["B"])(o*o+l*l)*s)]},l}function s(){return l([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function l(e,t){return Object(o["a"])(a,e,t)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){if(Object(i["a"])(t)<i["k"])return[e,0];var n=Object(i["a"])(t/i["o"]),r=Object(i["e"])(n);if(Object(i["a"])(e)<i["k"]||Object(i["a"])(Object(i["a"])(t)-i["o"])<i["k"])return[0,Object(i["x"])(t)*i["s"]*Object(i["F"])(r/2)];var o=Object(i["h"])(r),a=Object(i["a"])(i["s"]/e-e/i["s"])/2,s=a*a,l=o/(n+o-1),c=l*(2/n-1),u=c*c,d=u+s,f=l-u,h=s+l;return[Object(i["x"])(e)*i["s"]*(a*f+Object(i["B"])(s*f*f-d*(l*l-u)))/d,Object(i["x"])(t)*i["s"]*(c*h-a*Object(i["B"])((s+1)*d-h*h))/d]}o.invert=function(e,t){if(Object(i["a"])(t)<i["k"])return[e,0];if(Object(i["a"])(e)<i["k"])return[0,i["o"]*Object(i["y"])(2*Object(i["f"])(t/i["s"]))];var n=(e/=i["s"])*e,r=(t/=i["s"])*t,o=n+r,a=o*o,s=-Object(i["a"])(t)*(1+o),l=s-2*r+n,c=-2*s+1+2*r+a,u=r/c+(2*l*l*l/(c*c*c)-9*s*l/(c*c))/27,d=(s-l*l/(3*c))/c,f=2*Object(i["B"])(-d/3),h=Object(i["b"])(3*u/(d*f))/3;return[i["s"]*(o-1+Object(i["B"])(1+2*(n-r)+a))/(2*e),Object(i["x"])(t)*i["s"]*(-f*Object(i["h"])(h+i["s"]/3)-l/(3*c))]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(79.4183)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){if(Object(i["a"])(t)<i["k"])return[e,0];var n=Object(i["a"])(t/i["o"]),r=Object(i["e"])(n);if(Object(i["a"])(e)<i["k"]||Object(i["a"])(Object(i["a"])(t)-i["o"])<i["k"])return[0,Object(i["x"])(t)*i["s"]*Object(i["F"])(r/2)];var o=Object(i["h"])(r),a=Object(i["a"])(i["s"]/e-e/i["s"])/2,s=a*a,l=o*(Object(i["B"])(1+s)-a*o)/(1+s*n*n);return[Object(i["x"])(e)*i["s"]*l,Object(i["x"])(t)*i["s"]*Object(i["B"])(1-l*(2*a+l))]}o.invert=function(e,t){if(!e)return[0,i["o"]*Object(i["y"])(2*Object(i["f"])(t/i["s"]))];var n=Object(i["a"])(e/i["s"]),r=(1-n*n-(t/=i["s"])*t)/(2*n),o=r*r,a=Object(i["B"])(o+1);return[Object(i["x"])(e)*i["s"]*(a-r),Object(i["x"])(t)*i["o"]*Object(i["y"])(2*Object(i["g"])(Object(i["B"])((1-2*r*n)*(r+a)-n),Object(i["B"])(a+r+n)))]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(79.4183)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){if(Object(i["a"])(t)<i["k"])return[e,0];var n=t/i["o"],r=Object(i["e"])(n);if(Object(i["a"])(e)<i["k"]||Object(i["a"])(Object(i["a"])(t)-i["o"])<i["k"])return[0,i["s"]*Object(i["F"])(r/2)];var o=(i["s"]/e-e/i["s"])/2,a=n/(1+Object(i["h"])(r));return[i["s"]*(Object(i["x"])(e)*Object(i["B"])(o*o+1-a*a)-o),i["s"]*a]}o.invert=function(e,t){if(!t)return[e,0];var n=t/i["s"],r=(i["s"]*i["s"]*(1-n*n)-e*e)/(2*i["s"]*e);return[e?i["s"]*(Object(i["x"])(e)*Object(i["B"])(r*r+1)-r):0,i["o"]*Object(i["y"])(2*Object(i["f"])(n))]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(79.4183)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){if(!t)return[e,0];var n=Object(i["a"])(t);if(!e||n===i["o"])return[0,t];var r=n/i["o"],o=r*r,a=(8*r-o*(o+2)-5)/(2*o*(r-1)),s=a*a,l=r*a,c=o+s+2*l,u=r+3*a,d=e/i["o"],f=d+1/d,h=Object(i["x"])(Object(i["a"])(e)-i["o"])*Object(i["B"])(f*f-4),p=h*h,m=c*(o+s*p-1)+(1-o)*(o*(u*u+4*s)+12*l*s+4*s*s),g=(h*(c+s-1)+2*Object(i["B"])(m))/(4*c+p);return[Object(i["x"])(e)*i["o"]*g,Object(i["x"])(t)*i["o"]*Object(i["B"])(1+h*Object(i["a"])(g)-g*g)]}o.invert=function(e,t){var n;if(!e||!t)return[e,t];t/=i["s"];var r=Object(i["x"])(e)*e/i["o"],o=(r*r-1+4*t*t)/Object(i["a"])(r),a=o*o,s=2*t,l=50;do{var c=s*s,u=(8*s-c*(c+2)-5)/(2*c*(s-1)),d=(3*s-c*s-10)/(2*c*s),f=u*u,h=s*u,p=s+u,m=p*p,g=s+3*u,v=m*(c+f*a-1)+(1-c)*(c*(g*g+4*f)+f*(12*h+4*f)),y=-2*p*(4*h*f+(1-4*c+3*c*c)*(1+d)+f*(14*c-6-a+(8*c-8-2*a)*d)+h*(12*c-8+(10*c-10-a)*d)),b=Object(i["B"])(v),_=o*(m+f-1)+2*b-r*(4*m+a),w=o*(2*u*d+2*p*(1+d))+y/b-8*p*(o*(-1+f+m)+2*b)*(1+d)/(a+4*m);s-=n=_/w}while(n>i["k"]&&--l>0);return[Object(i["x"])(e)*(Object(i["B"])(o*o+4)+o)*i["s"]/4,i["o"]*s]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(127.16)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(0),i=n(1),o=n(21),a=4*i["s"]+3*Object(i["B"])(3),s=2*Object(i["B"])(2*i["s"]*Object(i["B"])(3)/a),l=Object(o["b"])(s*Object(i["B"])(3)/i["s"],s,a/6);t["a"]=function(){return Object(r["geoProjection"])(l).scale(176.84)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){return[e*Object(i["B"])(1-3*t*t/(i["s"]*i["s"])),t]}o.invert=function(e,t){return[e/Object(i["B"])(1-3*t*t/(i["s"]*i["s"])),t]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(152.63)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=.90631*Object(i["y"])(t),r=Object(i["B"])(1-n*n),o=Object(i["B"])(2/(1+r*Object(i["h"])(e/=3)));return[2.66723*r*o*Object(i["y"])(e),1.24104*n*o]}o.invert=function(e,t){var n=e/2.66723,r=t/1.24104,o=Object(i["B"])(n*n+r*r),a=2*Object(i["e"])(o/2);return[3*Object(i["g"])(e*Object(i["F"])(a),2.66723*o),o&&Object(i["e"])(t*Object(i["y"])(a)/(1.24104*.90631*o))]},t["a"]=function(){return Object(r["geoProjection"])(o).scale(172.632)}},function(e,t,n){"use strict";t["b"]=o;var r=n(0),i=n(1);function o(e,t){var n=Object(i["h"])(t),r=Object(i["h"])(e)*n,o=1-r,a=Object(i["h"])(e=Object(i["g"])(Object(i["y"])(e)*n,-Object(i["y"])(t))),s=Object(i["y"])(e);return n=Object(i["B"])(1-r*r),[s*n-a*o,-a*n-s*o]}o.invert=function(e,t){var n=(e*e+t*t)/-2,r=Object(i["B"])(-n*(2+n)),o=t*n+e*r,a=e*n-t*r,s=Object(i["B"])(a*a+o*o);return[Object(i["g"])(r*o,s*(1+n)),s?-Object(i["e"])(r*a/s):0]},t["a"]=function(){return Object(r["geoProjection"])(o).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}},function(e,t,n){"use strict";t["b"]=a;var r=n(0),i=n(129),o=n(1);function a(e,t){var n=Object(i["a"])(e,t);return[(n[0]+e/o["o"])/2,(n[1]+t)/2]}a.invert=function(e,t){var n=e,r=t,i=25;do{var a,s=Object(o["h"])(r),l=Object(o["y"])(r),c=Object(o["y"])(2*r),u=l*l,d=s*s,f=Object(o["y"])(n),h=Object(o["h"])(n/2),p=Object(o["y"])(n/2),m=p*p,g=1-d*h*h,v=g?Object(o["b"])(s*h)*Object(o["B"])(a=1/g):a=0,y=.5*(2*v*s*p+n/o["o"])-e,b=.5*(v*l+r)-t,_=.5*a*(d*m+v*s*h*u)+.5/o["o"],w=a*(f*c/4-v*l*p),x=.125*a*(c*p-v*l*d*f),S=.5*a*(u*h+v*m*s)+.5,C=w*x-S*_,E=(b*w-y*S)/C,k=(y*x-b*_)/C;n-=E,r-=k}while((Object(o["a"])(E)>o["k"]||Object(o["a"])(k)>o["k"])&&--i>0);return[n,r]},t["a"]=function(){return Object(r["geoProjection"])(a).scale(158.837)}},function(e,t,n){var r=n(11),i=n(54),o=n(140);function a(e,t){var n=void 0;if(r(t)&&(n=t),i(t)&&(n=function(e){return o(e,t)}),n)for(var a=0;a<e.length;a+=1)if(n(e[a]))return e[a];return null}e.exports=a},function(e,t){var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e){return"object"===("undefined"===typeof e?"undefined":n(e))&&null!==e};e.exports=r},function(e,t,n){(function(e,r){r(t,n(323),n(33))})(0,(function(e,t,n){"use strict";var r=1e-6;function i(){}var o=1/0,a=o,s=-o,l=s,c={point:u,lineStart:i,lineEnd:i,polygonStart:i,polygonEnd:i,result:function(){var e=[[o,a],[s,l]];return s=l=-(a=o=1/0),e}};function u(e,t){e<o&&(o=e),e>s&&(s=e),t<a&&(a=t),t>l&&(l=t)}function d(e,n,r){var i=n[1][0]-n[0][0],o=n[1][1]-n[0][1],a=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=a&&e.clipExtent(null),t.geoStream(r,e.stream(c));var s=c.result(),l=Math.min(i/(s[1][0]-s[0][0]),o/(s[1][1]-s[0][1])),u=+n[0][0]+(i-l*(s[1][0]+s[0][0]))/2,d=+n[0][1]+(o-l*(s[1][1]+s[0][1]))/2;return null!=a&&e.clipExtent(a),e.scale(150*l).translate([u,d])}function f(e,t,n){return d(e,[[0,0],t],n)}function h(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function p(){var e,i,o,a,s,l,c=t.geoAlbers(),u=t.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),p=t.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),m={point:function(e,t){l=[e,t]}};function g(e){var t=e[0],n=e[1];return l=null,o.point(t,n),l||(a.point(t,n),l)||(s.point(t,n),l)}function v(){return e=i=null,g}return g.invert=function(e){var t=c.scale(),n=c.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?p:c).invert(e)},g.stream=function(t){return e&&i===t?e:e=h([c.stream(i=t),u.stream(t),p.stream(t)])},g.precision=function(e){return arguments.length?(c.precision(e),u.precision(e),p.precision(e),v()):c.precision()},g.scale=function(e){return arguments.length?(c.scale(e),u.scale(.35*e),p.scale(e),g.translate(c.translate())):c.scale()},g.translate=function(e){if(!arguments.length)return c.translate();var t=c.scale(),n=+e[0],i=+e[1];return o=c.translate(e).clipExtent([[n-.455*t,i-.238*t],[n+.455*t,i+.238*t]]).stream(m),a=u.translate([n-.307*t,i+.201*t]).clipExtent([[n-.425*t+r,i+.12*t+r],[n-.214*t-r,i+.234*t-r]]).stream(m),s=p.translate([n-.205*t,i+.212*t]).clipExtent([[n-.214*t+r,i+.166*t+r],[n-.115*t-r,i+.234*t-r]]).stream(m),v()},g.fitExtent=function(e,t){return d(g,e,t)},g.fitSize=function(e,t){return f(g,e,t)},g.drawCompositionBorders=function(e){var t=c([-102.91,26.3]),n=c([-104,27.5]),r=c([-108,29.1]),i=c([-110,29.1]),o=c([-110,26.7]),a=c([-112.8,27.6]),s=c([-114.3,30.6]),l=c([-119.3,30.1]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.moveTo(o[0],o[1]),e.lineTo(a[0],a[1]),e.lineTo(s[0],s[1]),e.lineTo(l[0],l[1])},g.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},g.scale(1070)}function m(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function g(){var e,i,o,a,s,l,c,u,h,p=t.geoAlbers(),g=t.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),v=t.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),y=t.geoConicEqualArea().rotate([66,0]).center([0,18]).parallels([8,18]),b=t.geoEquirectangular().rotate([173,14]),_=t.geoEquirectangular().rotate([-145,-16.8]),w={point:function(e,t){h=[e,t]}};function x(e){var t=e[0],n=e[1];return h=null,o.point(t,n),h||(a.point(t,n),h)||(s.point(t,n),h)||(l.point(t,n),h)||(c.point(t,n),h)||(u.point(t,n),h)}function S(){return e=i=null,x}return x.invert=function(e){var t=p.scale(),n=p.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?g:i>=.166&&i<.234&&r>=-.214&&r<-.115?v:i>=.2064&&i<.2413&&r>=.312&&r<.385?y:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?b:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?_:p).invert(e)},x.stream=function(t){return e&&i===t?e:e=m([p.stream(i=t),g.stream(t),v.stream(t),y.stream(t),b.stream(t),_.stream(t)])},x.precision=function(e){return arguments.length?(p.precision(e),g.precision(e),v.precision(e),y.precision(e),b.precision(e),_.precision(e),S()):p.precision()},x.scale=function(e){return arguments.length?(p.scale(e),g.scale(.35*e),v.scale(e),y.scale(e),b.scale(2*e),_.scale(e),x.translate(p.translate())):p.scale()},x.translate=function(e){if(!arguments.length)return p.translate();var t=p.scale(),n=+e[0],i=+e[1];return o=p.translate(e).clipExtent([[n-.455*t,i-.238*t],[n+.455*t,i+.238*t]]).stream(w),a=g.translate([n-.307*t,i+.201*t]).clipExtent([[n-.425*t+r,i+.12*t+r],[n-.214*t-r,i+.233*t-r]]).stream(w),s=v.translate([n-.205*t,i+.212*t]).clipExtent([[n-.214*t+r,i+.166*t+r],[n-.115*t-r,i+.233*t-r]]).stream(w),l=y.translate([n+.35*t,i+.224*t]).clipExtent([[n+.312*t+r,i+.2064*t+r],[n+.385*t-r,i+.233*t-r]]).stream(w),c=b.translate([n-.492*t,i+.09*t]).clipExtent([[n-.4243*t+r,i+.0903*t+r],[n-.3233*t-r,i+.1197*t-r]]).stream(w),u=_.translate([n-.408*t,i+.018*t]).clipExtent([[n-.4244*t+r,i-.0519*t+r],[n-.3824*t-r,i+.0895*t-r]]).stream(w),S()},x.fitExtent=function(e,t){return d(x,e,t)},x.fitSize=function(e,t){return f(x,e,t)},x.drawCompositionBorders=function(e){var t=p([-110.4641,28.2805]),n=p([-104.0597,28.9528]),r=p([-103.7049,25.1031]),i=p([-109.8337,24.4531]),o=p([-124.4745,28.1407]),a=p([-110.931,30.8844]),s=p([-109.8337,24.4531]),l=p([-122.4628,21.8562]),c=p([-76.8579,25.1544]),u=p([-72.429,24.2097]),d=p([-72.8265,22.7056]),f=p([-77.1852,23.6392]),h=p([-125.0093,29.7791]),m=p([-118.5193,31.3262]),g=p([-118.064,29.6912]),v=p([-124.4369,28.169]),y=p([-128.1314,37.4582]),b=p([-125.2132,38.214]),_=p([-122.3616,30.5115]),w=p([-125.0315,29.8211]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),e.moveTo(o[0],o[1]),e.lineTo(a[0],a[1]),e.lineTo(s[0],s[1]),e.lineTo(s[0],s[1]),e.lineTo(l[0],l[1]),e.closePath(),e.moveTo(c[0],c[1]),e.lineTo(u[0],u[1]),e.lineTo(d[0],d[1]),e.lineTo(d[0],d[1]),e.lineTo(f[0],f[1]),e.closePath(),e.moveTo(h[0],h[1]),e.lineTo(m[0],m[1]),e.lineTo(g[0],g[1]),e.lineTo(g[0],g[1]),e.lineTo(v[0],v[1]),e.closePath(),e.moveTo(y[0],y[1]),e.lineTo(b[0],b[1]),e.lineTo(_[0],_[1]),e.lineTo(_[0],_[1]),e.lineTo(w[0],w[1]),e.closePath()},x.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},x.scale(1070)}function v(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function y(){var e,i,o,a,s,l=t.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),c=t.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),u={point:function(e,t){s=[e,t]}};function h(e){var t=e[0],n=e[1];return s=null,o.point(t,n),s||(a.point(t,n),s)}function p(){return e=i=null,h}return h.invert=function(e){var t=l.scale(),n=l.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.05346&&i<.0897&&r>=-.13388&&r<-.0322?c:l).invert(e)},h.stream=function(t){return e&&i===t?e:e=v([l.stream(i=t),c.stream(t)])},h.precision=function(e){return arguments.length?(l.precision(e),c.precision(e),p()):l.precision()},h.scale=function(e){return arguments.length?(l.scale(e),c.scale(e),h.translate(l.translate())):l.scale()},h.translate=function(e){if(!arguments.length)return l.translate();var t=l.scale(),n=+e[0],i=+e[1];return o=l.translate(e).clipExtent([[n-.06857*t,i-.1288*t],[n+.13249*t,i+.06*t]]).stream(u),a=c.translate([n+.1*t,i-.094*t]).clipExtent([[n-.1331*t+r,i+.053457*t+r],[n-.0354*t-r,i+.08969*t-r]]).stream(u),p()},h.fitExtent=function(e,t){return d(h,e,t)},h.fitSize=function(e,t){return f(h,e,t)},h.drawCompositionBorders=function(e){var t=l([-14.034675,34.965007]),n=l([-7.4208899,35.536988]),r=l([-7.3148275,33.54359]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1])},h.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},h.scale(2700)}function b(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function _(){var e,i,o,a,s,l,c=t.geoConicConformal().rotate([10,-39.3]).parallels([0,60]),u=t.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),h=t.geoConicConformal().rotate([27.8,-38.6]).parallels([0,60]),p={point:function(e,t){l=[e,t]}};function m(e){var t=e[0],n=e[1];return l=null,o.point(t,n),l||(a.point(t,n),l)||(s.point(t,n),l)}function g(){return e=i=null,m}return m.invert=function(e){var t=c.scale(),n=c.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.0093&&i<.03678&&r>=-.03875&&r<-.0116?u:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?h:c).invert(e)},m.stream=function(t){return e&&i===t?e:e=b([c.stream(i=t),u.stream(t),h.stream(t)])},m.precision=function(e){return arguments.length?(c.precision(e),u.precision(e),h.precision(e),g()):c.precision()},m.scale=function(e){return arguments.length?(c.scale(e),u.scale(e),h.scale(.6*e),m.translate(c.translate())):c.scale()},m.translate=function(e){if(!arguments.length)return c.translate();var t=c.scale(),n=+e[0],i=+e[1];return o=c.translate(e).clipExtent([[n-.0115*t,i-.1138*t],[n+.2105*t,i+.0673*t]]).stream(p),a=u.translate([n-.0265*t,i+.025*t]).clipExtent([[n-.0388*t+r,i+.0093*t+r],[n-.0116*t-r,i+.0368*t-r]]).stream(p),s=h.translate([n-.045*t,i+-.02*t]).clipExtent([[n-.0778*t+r,i-.0413*t+r],[n-.0117*t-r,i+.0091*t-r]]).stream(p),g()},m.fitExtent=function(e,t){return d(m,e,t)},m.fitSize=function(e,t){return f(m,e,t)},m.drawCompositionBorders=function(e){var t=c([-12.8351,38.7113]),n=c([-10.8482,38.7633]),r=c([-10.8181,37.2072]),i=c([-12.7345,37.1573]),o=c([-16.0753,41.4436]),a=c([-10.9168,41.6861]),s=c([-10.8557,38.7747]),l=c([-15.6728,38.5505]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),e.moveTo(o[0],o[1]),e.lineTo(a[0],a[1]),e.lineTo(s[0],s[1]),e.lineTo(s[0],s[1]),e.lineTo(l[0],l[1]),e.closePath()},m.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},m.scale(4200)}function w(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function x(){var e,i,o,a,s,l=t.geoMercator().rotate([80,1.5]),c=t.geoMercator().rotate([90.73,1]),u={point:function(e,t){s=[e,t]}};function h(e){var t=e[0],n=e[1];return s=null,o.point(t,n),s||(a.point(t,n),s)}function p(){return e=i=null,h}return h.invert=function(e){var t=l.scale(),n=l.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?c:l).invert(e)},h.stream=function(t){return e&&i===t?e:e=w([l.stream(i=t),c.stream(t)])},h.precision=function(e){return arguments.length?(l.precision(e),c.precision(e),p()):l.precision()},h.scale=function(e){return arguments.length?(l.scale(e),c.scale(e),h.translate(l.translate())):l.scale()},h.translate=function(e){if(!arguments.length)return l.translate();var t=l.scale(),n=+e[0],i=+e[1];return o=l.translate(e).clipExtent([[n-.0262*t,i-.0734*t],[n+.1741*t,i+.079*t]]).stream(u),a=c.translate([n-.06*t,i-.04*t]).clipExtent([[n-.0857*t+r,i-.0676*t+r],[n-.0263*t-r,i-.026*t-r]]).stream(u),p()},h.fitExtent=function(e,t){return d(h,e,t)},h.fitSize=function(e,t){return f(h,e,t)},h.drawCompositionBorders=function(e){var t=l([-84.9032,2.3757]),n=l([-81.5047,2.3708]),r=l([-81.5063,-.01]),i=l([-84.9086,-.005]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath()},h.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},h.scale(3500)}function S(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function C(){var e,i,o,a,s,l,c,u=t.geoTransverseMercator().rotate([72,37]),h=t.geoStereographic().rotate([72,0]),p=t.geoMercator().rotate([80,33.5]),m=t.geoMercator().rotate([110,25]),g={point:function(e,t){c=[e,t]}};function v(e){var t=e[0],n=e[1];return c=null,o.point(t,n),c||(a.point(t,n),c)||(s.point(t,n),c)||(l.point(t,n),c)}function y(){return e=i=null,v}return v.invert=function(e){var t=u.scale(),n=u.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.2582&&i<.32&&r>=-.1036&&r<-.087?h:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?p:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?m:u).invert(e)},v.stream=function(t){return e&&i===t?e:e=S([u.stream(i=t),h.stream(t),p.stream(t),m.stream(t)])},v.precision=function(e){return arguments.length?(u.precision(e),h.precision(e),p.precision(e),m.precision(e),y()):u.precision()},v.scale=function(e){return arguments.length?(u.scale(e),h.scale(.15*e),p.scale(1.5*e),m.scale(1.5*e),v.translate(u.translate())):u.scale()},v.translate=function(e){if(!arguments.length)return u.translate();var t=u.scale(),n=+e[0],i=+e[1];return o=u.translate(e).clipExtent([[n-.059*t,i-.3835*t],[n+.4498*t,i+.3375*t]]).stream(g),a=h.translate([n-.087*t,i+.17*t]).clipExtent([[n-.1166*t+r,i+.2582*t+r],[n-.06*t-r,i+.32*t-r]]).stream(g),s=p.translate([n-.092*t,i-0*t]).clipExtent([[n-.114*t+r,i-.013*t+r],[n-.0594*t-r,i+.0133*t-r]]).stream(g),l=m.translate([n-.089*t,i-.0265*t]).clipExtent([[n-.089*t+r,i+.0154*t+r],[n-.0588*t-r,i+.0391*t-r]]).stream(g),y()},v.fitExtent=function(e,t){return d(v,e,t)},v.fitSize=function(e,t){return f(v,e,t)},v.drawCompositionBorders=function(e){var t=u([-82.6999,-51.3043]),n=u([-77.5442,-51.6631]),r=u([-78.0254,-55.186]),i=u([-83.6106,-54.7785]),o=u([-80.0638,-35.984]),a=u([-76.2153,-36.1811]),s=u([-76.2994,-37.6839]),l=u([-80.2231,-37.4757]),c=u([-78.442,-37.706]),d=u([-76.263,-37.8054]),f=u([-76.344,-39.1595]),h=u([-78.5638,-39.0559]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),e.moveTo(o[0],o[1]),e.lineTo(a[0],a[1]),e.lineTo(s[0],s[1]),e.lineTo(s[0],s[1]),e.lineTo(l[0],l[1]),e.closePath(),e.moveTo(c[0],c[1]),e.lineTo(d[0],d[1]),e.lineTo(f[0],f[1]),e.lineTo(f[0],f[1]),e.lineTo(h[0],h[1]),e.closePath()},v.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},v.scale(700)}function E(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function k(){var e,i,o,a,s,l,c=t.geoConicEquidistant().rotate([-136,-22]).parallels([40,34]),u=t.geoConicEquidistant().rotate([-146,-26]).parallels([40,34]),h=t.geoConicEquidistant().rotate([-126,-19]).parallels([40,34]),p={point:function(e,t){l=[e,t]}};function m(e){var t=e[0],n=e[1];return l=null,o.point(t,n),l||(a.point(t,n),l)||(s.point(t,n),l)}function g(){return e=i=null,m}return m.invert=function(e){var t=c.scale(),n=c.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?u:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?h:c).invert(e)},m.stream=function(t){return e&&i===t?e:e=E([c.stream(i=t),u.stream(t),h.stream(t)])},m.precision=function(e){return arguments.length?(c.precision(e),u.precision(e),h.precision(e),g()):c.precision()},m.scale=function(e){return arguments.length?(c.scale(e),u.scale(e),h.scale(.7*e),m.translate(c.translate())):c.scale()},m.translate=function(e){if(!arguments.length)return c.translate();var t=c.scale(),n=+e[0],i=+e[1];return o=c.translate(e).clipExtent([[n-.1352*t,i-.1091*t],[n+.117*t,i+.098*t]]).stream(p),a=u.translate([n-.0425*t,i-.005*t]).clipExtent([[n-.135*t+r,i-.1093*t+r],[n-.0397*t-r,i-.027*t-r]]).stream(p),s=h.translate(e).clipExtent([[n-.0399*t+r,i+.0471*t+r],[n+.051*t-r,i+.1114*t-r]]).stream(p),g()},m.fitExtent=function(e,t){return d(m,e,t)},m.fitSize=function(e,t){return f(m,e,t)},m.drawCompositionBorders=function(e){var t=c([126.01320483689143,41.621090310215585]),n=c([133.04304387025903,42.15087523707186]),r=c([133.3021766080688,37.43975444725098]),i=c([126.87889168628224,36.95488945159779]),o=c([132.9,29.8]),a=c([134,33]),s=c([139.3,33.2]),l=c([139.16,30.5]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),e.moveTo(o[0],o[1]),e.lineTo(a[0],a[1]),e.lineTo(s[0],s[1]),e.lineTo(l[0],l[1])},m.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},m.scale(2200)}function O(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function T(){var e,i,o,a,s,l,c,u,h,p,m,g,v,y,b,_=t.geoConicConformal().rotate([-3,-46.2]).parallels([0,60]),w=t.geoMercator().center([-53.2,3.9]),x=t.geoMercator().center([-61.03,14.67]),S=t.geoMercator().center([-61.46,16.14]),C=t.geoMercator().center([-62.85,17.92]),E=t.geoMercator().center([-56.23,46.93]),k=t.geoMercator().center([45.16,-12.8]),T=t.geoMercator().center([55.52,-21.13]),I=t.geoMercator().center([165.8,-21.07]),A=t.geoMercator().center([-178.1,-14.3]),R=t.geoMercator().center([-150.55,-17.11]),P=t.geoMercator().center([-150.55,-17.11]),M={point:function(e,t){b=[e,t]}};function N(e){var t=e[0],n=e[1];return b=null,o.point(t,n),b||(a.point(t,n),b)||(s.point(t,n),b)||(l.point(t,n),b)||(c.point(t,n),b)||(u.point(t,n),b)||(h.point(t,n),b)||(p.point(t,n),b)||(m.point(t,n),b)||(g.point(t,n),b)||(v.point(t,n),b)||(y.point(t,n),b)}function L(){return e=i=null,N}return N.invert=function(e){var t=_.scale(),n=_.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.029&&i<.0864&&r>=-.14&&r<-.0996?w:i>=0&&i<.029&&r>=-.14&&r<-.0996?x:i>=-.032&&i<0&&r>=-.14&&r<-.0996?S:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?C:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?E:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?k:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?T:i>=-.02&&i<.012&&r>=.0967&&r<.1371?I:i>=.012&&i<.033&&r>=.0967&&r<.1371?A:i>=.033&&i<.0864&&r>=.0967&&r<.1371?R:_).invert(e)},N.stream=function(t){return e&&i===t?e:e=O([_.stream(i=t),w.stream(t),x.stream(t),S.stream(t),C.stream(t),E.stream(t),k.stream(t),T.stream(t),I.stream(t),A.stream(t),R.stream(t),P.stream(t)])},N.precision=function(e){return arguments.length?(_.precision(e),w.precision(e),x.precision(e),S.precision(e),C.precision(e),E.precision(e),k.precision(e),T.precision(e),I.precision(e),A.precision(e),R.precision(e),P.precision(e),L()):_.precision()},N.scale=function(e){return arguments.length?(_.scale(e),w.scale(.6*e),x.scale(1.6*e),S.scale(1.4*e),C.scale(5*e),E.scale(1.3*e),k.scale(1.6*e),T.scale(1.2*e),I.scale(.3*e),A.scale(2.7*e),R.scale(.5*e),P.scale(.06*e),N.translate(_.translate())):_.scale()},N.translate=function(e){if(!arguments.length)return _.translate();var t=_.scale(),n=+e[0],i=+e[1];return o=_.translate(e).clipExtent([[n-.0996*t,i-.0908*t],[n+.0967*t,i+.0864*t]]).stream(M),a=w.translate([n-.12*t,i+.0575*t]).clipExtent([[n-.14*t+r,i+.029*t+r],[n-.0996*t-r,i+.0864*t-r]]).stream(M),s=x.translate([n-.12*t,i+.013*t]).clipExtent([[n-.14*t+r,i+0*t+r],[n-.0996*t-r,i+.029*t-r]]).stream(M),l=S.translate([n-.12*t,i-.014*t]).clipExtent([[n-.14*t+r,i-.032*t+r],[n-.0996*t-r,i+0*t-r]]).stream(M),c=C.translate([n-.12*t,i-.044*t]).clipExtent([[n-.14*t+r,i-.052*t+r],[n-.0996*t-r,i-.032*t-r]]).stream(M),u=E.translate([n-.12*t,i-.065*t]).clipExtent([[n-.14*t+r,i-.076*t+r],[n-.0996*t-r,i-.052*t-r]]).stream(M),h=k.translate([n+.117*t,i-.064*t]).clipExtent([[n+.0967*t+r,i-.076*t+r],[n+.1371*t-r,i-.052*t-r]]).stream(M),p=T.translate([n+.116*t,i-.0355*t]).clipExtent([[n+.0967*t+r,i-.052*t+r],[n+.1371*t-r,i-.02*t-r]]).stream(M),m=I.translate([n+.116*t,i-.0048*t]).clipExtent([[n+.0967*t+r,i-.02*t+r],[n+.1371*t-r,i+.012*t-r]]).stream(M),g=A.translate([n+.116*t,i+.022*t]).clipExtent([[n+.0967*t+r,i+.012*t+r],[n+.1371*t-r,i+.033*t-r]]).stream(M),y=P.translate([n+.11*t,i+.045*t]).clipExtent([[n+.0967*t+r,i+.033*t+r],[n+.1371*t-r,i+.06*t-r]]).stream(M),v=R.translate([n+.115*t,i+.075*t]).clipExtent([[n+.0967*t+r,i+.06*t+r],[n+.1371*t-r,i+.0864*t-r]]).stream(M),L()},N.fitExtent=function(e,t){return d(N,e,t)},N.fitSize=function(e,t){return f(N,e,t)},N.drawCompositionBorders=function(e){var t,n,r,i;t=_([-7.938886725111036,43.7219460918835]),n=_([-4.832080896458295,44.12930268549372]),r=_([-4.205299743793263,40.98096346967365]),i=_([-7.071796453126152,40.610037319181444]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([-8.42751373617692,45.32889452553031]),n=_([-5.18599305777107,45.7566442062976]),r=_([-4.832080905154431,44.129302726751426]),i=_([-7.938886737126192,43.72194613263854]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([-9.012656899657046,47.127733821030176]),n=_([-5.6105244772793155,47.579777861410626]),r=_([-5.185993067168585,45.756644248170346]),i=_([-8.427513749141811,45.32889456686326]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([-9.405747558985553,48.26506375557457]),n=_([-5.896175018439575,48.733352850851624]),r=_([-5.610524487556043,47.57977790393761]),i=_([-9.012656913808351,47.127733862971255]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([-9.908436061346974,49.642448789505856]),n=_([-6.262026716233124,50.131426841787174]),r=_([-5.896175029331232,48.73335289377258]),i=_([-9.40574757396393,48.26506379787767]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([11.996907706504462,50.16039028163579]),n=_([15.649907879773343,49.68279246765253]),r=_([15.156712840526632,48.30371557625831]),i=_([11.64122661754411,48.761078240546816]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([11.641226606955788,48.7610781975889]),n=_([15.156712825832164,48.30371553390465]),r=_([14.549932166241172,46.4866532486199]),i=_([11.204443787952183,46.91899233914248]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([11.204443778297161,46.918992296823646]),n=_([14.549932152815039,46.486653206856396]),r=_([13.994409796764009,44.695833444323256]),i=_([10.805306599253848,45.105133870684924]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([10.805306590412085,45.10513382903308]),n=_([13.99440978444733,44.695833403183606]),r=_([13.654633799024392,43.53552468558152]),i=_([10.561516803980956,43.930671459798624]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([10.561516795617383,43.93067141859757]),n=_([13.654633787361952,43.5355246448671]),r=_([12.867691604239901,40.640701985019405]),i=_([9.997809515987688,41.00288343254471]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([10.8,42.4]),n=_([12.8,42.13]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1])},N.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},N.scale(2700)}function I(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function A(){var e,i,o,a,s,l,c,u,h,p,m,g,v,y,b,_=t.geoConicConformal().rotate([-10,-53]).parallels([0,60]),w=t.geoMercator().center([-61.46,16.14]),x=t.geoMercator().center([-53.2,3.9]),S=t.geoConicConformal().rotate([27.8,-38.9]).parallels([0,60]),C=t.geoConicConformal().rotate([25.43,-37.398]).parallels([0,60]),E=t.geoConicConformal().rotate([31.17,-39.539]).parallels([0,60]),k=t.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),O=t.geoConicConformal().rotate([16,-28.5]).parallels([0,60]),T=t.geoMercator().center([-61.03,14.67]),A=t.geoMercator().center([45.16,-12.8]),R=t.geoMercator().center([55.52,-21.13]),P=t.geoConicConformal().rotate([-14.4,-35.95]).parallels([0,60]),M={point:function(e,t){b=[e,t]}};function N(e){var t=e[0],n=e[1];return b=null,o.point(t,n),b||(s.point(t,n),b)||(m.point(t,n),b)||(a.point(t,n),b)||(p.point(t,n),b)||(h.point(t,n),b)||(g.point(t,n),b)||(v.point(t,n),b)||(y.point(t,n),b)||(l.point(t,n),b)||(c.point(t,n),b)||(u.point(t,n),b)}function L(){return e=i=null,N}return N.invert=function(e){var t=_.scale(),n=_.translate(),r=(e[0]-(n[0]+.08*t))/t,i=(e[1]-n[1])/t;return(i>=-.31&&i<-.24&&r>=.14&&r<.24?w:i>=-.24&&i<-.17&&r>=.14&&r<.24?x:i>=-.17&&i<-.12&&r>=.21&&r<.24?C:i>=-.17&&i<-.14&&r>=.14&&r<.165?E:i>=-.17&&i<-.1&&r>=.14&&r<.24?S:i>=-.1&&i<-.03&&r>=.14&&r<.24?k:i>=-.03&&i<.04&&r>=.14&&r<.24?O:i>=-.31&&i<-.24&&r>=.24&&r<.34?T:i>=-.24&&i<-.17&&r>=.24&&r<.34?A:i>=-.17&&i<-.1&&r>=.24&&r<.34?R:i>=-.1&&i<-.03&&r>=.24&&r<.34?P:_).invert(e)},N.stream=function(t){return e&&i===t?e:e=I([_.stream(i=t),x.stream(t),T.stream(t),w.stream(t),O.stream(t),k.stream(t),A.stream(t),R.stream(t),P.stream(t),S.stream(t),C.stream(t),E.stream(t)])},N.precision=function(e){return arguments.length?(_.precision(e),x.precision(e),T.precision(e),w.precision(e),O.precision(e),k.precision(e),A.precision(e),R.precision(e),P.precision(e),S.precision(e),C.precision(e),E.precision(e),L()):_.precision()},N.scale=function(e){return arguments.length?(_.scale(e),w.scale(3*e),x.scale(.8*e),T.scale(3.5*e),R.scale(2.7*e),S.scale(2*e),C.scale(2*e),E.scale(2*e),k.scale(3*e),O.scale(e),A.scale(5.5*e),P.scale(6*e),N.translate(_.translate())):_.scale()},N.translate=function(e){if(!arguments.length)return _.translate();var t=_.scale(),n=+e[0],i=+e[1];return o=_.translate([n-.08*t,i]).clipExtent([[n-.51*t,i-.33*t],[n+.5*t,i+.33*t]]).stream(M),a=w.translate([n+.19*t,i-.275*t]).clipExtent([[n+.14*t+r,i-.31*t+r],[n+.24*t-r,i-.24*t-r]]).stream(M),s=x.translate([n+.19*t,i-.205*t]).clipExtent([[n+.14*t+r,i-.24*t+r],[n+.24*t-r,i-.17*t-r]]).stream(M),l=S.translate([n+.19*t,i-.135*t]).clipExtent([[n+.14*t+r,i-.17*t+r],[n+.24*t-r,i-.1*t-r]]).stream(M),c=C.translate([n+.225*t,i-.147*t]).clipExtent([[n+.21*t+r,i-.17*t+r],[n+.24*t-r,i-.12*t-r]]).stream(M),u=E.translate([n+.153*t,i-.15*t]).clipExtent([[n+.14*t+r,i-.17*t+r],[n+.165*t-r,i-.14*t-r]]).stream(M),h=k.translate([n+.19*t,i-.065*t]).clipExtent([[n+.14*t+r,i-.1*t+r],[n+.24*t-r,i-.03*t-r]]).stream(M),p=O.translate([n+.19*t,i+.005*t]).clipExtent([[n+.14*t+r,i-.03*t+r],[n+.24*t-r,i+.04*t-r]]).stream(M),m=T.translate([n+.29*t,i-.275*t]).clipExtent([[n+.24*t+r,i-.31*t+r],[n+.34*t-r,i-.24*t-r]]).stream(M),g=A.translate([n+.29*t,i-.205*t]).clipExtent([[n+.24*t+r,i-.24*t+r],[n+.34*t-r,i-.17*t-r]]).stream(M),v=R.translate([n+.29*t,i-.135*t]).clipExtent([[n+.24*t+r,i-.17*t+r],[n+.34*t-r,i-.1*t-r]]).stream(M),y=P.translate([n+.29*t,i-.065*t]).clipExtent([[n+.24*t+r,i-.1*t+r],[n+.34*t-r,i-.03*t-r]]).stream(M),L()},N.fitExtent=function(e,t){return d(N,e,t)},N.fitSize=function(e,t){return f(N,e,t)},N.drawCompositionBorders=function(e){var t,n,r,i;t=_([42.45755610828648,63.343658547914934]),n=_([52.65837266667029,59.35045080290929]),r=_([47.19754502247785,56.12653496548117]),i=_([37.673034273363044,59.61638268506111]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([59.41110754003403,62.35069727399336]),n=_([66.75050228640794,57.11797303636038]),r=_([60.236065725110436,54.63331433818992]),i=_([52.65837313153311,59.350450804599355]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([48.81091130080243,66.93353402634641]),n=_([59.41110730654679,62.35069740653086]),r=_([52.6583728974441,59.3504509222445]),i=_([42.45755631675751,63.34365868805821]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([31.054198418446475,52.1080673766184]),n=_([39.09869284884117,49.400700047190554]),r=_([36.0580811499175,46.02944174908498]),i=_([28.690508588835726,48.433126979386415]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([33.977877745912025,55.849945501331]),n=_([42.75328432167726,52.78455122462353]),r=_([39.09869297540224,49.400700176148625]),i=_([31.05419851807008,52.10806751810923]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([52.658372900759296,59.35045068526415]),n=_([60.23606549583304,54.63331423800264]),r=_([54.6756370953122,51.892298789399455]),i=_([47.19754524788189,56.126534861222794]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([47.19754506082455,56.126534735591456]),n=_([54.675636900123514,51.892298681337095]),r=_([49.94448648951486,48.98775484983285]),i=_([42.75328468716108,52.78455126060818]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([42.75328453416769,52.78455113209101]),n=_([49.94448632339758,48.98775473706457]),r=_([45.912339990394315,45.99361784987003]),i=_([39.09869317356607,49.40070009378711]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([37.673034114296634,59.61638254183119]),n=_([47.197544835420544,56.126534839849846]),r=_([42.75328447467064,52.78455135314068]),i=_([33.977877870363905,55.849945644671145]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([44.56748486446032,57.26489367845818]),r=_([43.9335791193588,53.746540942601726]),i=_([43,56]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=_([37.673034114296634,59.61638254183119]),n=_([40.25902691953466,58.83002044222639]),r=_([38.458270492742024,57.26232178028002]),i=_([35.97754948030156,58.00266637992386]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath()},N.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},N.scale(750)}function R(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function P(){var e,i,o,a,s,l=t.geoMercator().center([105.25,4]),c=t.geoMercator().center([118.65,2.86]),u={point:function(e,t){s=[e,t]}};function h(e){var t=e[0],n=e[1];return s=null,o.point(t,n),s||(a.point(t,n),s)}function p(){return e=i=null,h}return h.invert=function(e){var t=l.scale(),n=l.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=-.0521&&i<.0229&&r>=-.0111&&r<.1?c:l).invert(e)},h.stream=function(t){return e&&i===t?e:e=R([l.stream(i=t),c.stream(t)])},h.precision=function(e){return arguments.length?(l.precision(e),c.precision(e),p()):l.precision()},h.scale=function(e){return arguments.length?(l.scale(e),c.scale(.615*e),h.translate(l.translate())):l.scale()},h.translate=function(e){if(!arguments.length)return l.translate();var t=l.scale(),n=+e[0],i=+e[1];return o=l.translate(e).clipExtent([[n-.11*t,i-.0521*t],[n-.0111*t,i+.0521*t]]).stream(u),a=c.translate([n+.09*t,i-0*t]).clipExtent([[n-.0111*t+r,i-.0521*t+r],[n+.1*t-r,i+.024*t-r]]).stream(u),p()},h.fitExtent=function(e,t){return d(h,e,t)},h.fitSize=function(e,t){return f(h,e,t)},h.drawCompositionBorders=function(e){var t=l([106.3214,2.0228]),n=l([105.1843,2.3761]),r=l([104.2151,3.3618]),i=l([104.215,4.5651]);e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1])},h.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},h.scale(4800)}function M(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function N(){var e,i,o,a,s,l,c=t.geoMercator().rotate([-9.5,-1.5]),u=t.geoMercator().rotate([-8.6,-3.5]),h=t.geoMercator().rotate([-5.6,1.45]),p={point:function(e,t){l=[e,t]}};function m(e){var t=e[0],n=e[1];return l=null,o.point(t,n),l||(a.point(t,n),l)||(s.point(t,n),l)}function g(){return e=i=null,m}return m.invert=function(e){var t=c.scale(),n=c.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=-.02&&i<0&&r>=-.038&&r<-.005?u:i>=0&&i<.02&&r>=-.038&&r<-.005?h:c).invert(e)},m.stream=function(t){return e&&i===t?e:e=M([c.stream(i=t),u.stream(t),h.stream(t)])},m.precision=function(e){return arguments.length?(c.precision(e),u.precision(e),h.precision(e),g()):c.precision()},m.scale=function(e){return arguments.length?(c.scale(e),u.scale(1.5*e),h.scale(4*e),m.translate(c.translate())):c.scale()},m.translate=function(e){if(!arguments.length)return c.translate();var t=c.scale(),n=+e[0],i=+e[1];return o=c.translate(e).clipExtent([[n-.005*t,i-.02*t],[n+.038*t,i+.02*t]]).stream(p),a=u.translate([n-.025*t,i-.01*t]).clipExtent([[n-.038*t+r,i-.02*t+r],[n-.005*t-r,i+0*t-r]]).stream(p),s=h.translate([n-.025*t,i+.01*t]).clipExtent([[n-.038*t+r,i-0*t+r],[n-.005*t-r,i+.02*t-r]]).stream(p),g()},m.fitExtent=function(e,t){return d(m,e,t)},m.fitSize=function(e,t){return f(m,e,t)},m.drawCompositionBorders=function(e){var t,n,r,i;t=c([9.21327272751682,2.645820439454123]),n=c([11.679126293239872,2.644755519268689]),r=c([11.676845389029227,.35307824637606433]),i=c([9.213572917774014,.35414205204417754]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=c([7.320873711543669,2.64475551449975]),n=c([9.213272722738658,2.645820434679803]),r=c([9.213422896480349,1.4999812505283054]),i=c([7.322014760520787,1.4989168878985566]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath(),t=c([7.3220147605302905,1.4989168783492766]),n=c([9.213422896481598,1.499981240979021]),r=c([9.213572912999604,.354142056817247]),i=c([7.323154615739809,.353078251154504]),e.moveTo(t[0],t[1]),e.lineTo(n[0],n[1]),e.lineTo(r[0],r[1]),e.lineTo(i[0],i[1]),e.closePath()},m.getCompositionBorders=function(){var e=n.path();return this.drawCompositionBorders(e),e.toString()},m.scale(12e3)}e.geoAlbersUsa=p,e.geoAlbersUsaTerritories=g,e.geoConicConformalSpain=y,e.geoConicConformalPortugal=_,e.geoMercatorEcuador=x,e.geoTransverseMercatorChile=C,e.geoConicEquidistantJapan=k,e.geoConicConformalFrance=T,e.geoConicConformalEurope=A,e.geoMercatorMalaysia=P,e.geoMercatorEquatorialGuinea=N,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(142);n.d(t,"geoArea",(function(){return r["c"]}));var i=n(324);n.d(t,"geoBounds",(function(){return i["a"]}));var o=n(325);n.d(t,"geoCentroid",(function(){return o["a"]}));var a=n(143);n.d(t,"geoCircle",(function(){return a["b"]}));var s=n(145);n.d(t,"geoClipExtent",(function(){return s["b"]}));var l=n(328);n.d(t,"geoDistance",(function(){return l["a"]}));var c=n(329);n.d(t,"geoGraticule",(function(){return c["a"]}));var u=n(330);n.d(t,"geoInterpolate",(function(){return u["a"]}));var d=n(149);n.d(t,"geoLength",(function(){return d["a"]}));var f=n(331);n.d(t,"geoPath",(function(){return f["a"]}));var h=n(152);n.d(t,"geoAlbers",(function(){return h["a"]}));var p=n(340);n.d(t,"geoAlbersUsa",(function(){return p["a"]}));var m=n(341);n.d(t,"geoAzimuthalEqualArea",(function(){return m["b"]})),n.d(t,"geoAzimuthalEqualAreaRaw",(function(){return m["a"]}));var g=n(342);n.d(t,"geoAzimuthalEquidistant",(function(){return g["b"]})),n.d(t,"geoAzimuthalEquidistantRaw",(function(){return g["a"]}));var v=n(343);n.d(t,"geoConicConformal",(function(){return v["b"]})),n.d(t,"geoConicConformalRaw",(function(){return v["a"]}));var y=n(79);n.d(t,"geoConicEqualArea",(function(){return y["b"]})),n.d(t,"geoConicEqualAreaRaw",(function(){return y["a"]}));var b=n(344);n.d(t,"geoConicEquidistant",(function(){return b["b"]})),n.d(t,"geoConicEquidistantRaw",(function(){return b["a"]}));var _=n(155);n.d(t,"geoEquirectangular",(function(){return _["a"]})),n.d(t,"geoEquirectangularRaw",(function(){return _["b"]}));var w=n(345);n.d(t,"geoGnomonic",(function(){return w["a"]})),n.d(t,"geoGnomonicRaw",(function(){return w["b"]}));var x=n(18);n.d(t,"geoProjection",(function(){return x["a"]})),n.d(t,"geoProjectionMutator",(function(){return x["b"]}));var S=n(82);n.d(t,"geoMercator",(function(){return S["a"]})),n.d(t,"geoMercatorRaw",(function(){return S["c"]}));var C=n(346);n.d(t,"geoOrthographic",(function(){return C["a"]})),n.d(t,"geoOrthographicRaw",(function(){return C["b"]}));var E=n(347);n.d(t,"geoStereographic",(function(){return E["a"]})),n.d(t,"geoStereographicRaw",(function(){return E["b"]}));var k=n(348);n.d(t,"geoTransverseMercator",(function(){return k["a"]})),n.d(t,"geoTransverseMercatorRaw",(function(){return k["b"]}));var O=n(78);n.d(t,"geoRotation",(function(){return O["a"]}));var T=n(26);n.d(t,"geoStream",(function(){return T["a"]}));var I=n(81);n.d(t,"geoTransform",(function(){return I["a"]}))},function(e,t,n){"use strict";var r,i,o,a,s,l,c,u,d,f,h=n(42),p=n(142),m=n(43),g=n(5),v=n(26),y=Object(h["a"])(),b={point:_,lineStart:x,lineEnd:S,polygonStart:function(){b.point=C,b.lineStart=E,b.lineEnd=k,y.reset(),p["b"].polygonStart()},polygonEnd:function(){p["b"].polygonEnd(),b.point=_,b.lineStart=x,b.lineEnd=S,p["a"]<0?(r=-(o=180),i=-(a=90)):y>g["i"]?a=90:y<-g["i"]&&(i=-90),f[0]=r,f[1]=o}};function _(e,t){d.push(f=[r=e,o=e]),t<i&&(i=t),t>a&&(a=t)}function w(e,t){var n=Object(m["a"])([e*g["r"],t*g["r"]]);if(u){var l=Object(m["c"])(u,n),c=[l[1],-l[0],0],d=Object(m["c"])(c,l);Object(m["e"])(d),d=Object(m["g"])(d);var f,h=e-s,p=h>0?1:-1,v=d[0]*g["h"]*p,y=Object(g["a"])(h)>180;y^(p*s<v&&v<p*e)?(f=d[1]*g["h"],f>a&&(a=f)):(v=(v+360)%360-180,y^(p*s<v&&v<p*e)?(f=-d[1]*g["h"],f<i&&(i=f)):(t<i&&(i=t),t>a&&(a=t))),y?e<s?O(r,e)>O(r,o)&&(o=e):O(e,o)>O(r,o)&&(r=e):o>=r?(e<r&&(r=e),e>o&&(o=e)):e>s?O(r,e)>O(r,o)&&(o=e):O(e,o)>O(r,o)&&(r=e)}else _(e,t);u=n,s=e}function x(){b.point=w}function S(){f[0]=r,f[1]=o,b.point=_,u=null}function C(e,t){if(u){var n=e-s;y.add(Object(g["a"])(n)>180?n+(n>0?360:-360):n)}else l=e,c=t;p["b"].point(e,t),w(e,t)}function E(){p["b"].lineStart()}function k(){C(l,c),p["b"].lineEnd(),Object(g["a"])(y)>g["i"]&&(r=-(o=180)),f[0]=r,f[1]=o,u=null}function O(e,t){return(t-=e)<0?t+360:t}function T(e,t){return e[0]-t[0]}function I(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}t["a"]=function(e){var t,n,s,l,c,u,h;if(a=o=-(r=i=1/0),d=[],Object(v["a"])(e,b),n=d.length){for(d.sort(T),t=1,s=d[0],c=[s];t<n;++t)l=d[t],I(s,l[0])||I(s,l[1])?(O(s[0],l[1])>O(s[0],s[1])&&(s[1]=l[1]),O(l[0],s[1])>O(s[0],s[1])&&(s[0]=l[0])):c.push(s=l);for(u=-1/0,n=c.length-1,t=0,s=c[n];t<=n;s=l,++t)l=c[t],(h=O(s[1],l[0]))>u&&(u=h,r=l[0],o=s[1])}return d=f=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}},function(e,t,n){"use strict";var r,i,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b=n(5),_=n(25),w=n(26),x={sphere:_["a"],point:S,lineStart:E,lineEnd:T,polygonStart:function(){x.lineStart=I,x.lineEnd=A},polygonEnd:function(){x.lineStart=E,x.lineEnd=T}};function S(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t);C(n*Object(b["g"])(e),n*Object(b["t"])(e),Object(b["t"])(t))}function C(e,t,n){++r,o+=(e-o)/r,a+=(t-a)/r,s+=(n-s)/r}function E(){x.point=k}function k(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t);g=n*Object(b["g"])(e),v=n*Object(b["t"])(e),y=Object(b["t"])(t),x.point=O,C(g,v,y)}function O(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t),r=n*Object(b["g"])(e),o=n*Object(b["t"])(e),a=Object(b["t"])(t),s=Object(b["e"])(Object(b["u"])((s=v*a-y*o)*s+(s=y*r-g*a)*s+(s=g*o-v*r)*s),g*r+v*o+y*a);i+=s,l+=s*(g+(g=r)),c+=s*(v+(v=o)),u+=s*(y+(y=a)),C(g,v,y)}function T(){x.point=S}function I(){x.point=R}function A(){P(p,m),x.point=S}function R(e,t){p=e,m=t,e*=b["r"],t*=b["r"],x.point=P;var n=Object(b["g"])(t);g=n*Object(b["g"])(e),v=n*Object(b["t"])(e),y=Object(b["t"])(t),C(g,v,y)}function P(e,t){e*=b["r"],t*=b["r"];var n=Object(b["g"])(t),r=n*Object(b["g"])(e),o=n*Object(b["t"])(e),a=Object(b["t"])(t),s=v*a-y*o,p=y*r-g*a,m=g*o-v*r,_=Object(b["u"])(s*s+p*p+m*m),w=g*r+v*o+y*a,x=_&&-Object(b["b"])(w)/_,S=Object(b["e"])(_,w);d+=x*s,f+=x*p,h+=x*m,i+=S,l+=S*(g+(g=r)),c+=S*(v+(v=o)),u+=S*(y+(y=a)),C(g,v,y)}t["a"]=function(e){r=i=o=a=s=l=c=u=d=f=h=0,Object(w["a"])(e,x);var t=d,n=f,p=h,m=t*t+n*n+p*p;return m<b["j"]&&(t=l,n=c,p=u,i<b["i"]&&(t=o,n=a,p=s),m=t*t+n*n+p*p,m<b["j"])?[NaN,NaN]:[Object(b["e"])(n,t)*b["h"],Object(b["c"])(p/Object(b["u"])(m))*b["h"]]}},function(e,t,n){"use strict";t["a"]=function(e){return function(){return e}}},function(e,t,n){"use strict";t["a"]=function(e,t,n,r,i,o){var a,s=e[0],l=e[1],c=t[0],u=t[1],d=0,f=1,h=c-s,p=u-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<d)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>d&&(d=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>d&&(d=a)}else if(h>0){if(a<d)return;a<f&&(f=a)}if(a=r-l,p||!(a>0)){if(a/=p,p<0){if(a<d)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>d&&(d=a)}if(a=o-l,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>d&&(d=a)}else if(p>0){if(a<d)return;a<f&&(f=a)}return d>0&&(e[0]=s+d*h,e[1]=l+d*p),f<1&&(t[0]=s+f*h,t[1]=l+f*p),!0}}}}}},function(e,t,n){"use strict";var r=n(149),i=[null,null],o={type:"LineString",coordinates:i};t["a"]=function(e,t){return i[0]=e,i[1]=t,Object(r["a"])(o)}},function(e,t,n){"use strict";var r=n(14),i=n(5);function o(e,t,n){var o=Object(r["range"])(e,t-i["i"],n).concat(t);return function(e){return o.map((function(t){return[e,t]}))}}function a(e,t,n){var o=Object(r["range"])(e,t-i["i"],n).concat(t);return function(e){return o.map((function(t){return[t,e]}))}}t["a"]=function(){var e,t,n,s,l,c,u,d,f,h,p,m,g=10,v=g,y=90,b=360,_=2.5;function w(){return{type:"MultiLineString",coordinates:x()}}function x(){return Object(r["range"])(Object(i["f"])(s/y)*y,n,y).map(p).concat(Object(r["range"])(Object(i["f"])(d/b)*b,u,b).map(m)).concat(Object(r["range"])(Object(i["f"])(t/g)*g,e,g).filter((function(e){return Object(i["a"])(e%y)>i["i"]})).map(f)).concat(Object(r["range"])(Object(i["f"])(c/v)*v,l,v).filter((function(e){return Object(i["a"])(e%b)>i["i"]})).map(h))}return w.lines=function(){return x().map((function(e){return{type:"LineString",coordinates:e}}))},w.outline=function(){return{type:"Polygon",coordinates:[p(s).concat(m(u).slice(1),p(n).reverse().slice(1),m(d).reverse().slice(1))]}},w.extent=function(e){return arguments.length?w.extentMajor(e).extentMinor(e):w.extentMinor()},w.extentMajor=function(e){return arguments.length?(s=+e[0][0],n=+e[1][0],d=+e[0][1],u=+e[1][1],s>n&&(e=s,s=n,n=e),d>u&&(e=d,d=u,u=e),w.precision(_)):[[s,d],[n,u]]},w.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],c=+n[0][1],l=+n[1][1],t>e&&(n=t,t=e,e=n),c>l&&(n=c,c=l,l=n),w.precision(_)):[[t,c],[e,l]]},w.step=function(e){return arguments.length?w.stepMajor(e).stepMinor(e):w.stepMinor()},w.stepMajor=function(e){return arguments.length?(y=+e[0],b=+e[1],w):[y,b]},w.stepMinor=function(e){return arguments.length?(g=+e[0],v=+e[1],w):[g,v]},w.precision=function(r){return arguments.length?(_=+r,f=o(c,l,90),h=a(t,e,_),p=o(d,u,90),m=a(s,n,_),w):_},w.extentMajor([[-180,-90+i["i"]],[180,90-i["i"]]]).extentMinor([[-180,-80-i["i"]],[180,80+i["i"]]])}},function(e,t,n){"use strict";var r=n(5);t["a"]=function(e,t){var n=e[0]*r["r"],i=e[1]*r["r"],o=t[0]*r["r"],a=t[1]*r["r"],s=Object(r["g"])(i),l=Object(r["t"])(i),c=Object(r["g"])(a),u=Object(r["t"])(a),d=s*Object(r["g"])(n),f=s*Object(r["t"])(n),h=c*Object(r["g"])(o),p=c*Object(r["t"])(o),m=2*Object(r["c"])(Object(r["u"])(Object(r["m"])(a-i)+s*c*Object(r["m"])(o-n))),g=Object(r["t"])(m),v=m?function(e){var t=Object(r["t"])(e*=m)/g,n=Object(r["t"])(m-e)/g,i=n*d+t*h,o=n*f+t*p,a=n*l+t*u;return[Object(r["e"])(o,i)*r["h"],Object(r["e"])(a,Object(r["u"])(i*i+o*o))*r["h"]]}:function(){return[n*r["h"],i*r["h"]]};return v.distance=m,v}},function(e,t,n){"use strict";var r=n(150),i=n(26),o=n(332),a=n(151),s=n(333),l=n(334),c=n(335);t["a"]=function(){var e,t,n,u,d=4.5;function f(e){return e&&("function"===typeof d&&u.pointRadius(+d.apply(this,arguments)),Object(i["a"])(e,t(u))),u.result()}return f.area=function(e){return Object(i["a"])(e,t(o["a"])),o["a"].result()},f.bounds=function(e){return Object(i["a"])(e,t(a["a"])),a["a"].result()},f.centroid=function(e){return Object(i["a"])(e,t(s["a"])),s["a"].result()},f.projection=function(n){return arguments.length?(t=null==(e=n)?r["a"]:n.stream,f):e},f.context=function(e){return arguments.length?(u=null==(n=e)?new c["a"]:new l["a"](e),"function"!==typeof d&&u.pointRadius(d),f):n},f.pointRadius=function(e){return arguments.length?(d="function"===typeof e?e:(u.pointRadius(+e),+e),f):d},f.projection(null).context(null)}},function(e,t,n){"use strict";var r,i,o,a,s=n(42),l=n(5),c=n(25),u=Object(s["a"])(),d=Object(s["a"])(),f={point:c["a"],lineStart:c["a"],lineEnd:c["a"],polygonStart:function(){f.lineStart=h,f.lineEnd=g},polygonEnd:function(){f.lineStart=f.lineEnd=f.point=c["a"],u.add(Object(l["a"])(d)),d.reset()},result:function(){var e=u/2;return u.reset(),e}};function h(){f.point=p}function p(e,t){f.point=m,r=o=e,i=a=t}function m(e,t){d.add(a*e-o*t),o=e,a=t}function g(){m(r,i)}t["a"]=f},function(e,t,n){"use strict";var r,i,o,a,s=n(5),l=0,c=0,u=0,d=0,f=0,h=0,p=0,m=0,g=0,v={point:y,lineStart:b,lineEnd:x,polygonStart:function(){v.lineStart=S,v.lineEnd=C},polygonEnd:function(){v.point=y,v.lineStart=b,v.lineEnd=x},result:function(){var e=g?[p/g,m/g]:h?[d/h,f/h]:u?[l/u,c/u]:[NaN,NaN];return l=c=u=d=f=h=p=m=g=0,e}};function y(e,t){l+=e,c+=t,++u}function b(){v.point=_}function _(e,t){v.point=w,y(o=e,a=t)}function w(e,t){var n=e-o,r=t-a,i=Object(s["u"])(n*n+r*r);d+=i*(o+e)/2,f+=i*(a+t)/2,h+=i,y(o=e,a=t)}function x(){v.point=y}function S(){v.point=E}function C(){k(r,i)}function E(e,t){v.point=k,y(r=o=e,i=a=t)}function k(e,t){var n=e-o,r=t-a,i=Object(s["u"])(n*n+r*r);d+=i*(o+e)/2,f+=i*(a+t)/2,h+=i,i=a*e-o*t,p+=i*(o+e),m+=i*(a+t),g+=3*i,y(o=e,a=t)}t["a"]=v},function(e,t,n){"use strict";t["a"]=o;var r=n(5),i=n(25);function o(e){this._context=e}o.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,r["w"]);break}},result:i["a"]}},function(e,t,n){"use strict";function r(){this._string=[]}function i(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}t["a"]=r,r.prototype={_circle:i(4.5),pointRadius:function(e){return this._circle=i(e),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:this._string.push("M",e,",",t,this._circle);break}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}}}},function(e,t,n){"use strict";var r=n(153),i=n(5);function o(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(s,l){var c=s>0?i["o"]:-i["o"],u=Object(i["a"])(s-n);Object(i["a"])(u-i["o"])<i["i"]?(e.point(n,r=(r+l)/2>0?i["l"]:-i["l"]),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),e.point(s,r),t=0):o!==c&&u>=i["o"]&&(Object(i["a"])(n-o)<i["i"]&&(n-=o*i["i"]),Object(i["a"])(s-c)<i["i"]&&(s-=c*i["i"]),r=a(n,r,s,l),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),t=0),e.point(n=s,r=l),o=c},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function a(e,t,n,r){var o,a,s=Object(i["t"])(e-n);return Object(i["a"])(s)>i["i"]?Object(i["d"])((Object(i["t"])(t)*(a=Object(i["g"])(r))*Object(i["t"])(n)-Object(i["t"])(r)*(o=Object(i["g"])(t))*Object(i["t"])(e))/(o*a*s)):(t+r)/2}function s(e,t,n,r){var o;if(null==e)o=n*i["l"],r.point(-i["o"],o),r.point(0,o),r.point(i["o"],o),r.point(i["o"],0),r.point(i["o"],-o),r.point(0,-o),r.point(-i["o"],-o),r.point(-i["o"],0),r.point(-i["o"],o);else if(Object(i["a"])(e[0]-t[0])>i["i"]){var a=e[0]<t[0]?i["o"]:-i["o"];o=n*a/2,r.point(-a,o),r.point(0,o),r.point(a,o)}else r.point(t[0],t[1])}t["a"]=Object(r["a"])((function(){return!0}),o,s,[-i["o"],-i["l"]])},function(e,t,n){"use strict";var r=n(42),i=n(43),o=n(5),a=Object(r["a"])();t["a"]=function(e,t){var n=t[0],r=t[1],s=[Object(o["t"])(n),-Object(o["g"])(n),0],l=0,c=0;a.reset();for(var u=0,d=e.length;u<d;++u)if(h=(f=e[u]).length)for(var f,h,p=f[h-1],m=p[0],g=p[1]/2+o["q"],v=Object(o["t"])(g),y=Object(o["g"])(g),b=0;b<h;++b,m=w,v=S,y=C,p=_){var _=f[b],w=_[0],x=_[1]/2+o["q"],S=Object(o["t"])(x),C=Object(o["g"])(x),E=w-m,k=E>=0?1:-1,O=k*E,T=O>o["o"],I=v*S;if(a.add(Object(o["e"])(I*k*Object(o["t"])(O),y*C+I*Object(o["g"])(O))),l+=T?E+k*o["w"]:E,T^m>=n^w>=n){var A=Object(i["c"])(Object(i["a"])(p),Object(i["a"])(_));Object(i["e"])(A);var R=Object(i["c"])(s,A);Object(i["e"])(R);var P=(T^E>=0?-1:1)*Object(o["c"])(R[2]);(r>P||r===P&&(A[0]||A[1]))&&(c+=T^E>=0?1:-1)}}return(l<-o["i"]||l<o["i"]&&a<-o["i"])^1&c}},function(e,t,n){"use strict";var r=n(43),i=n(143),o=n(5),a=n(148),s=n(153);t["a"]=function(e,t){var n=Object(o["g"])(e),l=n>0,c=Object(o["a"])(n)>o["i"];function u(n,r,o,a){Object(i["a"])(a,e,t,o,n,r)}function d(e,t){return Object(o["g"])(e)*Object(o["g"])(t)>n}function f(e){var t,n,r,i,s;return{lineStart:function(){i=r=!1,s=1},point:function(u,f){var m,g=[u,f],v=d(u,f),y=l?v?0:p(u,f):v?p(u+(u<0?o["o"]:-o["o"]),f):0;if(!t&&(i=r=v)&&e.lineStart(),v!==r&&(m=h(t,g),(Object(a["a"])(t,m)||Object(a["a"])(g,m))&&(g[0]+=o["i"],g[1]+=o["i"],v=d(g[0],g[1]))),v!==r)s=0,v?(e.lineStart(),m=h(g,t),e.point(m[0],m[1])):(m=h(t,g),e.point(m[0],m[1]),e.lineEnd()),t=m;else if(c&&t&&l^v){var b;y&n||!(b=h(g,t,!0))||(s=0,l?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!v||t&&Object(a["a"])(t,g)||e.point(g[0],g[1]),t=g,r=v,n=y},lineEnd:function(){r&&e.lineEnd(),t=null},clean:function(){return s|(i&&r)<<1}}}function h(e,t,i){var a=Object(r["a"])(e),s=Object(r["a"])(t),l=[1,0,0],c=Object(r["c"])(a,s),u=Object(r["d"])(c,c),d=c[0],f=u-d*d;if(!f)return!i&&e;var h=n*u/f,p=-n*d/f,m=Object(r["c"])(l,c),g=Object(r["f"])(l,h),v=Object(r["f"])(c,p);Object(r["b"])(g,v);var y=m,b=Object(r["d"])(g,y),_=Object(r["d"])(y,y),w=b*b-_*(Object(r["d"])(g,g)-1);if(!(w<0)){var x=Object(o["u"])(w),S=Object(r["f"])(y,(-b-x)/_);if(Object(r["b"])(S,g),S=Object(r["g"])(S),!i)return S;var C,E=e[0],k=t[0],O=e[1],T=t[1];k<E&&(C=E,E=k,k=C);var I=k-E,A=Object(o["a"])(I-o["o"])<o["i"],R=A||I<o["i"];if(!A&&T<O&&(C=O,O=T,T=C),R?A?O+T>0^S[1]<(Object(o["a"])(S[0]-E)<o["i"]?O:T):O<=S[1]&&S[1]<=T:I>o["o"]^(E<=S[0]&&S[0]<=k)){var P=Object(r["f"])(y,(-b+x)/_);return Object(r["b"])(P,g),[S,Object(r["g"])(P)]}}}function p(t,n){var r=l?e:o["o"]-e,i=0;return t<-r?i|=1:t>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}return Object(s["a"])(d,f,u,l?[0,-e]:[-o["o"],e-o["o"]])}},function(e,t,n){"use strict";var r=n(43),i=n(5),o=n(81),a=16,s=Object(i["g"])(30*i["r"]);function l(e){return Object(o["b"])({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function c(e,t){function n(r,o,a,l,c,u,d,f,h,p,m,g,v,y){var b=d-r,_=f-o,w=b*b+_*_;if(w>4*t&&v--){var x=l+p,S=c+m,C=u+g,E=Object(i["u"])(x*x+S*S+C*C),k=Object(i["c"])(C/=E),O=Object(i["a"])(Object(i["a"])(C)-1)<i["i"]||Object(i["a"])(a-h)<i["i"]?(a+h)/2:Object(i["e"])(S,x),T=e(O,k),I=T[0],A=T[1],R=I-r,P=A-o,M=_*R-b*P;(M*M/w>t||Object(i["a"])((b*R+_*P)/w-.5)>.3||l*p+c*m+u*g<s)&&(n(r,o,a,l,c,u,I,A,O,x/=E,S/=E,C,v,y),y.point(I,A),n(I,A,O,x,S,C,d,f,h,p,m,g,v,y))}}return function(t){var i,o,s,l,c,u,d,f,h,p,m,g,v={point:y,lineStart:b,lineEnd:w,polygonStart:function(){t.polygonStart(),v.lineStart=x},polygonEnd:function(){t.polygonEnd(),v.lineStart=b}};function y(n,r){n=e(n,r),t.point(n[0],n[1])}function b(){f=NaN,v.point=_,t.lineStart()}function _(i,o){var s=Object(r["a"])([i,o]),l=e(i,o);n(f,h,d,p,m,g,f=l[0],h=l[1],d=i,p=s[0],m=s[1],g=s[2],a,t),t.point(f,h)}function w(){v.point=y,t.lineEnd()}function x(){b(),v.point=S,v.lineEnd=C}function S(e,t){_(i=e,t),o=f,s=h,l=p,c=m,u=g,v.point=_}function C(){n(f,h,d,p,m,g,o,s,i,l,c,u,a,t),v.lineEnd=w,w()}return v}}t["a"]=function(e,t){return+t?c(e,t):l(e)}},function(e,t,n){"use strict";var r=n(5),i=n(152),o=n(79),a=n(154);function s(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}t["a"]=function(){var e,t,n,l,c,u,d=Object(i["a"])(),f=Object(o["b"])().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=Object(o["b"])().rotate([157,0]).center([-3,19.9]).parallels([8,18]),p={point:function(e,t){u=[e,t]}};function m(e){var t=e[0],r=e[1];return u=null,n.point(t,r),u||(l.point(t,r),u)||(c.point(t,r),u)}return m.invert=function(e){var t=d.scale(),n=d.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?f:i>=.166&&i<.234&&r>=-.214&&r<-.115?h:d).invert(e)},m.stream=function(n){return e&&t===n?e:e=s([d.stream(t=n),f.stream(n),h.stream(n)])},m.precision=function(e){return arguments.length?(d.precision(e),f.precision(e),h.precision(e),m):d.precision()},m.scale=function(e){return arguments.length?(d.scale(e),f.scale(.35*e),h.scale(e),m.translate(d.translate())):d.scale()},m.translate=function(e){if(!arguments.length)return d.translate();var t=d.scale(),i=+e[0],o=+e[1];return n=d.translate(e).clipExtent([[i-.455*t,o-.238*t],[i+.455*t,o+.238*t]]).stream(p),l=f.translate([i-.307*t,o+.201*t]).clipExtent([[i-.425*t+r["i"],o+.12*t+r["i"]],[i-.214*t-r["i"],o+.234*t-r["i"]]]).stream(p),c=h.translate([i-.205*t,o+.212*t]).clipExtent([[i-.214*t+r["i"],o+.166*t+r["i"]],[i-.115*t-r["i"],o+.234*t-r["i"]]]).stream(p),m},m.fitExtent=Object(a["a"])(m),m.fitSize=Object(a["b"])(m),m.scale(1070)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),i=n(44),o=n(18),a=Object(i["b"])((function(e){return Object(r["u"])(2/(1+e))}));a.invert=Object(i["a"])((function(e){return 2*Object(r["c"])(e/2)})),t["b"]=function(){return Object(o["a"])(a).scale(124.75).clipAngle(179.999)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5),i=n(44),o=n(18),a=Object(i["b"])((function(e){return(e=Object(r["b"])(e))&&e/Object(r["t"])(e)}));a.invert=Object(i["a"])((function(e){return e})),t["b"]=function(){return Object(o["a"])(a).scale(79.4188).clipAngle(179.999)}},function(e,t,n){"use strict";t["a"]=s;var r=n(5),i=n(80),o=n(82);function a(e){return Object(r["v"])((r["l"]+e)/2)}function s(e,t){var n=Object(r["g"])(e),i=e===t?Object(r["t"])(e):Object(r["n"])(n/Object(r["g"])(t))/Object(r["n"])(a(t)/a(e)),s=n*Object(r["p"])(a(e),i)/i;if(!i)return o["c"];function l(e,t){s>0?t<-r["l"]+r["i"]&&(t=-r["l"]+r["i"]):t>r["l"]-r["i"]&&(t=r["l"]-r["i"]);var n=s/Object(r["p"])(a(t),i);return[n*Object(r["t"])(i*e),s-n*Object(r["g"])(i*e)]}return l.invert=function(e,t){var n=s-t,o=Object(r["s"])(i)*Object(r["u"])(e*e+n*n);return[Object(r["e"])(e,n)/i,2*Object(r["d"])(Object(r["p"])(s/o,1/i))-r["l"]]},l}t["b"]=function(){return Object(i["a"])(s).scale(109.5).parallels([30,30])}},function(e,t,n){"use strict";t["a"]=a;var r=n(5),i=n(80),o=n(155);function a(e,t){var n=Object(r["g"])(e),i=e===t?Object(r["t"])(e):(n-Object(r["g"])(t))/(t-e),a=n/i+e;if(Object(r["a"])(i)<r["i"])return o["b"];function s(e,t){var n=a-t,o=i*e;return[n*Object(r["t"])(o),a-n*Object(r["g"])(o)]}return s.invert=function(e,t){var n=a-t;return[Object(r["e"])(e,n)/i,a-Object(r["s"])(i)*Object(r["u"])(e*e+n*n)]},s}t["b"]=function(){return Object(i["a"])(a).scale(131.154).center([0,13.9389])}},function(e,t,n){"use strict";t["b"]=a;var r=n(5),i=n(44),o=n(18);function a(e,t){var n=Object(r["g"])(t),i=Object(r["g"])(e)*n;return[n*Object(r["t"])(e)/i,Object(r["t"])(t)/i]}a.invert=Object(i["a"])(r["d"]),t["a"]=function(){return Object(o["a"])(a).scale(144.049).clipAngle(60)}},function(e,t,n){"use strict";t["b"]=a;var r=n(5),i=n(44),o=n(18);function a(e,t){return[Object(r["g"])(t)*Object(r["t"])(e),Object(r["t"])(t)]}a.invert=Object(i["a"])(r["c"]),t["a"]=function(){return Object(o["a"])(a).scale(249.5).clipAngle(90+r["i"])}},function(e,t,n){"use strict";t["b"]=a;var r=n(5),i=n(44),o=n(18);function a(e,t){var n=Object(r["g"])(t),i=1+Object(r["g"])(e)*n;return[n*Object(r["t"])(e)/i,Object(r["t"])(t)/i]}a.invert=Object(i["a"])((function(e){return 2*Object(r["d"])(e)})),t["a"]=function(){return Object(o["a"])(a).scale(250).clipAngle(142)}},function(e,t,n){"use strict";t["b"]=o;var r=n(5),i=n(82);function o(e,t){return[Object(r["n"])(Object(r["v"])((r["l"]+t)/2)),-e]}o.invert=function(e,t){return[-t,2*Object(r["d"])(Object(r["k"])(e))-r["l"]]},t["a"]=function(){var e=Object(i["b"])(o),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)}},function(e,t,n){"use strict";var r=Math.PI,i=2*r,o=1e-6,a=i-o;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function l(){return new s}s.prototype=l.prototype={constructor:s,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,i,a){e=+e,t=+t,n=+n,i=+i,a=+a;var s=this._x1,l=this._y1,c=n-e,u=i-t,d=s-e,f=l-t,h=d*d+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>o)if(Math.abs(f*c-u*d)>o&&a){var p=n-s,m=i-l,g=c*c+u*u,v=p*p+m*m,y=Math.sqrt(g),b=Math.sqrt(h),_=a*Math.tan((r-Math.acos((g+h-v)/(2*y*b)))/2),w=_/b,x=_/y;Math.abs(w-1)>o&&(this._+="L"+(e+w*d)+","+(t+w*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>d*m)+","+(this._x1=e+x*c)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,s,l,c){e=+e,t=+t,n=+n;var u=n*Math.cos(s),d=n*Math.sin(s),f=e+u,h=t+d,p=1^c,m=c?s-l:l-s;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>o||Math.abs(this._y1-h)>o)&&(this._+="L"+f+","+h),n&&(m<0&&(m=m%i+i),m>a?this._+="A"+n+","+n+",0,1,"+p+","+(e-u)+","+(t-d)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):m>o&&(this._+="A"+n+","+n+",0,"+ +(m>=r)+","+p+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t["a"]=l},function(e,t,n){var r=n(3),i=n(39);r(i.prototype,{getAllNodes:function(){var e=this,t=[],n=e.root;return n.each?n.each((function(e){t.push(e)})):n.eachNode&&n.eachNode((function(e){t.push(e)})),t},getAllLinks:function(){var e,t=[],n=[this.root];while(e=n.pop()){var r=e.children;r&&r.forEach((function(r){t.push({source:e,target:r}),n.push(r)}))}return t}}),r(i.prototype,{getAllEdges:i.prototype.getAllLinks})},function(e,t,n){var r=n(3),i=n(83),o=n(15),a=n(39);r(a.prototype,{partition:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),o(this.rows,e,t)},group:function(e,t){var n=this.partition(e,t);return i(n)},groups:function(e,t){return this.group(e,t)}})},function(e,t,n){var r=n(9),i=n(6),o=Object.prototype.hasOwnProperty,a=function(e,t){if(!t||!i(e))return e;var n={},a=null;return r(e,(function(e){a=t(e),o.call(n,a)?n[a].push(e):n[a]=[e]})),n};e.exports=a},function(e,t,n){var r=n(6),i=n(11),o=n(10);e.exports=function(e,t){var n;return void 0===t&&(t=[]),i(t)?n=t:r(t)?n=function(e,n){for(var r=0;r<t.length;r++){var i=t[r];if(e[i]<n[i])return-1;if(e[i]>n[i])return 1}return 0}:o(t)&&(n=function(e,n){return e[t]<n[t]?-1:e[t]>n[t]?1:0}),e.sort(n)}},function(e,t,n){var r=n(3),i=n(156),o=n(6),a=n(19),s=n(39),l=n(157),c=n(84),u=c.STATISTICS_METHODS;function d(e,t){var n=e.getColumn(t);return o(n)&&o(n[0])&&(n=i(n)),n}u.forEach((function(e){s.prototype[e]=function(t){return a[e](d(this,t))}}));var f=a.quantile;r(s.prototype,{average:s.prototype.mean,quantile:function(e,t){return f(d(this,e),t)},quantiles:function(e,t){var n=d(this,e);return t.map((function(e){return f(n,e)}))},quantilesByFraction:function(e,t){return this.quantiles(e,l(t))},range:function(e){var t=this;return[t.min(e),t.max(e)]},extent:function(e){return this.range(e)}})},function(e,t,n){var r=n(10),i=n(40),o=n(2),a=o.registerConnector;a("default",(function(e,t){if(r(e)&&(e=t.getView(e)),!e)throw new TypeError("Invalid dataView");return i(e.rows)}))},function(e,t){var n=function(){var e={};return function(t){return t=t||"g",e[t]?e[t]+=1:e[t]=1,t+e[t]}}();e.exports=n},function(e,t,n){var r=n(10),i=n(358),o=i.dsvFormat,a=i.csvParse,s=i.tsvParse,l=n(2),c=l.registerConnector;c("dsv",(function(e,t){void 0===t&&(t={});var n=t.delimiter||",";if(!r(n))throw new TypeError("Invalid delimiter: must be a string!");return o(n).parse(e)})),c("csv",(function(e){return a(e)})),c("tsv",(function(e){return s(e)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(85);n.d(t,"dsvFormat",(function(){return r["a"]}));var i=n(359);n.d(t,"csvParse",(function(){return i["c"]})),n.d(t,"csvParseRows",(function(){return i["d"]})),n.d(t,"csvFormat",(function(){return i["a"]})),n.d(t,"csvFormatRows",(function(){return i["b"]}));var o=n(360);n.d(t,"tsvParse",(function(){return o["c"]})),n.d(t,"tsvParseRows",(function(){return o["d"]})),n.d(t,"tsvFormat",(function(){return o["a"]})),n.d(t,"tsvFormatRows",(function(){return o["b"]}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(85),i=Object(r["a"])(","),o=i.parse,a=i.parseRows,s=i.format,l=i.formatRows},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(85),i=Object(r["a"])("\t"),o=i.parse,a=i.parseRows,s=i.format,l=i.formatRows},function(e,t,n){var r=n(0),i=r.geoGraticule,o=n(2),a=o.registerConnector;function s(e,t){t.dataType="geo-graticule";var n=i().lines();return n.map((function(e,t){return e.index=""+t,e})),t.rows=n,n}a("geo-graticule",s),e.exports=s},function(e,t){e.exports=i;var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function i(e){var t=[];return e.replace(r,(function(e,r,i){var o=r.toLowerCase();i=a(i),"m"==o&&i.length>2&&(t.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");while(1){if(i.length==n[o])return i.unshift(r),t.push(i);if(i.length<n[o])throw new Error("malformed path data");t.push([r].concat(i.splice(0,n[o])))}})),t}var o=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function a(e){var t=e.match(o);return t?t.map(Number):[]}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t){function n(e){var t=0,n=0,r=0,i=0;return e.map((function(e){e=e.slice();var o=e[0],a=o.toUpperCase();if(o!=a)switch(e[0]=a,o){case"a":e[6]+=r,e[7]+=i;break;case"v":e[1]+=i;break;case"h":e[1]+=r;break;default:for(var s=1;s<e.length;)e[s++]+=r,e[s++]+=i}switch(a){case"Z":r=t,i=n;break;case"H":r=e[1];break;case"V":i=e[1];break;case"M":r=t=e[1],i=n=e[2];break;default:r=e[e.length-2],i=e[e.length-1]}return e}))}e.exports=n},function(e,t,n){var r=n(3),i=n(11),o=n(2),a=o.GRAPH,s=o.registerConnector,l={nodes:function(e){return e.nodes},edges:function(e){return e.edges}};function c(e,t,n){t=r({},l,t),n.dataType=a;var o=t,s=o.nodes,c=o.edges;if(s&&!i(s))throw new TypeError("Invalid nodes: must be a function!");if(c&&!i(c))throw new TypeError("Invalid edges: must be a function!");return n.rows=n.graph={nodes:s(e),edges:c(e)},r(n,n.graph),n.rows}s("graph",c),s("diagram",c)},function(e,t,n){var r=n(3),i=n(40),o=n(367),a=o.getGridForHexJSON,s=o.renderHexJSON,l=n(2),c=l.HEX,u=l.registerConnector,d={width:1,height:1};function f(e){return e.cx=e.x,e.cy=e.y,e.x=[],e.y=[],e.vertices.forEach((function(t){e.x.push(t.x+e.cx),e.y.push(t.y+e.cy)})),e}function h(e,t,n){n.dataType=c,t=r({},d,t);var o=t,l=o.width,u=o.height,h=i(e);n._HexJSON=h;var p=n._GridHexJSON=a(h),m=n.rows=s(h,l,u).map(f);return n._gridRows=s(p,l,u).map(f),m}u("hex",h),u("hexjson",h),u("hex-json",h),u("HexJSON",h),e.exports=h},function(e,t,n){(function(e,r){r(t,n(14))})(0,(function(e,t){"use strict";function n(e,n,s){var l=e.layout,c=[],u=0;Object.keys(e.hexes).forEach((function(t){e.hexes[t].key=t,c.push(e.hexes[t])}));var d=t.max(c,(function(e){return+e.q})),f=t.min(c,(function(e){return+e.q})),h=t.max(c,(function(e){return+e.r})),p=t.min(c,(function(e){return+e.r})),m=d-f+1,g=h-p+1;u="odd-r"===l||"even-r"===l?t.min([n/((m+.5)*Math.sqrt(3)),s/(1.5*(g+1/3))]):t.min([s/((g+.5)*Math.sqrt(3)),n/(1.5*(m+1/3))]);var v=u*Math.sqrt(3),y=o(l,v,u),b=a(y);return c.forEach((function(e){e.qc=e.q-f,e.rc=h-e.r,e.x=r(e,l,v,u),e.y=i(e,l,v,u),e.vertices=y,e.points=b})),c}function r(e,t,n,r){var i=0,o=0;switch(t){case"odd-r":o=e.rc%2===1?n:n/2,i=e.qc*n+o;break;case"even-r":o=e.rc%2===0?n:n/2,i=e.qc*n+o;break;case"odd-q":case"even-q":i=e.qc*r*1.5+r;break}return i}function i(e,t,n,r){var i=0,o=0;switch(t){case"odd-r":case"even-r":i=e.rc*r*1.5+r;break;case"odd-q":o=e.qc%2===1?n:n/2,i=e.rc*n+o;break;case"even-q":o=e.qc%2===0?n:n/2,i=e.rc*n+o;break}return i}function o(e,t,n){var r=[];switch(e){case"odd-r":case"even-r":r.push({x:0,y:0-n}),r.push({x:0+.5*t,y:0-.5*n}),r.push({x:0+.5*t,y:0+.5*n}),r.push({x:0,y:0+n}),r.push({x:0-.5*t,y:0+.5*n}),r.push({x:0-.5*t,y:0-.5*n});break;case"odd-q":case"even-q":r.push({x:0-n,y:0}),r.push({x:0-.5*n,y:0-.5*t}),r.push({x:0+.5*n,y:0-.5*t}),r.push({x:0+n,y:0}),r.push({x:0+.5*n,y:0+.5*t}),r.push({x:0-.5*n,y:0+.5*t});break}return r}function a(e){var t="";return e.forEach((function(e){t+=e.x+","+e.y+" "})),t.substring(0,t.length-1)}function s(e){var n={};n.layout=e.layout,n.hexes={};var r=[];Object.keys(e.hexes).forEach((function(t){r.push(e.hexes[t])}));var i,o,a,s=t.max(r,(function(e){return+e.q})),l=t.min(r,(function(e){return+e.q})),c=t.max(r,(function(e){return+e.r})),u=t.min(r,(function(e){return+e.r}));for(i=l;i<=s;i++)for(o=u;o<=c;o++)a="Q"+i+"R"+o,n.hexes[a]={q:i,r:o};return n}e.renderHexJSON=n,e.getGridForHexJSON=s,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,n){var r=n(11),i=n(34),o=i.hierarchy,a=n(2),s=a.HIERARCHY,l=a.registerConnector;function c(e,t,n){n.dataType=s;var i=t&&t.children?t.children:null;if(i&&!r(i))throw new TypeError("Invalid children: must be a function!");return t.pureData?n.rows=n.root=e:n.rows=n.root=o(e,i),e}l("hierarchy",c),l("tree",c)},function(e,t,n){"use strict";function r(e,t){return e.parent===t.parent?1:2}function i(e){return e.reduce(o,0)/e.length}function o(e,t){return e+t.x}function a(e){return 1+e.reduce(s,0)}function s(e,t){return Math.max(e,t.y)}function l(e){var t;while(t=e.children)e=t[0];return e}function c(e){var t;while(t=e.children)e=t[t.length-1];return e}t["a"]=function(){var e=r,t=1,n=1,o=!1;function s(r){var s,u=0;r.eachAfter((function(t){var n=t.children;n?(t.x=i(n),t.y=a(n)):(t.x=s?u+=e(t,s):0,t.y=0,s=t)}));var d=l(r),f=c(r),h=d.x-e(d,f)/2,p=f.x+e(f,d)/2;return r.eachAfter(o?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-h)/(p-h)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return s.separation=function(t){return arguments.length?(e=t,s):e},s.size=function(e){return arguments.length?(o=!1,t=+e[0],n=+e[1],s):o?null:[t,n]},s.nodeSize=function(e){return arguments.length?(o=!0,t=+e[0],n=+e[1],s):o?[t,n]:null},s}},function(e,t,n){"use strict";function r(e){var t=0,n=e.children,r=n&&n.length;if(r)while(--r>=0)t+=n[r].value;else t=1;e.value=t}t["a"]=function(){return this.eachAfter(r)}},function(e,t,n){"use strict";t["a"]=function(e){var t,n,r,i,o=this,a=[o];do{t=a.reverse(),a=[];while(o=t.pop())if(e(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this}},function(e,t,n){"use strict";t["a"]=function(e){var t,n,r=this,i=[r];while(r=i.pop())if(e(r),t=r.children,t)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this}},function(e,t,n){"use strict";t["a"]=function(e){var t,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),t=i.children,t)for(n=0,r=t.length;n<r;++n)o.push(t[n]);while(i=a.pop())e(i);return this}},function(e,t,n){"use strict";t["a"]=function(e){return this.eachAfter((function(t){var n=+e(t.data)||0,r=t.children,i=r&&r.length;while(--i>=0)n+=r[i].value;t.value=n}))}},function(e,t,n){"use strict";t["a"]=function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}},function(e,t,n){"use strict";function r(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();while(e===t)i=e,e=n.pop(),t=r.pop();return i}t["a"]=function(e){var t=this,n=r(t,e),i=[t];while(t!==n)t=t.parent,i.push(t);var o=i.length;while(e!==n)i.splice(o,0,e),e=e.parent;return i}},function(e,t,n){"use strict";t["a"]=function(){var e=this,t=[e];while(e=e.parent)t.push(e);return t}},function(e,t,n){"use strict";t["a"]=function(){var e=[];return this.each((function(t){e.push(t)})),e}},function(e,t,n){"use strict";t["a"]=function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}},function(e,t,n){"use strict";t["a"]=function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t}},function(e,t,n){"use strict";var r=n(160),i=n(87),o=n(162);function a(e){return Math.sqrt(e.value)}function s(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function l(e,t){return function(n){if(i=n.children){var i,o,a,s=i.length,l=e(n)*t||0;if(l)for(o=0;o<s;++o)i[o].r+=l;if(a=Object(r["b"])(i),l)for(o=0;o<s;++o)i[o].r-=l;n.r=a+l}}}function c(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}t["a"]=function(){var e=null,t=1,n=1,r=o["a"];function u(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(s(e)).eachAfter(l(r,.5)).eachBefore(c(1)):i.eachBefore(s(a)).eachAfter(l(o["a"],1)).eachAfter(l(r,i.r/Math.min(t,n))).eachBefore(c(Math.min(t,n)/(2*i.r))),i}return u.radius=function(t){return arguments.length?(e=Object(i["a"])(t),u):e},u.size=function(e){return arguments.length?(t=+e[0],n=+e[1],u):[t,n]},u.padding=function(e){return arguments.length?(r="function"===typeof e?e:Object(o["b"])(+e),u):r},u}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),t["a"]=i;var r=Array.prototype.slice;function i(e){var t,n,r=e.length;while(r)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}},function(e,t,n){"use strict";var r=n(163),i=n(45);t["a"]=function(){var e=1,t=1,n=0,o=!1;function a(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/a,i.eachBefore(s(t,a)),o&&i.eachBefore(r["a"]),i}function s(e,t){return function(r){r.children&&Object(i["a"])(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var o=r.x0,a=r.y0,s=r.x1-n,l=r.y1-n;s<o&&(o=s=(o+s)/2),l<a&&(a=l=(a+l)/2),r.x0=o,r.y0=a,r.x1=s,r.y1=l}}return a.round=function(e){return arguments.length?(o=!!e,a):o},a.size=function(n){return arguments.length?(e=+n[0],t=+n[1],a):[e,t]},a.padding=function(e){return arguments.length?(n=+e,a):n},a}},function(e,t,n){"use strict";var r=n(87),i=n(86),o="$",a={depth:-1},s={};function l(e){return e.id}function c(e){return e.parentId}t["a"]=function(){var e=l,t=c;function n(n){var r,l,c,u,d,f,h,p=n.length,m=new Array(p),g={};for(l=0;l<p;++l)r=n[l],d=m[l]=new i["a"](r),null!=(f=e(r,l,n))&&(f+="")&&(h=o+(d.id=f),g[h]=h in g?s:d);for(l=0;l<p;++l)if(d=m[l],f=t(n[l],l,n),null!=f&&(f+="")){if(u=g[o+f],!u)throw new Error("missing: "+f);if(u===s)throw new Error("ambiguous: "+f);u.children?u.children.push(d):u.children=[d],d.parent=u}else{if(c)throw new Error("multiple roots");c=d}if(!c)throw new Error("no root");if(c.parent=a,c.eachBefore((function(e){e.depth=e.parent.depth+1,--p})).eachBefore(i["b"]),c.parent=null,p>0)throw new Error("cycle");return c}return n.id=function(t){return arguments.length?(e=Object(r["b"])(t),n):e},n.parentId=function(e){return arguments.length?(t=Object(r["b"])(e),n):t},n}},function(e,t,n){"use strict";var r=n(86);function i(e,t){return e.parent===t.parent?1:2}function o(e){var t=e.children;return t?t[0]:e.t}function a(e){var t=e.children;return t?t[t.length-1]:e.t}function s(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function l(e){var t,n=0,r=0,i=e.children,o=i.length;while(--o>=0)t=i[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function c(e,t,n){return e.a.parent===t.parent?e.a:n}function u(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function d(e){var t,n,r,i,o,a=new u(e,0),s=[a];while(t=s.pop())if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new u(r[i],i)),n.parent=t;return(a.parent=new u(null,0)).children=[a],a}u.prototype=Object.create(r["a"].prototype),t["a"]=function(){var e=i,t=1,n=1,r=null;function u(i){var o=d(i);if(o.eachAfter(f),o.parent.m=-o.z,o.eachBefore(h),r)i.eachBefore(m);else{var a=i,s=i,l=i;i.eachBefore((function(e){e.x<a.x&&(a=e),e.x>s.x&&(s=e),e.depth>l.depth&&(l=e)}));var c=a===s?1:e(a,s)/2,u=c-a.x,p=t/(s.x+c+u),g=n/(l.depth||1);i.eachBefore((function(e){e.x=(e.x+u)*p,e.y=e.depth*g}))}return i}function f(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){l(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=p(t,i,t.parent.A||r[0])}function h(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function p(t,n,r){if(n){var i,l=t,u=t,d=n,f=l.parent.children[0],h=l.m,p=u.m,m=d.m,g=f.m;while(d=a(d),l=o(l),d&&l)f=o(f),u=a(u),u.a=t,i=d.z+m-l.z-h+e(d._,l._),i>0&&(s(c(d,t,r),t,i),h+=i,p+=i),m+=d.m,h+=l.m,g+=f.m,p+=u.m;d&&!a(u)&&(u.t=d,u.m+=m-p),l&&!o(f)&&(f.t=l,f.m+=h-g,r=t)}return r}function m(e){e.x*=t,e.y=e.depth*n}return u.separation=function(t){return arguments.length?(e=t,u):e},u.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],u):r?null:[t,n]},u.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],u):r?[t,n]:null},u}},function(e,t,n){"use strict";var r=n(163),i=n(88),o=n(87),a=n(162);t["a"]=function(){var e=i["a"],t=!1,n=1,s=1,l=[0],c=a["a"],u=a["a"],d=a["a"],f=a["a"],h=a["a"];function p(e){return e.x0=e.y0=0,e.x1=n,e.y1=s,e.eachBefore(m),l=[0],t&&e.eachBefore(r["a"]),e}function m(t){var n=l[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,a=t.y1-n;o<r&&(r=o=(r+o)/2),a<i&&(i=a=(i+a)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=a,t.children&&(n=l[t.depth+1]=c(t)/2,r+=h(t)-n,i+=u(t)-n,o-=d(t)-n,a-=f(t)-n,o<r&&(r=o=(r+o)/2),a<i&&(i=a=(i+a)/2),e(t,r,i,o,a))}return p.round=function(e){return arguments.length?(t=!!e,p):t},p.size=function(e){return arguments.length?(n=+e[0],s=+e[1],p):[n,s]},p.tile=function(t){return arguments.length?(e=Object(o["b"])(t),p):e},p.padding=function(e){return arguments.length?p.paddingInner(e).paddingOuter(e):p.paddingInner()},p.paddingInner=function(e){return arguments.length?(c="function"===typeof e?e:Object(a["b"])(+e),p):c},p.paddingOuter=function(e){return arguments.length?p.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):p.paddingTop()},p.paddingTop=function(e){return arguments.length?(u="function"===typeof e?e:Object(a["b"])(+e),p):u},p.paddingRight=function(e){return arguments.length?(d="function"===typeof e?e:Object(a["b"])(+e),p):d},p.paddingBottom=function(e){return arguments.length?(f="function"===typeof e?e:Object(a["b"])(+e),p):f},p.paddingLeft=function(e){return arguments.length?(h="function"===typeof e?e:Object(a["b"])(+e),p):h},p}},function(e,t,n){"use strict";t["a"]=function(e,t,n,r,i){var o,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o<l;++o)c[o+1]=a+=s[o].value;function u(e,t,n,r,i,o,a){if(e>=t-1){var l=s[e];return l.x0=r,l.y0=i,l.x1=o,void(l.y1=a)}var d=c[e],f=n/2+d,h=e+1,p=t-1;while(h<p){var m=h+p>>>1;c[m]<f?h=m+1:p=m}f-c[h-1]<c[h]-f&&e+1<h&&--h;var g=c[h]-d,v=n-g;if(o-r>a-i){var y=(r*v+o*g)/n;u(e,h,g,r,i,y,a),u(h,t,v,y,i,o,a)}else{var b=(i*v+a*g)/n;u(e,h,g,r,i,o,b),u(h,t,v,r,b,o,a)}}u(0,l,e.value,t,n,r,i)}},function(e,t,n){"use strict";var r=n(45),i=n(55);t["a"]=function(e,t,n,o,a){(1&e.depth?i["a"]:r["a"])(e,t,n,o,a)}},function(e,t,n){"use strict";var r=n(45),i=n(55),o=n(88);t["a"]=function e(t){function n(e,n,a,s,l){if((c=e._squarify)&&c.ratio===t){var c,u,d,f,h,p=-1,m=c.length,g=e.value;while(++p<m){for(u=c[p],d=u.children,f=u.value=0,h=d.length;f<h;++f)u.value+=d[f].value;u.dice?Object(r["a"])(u,n,a,s,a+=(l-a)*u.value/g):Object(i["a"])(u,n,a,n+=(s-n)*u.value/g,l),g-=u.value}}else e._squarify=c=Object(o["c"])(t,e,n,a,s,l),c.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(o["b"])},function(e,t,n){var r=n(10),i=n(391),o=i.feature,a=n(158),s=n(2),l=s.registerConnector;function c(e,t,n){var i=t.object;if(!r(i))throw new TypeError("Invalid object: must be a string!");var s=o(e,e.objects[i]);return a(s,t,n)}l("topojson",c),l("TopoJSON",c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(164);n.d(t,"bbox",(function(){return r["a"]}));var i=n(90);n.d(t,"feature",(function(){return i["a"]}));var o=n(393);n.d(t,"mesh",(function(){return o["a"]})),n.d(t,"meshArcs",(function(){return o["b"]}));var a=n(394);n.d(t,"merge",(function(){return a["a"]})),n.d(t,"mergeArcs",(function(){return a["b"]}));var s=n(395);n.d(t,"neighbors",(function(){return s["a"]}));var l=n(397);n.d(t,"quantize",(function(){return l["a"]}));var c=n(89);n.d(t,"transform",(function(){return c["a"]}));var u=n(167);n.d(t,"untransform",(function(){return u["a"]}))},function(e,t,n){"use strict";t["a"]=function(e,t){var n,r=e.length,i=r-t;while(i<--r)n=e[i],e[i++]=e[r],e[r]=n}},function(e,t,n){"use strict";t["b"]=o;var r=n(90),i=n(166);function o(e,t,n){var r,o,s;if(arguments.length>1)r=a(e,t,n);else for(o=0,r=new Array(s=e.arcs.length);o<s;++o)r[o]=o;return{type:"MultiLineString",arcs:Object(i["a"])(e,r)}}function a(e,t,n){var r,i=[],o=[];function a(e){var t=e<0?~e:e;(o[t]||(o[t]=[])).push({i:e,g:r})}function s(e){e.forEach(a)}function l(e){e.forEach(s)}function c(e){e.forEach(l)}function u(e){switch(r=e,e.type){case"GeometryCollection":e.geometries.forEach(u);break;case"LineString":s(e.arcs);break;case"MultiLineString":case"Polygon":l(e.arcs);break;case"MultiPolygon":c(e.arcs);break}}return u(t),o.forEach(null==n?function(e){i.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&i.push(e[0].i)}),i}t["a"]=function(e){return Object(r["b"])(e,o.apply(this,arguments))}},function(e,t,n){"use strict";t["b"]=a;var r=n(90),i=n(166);function o(e){var t,n=-1,r=e.length,i=e[r-1],o=0;while(++n<r)t=i,i=e[n],o+=t[0]*i[1]-t[1]*i[0];return Math.abs(o)}function a(e,t){var n={},a=[],s=[];function l(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(l);break;case"Polygon":c(e.arcs);break;case"MultiPolygon":e.arcs.forEach(c);break}}function c(e){e.forEach((function(t){t.forEach((function(t){(n[t=t<0?~t:t]||(n[t]=[])).push(e)}))})),a.push(e)}function u(t){return o(Object(r["b"])(e,{type:"Polygon",arcs:[t]}).coordinates[0])}return t.forEach(l),a.forEach((function(e){if(!e._){var t=[],r=[e];e._=1,s.push(t);while(e=r.pop())t.push(e),e.forEach((function(e){e.forEach((function(e){n[e<0?~e:e].forEach((function(e){e._||(e._=1,r.push(e))}))}))}))}})),a.forEach((function(e){delete e._})),{type:"MultiPolygon",arcs:s.map((function(t){var r,o=[];if(t.forEach((function(e){e.forEach((function(e){e.forEach((function(e){n[e<0?~e:e].length<2&&o.push(e)}))}))})),o=Object(i["a"])(e,o),(r=o.length)>1)for(var a,s,l=1,c=u(o[0]);l<r;++l)(a=u(o[l]))>c&&(s=o[0],o[0]=o[l],o[l]=s,c=a);return o}))}}t["a"]=function(e){return Object(r["b"])(e,a.apply(this,arguments))}},function(e,t,n){"use strict";var r=n(396);t["a"]=function(e){var t={},n=e.map((function(){return[]}));function i(e,n){e.forEach((function(e){e<0&&(e=~e);var r=t[e];r?r.push(n):t[e]=[n]}))}function o(e,t){e.forEach((function(e){i(e,t)}))}function a(e,t){"GeometryCollection"===e.type?e.geometries.forEach((function(e){a(e,t)})):e.type in s&&s[e.type](e.arcs,t)}var s={LineString:i,MultiLineString:o,Polygon:o,MultiPolygon:function(e,t){e.forEach((function(e){o(e,t)}))}};for(var l in e.forEach(a),t)for(var c=t[l],u=c.length,d=0;d<u;++d)for(var f=d+1;f<u;++f){var h,p=c[d],m=c[f];(h=n[p])[l=Object(r["a"])(h,m)]!==m&&h.splice(l,0,m),(h=n[m])[l=Object(r["a"])(h,p)]!==p&&h.splice(l,0,p)}return n}},function(e,t,n){"use strict";t["a"]=function(e,t){var n=0,r=e.length;while(n<r){var i=n+r>>>1;e[i]<t?n=i+1:r=i}return n}},function(e,t,n){"use strict";var r=n(164),i=n(167);t["a"]=function(e,t){if(e.transform)throw new Error("already quantized");if(t&&t.scale)c=e.bbox;else{if(!((n=Math.floor(t))>=2))throw new Error("n must be ≥2");c=e.bbox||Object(r["a"])(e);var n,o=c[0],a=c[1],s=c[2],l=c[3];t={scale:[s-o?(s-o)/(n-1):1,l-a?(l-a)/(n-1):1],translate:[o,a]}}var c,u,d=Object(i["a"])(t),f=e.objects,h={};function p(e){return d(e)}function m(e){var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(m)};break;case"Point":t={type:"Point",coordinates:p(e.coordinates)};break;case"MultiPoint":t={type:"MultiPoint",coordinates:e.coordinates.map(p)};break;default:return e}return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}function g(e){var t,n=0,r=1,i=e.length,o=new Array(i);o[0]=d(e[0],0);while(++n<i)((t=d(e[n],n))[0]||t[1])&&(o[r++]=t);return 1===r&&(o[r++]=[0,0]),o.length=r,o}for(u in f)h[u]=m(f[u]);return{type:"Topology",bbox:c,transform:t,objects:h,arcs:e.arcs.map(g)}}},function(e,t,n){var r=n(2),i=r.registerTransform;i("default",(function(e){return e}))},function(e,t,n){var r=n(2),i=r.registerTransform;function o(e){return!!e}i("filter",(function(e,t){void 0===t&&(t={}),e.rows=e.rows.filter(t.callback||o)}))},function(e,t,n){var r=n(3),i=n(401),o=n(32),a=n(2),s=a.registerTransform,l=n(7),c=l.getFields,u={fields:[],key:"key",retains:[],value:"value"};s("fold",(function(e,t){var n=e.getColumnNames();t=r({},u,t);var a=c(t);0===a.length&&(console.warn("warning: option fields is not specified, will fold all columns."),a=n);var s=t.key,l=t.value,d=t.retains;0===d.length&&(d=i(n,a));var f=[];e.rows.forEach((function(e){a.forEach((function(t){var n=o(e,d);n[s]=t,n[l]=e[t],f.push(n)}))})),e.rows=f}))},function(e,t,n){var r=n(402),i=n(168),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r(e,(function(e){return!i(t,e)}))};e.exports=o},function(e,t,n){var r=n(9),i=n(91),o=function(e,t){if(!i(e))return e;var n=[];return r(e,(function(e,r){t(e,r)&&n.push(e)})),n};e.exports=o},function(e,t,n){var r=n(2),i=r.registerTransform;function o(e){return e}i("map",(function(e,t){void 0===t&&(t={}),e.rows=e.rows.map(t.callback||o)}))},function(e,t,n){var r=n(3),i=n(83),o=n(15),a=n(2),s=a.registerTransform,l={groupBy:[],orderBy:[]};function c(e,t){void 0===t&&(t={}),t=r({},l,t),e.rows=i(o(e.rows,t.groupBy,t.orderBy))}s("partition",(function(e,t){void 0===t&&(t={}),t=r({},l,t),e.rows=o(e.rows,t.groupBy,t.orderBy)})),s("group",c),s("groups",c)},function(e,t,n){var r=n(3),i=n(9),o=n(6),a=n(10),s=n(19),l=s.sum,c=n(15),u=n(2),d=u.registerTransform,f=n(7),h=f.getField,p={groupBy:[],as:"_percent"};function m(e,t){void 0===t&&(t={}),t=r({},p,t);var n=h(t),s=t.dimension,u=t.groupBy,d=t.as;if(!a(s))throw new TypeError("Invalid dimension: must be a string!");if(o(d)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),d=d[0]),!a(d))throw new TypeError("Invalid as: must be a string!");var f=e.rows,m=[],g=c(f,u);i(g,(function(e){var t=l(e.map((function(e){return e[n]})));0===t&&console.warn("Invalid data: total sum of field "+n+" is 0!");var r=c(e,[s]);i(r,(function(e){var r=l(e.map((function(e){return e[n]}))),i=e[0],o=i[s];i[n]=r,i[s]=o,i[d]=0===t?0:r/t,m.push(i)}))})),e.rows=m}d("percent",m)},function(e,t,n){var r=n(32),i=n(2),o=i.registerTransform,a=n(7),s=a.getFields;o("pick",(function(e,t){void 0===t&&(t={});var n=s(t,e.getColumnNames());e.rows=e.rows.map((function(e){return r(e,n)}))}))},function(e,t,n){var r=n(3),i=n(9),o=n(6),a=n(10),s=n(15),l=n(2),c=l.registerTransform,u=n(7),d=u.getField,f={groupBy:[],as:"_proportion"};function h(e,t){void 0===t&&(t={}),t=r({},f,t);var n=d(t),l=t.dimension,c=t.groupBy,u=t.as;if(!a(l))throw new TypeError("Invalid dimension: must be a string!");if(o(u)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),u=u[0]),!a(u))throw new TypeError("Invalid as: must be a string!");var h=e.rows,p=[],m=s(h,c);i(m,(function(e){var t=e.length,r=s(e,[l]);i(r,(function(e){var r=e.length,i=e[0],o=i[l];i[n]=r,i[l]=o,i[u]=r/t,p.push(i)}))})),e.rows=p}c("proportion",h)},function(e,t,n){var r=n(9),i=n(54),o=n(10),a=n(2),s=a.registerTransform;function l(e,t){void 0===t&&(t={});var n=t.map||{},a={};i(n)&&r(n,(function(e,t){o(e)&&o(t)&&(a[t]=e)})),e.rows.forEach((function(e){r(n,(function(t,n){var r=e[n];delete e[n],e[t]=r}))}))}s("rename",l),s("rename-fields",l)},function(e,t,n){var r=n(2),i=r.registerTransform;i("reverse",(function(e){e.rows.reverse()}))},function(e,t,n){var r=n(2),i=r.registerTransform;i("sort",(function(e,t){void 0===t&&(t={});var n=e.getColumnName(0);e.rows.sort(t.callback||function(e,t){return e[n]-t[n]})}))},function(e,t,n){var r=n(6),i=n(412),o=n(2),a=o.registerTransform,s=n(7),l=s.getFields,c=["ASC","DESC"];function u(e,t){void 0===t&&(t={});var n=l(t,[e.getColumnName(0)]);if(!r(n))throw new TypeError("Invalid fields: must be an array with strings!");e.rows=i(e.rows,n);var o=t.order;if(o&&-1===c.indexOf(o))throw new TypeError("Invalid order: "+o+" must be one of "+c.join(", "));"DESC"===o&&e.rows.reverse()}a("sort-by",u),a("sortBy",u)},function(e,t,n){var r=n(10),i=n(11),o=n(6);function a(e,t){var n=void 0;if(i(t))n=function(e,n){return t(e)-t(n)};else{var a=[];r(t)?a.push(t):o(t)&&(a=t),n=function(e,t){for(var n=0;n<a.length;n+=1){var r=a[n];if(e[r]>t[r])return 1;if(e[r]<t[r])return-1}return 0}}return e.sort(n),e}e.exports=a},function(e,t,n){var r=n(2),i=r.registerTransform,o=n(7),a=o.getFields;i("subset",(function(e,t){void 0===t&&(t={});var n=t.startRowIndex||0,r=t.endRowIndex||e.rows.length-1,i=a(t,e.getColumnNames());e.rows=e.getSubset(n,r,i)}))},function(e,t,n){var r=n(3),i=n(9),o=n(15),a=n(2),s=a.registerTransform,l={fillBy:"group",groupBy:[],orderBy:[]};function c(e,t){var n=e.map((function(e){return e}));return t.forEach((function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)})),n}function u(e,t){void 0===t&&(t={}),t=r({},l,t);var n=e.rows,a=t.groupBy,s=t.orderBy,u=o(n,a,s),d=0,f=[];i(u,(function(e){e.length>d&&(d=e.length,f=e)}));var h=[],p={};if(f.forEach((function(e){var t=s.map((function(t){return e[t]})).join("-");h.push(t),p[t]=e})),"order"===t.fillBy){var m=f[0],g=[],v={};n.forEach((function(e){var t=s.map((function(t){return e[t]})).join("-");-1===g.indexOf(t)&&(g.push(t),v[t]=e)}));var y=c(g,h);y.forEach((function(e){var t={};a.forEach((function(e){t[e]=m[e]})),s.forEach((function(n){t[n]=v[e][n]})),n.push(t),f.push(t),h.push(e),p[e]=t})),d=f.length}i(u,(function(e){if(e!==f&&e.length<d){var t=e[0],r=[];e.forEach((function(e){r.push(s.map((function(t){return e[t]})).join("-"))}));var i=c(h,r);i.some((function(r,i){if(i>=d-e.length)return!0;var o=p[r],l={};return a.forEach((function(e){l[e]=t[e]})),s.forEach((function(e){l[e]=o[e]})),n.push(l),!1}))}}))}s("fill-rows",u),s("fillRows",u)},function(e,t,n){var r=n(3),i=n(9),o=n(416),a=n(11),s=n(417),l=n(10),c=n(19),u=n(15),d=n(2),f=d.registerTransform,h=n(7),p=h.getField,m={groupBy:[]};function g(e){return e.filter((function(e){return!s(e)}))}var v=["mean","median","max","min"],y={};function b(e,t){void 0===t&&(t={}),t=r({},m,t);var n=p(t),c=t.method;if(!c)throw new TypeError("Invalid method!");if("value"===c&&!o(t,"value"))throw new TypeError("Invalid value: it is nil.");var d=g(e.getColumn(n)),f=u(e.rows,t.groupBy);i(f,(function(e){var r=g(e.map((function(e){return e[n]})));0===r.length&&(r=d),e.forEach((function(i){if(s(i[n]))if(a(c))i[n]=c(i,r,t.value,e);else{if(!l(c))throw new TypeError("Invalid method: must be a function or one of "+v.join(", "));i[n]=y[c](i,r,t.value)}}))}))}v.forEach((function(e){y[e]=function(t,n){return c[e](n)}})),y.value=function(e,t,n){return n},f("impute",b)},function(e,t){e.exports=function(e,t){return e.hasOwnProperty(t)}},function(e,t){var n=function(e){return void 0===e};e.exports=n},function(e,t,n){var r=n(3),i=n(156),o=n(9),a=n(6),s=n(10),l=n(24),c=n(419),u=n(19),d=n(15),f=n(2),h=f.registerTransform,p=n(84),m=p.STATISTICS_METHODS,g=n(7),v=g.getFields,y={as:[],fields:[],groupBy:[],operations:[]},b="count",_={count:function(e){return e.length},distinct:function(e,t){var n=c(e.map((function(e){return e[t]})));return n.length}};function w(e,t){t=r({},y,t);var n=v(t);if(!a(n))throw new TypeError("Invalid fields: it must be an array with one or more strings!");var i=t.as||[];s(i)&&(i=[i]);var l=t.operations;s(l)&&(l=[l]);var c=[b];if(a(l)&&l.length||(console.warn('operations is not defined, will use [ "count" ] directly.'),l=c,i=l),1!==l.length||l[0]!==b){if(l.length!==n.length)throw new TypeError("Invalid operations: it's length must be the same as fields!");if(i.length!==n.length)throw new TypeError("Invalid as: it's length must be the same as fields!")}var u=d(e.rows,t.groupBy),f=[];o(u,(function(e){var t=e[0];l.forEach((function(r,o){var a=i[o],s=n[o];t[a]=_[r](e,s)})),f.push(t)})),e.rows=f}m.forEach((function(e){_[e]=function(t,n){var r=t.map((function(e){return e[n]}));return a(r)&&a(r[0])&&(r=i(r)),u[e](r)}})),_.average=_.mean,h("aggregate",w),h("summary",w),e.exports={VALID_AGGREGATES:l(_)}},function(e,t,n){var r=n(9),i=n(168),o=function(e){var t=[];return r(e,(function(e){i(t,e)||t.push(e)})),t};e.exports=o},function(e,t,n){var r=n(3),i=n(6),o=n(56),a=n(421),s=n(57),l=n(2),c=l.registerTransform,u=n(7),d=u.getFields,f=n(58),h=f.silverman,p={as:["x","y"],method:"linear",order:2,precision:2},m=["linear","exponential","logarithmic","power","polynomial"];function g(e,t){t=r({},p,t);var n=d(t);if(!i(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings.");var l=n[0],c=n[1],u=t.method;if(-1===m.indexOf(u))throw new TypeError("invalid method: "+u+". Must be one of "+m.join(", "));var f=e.rows.map((function(e){return[e[l],e[c]]})),g=a[u](f,t),v=t.extent;i(v)&&2===v.length||(v=e.range(l));var y=t.bandwidth;(!o(y)||y<=0)&&(y=h(e.getColumn(l)));var b=s(v,y),_=[],w=t.as,x=w[0],S=w[1];b.forEach((function(e){var t={},n=g.predict(e),r=n[0],i=n[1];t[x]=r,t[S]=i,isFinite(i)&&_.push(t)})),e.rows=_}c("regression",g),e.exports={REGRESSION_METHODS:m}},function(e,t,n){var r,i,o;(function(n,a){i=[e],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})(0,(function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i={order:2,precision:2,period:null};function o(e,t){var n=[],r=[];e.forEach((function(e,i){null!==e[1]&&(r.push(e),n.push(t[i]))}));var i=r.reduce((function(e,t){return e+t[1]}),0),o=i/r.length,a=r.reduce((function(e,t){var n=t[1]-o;return e+n*n}),0),s=r.reduce((function(e,t,r){var i=n[r],o=t[1]-i[1];return e+o*o}),0);return 1-s/a}function a(e,t){for(var n=e,r=e.length-1,i=[t],o=0;o<r;o++){for(var a=o,s=o+1;s<r;s++)Math.abs(n[o][s])>Math.abs(n[o][a])&&(a=s);for(var l=o;l<r+1;l++){var c=n[l][o];n[l][o]=n[l][a],n[l][a]=c}for(var u=o+1;u<r;u++)for(var d=r;d>=o;d--)n[d][u]-=n[d][o]*n[o][u]/n[o][o]}for(var f=r-1;f>=0;f--){for(var h=0,p=f+1;p<r;p++)h+=n[p][f]*i[p];i[f]=(n[r][f]-h)/n[f][f]}return i}function s(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var l={linear:function(e,t){for(var n=[0,0,0,0,0],r=0,i=0;i<e.length;i++)null!==e[i][1]&&(r++,n[0]+=e[i][0],n[1]+=e[i][1],n[2]+=e[i][0]*e[i][0],n[3]+=e[i][0]*e[i][1],n[4]+=e[i][1]*e[i][1]);var a=r*n[2]-n[0]*n[0],l=r*n[3]-n[0]*n[1],c=0===a?0:s(l/a,t.precision),u=s(n[1]/r-c*n[0]/r,t.precision),d=function(e){return[s(e,t.precision),s(c*e+u,t.precision)]},f=e.map((function(e){return d(e[0])}));return{points:f,predict:d,equation:[c,u],r2:s(o(e,f),t.precision),string:0===u?"y = "+c+"x":"y = "+c+"x + "+u}},exponential:function(e,t){for(var n=[0,0,0,0,0,0],r=0;r<e.length;r++)null!==e[r][1]&&(n[0]+=e[r][0],n[1]+=e[r][1],n[2]+=e[r][0]*e[r][0]*e[r][1],n[3]+=e[r][1]*Math.log(e[r][1]),n[4]+=e[r][0]*e[r][1]*Math.log(e[r][1]),n[5]+=e[r][0]*e[r][1]);var i=n[1]*n[2]-n[5]*n[5],a=Math.exp((n[2]*n[3]-n[5]*n[4])/i),l=(n[1]*n[4]-n[5]*n[3])/i,c=s(a,t.precision),u=s(l,t.precision),d=function(e){return[s(e,t.precision),s(c*Math.exp(u*e),t.precision)]},f=e.map((function(e){return d(e[0])}));return{points:f,predict:d,equation:[c,u],string:"y = "+c+"e^("+u+"x)",r2:s(o(e,f),t.precision)}},logarithmic:function(e,t){for(var n=[0,0,0,0],r=e.length,i=0;i<r;i++)null!==e[i][1]&&(n[0]+=Math.log(e[i][0]),n[1]+=e[i][1]*Math.log(e[i][0]),n[2]+=e[i][1],n[3]+=Math.pow(Math.log(e[i][0]),2));var a=(r*n[1]-n[2]*n[0])/(r*n[3]-n[0]*n[0]),l=s(a,t.precision),c=s((n[2]-l*n[0])/r,t.precision),u=function(e){return[s(e,t.precision),s(s(c+l*Math.log(e),t.precision),t.precision)]},d=e.map((function(e){return u(e[0])}));return{points:d,predict:u,equation:[c,l],string:"y = "+c+" + "+l+" ln(x)",r2:s(o(e,d),t.precision)}},power:function(e,t){for(var n=[0,0,0,0,0],r=e.length,i=0;i<r;i++)null!==e[i][1]&&(n[0]+=Math.log(e[i][0]),n[1]+=Math.log(e[i][1])*Math.log(e[i][0]),n[2]+=Math.log(e[i][1]),n[3]+=Math.pow(Math.log(e[i][0]),2));var a=(r*n[1]-n[0]*n[2])/(r*n[3]-Math.pow(n[0],2)),l=(n[2]-a*n[0])/r,c=s(Math.exp(l),t.precision),u=s(a,t.precision),d=function(e){return[s(e,t.precision),s(s(c*Math.pow(e,u),t.precision),t.precision)]},f=e.map((function(e){return d(e[0])}));return{points:f,predict:d,equation:[c,u],string:"y = "+c+"x^"+u,r2:s(o(e,f),t.precision)}},polynomial:function(e,t){for(var n=[],i=[],l=0,c=0,u=e.length,d=t.order+1,f=0;f<d;f++){for(var h=0;h<u;h++)null!==e[h][1]&&(l+=Math.pow(e[h][0],f)*e[h][1]);n.push(l),l=0;for(var p=[],m=0;m<d;m++){for(var g=0;g<u;g++)null!==e[g][1]&&(c+=Math.pow(e[g][0],f+m));p.push(c),c=0}i.push(p)}i.push(n);for(var v=a(i,d).map((function(e){return s(e,t.precision)})),y=function(e){return[s(e,t.precision),s(v.reduce((function(t,n,r){return t+n*Math.pow(e,r)}),0),t.precision)]},b=e.map((function(e){return y(e[0])})),_="y = ",w=v.length-1;w>=0;w--)_+=w>1?v[w]+"x^"+w+" + ":1===w?v[w]+"x + ":v[w];return{string:_,points:b,predict:y,equation:[].concat(r(v)).reverse(),r2:s(o(e,b),t.precision)}}};function c(){var e=function(e,r){return n({_round:s},e,t({},r,(function(e,t){return l[r](e,n({},i,t))})))};return Object.keys(l).reduce(e,{})}e.exports=c()}))},function(e,t,n){var r=n(3),i=n(9),o=n(9),a=n(6),s=n(11),l=n(56),c=n(10),u=n(24),d=n(32),f=n(57),h=n(92),p=n(58),m=n(15),g=n(2),v=g.registerTransform,y=n(7),b=y.getFields,_=n(19),w=_.kernelDensityEstimation,x={minSize:.01,as:["key","y","size"],extent:[],method:"gaussian",bandwidth:"nrd",step:0,groupBy:[]},S=u(h),C=u(p);function E(e,t){t=r({},x,t);var n=b(t);if(!a(n)||n.length<1)throw new TypeError("invalid fields: must be an array of at least 1 strings!");var u=t.as;if(!a(u)||3!==u.length)throw new TypeError("invalid as: must be an array of 3 strings!");var g=t.method;if(c(g)){if(-1===S.indexOf(g))throw new TypeError("invalid method: "+g+". Must be one of "+S.join(", "));g=h[g]}if(!s(g))throw new TypeError("invalid method: kernel method must be a function!");var v=t.extent;if(!a(v)||0===v.length){var y=[];i(n,(function(t){var n=e.range(t);y=y.concat(n)})),v=[Math.min.apply(Math,y),Math.max.apply(Math,y)]}var _=t.bandwidth;c(_)&&p[_]?_=p[_](e.getColumn(n[0])):s(_)?_=_(e.getColumn(n[0])):(!l(_)||_<=0)&&(_=p.nrd(e.getColumn(n[0])));var C=f(v,t.step?t.step:_),E=[],k=t.groupBy,O=m(e.rows,k);o(O,(function(e){var r={};i(n,(function(n){var o=d(e[0],k);r[n]=w(e.map((function(e){return e[n]})),g,_);var a=u[0],s=u[1],l=u[2];o[a]=n,o[s]=[],o[l]=[],i(C,(function(e){var i=r[n](e);i>=t.minSize&&(o[s].push(e),o[l].push(i))})),E.push(o)}))})),e.rows=E}v("kernel-density-estimation",E),v("kde",E),v("KDE",E),e.exports={KERNEL_METHODS:S,BANDWIDTH_METHODS:C}},function(e,t,n){var r=n(3),i=n(9),o=n(6),a=n(2),s=a.registerTransform,l=n(7),c=l.getFields,u={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1},d=Math.sqrt(3),f=Math.PI/3,h=[0,f,2*f,3*f,4*f,5*f];function p(e,t,n,r){return Math.sqrt((e-n)*(e-n)+(t-r)*(t-r))}function m(e,t,n){var r=e-n;t/=2;var i=Math.floor(r/t),o=t*(i+(1===Math.abs(i%2)?1:0)),a=t*(i+(1===Math.abs(i%2)?0:1));return[o+n,a+n]}function g(e,t,n){void 0===t&&(t=[1,1]),void 0===n&&(n=[0,0]);var r={},i=t,o=i[0],a=i[1],s=n,l=s[0],c=s[1];return e.forEach((function(e){var t,n,i,s=e[0],u=e[1],d=m(s,o,l),f=d[0],h=d[1],g=m(u,a,c),v=g[0],y=g[1],b=p(s,u,f,v),_=p(s,u,h,y);b<_?(t="x"+f+"y"+v,n=f,i=v):(t="x"+h+"y"+y,n=h,i=y),r[t]=r[t]||{x:n,y:i,count:0},r[t].count++})),r}function v(e,t){t=r({},u,t);var n=c(t);if(!o(n)||2!==n.length)throw new TypeError("Invalid fields: it must be an array with 2 strings!");var a=n[0],s=n[1],l=e.range(a),f=e.range(s),p=l[1]-l[0],m=f[1]-f[0],v=t.binWidth||[];if(2!==v.length){var y=t.bins,b=y[0],_=y[1];if(b<=0||_<=0)throw new TypeError("Invalid bins: must be an array with two positive numbers (e.g. [ 30, 30 ])!");v=[p/b,m/_]}var w=t.offset,x=w[0],S=w[1],C=3*v[0]/(d*v[1]),E=e.rows.map((function(e){return[e[a],C*e[s]]})),k=g(E,[v[0],C*v[1]],[x,C*S]),O=t.as,T=O[0],I=O[1],A=O[2];if(!T||!I||!A)throw new TypeError('Invalid as: it must be an array with three elements (e.g. [ "x", "y", "count" ])!');var R=v[0]/d,P=h.map((function(e){return[Math.sin(e)*R,-Math.cos(e)*R]})),M=[],N=0;t.sizeByCount&&i(k,(function(e){e.count>N&&(N=e.count)})),i(k,(function(e){var n=e.x,r=e.y,i=e.count,o={};o[A]=i,t.sizeByCount?(o[T]=P.map((function(t){return n+e.count/N*t[0]})),o[I]=P.map((function(t){return(r+e.count/N*t[1])/C}))):(o[T]=P.map((function(e){return n+e[0]})),o[I]=P.map((function(e){return(r+e[1])/C}))),M.push(o)})),e.rows=M}s("bin.hexagon",v),s("bin.hex",v),s("hexbin",v)},function(e,t,n){var r=n(3),i=n(9),o=n(32),a=n(15),s=n(2),l=s.registerTransform,c=n(7),u=c.getField,d={as:["x","count"],bins:30,offset:0,groupBy:[]};function f(e,t,n){var r=e-n,i=Math.floor(r/t);return[i*t+n,(i+1)*t+n]}function h(e,t){t=r({},d,t);var n=u(t);if(0!==e.rows.length){var s=e.range(n),l=s[1]-s[0],c=t.binWidth;if(!c){var h=t.bins;if(h<=0)throw new TypeError("Invalid bins: it must be a positive number!");c=l/h}var p=t.offset%c,m=[],g=t.groupBy,v=a(e.rows,g);i(v,(function(e){var a={},s=e.map((function(e){return e[n]}));s.forEach((function(e){var t=f(e,c,p),n=t[0],r=t[1],i=n+"-"+r;a[i]=a[i]||{x0:n,x1:r,count:0},a[i].count++}));var l=t.as,u=l[0],d=l[1];if(!u||!d)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var h=o(e[0],g);i(a,(function(e){var t=r({},h);t[u]=[e.x0,e.x1],t[d]=e.count,m.push(t)}))})),e.rows=m}}l("bin.histogram",h),l("bin.dot",h)},function(e,t,n){var r=n(3),i=n(9),o=n(6),a=n(10),s=n(19),l=s.quantile,c=n(15),u=n(157),d=n(2),f=d.registerTransform,h=n(7),p=h.getField,m={as:"_bin",groupBy:[],fraction:4};function g(e,t){t=r({},m,t);var n=p(t),s=t.as;if(!a(s))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var d=t.p,f=t.fraction;o(d)&&0!==d.length||(d=u(f));var h=e.rows,g=t.groupBy,v=c(h,g),y=[];i(v,(function(e){var t=e[0],r=e.map((function(e){return e[n]})),i=d.map((function(e){return l(r,e)}));t[s]=i,y.push(t)})),e.rows=y}f("bin.quantile",g)},function(e,t,n){var r=n(3),i=n(9),o=n(2),a=o.registerTransform,s=n(7),l=s.getFields,c={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};function u(e,t,n){var r=e-n,i=Math.floor(r/t);return[i*t+n,(i+1)*t+n]}function d(e,t){t=r({},c,t);var n=l(t),o=n[0],a=n[1];if(!o||!a)throw new TypeError("Invalid fields: must be an array with 2 strings!");var s=e.range(o),d=e.range(a),f=s[1]-s[0],h=d[1]-d[0],p=t.binWidth||[];if(2!==p.length){var m=t.bins,g=m[0],v=m[1];if(g<=0||v<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");p=[f/g,h/v]}var y=e.rows.map((function(e){return[e[o],e[a]]})),b={},_=t.offset,w=_[0],x=_[1];y.forEach((function(e){var t=u(e[0],p[0],w),n=t[0],r=t[1],i=u(e[1],p[1],x),o=i[0],a=i[1],s=n+"-"+r+"-"+o+"-"+a;b[s]=b[s]||{x0:n,x1:r,y0:o,y1:a,count:0},b[s].count++}));var S=[],C=t.as,E=C[0],k=C[1],O=C[2];if(!E||!k||!O)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(t.sizeByCount){var T=0;i(b,(function(e){e.count>T&&(T=e.count)})),i(b,(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=e.count,a=o/T,s=(t+n)/2,l=(r+i)/2,c=(n-t)*a/2,u=(i-r)*a/2,d=s-c,f=s+c,h=l-u,p=l+u,m={};m[E]=[d,f,f,d],m[k]=[h,h,p,p],m[O]=o,S.push(m)}))}else i(b,(function(e){var t={};t[E]=[e.x0,e.x1,e.x1,e.x0],t[k]=[e.y0,e.y0,e.y1,e.y1],t[O]=e.count,S.push(t)}));e.rows=S}a("bin.rectangle",d),a("bin.rect",d)},function(e,t,n){var r=n(3),i=n(6),o=n(10),a=n(2),s=a.registerTransform,l=n(7),c=l.getField,u={as:["_centroid_x","_centroid_y"]};function d(e,t){t=r({},u,t);var n=c(t),a=t.geoView||t.geoDataView;if(o(a)&&(a=e.dataSet.getView(a)),!a||"geo"!==a.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=t.as;if(!i(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var l=s[0],d=s[1];e.rows.forEach((function(e){var t=a.geoFeatureByName(e[n]);t&&(a._projectedAs?(e[l]=t[a._projectedAs[2]],e[d]=t[a._projectedAs[3]]):(e[l]=t.centroidX,e[d]=t.centroidY))}))}s("geo.centroid",d)},function(e,t,n){var r=n(3),i=n(0),o=n(159),a=n(6),s=n(2),l=s.registerTransform,c=n(141),u=i.geoPath,d={as:["_x","_y","_centroid_x","_centroid_y"]};function f(e,t){if("geo"!==e.dataType&&"geo-graticule"!==e.dataType)throw new TypeError("Invalid dataView: this transform is for Geo data only!");t=r({},d,t);var n=t.projection;if(!n)throw new TypeError("Invalid projection!");n=c(n);var i=u(n),s=t.as;if(!a(s)||4!==s.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');e._projectedAs=s;var l=s[0],f=s[1],h=s[2],p=s[3];e.rows.forEach((function(e){e[l]=[],e[f]=[];var t=i(e);if(t){var n=o(t);n._path.forEach((function(t){e[l].push(t[1]),e[f].push(t[2])}));var r=i.centroid(e);e[h]=r[0],e[p]=r[1]}})),e.rows=e.rows.filter((function(e){return 0!==e[l].length}))}l("geo.projection",f)},function(e,t,n){var r=n(3),i=n(6),o=n(10),a=n(2),s=a.registerTransform,l=n(7),c=l.getField,u={as:["_x","_y"]};function d(e,t){t=r({},u,t);var n=c(t),a=t.geoView||t.geoDataView;if(o(a)&&(a=e.dataSet.getView(a)),!a||"geo"!==a.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=t.as;if(!i(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var l=s[0],d=s[1];e.rows.forEach((function(e){var t=a.geoFeatureByName(e[n]);t&&(a._projectedAs?(e[l]=t[a._projectedAs[0]],e[d]=t[a._projectedAs[1]]):(e[l]=t.longitude,e[d]=t.latitude))}))}s("geo.region",d)},function(e,t,n){var r=n(3),i=n(9),o=n(6),a=n(83),s=n(11),l=n(2),c=l.registerTransform,u={y:0,thickness:.05,weight:!1,marginRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function d(e,t,n){return void 0===n&&(n={}),e.forEach((function(e){var r=t.edgeSource(e),i=t.edgeTarget(e);n[r]||(n[r]={id:r}),n[i]||(n[i]={id:i})})),a(n)}function f(e,t,n){i(e,(function(e,r){e.inEdges=t.filter((function(e){return""+n.target(e)===""+r})),e.outEdges=t.filter((function(e){return""+n.source(e)===""+r})),e.edges=e.outEdges.concat(e.inEdges),e.frequency=e.edges.length,e.value=0,e.inEdges.forEach((function(t){e.value+=n.targetWeight(t)})),e.outEdges.forEach((function(t){e.value+=n.sourceWeight(t)}))}))}function h(e,t){var n={weight:function(e,t){return t.value-e.value},frequency:function(e,t){return t.frequency-e.frequency},id:function(e,n){return(""+t.id(e)).localeCompare(""+t.id(n))}},r=n[t.sortBy];!r&&s(t.sortBy)&&(r=t.sortBy),r&&e.sort(r)}function p(e,t){var n=e.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(t.weight){var r=t.marginRatio;if(r<0||r>=1)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var i=r/(2*n),o=t.thickness;if(o<=0||o>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var a=0;e.forEach((function(e){a+=e.value})),e.forEach((function(e){e.weight=e.value/a,e.width=e.weight*(1-r),e.height=o})),e.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=e[s].width+2*i;var l=n.minX=i+a,c=n.maxX=n.minX+n.width,u=n.minY=t.y-o/2,d=n.maxY=u+o;n.x=[l,c,c,l],n.y=[u,u,d,d]}))}else{var s=1/n;e.forEach((function(e,n){e.x=(n+.5)*s,e.y=t.y}))}}function m(e,t,n){if(n.weight){var r={};i(e,(function(e,t){r[t]=e.value})),t.forEach((function(t){var i=n.source(t),o=n.target(t),a=e[i],s=e[o];if(a&&s){var l=r[i],c=n.sourceWeight(t),u=a.minX+(a.value-l)/a.value*a.width,d=u+c/a.value*a.width;r[i]-=c;var f=r[o],h=n.targetWeight(t),p=s.minX+(s.value-f)/s.value*s.width,m=p+h/s.value*s.width;r[o]-=h;var g=n.y;t.x=[u,d,p,m],t.y=[g,g,g,g]}}))}else t.forEach((function(t){var r=e[n.source(t)],i=e[n.target(t)];r&&i&&(t.x=[r.x,i.x],t.y=[r.y,i.y])}))}function g(e,t){t=r({},u,t);var n={},i=e.nodes,a=e.edges;o(i)&&0!==i.length||(i=d(a,t,n)),i.forEach((function(e){var r=t.id(e);n[r]=e})),f(n,a,t),h(i,t),p(i,t),m(n,a,t),e.nodes=i,e.edges=a}c("diagram.arc",g),c("arc",g)},function(e,t,n){var r=n(3),i=n(432),o=n(2),a=o.registerTransform,s={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(e){return e.source},target:function(e){return e.target}};function l(e,t){t=r({},s,t);var n=new i.graphlib.Graph;n.setGraph({}),n.setDefaultEdgeLabel((function(){return{}})),e.nodes.forEach((function(e){var r=t.nodeId?t.nodeId(e):e.id;e.height||e.width||(e.height=e.width=t.edgesep),n.setNode(r,e)})),e.edges.forEach((function(e){n.setEdge(t.source(e),t.target(e))})),i.layout(n);var o=[],a=[];n.nodes().forEach((function(e){var t=n.node(e),r=t.x,i=t.y,a=t.height,s=t.width;t.x=[r-s/2,r+s/2,r+s/2,r-s/2],t.y=[i+a/2,i+a/2,i-a/2,i-a/2],o.push(t)})),n.edges().forEach((function(e){var t=n.edge(e),r=t.points,i={};i.x=r.map((function(e){return e.x})),i.y=r.map((function(e){return e.y})),a.push(i)})),e.nodes=o,e.edges=a}a("diagram.dagre",l),a("dagre",l)},function(e,t,n){e.exports={graphlib:n(16),layout:n(448),debug:n(470),util:{time:n(12).time,notime:n(12).notime},version:n(471)}},function(e,t,n){var r=n(434);e.exports={Graph:r.Graph,json:n(438),alg:n(439),version:r.version}},function(e,t,n){e.exports={Graph:n(93),version:n(437)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports="2.1.5"},function(e,t,n){var r=n(13),i=n(93);function o(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:a(e),edges:s(e)};return r.isUndefined(e.graph())||(t.value=r.clone(e.graph())),t}function a(e){return r.map(e.nodes(),(function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function s(e){return r.map(e.edges(),(function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i}))}function l(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}e.exports={write:o,read:l}},function(e,t,n){e.exports={components:n(440),dijkstra:n(170),dijkstraAll:n(441),findCycles:n(442),floydWarshall:n(443),isAcyclic:n(444),postorder:n(445),preorder:n(446),prim:n(447),tarjan:n(172),topsort:n(173)}},function(e,t,n){var r=n(13);function i(e){var t,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,t.push(i),r.each(e.successors(i),o),r.each(e.predecessors(i),o))}return r.each(e.nodes(),(function(e){t=[],o(e),t.length&&i.push(t)})),i}e.exports=i},function(e,t,n){var r=n(170),i=n(13);function o(e,t,n){return i.transform(e.nodes(),(function(i,o){i[o]=r(e,o,t,n)}),{})}e.exports=o},function(e,t,n){var r=n(13),i=n(172);function o(e){return r.filter(i(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}e.exports=o},function(e,t,n){var r=n(13);e.exports=o;var i=r.constant(1);function o(e,t,n){return a(e,t||i,n||function(t){return e.outEdges(t)})}function a(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}},function(e,t,n){var r=n(173);function i(e){try{r(e)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}e.exports=i},function(e,t,n){var r=n(174);function i(e,t){return r(e,t,"post")}e.exports=i},function(e,t,n){var r=n(174);function i(e,t){return r(e,t,"pre")}e.exports=i},function(e,t,n){var r=n(13),i=n(93),o=n(171);function a(e,t){var n,a=new i,s={},l=new o;function c(e){var r=e.v===n?e.w:e.v,i=l.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,l.decrease(r,o))}}if(0===e.nodeCount())return a;r.each(e.nodes(),(function(e){l.add(e,Number.POSITIVE_INFINITY),a.setNode(e)})),l.decrease(e.nodes()[0],0);var u=!1;while(l.size()>0){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(n).forEach(c)}return a}e.exports=a},function(e,t,n){"use strict";var r=n(8),i=n(449),o=n(452),a=n(453),s=n(12).normalizeRanks,l=n(455),c=n(12).removeEmptyRanks,u=n(456),d=n(457),f=n(458),h=n(459),p=n(468),m=n(12),g=n(16).Graph;function v(e,t){var n=t&&t.debugTiming?m.time:m.notime;n("layout",(function(){var t=n("  buildLayoutGraph",(function(){return T(e)}));n("  runLayout",(function(){y(t,n)})),n("  updateInputGraph",(function(){b(e,t)}))}))}function y(e,t){t("    makeSpaceForEdgeLabels",(function(){I(e)})),t("    removeSelfEdges",(function(){F(e)})),t("    acyclic",(function(){i.run(e)})),t("    nestingGraph.run",(function(){u.run(e)})),t("    rank",(function(){a(m.asNonCompoundGraph(e))})),t("    injectEdgeLabelProxies",(function(){A(e)})),t("    removeEmptyRanks",(function(){c(e)})),t("    nestingGraph.cleanup",(function(){u.cleanup(e)})),t("    normalizeRanks",(function(){s(e)})),t("    assignRankMinMax",(function(){R(e)})),t("    removeEdgeLabelProxies",(function(){P(e)})),t("    normalize.run",(function(){o.run(e)})),t("    parentDummyChains",(function(){l(e)})),t("    addBorderSegments",(function(){d(e)})),t("    order",(function(){h(e)})),t("    insertSelfEdges",(function(){B(e)})),t("    adjustCoordinateSystem",(function(){f.adjust(e)})),t("    position",(function(){p(e)})),t("    positionSelfEdges",(function(){q(e)})),t("    removeBorderNodes",(function(){j(e)})),t("    normalize.undo",(function(){o.undo(e)})),t("    fixupEdgeLabelCoords",(function(){L(e)})),t("    undoCoordinateSystem",(function(){f.undo(e)})),t("    translateGraph",(function(){M(e)})),t("    assignNodeIntersects",(function(){N(e)})),t("    reversePoints",(function(){D(e)})),t("    acyclic.undo",(function(){i.undo(e)}))}function b(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}e.exports=v;var _=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},x=["acyclicer","ranker","rankdir","align"],S=["width","height"],C={width:0,height:0},E=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},O=["labelpos"];function T(e){var t=new g({multigraph:!0,compound:!0}),n=U(e.graph());return t.setGraph(r.merge({},w,z(n,_),r.pick(n,x))),r.forEach(e.nodes(),(function(n){var i=U(e.node(n));t.setNode(n,r.defaults(z(i,S),C)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=U(e.edge(n));t.setEdge(n,r.merge({},k,z(i,E),r.pick(i,O)))})),t}function I(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}function A(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i=e.node(t.w),o={rank:(i.rank-r.rank)/2+r.rank,e:t};m.addDummyNode(e,"edge-proxy",o,"_ep")}}))}function R(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}function P(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}function M(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function c(e){var r=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-l/2),o=Math.max(o,a+l/2)}r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&c(n)})),t-=s,i-=l,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var o=e.edge(n);r.forEach(o.points,(function(e){e.x-=t,e.y-=i})),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)})),a.width=n-t+s,a.height=o-i+l}function N(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),o=e.node(t.v),a=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(m.intersectRect(o,n)),i.points.push(m.intersectRect(a,r))}))}function L(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}))}function D(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}function j(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),s=e.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}function F(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}function B(e){var t=m.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,(function(t){m.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}function q(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}function z(e,t){return r.mapValues(r.pick(e,t),Number)}function U(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){"use strict";var r=n(8),i=n(450);function o(e){var t="greedy"===e.graph().acyclicer?i(e,n(e)):a(e);function n(e){return function(t){return e.edge(t).weight}}r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))}function a(e){var t=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),(function(e){r.has(n,e.w)?t.push(e):o(e.w)})),delete n[a])}return r.forEach(e.nodes(),o),t}function s(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}e.exports={run:o,undo:s}},function(e,t,n){var r=n(8),i=n(16).Graph,o=n(451);e.exports=s;var a=r.constant(1);function s(e,t){if(e.nodeCount()<=1)return[];var n=u(e,t||a),i=l(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(i,(function(t){return e.outEdges(t.v,t.w)})),!0)}function l(e,t,n){var r,i=[],o=t[t.length-1],a=t[0];while(e.nodeCount()){while(r=a.dequeue())c(e,t,n,r);while(r=o.dequeue())c(e,t,n,r);if(e.nodeCount())for(var s=t.length-2;s>0;--s)if(r=t[s].dequeue(),r){i=i.concat(c(e,t,n,r,!0));break}}return i}function c(e,t,n,i,o){var a=o?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),s=e.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,d(t,n,s)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),o=r.w,a=e.node(o);a["in"]-=i,d(t,n,a)})),e.removeNode(i.v),a}function u(e,t){var n=new i,a=0,s=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,i=t(e),o=r+i;n.setEdge(e.v,e.w,o),s=Math.max(s,n.node(e.v).out+=i),a=Math.max(a,n.node(e.w)["in"]+=i)}));var l=r.range(s+a+3).map((function(){return new o})),c=a+1;return r.forEach(n.nodes(),(function(e){d(l,c,n.node(e))})),{graph:n,buckets:l,zeroIdx:c}}function d(e,t,n){n.out?n["in"]?e[n.out-n["in"]+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function i(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){var e=[],t=this._sentinel,n=t._prev;while(n!==t)e.push(JSON.stringify(n,i)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(8),i=n(12);function o(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){a(e,t)}))}function a(e,t){var n=t.v,r=e.node(n).rank,o=t.w,a=e.node(o).rank,s=t.name,l=e.edge(t),c=l.labelRank;if(a!==r+1){var u,d,f;for(e.removeEdge(t),f=0,++r;r<a;++f,++r)l.points=[],d={width:0,height:0,edgeLabel:l,edgeObj:t,rank:r},u=i.addDummyNode(e,"edge",d,"_d"),r===c&&(d.width=l.width,d.height=l.height,d.dummy="edge-label",d.labelpos=l.labelpos),e.setEdge(n,u,{weight:l.weight},s),0===f&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,o,{weight:l.weight},s)}}function s(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),i=r.edgeLabel;e.setEdge(r.edgeObj,i);while(r.dummy)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)}))}e.exports={run:o,undo:s}},function(e,t,n){"use strict";var r=n(59),i=r.longestPath,o=n(175),a=n(454);function s(e){switch(e.graph().ranker){case"network-simplex":u(e);break;case"tight-tree":c(e);break;case"longest-path":l(e);break;default:u(e)}}e.exports=s;var l=i;function c(e){i(e),o(e)}function u(e){a(e)}},function(e,t,n){"use strict";var r=n(8),i=n(175),o=n(59).slack,a=n(59).longestPath,s=n(16).alg.preorder,l=n(16).alg.postorder,c=n(12).simplify;function u(e){e=c(e),a(e);var t,n,r=i(e);p(r),d(r,e);while(t=g(r))n=v(r,e,t),y(r,e,t,n)}function d(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){f(e,t,n)}))}function f(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=h(e,t,n)}function h(e,t,n){var i=e.node(n),o=i.parent,a=!0,s=t.edge(n,o),l=0;return s||(a=!1,s=t.edge(o,n)),l=s.weight,r.forEach(t.nodeEdges(n),(function(r){var i=r.v===n,s=i?r.w:r.v;if(s!==o){var c=i===a,u=t.edge(r).weight;if(l+=c?u:-u,_(e,n,s)){var d=e.edge(n,s).cutvalue;l+=c?-d:d}}})),l}function p(e,t){arguments.length<2&&(t=e.nodes()[0]),m(e,{},1,t)}function m(e,t,n,i,o){var a=n,s=e.node(i);return t[i]=!0,r.forEach(e.neighbors(i),(function(o){r.has(t,o)||(n=m(e,t,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function g(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function v(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var s=e.node(i),l=e.node(a),c=s,u=!1;s.lim>l.lim&&(c=l,u=!0);var d=r.filter(t.edges(),(function(t){return u===w(e,e.node(t.v),c)&&u!==w(e,e.node(t.w),c)}));return r.minBy(d,(function(e){return o(t,e)}))}function y(e,t,n,r){var i=n.v,o=n.w;e.removeEdge(i,o),e.setEdge(r.v,r.w,{}),p(e),d(e,t),b(e,t)}function b(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=s(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}function _(e,t,n){return e.hasEdge(t,n)}function w(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=u,u.initLowLimValues=p,u.initCutValues=d,u.calcCutValue=h,u.leaveEdge=g,u.enterEdge=v,u.exchangeEdges=y},function(e,t,n){var r=n(8);function i(e){var t=a(e);r.forEach(e.graph().dummyChains,(function(n){var r=e.node(n),i=r.edgeObj,a=o(e,t,i.v,i.w),s=a.path,l=a.lca,c=0,u=s[c],d=!0;while(n!==i.w){if(r=e.node(n),d){while((u=s[c])!==l&&e.node(u).maxRank<r.rank)c++;u===l&&(d=!1)}if(!d){while(c<s.length-1&&e.node(u=s[c+1]).minRank<=r.rank)c++;u=s[c]}e.setParent(n,u),n=e.successors(n)[0]}}))}function o(e,t,n,r){var i,o,a=[],s=[],l=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),a.push(i)}while(i&&(t[i].low>l||c>t[i].lim));o=i,i=r;while((i=e.parent(i))!==o)s.push(i);return{path:a.concat(s.reverse()),lca:o}}function a(e){var t={},n=0;function i(o){var a=n;r.forEach(e.children(o),i),t[o]={low:a,lim:n++}}return r.forEach(e.children(),i),t}e.exports=i},function(e,t,n){var r=n(8),i=n(12);function o(e){var t=i.addDummyNode(e,"root",{},"_root"),n=s(e),o=r.max(r.values(n))-1,c=2*o+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=c}));var u=l(e)+1;r.forEach(e.children(),(function(r){a(e,t,c,u,o,n,r)})),e.graph().nodeRankFactor=c}function a(e,t,n,o,s,l,c){var u=e.children(c);if(u.length){var d=i.addBorderNode(e,"_bt"),f=i.addBorderNode(e,"_bb"),h=e.node(c);e.setParent(d,c),h.borderTop=d,e.setParent(f,c),h.borderBottom=f,r.forEach(u,(function(r){a(e,t,n,o,s,l,r);var i=e.node(r),u=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,m=u!==h?1:s-l[c]+1;e.setEdge(d,u,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(h,f,{weight:p,minlen:m,nestingEdge:!0})})),e.parent(c)||e.setEdge(t,d,{weight:0,minlen:s+l[c]})}else c!==t&&e.setEdge(t,c,{weight:0,minlen:n})}function s(e){var t={};function n(i,o){var a=e.children(i);a&&a.length&&r.forEach(a,(function(e){n(e,o+1)})),t[i]=o}return r.forEach(e.children(),(function(e){n(e,1)})),t}function l(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}function c(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){var n=e.edge(t);n.nestingEdge&&e.removeEdge(t)}))}e.exports={run:o,cleanup:c}},function(e,t,n){var r=n(8),i=n(12);function o(e){function t(n){var i=e.children(n),o=e.node(n);if(i.length&&r.forEach(i,t),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,l=o.maxRank+1;s<l;++s)a(e,"borderLeft","_bl",n,o,s),a(e,"borderRight","_br",n,o,s)}}r.forEach(e.children(),t)}function a(e,t,n,r,o,a){var s={width:0,height:0,rank:a,borderType:t},l=o[t][a-1],c=i.addDummyNode(e,"border",s,n);o[t][a]=c,e.setParent(c,r),l&&e.setEdge(l,c,{weight:1})}e.exports=o},function(e,t,n){"use strict";var r=n(8);function i(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||a(e)}function o(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||l(e),"lr"!==t&&"rl"!==t||(u(e),a(e))}function a(e){r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){s(e.edge(t))}))}function s(e){var t=e.width;e.width=e.height,e.height=t}function l(e){r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,c),r.has(n,"y")&&c(n)}))}function c(e){e.y=-e.y}function u(e){r.forEach(e.nodes(),(function(t){d(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,d),r.has(n,"x")&&d(n)}))}function d(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:i,undo:o}},function(e,t,n){"use strict";var r=n(8),i=n(460),o=n(461),a=n(462),s=n(466),l=n(467),c=n(16).Graph,u=n(12);function d(e){var t=u.maxRank(e),n=f(e,r.range(1,t+1),"inEdges"),a=f(e,r.range(t-1,-1,-1),"outEdges"),s=i(e);p(e,s);for(var l,c=Number.POSITIVE_INFINITY,d=0,m=0;m<4;++d,++m){h(d%2?n:a,d%4>=2),s=u.buildLayerMatrix(e);var g=o(e,s);g<c&&(m=0,l=r.cloneDeep(s),c=g)}p(e,l)}function f(e,t,n){return r.map(t,(function(t){return s(e,t,n)}))}function h(e,t){var n=new c;r.forEach(e,(function(e){var i=e.graph().root,o=a(e,i,n,t);r.forEach(o.vs,(function(t,n){e.node(t).order=n})),l(e,n,o.vs)}))}function p(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=d},function(e,t,n){"use strict";var r=n(8);function i(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),i=r.max(r.map(n,(function(t){return e.node(t).rank}))),o=r.map(r.range(i+1),(function(){return[]}));function a(n){if(!r.has(t,n)){t[n]=!0;var i=e.node(n);o[i.rank].push(n),r.forEach(e.successors(n),a)}}var s=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(s,a),o}e.exports=i},function(e,t,n){"use strict";var r=n(8);function i(e,t){for(var n=0,r=1;r<t.length;++r)n+=o(e,t[r-1],t[r]);return n}function o(e,t,n){var i=r.zipObject(n,r.map(n,(function(e,t){return t}))),o=r.flatten(r.map(t,(function(t){return r.chain(e.outEdges(t)).map((function(t){return{pos:i[t.w],weight:e.edge(t).weight}})).sortBy("pos").value()})),!0),a=1;while(a<n.length)a<<=1;var s=2*a-1;a-=1;var l=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(o.forEach((function(e){var t=e.pos+a;l[t]+=e.weight;var n=0;while(t>0)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;c+=e.weight*n}))),c}e.exports=i},function(e,t,n){var r=n(8),i=n(463),o=n(464),a=n(465);function s(e,t,n,u){var d=e.children(t),f=e.node(t),h=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,m={};h&&(d=r.filter(d,(function(e){return e!==h&&e!==p})));var g=i(e,d);r.forEach(g,(function(t){if(e.children(t.v).length){var i=s(e,t.v,n,u);m[t.v]=i,r.has(i,"barycenter")&&c(t,i)}}));var v=o(g,n);l(v,m);var y=a(v,u);if(h&&(y.vs=r.flatten([h,y.vs,p],!0),e.predecessors(h).length)){var b=e.node(e.predecessors(h)[0]),_=e.node(e.predecessors(p)[0]);r.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+b.order+_.order)/(y.weight+2),y.weight+=2}return y}function l(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}function c(e,t){r.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}e.exports=s},function(e,t,n){var r=n(8);function i(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var i=r.reduce(n,(function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}return{v:t}}))}e.exports=i},function(e,t,n){"use strict";var r=n(8);function i(e,t){var n={};r.forEach(e,(function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))}));var i=r.filter(n,(function(e){return!e.indegree}));return o(i)}function o(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&a(e,t)}}function i(t){return function(n){n["in"].push(t),0===--n.indegree&&e.push(n)}}while(e.length){var o=e.pop();t.push(o),r.forEach(o["in"].reverse(),n(o)),r.forEach(o.out,i(o))}return r.chain(t).filter((function(e){return!e.merged})).map((function(e){return r.pick(e,["vs","i","barycenter","weight"])})).value()}function a(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}e.exports=i},function(e,t,n){var r=n(8),i=n(12);function o(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),o=n.lhs,l=r.sortBy(n.rhs,(function(e){return-e.i})),c=[],u=0,d=0,f=0;o.sort(s(!!t)),f=a(c,l,f),r.forEach(o,(function(e){f+=e.vs.length,c.push(e.vs),u+=e.barycenter*e.weight,d+=e.weight,f=a(c,l,f)}));var h={vs:r.flatten(c,!0)};return d&&(h.barycenter=u/d,h.weight=d),h}function a(e,t,n){var i;while(t.length&&(i=r.last(t)).i<=n)t.pop(),e.push(i.vs),n++;return n}function s(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}e.exports=o},function(e,t,n){var r=n(8),i=n(16).Graph;function o(e,t,n){var o=a(e),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var a=e.node(i),l=e.parent(i);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(i),s.setParent(i,l||o),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:e.edge(t).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}function a(e){var t;while(e.hasNode(t=r.uniqueId("_root")));return t}e.exports=o},function(e,t,n){var r=n(8);function i(e,t,n){var i,o={};r.forEach(n,(function(n){var r,a,s=e.parent(n);while(s){if(r=e.parent(s),r?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void t.setEdge(a,s);s=r}}))}e.exports=i},function(e,t,n){"use strict";var r=n(8),i=n(12),o=n(469).positionX;function a(e){e=i.asNonCompoundGraph(e),s(e),r.forEach(o(e),(function(t,n){e.node(n).x=t}))}function s(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,o=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=o+i/2})),o+=i+n}))}e.exports=a},function(e,t,n){"use strict";var r=n(8),i=n(16).Graph,o=n(12);function a(e,t){var n={};function i(t,i){var o=0,a=0,s=t.length,u=r.last(i);return r.forEach(i,(function(t,d){var f=l(e,t),h=f?e.node(f).order:s;(f||t===u)&&(r.forEach(i.slice(a,d+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),a=i.order;!(a<o||h<a)||i.dummy&&e.node(t).dummy||c(n,r,t)}))})),a=d+1,o=h)})),i}return r.reduce(t,i),n}function s(e,t){var n={};function i(t,i,o,a,s){var l;r.forEach(r.range(i,o),(function(i){l=t[i],e.node(l).dummy&&r.forEach(e.predecessors(l),(function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&c(n,t,l)}))}))}function o(t,n){var o,a=-1,s=0;return r.forEach(n,(function(r,l){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(o=e.node(c[0]).order,i(n,s,l,a,o),s=l,a=o)}i(n,s,n.length,o,t.length)})),n}return r.reduce(t,o),n}function l(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}function c(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function u(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function d(e,t,n,i){var o={},a={},s={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){o[e]=e,a[e]=e,s[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var l=i(e);if(l.length){l=r.sortBy(l,(function(e){return s[e]}));for(var c=(l.length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=l[d];a[e]===e&&t<s[h]&&!u(n,e,h)&&(a[h]=e,a[e]=o[e]=o[h],t=s[h])}}}))})),{root:o,align:a}}function f(e,t,n,i,o){var a={},s=h(e,t,n,o),l=o?"borderLeft":"borderRight";function c(e,t){var n=s.nodes(),r=n.pop(),i={};while(r)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function u(e){a[e]=s.inEdges(e).reduce((function(e,t){return Math.max(e,a[t.v]+s.edge(t))}),0)}function d(t){var n=s.outEdges(t).reduce((function(e,t){return Math.min(e,a[t.w]-s.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(a[t]=Math.max(a[t],n))}return c(u,r.bind(s.predecessors,s)),c(d,r.bind(s.successors,s)),r.forEach(i,(function(e){a[e]=a[n[e]]})),a}function h(e,t,n,o){var a=new i,s=e.graph(),l=y(s.nodesep,s.edgesep,o);return r.forEach(t,(function(t){var i;r.forEach(t,(function(t){var r=n[t];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(l(e,t,i),s||0))}i=t}))})),a}function p(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var o=b(e,r)/2;n=Math.max(t+o,n),i=Math.min(t-o,i)})),n-i}))}function m(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,l=n+a,c=e[l];if(c!==t){var u=r.values(c);s="l"===a?i-r.min(u):o-r.max(u),s&&(e[l]=r.mapValues(c,(function(e){return e+s})))}}))}))}function g(e,t){return r.mapValues(e.ul,(function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2}))}function v(e){var t,n=o.buildLayerMatrix(e),i=r.merge(a(e,n),s(e,n)),l={};r.forEach(["u","d"],(function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var a=r.bind("u"===o?e.predecessors:e.successors,e),s=d(e,t,i,a),c=f(e,t,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(e){return-e}))),l[o+n]=c}))}));var c=p(e,l);return m(l,c),g(l,e.graph().align)}function y(e,t,n){return function(i,o,a){var s,l=i.node(o),c=i.node(a),u=0;if(u+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2;break}if(s&&(u+=n?s:-s),s=0,u+=(l.dummy?t:e)/2,u+=(c.dummy?t:e)/2,u+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2;break}return s&&(u+=n?s:-s),s=0,u}}function b(e,t){return e.node(t).width}e.exports={positionX:v,findType1Conflicts:a,findType2Conflicts:s,addConflict:c,hasConflict:u,verticalAlignment:d,horizontalCompaction:f,alignCoordinates:m,findSmallestWidthAlignment:p,balance:g}},function(e,t,n){var r=n(8),i=n(12),o=n(16).Graph;function a(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var i="layer"+t;n.setNode(i,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}e.exports={debugOrdering:a}},function(e,t){e.exports="0.8.2"},function(e,t,n){var r=n(3),i=n(10),o=n(11),a=n(473),s=a.sankey,l=a.sankeyLeft,c=a.sankeyRight,u=a.sankeyCenter,d=a.sankeyJustify,f=n(2),h=f.registerTransform,p={sankeyLeft:l,sankeyRight:c,sankeyCenter:u,sankeyJustify:d},m={value:function(e){return e.value},source:function(e){return e.source},target:function(e){return e.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02};function g(e,t){t=r({},m,t);var n=null;i(t.nodeAlign)?n=p[t.nodeAlign]:o(t.nodeAlign)&&(n=t.nodeAlign);var a=s().links((function(e){return e.edges})).nodeWidth(t.nodeWidth).nodePadding(t.nodePadding).extent([[0,0],[1,1]]);o(t.nodeId)&&a.nodeId(t.nodeId),n&&a.nodeAlign(n),a(e),e.nodes.forEach((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1;e.x=[t,n,n,t],e.y=[r,r,i,i]})),e.edges.forEach((function(e){var t=e.source,n=e.target,r=t.x1,i=n.x0;e.x=[r,r,i,i];var o=e.width/2;e.y=[e.y0+o,e.y0-o,e.y1+o,e.y1-o]}))}h("diagram.sankey",g),h("sankey",g)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(474);n.d(t,"sankey",(function(){return r["a"]}));var i=n(176);n.d(t,"sankeyCenter",(function(){return i["a"]})),n.d(t,"sankeyLeft",(function(){return i["c"]})),n.d(t,"sankeyRight",(function(){return i["d"]})),n.d(t,"sankeyJustify",(function(){return i["b"]}));var o=n(482);n.d(t,"sankeyLinkHorizontal",(function(){return o["a"]}))},function(e,t,n){"use strict";var r=n(14),i=n(475),o=n(176),a=n(481);function s(e,t){return c(e.source,t.source)||e.index-t.index}function l(e,t){return c(e.target,t.target)||e.index-t.index}function c(e,t){return e.y0-t.y0}function u(e){return e.value}function d(e){return(e.y0+e.y1)/2}function f(e){return d(e.source)*e.value}function h(e){return d(e.target)*e.value}function p(e){return e.index}function m(e){return e.nodes}function g(e){return e.links}function v(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}t["a"]=function(){var e=0,t=0,n=1,y=1,b=24,_=8,w=p,x=o["b"],S=m,C=g,E=32;function k(){var e={nodes:S.apply(null,arguments),links:C.apply(null,arguments)};return O(e),T(e),I(e),A(e,E),R(e),e}function O(e){e.nodes.forEach((function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]}));var t=Object(i["a"])(e.nodes,w);e.links.forEach((function(e,n){e.index=n;var r=e.source,i=e.target;"object"!==typeof r&&(r=e.source=v(t,r)),"object"!==typeof i&&(i=e.target=v(t,i)),r.sourceLinks.push(e),i.targetLinks.push(e)}))}function T(e){e.nodes.forEach((function(e){e.value=Math.max(Object(r["sum"])(e.sourceLinks,u),Object(r["sum"])(e.targetLinks,u))}))}function I(t){var r,i,o;for(r=t.nodes,i=[],o=0;r.length;++o,r=i,i=[])r.forEach((function(e){e.depth=o,e.sourceLinks.forEach((function(e){i.indexOf(e.target)<0&&i.push(e.target)}))}));for(r=t.nodes,i=[],o=0;r.length;++o,r=i,i=[])r.forEach((function(e){e.height=o,e.targetLinks.forEach((function(e){i.indexOf(e.source)<0&&i.push(e.source)}))}));var a=(n-e-b)/(o-1);t.nodes.forEach((function(t){t.x1=(t.x0=e+Math.max(0,Math.min(o-1,Math.floor(x.call(null,t,o))))*a)+b}))}function A(e){var n=Object(i["b"])().key((function(e){return e.x0})).sortKeys(r["ascending"]).entries(e.nodes).map((function(e){return e.values}));s(),m();for(var o=1,a=E;a>0;--a)p(o*=.99),m(),l(o),m();function s(){var i=Object(r["min"])(n,(function(e){return(y-t-(e.length-1)*_)/Object(r["sum"])(e,u)}));n.forEach((function(e){e.forEach((function(e,t){e.y1=(e.y0=t)+e.value*i}))})),e.links.forEach((function(e){e.width=e.value*i}))}function l(e){n.forEach((function(t){t.forEach((function(t){if(t.targetLinks.length){var n=(Object(r["sum"])(t.targetLinks,f)/Object(r["sum"])(t.targetLinks,u)-d(t))*e;t.y0+=n,t.y1+=n}}))}))}function p(e){n.slice().reverse().forEach((function(t){t.forEach((function(t){if(t.sourceLinks.length){var n=(Object(r["sum"])(t.sourceLinks,h)/Object(r["sum"])(t.sourceLinks,u)-d(t))*e;t.y0+=n,t.y1+=n}}))}))}function m(){n.forEach((function(e){var n,r,i,o=t,a=e.length;for(e.sort(c),i=0;i<a;++i)n=e[i],r=o-n.y0,r>0&&(n.y0+=r,n.y1+=r),o=n.y1+_;if(r=o-_-y,r>0)for(o=n.y0-=r,n.y1-=r,i=a-2;i>=0;--i)n=e[i],r=n.y1+_-o,r>0&&(n.y0-=r,n.y1-=r),o=n.y0}))}}function R(e){e.nodes.forEach((function(e){e.sourceLinks.sort(l),e.targetLinks.sort(s)})),e.nodes.forEach((function(e){var t=e.y0,n=t;e.sourceLinks.forEach((function(e){e.y0=t+e.width/2,t+=e.width})),e.targetLinks.forEach((function(e){e.y1=n+e.width/2,n+=e.width}))}))}return k.update=function(e){return R(e),e},k.nodeId=function(e){return arguments.length?(w="function"===typeof e?e:Object(a["a"])(e),k):w},k.nodeAlign=function(e){return arguments.length?(x="function"===typeof e?e:Object(a["a"])(e),k):x},k.nodeWidth=function(e){return arguments.length?(b=+e,k):b},k.nodePadding=function(e){return arguments.length?(_=+e,k):_},k.nodes=function(e){return arguments.length?(S="function"===typeof e?e:Object(a["a"])(e),k):S},k.links=function(e){return arguments.length?(C="function"===typeof e?e:Object(a["a"])(e),k):C},k.size=function(r){return arguments.length?(e=t=0,n=+r[0],y=+r[1],k):[n-e,y-t]},k.extent=function(r){return arguments.length?(e=+r[0][0],n=+r[1][0],t=+r[0][1],y=+r[1][1],k):[[e,t],[n,y]]},k.iterations=function(e){return arguments.length?(E=+e,k):E},k}},function(e,t,n){"use strict";var r=n(476);n.d(t,"b",(function(){return r["a"]}));n(477);var i=n(94);n.d(t,"a",(function(){return i["a"]}));n(478),n(479),n(480)},function(e,t,n){"use strict";var r=n(94);function i(){return{}}function o(e,t,n){e[t]=n}function a(){return Object(r["a"])()}function s(e,t,n){e.set(t,n)}t["a"]=function(){var e,t,n,l=[],c=[];function u(n,i,o,a){if(i>=l.length)return null!=e&&n.sort(e),null!=t?t(n):n;var s,c,d,f=-1,h=n.length,p=l[i++],m=Object(r["a"])(),g=o();while(++f<h)(d=m.get(s=p(c=n[f])+""))?d.push(c):m.set(s,[c]);return m.each((function(e,t){a(g,t,u(e,i,o,a))})),g}function d(e,n){if(++n>l.length)return e;var r,i=c[n-1];return null!=t&&n>=l.length?r=e.entries():(r=[],e.each((function(e,t){r.push({key:t,values:d(e,n)})}))),null!=i?r.sort((function(e,t){return i(e.key,t.key)})):r}return n={object:function(e){return u(e,0,i,o)},map:function(e){return u(e,0,a,s)},entries:function(e){return d(u(e,0,a,s),0)},key:function(e){return l.push(e),n},sortKeys:function(e){return c[l.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}}},function(e,t,n){"use strict";var r=n(94);function i(){}var o=r["a"].prototype;function a(e,t){var n=new i;if(e instanceof i)e.each((function(e){n.add(e)}));else if(e){var r=-1,o=e.length;if(null==t)while(++r<o)n.add(e[r]);else while(++r<o)n.add(t(e[r],r,e))}return n}i.prototype=a.prototype={constructor:i,has:o.has,add:function(e){return e+="",this[r["b"]+e]=e,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each}},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(e){return function(){return e}}t["a"]=r},function(e,t,n){"use strict";var r=n(483);function i(e){return[e.source.x1,e.y0]}function o(e){return[e.target.x0,e.y1]}t["a"]=function(){return Object(r["a"])().source(i).target(o)}},function(e,t,n){"use strict";n(484),n(177),n(95),n(485),n(488),n(179),n(180);var r=n(489);n.d(t,"a",(function(){return r["a"]}));n(490),n(182),n(183),n(184),n(186),n(185),n(187),n(188),n(491),n(492),n(62),n(493),n(189),n(190),n(63),n(494),n(495),n(97),n(496),n(60),n(497),n(498),n(499),n(500),n(501),n(502),n(47),n(503),n(504),n(98),n(505),n(506),n(48),n(507)},function(e,t,n){"use strict";n(33),n(27),n(46)},function(e,t,n){"use strict";n(27),n(486),n(487),n(46)},function(e,t,n){"use strict";t["a"]=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}},function(e,t,n){"use strict";t["a"]=function(e){return e}},function(e,t,n){"use strict";n(178),n(177),n(179)},function(e,t,n){"use strict";t["a"]=d;var r=n(33),i=n(181),o=n(27),a=n(96);n(180);function s(e){return e.source}function l(e){return e.target}function c(e){var t=s,n=l,c=a["a"],u=a["b"],d=null;function f(){var o,a=i["a"].call(arguments),s=t.apply(this,a),l=n.apply(this,a);if(d||(d=o=Object(r["path"])()),e(d,+c.apply(this,(a[0]=s,a)),+u.apply(this,a),+c.apply(this,(a[0]=l,a)),+u.apply(this,a)),o)return d=null,o+""||null}return f.source=function(e){return arguments.length?(t=e,f):t},f.target=function(e){return arguments.length?(n=e,f):n},f.x=function(e){return arguments.length?(c="function"===typeof e?e:Object(o["a"])(+e),f):c},f.y=function(e){return arguments.length?(u="function"===typeof e?e:Object(o["a"])(+e),f):u},f.context=function(e){return arguments.length?(d=null==e?null:e,f):d},f}function u(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function d(){return c(u)}},function(e,t,n){"use strict";n(33);var r=n(182),i=n(183),o=n(184),a=n(185),s=n(186),l=n(187),c=n(188);n(27),r["a"],i["a"],o["a"],s["a"],a["a"],l["a"],c["a"]},function(e,t,n){"use strict";var r=n(61),i=n(62);function o(e){this._context=e}o.prototype={areaStart:r["a"],areaEnd:r["a"],lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Object(i["b"])(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},function(e,t,n){"use strict";var r=n(62);function i(e){this._context=e}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Object(r["b"])(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},function(e,t,n){"use strict";var r=n(62);function i(e,t){this._basis=new r["a"](e),this._beta=t}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0){var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;while(++l<=n)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function n(e){return 1===t?new r["a"](e):new i(e,t)}return n.beta=function(t){return e(+t)},n})(.85)},function(e,t,n){"use strict";var r=n(189),i=n(61),o=n(97);function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:i["a"],areaEnd:i["a"],lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Object(o["a"])(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new a(e,t):new r["a"](e,0)}return n.alpha=function(t){return e(+t)},n})(.5)},function(e,t,n){"use strict";var r=n(190),i=n(97);function o(e,t){this._context=e,this._alpha=t}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i["a"])(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new o(e,t):new r["a"](e,0)}return n.alpha=function(t){return e(+t)},n})(.5)},function(e,t,n){"use strict";var r=n(61);function i(e){this._context=e}i.prototype={areaStart:r["a"],areaEnd:r["a"],lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}},function(e,t,n){"use strict";function r(e){return e<0?-1:1}function i(e,t,n){var i=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(i||o<0&&-0),s=(n-e._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(r(a)+r(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function o(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function a(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function s(e){this._context=e}function l(e){this._context=new c(e)}function c(e){this._context=e}s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,o(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,a(this,o(this,n=i(this,e,t)),n);break;default:a(this,this._t0,n=i(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(l.prototype=Object.create(s.prototype)).point=function(e,t){s.prototype.point.call(this,t,e)},c.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},function(e,t,n){"use strict";function r(e){this._context=e}function i(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=i(e),o=i(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}},function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}}},function(e,t,n){"use strict";n(181),n(27),n(47),n(48)},function(e,t,n){"use strict";n(47)},function(e,t,n){"use strict"},function(e,t,n){"use strict";n(47)},function(e,t,n){"use strict";n(47)},function(e,t,n){"use strict";n(98)},function(e,t,n){"use strict";n(48),n(98)},function(e,t,n){"use strict";n(48)},function(e,t,n){var r=n(3),i=n(509),o=n(6),a=n(2),s=a.registerTransform,l=n(7),c=l.getFields,u={as:["_x","_y"]};function d(e,t){t=r({},u,t);var n=t.as;if(!o(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var a=n[0],s=n[1],l=c(t);if(!o(l)&&2!==l.length)throw new TypeError("Invalid fields: must be an array with two strings!");var d=l[0],f=l[1],h=e.rows,p=h.map((function(e){return[e[d],e[f]]})),m=i.voronoi();t.extend&&m.extent(t.extend),t.size&&m.size(t.size);var g=m(p).polygons();h.forEach((function(e,t){var n=g[t].filter((function(e){return!!e}));e[a]=n.map((function(e){return e[0]})),e[s]=n.map((function(e){return e[1]}))}))}s("diagram.voronoi",d),s("voronoi",d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(510);n.d(t,"voronoi",(function(){return r["a"]}))},function(e,t,n){"use strict";var r=n(511),i=n(512),o=n(49);t["a"]=function(){var e=i["a"],t=i["b"],n=null;function a(r){return new o["d"](r.map((function(n,i){var a=[Math.round(e(n,i,r)/o["f"])*o["f"],Math.round(t(n,i,r)/o["f"])*o["f"]];return a.index=i,a.data=n,a})),n)}return a.polygons=function(e){return a(e).polygons()},a.links=function(e){return a(e).links()},a.triangles=function(e){return a(e).triangles()},a.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(r["a"])(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(r["a"])(+e),a):t},a.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],a):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},a.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],a):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},a}},function(e,t,n){"use strict";t["a"]=function(e){return function(){return e}}},function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}t["a"]=r,t["b"]=i},function(e,t,n){"use strict";t["b"]=f,t["a"]=h;var r=n(99),i=n(191),o=n(192),a=n(100),s=n(49),l=[];function c(){Object(r["a"])(this),this.edge=this.site=this.circle=null}function u(e){var t=l.pop()||new c;return t.site=e,t}function d(e){Object(o["b"])(e),s["a"].remove(e),l.push(e),Object(r["a"])(e)}function f(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],l=e.P,c=e.N,u=[e];d(e);var f=l;while(f.circle&&Math.abs(n-f.circle.x)<s["f"]&&Math.abs(r-f.circle.cy)<s["f"])l=f.P,u.unshift(f),d(f),f=l;u.unshift(f),Object(o["b"])(f);var h=c;while(h.circle&&Math.abs(n-h.circle.x)<s["f"]&&Math.abs(r-h.circle.cy)<s["f"])c=h.N,u.push(h),d(h),h=c;u.push(h),Object(o["b"])(h);var p,m=u.length;for(p=1;p<m;++p)h=u[p],f=u[p-1],Object(a["d"])(h.edge,f.site,h.site,i);f=u[0],h=u[m-1],h.edge=Object(a["c"])(f.site,h.site,null,i),Object(o["a"])(f),Object(o["a"])(h)}function h(e){var t,n,r,l,c=e[0],d=e[1],f=s["a"]._;while(f)if(r=p(f,d)-c,r>s["f"])f=f.L;else{if(l=c-m(f,d),!(l>s["f"])){r>-s["f"]?(t=f.P,n=f):l>-s["f"]?(t=f,n=f.N):t=n=f;break}if(!f.R){t=f;break}f=f.R}Object(i["c"])(e);var h=u(e);if(s["a"].insert(t,h),t||n){if(t===n)return Object(o["b"])(t),n=u(t.site),s["a"].insert(h,n),h.edge=n.edge=Object(a["c"])(t.site,h.site),Object(o["a"])(t),void Object(o["a"])(n);if(n){Object(o["b"])(t),Object(o["b"])(n);var g=t.site,v=g[0],y=g[1],b=e[0]-v,_=e[1]-y,w=n.site,x=w[0]-v,S=w[1]-y,C=2*(b*S-_*x),E=b*b+_*_,k=x*x+S*S,O=[(S*E-_*k)/C+v,(b*k-x*E)/C+y];Object(a["d"])(n.edge,g,w,O),h.edge=Object(a["c"])(g,e,null,O),n.edge=Object(a["c"])(e,w,null,O),Object(o["a"])(t),Object(o["a"])(n)}else h.edge=Object(a["c"])(t.site,h.site)}}function p(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;n=a.site;var s=n[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,d=1/o-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+i-o/2)))/d+r:(r+s)/2}function m(e,t){var n=e.N;if(n)return p(n,t);var r=e.site;return r[1]===t?r[0]:1/0}},function(e,t,n){var r=n(3),i=n(34),o=n(6),a=n(2),s=a.HIERARCHY,l=a.registerTransform,c=n(7),u=c.getField,d={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function f(e,t){if(e.dataType!==s)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=e.root;t=r({},d,t);var a,l=t.as;if(!o(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{a=u(t)}catch(p){console.warn(p)}a&&n.sum((function(e){return e[a]}));var c=i.cluster();c.size(t.size),t.nodeSize&&c.nodeSize(t.nodeSize),t.separation&&c.separation(t.separation),c(n);var f=l[0],h=l[1];n.each((function(e){e[f]=e.x,e[h]=e.y}))}l("hierarchy.cluster",f),l("dendrogram",f)},function(e,t,n){var r=n(101),i=n(2),o=i.HIERARCHY,a=i.registerTransform,s={};function l(e,t){var n=e.root;if(t=Object.assign({},s,t),e.dataType!==o)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");e.root=r.compactBox(n,t)}a("hierarchy.compact-box",l),a("compact-box-tree",l),a("non-layered-tidy-tree",l),a("mindmap-logical",l)},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=n(64),o=n(517),a=n(102),s=n(28),l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.execute=function(){var e=this;return a(e.rootNode,e.options,o)},t}(i),c={};function u(e,t){return t=s.assign({},c,t),new l(e,t).execute()}e.exports=u},function(e,t){function n(e,t,n,r){void 0===r&&(r=[]);var i=this;i.w=e||0,i.h=t||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(e,t,n){n?e.y+=t:e.x+=t,e.children.forEach((function(e){r(e,t,n)}))}function i(e,t){var n=t?e.y:e.x;return e.children.forEach((function(e){n=Math.min(i(e,t),n)})),n}function o(e,t){var n=i(e,t);r(e,-n,t)}function a(e,t,n){n?t.y=e.x:t.x=e.x,e.c.forEach((function(e,r){a(e,t.children[r],n)}))}function s(e,t,n){void 0===n&&(n=0),t?(e.x=n,n+=e.width):(e.y=n,n+=e.height),e.children.forEach((function(e){s(e,t,n)}))}n.fromNode=function(e,t){if(!e)return null;var r=[];return e.children.forEach((function(e){r.push(n.fromNode(e,t))})),t?new n(e.height,e.width,e.x,r):new n(e.width,e.height,e.y,r)},e.exports=function(e,t){void 0===t&&(t={});var r=t.isHorizontal;function i(e){if(0!==e.cs){i(e.c[0]);for(var t=_(h(e.c[0].el),0,null),n=1;n<e.cs;++n){i(e.c[n]);var r=h(e.c[n].er);c(e,n,t),t=_(r,n,t)}g(e),l(e)}else l(e)}function l(e){0===e.cs?(e.el=e,e.er=e,e.msel=e.mser=0):(e.el=e.c[0].el,e.msel=e.c[0].msel,e.er=e.c[e.cs-1].er,e.mser=e.c[e.cs-1].mser)}function c(e,t,n){var r=e.c[t-1],i=r.mod,o=e.c[t],a=o.mod;while(null!==r&&null!==o){h(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,u(e,t,n.index,s));var l=h(r),c=h(o);l<=c&&(r=f(r),null!==r&&(i+=r.mod)),l>=c&&(o=d(o),null!==o&&(a+=o.mod))}!r&&o?p(e,t,o,a):r&&!o&&m(e,t,r,i)}function u(e,t,n,r){e.c[t].mod+=r,e.c[t].msel+=r,e.c[t].mser+=r,y(e,t,n,r)}function d(e){return 0===e.cs?e.tl:e.c[0]}function f(e){return 0===e.cs?e.tr:e.c[e.cs-1]}function h(e){return e.y+e.h}function p(e,t,n,r){var i=e.c[0].el;i.tl=n;var o=r-n.mod-e.c[0].msel;i.mod+=o,i.prelim-=o,e.c[0].el=e.c[t].el,e.c[0].msel=e.c[t].msel}function m(e,t,n,r){var i=e.c[t].er;i.tr=n;var o=r-n.mod-e.c[t].mser;i.mod+=o,i.prelim-=o,e.c[t].er=e.c[t-1].er,e.c[t].mser=e.c[t-1].mser}function g(e){e.prelim=(e.c[0].prelim+e.c[0].mod+e.c[e.cs-1].mod+e.c[e.cs-1].prelim+e.c[e.cs-1].w)/2-e.w/2}function v(e,t){t+=e.mod,e.x=e.prelim+t,b(e);for(var n=0;n<e.cs;n++)v(e.c[n],t)}function y(e,t,n,r){if(n!==t-1){var i=t-n;e.c[n+1].shift+=r/i,e.c[t].shift-=r/i,e.c[t].change-=r-r/i}}function b(e){for(var t=0,n=0,r=0;r<e.cs;r++)t+=e.c[r].shift,n+=t+e.c[r].change,e.c[r].mod+=n}function _(e,t,n){while(null!==n&&e>=n.low)n=n.nxt;return{low:e,index:t,nxt:n}}s(e,r);var w=n.fromNode(e,r);return i(w),v(w,0),a(w,e,r),o(e,r),e}},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=n(64),o=n(519),a=n(102),s=n(28),l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.execute=function(){var e=this;return e.rootNode.width=0,a(e.rootNode,e.options,o)},t}(i),c={};function u(e,t){return t=s.assign({},c,t),new l(e,t).execute()}e.exports=u},function(e,t,n){var r=n(28);function i(e,t){void 0===e&&(e=0),void 0===t&&(t=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=t}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function a(e,t,n){n?(t.x=e.x,t.y=e.y):(t.x=e.y,t.y=e.x),e.children.forEach((function(e,r){a(e,t.children[r],n)}))}e.exports=function(e,t){void 0===t&&(t={}),t=r.assign({},o,t);var n,s=0;function l(e){if(!e)return null;e.width=0,e.depth&&e.depth>s&&(s=e.depth);var t=e.children,n=t.length,r=new i(e.height,[]);return t.forEach((function(e,t){var i=l(e);r.children.push(i),0===t&&(r.leftChild=i),t===n-1&&(r.rightChild=i)})),r.originNode=e,r.isLeaf=e.isLeaf(),r}function c(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=s;else{var t=e.children.map((function(e){return c(e)})),n=Math.min.apply(null,t);e.drawingDepth=n-1}return e.drawingDepth}function u(e){e.x=e.drawingDepth*t.rankSep,e.isLeaf?(e.y=0,n&&(e.y=n.y+n.height+t.nodeSep,e.originNode.parent!==n.originNode.parent&&(e.y+=t.subTreeSep)),n=e):(e.children.forEach((function(e){u(e)})),e.y=(e.leftChild.y+e.rightChild.y)/2)}var d=l(e);return c(d),u(d),a(d,e,t.isHorizontal),e}},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=n(64),o=n(521),a=n(194),s=n(28),l=["LR","RL","H"],c=l[0],u=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.execute=function(){var e=this,t=e.options,n=e.rootNode;t.isHorizontal=!0;var r=t.indent,i=t.direction||c;if(i&&-1===l.indexOf(i))throw new TypeError("Invalid direction: "+i);if(i===l[0])o(n,r);else if(i===l[1])o(n,r),n.right2left();else if(i===l[2]){var s=a(n,t),u=s.left,d=s.right;o(u,r),u.right2left(),o(d,r);var f=u.getBoundingBox();d.translate(f.width,0),n.x=d.x-n.width/2}return n},t}(i),d={};function f(e,t){return t=s.assign({},d,t),new u(e,t).execute()}e.exports=f},function(e,t){var n=20;function r(e,t,n){e.x+=n*e.depth,e.y=t?t.y+t.height:0}e.exports=function(e,t){void 0===t&&(t=n);var i=null;e.eachNode((function(e){r(e,i,t),i=e}))}},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=n(64),o=n(523),a=n(102),s=n(28),l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.execute=function(){var e=this;return a(e.rootNode,e.options,o)},t}(i),c={};function u(e,t){return t=s.assign({},c,t),new l(e,t).execute()}e.exports=u},function(e,t,n){var r=n(28);function i(e,t){var n=0;return e.children.length?e.children.forEach((function(e){n+=i(e,t)})):n=e.height,e._subTreeSep=t.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,n)+2*e._subTreeSep,e.totalHeight}function o(e){var t=e.children,n=t.length;if(n){t.forEach((function(e){o(e)}));var r=t[0],i=t[n-1],a=i.y-r.y+i.height,s=0;if(t.forEach((function(e){s+=e.totalHeight})),a>e.height)e.y=r.y+a/2-e.height/2;else if(1!==t.length||e.height>s){var l=e.y+(e.height-a)/2-r.y;t.forEach((function(e){e.translate(0,l)}))}else e.y=(r.y+r.height/2+i.y+i.height/2)/2-e.height/2}}var a={getSubTreeSep:function(){return 0}};e.exports=function(e,t){void 0===t&&(t={}),t=r.assign({},a,t),e.parent={x:0,width:0,height:0,y:0},e.BFTraverse((function(e){e.x=e.parent.x+e.parent.width})),e.parent=null,i(e,t),e.startY=0,e.y=e.totalHeight/2-e.height/2,e.eachNode((function(e){var t=e.children,n=t.length;if(n){var r=t[0];if(r.startY=e.startY+e._subTreeSep,1===n)r.y=e.y+e.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i<n;i++){var o=t[i];o.startY=t[i-1].startY+t[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),o(e)}},function(e,t,n){var r=n(101),i=n(2),o=i.HIERARCHY,a=i.registerTransform,s={};function l(e,t){var n=e.root;if(t=Object.assign({},s,t),e.dataType!==o)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");e.root=r.dendrogram(n,t)}a("hierarchy.dendrogram",l),a("dendrogram",l)},function(e,t,n){var r=n(101),i=n(2),o=i.HIERARCHY,a=i.registerTransform,s={};function l(e,t){var n=e.root;if(t=Object.assign({},s,t),e.dataType!==o)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");e.root=r.indented(n,t)}a("hierarchy.indented",l),a("indented-tree",l)},function(e,t,n){var r=n(3),i=n(34),o=n(6),a=n(2),s=a.HIERARCHY,l=a.registerTransform,c=n(7),u=c.getField,d={field:"value",size:[1,1],padding:0,as:["x","y","r"]};function f(e,t){if(e.dataType!==s)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=e.root;t=r({},d,t);var a,l=t.as;if(!o(l)||3!==l.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{a=u(t)}catch(m){console.warn(m)}a&&n.sum((function(e){return e[a]})).sort((function(e,t){return t[a]-e[a]}));var c=i.pack();c.size(t.size),t.padding&&c.padding(t.padding),c(n);var f=l[0],h=l[1],p=l[2];n.each((function(e){e[f]=e.x,e[h]=e.y,e[p]=e.r}))}l("hierarchy.pack",f),l("hierarchy.circle-packing",f),l("circle-packing",f)},function(e,t,n){var r=n(3),i=n(34),o=n(6),a=n(2),s=a.HIERARCHY,l=a.registerTransform,c=n(7),u=c.getField,d={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function f(e,t){if(e.dataType!==s)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=e.root;t=r({},d,t);var a,l=t.as;if(!o(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{a=u(t)}catch(p){console.warn(p)}a&&n.sum((function(e){return e[a]}));var c=i.partition();c.size(t.size).round(t.round).padding(t.padding),c(n);var f=l[0],h=l[1];n.each((function(e){e[f]=[e.x0,e.x1,e.x1,e.x0],e[h]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach((function(t){-1===l.indexOf(t)&&delete e[t]}))}))}l("hierarchy.partition",f),l("adjacency",f)},function(e,t,n){var r=n(3),i=n(34),o=n(6),a=n(2),s=a.HIERARCHY,l=a.registerTransform,c=n(7),u=c.getField,d={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function f(e,t){if(e.dataType!==s)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=e.root;t=r({},d,t);var a,l=t.as;if(!o(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{a=u(t)}catch(p){console.warn(p)}a&&n.sum((function(e){return e[a]}));var c=i.tree();c.size(t.size),t.nodeSize&&c.nodeSize(t.nodeSize),t.separation&&c.separation(t.separation),c(n);var f=l[0],h=l[1];n.each((function(e){e[f]=e.x,e[h]=e.y}))}l("hierarchy.tree",f),l("tree",f)},function(e,t,n){var r=n(3),i=n(34),o=n(6),a=n(2),s=a.HIERARCHY,l=a.registerTransform,c=n(7),u=c.getField,d={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};function f(e,t){if(e.dataType!==s)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=e.root;t=r({},d,t);var a,l=t.as;if(!o(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{a=u(t)}catch(p){console.warn(p)}a&&n.sum((function(e){return e[a]}));var c=i.treemap();c.tile(i[t.tile]).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft),c(n);var f=l[0],h=l[1];n.each((function(e){e[f]=[e.x0,e.x1,e.x1,e.x0],e[h]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach((function(t){-1===l.indexOf(t)&&delete e[t]}))}))}l("hierarchy.treemap",f),l("treemap",f)},function(e,t,n){var r=n(3),i=n(10),o=n(2),a=o.registerTransform,s=n(531),l=n(7),c=l.getFields,u={fields:["text","value"],font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:500};function d(e,t){t=r({},u,t);var n=s();["font","fontSize","padding","rotate","size","spiral","timeInterval"].forEach((function(e){t[e]&&n[e](t[e])}));var o=c(t),a=o[0],l=o[1];if(!i(a)||!i(l))throw new TypeError('Invalid fields: must be an array with 2 strings (e.g. [ "text", "value" ])!');var d=e.rows.map((function(e){return e.text=e[a],e.value=e[l],e}));n.words(d),t.imageMask&&n.createMask(t.imageMask);var f=n.start(),h=f._tags,p=f._bounds;h.forEach((function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}));var m=t.size,g=m[0],v=m[1],y=f.hasImage;h.push({text:"",value:0,x:y?0:p[0].x,y:y?0:p[0].y,opacity:0}),h.push({text:"",value:0,x:y?g:p[1].x,y:y?v:p[1].y,opacity:0}),e.rows=h,e._tagCloud=f}a("tag-cloud",d),a("word-cloud",d)},function(e,t){var n=Math.PI/180,r=64,i=2048;function o(e){return e.text}function a(){return"serif"}function s(){return"normal"}function l(e){return e.value}function c(){return 90*~~(2*Math.random())}function u(){return 1}function d(e,t,o,a){if(!t.sprite){var s=e.context,l=e.ratio;s.clearRect(0,0,(r<<5)/l,i/l);var c=0,u=0,d=0,f=o.length;--a;while(++a<f){t=o[a],s.save(),s.font=t.style+" "+t.weight+" "+~~((t.size+1)/l)+"px "+t.font;var h=s.measureText(t.text+"m").width*l,p=t.size<<1;if(t.rotate){var m=Math.sin(t.rotate*n),g=Math.cos(t.rotate*n),v=h*g,y=h*m,b=p*g,_=p*m;h=Math.max(Math.abs(v+_),Math.abs(v-_))+31>>5<<5,p=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else h=h+31>>5<<5;if(p>d&&(d=p),c+h>=r<<5&&(c=0,u+=d,d=0),u+p>=i)break;s.translate((c+(h>>1))/l,(u+(p>>1))/l),t.rotate&&s.rotate(t.rotate*n),s.fillText(t.text,0,0),t.padding&&(s.lineWidth=2*t.padding,s.strokeText(t.text,0,0)),s.restore(),t.width=h,t.height=p,t.xoff=c,t.yoff=u,t.x1=h>>1,t.y1=p>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,c+=h}var w=s.getImageData(0,0,(r<<5)/l,i/l).data,x=[];while(--a>=0)if(t=o[a],t.hasText){for(var S=t.width,C=S>>5,E=t.y1-t.y0,k=0;k<E*C;k++)x[k]=0;if(c=t.xoff,null==c)return;u=t.yoff;for(var O=0,T=-1,I=0;I<E;I++){for(var A=0;A<S;A++){var R=C*I+(A>>5),P=w[(u+I)*(r<<5)+(c+A)<<2]?1<<31-A%32:0;x[R]|=P,O|=P}O?T=I:(t.y0++,E--,I--,u++)}t.y1=t.y0+T,t.sprite=x.slice(0,(t.y1-t.y0)*C)}}}function f(e,t,n){n>>=5;for(var r,i=e.sprite,o=e.width>>5,a=e.x-(o<<4),s=127&a,l=32-s,c=e.y1-e.y0,u=(e.y+e.y0)*n+(a>>5),d=0;d<c;d++){r=0;for(var f=0;f<=o;f++)if((r<<l|(f<o?(r=i[d*o+f])>>>s:0))&t[u+f])return!0;u+=n}return!1}function h(e,t){var n=e[0],r=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function p(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function m(e){var t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function g(e){var t=4,n=t*e[0]/e[1],r=0,i=0;return function(e){var o=e<0?-1:1;switch(Math.sqrt(1+4*o*e)-o&3){case 0:r+=n;break;case 1:i+=t;break;case 2:r-=n;break;default:i-=t;break}return[r,i]}}function v(e){var t=[],n=-1;while(++n<e)t[n]=0;return t}function y(){return document.createElement("canvas")}function b(e){return"function"===typeof e?e:function(){return e}}var _={archimedean:m,rectangular:g};e.exports=function(){var e=[256,256],t=o,n=a,g=l,w=s,x=s,S=c,C=u,E=m,k=[],O=1/0,T=Math.random,I=y,A={};function R(e){e.width=e.height=1;var t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);e.width=(r<<5)/t,e.height=i/t;var n=e.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:t}}function P(t,n,r){var i,o,a,s=n.x,l=n.y,c=Math.sqrt(e[0]*e[0]+e[1]*e[1]),u=E(e),d=T()<.5?1:-1,h=-d;while(i=u(h+=d)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=l+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>e[0]||n.y+n.y1>e[1])&&(!r||!f(n,t,e[0]))&&(!r||p(n,r))){for(var m=n.sprite,g=n.width>>5,v=e[0]>>5,y=n.x-(g<<4),b=127&y,_=32-b,w=n.y1-n.y0,x=void 0,S=(n.y+n.y0)*v+(y>>5),C=0;C<w;C++){x=0;for(var k=0;k<=g;k++)t[S+k]|=x<<_|(k<g?(x=m[C*g+k])>>>b:0);S+=v}return delete n.sprite,!0}}return!1}return A.canvas=function(e){return arguments.length?(I=b(e),A):I},A.start=function(){var r=e,i=r[0],o=r[1],a=R(I()),s=A.board?A.board:v((e[0]>>5)*e[1]),l=k.length,c=[],u=k.map((function(e,r){return e.text=t.call(this,e,r),e.font=n.call(this,e,r),e.style=w.call(this,e,r),e.weight=x.call(this,e,r),e.rotate=S.call(this,e,r),e.size=~~g.call(this,e,r),e.padding=C.call(this,e,r),e})).sort((function(e,t){return t.size-e.size})),f=-1,p=A.board?[{x:0,y:0},{x:i,y:o}]:null;function m(){var t=Date.now();while(Date.now()-t<O&&++f<l){var n=u[f];n.x=i*(T()+.5)>>1,n.y=o*(T()+.5)>>1,d(a,n,u,f),n.hasText&&P(s,n,p)&&(c.push(n),p?A.hasImage||h(p,n):p=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=e[0]>>1,n.y-=e[1]>>1)}A._tags=c,A._bounds=p}return m(),A},A.createMask=function(t){var n=document.createElement("canvas"),r=e,i=r[0],o=r[1],a=i>>5,s=v((i>>5)*o);n.width=i,n.height=o;var l=n.getContext("2d");l.drawImage(t,0,0,t.width,t.height,0,0,i,o);for(var c=l.getImageData(0,0,i,o).data,u=0;u<o;u++)for(var d=0;d<i;d++){var f=a*u+(d>>5),h=u*i+d<<2,p=c[h]>=250&&c[h+1]>=250&&c[h+2]>=250,m=p?1<<31-d%32:0;s[f]|=m}A.board=s,A.hasImage=!0},A.timeInterval=function(e){return arguments.length?(O=null==e?1/0:e,A):O},A.words=function(e){return arguments.length?(k=e,A):k},A.size=function(t){return arguments.length?(e=[+t[0],+t[1]],A):e},A.font=function(e){return arguments.length?(n=b(e),A):n},A.fontStyle=function(e){return arguments.length?(w=b(e),A):w},A.fontWeight=function(e){return arguments.length?(x=b(e),A):x},A.rotate=function(e){return arguments.length?(S=b(e),A):S},A.text=function(e){return arguments.length?(t=b(e),A):t},A.spiral=function(e){return arguments.length?(E=_[e]||e,A):E},A.fontSize=function(e){return arguments.length?(g=b(e),A):g},A.padding=function(e){return arguments.length?(C=b(e),A):C},A.random=function(e){return arguments.length?(T=e,A):T},A}},function(e,t,n){var r=n(3),i=n(9),o=n(9),a=n(24),s=n(533),l=n(32),c=n(19),u=c.sum,d=n(15),f=n(2),h=f.registerTransform,p=n(7),m=p.getFields,g={fields:["name","value"],rows:5,size:[1,1],scale:1,groupBy:[],maxCount:1e3,gapRatio:.1,as:["x","y"]};function v(e,t){t=r({},g,t);var n=m(t),c=n[0],f=n[1],h=t.as,p=h[0],v=h[1],y=t.groupBy,b=d(e.rows,y),_=a(b),w=t.size,x=w[0],S=w[1],C=t.maxCount,E=_.length,k=S/E,O=t.rows,T=t.gapRatio,I=[],A=t.scale,R=0,P=0;o(b,(function(e){var t=u(s(e,(function(e){return e[f]}))),n=Math.ceil(t*A/O);t*A>C&&(A=C/t,n=Math.ceil(t*A/O)),P=x/n})),o(b,(function(e){var t=[R*k,(R+1)*k],n=t[1]-t[0],r=n*(1-T)/O,o=0,a=0;i(e,(function(e){for(var n=e[f],i=Math.round(n*A),s=0;s<i;s++){a===O&&(a=0,o++);var u=l(e,[c,f].concat(y));u[p]=o*P+P/2,u[v]=a*r+r/2+t[0],u._wStep=P,u._hStep=r,a++,I.push(u)}})),R+=1})),e.rows=I}h("waffle",v)},function(e,t,n){var r=n(9),i=n(91),o=function(e,t){if(!i(e))return e;var n=[];return r(e,(function(e,r){n.push(t(e,r))})),n};e.exports=o},function(e,t,n){var r=n(3),i=n(6),o=n(11),a=n(56),s=n(10),l=n(24),c=n(57),u=n(92),d=n(2),f=d.registerTransform,h=n(7),p=h.getFields,m=n(58),g=m.silverman,v={as:["x","y","z"],method:"gaussian",extent:[],bandwidth:[]},y=l(u);function b(e,t){t=r({},v,t);var n=p(t);if(!i(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var l=t.as,d=l[0],f=l[1],h=l[2];if(!s(d)||!s(f)||!s(h))throw new TypeError("invalid as: must be an array of 3 strings!");var m=t.method;if(s(m)){if(-1===y.indexOf(m))throw new TypeError("invalid method: "+m+". Must be one of "+y.join(", "));m=u[m]}if(!o(m))throw new TypeError("invalid method: kernel method must be a function!");var b=n[0],_=n[1],w=t.extent,x=w[0],S=w[1];i(x)&&i(S)||(x=e.range(b),S=e.range(_));var C=t.bandwidth,E=C[0],k=C[1];(!a(E)||E<=0||!a(k)||k<=0)&&(E=g(e.getColumn(b)),k=g(e.getColumn(_)));for(var O=c(x,E),T=c(S,k),I=e.rows.length,A=[],R=0;R<O.length;R++)for(var P=0;P<T.length;P++){for(var M=0,N=O[R],L=T[P],D=0;D<I;D++)M+=m((N-e.rows[D][b])/E)*m((L-e.rows[D][_])/k);var j=1/(I*E*k)*M,F={};F[d]=N,F[f]=L,F[h]=j,A.push(F)}e.rows=A}f("kernel-smooth.density",b),f("kernel.density",b),e.exports={KERNEL_METHODS:y}},function(e,t,n){var r=n(3),i=n(6),o=n(11),a=n(77),s=n(56),l=n(10),c=n(24),u=n(19),d=u.sum,f=n(57),h=n(92),p=n(2),m=p.registerTransform,g=n(7),v=g.getFields,y=n(58),b=y.silverman,_={as:["x","y"],method:"gaussian"},w=c(h);function x(e,t,n,r){var i=(r-n)/t;return e(i)}function S(e){return function(t){return i(t)?t.map((function(t){return e(t)})):e(t)}}function C(e,t){t=r({},_,t);var n=v(t);if(!i(n)||1!==n.length&&2!==n.length)throw new TypeError("invalid fields: must be an array of 1 or 2 strings!");var c=t.as,u=c[0],p=c[1];if(!l(u)||!l(p))throw new TypeError("invalid as: must be an array of 2 strings!");var m=t.method;if(l(m)){if(-1===w.indexOf(m))throw new TypeError("invalid method: "+m+". Must be one of "+w.join(", "));m=h[m]}if(!o(m))throw new TypeError("invalid method: kernel method must be a function!");var g=n[0],y=n[1],C=e.getColumn(g),E=t.extent;i(E)||(E=e.range(g));var k=t.bandwidth;(!s(k)||k<=0)&&(k=b(C));var O,T=f(E,k),I=C.length,A=x.bind(null,m,k);if(a(y))O=S((function(e){var t=C.map((function(t){return A(e,t)})),n=d(t),r=I*k;return n&&r?n/r:0}));else{var R=e.getColumn(y);O=S((function(e){var t=C.map((function(t){return A(e,t)})),n=d(t.map((function(e,t){return e*R[t]}))),r=d(t);return n&&r?n/r:0}))}var P=T.map((function(e){var t={};return t[u]=e,t[p]=O(e),t}));e.rows=P}m("kernel-smooth.regression",C),m("kernel.regression",C),e.exports={KERNEL_METHODS:w}}])}))},"712f":function(e,t,n){"use strict";n("f978")},7153:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:e.departName}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand,select:e.onTreeNodeSelect},scopedSlots:e._u([{key:"hasDatarule",fn:function(t){var r=t.slotTitle,i=t.ruleFlag;return n("span",{},[e._v("\n          "+e._s(r)),i?n("a-icon",{staticStyle:{"margin-left":"5px",color:"red"},attrs:{type:"align-left"}}):e._e()],1)}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:function(t){return e.switchCheckStrictly(1)}}},[e._v("父子关联")]),n("a-menu-item",{key:"2",on:{click:function(t){return e.switchCheckStrictly(2)}}},[e._v("取消关联")]),n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")]),n("a-menu-item",{key:"5",on:{click:e.expandAll}},[e._v("展开所有")]),n("a-menu-item",{key:"6",on:{click:e.closeAll}},[e._v("合并所有")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("4ec3"),s=(n("2285"),{name:"UserDepartCategory",components:{},data:function(){return{roleId:"",departName:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"图层分类配置",visible:!1,loading:!1}},methods:{onTreeNodeSelect:function(e){this.$refs.datarule.show(e[0],this.roleId)},onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e,t){this.roleId=e,this.departName=t+"分类权限",this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={departId:e.roleId,categoryIds:e.checkedKeys.join(","),lastCategoryIds:e.defaultCheckedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["gb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["I"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,console.log(t),console.log(e.allTreeKeys),Object(a["K"])({departId:e.roleId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result)}))}))}}}),l=s,c=(n("6725"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"6c3ef2d4",null);t["default"]=u.exports},7171:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:1300,visible:e.visible,confirmLoading:!1,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("mapChoosePoint",{attrs:{model:e.model,pointKey:e.pointKey},on:{lonlatChanged:function(t){return e.lonlatChanged2Map(t)}}})],1)},i=[],o=n("c120"),a={name:"BackMap",components:{mapChoosePoint:o["default"]},data:function(){return{visible:!1,title:"选择坐标",lnglat:"",isVerifyPass:!1}},methods:{handleOk:function(){this.isVerifyPass||this.$emit("lonlatChanged",this.lnglat),this.visible=!1},handleCancel:function(){this.visible=!1},lonlatChanged2Map:function(e){this.lnglat=e}},props:["model","pointKey"]},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"3d887f1a",null);t["default"]=c.exports},"71fc":function(e,t,n){},7238:function(e,t,n){"use strict";var r=n("cef7"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return i(t,e),t}(r["a"]);t["a"]=o},"725c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{height:"100%"},attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[e.buttonSwitch.add?n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]):e._e(),e.buttonSwitch.import?n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"upload"},on:{click:e.handleImportXls}},[e._v("导入")]):e._e(),e.buttonSwitch.export?n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")]):e._e(),e._l(e.cgButtonList,(function(t,r){return e.cgButtonList&&e.cgButtonList.length>0?["js"==t.optType?n("a-button",{key:"cgbtn"+r,staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:t.buttonIcon},on:{click:function(n){return e.cgButtonJsHandler(t.buttonCode)}}},[e._v("\n        "+e._s(t.buttonName)+"\n      ")]):"action"==t.optType?n("a-button",{key:"cgbtn"+r,staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:t.buttonIcon},on:{click:function(n){return e.cgButtonActionHandler(t.buttonCode)}}},[e._v("\n        "+e._s(t.buttonName)+"\n      ")]):e._e()]:e._e()})),e.buttonSwitch.batch_delete?n("a-button",{directives:[{name:"show",rawName:"v-show",value:e.selectedRowKeys.length>0,expression:"selectedRowKeys.length > 0"}],staticStyle:{"margin-left":"8px"},attrs:{ghost:"",type:"primary",icon:"delete"},on:{click:e.handleDelBatch}},[e._v("批量删除")]):e._e()],2),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("\n      已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项  \n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",e._b({ref:"cgformTreeList",staticStyle:{"min-height":"300px"},attrs:{size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.pagination,loading:e.loading,expandedRowKeys:e.expandedRowKeys},on:{change:e.handleTableChange,expand:e.handleExpand},scopedSlots:e._u([{key:"dateSlot",fn:function(t){return[n("span",[e._v(e._s(e.getDateNoTime(t)))])]}},{key:"htmlSlot",fn:function(t){return[n("div",{domProps:{innerHTML:e._s(t)}})]}},{key:"imgSlot",fn:function(t){return[t?n("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:e.getImgView(t),height:"25px",alt:"图片不存在"}}):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此图片")])]}},{key:"fileSlot",fn:function(t){return[t?n("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(n){return e.uploadFile(t)}}},[e._v("\n          下载\n        ")]):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此文件")])]}},{key:"action",fn:function(t,r){return n("span",{},[e.buttonSwitch.update?[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}})]:e._e(),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),e.buttonSwitch.delete?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteOne(r)}}},[n("a",[e._v("删除")])])],1):e._e(),e._l(e.cgButtonLinkList,(function(t,i){return e.cgButtonLinkList&&e.cgButtonLinkList.length>0?[n("a-menu-item",{key:"cgbtnLink"+i},[n("a",{attrs:{href:"javascript:void(0);"},on:{click:function(n){return e.cgButtonLinkHandler(r,t.buttonCode,t.optType)}}},[t.buttonIcon?n("a-icon",{attrs:{type:t.buttonIcon}}):e._e(),e._v("\n                  "+e._s(t.buttonName)+"\n                ")],1)])]:e._e()}))],2)],1)],2)}}])},"a-table",e.tableProps,!1)),n("onl-cgform-auto-modal",{ref:"modal",attrs:{code:e.code},on:{success:e.handleFormSuccess}}),n("j-import-modal",{ref:"importModal",attrs:{url:e.getImportUrl()},on:{ok:e.importOk}})],1)])},i=[],o=n("bb1f"),a=o["a"],s=(n("76fa"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},"726c":function(e,t,n){e.exports={_default:n("e95e"),7.6:n("e95e"),7.5:n("32c1"),7.4:n("31cb"),7.3:n("1b3e"),7.2:n("8332"),7.7:n("8d3f"),"7.x":n("35be"),master:n("1d41")}},"726d":function(e,t,n){"use strict";n("39c7")},"72ce":function(e,t,n){var r=n("2ef0"),i=/\[(?:(.*)\/)?(.+?):(\d+)\]/;function o(e){return function(t){return r.transform(t,(function(t,n,o){var a=r.get(n,e);if(a){var s={host:void 0,port:void 0,_meta:{id:o,name:n.name,version:n.version}},l=new Error("Malformed "+e+". Got "+JSON.stringify(a)+' and expected it to match "{hostname?}/{ip}:{port}".'),c=i.exec(a);if(c)return s.host=c[1]||c[2],s.port=parseInt(c[3],10),void t.push(s);if(a.indexOf("/")>-1){var u=a.split("/");if(2!==u.length)throw l;s.host=u.shift(),a=u.shift()}if(a.indexOf(":")<0)throw l;var d=a.split(":");if(2!==d.length)throw l;s.host=s.host||d[0],s.port=parseInt(d[1],10),t.push(s)}}),[])}}e.exports=o("http.publish_address")},7362:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{maskClosable:!1,title:"从表配置",width:"500",visible:e.visible,cancelText:"关闭",mask:!0,wrapClassName:"mengcengzibiaotwo"},on:{ok:e.handleOk,cancel:e.close}},[n("div",{staticStyle:{width:"100%",height:"672px"}},[n("div",{staticStyle:{float:"left",width:"775px"}},[n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"90px",left:"650px"},on:{click:e.zhubiaoadd}},[e._v("\n        新增\n      ")]),n("a-tabs",{attrs:{"default-active-key":"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"从表名称"}},[n("a-table",{ref:"tableson",staticClass:"tableson",attrs:{customRow:e.rowClick1,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd,loading:e.loading,pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEditSon1(r)}}},[e._v("编辑    ")]),e._v("|\n              "),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormSon1(r.smid)}}},[n("a",[e._v("    删除")])])],1)}}])})],1)],1)],1),n("div",{staticStyle:{float:"left",width:"775px","margin-left":"50px"}},[n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"90px",left:"1475px"},on:{click:e.zibiaoadd}},[e._v("\n        新增\n      ")]),n("a-tabs",{attrs:{"default-active-key":"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"从表字段"}},[n("a-table",{ref:"tableson2",staticClass:"tableson2",attrs:{customRow:e.rowClick2,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns2,dataSource:e.dataSourcegd2,loading:e.loading2,pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEditSon2(r)}}},[e._v("编辑    ")]),e._v("|\n              "),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormSon2(r.smid)}}},[n("a",[e._v("    删除")])])],1)}}])})],1)],1)],1)]),n("div",[n("TemplateEditSonCongModal1",{ref:"TemplateEditSonCongModal1",on:{loadDatazibiao1:function(t){return e.loadDatazibiao1(t)}}})],1),n("div",[n("TemplateEditSonCongModal2",{ref:"TemplateEditSonCongModal2",on:{loadDatazibiao2:function(t){return e.loadDatazibiao2(t)}}})],1)])},i=[],o=n("487a"),a=n.n(o),s=n("0fea"),l=n("166f"),c=n("2286b"),u={directives:{infiniteScroll:a.a},components:{TemplateEditSonCongModal1:l["default"],TemplateEditSonCongModal2:c["default"]},props:{},data:function(){return{visible:!1,jiazai:15,dataSource:[],dataSourcegd:[],loading:!1,jiazai2:15,dataSource2:[],dataSourcegd2:[],loading2:!1,columns:[{title:"名称",align:"center",width:"40%",dataIndex:"name"},{title:"对应表",align:"center",width:"30%",dataIndex:"tablename"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],columns2:[{title:"字段名称",align:"center",width:"40%",dataIndex:"name"},{title:"字段",align:"center",width:"30%",dataIndex:"zd"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],url:{zibiao1:"templateEditSonCong/list",zibiao2:"templateEditSonCongDetail/list",delete:"templateEditSonCong/templateEditSonCong/delete",delete2:"templateEditSonCongDetail/templateEditSonCongDetail/delete"},bid:"",bid2:""}},mounted:function(){},methods:{close:function(){this.visible=!1},handleOk:function(){this.visible=!1},rowClick1:function(e){var t=this;return{on:{click:function(){console.log(e.smid),t.loadDatazibiao2(e.smid)}}}},rowClick2:function(e){},handleEdit:function(e){this.$emit("handleEdit",e)},handleDeleteForm:function(e){this.$emit("handleDeleteForm",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},dataSourcechufa:function(e){if(this.dataSource=e,this.dataSourcegd=[],this.dataSource.length>=15)for(var t=0;t<15;t++)this.dataSourcegd.push(this.dataSource[t]);else for(var n=0;n<this.dataSource.length;n++)this.dataSourcegd.push(this.dataSource[n]);this.jiazai=15,console.log("数据处理完成1:"+this.dataSourcegd.length),this.tablesonlatiao()},tablesonlatiao:function(){var e=this;this.$nextTick((function(){document.querySelectorAll(".tableson .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".tableson .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource.length;if(o<=e.jiazai+14)for(var a=e.jiazai;a<e.jiazai+(o-e.jiazai);a++)e.dataSourcegd.push(e.dataSource[a]);else for(var s=e.jiazai;s<e.jiazai+14;s++)e.dataSourcegd.push(e.dataSource[s]);e.jiazai+=14}}}))},dataSourcechufa2:function(e){if(this.dataSource2=e,this.dataSourcegd2=[],this.dataSource2.length>=15)for(var t=0;t<15;t++)this.dataSourcegd2.push(this.dataSource2[t]);else for(var n=0;n<this.dataSource2.length;n++)this.dataSourcegd2.push(this.dataSource2[n]);this.jiazai2=15,console.log("数据处理完成2:"+this.dataSourcegd2.length),this.tablesonlatiao2()},tablesonlatiao2:function(){var e=this;this.$nextTick((function(){document.querySelectorAll(".tableson2 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".tableson2 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource2.length;if(o<=e.jiazai2+14)for(var a=e.jiazai2;a<e.jiazai2+(o-e.jiazai2);a++)e.dataSourcegd2.push(e.dataSource2[a]);else for(var s=e.jiazai2;s<e.jiazai2+14;s++)e.dataSourcegd2.push(e.dataSource2[s]);e.jiazai2+=14}}}))},loadDatazibiao1:function(e){var t=this;this.bid=e,this.bid2="",console.log("bid缓存完成:"+this.bid),this.dataSourcegd2=[];var n={bid:e,column:"createTime",order:"desc",field:"id,,district,name,action",pageNo:1,pageSize:1e3};Object(s["d"])(this.url.zibiao1,n).then((function(e){e.success&&(console.log("从表对应数据获取完成1:"+e.result.records.length),t.dataSourcechufa(e.result.records)),510===e.code&&t.$message.warning(e.message)}))},loadDatazibiao2:function(e){var t=this;this.bid2=e;var n={bid:e,column:"createTime",order:"desc",field:"id,,district,name,action",pageNo:1,pageSize:1e3};Object(s["d"])(this.url.zibiao2,n).then((function(e){e.success&&(console.log("从从表对应数据获取完成2:"+e.result.records.length),t.dataSourcechufa2(e.result.records)),510===e.code&&t.$message.warning(e.message)}))},zhubiaoadd:function(){this.$refs.TemplateEditSonCongModal1.visible=!0,this.$refs.TemplateEditSonCongModal1.add(this.bid),this.$refs.TemplateEditSonCongModal1.bid=this.bid},handleEditSon1:function(e){this.$refs.TemplateEditSonCongModal1.visible=!0,this.$refs.TemplateEditSonCongModal1.edit(e),this.$refs.TemplateEditSonCongModal1.bid=this.bid},handleDeleteFormSon1:function(e){var t=this;Object(s["a"])(this.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadDatazibiao1(t.bid)):t.$message.warning(e.message)}))},zibiaoadd:function(){""==this.bid2?this.$message.warning("请先点击左侧从表"):(this.$refs.TemplateEditSonCongModal2.visible=!0,this.$refs.TemplateEditSonCongModal2.add(this.bid2),this.$refs.TemplateEditSonCongModal2.bid=this.bid2)},handleEditSon2:function(e){console.log(e),this.$refs.TemplateEditSonCongModal2.visible=!0,this.$refs.TemplateEditSonCongModal2.edit(e),this.$refs.TemplateEditSonCongModal2.bid=this.bid2},handleDeleteFormSon2:function(e){var t=this;Object(s["a"])(this.url.delete2,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadDatazibiao2(t.bid2)):t.$message.warning(e.message)}))}}},d=u,f=(n("2291"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,null,null);t["default"]=h.exports},7373:function(e,t,n){var r=n("af98"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7375:function(e,t,n){},7385:function(e,t,n){},"74c6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"用户名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["userName",{}],expression:"['userName', {}]"}],attrs:{placeholder:"请输入用户名",readOnly:""}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"代理人用户名"}},[n("j-select-user-by-dep",{directives:[{name:"decorator",rawName:"v-decorator",value:["agentUserName",e.validatorRules.agentUserName],expression:"['agentUserName', validatorRules.agentUserName]"}],attrs:{placeholder:"请输入代理人用户名","trigger-change":!0}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"代理开始时间"}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:["startTime",e.validatorRules.startTime],expression:"[ 'startTime', validatorRules.startTime]"}],staticStyle:{width:"100%"},attrs:{"trigger-change":!0,showTime:!0,"date-format":"YYYY-MM-DD HH:mm:ss",placeholder:"请选择开始时间"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"代理结束时间"}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:["endTime",e.validatorRules.endTime],expression:"[ 'endTime', validatorRules.endTime]"}],staticStyle:{width:"100%"},attrs:{"trigger-change":!0,showTime:!0,"date-format":"YYYY-MM-DD HH:mm:ss",placeholder:"请选择结束时间"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"状态"}},[n("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{}],expression:"[ 'status', {}]"}],staticClass:"fontiframe",attrs:{name:"radioGroup"}},[n("a-radio",{staticClass:"radioGroup",attrs:{value:"1"}},[e._v("有效")]),n("a-radio",{staticClass:"radioGroup",attrs:{value:"0"}},[e._v("无效")])],1)],1)],1)],1)],1)},i=[],o=n("88bc"),a=n.n(o),s=n("0fea"),l=n("2dab"),c=n("c14a"),u={name:"SysUserAgentModal",components:{JDate:l["default"],JSelectUserByDep:c["default"]},data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},username:"",confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{agentUserName:{rules:[{required:!0,message:"请输入代理人用户名!"}]},startTime:{rules:[{required:!0,message:"请输入代理开始时间!"}]},endTime:{rules:[{required:!0,message:"请输入代理结束时间!"}]}},url:{add:"/sys/sysUserAgent/add",edit:"/sys/sysUserAgent/edit",queryByUserName:"/sys/sysUserAgent/queryByUserName"}}},created:function(){},methods:{agentSettings:function(e){this.username=e,this.init()},init:function(){var e=this,t={userName:this.username};Object(s["d"])(this.url.queryByUserName,t).then((function(t){t.success?(console.log("获取流程节点信息",t),e.edit(t.result)):e.edit({userName:e.username,status:"0"})}))},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(a()(t.model,"userName","agentUserName","status","startTime","endTime"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";e.model.id?(i+=e.url.edit,o="put"):(i+=e.url.add,o="post");var a=Object.assign(e.model,r);Object(s["i"])(i,a,o).then((function(e){e.success?t.$message.success(e.message):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"012695d9",null);t["default"]=h.exports},"74f3":function(e,t,n){},7504:function(e,t,n){},7550:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-spin",{attrs:{spinning:e.loading}},[e.actionButton?n("div",{staticClass:"action-button"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleClickAdd}},[e._v("新增")]),n("span",{staticClass:"gap"}),e.selectedRowIds.length>0?[n("a-popconfirm",{attrs:{title:"确定要删除这 "+e.selectedRowIds.length+" 项吗?"},on:{confirm:e.handleConfirmDelete}},[n("a-button",{attrs:{type:"primary",icon:"minus"}},[e._v("删除")])],1),e.showClearSelectButton?[n("span",{staticClass:"gap"}),n("a-button",{attrs:{icon:"delete"},on:{click:e.handleClickClearSelect}},[e._v("清空选择")])]:e._e()]:e._e()],2):e._e(),n("div",{staticClass:"input-table",attrs:{id:e.caseId+"inputTable"}},[n("div",{ref:"thead",staticClass:"thead"},[n("div",{staticClass:"tr",style:{width:this.realTrWidth}},[e.dragSort?n("div",{staticClass:"td td-ds",style:e.style.tdLeftDs},[n("span")]):e._e(),e.rowSelection?n("div",{staticClass:"td td-cb",style:e.style.tdLeft},[n("a-checkbox",{attrs:{checked:e.getSelectAll,indeterminate:e.getSelectIndeterminate},on:{change:e.handleChangeCheckedAll}})],1):e._e(),e.rowNumber?n("div",{staticClass:"td td-num",style:e.style.tdLeft},[n("span",[e._v("#")])]):e._e(),e._l(e.columns,(function(t){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.type!==e.formTypes.hidden,expression:"col.type !== formTypes.hidden"}],key:t.key,staticClass:"td",style:e.buildTdStyle(t)},[n("span",[e._v(e._s(t.title))])])]}))],2)]),n("div",{ref:"scrollView",staticClass:"scroll-view",style:{"max-height":e.maxHeight+"px"}},[n("div",{staticClass:"tbody",style:e.tbodyStyle,attrs:{id:e.caseId+"tbody"}},[n("div",{staticClass:"tr-expand",style:"height:"+e.getExpandHeight+"px; z-index:"+(e.loading?"11":"9")+";"}),0===e.rows.length?n("div",{staticClass:"tr-nodata"},[n("span",[e._v("暂无数据")])]):e._e(),n("draggable",{attrs:{handle:".td-ds-icons"},on:{end:e.handleDragMoveEnd},model:{value:e.rows,callback:function(t){e.rows=t},expression:"rows"}},[e._l(e.rows,(function(t,r){return[r>=parseInt(""+(e.scrollTop-e.rowHeight)/e.rowHeight)&&parseInt(""+e.scrollTop/e.rowHeight)+9>r?n("div",{key:t.id,staticClass:"tr",class:-1!==e.selectedRowIds.indexOf(t.id)?"tr-checked":"",style:e.buildTrStyle(r),attrs:{id:e.caseId+"tbody-tr-"+r,"data-idx":r}},[e.dragSort?n("div",{staticClass:"td td-ds",style:e.style.tdLeftDs},[n("div",{staticClass:"td-ds-icons"},[n("a-icon",{attrs:{type:"align-left"}}),n("a-icon",{attrs:{type:"align-right"}})],1)]):e._e(),e.rowSelection?n("div",{staticClass:"td td-cb",style:e.style.tdLeft},[e._l([""+t.id],(function(t,r){return[n("a-checkbox",{key:r,attrs:{id:t,checked:-1!==e.selectedRowIds.indexOf(t)},on:{change:e.handleChangeLeftCheckbox}})]}))],2):e._e(),e.rowNumber?n("div",{staticClass:"td td-num",style:e.style.tdLeft},[n("span",[e._v(e._s(r+1))])]):e._e(),e._l(e.columns,(function(i){return n("div",{directives:[{name:"show",rawName:"v-show",value:i.type!==e.formTypes.hidden,expression:"col.type !== formTypes.hidden"}],key:i.key,staticClass:"td",style:e.buildTdStyle(i)},[e._l([""+i.key+t.id],(function(o,a){return[i.type===e.formTypes.input||i.type===e.formTypes.inputNumber?n("label",{key:a},[n("a-tooltip",{attrs:{id:o,placement:"top",title:(e.tooltips[o]||{}).title,visible:(e.tooltips[o]||{}).visible||!1,autoAdjustOverflow:!0}},[n("input",e._b({attrs:{id:o,"data-input-number":i.type===e.formTypes.inputNumber,placeholder:e.replaceProps(i,i.placeholder)},on:{input:function(n){e.handleInputCommono(n.target,r,t,i)},mouseover:function(){e.handleMouseoverCommono(t,i)},mouseout:function(){e.handleMouseoutCommono(t,i)}}},"input",e.buildProps(t,i),!1))])],1):i.type===e.formTypes.checkbox?[n("a-checkbox",e._b({key:a,attrs:{id:o,checked:e.checkboxValues[o]},on:{change:function(n){return e.handleChangeCheckboxCommon(n,t,i)}}},"a-checkbox",e.buildProps(t,i),!1))]:i.type===e.formTypes.select?[n("a-tooltip",{key:a,attrs:{id:o,placement:"top",title:(e.tooltips[o]||{}).title,visible:(e.tooltips[o]||{}).visible||!1,autoAdjustOverflow:!0}},[n("span",{on:{mouseover:function(){e.handleMouseoverCommono(t,i)},mouseout:function(){e.handleMouseoutCommono(t,i)}}},[n("a-select",e._b({key:a,staticStyle:{width:"100%"},attrs:{id:o,value:e.selectValues[o],options:i.options,getPopupContainer:e.getParentContainer,placeholder:e.replaceProps(i,i.placeholder)},on:{change:function(n){return e.handleChangeSelectCommon(n,o,t,i)},search:function(n){return e.handleSearchSelect(n,o,t,i)},blur:function(n){return e.handleBlurSearch(n,o,t,i)}}},"a-select",e.buildProps(t,i),!1))],1)])]:i.type===e.formTypes.date||i.type===e.formTypes.datetime?[n("a-tooltip",{key:a,attrs:{id:o,placement:"top",title:(e.tooltips[o]||{}).title,visible:(e.tooltips[o]||{}).visible||!1,autoAdjustOverflow:!0}},[n("span",{on:{mouseover:function(){e.handleMouseoverCommono(t,i)},mouseout:function(){e.handleMouseoutCommono(t,i)}}},[n("j-date",e._b({key:a,staticStyle:{width:"100%"},attrs:{id:o,value:e.jdateValues[o],getCalendarContainer:e.getParentContainer,placeholder:e.replaceProps(i,i.placeholder),"trigger-change":!0,showTime:i.type===e.formTypes.datetime,dateFormat:i.type===e.formTypes.date?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss"},on:{change:function(n){return e.handleChangeJDateCommon(n,o,t,i,i.type===e.formTypes.datetime)}}},"j-date",e.buildProps(t,i),!1))],1)])]:i.type===e.formTypes.upload?n("div",{key:a},[e._l([e.uploadValues[o]||{}],(function(t,r){return null!=e.uploadValues[o]?[n("a-input",{key:r,attrs:{readOnly:!0,value:t.name}},[n("template",{staticStyle:{width:"30px"},slot:"addonBefore"},["uploading"===t.status?n("a-tooltip",{attrs:{title:"上传中("+Math.floor(t.percent)+"%)"}},[n("a-icon",{attrs:{type:"loading"}})],1):"done"===t.status?n("a-tooltip",{attrs:{title:"上传完成"}},[n("a-icon",{staticStyle:{color:"#00DB00"},attrs:{type:"check-circle"}})],1):n("a-tooltip",{attrs:{title:"上传失败"}},[n("a-icon",{staticStyle:{color:"red"},attrs:{type:"exclamation-circle"}})],1)],1),n("template",{staticStyle:{width:"30px"},slot:"addonAfter"},[n("a-tooltip",{attrs:{title:"删除并重新上传"}},["uploading"!==t.status?n("a-icon",{staticStyle:{cursor:"pointer"},attrs:{type:"close-circle"},on:{click:function(){return e.handleClickDelFile(o)}}}):e._e()],1)],1)],2)]:e._e()})),n("div",{attrs:{hidden:null!=e.uploadValues[o]}},[n("a-upload",e._b({attrs:{name:"file",data:{isup:1},multiple:!1,action:i.action,headers:e.uploadGetHeaders(t,i),showUploadList:!1},on:{change:function(n){return e.handleChangeUpload(n,o,t,i)}}},"a-upload",e.buildProps(t,i),!1),[n("a-button",{attrs:{icon:"upload"}},[e._v(e._s(i.placeholder))])],1)],1)],2):i.type===e.formTypes.slot?n("div",{key:a},[e._t(i.slot||i.slotName||i.key,null,{index:r,text:e.inputValues[r][i.key],column:i,rowId:e.removeCaseId(t.id),getValue:function(){return e._getValueForSlot(t.id)},target:e.getVM()})],2):n("span",{key:a},[e._v(e._s(e.inputValues[r][i.key]))])]}))],2)}))],2):e._e()]}))],2)],1)])])])},i=[],o=(n("7f7f"),n("a481"),n("3b2b"),n("3835")),a=(n("ac4d"),n("8a81"),n("53ca")),s=(n("28a5"),n("6b54"),n("ac6a"),n("c5f6"),n("2b0e")),l=n("b76a"),c=n.n(l),u=n("9fb0"),d=n("e2e0"),f=n("ca00"),h=n("2dab"),p=n("89f2"),m=61,g={name:"JEditableTable",components:{JDate:h["default"],Draggable:c.a},props:{columns:{type:Array,required:!0},dataSource:{type:Array,required:!0,default:function(){return[]}},actionButton:{type:Boolean,default:!1},rowNumber:{type:Boolean,default:!1},rowSelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},maxHeight:{type:Number,default:400},disabledRows:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},dragSort:{type:Boolean,default:!1},dragSortKey:{type:String,default:"orderNum"}},data:function(){return{caseId:"_jet-".concat(Object(f["e"])(6),"-"),el:{inputTable:null,tbody:null},style:{tbody:{left:"0px"},tdLeft:{"min-width":"4%","max-width":"45px"},tdLeftDs:{"min-width":"30px","max-width":"35px"}},formTypes:d["a"],rows:[],rowHeight:m,scrollTop:0,selectValues:{},checkboxValues:{},jdateValues:{},uploadValues:{},selectedRowIds:[],deleteIds:[],tooltips:{},notPassedIds:[]}},created:function(){this.visibleTrEls=[],this.inputValues=[],this.disabledRowIds=this.disabledRowIds||[]},computed:{getExpandHeight:function(){return this.rows.length*this.rowHeight},getSelectIndeterminate:function(){return this.selectedRowIds.length>0&&this.selectedRowIds.length<this.rows.length},getSelectAll:function(){return this.selectedRowIds.length===this.rows.length&&this.rows.length>0},tbodyStyle:function(){var e=Object.assign({},this.style.tbody);return e["width"]=this.realTrWidth,e},showClearSelectButton:function(){var e=0;for(var t in this.disabledRows)this.disabledRows.hasOwnProperty(t)&&e++;return e>0},accessToken:function(){return s["default"].ls.get(u["a"])},realTrWidth:function(){var e=this,t="calc(";return this.columns.forEach((function(n,r){var i=n.type,o=n.width;i!==d["a"].hidden&&(t+="number"===typeof o?o+"px":"string"===typeof o?o:"120px",r<e.columns.length-1&&(t+=" + "))})),t+=")",t}},watch:{dataSource:{immediate:!0,handler:function(e){var t=this;this.initialize();var n=[],r={},i={},o={},a=this.disabledRowIds||[];e.forEach((function(e,s){null!=e.id&&""!==e.id||(e.id=t.removeCaseId(t.generateId()+s));var l={id:t.caseId+e.id},c={id:l.id},u=!1;t.columns.forEach((function(n){var s=n.key+l.id,f=(null==e[n.key]?"":e[n.key]).toString();if(n.type===d["a"].checkbox)if(n.customValue instanceof Array){var h=(n.customValue[0]||"").toString();r[s]=f===h}else r[s]=f;else n.type===d["a"].select?i[s]=f?"multiple"===(n.props||{})["mode"]?f.split(","):f:void 0:n.type===d["a"].date||n.type===d["a"].datetime?o[s]=f:n.type===d["a"].slot?l[n.key]=0===f||f?f:n.defaultValue:l[n.key]=f;for(var p in t.disabledRows)t.disabledRows.hasOwnProperty(p)&&e.hasOwnProperty(p)&&!0!==u&&(u=t.disabledRows[p]===e[p],u&&a.push(c.id))})),t.inputValues.push(l),n.push(c)})),this.disabledRowIds=a,this.checkboxValues=r,this.selectValues=i,this.jdateValues=o,this.rows=n,this.$nextTick((function(){t.updateFormValues()}))}},columns:{immediate:!0,handler:function(e){var t=this;e.forEach((function(e){e.type===d["a"].select&&(e.options instanceof Array&&(e.options=e.options.map((function(e){return e?{text:e.text||e.title,title:e.text||e.title,value:e.value}:{}}))),e.dictCode&&t._loadDictConcatToOptions(e))}))}},selectedRowIds:function(e){this.$emit("selectRowChange",Object(f["a"])(e))}},mounted:function(){var e=this,t={};["inputTable","tbody"].forEach((function(n){t[n]=document.getElementById(e.caseId+n)})),this.el=t;var n=this;this.el.inputTable.onscroll=function(e){n.syncScrollBar(e.target.scrollLeft)},this.el.tbody.onscroll=function(e){};var r=this.$refs,i=r.thead,o=r.scrollView;o.onscroll=function(e){i.scrollLeft=e.target.scrollLeft,n.recalcTrHiddenItem(e.target.scrollTop)}},methods:{initialize:function(){var e=this;this.visibleTrEls=[],this.rows=[],this.deleteIds=[],this.inputValues=[],this.selectValues={},this.checkboxValues={},this.jdateValues={},this.selectedRowIds=[],this.tooltips={},this.notPassedIds=[],this.scrollTop=0,this.$nextTick((function(){e.el.tbody.scrollTop=0}))},syncScrollBar:function(e){},resetScrollTop:function(e){var t=this.$refs.scrollView;t.scrollTop=null!=e&&"number"===typeof e?e:this.scrollTop},recalcTrHiddenItem:function(e){var t=this,n=e-this.scrollTop;n<0&&(n=this.scrollTop-e),n>=.3*this.rowHeight&&(this.scrollTop=e,this.$nextTick((function(){t.updateFormValues()})))},generateId:function(e){e instanceof Array||(e=this.rows||[]);var t=(new Date).getTime();return"".concat(this.caseId).concat(t).concat(e.length)},push:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;r instanceof Array||(r=Object(f["a"])(this.rows)||[]),null==e.id&&(e.id=this.generateId(r)),-1===e.id.indexOf(this.caseId)&&(e.id=this.caseId+e.id);var i={id:e.id},o={id:i.id},a=Object.assign({},this.checkboxValues),s=Object.assign({},this.selectValues),l=Object.assign({},this.jdateValues);return this.columns.forEach((function(n){var r=n.key,c=r+i.id,u=null!=e[r];if(n.type===d["a"].input)o[r]=u?e[r]:n.defaultValue||(0===n.defaultValue?0:"");else if(n.type===d["a"].inputNumber)!0===n.isOrder?o[r]=t.getInputNumberMaxValue(n)+1:o[r]=u?e[r]:n.defaultValue||(0===n.defaultValue?0:"");else if(n.type===d["a"].checkbox)a[c]=u?e[r]:n.defaultChecked;else if(n.type===d["a"].select){var f=n.defaultValue;0===f||f||(f=void 0),"string"===typeof f&&"multiple"===(n.props||{})["mode"]&&(f=f.split(",")),s[c]=u?e[r]:f}else n.type===d["a"].date||n.type===d["a"].datetime?l[c]=u?e[r]:n.defaultValue:n.type===d["a"].slot?o[r]=u?e[r]:n.defaultValue||"":o[r]=u?e[r]:""})),r.push(i),this.inputValues.push(o),this.checkboxValues=a,this.selectValues=s,this.jdateValues=l,this.dragSort&&this.inputValues.forEach((function(e,n){e[t.dragSortKey]=n+1})),n&&(this.rows=r,this.$nextTick((function(){t.updateFormValues()}))),r},getInputNumberMaxValue:function(e){var t=0;return this.inputValues.forEach((function(n,r){var i,o=n[e.key];try{i=parseInt(o)}catch(a){i=0}t=0===r||i>t?i:t})),t},add:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(t<1)){for(var r,i=this.rows,o=0;o<t;o++)r={id:this.generateId(i)},i=this.push(r,!1,i);this.rows=i,this.$nextTick((function(){e.updateFormValues()})),this.$emit("added",{row:function(){var t=Object.assign({},r);return t.id=e.removeCaseId(t.id),t}(),target:this});var a=this.el.tbody,s=a.offsetHeight,l=a.scrollTop+s;(!1!==n||a.scrollHeight-l<=10)&&this.$nextTick((function(){a.scrollTop=a.scrollHeight}))}},removeSelectedRows:function(){this.removeRows(this.selectedRowIds),this.selectedRowIds=[]},removeRows:function(e){var t=this,n=e;if(!(e instanceof Array)){if("string"!==typeof e)throw"JEditableTable.removeRows() 函数需要的参数可以是string或Array类型,但提供的却是".concat(Object(a["a"])(e));n=[e]}var r=Object(f["a"])(this.rows);return n.forEach((function(e){var n=function(n){for(var r=0;r<n.length;r++)if(n[r].id===e||n[r].id===t.caseId+e)return n.splice(r,1),!0};if(n(r)){n(t.inputValues);var i=t.removeCaseId(e);t.deleteIds.push(i)}})),this.rows=r,this.$emit("deleted",this.getDeleteIds()),this.$nextTick((function(){t.updateFormValues()})),!0},getValuesSync:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.validate,r=t.rowIds;"boolean"!==typeof n&&(n=!0),r instanceof Array||(r=null);var i=0,o=Object(f["a"])(this.inputValues),a=Object.assign({},this.tooltips),s=Object(f["a"])(this.notPassedIds),l=[],c=!0,u=!1,h=void 0;try{for(var p,m=function(){var t=p.value,o=!1;if(null==r)o=!0;else{var c=!0,u=!1,h=void 0;try{for(var m,g=r[Symbol.iterator]();!(c=(m=g.next()).done);c=!0){var v=m.value;if(v===t.id||"".concat(e.caseId).concat(v)===t.id){o=!0;break}}}catch(y){u=!0,h=y}finally{try{c||null==g.return||g.return()}finally{if(u)throw h}}}if(!o)return"continue";e.columns.forEach((function(r){var o=r.key+t.id;if(r.type===d["a"].checkbox){var l=e.checkboxValues[o];r.customValue instanceof Array?t[r.key]=l?r.customValue[0]:r.customValue[1]:t[r.key]=l}else if(r.type===d["a"].select){var c=e.selectValues[o];t[r.key]=c instanceof Array?Object(f["a"])(c):c}else r.type===d["a"].date||r.type===d["a"].datetime?t[r.key]=e.jdateValues[o]:r.type===d["a"].upload&&(t[r.key]=Object(f["a"])(e.uploadValues[o]||null));if(!0===n){var u=e.validateOneInput(t[r.key],t,r,s,!1);a[o]=u[0],a[o].visible&&i++,a[o].visible=!1,s=u[1]}})),t.id=e.removeCaseId(t.id),l.push(t)},g=o[Symbol.iterator]();!(c=(p=g.next()).done);c=!0)m()}catch(v){u=!0,h=v}finally{try{c||null==g.return||g.return()}finally{if(u)throw h}}return this.tooltips=a,this.notPassedIds=s,{error:i,values:l}},getValues:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.getValuesSync({validate:t,rowIds:n});"function"===typeof e&&e(r.error,r.values)},getValuesPromise:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1?arguments[1]:void 0;return new Promise((function(r,i){var o=e.getValuesSync({validate:t,rowIds:n}),a=o.error,s=o.values;0===a?r(s):i(d["b"])}))},getDeleteIds:function(){return Object(f["a"])(this.deleteIds)},getAll:function(e){var t=this;return new Promise((function(n,r){var i=t.getDeleteIds();t.getValuesPromise(e).then((function(e){n({values:e,deleteIds:i})})).catch((function(e){r(e)}))}))},getAllSync:function(e,t){var n=this.getValuesSync({validate:e,rowIds:t});return n.deleteIds=this.getDeleteIds(),n},_getValueForSlot:function(e){return this.getValuesSync({rowIds:[e]}).values[0]},setValues:function(e){var t=this;e.forEach((function(e){var n=e.rowKey,r=e.values,i=function(e){if(r.hasOwnProperty(e)){var i=r[e],o=!1;t.inputValues.forEach((function(r){"".concat(t.caseId).concat(n)===r.id&&r.hasOwnProperty(e)&&(o=!0,r[e]=i)}));var a="".concat(e).concat(t.caseId).concat(n);!o&&t.selectValues.hasOwnProperty(a)&&(t.selectValues[a]=0===i||i?i:void 0,o=!0),!o&&t.checkboxValues.hasOwnProperty(a)&&(t.checkboxValues[a]=i,o=!0),!o&&t.jdateValues.hasOwnProperty(a)&&(t.jdateValues[a]=i,o=!0)}};for(var o in r)i(o)})),this.forceUpdateFormValues()},validateOneInput:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=Object.assign({},this.tooltips),s=n.key+t.id,l=this.validateValue(n.validateRules,e),c=Object(o["a"])(l,2),u=c[0],f=c[1];a[s]=a[s]?a[s]:{},a[s].visible=!u;var h=r.indexOf(s),p=null,m=null;u?-1!==h&&r.splice(h,1):(a[s].title=this.replaceProps(n,f),p="red",m="0 0 0 2px rgba(255, 0, 0, 0.2)",-1===h&&r.push(s));var g=document.getElementById(s);return null!=g&&(n.type===d["a"].select&&(g=g.getElementsByClassName("ant-select-selection")[0]),n.type!==d["a"].date&&n.type!==d["a"].datetime||(g=g.getElementsByTagName("input")[0]),g.style.borderColor=p,g.style.boxShadow=m),i&&(this.tooltips=a,this.notPassedIds=r),[a[s],r]},validateValue:function(e,t){var n=!0,r="";if(e instanceof Array){var i=!0,o=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var c=s.value,u=null==t||""===t;if(!0===c.required&&u)n=!1;else if(c.pattern&&!u){for(var d=[{title:"唯一校验",value:"only",pattern:null},{title:"6到16位数字",value:"n6-16",pattern:/\d{6,18}/},{title:"6到16位任意字符",value:"*6-16",pattern:/^.{6,16}$/},{title:"网址",value:"url",pattern:/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/},{title:"电子邮件",value:"e",pattern:/^([\w]+\.*)([\w]+)@[\w]+\.\w{3}(\.\w{2}|)$/},{title:"手机号码",value:"m",pattern:/^1[3456789]\d{9}$/},{title:"邮政编码",value:"p",pattern:/^[1-9]\d{5}$/},{title:"字母",value:"s",pattern:/^[A-Z|a-z]+$/},{title:"数字",value:"n",pattern:/^-?\d+\.?\d*$/},{title:"整数",value:"z",pattern:/^[1-9]\d*$/},{title:"非空",value:"*",pattern:/^.+$/},{title:"6到18位字符串",value:"s6-18",pattern:/^.{6,18}$/},{title:"金额",value:"money",pattern:/^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/}],f=!1,h=0,p=d;h<p.length;h++){var m=p[h];if(c.pattern===m.value&&m.pattern){n=new RegExp(m.pattern).test(t),f=!0;break}}f||(n=new RegExp(c.pattern).test(t))}if(!n){r=c.message;break}}}catch(g){o=!0,a=g}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}}return[n,r]},updateFormValues:function(){var e=this,t=this.el.tbody.getElementsByClassName("tr"),n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;n.push(l)}}catch(_){i=!0,o=_}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}var c=n;if(this.visibleTrEls.length>0){c=[];for(var u=0,d=n;u<d.length;u++){var f=d[u],h=!0,p=!0,m=!1,g=void 0;try{for(var v,y=this.visibleTrEls[Symbol.iterator]();!(p=(v=y.next()).done);p=!0){var b=v.value;if(b.id===f.id){h=!1;break}}}catch(_){m=!0,g=_}finally{try{p||null==y.return||y.return()}finally{if(m)throw g}}h&&c.push(f)}}this.visibleTrEls=n,c.forEach((function(t){var n=t.dataset.idx,r=e.inputValues[n];for(var i in r)if(r.hasOwnProperty(i)){var o="".concat(i).concat(r.id),a=document.getElementById(o);a&&(a.value=r[i])}}))},forceUpdateFormValues:function(){this.visibleTrEls=[],this.updateFormValues()},handleChangeCheckedAll:function(){var e=this,t=[];this.getSelectAll||this.rows.forEach((function(n){-1===(e.disabledRowIds||[]).indexOf(n.id)&&t.push(n.id)})),this.selectedRowIds=t},handleChangeLeftCheckbox:function(e){var t=e.target.id;if(-1===(this.disabledRowIds||[]).indexOf(t)){var n=this.selectedRowIds.indexOf(t);-1!==n?this.selectedRowIds.splice(n,1):this.selectedRowIds.push(t)}},handleClickAdd:function(){this.add()},handleConfirmDelete:function(){this.removeSelectedRows()},handleClickClearSelect:function(){this.selectedRowIds=[]},handleSearchSelect:function(e,t,n,r){if(!0===r.allowInput){var i=!1,o=!0,a=!1,s=void 0;try{for(var l,c=r.options[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value;if(u.value.toLocaleString()===e.toLocaleString()){i=!0;break}}}catch(d){a=!0,s=d}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}!i&&e&&r.options.push({title:e,value:e,searchAdd:!0})}},handleBlurSearch:function(e,t,n,r){if(!0===r.allowInput&&"string"===typeof e){var i=[];r.options.forEach((function(t,n){t.value.toLocaleString()===e.toLocaleString()?delete t.searchAdd:!0===t.searchAdd&&i.push(n)}));var o=!0,a=!1,s=void 0;try{for(var l,c=i.reverse()[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value;r.options.splice(u,1)}}catch(d){a=!0,s=d}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}}},handleDragMoveEnd:function(e){var t=this,n=e.oldIndex,r=e.newIndex,i=this.inputValues,o=i[n];i.splice(n,1),i.splice(r,0,o),i.forEach((function(e,n){e[t.dragSortKey]=n+1})),this.forceUpdateFormValues(),this.$emit("dragged",{oldIndex:n,newIndex:r,target:this})},handleMouseoverCommono:function(e,t){var n=t.key+e.id;-1!==this.notPassedIds.indexOf(n)&&this.showOrHideTooltip(n,!0)},handleMouseoutCommono:function(e,t){var n=t.key+e.id;this.showOrHideTooltip(n,!1)},handleInputCommono:function(e,t,n,r){var i=e.value,o=e.dataset,a=e.selectionStart,s=d["a"].input,l=!0;if("true"==="".concat(o.inputNumber)){s=d["a"].inputNumber;var c=i.replace(/[^0-9]/g,"");i!==c&&(l=!1,i=c,e.value=c,"number"===typeof a&&(e.selectionStart=a-1,e.selectionEnd=a-1))}this.inputValues[t][r.key]=i,this.validateOneInput(i,n,r,this.notPassedIds,!0),l&&this.elemValueChange(s,n,r,i)},handleChangeCheckboxCommon:function(e,t,n){var r=e.target,i=r.id,o=r.checked;this.checkboxValues=this.bindValuesChange(o,i,"checkboxValues"),this.elemValueChange(d["a"].checkbox,t,n,o)},handleChangeSelectCommon:function(e,t,n,r){this.selectValues=this.bindValuesChange(e,t,"selectValues"),this.validateOneInput(e,n,r,this.notPassedIds,!0),this.elemValueChange(d["a"].select,n,r,e)},handleChangeJDateCommon:function(e,t,n,r,i){this.jdateValues=this.bindValuesChange(e,t,"jdateValues"),this.validateOneInput(e,n,r,this.notPassedIds,!0),i?this.elemValueChange(d["a"].datetime,n,r,e):this.elemValueChange(d["a"].date,n,r,e)},handleChangeUpload:function(e,t,n,r){var i=e.file,o={name:i.name,type:i.type,size:i.size,status:i.status,percent:i.percent};r.responseName&&i.response&&(o["responseName"]=i.response[r.responseName]),this.uploadValues=this.bindValuesChange(o,t,"uploadValues")},bindValuesChange:function(e,t,n){var r=Object.assign({},this[n]);return r[t]=e,r},showOrHideTooltip:function(e,t){var n=Object.assign({},this.tooltips);n[e]=n[e]?n[e]:{},n[e].visible=t,this.tooltips=n},elemValueChange:function(e,t,n,r){var i=Object.assign({},n),o=Object.assign({},t);o.id=this.removeCaseId(o.id);var a=this.getValuesSync({validate:!1,rowIds:[o.id]}),s=a.values;s.length>0&&Object.assign(o,s[0]),this.$emit("valueChange",{type:e,row:o,column:i,value:r,target:this})},removeCaseId:function(e){var t=e.split(this.caseId)[1];return t||e},handleClickDelFile:function(e){this.uploadValues[e]=null},_loadDictConcatToOptions:function(e){Object(p["c"])(e.dictCode).then((function(t){if(t.success){var n=e.options||[];t.result.forEach((function(e){var t=!0,r=!1,i=void 0;try{for(var o,a=n[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value;if(s.value===e.value)return}}catch(l){r=!0,i=l}finally{try{t||null==a.return||a.return()}finally{if(r)throw i}}n.push(e)})),e.options=n}else console.group("JEditableTable 查询字典(".concat(e.dictCode,")发生异常")),console.log(t.message),console.groupEnd()}))},log:console.log,getVM:function(){return this},getParentContainer:function(e){var t=this,n=function(){if(t.$el&&8!==t.$el.nodeType)return t.$el;var n=document.getElementById(t.caseId+"inputTable");return null!=n?n:e.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode}(),r=function e(t){var n=null;if(t["currentStyle"]?n=t["currentStyle"]["overflow"]:window.getComputedStyle&&(n=window.getComputedStyle(t)["overflow"]),null!=n){if("hidden"===n){var r=e(t.parentNode);return null!=r?r:t.parentNode}return t.parentNode&&"body"!==t.parentNode.tagName.toLocaleLowerCase()?e(t.parentNode):null}return t},i=r(n);return null!=i?i:n},replaceProps:function(e,t){return t&&"string"===typeof t&&(t=t.replace(/\${title}/g,e.title),t=t.replace(/\${key}/g,e.key),t=t.replace(/\${defaultValue}/g,e.defaultValue)),t},buildTrStyle:function(e){return{top:"".concat(m*e,"px")}},buildTdStyle:function(e){var t={};e.width?t["width"]=e.width:this.columns?t["width"]="".concat(92/this.columns.length,"%"):t["width"]="120px";var n=e.type===d["a"].checkbox;return n&&(t["align-items"]="center",t["text-align"]="center",t["padding-left"]="0",t["padding-right"]="0"),t},buildProps:function(e,t){var n={};if("object"===Object(a["a"])(t.props))for(var r in t.props)t.props.hasOwnProperty(r)&&(n[r]=this.replaceProps(t,t.props[r]));return t.type===d["a"].select&&!0===t.allowInput&&(n["showSearch"]=!0),n["disabled"]=!!t["disabled"],!0!==n["disabled"]&&(n["disabled"]=-1!==(this.disabledRowIds||[]).indexOf(e.id)),!0===this.disabled&&(n["disabled"]=!0),n},uploadGetHeaders:function(e,t){var n={};return!0===t.token&&(n["X-Access-Token"]=this.accessToken),n}}},v=g,y=(n("8123"),n("2877")),b=Object(y["a"])(v,r,i,!1,null,"4a545796",null);t["default"]=b.exports},7679:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"left"},[n("div",{staticClass:"content"},[n("div",{staticClass:"wrapper flex"},[n("div",{staticClass:"flex-1 today"},[n("div",{staticClass:"box flex flex-y"},[n("div",[e._v("\n              区县:\n              "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},on:{change:e.change},model:{value:e.district,callback:function(t){e.district=t},expression:"district"}},e._l(e.districtList,(function(t,r){return n("a-select-option",{attrs:{value:t.code}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"title"},[e._v("左模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_1_model,callback:function(t){e.left_1_model=t},expression:"left_1_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_1_input,callback:function(t){e.left_1_input=t},expression:"left_1_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_2_model,callback:function(t){e.left_2_model=t},expression:"left_2_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_2_input,callback:function(t){e.left_2_input=t},expression:"left_2_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_3_model,callback:function(t){e.left_3_model=t},expression:"left_3_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_3_input,callback:function(t){e.left_3_input=t},expression:"left_3_input"}})],1)])])])])]),n("div",{staticClass:"flex-1 tomorrow"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("左隐藏模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_4_model,callback:function(t){e.left_4_model=t},expression:"left_4_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_4_input,callback:function(t){e.left_4_input=t},expression:"left_4_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_5_model,callback:function(t){e.left_5_model=t},expression:"left_5_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_5_input,callback:function(t){e.left_5_input=t},expression:"left_5_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_6_model,callback:function(t){e.left_6_model=t},expression:"left_6_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_6_input,callback:function(t){e.left_6_input=t},expression:"left_6_input"}})],1)])])])])])])])]),n("div",{staticClass:"center"},[n("Center")],1),n("div",{staticClass:"right"},[n("div",{staticClass:"content"},[n("div",{staticClass:"wrapper flex"},[n("div",{staticClass:"flex-1 today"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("右模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_1_model,callback:function(t){e.right_1_model=t},expression:"right_1_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_1_input,callback:function(t){e.right_1_input=t},expression:"right_1_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_2_model,callback:function(t){e.right_2_model=t},expression:"right_2_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_2_input,callback:function(t){e.right_2_input=t},expression:"right_2_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_3_model,callback:function(t){e.right_3_model=t},expression:"right_3_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_3_input,callback:function(t){e.right_3_input=t},expression:"right_3_input"}})],1)])])])])]),n("div",{staticClass:"flex-1 tomorrow"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("右隐藏模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_4_model,callback:function(t){e.right_4_model=t},expression:"right_4_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_4_input,callback:function(t){e.right_4_input=t},expression:"right_4_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_5_model,callback:function(t){e.right_5_model=t},expression:"right_5_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_5_input,callback:function(t){e.right_5_input=t},expression:"right_5_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_6_model,callback:function(t){e.right_6_model=t},expression:"right_6_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_6_input,callback:function(t){e.right_6_input=t},expression:"right_6_input"}})],1),n("div",{staticClass:"marginTop20",staticStyle:{float:"right"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleOk()}}},[e._v("确定")])],1)])])])])])])])])])},i=[],o=n("c2f8"),a=n("4ec3"),s=n("0fea"),l={name:"DutyHomePage",components:{Center:o["default"]},data:function(){return{districtList:[],menuList:[],district:"",left_1_model:"",left_1_input:"",left_2_model:"",left_2_input:"",left_3_model:"",left_3_input:"",left_4_model:"",left_4_input:"",left_5_model:"",left_5_input:"",left_6_model:"",left_6_input:"",right_1_model:"",right_1_input:"",right_2_model:"",right_2_input:"",right_3_model:"",right_3_input:"",right_4_model:"",right_4_input:"",right_5_model:"",right_5_input:"",right_6_model:"",right_6_input:"",url:{add:"/menu_module/menuModule/addOrderJCYJ"}}},mounted:function(){this.initData()},methods:{change:function(e){var t=this,n={param:e};Object(s["d"])("/menu_module/menuModule/getOrderList3",n).then((function(e){var n=t;e.success&&(n.left_1_model=e.result[0].vueUrl,n.left_2_model=e.result[1].vueUrl,n.left_3_model=e.result[2].vueUrl,n.left_4_model=e.result[3].vueUrl,n.left_5_model=e.result[4].vueUrl,n.left_6_model=e.result[5].vueUrl,n.right_1_model=e.result[6].vueUrl,n.right_2_model=e.result[7].vueUrl,n.right_3_model=e.result[8].vueUrl,n.right_4_model=e.result[9].vueUrl,n.right_5_model=e.result[10].vueUrl,n.right_6_model=e.result[11].vueUrl,n.left_1_input=e.result[0].length,n.left_2_input=e.result[1].length,n.left_3_input=e.result[2].length,n.left_4_input=e.result[3].length,n.left_5_input=e.result[4].length,n.left_6_input=e.result[5].length,n.right_1_input=e.result[6].length,n.right_2_input=e.result[7].length,n.right_3_input=e.result[8].length,n.right_4_input=e.result[9].length,n.right_5_input=e.result[10].length,n.right_6_input=e.result[11].length)}))},initData:function(){var e=this,t=this;Object(a["s"])().then((function(n){n.success&&(t.districtList=n.result,t.district=t.districtList[0].code,Object(s["d"])("/menu_module/menuModule/getOrderList3",{param:t.district}).then((function(t){var n=e;t.success&&(n.left_1_model=t.result[0].vueUrl,n.left_2_model=t.result[1].vueUrl,n.left_3_model=t.result[2].vueUrl,n.left_4_model=t.result[3].vueUrl,n.left_5_model=t.result[4].vueUrl,n.left_6_model=t.result[5].vueUrl,n.right_1_model=t.result[6].vueUrl,n.right_2_model=t.result[7].vueUrl,n.right_3_model=t.result[8].vueUrl,n.right_4_model=t.result[9].vueUrl,n.right_5_model=t.result[10].vueUrl,n.right_6_model=t.result[11].vueUrl,n.left_1_input=t.result[0].length,n.left_2_input=t.result[1].length,n.left_3_input=t.result[2].length,n.left_4_input=t.result[3].length,n.left_5_input=t.result[4].length,n.left_6_input=t.result[5].length,n.right_1_input=t.result[6].length,n.right_2_input=t.result[7].length,n.right_3_input=t.result[8].length,n.right_4_input=t.result[9].length,n.right_5_input=t.result[10].length,n.right_6_input=t.result[11].length)})))})),Object(a["A"])().then((function(e){e.success&&(t.menuList=e.result.records)}))},handleOk:function(){var e={};e.left_1_model=this.left_1_model,e.left_1_input=this.left_1_input,e.left_2_model=this.left_2_model,e.left_2_input=this.left_2_input,e.left_3_model=this.left_3_model,e.left_3_input=this.left_3_input,e.left_4_model=this.left_4_model,e.left_4_input=this.left_4_input,e.left_5_model=this.left_5_model,e.left_5_input=this.left_5_input,e.left_6_model=this.left_6_model,e.left_6_input=this.left_6_input,e.right_1_model=this.right_1_model,e.right_1_input=this.right_1_input,e.right_2_model=this.right_2_model,e.right_2_input=this.right_2_input,e.right_3_model=this.right_3_model,e.right_3_input=this.right_3_input,e.right_4_model=this.right_4_model,e.right_4_input=this.right_4_input,e.right_5_model=this.right_5_model,e.right_5_input=this.right_5_input,e.right_6_model=this.right_6_model,e.right_6_input=this.right_6_input,e.district=this.district,Object(s["j"])(this.url.add,e).then((function(e){e.success?(alert("添加成功"),that.$message.success(e.message),that.$emit("ok"),that.close()):that.$message.warning(e.message)})).finally((function(){that.confirmLoading=!1}))}}},c=l,u=(n("3371"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"034ea558",null);t["default"]=d.exports},"76ae":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}function i(e,i){(e.next||e.push)&&t(i,e.next||e.push),this.regex=n(e.regex),this.token=r(e.token),this.data=e}function o(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var o=r.local.endToken||null;return r.local=r.localState=null,o}var a;o=r.local.mode.token(n,r.localState);return r.local.endScan&&(a=r.local.endScan.exec(n.current()))&&(n.pos=n.start+a.index),o}for(var l=e[r.state],c=0;c<l.length;c++){var u=l[c],d=(!u.data.sol||n.sol())&&n.match(u.regex);if(d){u.data.next?r.state=u.data.next:u.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=u.data.push):u.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),u.data.mode&&s(t,r,u.data.mode,u.token),u.data.indent&&r.indent.push(n.indentation()+t.indentUnit),u.data.dedent&&r.indent.pop();var f=u.token;if(f&&f.apply&&(f=f(d)),d.length>2&&u.token&&"string"!=typeof u.token){r.pending=[];for(var h=2;h<d.length;h++)d[h]&&r.pending.push({text:d[h],token:u.token[h-1]});return n.backUp(d[0].length-(d[1]?d[1].length:0)),f[0]}return f&&f.join?f[0]:f}}return n.next(),null}}function a(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!a(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function s(t,r,i,o){var s;if(i.persistent)for(var l=r.persistentStates;l&&!s;l=l.next)(i.spec?a(i.spec,l.spec):i.mode==l.mode)&&(s=l);var c=s?s.mode:i.mode||e.getMode(t,i.spec),u=s?s.state:e.startState(c);i.persistent&&!s&&(r.persistentStates={mode:c,spec:i.spec,state:u,next:r.persistentStates}),r.localState=u,r.local={mode:c,end:i.end&&n(i.end),endScan:i.end&&!1!==i.forceEnd&&n(i.end,!1),endToken:o&&o.join?o[o.length-1]:o}}function l(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}function c(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(null==r.indent||r.local||n.dontIndentStates&&l(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var c=0;c<s.length;c++){var u=s[c];if(u.data.dedent&&!1!==u.data.dedentIfLineStart){var d=u.regex.exec(i);if(d&&d[0]){a--,(u.next||u.push)&&(s=t[u.next||u.push]),i=i.slice(d[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,(function(t){return e.simpleMode(t,n)}))},e.simpleMode=function(n,r){t(r,"start");var a={},s=r.meta||{},l=!1;for(var u in r)if(u!=s&&r.hasOwnProperty(u))for(var d=a[u]=[],f=r[u],h=0;h<f.length;h++){var p=f[h];d.push(new i(p,r)),(p.indent||p.dedent)&&(l=!0)}var m={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:l?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:o(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:c(a,s)};if(s)for(var g in s)s.hasOwnProperty(g)&&(m[g]=s[g]);return m}}))},"76d2":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.defineMode("stylus",(function(e){var h,p,y,b,_=e.indentUnit,w="",x=g(t),S=/^(a|b|i|s|col|em)$/i,C=g(o),E=g(a),k=g(c),O=g(l),T=g(n),I=m(n),A=g(i),R=g(r),P=g(s),M=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,N=m(u),L=g(d),D=new RegExp(/^\-(moz|ms|o|webkit)-/i),j=g(f),F="",B={};while(w.length<_)w+=" ";function q(e,t){if(F=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=F?F[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),h=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=z,z(e,t);if('"'==h||"'"==h)return e.next(),t.tokenize=U(h),t.tokenize(e,t);if("@"==h)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==h){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(D)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==h?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==h&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(I)?("("==e.peek()&&(t.tokenize=G),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(N)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!X(e.current())?(e.match("."),["variable-2","variable-name"]):["variable-2","word"]:e.match(M)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(h)?(e.next(),[null,h]):(e.next(),[null,null])}function z(e,t){var n,r=!1;while(null!=(n=e.next())){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function U(e){return function(t,n){var r,i=!1;while(null!=(r=t.next())){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function G(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=U(")"),[null,"("]}function V(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function W(e,t,n,r){return r=r>=0?r:_,e.context=new V(n,t.indentation()+r,e.context),n}function H(e,t){var n=e.context.indent-_;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function $(e,t,n){return B[n.context.type](e,t,n)}function K(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return $(e,t,n)}function X(e){return e.toLowerCase()in x}function Y(e){return e=e.toLowerCase(),e in C||e in P}function J(e){return e.toLowerCase()in L}function Q(e){return e.toLowerCase().match(D)}function Z(e){var t=e.toLowerCase(),n="variable-2";return X(e)?n="tag":J(e)?n="block-keyword":Y(e)?n="property":t in k||t in j?n="atom":"return"==t||t in O?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function ee(e,t){return ie(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function te(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ne(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function re(e){return e.sol()||e.string.match(new RegExp("^\\s*"+v(e.current())))}function ie(e){return e.eol()||e.match(/^\s*$/,!1)}function oe(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return B.block=function(e,t,n){if("comment"==e&&re(t)||","==e&&ie(t)||"mixin"==e)return W(n,t,"block",0);if(te(e,t))return W(n,t,"interpolation");if(ie(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!X(oe(t)))return W(n,t,"block",0);if(ee(e,t))return W(n,t,"block");if("}"==e&&ie(t))return W(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||J(oe(t))?W(n,t,"variableName"):W(n,t,"variableName",0);if("="==e)return ie(t)||J(oe(t))?W(n,t,"block"):W(n,t,"block",0);if("*"==e&&(ie(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return b="tag",W(n,t,"block");if(ne(e,t))return W(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return W(n,t,ie(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return W(n,t,"keyframes");if(/@extends?/.test(e))return W(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&Y(t.current().slice(1))?(b="variable-2","block"):/(@import|@require|@charset)/.test(e)?W(n,t,"block",0):W(n,t,"block");if("reference"==e&&ie(t))return W(n,t,"block");if("("==e)return W(n,t,"parens");if("vendor-prefixes"==e)return W(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if(b=Z(r),"property"==b)return re(t)?W(n,t,"block",0):(b="atom","block");if("tag"==b){if(/embed|menu|pre|progress|sub|table/.test(r)&&Y(oe(t)))return b="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return b="atom","block";if(S.test(r)&&(re(t)&&t.string.match(/=/)||!re(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!X(oe(t))))return b="variable-2",J(oe(t))?"block":W(n,t,"block",0);if(ie(t))return W(n,t,"block")}if("block-keyword"==b)return b="keyword",t.current(/(if|unless)/)&&!re(t)?"block":W(n,t,"block");if("return"==r)return W(n,t,"block",0);if("variable-2"==b&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return W(n,t,"block")}return n.context.type},B.parens=function(e,t,n){if("("==e)return W(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?H(n):t.string.match(/^[a-z][\w-]*\(/i)&&ie(t)||J(oe(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(oe(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&X(oe(t))?W(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?W(n,t,"block",0):ie(t)?W(n,t,"block"):W(n,t,"block",0);if(e&&"@"==e.charAt(0)&&Y(t.current().slice(1))&&(b="variable-2"),"word"==e){var r=t.current();b=Z(r),"tag"==b&&S.test(r)&&(b="variable-2"),"property"!=b&&"to"!=r||(b="atom")}return"variable-name"==e?W(n,t,"variableName"):ne(e,t)?W(n,t,"pseudo"):n.context.type},B.vendorPrefixes=function(e,t,n){return"word"==e?(b="property",W(n,t,"block",0)):H(n)},B.pseudo=function(e,t,n){return Y(oe(t.string))?K(e,t,n):(t.match(/^[a-z-]+/),b="variable-3",ie(t)?W(n,t,"block"):H(n))},B.atBlock=function(e,t,n){if("("==e)return W(n,t,"atBlock_parens");if(ee(e,t))return W(n,t,"block");if(te(e,t))return W(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if(b=/^(only|not|and|or)$/.test(r)?"keyword":T.hasOwnProperty(r)?"tag":R.hasOwnProperty(r)?"attribute":A.hasOwnProperty(r)?"property":E.hasOwnProperty(r)?"string-2":Z(t.current()),"tag"==b&&ie(t))return W(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(b="keyword"),n.context.type},B.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ie(t)?W(n,t,"block"):W(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return b=Z(r),/^(max|min)/.test(r)&&(b="property"),"tag"==b&&(b=S.test(r)?"variable-2":"atom"),n.context.type}return B.atBlock(e,t,n)},B.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&re(t)||"]"==e||"hash"==e||"qualifier"==e||X(t.current()))?K(e,t,n):"{"==e?W(n,t,"keyframes"):"}"==e?re(t)?H(n,!0):W(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?W(n,t,"keyframes"):"word"==e&&(b=Z(t.current()),"block-keyword"==b)?(b="keyword",W(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?W(n,t,ie(t)?"block":"atBlock"):"mixin"==e?W(n,t,"block",0):n.context.type},B.interpolation=function(e,t,n){return"{"==e&&H(n)&&W(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&X(oe(t))?W(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?W(n,t,"block",0):W(n,t,"block"):"variable-name"==e?W(n,t,"variableName",0):("word"==e&&(b=Z(t.current()),"tag"==b&&(b="atom")),n.context.type)},B.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?H(n):"word"==e?(b=Z(t.current()),"extend"):H(n)},B.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(b="variable-2"),"variableName"):K(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new V("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:(p=(t.tokenize||q)(e,t),p&&"object"==typeof p&&(y=p[1],p=p[0]),b=p,t.state=B[t.state](y,e,t),b)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=oe(t),s=n.match(/^\s*/)[0].replace(/\t/g,w).length,l=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-_:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||J(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||X(a)?o=/\,\s*$/.test(l)?c:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||X(l))?s<=c?c:c+_:s:/,\s*$/.test(n)||!Q(a)&&!Y(a)||(o=J(l)?s<=c?c:c+_:/^\{/.test(l)?s<=c?s:c+_:Q(l)||Y(l)?s>=c?c:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||X(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?c+_:s)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],n=["domain","regexp","url-prefix","url"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],c=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],u=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],d=["for","if","else","unless","from","to"],f=["null","true","false","href","title","type","not-allowed","readonly","disabled"],h=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],p=t.concat(n,r,i,o,a,l,c,s,u,d,f,h);function m(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function g(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function v(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}e.registerHelper("hintWords","stylus",p),e.defineMIME("text/x-styl","stylus")}))},"76fa":function(e,t,n){"use strict";n("4030")},"77c5":function(e,t,n){"use strict";n("4a75")},"784d":function(e,t,n){var r=n("4587");e.exports=r("navigator","userAgent")||""},7896:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",[n("a-button",{attrs:{type:"primary",icon:"desktop"},on:{click:e.splitPane}},[e._v("点我分屏")]),n("split-panel-modal",{ref:"splitPanelModal"})],1)},i=[],o=n("5d1e"),a={name:"SplitPanel",components:{SplitPanelModal:o["default"]},data:function(){return{description:"分屏"}},methods:{splitPane:function(){this.$refs.splitPanelModal.show()}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"20bcecf1",null);t["default"]=c.exports},"78d3":function(e,t,n){"use strict";n("e6f1")},"78db":function(e,t,n){"use strict";var r=n("dc07"),i=n("0414"),o=n("92fa5"),a=n("7fc9"),s=n("0af5"),l=n("2c30"),c=n("9f5e"),u=n("345d"),d=[0,0,0],f=function(){function e(e){var t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,Object(o["a"])(Object(c["e"])(this.resolutions_,(function(e,t){return t-e}),!0),17),!e.origins)for(var n=0,a=this.resolutions_.length-1;n<a;++n)if(t){if(this.resolutions_[n]/this.resolutions_[n+1]!==t){t=void 0;break}}else t=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,Object(o["a"])(this.origins_.length==this.resolutions_.length,20));var l=e.extent;void 0===l||this.origin_||this.origins_||(this.origin_=Object(s["C"])(l)),Object(o["a"])(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,Object(o["a"])(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:i["b"],Object(o["a"])(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==l?l:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map((function(e,t){var n=new r["b"](Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(l){var i=this.getTileRangeForExtentAndZ(l,t);n.minX=Math.max(i.minX,n.minX),n.maxX=Math.min(i.maxX,n.maxX),n.minY=Math.max(i.minY,n.minY),n.maxY=Math.min(i.maxY,n.maxY)}return n}),this):l&&this.calculateTileRanges_(l)}return e.prototype.forEachTileCoord=function(e,t,n){for(var r=this.getTileRangeForExtentAndZ(e,t),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([t,i,a])},e.prototype.forEachTileCoordParentTileRange=function(e,t,n,i){var o,a,s,l=null,c=e[0]-1;2===this.zoomFactor_?(a=e[1],s=e[2]):l=this.getTileCoordExtent(e,i);while(c>=this.minZoom){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=Object(r["a"])(a,a,s,s,n)):o=this.getTileRangeForExtentAndZ(l,c,n),t(c,o))return!0;--c}return!1},e.prototype.getExtent=function(){return this.extent_},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.getMinZoom=function(){return this.minZoom},e.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},e.prototype.getResolution=function(e){return this.resolutions_[e]},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*e[1],o=2*e[2];return Object(r["a"])(i,i+1,o,o+1,t)}var a=this.getTileCoordExtent(e,n);return this.getTileRangeForExtentAndZ(a,e[0]+1,t)}return null},e.prototype.getTileRangeExtent=function(e,t,n){var r=this.getOrigin(e),i=this.getResolution(e),o=Object(u["c"])(this.getTileSize(e),this.tmpSize_),a=r[0]+t.minX*o[0]*i,l=r[0]+(t.maxX+1)*o[0]*i,c=r[1]+t.minY*o[1]*i,d=r[1]+(t.maxY+1)*o[1]*i;return Object(s["k"])(a,c,l,d,n)},e.prototype.getTileRangeForExtentAndZ=function(e,t,n){var i=d;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,i);var o=i[1],a=i[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,i),Object(r["a"])(o,i[1],a,i[2],n)},e.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=Object(u["c"])(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]},e.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=Object(u["c"])(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,a=n[1]-(e[2]+1)*i[1]*r,l=o+i[0]*r,c=a+i[1]*r;return Object(s["k"])(o,a,l,c,t)},e.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordForXYAndResolution_=function(e,t,n,r,i){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),c=Object(u["c"])(this.getTileSize(o),this.tmpSize_),d=r?.5:0,f=r?.5:0,h=Math.floor((e-s[0])/n+d),p=Math.floor((s[1]-t)/n+f),m=a*h/c[0],g=a*p/c[1];return r?(m=Math.ceil(m)-1,g=Math.ceil(g)-1):(m=Math.floor(m),g=Math.floor(g)),Object(l["a"])(o,m,g,i)},e.prototype.getTileCoordForXYAndZ_=function(e,t,n,r,i){var o=this.getOrigin(n),a=this.getResolution(n),s=Object(u["c"])(this.getTileSize(n),this.tmpSize_),c=r?.5:0,d=r?.5:0,f=Math.floor((e-o[0])/a+c),h=Math.floor((o[1]-t)/a+d),p=f/s[0],m=h/s[1];return r?(p=Math.ceil(p)-1,m=Math.ceil(m)-1):(p=Math.floor(p),m=Math.floor(m)),Object(l["a"])(n,p,m,i)},e.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},e.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},e.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null},e.prototype.getZForResolution=function(e,t){var n=Object(c["f"])(this.resolutions_,e,t||0);return Object(a["a"])(n,this.minZoom,this.maxZoom)},e.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n},e}();t["a"]=f},"78e4":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"菜单名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入菜单名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"vueUrl"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["vueUrl",{}],expression:"['vueUrl', {}]"}],attrs:{placeholder:"请输入vueUrl"}})],1)],1)],1)],1)},i=[],o=n("ade3"),a=n("0fea"),s=n("88bc"),l=n.n(s),c="";var u={name:"MenuModuleModal",components:{},data:function(){var e;return e={model:{},loading:!1,imageUrl:"",headers:{authorization:"authorization-text"},title:"操作",visible:!1},Object(o["a"])(e,"model",{}),Object(o["a"])(e,"labelCol",{xs:{span:24},sm:{span:5}}),Object(o["a"])(e,"wrapperCol",{xs:{span:24},sm:{span:16}}),Object(o["a"])(e,"confirmLoading",!1),Object(o["a"])(e,"form",this.$form.createForm(this)),Object(o["a"])(e,"validatorRules",{}),Object(o["a"])(e,"url",{add:"/menu_module/menuModule/add",edit:"/menu_module/menuModule/edit"}),e},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(l()(t.model,"name","imgUrl","vueUrl"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";e.model.id?(i+=e.url.edit,o="put"):(i+=e.url.add,o="post");var s=Object.assign(e.model,r);console.log(s),Object(a["i"])(i,s,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()})),e.model.imgUrl=c}}))},handleCancel:function(){this.close()}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"014feb7f",null);t["default"]=h.exports},"790a":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));n("f623");var r=n("7fc9"),i=6371008.8;function o(e,t,n){var o=n||i,a=Object(r["j"])(e[1]),s=Object(r["j"])(t[1]),l=(s-a)/2,c=Object(r["j"])(t[0]-e[0])/2,u=Math.sin(l)*Math.sin(l)+Math.sin(c)*Math.sin(c)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function a(e,t,n,o){var a=o||i,s=Object(r["j"])(e[1]),l=Object(r["j"])(e[0]),c=t/a,u=Math.asin(Math.sin(s)*Math.cos(c)+Math.cos(s)*Math.sin(c)*Math.cos(n)),d=l+Math.atan2(Math.sin(n)*Math.sin(c)*Math.cos(s),Math.cos(c)-Math.sin(s)*Math.sin(u));return[Object(r["i"])(d),Object(r["i"])(u)]}},7915:function(e,t,n){"use strict";e.exports=i;var r=n("9152");function i(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s=12,l="undefined"===typeof TextDecoder?null:new TextDecoder("utf8");function c(e,t,n){var r,i,o=n.buf;if(i=o[n.pos++],r=(112&i)>>4,i<128)return d(e,r,t);if(i=o[n.pos++],r|=(127&i)<<3,i<128)return d(e,r,t);if(i=o[n.pos++],r|=(127&i)<<10,i<128)return d(e,r,t);if(i=o[n.pos++],r|=(127&i)<<17,i<128)return d(e,r,t);if(i=o[n.pos++],r|=(127&i)<<24,i<128)return d(e,r,t);if(i=o[n.pos++],r|=(1&i)<<31,i<128)return d(e,r,t);throw new Error("Expected varint not more than 10 bytes")}function u(e){return e.type===i.Bytes?e.readVarint()+e.pos:e.pos+1}function d(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function f(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(n=~(-e%4294967296),r=~(-e/4294967296),4294967295^n?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),h(n,r,t),p(r,t)}function h(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}function p(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}function m(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function g(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function v(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function y(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function b(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function _(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function w(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function x(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function S(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function C(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function E(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function k(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function O(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function T(e,t,n){var r="",i=t;while(i<n){var o,a,s,l=e[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u>n)break;1===u?l<128&&(c=l):2===u?(o=e[i+1],128===(192&o)&&(c=(31&l)<<6|63&o,c<=127&&(c=null))):3===u?(o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a,(c<=2047||c>=55296&&c<=57343)&&(c=null))):4===u&&(o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s,(c<=65535||c>=1114112)&&(c=null))),null===c?(c=65533,u=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=u}return r}function I(e,t,n){return l.decode(e.subarray(t,n))}function A(e,t,n){for(var r,i,o=0;o<t.length;o++){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}i.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){n=n||this.length;while(this.pos<n){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=E(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=O(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=E(this.buf,this.pos)+E(this.buf,this.pos+4)*o;return this.pos+=8,e},readSFixed64:function(){var e=E(this.buf,this.pos)+O(this.buf,this.pos+4)*o;return this.pos+=8,e},readFloat:function(){var e=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return n=r[this.pos++],t=127&n,n<128?t:(n=r[this.pos++],t|=(127&n)<<7,n<128?t:(n=r[this.pos++],t|=(127&n)<<14,n<128?t:(n=r[this.pos++],t|=(127&n)<<21,n<128?t:(n=r[this.pos],t|=(15&n)<<28,c(t,e,this)))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2===1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=s&&l?I(this.buf,t,e):T(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==i.Bytes)return e.push(this.readVarint(t));var n=u(this);e=e||[];while(this.pos<n)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==i.Bytes)return e.push(this.readSVarint());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==i.Bytes)return e.push(this.readBoolean());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==i.Bytes)return e.push(this.readFloat());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==i.Bytes)return e.push(this.readDouble());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed32());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed32());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed64());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed64());var t=u(this);e=e||[];while(this.pos<t)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===i.Varint)while(this.buf[this.pos++]>127);else if(t===i.Bytes)this.pos=this.readVarint()+this.pos;else if(t===i.Fixed32)this.pos+=4;else{if(t!==i.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){var t=this.length||16;while(t<this.pos+e)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),k(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),k(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),k(this.buf,-1&e,this.pos),k(this.buf,Math.floor(e*a),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),k(this.buf,-1&e,this.pos),k(this.buf,Math.floor(e*a),this.pos+4),this.pos+=8},writeVarint:function(e){e=+e||0,e>268435455||e<0?f(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=A(this.buf,e,this.pos);var n=this.pos-t;n>=128&&m(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),r.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),r.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&m(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,i.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,g,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,v,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,_,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,y,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,b,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,w,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,x,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,S,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,C,t)},writeBytesField:function(e,t){this.writeTag(e,i.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,i.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,i.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,i.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},"791c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"793d":function(e,t,n){e.exports={angular:n("fb15"),json:n("d972")}},"7a09":function(e,t,n){"use strict";var r=n("521b"),i=n("f623"),o=n("9abc"),a=n("9769"),s=n("0af5"),l=n("abb7"),c=n("1c48"),u=n("9f5e"),d=n("fd4d"),f=n("bb6c"),h=n("b1a2"),p=n("c560"),m=n("5938"),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(e){function t(t,n){var r=e.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return g(t,e),t.prototype.appendCoordinate=function(e){this.flatCoordinates?Object(u["c"])(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(s["e"])(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.forEachSegment=function(e){return Object(d["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,t){if(this.layout!=r["a"].XYM&&this.layout!=r["a"].XYZM)return null;var n=void 0!==t&&t;return Object(h["b"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n)},t.prototype.getCoordinates=function(){return Object(f["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,t){return Object(h["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)},t.prototype.getLength=function(){return Object(m["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,r["a"].XY)},t.prototype.getType=function(){return i["a"].LINE_STRING},t.prototype.intersectsExtent=function(e){return Object(p["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(l["b"])(this.flatCoordinates,0,e,this.stride),this.changed()},t}(o["a"]);t["a"]=v},"7a44":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.verify?e._e():n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"90px",left:"290px"},on:{click:e.addnew}},[n("a-icon",{attrs:{type:"plus"}})],1),n("a-tabs",{staticStyle:{width:"350px"},attrs:{"default-active-key":"1"},on:{change:e.onClearSelected}},[n("a-tab-pane",{key:"1",attrs:{tab:"物资装备"}},[n("div",{staticStyle:{width:"350px"}},[n("a-table",{ref:"table2",staticClass:"table2",attrs:{customRow:e.rowClicknew,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns2,dataSource:e.dataSourcegd2,loading:e.loading,pagination:!1},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[e.unVerify?n("a-dropdown",[e.verify?e._e():n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])]),e.verify?n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",[e._v("删除")])]):e._e()],1):e._e()],1)}}])})],1)])],1)],1)},i=[],o=n("487a"),a=n.n(o),s={name:"mapTable",props:{columns2:"",columns3:"",loading:"",verify:"",verify_select:"",unVerify:"",selectedRowKeys:"",onSelectChange:"",cxsp:""},directives:{infiniteScroll:a.a},data:function(){return{count:0,data:[],busy:!1,columnWidthz:10,paginationz:{total:0,pageSize:10,showTotal:function(e){return"共有 ".concat(e," 条数据")}},jiazai2:15,jiazai3:15,dataSource2:[],dataSource3:[],dataSourcegd2:[],dataSourcegd3:[],smid:""}},mounted:function(){},methods:{rowClicknew:function(e){var t=this;return{on:{click:function(){t.$emit("rowClicknew",e)}}}},handleTableChange:function(){this.$emit("handleTableChange")},handleDeleteForm:function(e){this.$emit("handleDeleteForm",e)},handleDeleteFormDB2:function(e){this.$emit("handleDeleteFormDB2",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},addnew:function(e){this.$emit("addnew",e)},cldatalatiao:function(e){this.dataSource2=e,this.dataSource2cl(),this.table2latiao()},jiazaiyici:function(){this.dataSource2cl(),this.table2latiao()},dataSource2cl:function(){var e=this.dataSource2;if(this.dataSourcegd2=[],e.length>=15)for(var t=0;t<15;t++)this.dataSourcegd2.push(e[t]);else for(var n=0;n<e.length;n++)this.dataSourcegd2.push(e[n]);this.jiazai2=15},table2latiao:function(){var e=this;this.$nextTick((function(){setTimeout((function(){document.querySelectorAll(".table2 .ant-table-body")[0].scrollTop=0,document.querySelectorAll(".table2 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table2 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource2.length;if(o<=e.jiazai2+14)for(var a=e.jiazai2;a<e.jiazai2+(o-e.jiazai2);a++)e.dataSourcegd2.push(e.dataSource2[a]);else for(var s=e.jiazai2;s<e.jiazai2+14;s++)e.dataSourcegd2.push(e.dataSource2[s]);e.jiazai2+=14}}}),200)}))}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"7a82":function(e,t,n){"use strict";n("6bca")},"7a8a":function(e,t,n){},"7a9d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:10}},[n("a-form-item",{attrs:{label:"任务类名"}},[n("a-input",{attrs:{placeholder:"请输入任务类名"},model:{value:e.queryParam.jobClassName,callback:function(t){e.$set(e.queryParam,"jobClassName",t)},expression:"queryParam.jobClassName"}})],1)],1),n("a-col",{attrs:{md:6,sm:10}},[n("a-form-item",{attrs:{label:"任务状态"}},[n("a-select",{staticStyle:{width:"220px"},attrs:{placeholder:"请选择状态"},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},[n("a-select-option",{attrs:{value:""}},[e._v("全部")]),n("a-select-option",{attrs:{value:"0"}},[e._v("正常")]),n("a-select-option",{attrs:{value:"-1"}},[e._v("停止")])],1)],1)],1),n("a-col",{attrs:{md:6,sm:10}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("定时任务信息")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"description",fn:function(e){return n("span",{},[n("j-ellipsis",{attrs:{value:e,length:25}})],1)}},{key:"action",fn:function(t,r){return n("span",{},[-1==r.status?n("a",{on:{click:function(t){return e.resumeJob(r)}}},[e._v("启动")]):e._e(),0==r.status?n("a",{on:{click:function(t){return e.pauseJob(r)}}},[e._v("停止")]):e._e(),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}},{key:"customRenderStatus",fn:function(t){return[0==t?n("a-tag",{attrs:{color:"green"}},[e._v("已启动")]):e._e(),-1==t?n("a-tag",{attrs:{color:"orange"}},[e._v("已暂停")]):e._e()]}}])})],1),n("quartzJob-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=(n("ac6a"),n("456d"),n("077e")),a=n("0fea"),s=n("b65a"),l=n("d579"),c={name:"QuartzJobList",mixins:[s["a"]],components:{QuartzJobModal:o["default"],JEllipsis:l["default"]},data:function(){return{description:"定时任务在线管理",queryParam:{},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"任务类名",align:"center",dataIndex:"jobClassName",sorter:!0},{title:"cron表达式",align:"center",dataIndex:"cronExpression"},{title:"参数",align:"center",dataIndex:"parameter"},{title:"描述",align:"center",width:300,dataIndex:"description",scopedSlots:{customRender:"description"}},{title:"状态",align:"center",dataIndex:"status",scopedSlots:{customRender:"customRenderStatus"},filterMultiple:!1,filters:[{text:"已启动",value:"0"},{text:"已暂停",value:"-1"}]},{title:"操作",dataIndex:"action",align:"center",width:180,scopedSlots:{customRender:"action"}}],url:{list:"/sys/quartzJob/list",delete:"/sys/quartzJob/delete",deleteBatch:"/sys/quartzJob/deleteBatch",pause:"/sys/quartzJob/pause",resume:"/sys/quartzJob/resume",exportXlsUrl:"sys/quartzJob/exportXls",importExcelUrl:"sys/quartzJob/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.filters.status=t.status[0],this.ipagination=e,this.loadData()},pauseJob:function(e){var t=this;this.$confirm({title:"确认暂停",content:"是否暂停选中任务?",onOk:function(){Object(a["d"])(t.url.pause,{jobClassName:e.jobClassName}).then((function(e){e.success?(t.$message.success(e.message),t.loadData(),t.onClearSelected()):t.$message.warning(e.message)}))}})},resumeJob:function(e){var t=this;this.$confirm({title:"确认启动",content:"是否启动选中任务?",onOk:function(){Object(a["d"])(t.url.resume,{jobClassName:e.jobClassName}).then((function(e){e.success?(t.$message.success(e.message),t.loadData(),t.onClearSelected()):t.$message.warning(e.message)}))}})}}},u=c,d=(n("ac12"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"1f1eedc3",null);t["default"]=f.exports},"7ae4":function(e,t,n){},"7b00":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},d=n.mediaValueKeywords||{},f=n.propertyKeywords||{},h=n.nonStandardPropertyKeywords||{},p=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,_=!0===n.supportsAtComponent,w=!1!==t.highlightNonStandardPropertyKeywords;function x(e,t){return i=t,e}function S(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),x("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?x(null,"compare"):'"'==n||"'"==n?(t.tokenize=C(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==n?(e.match(/^\s*\w*/),x("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),x("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?x(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?x(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=E),x("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function C(e){return function(t,n){var r,i=!1;while(null!=(r=t.next())){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),x("string","string")}}function E(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=C(")"),x(null,"(")}function k(e,t,n){this.type=e,this.indent=t,this.prev=n}function O(e,t,n,r){return e.context=new k(n,t.indentation()+(!1===r?0:a),e.context),n}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function I(e,t,n){return P[n.context.type](e,t,n)}function A(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return I(e,t,n)}function R(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var P={top:function(e,t,n){if("{"==e)return O(n,t,"block");if("}"==e&&n.context.prev)return T(n);if(_&&/@component/i.test(e))return O(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return O(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return O(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return O(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return O(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return O(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return f.hasOwnProperty(r)?(o="property","maybeprop"):h.hasOwnProperty(r)?(o=w?"string-2":"property","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?P.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?O(n,t,"prop"):I(e,t,n)},prop:function(e,t,n){if(";"==e)return T(n);if("{"==e&&y)return O(n,t,"propBlock");if("}"==e||"{"==e)return A(e,t,n);if("("==e)return O(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)R(t);else if("interpolation"==e)return O(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?T(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?A(e,t,n):")"==e?T(n):"("==e?O(n,t,"parens"):"interpolation"==e?O(n,t,"interpolation"):("word"==e&&R(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):I(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):P.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return O(n,t,"atBlock_parens");if("}"==e||";"==e)return A(e,t,n);if("{"==e)return T(n)&&O(n,t,y?"block":"top");if("interpolation"==e)return O(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":f.hasOwnProperty(r)?"property":h.hasOwnProperty(r)?w?"string-2":"property":v.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?A(e,t,n):"{"==e?T(n)&&O(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?T(n):"{"==e||"}"==e?A(e,t,n,2):P.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?O(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):I(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,T(n)):"word"==e?(o="@font-face"==n.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?O(n,t,"top"):I(e,t,n)},at:function(e,t,n){return";"==e?T(n):"{"==e||"}"==e?A(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?T(n):"{"==e||";"==e?A(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new k(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||S)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=P[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):(n=n.prev,i=n.indent)),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],c=t(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(u),f=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],h=t(f),p=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],m=t(p),g=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],v=t(g),y=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],b=t(y),_=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],w=t(_),x=n.concat(i).concat(a).concat(l).concat(u).concat(f).concat(y).concat(_);function S(e,t){var n,r=!1;while(null!=(n=e.next())){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",x),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:m,counterDescriptors:v,colorKeywords:b,valueKeywords:w,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=S,S(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:w,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=S,S(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:w,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=S,S(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:m,counterDescriptors:v,colorKeywords:b,valueKeywords:w,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=S,S(e,t))}},name:"css",helperType:"gss"})}))},"7b4f":function(e,t,n){"use strict";t["a"]={PROPERTYCHANGE:"propertychange"}},"7b60":function(e,t,n){},"7b6a":function(e,t,n){},"7b8a":function(e,t,n){},"7bf3":function(e,t,n){},"7c33":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1e3,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"规则名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ruleName",e.validatorRules.ruleName],expression:"['ruleName', validatorRules.ruleName]"}],attrs:{placeholder:"请输入规则名称"}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.showRuleColumn,expression:"showRuleColumn"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"规则字段"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ruleColumn",e.validatorRules.ruleColumn],expression:"['ruleColumn', validatorRules.ruleColumn]"}],attrs:{placeholder:"请输入规则字段"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"条件规则"}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["ruleConditions",e.validatorRules.ruleConditions],expression:"['ruleConditions', validatorRules.ruleConditions]"}],attrs:{placeholder:"请输入条件规则",triggerChange:!0,dictCode:"rule_conditions"},on:{change:e.handleChangeRuleCondition}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"规则值"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ruleValue",e.validatorRules.ruleValue],expression:"['ruleValue', validatorRules.ruleValue]"}],attrs:{placeholder:"请输入规则值"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"状态"}},[n("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:"1"}],expression:"['status',{initialValue:'1'}]"}],attrs:{buttonStyle:"solid"}},[n("a-radio-button",{attrs:{value:"1"}},[e._v("有效")]),n("a-radio-button",{attrs:{value:"0"}},[e._v("无效")])],1)],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l={name:"PermissionDataRuleModal",data:function(){return{queryParam:{},title:"操作",visible:!1,model:{},ruleConditionList:[],labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),permissionId:"",validatorRules:{ruleConditions:{rules:[{required:!0,message:"请选择条件!"}]},ruleName:{rules:[{required:!0,message:"请输入规则名称!"}]},ruleValue:{rules:[{required:!0,message:"请输入规则值!"}]},ruleColumn:{rules:[]}},url:{list:"/sys/dictItem/list",add:"/sys/permission/addPermissionRule",edit:"/sys/permission/editPermissionRule"},showRuleColumn:!0}},created:function(){},methods:{add:function(e){this.permissionId=e,this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),e.permissionId?this.model.permissionId=e.permissionId:this.model.permissionId=this.permissionId,this.visible=!0,this.initRuleCondition(),this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"status","ruleName","ruleColumn","ruleConditions","ruleValue"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);s.ruleColumn&&s.ruleColumn.length>0&&(s.ruleColumn=s.ruleColumn.trim()),s.ruleValue&&s.ruleValue.length>0&&(s.ruleValue=s.ruleValue.trim()),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},initRuleCondition:function(){this.model.ruleConditions&&"USE_SQL_RULES"==this.model.ruleConditions?this.showRuleColumn=!1:this.showRuleColumn=!0},handleChangeRuleCondition:function(e){"USE_SQL_RULES"==e?(this.form.setFieldsValue({ruleColumn:""}),this.showRuleColumn=!1):this.showRuleColumn=!0}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"3e96f1f8",null);t["default"]=d.exports},"7c57":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-input-search",{attrs:{placeholder:"请先选择用户",disabled:""},on:{search:e.onSearchDepUser},model:{value:e.selectedDepUsers,callback:function(t){e.selectedDepUsers=t},expression:"selectedDepUsers"}},[n("a-button",{attrs:{slot:"enterButton",disabled:e.disabled},slot:"enterButton"},[e._v("选择用户")])],1),n("j-select-duty-user-model",{ref:"selectModal",attrs:{"modal-width":e.modalWidth},on:{ok:e.onSearchDepUserCallBack}})],1)},i=[],o=(n("c5f6"),n("2413")),a={name:"JSelectDutyUser",components:{JSelectDutyUserModel:o["default"]},props:{modalWidth:{type:Number,default:1e3,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{selectedDepUsers:""}},mounted:function(){this.selectedDepUsers=this.value},watch:{value:function(e){this.selectedDepUsers=e}},model:{prop:"value",event:"change"},methods:{onSearchDepUser:function(){this.$refs.selectModal.showModal(),this.onSearchDepUserCallBack("")},onSearchDepUserCallBack:function(e){this.selectedDepUsers=e,this.$emit("change",e)}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"d237fed4",null);t["default"]=c.exports},"7c6a":function(e,t,n){},"7c93":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:"导入EXCEL",width:600,visible:e.visible,confirmLoading:e.uploading},on:{cancel:e.handleClose}},[n("a-upload",{attrs:{name:"file",multiple:!0,accept:".xls,.xlsx",fileList:e.fileList,remove:e.handleRemove,beforeUpload:e.beforeUpload}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v("\n      选择导入文件\n    ")],1)],1),n("template",{slot:"footer"},[n("a-button",{on:{click:e.handleClose}},[e._v("关闭")]),n("a-button",{attrs:{type:"primary",disabled:0===e.fileList.length,loading:e.uploading},on:{click:e.handleImport}},[e._v("\n      "+e._s(e.uploading?"上传中...":"开始上传")+"\n    ")])],1)],2)},i=[],o=(n("ac6a"),n("2909")),a=n("0fea"),s={name:"JImportModal",props:{url:{type:String,default:"",required:!1}},data:function(){return{visible:!1,uploading:!1,fileList:[],uploadAction:""}},watch:{url:function(e){e&&(this.uploadAction=window._CONFIG["domianURL"]+e)}},created:function(){this.uploadAction=window._CONFIG["domianURL"]+this.url},methods:{handleClose:function(){this.visible=!1},show:function(){this.fileList=[],this.uploading=!1,this.visible=!0},handleRemove:function(e){var t=this.fileList.indexOf(e),n=this.fileList.slice();n.splice(t,1),this.fileList=n},beforeUpload:function(e){return this.fileList=[].concat(Object(o["a"])(this.fileList),[e]),!1},handleImport:function(){var e=this,t=this.fileList,n=new FormData;t.forEach((function(e){n.append("files[]",e)})),this.uploading=!0,Object(a["j"])(this.uploadAction,n).then((function(t){e.uploading=!1,t.success?(e.$message.success(t.message),e.visible=!1,e.$emit("ok")):e.$message.warning(t.message)}))}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"6f1e59ad",null);t["default"]=u.exports},"7ca6":function(e,t,n){},"7caa":function(e,t,n){var r=n("fbee"),i=n("e6bd"),o=n("e2e1"),a=n("be46"),s=n("9acd"),l=n("9ba1"),c=n("a550"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"7d33":function(e,t,n){(function(t){var r=n("2ef0"),i=n("9eab"),o=n("0b16"),a=n("faa1").EventEmitter;function s(e){if(e=e||{},e.log){var t,n;if(n=i.isArrayOfStrings(e.log)?[{levels:e.log}]:i.createArray(e.log,(function(e){return r.isPlainObject(e)?e:"string"===typeof e?{level:e}:void 0})),!n)throw new TypeError("Invalid logging output config. Expected either a log level, array of log levels, a logger config object, or an array of logger config objects.");for(t=0;t<n.length;t++)this.addOutput(n[t])}}i.inherits(s,a),s.loggers=n("5823"),s.prototype.close=function(){this.emit("closing"),this.listenerCount()&&(console.error("Something is still listening for log events, but the logger is closing."),this.clearAllListeners())},a.prototype.listenerCount?s.prototype.listenerCount=a.prototype.listenerCount:a.listenerCount?s.prototype.listenerCount=function(e){return a.listenerCount(this,e)}:s.prototype.listenerCount=function(e){return this.listeners(e).length},s.levels=["error","warning","info","debug","trace"],s.parseLevels=function(e){switch(typeof e){case"string":var t=r.indexOf(s.levels,e);if(t>=0)return s.levels.slice(0,t+1);case"object":if(r.isArray(e)){var n=r.intersection(e,s.levels);if(n.length===e.length)return n}default:throw new TypeError("invalid logging level "+e+". Expected zero or more of these options: "+s.levels.join(", "))}},s.join=function(e){return r.map(e,(function(e){return r.isPlainObject(e)?JSON.stringify(e,null,2)+"\n":e.toString()})).join(" ")},s.prototype.addOutput=function(e){e=e||{},e.levels=s.parseLevels(e.levels||e.level||"warning"),delete e.level;var n=i.funcEnum(e,"type",s.loggers,t.browser?"console":"stdio");return new n(this,e)},s.prototype.error=function(e){if(this.listenerCount("error"))return this.emit("error",e instanceof Error?e:new Error(e))},s.prototype.warning=function(){if(this.listenerCount("warning"))return this.emit("warning",s.join(arguments))},s.prototype.info=function(){if(this.listenerCount("info"))return this.emit("info",s.join(arguments))},s.prototype.debug=function(){if(this.listenerCount("debug"))return this.emit("debug",s.join(arguments))},s.prototype.trace=function(e,t,n,r,i){if(this.listenerCount("trace"))return this.emit("trace",s.normalizeTraceArgs(e,t,n,r,i))},s.normalizeTraceArgs=function(e,t,n,i,a){return"string"===typeof t?t=o.parse(t,!0,!0):(t=r.clone(t),t.path&&(t.query=o.parse(t.path,!0,!1).query),!t.pathname&&t.path&&(t.pathname=t.path.split("?").shift())),delete t.auth,{method:e,url:o.format(t),body:n,status:a,response:i}},e.exports=s}).call(this,n("f28c"))},"7d71":function(e,t,n){"use strict";n("542c")},"7dc3":function(e,t,n){var r=n("2ef0");e.exports=function(e){if(r.isEmpty(e))return!1;for(var t=e.shift().protocol,n=0;n<e.length;n++)if(t!==e[n].protocol)return!1;return t}},"7e3c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{"margin-top":"-70px"},attrs:{width:e.modalWidth,visible:e.visible,title:e.title,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleSubmit,cancel:e.close}},[n("a-row",{staticStyle:{"background-color":"#ececec",padding:"10px",margin:"-10px"},attrs:{gutter:10}},[n("a-col",{attrs:{md:24,sm:30}},[n("a-card",{attrs:{bordered:!1}},[e._v("\n        街道名称:\n        "),n("a-input",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入街道名称"},model:{value:e.queryParam.streetname,callback:function(t){e.$set(e.queryParam,"streetname",t)},expression:"queryParam.streetname"}}),n("a-button",{staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.onSearch()}}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{icon:"redo"},on:{click:function(t){return e.searchReset(1)}}},[e._v("重置")]),n("a-table",{ref:"table",attrs:{scroll:e.scrollTrigger,size:"middle",rowKey:"value",bordered:"",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,selectable:!1,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:"radio"}},on:{change:e.handleTableChange}})],1)],1)],1)],1)},i=[],o=(n("ac6a"),n("456d"),n("ca00")),a=n("4ec3"),s={name:"JSelectDutyStreetModel",components:{},props:["modalWidth"],data:function(){return{queryParam:{username:""},columns:[{title:"街道名称",align:"center",dataIndex:"label"},{title:"街道代码",align:"center",dataIndex:"value"}],scrollTrigger:{},dataSource:[],selectedKeys:[],streetArr:[],departName:"",userRolesMap:{},title:"请选择街道",ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},selectedRowKeys:[],selectedRows:[],departTree:[],visible:!1,form:this.$form.createForm(this)}},created:function(){this.resetScreenSize(),this.loadData()},methods:{loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["v"])(n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total)}))},resetScreenSize:function(){var e=document.body.clientWidth;this.scrollTrigger=e<500?{x:800}:{}},showModal:function(){this.visible=!0,this.form.resetFields()},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return null!=e.streetname&&""!=e.streetname&&(e.streetname=e.streetname+"*"),e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},searchReset:function(e){var t=this;0!==e&&(t.queryParam={},t.loadData(1)),t.selectedRowKeys=[],t.streetArr=[],t.selectedKeys=[]},close:function(){this.searchReset(0),this.visible=!1},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"===n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleSubmit:function(){for(var e=this,t=0,n=this.selectedRowKeys.length;t<n;t++)this.getStreetNames(this.selectedRowKeys[t]);e.$emit("ok",e.streetArr.join(",")),e.close()},getStreetNames:function(e){for(var t=this.dataSource,n=0,r=t.length;n<r;n++)e===t[n].value&&this.streetArr.push(t[n].label+"|"+t[n].value)},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onSearch:function(){this.loadData(1)},modalFormOk:function(){this.loadData()}}},l=s,c=(n("1520"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"c8366b2e",null);t["default"]=u.exports},"7e79":function(e,t,n){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(4)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,'\n.vue-cropper[data-v-6dae58fd] {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  box-sizing: border-box;\n  user-select: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  direction: ltr;\n  touch-action: none;\n  text-align: left;\n  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n  position: relative;\n  text-align: left;\n  user-select: none;\n  transform: none;\n  max-width: none;\n  max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n  overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n  cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n  cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n  background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n  /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n  display: block;\n  overflow: hidden;\n  width: 100%;\n  height: 100%;\n  outline: 1px solid #39f;\n  outline-color: rgba(51, 153, 255, 0.75);\n  user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n  user-select: none;\n  text-align: left;\n  max-width: none;\n  max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n  top: 0;\n  left: 0;\n  background-color: #fff;\n  opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n  position: absolute;\n  left: 0px;\n  min-width: 65px;\n  text-align: center;\n  color: white;\n  line-height: 20px;\n  background-color: rgba(0, 0, 0, 0.8);\n  font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n  position: absolute;\n  display: block;\n  width: 100%;\n  height: 100%;\n  opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n  top: -3px;\n  left: 0;\n  height: 5px;\n  cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n  top: 0;\n  left: -3px;\n  width: 5px;\n  cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n  bottom: -3px;\n  left: 0;\n  height: 5px;\n  cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n  top: 0;\n  right: -3px;\n  width: 5px;\n  cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n  position: absolute;\n  width: 8px;\n  height: 8px;\n  opacity: 0.75;\n  background-color: #39f;\n  border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n  top: -4px;\n  left: -4px;\n  cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n  top: -5px;\n  left: 50%;\n  margin-left: -3px;\n  cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n  top: -4px;\n  right: -4px;\n  cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n  top: 50%;\n  left: -4px;\n  margin-top: -3px;\n  cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n  top: 50%;\n  right: -4px;\n  margin-top: -3px;\n  cursor: e-resize;\n}\n.point6[data-v-6dae58fd] {\n  bottom: -5px;\n  left: -4px;\n  cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n  bottom: -5px;\n  left: 50%;\n  margin-left: -3px;\n  cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n  bottom: -5px;\n  right: -4px;\n  cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n    position: absolute;\n    width: 20px;\n    height: 20px;\n    opacity: 0.45;\n    background-color: #39f;\n    border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n    top: -10px;\n    left: -10px;\n}\n.point2[data-v-6dae58fd],\n  .point4[data-v-6dae58fd],\n  .point5[data-v-6dae58fd],\n  .point7[data-v-6dae58fd] {\n    display: none;\n}\n.point3[data-v-6dae58fd] {\n    top: -10px;\n    right: -10px;\n}\n.point4[data-v-6dae58fd] {\n    top: 0;\n    left: 0;\n}\n.point6[data-v-6dae58fd] {\n    bottom: -10px;\n    left: -10px;\n}\n.point8[data-v-6dae58fd] {\n    bottom: -10px;\n    right: -10px;\n}\n}\n',""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),o=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),a=null,s=0,l=[],c=n(5);function u(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=r[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(g(i.parts[a],t))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(g(i.parts[a],t));r[i.id]={id:i.id,refs:1,parts:s}}}}function d(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function f(e,t){var n=o(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=l[l.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=o(e.insertAt.before,n);n.insertBefore(t,i)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=l.indexOf(e);t>=0&&l.splice(t,1)}function p(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){return n.nc}();r&&(e.attrs.nonce=r)}return m(t,e.attrs),f(e,t),t}function m(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function g(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var l=s++;n=a||(a=p(t)),r=y.bind(null,n,l,!1),i=y.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),f(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=c(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return u(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var a=n[o];(s=r[a.id]).refs--,i.push(s)}for(e&&u(d(e,t),t),o=0;o<i.length;o++){var s;if(0===(s=i[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete r[s.id]}}}};var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:e.scaleImg,mouseout:e.cancelScale}},[n("div",{staticClass:"cropper-box"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}},[n("img",{ref:"cropperImg",attrs:{src:e.imgs,alt:"cropper-img"}})])]),e._v(" "),n("div",{staticClass:"cropper-drag-box",class:{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping},on:{mousedown:e.startMove,touchstart:e.startMove}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"}},[n("span",{staticClass:"cropper-view-box"},[n("img",{style:{width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"},attrs:{src:e.imgs,alt:"cropper-img"}})]),e._v(" "),n("span",{staticClass:"cropper-face cropper-move",on:{mousedown:e.cropMove,touchstart:e.cropMove}}),e._v(" "),e.info?n("span",{staticClass:"crop-info",style:{top:e.cropInfo.top}},[e._v(e._s(this.cropInfo.width)+" × "+e._s(this.cropInfo.height))]):e._e(),e._v(" "),e.fixedBox?e._e():n("span",[n("span",{staticClass:"crop-line line-w",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,1)}}}),e._v(" "),n("span",{staticClass:"crop-line line-a",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,1,0)}}}),e._v(" "),n("span",{staticClass:"crop-line line-s",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,2)}}}),e._v(" "),n("span",{staticClass:"crop-line line-d",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,2,0)}}}),e._v(" "),n("span",{staticClass:"crop-point point1",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,1,1)},touchstart:function(t){e.changeCropSize(t,!0,!0,1,1)}}}),e._v(" "),n("span",{staticClass:"crop-point point2",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,1)}}}),e._v(" "),n("span",{staticClass:"crop-point point3",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,2,1)},touchstart:function(t){e.changeCropSize(t,!0,!0,2,1)}}}),e._v(" "),n("span",{staticClass:"crop-point point4",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,1,0)}}}),e._v(" "),n("span",{staticClass:"crop-point point5",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,2,0)}}}),e._v(" "),n("span",{staticClass:"crop-point point6",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,1,2)},touchstart:function(t){e.changeCropSize(t,!0,!0,1,2)}}}),e._v(" "),n("span",{staticClass:"crop-point point7",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,2)}}}),e._v(" "),n("span",{staticClass:"crop-point point8",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,2,2)},touchstart:function(t){e.changeCropSize(t,!0,!0,2,2)}}})])])])};r._withStripped=!0;var i={getData:function(e){return new Promise((function(t,n){var r={};(function(e){var t=null;return new Promise((function(n,r){if(e.src)if(/^data\:/i.test(e.src))t=function(e){e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var t=atob(e),n=t.length,r=new ArrayBuffer(n),i=new Uint8Array(r),o=0;o<n;o++)i[o]=t.charCodeAt(o);return r}(e.src),n(t);else if(/^blob\:/i.test(e.src)){var i=new FileReader;i.onload=function(e){t=e.target.result,n(t)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||t(this.response)},n.send()}(e.src,(function(e){i.readAsArrayBuffer(e)}))}else{var o=new XMLHttpRequest;o.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";t=o.response,n(t),o=null},o.open("GET",e.src,!0),o.responseType="arraybuffer",o.send(null)}else r("img error")}))})(e).then((function(e){r.arrayBuffer=e,r.orientation=function(e){var t,n,r,i,o,a,s,l,c,u=new DataView(e),d=u.byteLength;if(255===u.getUint8(0)&&216===u.getUint8(1))for(l=2;l<d;){if(255===u.getUint8(l)&&225===u.getUint8(l+1)){a=l;break}l++}if(a&&(n=a+10,"Exif"===function(e,t,n){var r,i="";for(r=t,n+=t;r<n;r++)i+=String.fromCharCode(e.getUint8(r));return i}(u,a+4,4)&&(o=u.getUint16(n),((i=18761===o)||19789===o)&&42===u.getUint16(n+2,i)&&(r=u.getUint32(n+4,i))>=8&&(s=n+r))),s)for(d=u.getUint16(s,i),c=0;c<d;c++)if(l=s+12*c+2,274===u.getUint16(l,i)){l+=8,t=u.getUint16(l,i);break}return t}(e),t(r)})).catch((function(e){n(e)}))}))}},o=i,a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:Number,default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"}},computed:{cropInfo:function(){var e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE:function(){var e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1;return t}},watch:{img:function(){this.checkedImg()},imgs:function(e){""!==e&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(e,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(e){e&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{checkOrientationImage:function(e,t,n,r){var i=this,o=document.createElement("canvas"),a=o.getContext("2d");switch(a.save(),t){case 2:o.width=n,o.height=r,a.translate(n,0),a.scale(-1,1);break;case 3:o.width=n,o.height=r,a.translate(n/2,r/2),a.rotate(180*Math.PI/180),a.translate(-n/2,-r/2);break;case 4:o.width=n,o.height=r,a.translate(0,r),a.scale(1,-1);break;case 5:o.height=n,o.width=r,a.rotate(.5*Math.PI),a.scale(1,-1);break;case 6:o.width=r,o.height=n,a.translate(r/2,n/2),a.rotate(90*Math.PI/180),a.translate(-n/2,-r/2);break;case 7:o.height=n,o.width=r,a.rotate(.5*Math.PI),a.translate(n,-r),a.scale(-1,1);break;case 8:o.height=n,o.width=r,a.translate(r/2,n/2),a.rotate(-90*Math.PI/180),a.translate(-n/2,-r/2);break;default:o.width=n,o.height=r}a.drawImage(e,0,0,n,r),a.restore(),o.toBlob((function(e){var t=URL.createObjectURL(e);i.imgs=t}),"image/"+this.outputType,1)},checkedImg:function(){var e=this;if(""!==this.img){this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(""===e.img)return e.$emit("imgLoad","error"),e.$emit("img-load","error"),!1;var n=t.width,r=t.height;o.getData(t).then((function(i){e.orientation=i.orientation||1;var o=e.maxImgSize;!e.orientation&&n<o&r<o?e.imgs=e.img:(n>o&&(r=r/n*o,n=o),r>o&&(n=n/r*o,r=o),e.checkOrientationImage(t,e.orientation,n,r))}))},t.onerror=function(){e.$emit("imgLoad","error"),e.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var n=new XMLHttpRequest;n.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},n.open("GET",this.img,!0),n.responseType="blob",n.send()}else t.src=this.img}},startMove:function(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(e.clientX?e.clientX:e.touches[0].clientX)-this.x,this.moveY=(e.clientY?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==e.touches.length&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=e.clientX?e.clientX:e.touches[0].clientX,this.cropY=e.clientY?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(e){var t=this;e.preventDefault();var n=this.scale,r=this.touches[0].clientX,i=this.touches[0].clientY,o=e.touches[0].clientX,a=e.touches[0].clientY,s=this.touches[1].clientX,l=this.touches[1].clientY,c=e.touches[1].clientX,u=e.touches[1].clientY,d=Math.sqrt(Math.pow(r-s,2)+Math.pow(i-l,2)),f=Math.sqrt(Math.pow(o-c,2)+Math.pow(a-u,2))-d,h=1,p=(h=(h=h/this.trueWidth>h/this.trueHeight?h/this.trueHeight:h/this.trueWidth)>.1?.1:h)*f;if(!this.touchNow){if(this.touchNow=!0,f>0?n+=Math.abs(p):f<0&&n>Math.abs(p)&&(n-=Math.abs(p)),this.touches=e.touches,setTimeout((function(){t.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n}},cancelTouchScale:function(e){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(e){var t=this;if(e.preventDefault(),e.touches&&2===e.touches.length)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var n,r,i=e.clientX?e.clientX:e.touches[0].clientX,o=e.clientY?e.clientY:e.touches[0].clientY;n=i-this.moveX,r=o-this.moveY,this.$nextTick((function(){if(t.centerBox){var e,i,o,a,s=t.getImgAxis(n,r,t.scale),l=t.getCropAxis(),c=t.trueHeight*t.scale,u=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:e=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(c-u)/2,i=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(u-c)/2,o=e-c+t.cropW,a=i-u+t.cropH;break;default:e=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,i=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,o=e-u+t.cropW,a=i-c+t.cropH}s.x1>=l.x1&&(n=e),s.y1>=l.y1&&(r=i),s.x2<=l.x2&&(n=o),s.y2<=l.y2&&(r=a)}t.x=n,t.y=r,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})}))},leaveImg:function(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,{passive:!1})},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(e){var t=this;e.preventDefault();var n=this.scale,r=e.deltaY||e.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var i=this.coe,o=(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)*r;o<0?n+=Math.abs(o):n>Math.abs(o)&&(n-=Math.abs(o));var a=o<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((function(){t.scaling=!1,t.coe=t.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n},changeScale:function(e){var t=this.scale;e=e||1;var n=20;if((e*=n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth)>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(e){var t=this;e.preventDefault();var n=e.clientX?e.clientX:e.touches?e.touches[0].clientX:0,r=e.clientY?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick((function(){var e=n-t.cropX,i=r-t.cropY;if(e>0?(t.cropW=e+t.cropChangeX>t.w?t.w-t.cropChangeX:e,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(e)>t.w?t.cropChangeX:Math.abs(e),t.cropOffsertX=t.cropChangeX+e>0?t.cropChangeX+e:0),t.fixed){var o=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];o+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=e>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=o,t.cropOffsertY=t.cropOffsertY}else i>0?(t.cropH=i+t.cropChangeY>t.h?t.h-t.cropChangeY:i,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(i)>t.h?t.cropChangeY:Math.abs(i),t.cropOffsertY=t.cropChangeY+i>0?t.cropChangeY+i:0)}))},changeCropSize:function(e,t,n,r,i){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=n,this.changeCropTypeX=r,this.changeCropTypeY=i,this.cropX=e.clientX?e.clientX:e.touches[0].clientX,this.cropY=e.clientY?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0)},changeCropNow:function(e){var t=this;e.preventDefault();var n=e.clientX?e.clientX:e.touches?e.touches[0].clientX:0,r=e.clientY?e.clientY:e.touches?e.touches[0].clientY:0,i=this.w,o=this.h,a=0,s=0;if(this.centerBox){var l=this.getImgAxis(),c=l.x2,u=l.y2;a=l.x1>0?l.x1:0,s=l.y1>0?l.y1:0,i>c&&(i=c),o>u&&(o=u)}this.$nextTick((function(){var e=n-t.cropX,l=r-t.cropY;if(t.canChangeX&&(1===t.changeCropTypeX?t.cropOldW-e>0?(t.cropW=i-t.cropChangeX-e<=i-a?t.cropOldW-e:t.cropOldW+t.cropChangeX-a,t.cropOffsertX=i-t.cropChangeX-e<=i-a?t.cropChangeX+e:a):(t.cropW=Math.abs(e)+t.cropChangeX<=i?Math.abs(e)-t.cropOldW:i-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):2===t.changeCropTypeX&&(t.cropOldW+e>0?(t.cropW=t.cropOldW+e+t.cropOffsertX<=i?t.cropOldW+e:i-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=i-t.cropChangeX+Math.abs(e+t.cropOldW)<=i-a?Math.abs(e+t.cropOldW):t.cropChangeX-a,t.cropOffsertX=i-t.cropChangeX+Math.abs(e+t.cropOldW)<=i-a?t.cropChangeX-Math.abs(e+t.cropOldW):a))),t.canChangeY&&(1===t.changeCropTypeY?t.cropOldH-l>0?(t.cropH=o-t.cropChangeY-l<=o-s?t.cropOldH-l:t.cropOldH+t.cropChangeY-s,t.cropOffsertY=o-t.cropChangeY-l<=o-s?t.cropChangeY+l:s):(t.cropH=Math.abs(l)+t.cropChangeY<=o?Math.abs(l)-t.cropOldH:o-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):2===t.changeCropTypeY&&(t.cropOldH+l>0?(t.cropH=t.cropOldH+l+t.cropOffsertY<=o?t.cropOldH+l:o-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=o-t.cropChangeY+Math.abs(l+t.cropOldH)<=o-s?Math.abs(l+t.cropOldH):t.cropChangeY-s,t.cropOffsertY=o-t.cropChangeY+Math.abs(l+t.cropOldH)<=o-s?t.cropChangeY-Math.abs(l+t.cropOldH):s))),t.canChangeX&&t.fixed){var c=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];c+t.cropOffsertY>o?(t.cropH=o-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0]):t.cropH=c}if(t.canChangeY&&t.fixed){var u=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];u+t.cropOffsertX>i?(t.cropW=i-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=u}}))},changeCropEnd:function(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&2===e.touches.length)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,n,r=e.clientX?e.clientX:e.touches[0].clientX,i=e.clientY?e.clientY:e.touches[0].clientY;t=r-this.cropOffsertX,n=i-this.cropOffsertY,this.cropX=t,this.cropY=n,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(e,t){var n=this,r=0,i=0;e&&(e.preventDefault(),r=e.clientX?e.clientX:e.touches[0].clientX,i=e.clientY?e.clientY:e.touches[0].clientY),this.$nextTick((function(){var e,o,a=r-n.cropX,s=i-n.cropY;if(t&&(a=n.cropOffsertX,s=n.cropOffsertY),e=a<=0?0:a+n.cropW>n.w?n.w-n.cropW:a,o=s<=0?0:s+n.cropH>n.h?n.h-n.cropH:s,n.centerBox){var l=n.getImgAxis();e<=l.x1&&(e=l.x1),e+n.cropW>l.x2&&(e=l.x2-n.cropW),o<=l.y1&&(o=l.y1),o+n.cropH>l.y2&&(o=l.y2-n.cropH)}n.cropOffsertX=e,n.cropOffsertY=o,n.$emit("cropMoving",{moving:!0,axis:n.getCropAxis()}),n.$emit("crop-moving",{moving:!0,axis:n.getCropAxis()})}))},getImgAxis:function(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;var r={x1:0,x2:0,y1:0,y2:0},i=this.trueWidth*n,o=this.trueHeight*n;switch(this.rotate){case 0:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n;break;case 1:case-1:case 3:case-3:r.x1=e+this.trueWidth*(1-n)/2+(i-o)/2,r.x2=r.x1+this.trueHeight*n,r.y1=t+this.trueHeight*(1-n)/2+(o-i)/2,r.y2=r.y1+this.trueWidth*n;break;default:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n}return r},getCropAxis:function(){var e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop:function(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(e){var t=this,n=document.createElement("canvas"),r=new Image,i=this.rotate,o=this.trueWidth,a=this.trueHeight,s=this.cropOffsertX,l=this.cropOffsertY;function c(e,t){n.width=Math.round(e),n.height=Math.round(t)}r.onload=function(){if(0!==t.cropW){var u=n.getContext("2d"),d=1;t.high&!t.full&&(d=window.devicePixelRatio),1!==t.enlarge&!t.full&&(d=Math.abs(Number(t.enlarge)),console.log(d));var f=t.cropW*d,h=t.cropH*d,p=o*t.scale*d,m=a*t.scale*d,g=(t.x-s+t.trueWidth*(1-t.scale)/2)*d,v=(t.y-l+t.trueHeight*(1-t.scale)/2)*d;switch(c(f,h),u.save(),i){case 0:t.full?(c(f/t.scale,h/t.scale),u.drawImage(r,g/t.scale,v/t.scale,p/t.scale,m/t.scale)):u.drawImage(r,g,v,p,m);break;case 1:case-3:t.full?(c(f/t.scale,h/t.scale),g=g/t.scale+(p/t.scale-m/t.scale)/2,v=v/t.scale+(m/t.scale-p/t.scale)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,v,-g-m/t.scale,p/t.scale,m/t.scale)):(g+=(p-m)/2,v+=(m-p)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,v,-g-m,p,m));break;case 2:case-2:t.full?(c(f/t.scale,h/t.scale),u.rotate(90*i*Math.PI/180),g/=t.scale,v/=t.scale,u.drawImage(r,-g-p/t.scale,-v-m/t.scale,p/t.scale,m/t.scale)):(u.rotate(90*i*Math.PI/180),u.drawImage(r,-g-p,-v-m,p,m));break;case 3:case-1:t.full?(c(f/t.scale,h/t.scale),g=g/t.scale+(p/t.scale-m/t.scale)/2,v=v/t.scale+(m/t.scale-p/t.scale)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,-v-p/t.scale,g,p/t.scale,m/t.scale)):(g+=(p-m)/2,v+=(m-p)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,-v-p,g,p,m));break;default:t.full?(c(f/t.scale,h/t.scale),u.drawImage(r,g/t.scale,v/t.scale,p/t.scale,m/t.scale)):u.drawImage(r,g,v,p,m)}u.restore()}else{var y=o*t.scale,b=a*t.scale,_=n.getContext("2d");switch(_.save(),i){case 0:c(y,b),_.drawImage(r,0,0,y,b);break;case 1:case-3:c(b,y),_.rotate(90*i*Math.PI/180),_.drawImage(r,0,-b,y,b);break;case 2:case-2:c(y,b),_.rotate(90*i*Math.PI/180),_.drawImage(r,-y,-b,y,b);break;case 3:case-1:c(b,y),_.rotate(90*i*Math.PI/180),_.drawImage(r,-y,0,y,b);break;default:c(y,b),_.drawImage(r,0,0,y,b)}_.restore()}e(n)},"data"!==this.img.substr(0,4)&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(e){var t=this;this.getCropChecked((function(n){e(n.toDataURL("image/"+t.outputType,t.outputSize))}))},getCropBlob:function(e){var t=this;this.getCropChecked((function(n){n.toBlob((function(t){return e(t)}),"image/"+t.outputType,t.outputSize)}))},showPreview:function(){var e=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((function(){e.isCanShow=!0}),16);var t=this.cropW,n=this.cropH,r=this.scale,i={};i.div={width:"".concat(t,"px"),height:"".concat(n,"px")};var o=(this.x-this.cropOffsertX)/r,a=(this.y-this.cropOffsertY)/r;i.w=t,i.h=n,i.url=this.imgs,i.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(o,"px, ").concat(a,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},i.html='\n      <div class="show-preview" style="width: '.concat(i.w,"px; height: ").concat(i.h,'px,; overflow: hidden">\n        <div style="width: ').concat(t,"px; height: ").concat(n,'px">\n          <img src=').concat(i.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n          scale(").concat(r,")translate3d(").concat(o,"px, ").concat(a,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n        </div>\n      </div>'),this.$emit("realTime",i),this.$emit("real-time",i)},reload:function(){var e=this,t=new Image;t.onload=function(){e.w=parseFloat(window.getComputedStyle(e.$refs.cropper).width),e.h=parseFloat(window.getComputedStyle(e.$refs.cropper).height),e.trueWidth=t.width,e.trueHeight=t.height,e.original?e.scale=1:e.scale=e.checkedMode(),e.$nextTick((function(){e.x=-(e.trueWidth-e.trueWidth*e.scale)/2+(e.w-e.trueWidth*e.scale)/2,e.y=-(e.trueHeight-e.trueHeight*e.scale)/2+(e.h-e.trueHeight*e.scale)/2,e.loading=!1,e.autoCrop&&e.goAutoCrop(),e.$emit("img-load","success"),e.$emit("imgLoad","success"),setTimeout((function(){e.showPreview()}),20)}))},t.onerror=function(){e.$emit("imgLoad","error"),e.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var e=1,t=(this.trueWidth,this.trueHeight),n=this.mode.split(" ");switch(n[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":(t*=e=this.w/this.trueWidth)<this.h&&(e=(t=this.h)/this.trueHeight);break;default:try{var r=n[0];if(-1!==r.search("px")&&(r=r.replace("px",""),e=parseFloat(r)/this.trueWidth),-1!==r.search("%")&&(r=r.replace("%",""),e=parseFloat(r)/100*this.w/this.trueWidth),2===n.length&&"auto"===r){var i=n[1];-1!==i.search("px")&&(i=i.replace("px",""),e=(t=parseFloat(i))/this.trueHeight),-1!==i.search("%")&&(i=i.replace("%",""),e=(t=parseFloat(i)/100*this.h)/this.trueHeight)}}catch(t){e=1}}return e},goAutoCrop:function(e,t){this.clearCrop(),this.cropping=!0;var n=this.w,r=this.h;if(this.centerBox){var i=this.trueWidth*this.scale,o=this.trueHeight*this.scale;n=i<n?i:n,r=o<r?o:r}var a=e||parseFloat(this.autoCropWidth),s=t||parseFloat(this.autoCropHeight);0!==a&&0!==s||(a=.8*n,s=.8*r),a=a>n?n:a,s=s>r?r:s,this.fixed&&(s=a/this.fixedNumber[0]*this.fixedNumber[1]),s>this.h&&(a=(s=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(a,s)},changeCrop:function(e,t){var n=this;if(this.centerBox){var r=this.getImgAxis();e>r.x2-r.x1&&(t=(e=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>r.y2-r.y1&&(e=(t=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=e,this.cropH=t,this.cropOffsertX=(this.w-e)/2,this.cropOffsertY=(this.h-t)/2,this.centerBox&&this.$nextTick((function(){n.moveCrop(null,!0)}))},refresh:function(){var e=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((function(){e.checkedImg()}))},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;var r=!0;if(this.centerBox){var i=this.getImgAxis(e,t,n),o=this.getCropAxis();i.x1>=o.x1&&(r=!1),i.x2<=o.x2&&(r=!1),i.y1>=o.y1&&(r=!1),i.y2<=o.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var e=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,n,r){for(var i=atob(this.toDataURL(n,r).split(",")[1]),o=i.length,a=new Uint8Array(o),s=0;s<o;s++)a[s]=i.charCodeAt(s);t(new Blob([a],{type:e.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};n(1);var s=function(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}(a,r,[],!1,null,"6dae58fd",null);s.options.__file="src/vue-cropper.vue";var l=s.exports;n.d(t,"VueCropper",(function(){return l}));var c=function(e){e.component("VueCropper",l)};"undefined"!=typeof window&&window.Vue&&c(window.Vue),t.default={version:"0.4.8",install:c,VueCropper:l,vueCropper:l}}])}))},"7ebf":function(e,t,n){"use strict";n("f6e4")},"7eeb":function(e,t,n){"use strict";var r=n("e1bd").forEach,i=n("4042"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"7f04":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"点",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["point",e.validatorRules.point],expression:"[ 'point', validatorRules.point]"}],attrs:{placeholder:"请输入点"}}),n("mapChoosePoint",{attrs:{model:e.model,pointKey:e.pointKey},on:{lonlatChanged:function(t){return e.lonlatChanged(t)}}})],1),n("a-form-item",{attrs:{label:"线",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["line",e.validatorRules.line],expression:"[ 'line', validatorRules.line]"}],attrs:{placeholder:"请输入线"}}),n("mapChooseLine",{attrs:{model:e.model,lineKey:e.lineKey},on:{lineChanged:function(t){return e.lineChanged(t)}}})],1),n("a-form-item",{attrs:{label:"面",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["area",e.validatorRules.area],expression:"[ 'area', validatorRules.area]"}],attrs:{placeholder:"请输入面"}}),n("mapChooseQuart",{attrs:{model:e.model,quartKey:e.quartKey},on:{quartChanged:function(t){return e.quartChanged(t)}}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("854b"),c=n("de10"),u=n("35d2"),d={name:"MapPointQuartLineModal",components:{mapChooseLine:l["default"],mapChoosePoint:c["default"],mapChooseQuart:u["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:15}},confirmLoading:!1,validatorRules:{point:{},line:{},area:{}},url:{add:"/map_point_quart_line/mapPointQuartLine/add",edit:"/map_point_quart_line/mapPointQuartLine/edit"},pointKey:"point",lineKey:"line",quartKey:"area"}},created:function(){},methods:{handleMapView:function(){this.$refs.backMap.visible=!0,this.$refs.backMap.disableSubmit=!1},add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"point","line","area"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);if(console.log("表单提交数据",s),null==s.districtCode||""==s.districtCode||null==s.streetCode||""==s.streetCode||null==s.villageCode||""==s.villageCode)return t.$message.warning("请选择具体地区"),void(t.confirmLoading=!1);Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))},handleCancel:function(){this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"point","line","area"))},lonlatChanged:function(e){this.model[this.pointKey]=e,this.form.setFieldsValue(s()(this.model,this.pointKey))},lineChanged:function(e){this.model[this.lineKey]=e,this.form.setFieldsValue(s()(this.model,this.lineKey))},quartChanged:function(e){this.model[this.quartKey]=e,this.form.setFieldsValue(s()(this.model,this.quartKey))}}},f=d,h=n("2877"),p=Object(h["a"])(f,r,i,!1,null,null,null);t["default"]=p.exports},"7f71":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("c880"),a={name:"video_tree_label",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("f41b"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"e2f128a6",null);t["default"]=c.exports},"7f9b":function(e,t,n){"use strict";n("eb83")},"7fc9":function(e,t,n){"use strict";function r(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return f}));var i=function(){var e;return e="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},e}(),o=function(){var e;return e="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E},e}();function a(e,t,n,r,i,o){var a=i-n,l=o-r;if(0!==a||0!==l){var c=((e-n)*a+(t-r)*l)/(a*a+l*l);c>1?(n=i,r=o):c>0&&(n+=a*c,r+=l*c)}return s(e,t,n,r)}function s(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o}function l(e){for(var t=e.length,n=0;n<t;n++){for(var r=n,i=Math.abs(e[n][n]),o=n+1;o<t;o++){var a=Math.abs(e[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l<t;l++)for(var c=-e[l][n]/e[n][n],u=n;u<t+1;u++)n==u?e[l][u]=0:e[l][u]+=c*e[n][u]}for(var d=new Array(t),f=t-1;f>=0;f--){d[f]=e[f][t]/e[f][f];for(var h=f-1;h>=0;h--)e[h][t]-=e[h][f]*d[f]}return d}function c(e){return 180*e/Math.PI}function u(e){return e*Math.PI/180}function d(e,t){var n=e%t;return n*t<0?n+t:n}function f(e,t,n){return e+n*(t-e)}},"806e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-row",{attrs:{gutter:10}},[n("a-col",{attrs:{md:8,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("div",{staticStyle:{background:"#fff","padding-left":"16px",height:"100%","margin-top":"5px"}},[n("a-input-search",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{placeholder:"请输入部门名称"},on:{search:e.onSearch}}),[n("a-directory-tree",{attrs:{selectable:"",selectedKeys:e.selectedKeys,defaultExpandedKeys:e.iExpandedKeys,dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.departTree},on:{select:e.onSelect}})]],2)])],1),n("a-col",{attrs:{md:16,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("a-tabs",{attrs:{defaultActiveKey:"2"},on:{change:e.callback}},[n("a-tab-pane",{key:"1",attrs:{tab:"基本信息",forceRender:""}},[n("Dept-Base-Info",{ref:"DeptBaseInfo"})],1),n("a-tab-pane",{key:"2",attrs:{tab:"用户信息"}},[n("Dept-User-Info",{ref:"DeptUserInfo"})],1)],1)],1)],1)],1)},i=[],o=(n("7f7f"),n("e326")),a=n("5859"),s=n("4ec3"),l=n("b65a"),c={name:"DepartUserList",mixins:[l["a"]],components:{DeptBaseInfo:o["default"],DeptUserInfo:a["default"]},data:function(){return{currentDeptId:"",iExpandedKeys:[],loading:!1,autoExpandParent:!0,currFlowId:"",currFlowName:"",disable:!0,treeData:[],visible:!1,departTree:[],rightClickSelectedKey:"",hiding:!0,model:{},dropTrigger:"",depart:{},disableSubmit:!1,checkedKeys:[],selectedKeys:[],autoIncr:1,currSelected:{},form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},graphDatasource:{nodes:[],edges:[]}}},methods:{callback:function(e){console.log(e)},loadData:function(){this.refresh()},loadTree:function(){var e=this,t=this;t.treeData=[],t.departTree=[],Object(s["L"])().then((function(n){if(n.success){for(var r=0;r<n.result.length;r++){var i=n.result[r];t.treeData.push(i),t.departTree.push(i),t.setThisExpandedKeys(i)}e.loading=!1}}))},setThisExpandedKeys:function(e){if(e.children&&e.children.length>0){"温州市"==e.title&&this.iExpandedKeys.push(e.key);for(var t=0;t<e.children.length;t++)this.setThisExpandedKeys(e.children[t])}},refresh:function(){this.loading=!0,this.loadTree()},onExpand:function(e){this.iExpandedKeys=e,this.autoExpandParent=!1},onSearch:function(e){var t=this;e?Object(s["pb"])({keyWord:e}).then((function(e){if(e.success){t.departTree=[];for(var n=0;n<e.result.length;n++){var r=e.result[n];t.departTree.push(r)}}else t.$message.warning(e.message)})):t.loadTree()},onCheck:function(e,t){var n=t.node.dataRef;this.checkedKeys=[],this.currentDeptId=n.id,this.checkedKeys.push(n.id),this.$refs.DeptBaseInfo.open(n),this.$refs.DeptUserInfo.open(n),this.hiding=!1},onSelect:function(e,t){this.selectedKeys[0]!==e[0]&&(this.selectedKeys=[e[0]]);var n=t.node.dataRef;this.checkedKeys.push(n.id),this.$refs.DeptBaseInfo.open(n),this.$refs.DeptUserInfo.onClearSelected(),this.$refs.DeptUserInfo.open(n)}},created:function(){this.currFlowId=this.$route.params.id,this.currFlowName=this.$route.params.name}},u=c,d=(n("d6e1"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"23768130",null);t["default"]=f.exports},"80f1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("a-modal",{attrs:{title:"审核意见",centered:!0,maskClosable:!1},on:{ok:e.handleOk},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a-textarea",{attrs:{rows:5,placeholder:"请输入审核意见"},model:{value:e.shyj,callback:function(t){e.shyj=t},expression:"shyj"}})],1)],1),e.verify?e._e():n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"188px",left:"415px"},on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}})],1),n("a-tabs",{attrs:{"default-active-key":"1"},on:{change:e.onClearSelected,click:function(t){return e.latiao()}}},[n("a-tab-pane",{key:"1",attrs:{tab:"已定位"}},[n("div",{staticStyle:{width:"496px"}},[n("a-table",{ref:"table1",staticClass:"table1",attrs:{customRow:e.rowClick,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[1==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?e._e():n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("查看")]),1==e.unVerify&&0==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?n("a-divider",{attrs:{type:"vertical"}}):e._e(),e.unVerify?n("a-dropdown",[e.verify?n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1):e._e(),e.verify?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[e.cxsp?e._e():n("a-popconfirm",{attrs:{title:"确定审批通过吗?"},on:{confirm:function(){return e.handlePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("审批通过")])]),e.cxsp?e._e():n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.showModal(r.smid)}}},[e._v("审批不通过")]),e.cxsp?n("a-popconfirm",{attrs:{title:"确定重新审批吗?"},on:{confirm:function(){return e.handleRePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("重新审批")])]):e._e(),e.cxsp?n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("删除")])]):e._e()],1)],1):e._e(),e.verify?e._e():n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])])],1):e._e()],1)}}])})],1)]),n("a-tab-pane",{key:"2",attrs:{tab:"未定位"}},[n("div",{staticStyle:{width:"496px"}},[n("a-table",{ref:"table2",staticClass:"table2",attrs:{scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd2,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[1==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?e._e():n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("查看")]),1==e.unVerify&&0==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?n("a-divider",{attrs:{type:"vertical"}}):e._e(),e.unVerify?n("a-dropdown",[e.verify?n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1):e._e(),e.verify?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[e.cxsp?e._e():n("a-popconfirm",{attrs:{title:"确定审批通过吗?"},on:{confirm:function(){return e.handlePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("审批通过")])]),e.cxsp?e._e():n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.showModal(r.smid)}}},[e._v("审批不通过")]),e.cxsp?n("a-popconfirm",{attrs:{title:"确定重新审批吗?"},on:{confirm:function(){return e.handleRePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("重新审批")])]):e._e(),e.cxsp?n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("删除")])]):e._e()],1)],1):e._e(),e.verify?e._e():n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])])],1):e._e()],1)}}])})],1)]),n("a-tab-pane",{key:"3",attrs:{tab:"未完善"}},[n("div",{staticStyle:{width:"496px"}},[n("a-table",{ref:"table3",staticClass:"table3",attrs:{customRow:e.rowClick,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd3,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[1==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?e._e():n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("查看")]),1==e.unVerify&&0==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?n("a-divider",{attrs:{type:"vertical"}}):e._e(),e.unVerify?n("a-dropdown",[e.verify?n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1):e._e(),e.verify?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[e.cxsp?e._e():n("a-popconfirm",{attrs:{title:"确定审批通过吗?"},on:{confirm:function(){return e.handlePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("审批通过")])]),e.cxsp?e._e():n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.showModal(r.smid)}}},[e._v("审批不通过")]),e.cxsp?n("a-popconfirm",{attrs:{title:"确定重新审批吗?"},on:{confirm:function(){return e.handleRePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("重新审批")])]):e._e(),e.cxsp?n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("删除")])]):e._e()],1)],1):e._e(),e.verify?e._e():n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])])],1):e._e()],1)}}])})],1)])],1)],1)},i=[],o=n("487a"),a=n.n(o),s={name:"mapTable",props:{dataSource:"",dataSourcegd:"",dataSource2:"",dataSource3:"",loading:"",columns:"",verify:"",unVerify:"",selectedRowKeys:"",onSelectChange:"",cxsp:""},directives:{infiniteScroll:a.a},data:function(){return{count:0,data:[],busy:!1,columnWidthz:10,paginationz:{total:0,pageSize:10,showTotal:function(e){return"共有 ".concat(e," 条数据")}},jiazai:15,dataSourcegd2:[],jiazai2:15,dataSourcegd3:[],jiazai3:15,visible:!1,shyj:"",smid:""}},mounted:function(){this.table1latiao()},methods:{rowClick:function(e){var t=this;return{on:{click:function(){t.$emit("rowClicknew",e)}}}},handleEdit:function(e){this.$emit("handleEdit",e)},handleDeleteForm:function(e){this.$emit("handleDeleteForm",e)},handleDeleteFormDB2:function(e){this.$emit("handleDeleteFormDB2",e)},handlePassForm:function(e){this.$emit("handlePassForm",e)},handleNoPassForm:function(e){this.$emit("handleNoPassForm",e)},handleRePassForm:function(e){this.$emit("handleRePassForm",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},batchDel:function(e){this.$emit("batchDel",e)},table1latiao:function(){var e=this;this.$nextTick((function(){document.querySelectorAll(".table1 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table1 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource.length;if(o<=e.jiazai+14)if(console.log("即将到达最大值"),15==o);else for(var a=e.jiazai;a<e.jiazai+(o-e.jiazai);a++)e.dataSourcegd.push(e.dataSource[a]);else for(var s=e.jiazai;s<e.jiazai+14;s++)e.dataSourcegd.push(e.dataSource[s]);e.jiazai+=14}}}))},table2latiao:function(){var e=this;this.$nextTick((function(){setTimeout((function(){document.querySelectorAll(".table2 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table2 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource2.length;if(o<=e.jiazai2+14)for(var a=e.jiazai2;a<e.jiazai2+(o-e.jiazai2);a++)e.dataSourcegd2.push(e.dataSource2[a]);else for(var s=e.jiazai2;s<e.jiazai2+14;s++)e.dataSourcegd2.push(e.dataSource2[s]);e.jiazai2+=14}}}),200)}))},table3latiao:function(){var e=this;this.$nextTick((function(){setTimeout((function(){document.querySelectorAll(".table3 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table3 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource3.length;if(o<=e.jiazai3+14)for(var a=e.jiazai3;a<e.jiazai3+(o-e.jiazai3);a++)e.dataSourcegd3.push(e.dataSource3[a]);else for(var s=e.jiazai3;s<e.jiazai3+14;s++)e.dataSourcegd3.push(e.dataSource3[s]);e.jiazai3+=14}}}),200)}))},latiao:function(){this.table1latiao(),this.table2latiao(),this.table3latiao()},showModal:function(e){this.visible=!0,this.shyj="",this.smid=e},handleOk:function(e){this.$emit("handleNoPassForm",this.smid+","+this.shyj),this.visible=!1}},watch:{dataSource2:function(){var e=this.dataSource2;if(this.dataSourcegd2=[],e.length>=15)for(var t=0;t<15;t++)this.dataSourcegd2.push(e[t]);else for(var n=0;n<e.length;n++)this.dataSourcegd2.push(e[n]);this.jiazai2=15},dataSource3:function(){var e=this.dataSource3;if(this.dataSourcegd3=[],e.length>=15)for(var t=0;t<15;t++)this.dataSourcegd3.push(e[t]);else for(var n=0;n<e.length;n++)this.dataSourcegd3.push(e[n]);this.jiazai3=15}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},8123:function(e,t,n){"use strict";n("cf84")},"812f":function(e,t,n){e.exports=a;var r=n("270d"),i=n("2ef0"),o=n("9eab");function a(e,t){r.call(this,e,t),this.color=!i.has(t,"color")||!!t.color}o.inherits(a,r),a.prototype.setupListeners=function(e){r.prototype.setupListeners.call(this,e)},a.prototype.write=function(e,t,n){console[n]&&console[n](this.format(e,t))},a.prototype.onError=o.handler((function(e){var t=console.error?"error":"log";this.write("Error"===e.name?"ERROR":e.name,e.stack||e.message,t)})),a.prototype.onWarning=o.handler((function(e){this.write("WARNING",e,console.warn?"warn":"log")})),a.prototype.onInfo=o.handler((function(e){this.write("INFO",e,console.info?"info":"log")})),a.prototype.onDebug=o.handler((function(e){this.write("DEBUG",e,console.debug?"debug":"log")})),a.prototype.onTrace=o.handler((function(e){this.write("TRACE",this._formatTraceMessage(e),"log")}))},8144:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["itemText",e.validatorRules.itemText],expression:"['itemText', validatorRules.itemText]"}],attrs:{placeholder:"请输入名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"数据值"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["itemValue",e.validatorRules.itemValue],expression:"['itemValue', validatorRules.itemValue]"}],attrs:{placeholder:"请输入数据值"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"描述"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["description"],expression:"['description']"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序值"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sortOrder",{initialValue:1}],expression:"['sortOrder',{'initialValue':1}]"}],attrs:{min:1}}),e._v("\n        值越小越靠前,支持小数\n      ")],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"是否启用",hasFeedback:""}},[n("a-switch",{attrs:{checkedChildren:"启用",unCheckedChildren:"禁用"},on:{change:e.onChose},model:{value:e.visibleCheck,callback:function(t){e.visibleCheck=t},expression:"visibleCheck"}})],1)],1)],1)],1)},i=[],o=n("88bc"),a=n.n(o),s=n("4ec3"),l={name:"DictItemModal",data:function(){return{title:"操作",visible:!1,visibleCheck:!0,model:{},dictId:"",status:1,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{itemText:{rules:[{required:!0,message:"请输入名称!"}]},itemValue:{rules:[{required:!0,message:"请输入数据值!"}]}}}},created:function(){},methods:{add:function(e){this.dictId=e,this.edit({})},edit:function(e){var t=this;e.id&&(this.dictId=e.dictId,this.visibleCheck=1==e.status),this.form.resetFields(),this.model=Object.assign({},e),this.model.dictId=this.dictId,this.model.status=this.status,this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(a()(t.model,"itemText","itemValue","description","sortOrder"))}))},onChose:function(e){e?(this.status=1,this.visibleCheck=!0):(this.status=0,this.visibleCheck=!1)},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0,r.itemText=(r.itemText||"").trim(),r.itemValue=(r.itemValue||"").trim(),r.description=(r.description||"").trim();var i,o=Object.assign(e.model,r);o.status=e.status,i=e.model.id?Object(s["n"])(o):Object(s["b"])(o),i.then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},close:function(){this.$emit("close"),this.visible=!1}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},"815a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-row",{attrs:{gutter:10}},[n("a-col",{attrs:{md:6,sm:12}},[n("a-card",{attrs:{bordered:!1}},[n("div",{staticStyle:{backpground:"#fff","padding-left":"16px",height:"100%","margin-top":"5px"}},[n("a-col",{attrs:{md:10,sm:24}},[[n("a-dropdown",{attrs:{trigger:[this.dropTrigger]}},[n("span",{staticStyle:{"user-select":"none"}},[n("a-tree",{attrs:{checkable:"",selectedKeys:e.selectedKeys,treeData:e.treeData},on:{select:e.onSelect}})],1)])]],2)],1)])],1),n("a-col",{attrs:{md:18,sm:36}},[n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),n("div",[n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])]),n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1)],1)],1)}}])})],1),n("dutyArrangeCustomized-modal",{ref:"modalForm",on:{ok:function(t){return e.loadData(1)}}})],1)],1)],1)},i=[],o=(n("88bc"),n("4ec3")),a=n("0fea"),s=n("b65a"),l=n("9bde"),c={name:"DepartList",mixins:[s["a"]],components:{DutyArrangeCustomizedModal:l["default"]},data:function(){return{loading:!1,disable:!0,treeData:[],selectedKeys:[],visible:!1,hiding:!0,model:{},dropTrigger:"",currSelected:{},form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},description:"值班排班定制管理页面",columns:[{title:"",dataIndex:"",key:"rowIndex",width:"10%",align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"名称",align:"center",dataIndex:"name",width:"30%"},{title:"区县码",align:"center",dataIndex:"districtCode",width:"30%"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/dutyArrangeCustomized/dutyArrangeCustomized/list",delete:"/dutyArrangeCustomized/dutyArrangeCustomized/delete",deleteBatch:"/dutyArrangeCustomized/dutyArrangeCustomized/deleteBatch",exportXlsUrl:"dutyArrangeCustomized/dutyArrangeCustomized/exportXls",importExcelUrl:"dutyArrangeCustomized/dutyArrangeCustomized/importExcel"},ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},district:"",districtCode:""}},methods:{loadTree:function(){var e=this;Object(o["t"])().then((function(t){e.treeData=t}))},onSelect:function(e,t){var n=t.node.dataRef;this.selectedKeys=[n.key],this.district=n.title,this.districtCode=n.key,this.loadData(1)},loadData:function(e){var t=this;if(null!=this.districtCode&&""!=this.districtCode)if(this.url.list){1===e&&(this.ipagination.current=1);var n={districtCode:this.districtCode};this.loading=!0,Object(a["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},handleAdd:function(){this.$refs.modalForm.title="新增"+this.getCurFormTitle(),this.$refs.modalForm.district=this.district,this.$refs.modalForm.districtCode=this.districtCode,this.$refs.modalForm.disableSubmit=!1,this.$refs.modalForm.add()}},computed:{importExcelUrl:function(){return"/".concat(this.url.importExcelUrl)}},mounted:function(){this.loadTree()}},u=c,d=(n("be91"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"3b229ff6",null);t["default"]=f.exports},"815e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleCancel,cancel:e.handleCancel}},[n("iframe",{staticStyle:{width:"100%",height:"25rem"},attrs:{src:e.videoSrc}})])},i=[],o={name:"VideoPlay",components:{},data:function(){return{title:"视频播放",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),videoSrc:"",videoShow:!0}},created:function(){},methods:{play:function(e){this.visible=!0,null!=e&&""!=e?(this.videoShow=!0,this.videoSrc=e):this.videoShow=!1,console.log(this.videoSrc)},handleCancel:function(){this.videoSrc="",this.close()},close:function(){this.$emit("close"),this.videoShow=!0,this.visible=!1}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"3e8e1526",null);t["default"]=l.exports},8191:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{padding:"0 0 32px 32px"}},[n("h4",{style:{marginBottom:"20px"}},[e._v(e._s(e.title))]),n("v-chart",{attrs:{forceFit:!0,height:e.height,data:e.data}},[n("v-tooltip"),n("v-axis"),n("v-legend"),n("v-bar",{attrs:{position:"x*y",color:"type",adjust:e.adjust}})],1)],1)},i=[],o=(n("a481"),n("c5f6"),n("7104")),a={name:"BarMultid",props:{title:{type:String,default:""},dataSource:{type:Array,default:function(){return[{type:"Jeecg","Jan.":18.9,"Feb.":28.8,"Mar.":39.3,"Apr.":81.4,May:47,"Jun.":20.3,"Jul.":24,"Aug.":35.6},{type:"Jeebt","Jan.":12.4,"Feb.":23.2,"Mar.":34.5,"Apr.":99.7,May:52.6,"Jun.":35.5,"Jul.":37.4,"Aug.":42.4}]}},fields:{type:Array,default:function(){return["Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug."]}},height:{type:Number,default:254}},data:function(){return{adjust:[{type:"dodge",marginRatio:1/32}]}},computed:{data:function(){var e=(new o["DataSet"].View).source(this.dataSource);return e.transform({type:"fold",fields:this.fields,key:"x",value:"y"}),e.rows.map((function(e){return e.x=e.x.replace(/[-/]/g,"_"),e}))}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"54886e68",null);t["default"]=c.exports},"81d1":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"head-info",class:e.center&&"center"},[n("span",[e._v(e._s(e.title))]),n("p",[e._v(e._s(e.content))]),e.bordered?n("em"):e._e()])},i=[],o={name:"HeadInfo",props:{title:{type:String,default:""},content:{type:String,default:""},bordered:{type:Boolean,default:!1},center:{type:Boolean,default:!0}}},a=o,s=(n("8519"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"4d866d96",null);t["default"]=l.exports},"824b":function(e,t,n){"use strict";n("2148")},8264:function(e,t,n){},"826f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1400,visible:e.visible,maskClosable:!1,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("div",{staticClass:"wrapper"},[n("div",{staticClass:"lf-box"},[n("div",{staticClass:"type-box"},[e._v("\n        类型:\n        "),e._l(e.typeArr,(function(t,r){return n("span",{key:"type"+r,class:{active:r===e.typeIndex-0},on:{click:function(t){return e.changeType(r)}}},[t.url?n("img",{attrs:{src:t.url,alt:""}}):e._e()])}))],2),n("div",{staticClass:"img-wrapper"},[n("div",{staticClass:"position-box"},[n("div",{staticClass:"img-box",on:{click:function(t){return t.stopPropagation(),e.addPoint(t)}}},[e.list.floorIcon?n("img",{staticClass:"img",attrs:{src:e.list.floorIcon,alt:""}}):e._e(),e._l(e.typeArr,(function(t,r){return e.list.data?[e._l(e.list.data[t.id],(function(i,o){return[n("div",{staticClass:"point",style:{left:i.x+"px",top:i.y+"px"},on:{click:function(t){return t.stopPropagation(),e.changePoint(r,o)}}},[n("a-tooltip",{attrs:{placement:"top"}},[i.text.length>0?n("template",{slot:"title"},[n("span",[e._v(e._s(i.text))])]):e._e(),n("img",{staticClass:"img",style:{width:i.imgSize+"px"},attrs:{src:t.url,alt:""}})],2)],1)]}))]:e._e()}))],2)])])]),n("div",{staticClass:"rt-box"},[e.list.data?n("div",{staticClass:"form-box"},[e._l(e.typeArr,(function(t,r){return[n("a-collapse",{directives:[{name:"show",rawName:"v-show",value:e.list.data[t.id].length>0,expression:"list.data[item1.id].length>0"}],key:"collapse1-"+r,staticClass:"oneCollapse",attrs:{accordion:""},on:{change:function(t){return e.changeOneIndex(r)}},model:{value:e.typeOneIndex,callback:function(t){e.typeOneIndex=t},expression:"typeOneIndex"}},[n("img",{staticClass:"oneCollapseIcon",attrs:{src:t.url,alt:""}}),n("a-collapse-panel",{key:"one"+r,attrs:{header:t.file_name.replace(".png","")}},e._l(e.list.data[t.id],(function(i,o){return n("a-collapse",{key:"collapse2-"+o,attrs:{accordion:""},model:{value:e.typeTwoIndex,callback:function(t){e.typeTwoIndex=t},expression:"typeTwoIndex"}},[n("a-collapse-panel",{key:r+"-"+o,attrs:{header:i.text||t.file_name.replace(".png","")+(o+1)}},[n("div",{staticClass:"item w50"},[n("span",[e._v("X:")]),n("a-input-number",{model:{value:i.x,callback:function(t){e.$set(i,"x",t)},expression:"item2.x"}})],1),n("div",{staticClass:"item w50"},[n("span",[e._v("Y:")]),n("a-input-number",{model:{value:i.y,callback:function(t){e.$set(i,"y",t)},expression:"item2.y"}})],1),n("div",{staticClass:"item w100"},[n("span",[e._v("图片大小:")]),n("a-input-number",{model:{value:i.imgSize,callback:function(t){e.$set(i,"imgSize",t)},expression:"item2.imgSize"}})],1),n("div",{staticClass:"item w100"},[n("span",[e._v("文字大小:")]),n("a-input-number",{model:{value:i.textSize,callback:function(t){e.$set(i,"textSize",t)},expression:"item2.textSize"}})],1),n("div",{staticClass:"item w100"},[n("span",[e._v("文字内容:")]),n("a-input",{model:{value:i.text,callback:function(t){e.$set(i,"text",t)},expression:"item2.text"}})],1),n("div",{staticClass:"item w100"},[n("span",[e._v("文字颜色:")]),n("a-input",{model:{value:i.color,callback:function(t){e.$set(i,"color",t)},expression:"item2.color"}})],1)])],1)})),1)],1)]}))],2):e._e()])])])},i=[],o=(n("ac6a"),n("0fea")),a={name:"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",data:function(){return{baseData:{},title:"",visible:!1,confirmLoading:!1,list:{},typeIndex:"-1",typeOneIndex:"",typeTwoIndex:"",typeArr:[]}},mounted:function(){},methods:{initData:function(){var e=this;0===this.typeArr.length?Object(o["d"])("/sys/indexIcon/getIconWarehouse/index_icon_enterprise",{}).then((function(t){t.success&&(e.typeArr=t.result,e.setList())})):this.setList()},setList:function(){var e=JSON.parse(JSON.stringify(this.baseData));if(e.data)try{e.data=JSON.parse(e.data)}catch(t){e.data={}}else e.data={};this.typeArr.forEach((function(t){e.data[t.id]||(e.data[t.id]=[])})),this.list=e},addPoint:function(e){if(!(void 0===this.typeIndex||this.typeIndex-0<0)){var t=e.offsetX,n=e.offsetY,r=this.list.data[this.typeArr[this.typeIndex-0].id];r.push({x:t,y:n,imgSize:32,textSize:16,text:"",color:"#000"}),this.typeTwoIndex=this.typeIndex+"-"+(r.length-1)}},changePoint:function(e,t){this.typeTwoIndex=e+"-"+t,this.typeIndex=e+"",this.typeOneIndex="one"+e},changeType:function(e){this.typeIndex-0===e?(this.typeIndex="-1",this.typeOneIndex=""):(this.typeIndex=e+"",this.typeOneIndex="one"+e)},changeOneIndex:function(e){this.typeOneIndex?this.typeIndex=e+"":this.typeIndex="-1"},show:function(e){this.baseData=e,this.title="平面图--"+this.baseData.floorName,this.initData(),this.visible=!0},handleOk:function(){var e=this;Object(o["j"])("/yuanqu/enterprise/addPingMian",{id:this.baseData.id,data:JSON.stringify(this.list.data)}).then((function(t){e.$parent.$parent.getTwoData({id:e.baseData.enterpriseId}),e.handleCancel()}))},handleCancel:function(){this.visible=!1,this.list={},this.typeIndex="-1",this.typeOneIndex="",this.typeTwoIndex=""}}},s=a,l=(n("a027"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"08a2dc42",null);t["default"]=c.exports},8295:function(e,t,n){"use strict";var r=n("83a6"),i=n("29f6"),o=n("345d"),a="#333",s=function(){function e(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Object(o["c"])(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new r["a"]({color:a}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:i["a"].POINT,this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}return e.prototype.clone=function(){var t=this.getScale();return new e({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})},e.prototype.getOverflow=function(){return this.overflow_},e.prototype.getFont=function(){return this.font_},e.prototype.getMaxAngle=function(){return this.maxAngle_},e.prototype.getPlacement=function(){return this.placement_},e.prototype.getOffsetX=function(){return this.offsetX_},e.prototype.getOffsetY=function(){return this.offsetY_},e.prototype.getFill=function(){return this.fill_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.getText=function(){return this.text_},e.prototype.getTextAlign=function(){return this.textAlign_},e.prototype.getTextBaseline=function(){return this.textBaseline_},e.prototype.getBackgroundFill=function(){return this.backgroundFill_},e.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},e.prototype.getPadding=function(){return this.padding_},e.prototype.setOverflow=function(e){this.overflow_=e},e.prototype.setFont=function(e){this.font_=e},e.prototype.setMaxAngle=function(e){this.maxAngle_=e},e.prototype.setOffsetX=function(e){this.offsetX_=e},e.prototype.setOffsetY=function(e){this.offsetY_=e},e.prototype.setPlacement=function(e){this.placement_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setFill=function(e){this.fill_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Object(o["c"])(void 0!==e?e:1)},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.setText=function(e){this.text_=e},e.prototype.setTextAlign=function(e){this.textAlign_=e},e.prototype.setTextBaseline=function(e){this.textBaseline_=e},e.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},e.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},e.prototype.setPadding=function(e){this.padding_=e},e}();t["a"]=s},"82b0":function(e,t,n){"use strict";t["a"]={FRACTION:"fraction",PIXELS:"pixels"}},"82ef":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-form",{staticStyle:{"max-width":"500px",margin:"40px auto 0"}},[n("a-form-item",{attrs:{label:"付款账户",labelCol:{span:5},wrapperCol:{span:19}}},[n("a-select",{attrs:{value:"1",placeholder:"ant-design@alipay.com"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("ant-design@alipay.com")])],1)],1),n("a-form-item",{attrs:{label:"收款账户",labelCol:{span:5},wrapperCol:{span:19}}},[n("a-input-group",{staticStyle:{display:"inline-block","vertical-align":"middle"},attrs:{compact:!0}},[n("a-select",{staticStyle:{width:"100px"},attrs:{defaultValue:"alipay"}},[n("a-select-option",{attrs:{value:"alipay"}},[e._v("支付宝")]),n("a-select-option",{attrs:{value:"wexinpay"}},[e._v("微信")])],1),n("a-input",{style:{width:"calc(100% - 100px)"},attrs:{value:"test@example.com"}})],1)],1),n("a-form-item",{attrs:{label:"收款人姓名",labelCol:{span:5},wrapperCol:{span:19}}},[n("a-input",{attrs:{value:"Alex"}})],1),n("a-form-item",{attrs:{label:"转账金额",labelCol:{span:5},wrapperCol:{span:19}}},[n("a-input",{attrs:{prefix:"¥",value:"5000"}})],1),n("a-form-item",{attrs:{wrapperCol:{span:19,offset:5}}},[n("a-button",{attrs:{type:"primary"},on:{click:e.nextStep}},[e._v("下一步")])],1)],1)],1)},i=[],o={name:"Step1",methods:{nextStep:function(){this.$emit("nextStep")}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"1745cd50",null);t["default"]=l.exports},8304:function(e,t,n){},"831f":function(e,t,n){},8332:function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessContext=r({params:{context:{type:"string"}},url:{fmt:"/_scripts/painless/_context"}}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},8333:function(e,t,n){var r,i,o,a,s,l,c,u,d=n("2ace"),f=n("7caa").f,h=n("5d37").set,p=n("1a02"),m=n("fe96"),g=n("2062"),v=d.MutationObserver||d.WebKitMutationObserver,y=d.document,b=d.process,_=d.Promise,w=f(d,"queueMicrotask"),x=w&&w.value;x||(r=function(){var e,t;g&&(e=b.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():o=void 0,n}}o=void 0,e&&e.enter()},p||g||m||!v||!y?_&&_.resolve?(c=_.resolve(void 0),u=c.then,a=function(){u.call(c,r)}):a=g?function(){b.nextTick(r)}:function(){h.call(d,r)}:(s=!0,l=y.createTextNode(""),new v(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},8343:function(e,t,n){"use strict";n("120b")},"835b":function(e,t,n){"use strict";var r=n("1300"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t){var n=this,i="latest"===r["a"]?r["a"]:"v"+r["a"].split("-")[0],o="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.";return n=e.call(this,o)||this,n.code=t,n.name="AssertionError",n.message=o,n}return i(t,e),t}(Error);t["a"]=o},"836a":function(e,t,n){},"83a6":function(e,t,n){"use strict";var r=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})},e.prototype.getColor=function(){return this.color_},e.prototype.setColor=function(e){this.color_=e},e}();t["a"]=r},"83cf":function(e,t,n){var r=n("6bd0"),i=n("6daf"),o=n("d75c"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),a))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},"83d8":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("3726").indexOf,o=n("4042"),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,l=o("indexOf");r({target:"Array",proto:!0,forced:s||!l},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},8428:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单号"}},[n("a-input",{attrs:{placeholder:"请输入订单号"},model:{value:e.queryParam.orderCode,callback:function(t){e.$set(e.queryParam,"orderCode",t)},expression:"queryParam.orderCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单类型"}},[n("a-select",{attrs:{placeholder:"请输入订单类型"},model:{value:e.queryParam.ctype,callback:function(t){e.$set(e.queryParam,"ctype",t)},expression:"queryParam.ctype"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),n("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:!1,expandedRowKeys:e.expandedRowKeys,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange,expand:e.handleExpand},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}},{key:"expandedRowRender",fn:function(t){return n("a-table",{attrs:{columns:e.innerColumns,dataSource:e.innerData,size:"middle",bordered:"",rowKey:"id",pagination:!1,loading:e.loading}})}}])})],1),n("jeecgOrderDMain-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("0fea"),a=n("dd9d"),s=n("b65a"),l={name:"TableDemo",mixins:[s["a"]],components:{JeecgOrderDMainModal:a["default"]},data:function(){return{innerColumns:[{title:"客户名",align:"center",width:100,dataIndex:"name",key:"name"},{title:"性别",align:"center",dataIndex:"sex",customRender:function(e){return 1==e?"男":2==e?"女":e}},{title:"身份证号码",align:"center",dataIndex:"idcard"},{title:"电话",dataIndex:"telphone",align:"center"}],innerData:[],expandedRowKeys:[],id:" ",description:"列表展开子表Demo",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"订单号",align:"center",dataIndex:"orderCode"},{title:"订单类型",align:"center",dataIndex:"ctype",customRender:function(e){var t="";return"1"===e?t="国内订单":"2"===e&&(t="国际订单"),t}},{title:"订单日期",align:"center",dataIndex:"orderDate"},{title:"订单金额",align:"center",dataIndex:"orderMoney"},{title:"订单备注",align:"center",dataIndex:"content"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],type:"radio",url:{list:"/test/order/orderList",delete:"/test/order/delete",deleteBatch:"/test/order/deleteBatch",customerListByMainId:"/test/order/listOrderCustomerByMainId"}}},computed:{currentId:function(){return this.id}},methods:{handleExpand:function(e,t){var n=this;this.expandedRowKeys=[],this.innerData=[],!0===e&&(this.loading=!0,this.expandedRowKeys.push(t.id),Object(o["d"])(this.url.customerListByMainId,{mainId:t.id}).then((function(e){e.success&&(n.loading=!1,n.innerData=e.result)})))}}},c=l,u=(n("b334"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"159dd516",null);t["default"]=d.exports},"84a1":function(e,t,n){"use strict";n.r(t);var r,i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-select",{staticStyle:{width:"200px"},attrs:{showSearch:"",value:e.value,placeholder:"请输入地点",defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null},on:{search:e.handleSearch,change:e.handleChange}},e._l(e.data,(function(t){return n("a-select-option",{key:t.value},[e._v(e._s(t.text))])})),1)},o=[],a=(n("7f7f"),n("28a5"),n("0fea"));function s(e,t){function n(){Object(a["d"])("/myInputSearchComponentQuery/LikeQueryTiandituController/querylongitudeAndLatitude",{name:e}).then((function(e){var n=e.data.response;n=JSON.parse(n);for(var r=[],i=n.pois,o=0;o<i.length;o++){var a=i[o].lonlat,s=a.split(" ");r.push({value:s[0]+","+s[1],text:i[o].name+"  "+i[o].address})}t(r),console.log("response",n)}))}r&&(clearTimeout(r),r=null),e,r=setTimeout(n,300)}var l={data:function(){return{data:[],value:void 0}},methods:{handleSearch:function(e){var t=this;s(e,(function(e){return t.data=e}))},handleChange:function(e){var t=this;console.log(e),this.$emit("chooseAddress",e),this.value=e,s(e,(function(e){return t.data=e}))}}},c=l,u=n("2877"),d=Object(u["a"])(c,i,o,!1,null,null,null);t["default"]=d.exports},"84a6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"left"},[n("div",{staticClass:"content"},[n("div",{staticClass:"wrapper flex"},[n("div",{staticClass:"flex-1 today"},[n("div",{staticClass:"box flex flex-y"},[n("div",[e._v("\n              区县:\n              "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},on:{change:e.change},model:{value:e.district,callback:function(t){e.district=t},expression:"district"}},e._l(e.districtList,(function(t,r){return n("a-select-option",{attrs:{value:t.code}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"title"},[e._v("左模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_1_model,callback:function(t){e.left_1_model=t},expression:"left_1_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_1_input,callback:function(t){e.left_1_input=t},expression:"left_1_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_2_model,callback:function(t){e.left_2_model=t},expression:"left_2_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_2_input,callback:function(t){e.left_2_input=t},expression:"left_2_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_3_model,callback:function(t){e.left_3_model=t},expression:"left_3_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_3_input,callback:function(t){e.left_3_input=t},expression:"left_3_input"}})],1)])])])])]),n("div",{staticClass:"flex-1 tomorrow"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("左隐藏模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_4_model,callback:function(t){e.left_4_model=t},expression:"left_4_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_4_input,callback:function(t){e.left_4_input=t},expression:"left_4_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_5_model,callback:function(t){e.left_5_model=t},expression:"left_5_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_5_input,callback:function(t){e.left_5_input=t},expression:"left_5_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.left_6_model,callback:function(t){e.left_6_model=t},expression:"left_6_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.left_6_input,callback:function(t){e.left_6_input=t},expression:"left_6_input"}})],1)])])])])])])])]),n("div",{staticClass:"center"},[n("Center")],1),n("div",{staticClass:"right"},[n("div",{staticClass:"content"},[n("div",{staticClass:"wrapper flex"},[n("div",{staticClass:"flex-1 today"},[n("div",{staticClass:"box flex flex-y"},[n("div",{staticClass:"title"},[e._v("右模块")]),n("div",{staticClass:"flex-1 relative"},[n("div",{staticClass:"content flex flex-y"},[n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_1_model,callback:function(t){e.right_1_model=t},expression:"right_1_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_1_input,callback:function(t){e.right_1_input=t},expression:"right_1_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_2_model,callback:function(t){e.right_2_model=t},expression:"right_2_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_2_input,callback:function(t){e.right_2_input=t},expression:"right_2_input"}})],1)]),n("div",{staticClass:"flex-1"},[n("div",[e._v("\n                    模块:\n                    "),n("a-select",{staticStyle:{width:"100%"},attrs:{defaultValue:""},model:{value:e.right_3_model,callback:function(t){e.right_3_model=t},expression:"right_3_model"}},e._l(e.menuList,(function(t,r){return n("a-select-option",{attrs:{value:t.vueUrl}},[e._v(e._s(t.name))])})),1)],1),n("div",{staticClass:"marginTop20"},[e._v("\n                    模块高度: "),n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入高度"},model:{value:e.right_3_input,callback:function(t){e.right_3_input=t},expression:"right_3_input"}})],1),n("div",{staticClass:"marginTop20",staticStyle:{float:"right"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleOk()}}},[e._v("确定")])],1)])])])])])])])])])},i=[],o=n("f949"),a=n("4ec3"),s=n("0fea"),l={name:"DutyHomePage",components:{Center:o["default"]},data:function(){return{districtList:[],menuList:[],district:"",left_1_model:"",left_1_input:"",left_2_model:"",left_2_input:"",left_3_model:"",left_3_input:"",left_4_model:"",left_4_input:"",left_5_model:"",left_5_input:"",left_6_model:"",left_6_input:"",right_1_model:"",right_1_input:"",right_2_model:"",right_2_input:"",right_3_model:"",right_3_input:"",url:{add:"/menu_module/menuModule/addOrderJZJZ"}}},mounted:function(){this.initData()},methods:{change:function(e){var t=this,n={param:e};Object(s["d"])("/menu_module/menuModule/getOrderList2",n).then((function(e){var n=t;e.success&&(n.left_1_model=e.result[0].vueUrl,n.left_2_model=e.result[1].vueUrl,n.left_3_model=e.result[2].vueUrl,n.left_4_model=e.result[3].vueUrl,n.left_5_model=e.result[4].vueUrl,n.left_6_model=e.result[5].vueUrl,n.right_1_model=e.result[6].vueUrl,n.right_2_model=e.result[7].vueUrl,n.right_3_model=e.result[8].vueUrl,n.left_1_input=e.result[0].length,n.left_2_input=e.result[1].length,n.left_3_input=e.result[2].length,n.left_4_input=e.result[3].length,n.left_5_input=e.result[4].length,n.left_6_input=e.result[5].length,n.right_1_input=e.result[6].length,n.right_2_input=e.result[7].length,n.right_3_input=e.result[8].length)}))},initData:function(){var e=this;Object(a["s"])().then((function(t){t.success&&(e.districtList=t.result,e.district=e.districtList[0].code,Object(s["d"])("/menu_module/menuModule/getOrderList2",{param:e.district}).then((function(t){t.success&&(e.left_1_model=t.result[0].vueUrl,e.left_2_model=t.result[1].vueUrl,e.left_3_model=t.result[2].vueUrl,e.left_4_model=t.result[3].vueUrl,e.left_5_model=t.result[4].vueUrl,e.left_6_model=t.result[5].vueUrl,e.right_1_model=t.result[6].vueUrl,e.right_2_model=t.result[7].vueUrl,e.right_3_model=t.result[8].vueUrl,e.left_1_input=t.result[0].length,e.left_2_input=t.result[1].length,e.left_3_input=t.result[2].length,e.left_4_input=t.result[3].length,e.left_5_input=t.result[4].length,e.left_6_input=t.result[5].length,e.right_1_input=t.result[6].length,e.right_2_input=t.result[7].length,e.right_3_input=t.result[8].length)})))})),Object(a["z"])().then((function(t){t.success&&(e.menuList=t.result.records)}))},handleOk:function(){var e=this,t={};t.left_1_model=this.left_1_model,t.left_1_input=this.left_1_input,t.left_2_model=this.left_2_model,t.left_2_input=this.left_2_input,t.left_3_model=this.left_3_model,t.left_3_input=this.left_3_input,t.left_4_model=this.left_4_model,t.left_4_input=this.left_4_input,t.left_5_model=this.left_5_model,t.left_5_input=this.left_5_input,t.left_6_model=this.left_6_model,t.left_6_input=this.left_6_input,t.right_1_model=this.right_1_model,t.right_1_input=this.right_1_input,t.right_2_model=this.right_2_model,t.right_2_input=this.right_2_input,t.right_3_model=this.right_3_model,t.right_3_input=this.right_3_input,t.district=this.district,Object(s["j"])(this.url.add,t).then((function(t){t.success?(e.$message.success(t.message),e.$emit("ok"),e.close()):e.$message.warning(t.message)})).finally((function(){e.confirmLoading=!1}))}}},c=l,u=(n("78d3"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"4ea2cba8",null);t["default"]=d.exports},"84ec8":function(e,t,n){n("2401")},8500:function(e,t,n){"use strict";n("0977")},8519:function(e,t,n){"use strict";n("5ec9")},8544:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper",staticStyle:{height:"25px"}},[n("a-collapse",{model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-collapse-panel",{key:"1",attrs:{header:""}},[n("div",{staticStyle:{height:"782px","overflow-y":"scroll","background-color":"#fff"}},[n("div",{staticStyle:{"background-color":"#fff",padding:"4px 0px"}},[n("a-input-search",{attrs:{placeholder:"请输入菜单名称"},on:{search:e.getOptionByMess},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1),n("div",{staticStyle:{"background-color":"#fff","margin-left":"0px"}},[n("div",{staticStyle:{float:"left",width:"50%"}},[n("a-button",{directives:[{name:"has",rawName:"v-has",value:"user:tree",expression:"'user:tree'"}],class:e.classificationClass,on:{click:function(t){return e.getOption()}}},[e._v("\n          按分类\n        ")])],1),n("div",{staticStyle:{float:"left",width:"50%"}},[n("a-button",{directives:[{name:"has",rawName:"v-has",value:"user:tree",expression:"'user:tree'"}],class:e.departClass,on:{click:function(t){return e.getOptionByDept()}}},[e._v("\n          按部门\n        ")])],1)]),n("a-tree",{staticClass:"tree",staticStyle:{display:"inline-block",width:"222px","background-color":"#fff","margin-right":"10px","margin-left":"0px"},attrs:{expandedKeys:e.expandedKeys,treeData:e.treeData},on:{expand:e.onExpand,select:e.onSelect},scopedSlots:e._u([{key:"custom",fn:function(t){return[t.is_expire?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.title))]):n("span",[e._v(e._s(t.title))]),t.is_expire?n("a-button",{on:{click:function(n){return n.stopPropagation(),e.updateExpireTime(t)}}},[e._v("更新")]):e._e()]}}])})],1)])],1),n("div",{staticStyle:{width:"100%"}},[n(e.currentTabComponent,{tag:"component",staticClass:"componentMain"})],1)],1)},i=[],o=(n("a481"),n("0fea")),a=[],s={data:function(){return{expandedKeys:[],autoExpandParent:!0,checkedKeys:["0-0-0"],selectedKeys:[],treeData:a,url:{getByDept:"/sys/category/getTreeByDept",get:"/aqs/tree"},currentTabComponent:{},componentName:"",message:"",isDepartment:!1,classificationClass:"btn_choose_class",departClass:"btn_nochoose_class",activeKey:["1"]}},beforeMount:function(){this.getOption()},watch:{checkedKeys:function(e){console.log("onCheck",e)}},methods:{getListWithDLR:function(e){var t=JSON.parse(JSON.stringify(e));function n(e){if(e&&(e.scopedSlots={title:"custom"},e.children)){for(var t in e.children)n(e.children[t]);n(e.children)}}for(var r in t)n(t[r]);return t},updateExpireTime:function(e){Object(o["d"])("/sys/categoryExpireUpdate/add",{categoryId:e.key}).then((function(t){t.success&&(e.is_expire=!1,e.title=e.title.replace("(已过期)",""))}))},getOptionByMess:function(){this.isDepartment?this.getOptionByDept():this.getOption()},initFirst:function(e){for(var t=0;t<e.length;t++)if(null!=e[t].slots.title&&""!=e[t].slots.title){var n={};return n.url=e[t].slots.title,n.title=e[t].title,n}return this.initFirst(e[0].children)},getOptionByDept:function(){var e=this;this.classificationClass="btn_nochoose_class",this.departClass="btn_choose_class";var t={param:"89a6ffecbfb10ead346d709dbf65e96b",mess:this.message};this.isDepartment=!0,Object(o["d"])(this.url.getByDept,t).then((function(t){if(0!=t.data.length){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);Object.assign(e.$data,t.data),e.treeData=e.getListWithDLR(t.data);var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))},e.componentName=i.title}else e.$message.warning("未检索到该菜单")}))},getOption:function(){var e=this;this.classificationClass="btn_choose_class",this.departClass="btn_nochoose_class";var t={param:"216e4414b5d3a4208dae2aa44a787483",mess:this.message};this.isDepartment=!1,Object(o["d"])(this.url.get,t).then((function(t){if(console.log(JSON.stringify(t)),0!=t.data.length){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);e.treeData=e.getListWithDLR(t.data);var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))},e.componentName=i.title}else e.$message.warning("未检索到该菜单")}))},onExpand:function(e){console.log("onExpand",e),this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){console.log("onCheck",e),this.checkedKeys=e},onSelect:function(e,t){console.log(t.selectedNodes[0].data.props.dataRef.key);var r=t.selectedNodes[0].data.props.dataRef.key;"undefined"!=typeof r?(this.$store.commit("setXwyTemlpateCategoryid",r),this.selectedKeys=e,this.componentName=t.selectedNodes[0].data.props.title,this.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ba5a"))}):this.$store.commit("setXwyTemlpateCategoryid","")}}},l=s,c=(n("0acb"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"854b":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),e._m(0),n("div",{staticClass:"mapQuart",attrs:{id:"map_line"}})],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mode_line_p"},[n("select",{staticClass:"mode_line",attrs:{id:"modeLine"}},[n("option",{attrs:{value:"modify"}},[e._v("选中一个形状并修改")]),n("option",{attrs:{value:"draw"}},[e._v("绘制一个新的形状")]),n("option",{attrs:{value:"clear"}},[e._v("清空")])])])}],o=(n("6b54"),n("c5f6"),n("28a5"),n("5bc0"),n("a2c7")),a=n("5eee"),s=n("2ce2"),l=n("c807"),c=n("ac29"),u=n("b2fc"),d=n("480c"),f=n("3e6b"),h=n("58315"),p=n("d0e9"),m=n("2ef1"),g=n("256f"),v=n("4cdf"),y=n("7a09"),b=n("6c77"),_=n("ce2c"),w=n("83a6"),x=n("8682"),S=n("84a1"),C={name:"mapChooseQuart",components:{aSelect:S["default"]},data:function(){return{mode_line:{},source_line:new h["a"],snap_line:{},draw_line:{},select_line:new s["a"],modify_line:{},tileLayer_line:new d["a"]({source:new p["a"]}),vectorLayer_line:{},view_line:{},map_line:{},_this_line:{},center_line:[120.6790539441963,27.9979803194757],draw_type:"LineString"}},created:function(){console.log("beforeDestroy")},beforeUpdate:function(){console.log("beforeUpdate")},beforeMount:function(){console.log("beforeMount")},mounted:function(){console.log("mounted"),this.init_line()},activated:function(){console.log("activated")},beforeRouteUpdate:function(){console.log("beforeRouteUpdate")},beforeRouteLeave:function(){console.log("beforeRouteLeave")},watch:{model:{handler:function(e,t){this.vectorLayer_line.getSource().clear();var n=this.center_line;void 0!=e[this.lineKey]&&(n=this.checkModel_line()),this.map_line.getView().setCenter([n[0],n[1]])},deep:!0}},methods:{chooseAddress:function(e){var t=e.split(",");this.map_line.getView().zoom=16,this.map_line.getView().animate({center:[t[0],t[1]]})},init_line:function(){Object(g["o"])(),this.initVarible_line(),this.checkModel_line(),this.initMap_line(),this.mode_line.addEventListener("change",this.onChange_line),this.onChange_line(),this.initEvent_line()},initVarible_line:function(){this.mode_line=document.getElementById("modeLine"),this.view_line=new o["a"]({center:this.center_line,zoom:12}),this.vectorLayer_line=new f["a"]({source:this.source_line}),this.modify_line=new l["a"]({features:this.select_line.getFeatures()}),this.draw_line=new c["a"]({type:this.draw_type,source:this.source_line}),this.snap_line=new u["a"]({source:this.source_line})},checkModel_line:function(){var e=this.model[this.lineKey];if(null!=e&&void 0!=e&&""!=e){console.log("checkModel");for(var t=e.split(","),n=[],r=0;r<t.length;r+=2){t[r]=Number(t[r]),t[r+1]=Number(t[r+1]);var i=[t[r],t[r+1]];n.push(i)}for(var a=new Array,s=0;s<n.length;s++){var l=[n[s][0],n[s][1]];a.push(l)}this.draw_line.style=new b["c"]({image:new _["a"]({fill:new w["a"]({color:"#F00"}),radius:5}),stroke:new x["a"]({color:"#0F0",lineCap:"round",width:5}),fill:new w["a"]({color:"#fff",width:10})});var c=new y["a"](a),u=new v["a"]({geometry:c});return this.vectorLayer_line.getSource().addFeature(u),this.view_line=new o["a"]({center:[t[0],t[1]],zoom:12,projection:"EPSG:4326"}),t}return this.center_line},initMap_line:function(){var e=new d["a"]({source:new m["a"]({url:"http://t3.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=394404c8b901574fdc4cdf8c18a98448"})}),t=new d["a"]({source:new m["a"]({url:"http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=394404c8b901574fdc4cdf8c18a98448"})});this.map_line=new a["a"]({target:"map_line",layers:[e,t,this.vectorLayer_line],view:this.view_line})},initEvent_line:function(){var e=this;this.draw_line.on("drawend",(function(t){var n=t.feature.getGeometry();setTimeout((function(){for(var t=n.getExtent(),r=e.vectorLayer_line.getSource().getFeaturesInExtent(t),i=0;i<r.length;i++){var o=r[i].getGeometry().getCoordinates();e.$emit("lineChanged",o.toString())}}),300)})),this.map_line.on("singleclick",(function(t){var n=e.map_line.getEventPixel(t.originalEvent),r=e.map_line.forEachFeatureAtPixel(n,(function(e,t){return{feature:e,layer:t}}));if(void 0!==r&&null!==r&&null!==r.layer)for(var i=r.feature.getGeometry(),o=i.getExtent(),a=e.vectorLayer_line.getSource().getFeaturesInExtent(o),s=0;s<a.length;s++){var l=a[s].getGeometry().getCoordinates();e.$emit("lineChanged",l.toString())}}))},onChange_line:function(){switch(this.removeInteractions_line(),this.mode_line.value){case"draw":this.map_line.addInteraction(this.draw_line),this.map_line.addInteraction(this.snap_line);break;case"modify":this.map_line.addInteraction(this.select_line),this.map_line.addInteraction(this.modify_line),this.map_line.addInteraction(this.snap_line);break;case"clear":this.vectorLayer_line.getSource().clear();break;default:}},removeInteractions_line:function(){this.map_line.removeInteraction(this.modify_line),this.map_line.removeInteraction(this.select_line),this.map_line.removeInteraction(this.draw_line),this.map_line.removeInteraction(this.select_line)}},props:["model","lineKey"]},E=C,k=(n("47e7"),n("2877")),O=Object(k["a"])(E,r,i,!1,null,null,null);t["default"]=O.exports},8629:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-col",{attrs:{span:18}},[n("a-spin",{attrs:{tip:"Loading...",spinning:e.spinning}},[n("div",[n("a-row",[n("a-col",{attrs:{span:18}},[n("p",[n("a-divider",{attrs:{orientation:"left"}},[e._v("组一")])],1)]),n("a-col",{attrs:{span:6}}),n("a-col",{attrs:{span:12}},[e._l(e.dataSource[0].fileDetails,(function(t,r){return n("div",{key:r},[n("div",{staticStyle:{float:"left",width:"104px",height:"104px","margin-right":"10px",margin:"0 8px 8px 0"}},[n("div",{staticStyle:{width:"100%",height:"100%",position:"relative",padding:"8px",border:"1px solid #d9d9d9","border-radius":"4px"}},[n("img",{staticStyle:{width:"100%"},attrs:{src:t.imgUrl,preview:e.dataSource[0].key}})])])])}))],2)],1)],1),n("div",[n("a-row",[n("a-col",{attrs:{span:18}},[n("p",[n("a-divider",{attrs:{orientation:"left"}},[e._v("组二")])],1)]),n("a-col",{attrs:{span:6}}),n("a-col",{attrs:{span:12}},[e._l(e.dataSource[1].fileDetails,(function(t,r){return n("div",{key:r},[n("div",{staticStyle:{float:"left",width:"104px",height:"104px","margin-right":"10px",margin:"0 8px 8px 0"}},[n("div",{staticStyle:{width:"100%",height:"100%",position:"relative",padding:"8px",border:"1px solid #d9d9d9","border-radius":"4px"}},[n("img",{staticStyle:{width:"100%"},attrs:{src:t.imgUrl,preview:e.dataSource[1].key}})])])])}))],2)],1)],1)]),n("p")],1)],1)},i=[],o=n("290c"),a={name:"ImagPreview",components:{ARow:o["a"]},data:function(){return{description:"电子档补扫页面",spinning:!1,dataSource:[{key:0,fileDetails:[{imgUrl:"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2735633715,2749454924&fm=27&gp=0.jpg"},{imgUrl:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3967239004,1951414302&fm=27&gp=0.jpg"},{imgUrl:"https://ss0.bdstatic.com/6Ox1bjeh1BF3odCf/it/u=3660968530,985748925&fm=191&app=48&size=h300&n=0&g=4n&f=JPEG?sec=1853310920&t=5e64af964be378c6c2a3b0acc65dfe24"}]},{key:1,fileDetails:[{imgUrl:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=889120611,3801177793&fm=27&gp=0.jpg"},{imgUrl:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2445468140,2491956848&fm=27&gp=0.jpg"}]}],url:{}}},created:function(){},methods:{}},s=a,l=(n("489a"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"9f3b344a",null);t["default"]=c.exports},8682:function(e,t,n){"use strict";var r=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},e.prototype.getColor=function(){return this.color_},e.prototype.getLineCap=function(){return this.lineCap_},e.prototype.getLineDash=function(){return this.lineDash_},e.prototype.getLineDashOffset=function(){return this.lineDashOffset_},e.prototype.getLineJoin=function(){return this.lineJoin_},e.prototype.getMiterLimit=function(){return this.miterLimit_},e.prototype.getWidth=function(){return this.width_},e.prototype.setColor=function(e){this.color_=e},e.prototype.setLineCap=function(e){this.lineCap_=e},e.prototype.setLineDash=function(e){this.lineDash_=e},e.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e},e.prototype.setLineJoin=function(e){this.lineJoin_=e},e.prototype.setMiterLimit=function(e){this.miterLimit_=e},e.prototype.setWidth=function(e){this.width_=e},e}();t["a"]=r},"869f":function(e,t,n){"use strict";t["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},"869f9":function(e,t,n){},"86a6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"模板标题"}},[n("a-input",{attrs:{disabled:""},model:{value:e.templateName,callback:function(t){e.templateName=t},expression:"templateName"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"模板内容"}},[n("a-textarea",{attrs:{disabled:"",autosize:{minRows:5,maxRows:8}},model:{value:e.templateContent,callback:function(t){e.templateContent=t},expression:"templateContent"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"测试数据"}},[n("a-textarea",{attrs:{placeholder:"请输入json格式测试数据",autosize:{minRows:5,maxRows:8}},model:{value:e.testData,callback:function(t){e.testData=t},expression:"testData"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"消息类型"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择消息类型",dictCode:"msgType"},model:{value:e.msgType,callback:function(t){e.msgType=t},expression:"msgType"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"消息接收方"}},[n("a-input",{attrs:{placeholder:"请输入消息接收方"},model:{value:e.receiver,callback:function(t){e.receiver=t},expression:"receiver"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a={name:"SysMessageTestModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,url:{send:"/message/sysMessageTemplate/sendMsg"},templateName:"",templateContent:"",receiver:"",msgType:"",testData:"",sendParams:{}}},methods:{open:function(e){this.sendParams.templateCode=e.templateCode,this.templateName=e.templateName,this.templateContent=e.templateContent,this.testData=e.templateTestJson,this.visible=!0},close:function(){this.receiver="",this.msgType="",this.sendParams={},this.visible=!1},handleOk:function(){var e=this,t=this.url.send,n="post";this.sendParams.testData=this.testData,this.sendParams.receiver=this.receiver,this.sendParams.msgType=this.msgType,Object(o["i"])(t,this.sendParams,n).then((function(t){t.success?e.$message.success(t.message):e.$message.warning(t.message)})).finally((function(){e.confirmLoading=!1,e.close()}))},handleCancel:function(){this.close()}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"0a67d4a2",null);t["default"]=c.exports},"86a9":function(e,t,n){},8818:function(e,t,n){var r=n("5b1a");e.exports=function(e){var t=e["return"];if(void 0!==t)return r(t.call(e)).value}},8897:function(e,t,n){},"88bc":function(e,t,n){(function(t){var n=1/0,r=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",l="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")();function d(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function f(e,t){var n=-1,r=e?e.length:0,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function h(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}var p=Object.prototype,m=p.hasOwnProperty,g=p.toString,v=u.Symbol,y=p.propertyIsEnumerable,b=v?v.isConcatSpreadable:void 0,_=Math.max;function w(e,t,n,r,i){var o=-1,a=e.length;n||(n=E),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?w(s,t-1,n,r,i):h(i,s):r||(i[i.length]=s)}return i}function x(e,t){return e=Object(e),S(e,t,(function(t,n){return n in e}))}function S(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=e[a];n(s,a)&&(o[a]=s)}return o}function C(e,t){return t=_(void 0===t?e.length-1:t,0),function(){var n=arguments,r=-1,i=_(n.length-t,0),o=Array(i);while(++r<i)o[r]=n[t+r];r=-1;var a=Array(t+1);while(++r<t)a[r]=n[r];return a[t]=o,d(e,this,a)}}function E(e){return T(e)||O(e)||!!(b&&e&&e[b])}function k(e){if("string"==typeof e||L(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}function O(e){return A(e)&&m.call(e,"callee")&&(!y.call(e,"callee")||g.call(e)==i)}var T=Array.isArray;function I(e){return null!=e&&P(e.length)&&!R(e)}function A(e){return N(e)&&I(e)}function R(e){var t=M(e)?g.call(e):"";return t==o||t==a}function P(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function M(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function N(e){return!!e&&"object"==typeof e}function L(e){return"symbol"==typeof e||N(e)&&g.call(e)==s}var D=C((function(e,t){return null==e?{}:x(e,f(w(t,1),k))}));e.exports=D}).call(this,n("c8ba"))},8964:function(e,t,n){"use strict";var r=n("9c2cc"),i=n("b99f"),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},8983:function(e,t,n){"use strict";n("5ef1")},"899b":function(e,t,n){},"89b0":function(e,t,n){"use strict";n("7b8a")},"89b7":function(e,t,n){},"89ba":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"消息标题"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esTitle",{}],expression:"['esTitle', {}]"}],attrs:{placeholder:"请输入消息标题"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送内容"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esContent",{}],expression:"['esContent', {}]"}],attrs:{placeholder:"请输入发送内容"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送所需参数"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esParam",{}],expression:"['esParam', {}]"}],attrs:{placeholder:"请输入发送所需参数Json格式"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"接收人"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esReceiver",{}],expression:"['esReceiver', {}]"}],attrs:{placeholder:"请输入接收人"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送方式"}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["esType",{}],expression:"[ 'esType', {}]"}],attrs:{triggerChange:!0,dictCode:"msgType",placeholder:"请选择发送方式"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送时间"}},[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["esSendTime",{}],expression:"[ 'esSendTime', {}]"}],attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送状态"}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["esSendStatus",{}],expression:"[ 'esSendStatus', {}]"}],attrs:{triggerChange:!0,dictCode:"msgSendStatus",placeholder:"请选择发送状态"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送次数"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["esSendNum",{}],expression:"[ 'esSendNum', {}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"发送失败原因"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["esResult",{}],expression:"['esResult', {}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{}],expression:"['remark', {}]"}]})],1)],1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disableSubmit,expression:"!disableSubmit"}]},[n("a-button",{staticStyle:{"margin-right":".8rem"},on:{confirm:e.handleCancel}},[e._v("取消")]),n("a-button",{attrs:{type:"primary",loading:e.confirmLoading},on:{click:e.handleOk}},[e._v("提交")])],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("c1df"),c=n.n(l),u={name:"SysMessageModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},disableSubmit:!0,url:{add:"/message/sysMessage/add",edit:"/message/sysMessage/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"esContent","esParam","esReceiver","esResult","esSendNum","esSendStatus","esTitle","esType","remark")),t.form.setFieldsValue({esSendTime:t.model.esSendTime?c()(t.model.esSendTime):null})}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);s.esSendTime=s.esSendTime?s.esSendTime.format("YYYY-MM-DD HH:mm:ss"):null,console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"1b4235a7",null);t["default"]=h.exports},"89f2":function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));n("96cf"),n("28a5"),n("ac6a");var r=n("1da1"),i=n("4ec3");n("0fea");function o(e){return a.apply(this,arguments)}function a(){return a=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return","字典Code不能为空!");case 2:return e.next=4,Object(i["f"])(t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}function s(e,t){var n="";return e.forEach((function(e){t===e.value&&(n=e.text)})),n}function l(e,t){if(!t)return"";var n="",r=t.split(",");return e.forEach((function(e){for(var t=0;t<r.length;t++)if(r[t]===e.value){n+=e.text+",";break}})),""==n?"":n.substring(0,n.length-1)}},"89f5":function(e,t,n){"use strict";n("49a2")},"8a1b":function(e,t,n){},"8a45":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1200,visible:e.visible,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单号"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderCode",{rules:[{required:!0,message:"请输入订单号!"}]}],expression:"['orderCode', {rules: [{ required: true, message: '请输入订单号!' }]}]"}],attrs:{placeholder:"请输入订单号"}})],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["ctype",{}],expression:"['ctype',{}]"}],attrs:{placeholder:"请输入订单类型"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),n("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单日期"}},[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderDate",{}],expression:"[ 'orderDate',{}]"}],attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss"}})],1)],1)],1),n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单金额"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderMoney",{}],expression:"[ 'orderMoney', {}]"}],staticStyle:{width:"200px"}})],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{}],expression:"['content', {}]"}],attrs:{placeholder:"请输入订单备注"}})],1)],1)],1),n("a-tabs",{attrs:{defaultActiveKey:"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"客户信息"}},[n("div",[n("a-row",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",gutter:16}},[n("a-col",{attrs:{span:5}},[e._v("客户名")]),n("a-col",{attrs:{span:5}},[e._v("性别")]),n("a-col",{attrs:{span:5}},[e._v("身份证号码")]),n("a-col",{attrs:{span:5}},[e._v("手机号")]),n("a-col",{attrs:{span:4}},[e._v("操作")])],1),e._l(e.orderMainModel.jeecgOrderCustomerList,(function(t,r){return n("a-row",{key:r,staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",gutter:16}},[n("a-col",{attrs:{span:5}},[n("a-form-item",[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["jeecgOrderCustomerList["+r+"].name",{initialValue:t.name,rules:[{required:!0,message:"请输入用户名!"}]}],expression:"['jeecgOrderCustomerList['+index+'].name', {'initialValue':item.name,rules: [{ required: true, message: '请输入用户名!' }]}]"}],attrs:{placeholder:"客户名"}})],1)],1),n("a-col",{attrs:{span:5}},[n("a-form-item",[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["jeecgOrderCustomerList["+r+"].sex",{initialValue:t.sex}],expression:"['jeecgOrderCustomerList['+index+'].sex', {'initialValue':item.sex}]"}],attrs:{placeholder:"性别"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("男")]),n("a-select-option",{attrs:{value:"2"}},[e._v("女")])],1)],1)],1),n("a-col",{attrs:{span:5}},[n("a-form-item",[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["jeecgOrderCustomerList["+r+"].idcard",{initialValue:t.idcard,rules:[{pattern:"^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[012])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|[xX])$",message:"身份证号格式不对!"}]}],expression:"['jeecgOrderCustomerList['+index+'].idcard', {'initialValue':item.idcard,rules: [{ pattern: '^\\\\d{6}(18|19|20)?\\\\d{2}(0[1-9]|1[012])(0[1-9]|[12]\\\\d|3[01])\\\\d{3}(\\\\d|[xX])$', message: '身份证号格式不对!' }]}]"}],attrs:{placeholder:"身份证号"}})],1)],1),n("a-col",{attrs:{span:5}},[n("a-form-item",[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["jeecgOrderCustomerList["+r+"].telphone",{initialValue:t.telphone,rules:[{pattern:"^1(3|4|5|7|8)\\d{9}$",message:"手机号格式不对!"}]}],expression:"['jeecgOrderCustomerList['+index+'].telphone', {'initialValue':item.telphone,rules: [{ pattern: '^1(3|4|5|7|8)\\\\d{9}$', message: '手机号格式不对!' }]}]"}],attrs:{placeholder:"手机号"}})],1)],1),n("a-col",{attrs:{span:4}},[n("a-form-item",[n("a-button",{attrs:{icon:"plus"},on:{click:e.addRowCustom}}),e._v(" \n                  "),n("a-button",{attrs:{icon:"minus"},on:{click:function(t){return e.delRowCustom(r)}}})],1)],1)],1)}))],2)]),n("a-tab-pane",{key:"2",attrs:{tab:"机票信息",forceRender:""}},[n("div",[n("a-row",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",gutter:16}},[n("a-col",{attrs:{span:6}},[e._v("航班号")]),n("a-col",{attrs:{span:6}},[e._v("航班时间")]),n("a-col",{attrs:{span:6}},[e._v("操作")])],1),e._l(e.orderMainModel.jeecgOrderTicketList,(function(t,r){return n("a-row",{key:r,staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",gutter:16}},[n("a-col",{attrs:{span:6}},[n("a-form-item",[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["jeecgOrderTicketList["+r+"].ticketCode",{initialValue:t.ticketCode,rules:[{required:!0,message:"请输入航班号!"}]}],expression:"['jeecgOrderTicketList['+index+'].ticketCode', {'initialValue':item.ticketCode,rules: [{ required: true, message: '请输入航班号!' }]}]"}],attrs:{placeholder:"航班号"}})],1)],1),n("a-col",{attrs:{span:6}},[n("a-form-item",[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:["jeecgOrderTicketList["+r+"].tickectDate",{initialValue:t.tickectDate}],expression:"['jeecgOrderTicketList['+index+'].tickectDate', {'initialValue':item.tickectDate}]"}],attrs:{placeholder:"航班时间","trigger-change":!0}})],1)],1),n("a-col",{attrs:{span:6}},[n("a-form-item",[n("a-button",{attrs:{icon:"plus"},on:{click:e.addRowTicket}}),e._v(" \n                  "),n("a-button",{attrs:{icon:"minus"},on:{click:function(t){return e.delRowTicket(r)}}})],1)],1)],1)}))],2)])],1)],1)],1)],1)},i=[],o=n("be94"),a=n("0fea"),s=n("2dab"),l=n("88bc"),c=n.n(l),u=n("c1df"),d=n.n(u),f={name:"JeecgOrderMainModal",components:{JDate:s["default"]},data:function(){return{title:"操作",visible:!1,orderMainModel:{jeecgOrderCustomerList:[{}],jeecgOrderTicketList:[{}]},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/test/jeecgOrderMain/add",edit:"/test/jeecgOrderMain/edit",orderCustomerList:"/test/jeecgOrderMain/queryOrderCustomerListByMainId",orderTicketList:"/test/jeecgOrderMain/queryOrderTicketListByMainId"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;if(this.form.resetFields(),this.orderMainModel=Object.assign({},e),this.orderMainModel.jeecgOrderCustomerList=[{}],this.orderMainModel.jeecgOrderTicketList=[{}],console.log(this.orderMainModel.id),this.orderMainModel.id){var n={id:this.orderMainModel.id};Object(a["d"])(this.url.orderCustomerList,n).then((function(e){e.success&&(t.orderMainModel.jeecgOrderCustomerList=e.result,t.$forceUpdate())})),Object(a["d"])(this.url.orderTicketList,n).then((function(e){e.success&&(t.orderMainModel.jeecgOrderTicketList=e.result,t.$forceUpdate())}))}this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(c()(t.orderMainModel,"orderCode","ctype","orderMoney","content")),t.form.setFieldsValue({orderDate:t.orderMainModel.orderDate?d()(t.orderMainModel.orderDate):null})})),console.log(this.orderMainModel)},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",s="";e.orderMainModel.id?(i+=e.url.edit,s="put"):(i+=e.url.add,s="post");var l=Object.assign(e.orderMainModel,r);l.orderDate=l.orderDate?l.orderDate.format("YYYY-MM-DD HH:mm:ss"):null;var c=Object(o["a"])({},l,{jeecgOrderCustomerList:l.jeecgOrderCustomerList,jeecgOrderTicketList:l.jeecgOrderTicketList});console.log(c),Object(a["i"])(i,c,s).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},addRowCustom:function(){this.orderMainModel.jeecgOrderCustomerList.push({}),this.$forceUpdate()},delRowCustom:function(e){console.log(e),this.orderMainModel.jeecgOrderCustomerList.splice(e,1),this.$forceUpdate()},addRowTicket:function(){this.orderMainModel.jeecgOrderTicketList.push({}),console.log(this.orderMainModel.jeecgOrderTicketList),this.$forceUpdate()},delRowTicket:function(e){console.log(e),this.orderMainModel.jeecgOrderTicketList.splice(e,1),this.$forceUpdate()}}},h=f,p=(n("6816"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"731c89df",null);t["default"]=m.exports},"8a84":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("c7ce"),a={name:"emergency_data",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("1fd5"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"f612951c",null);t["default"]=c.exports},"8a8d":function(e,t,n){},"8aa8":function(e,t,n){},"8b55":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADFklEQVRYR8XXWQh1UxQH8N8nZXoiQ2QWmUIUGTNEkqlk9sIDZXwxveGRlEwPCKUQyhAZMoYyRQgPCBkfzA+GEPprna/tdO8953731rdq12kPa/3X2mv/1zorrGZZsZrtWwTA2ti2HPgEv6+KM/MCWAvX4SDs0jP4Pp7HBfMAmQfAybgVf+BqvIt3ytju2A2X4TcciQ/GABkLYB+8ipdwPH6YonwDPIwDsTG+HQIxBsCa+BJP4MwhhbV+J7bGIUP7xwC4FidgV/wypLDW18N7uA+XzzozBsAXuBHXNIo2wok4uEC9gQd6Ib8UZ2HHRQAksZJox+CxRlHyYQu8ie8LyGe9kB+NR7FuJWaOb4kDapybiVkR2KGe223YDN8UgGPxCE4qrzN9Nm7pzW2Kr5EXsgnOKcP5Xmm7BbAH2nFleXlXD2jmr5gA/h9chax3krkkYhw4BW/VwsrzLYBs/gqv1XgdCWuSKcTTHe4iEI/CC5GQzw29COxZV7Q+1mki+D8H+gD6HkR5ntSvOK/x7N7y6IWaSzLejTOaPTcjyZqramVuAEfhQWyO7xpNyfAwXp5mCOqOZm3D4o5T8dCiAHI+1xEPr5/1pJq1i3BxFas/lwHgEpyOQ2fQcGcndPwcXsSFEwDPfQXRkZC+jGdw/kAUbirmTD34eFkAoid3fjtOQ5JwkuTO7ynPw56TZJUi0CkKAe2Mw/B5T3tY7ll8hCTuNFkIwDZI9xPe7z+v+6s+bD8l9B2ghQBESdgync/TDYgYP7xY7+2BHFkYQPSHeAIikYikMoZyO2KahWEpAFoQ+R5rPHuXBiDK9ipXU5bHytwA0nofhxShJ2t0zehYo92+1IbUlKnVsCtGe9dTCtenIY3kfnP3kfQGTzWAfp6BJE3NftgX+2O7qqz/RW9SNeyM/l3Ml7fftVv5Gcl6N7Yqw680YD4syg5tJzfCGz/hcaR1S13J+GsSgB/reYVy014PtdU7NWCO6EUhPypp4xK5GJzYyrcRSLFJ6z2t5x+67zUKTEIcw58OHehHYMz+pe8Z05Yv3Wir8F9PlMchLTHB4wAAAABJRU5ErkJggg=="},"8b57":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("2ace"),o=n("4587"),a=n("8f26"),s=n("fbee"),l=n("a653"),c=n("d52a"),u=n("791c"),d=n("9ba1"),f=n("b99f"),h=n("4b0b"),p=n("5b1a"),m=n("ef6d"),g=n("be46"),v=n("9acd"),y=n("e2e1"),b=n("5c5b"),_=n("022d"),w=n("42b3"),x=n("2560"),S=n("5021"),C=n("7caa"),E=n("16546"),k=n("e6bd"),O=n("f0e0"),T=n("5ab0"),I=n("68da"),A=n("493f"),R=n("4a43"),P=n("3144"),M=n("d75c"),N=n("e511"),L=n("f276"),D=n("b9e6"),j=n("510e"),F=n("e1bd").forEach,B=A("hidden"),q="Symbol",z="prototype",U=M("toPrimitive"),G=j.set,V=j.getterFor(q),W=Object[z],H=i.Symbol,$=o("JSON","stringify"),K=C.f,X=E.f,Y=x.f,J=k.f,Q=I("symbols"),Z=I("op-symbols"),ee=I("string-to-symbol-registry"),te=I("symbol-to-string-registry"),ne=I("wks"),re=i.QObject,ie=!re||!re[z]||!re[z].findChild,oe=s&&u((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(W,t);r&&delete W[t],X(e,t,n),r&&e!==W&&X(W,t,r)}:X,ae=function(e,t){var n=Q[e]=b(H[z]);return G(n,{type:q,tag:e,description:t}),s||(n.description=t),n},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},le=function(e,t,n){e===W&&le(Z,t,n),p(e);var r=v(t,!0);return p(n),d(Q,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=b(n,{enumerable:y(0,!1)})):(d(e,B)||X(e,B,y(1,{})),e[B][r]=!0),oe(e,r,n)):X(e,r,n)},ce=function(e,t){p(e);var n=g(t),r=_(n).concat(pe(n));return F(r,(function(t){s&&!de.call(n,t)||le(e,t,n[t])})),e},ue=function(e,t){return void 0===t?b(e):ce(b(e),t)},de=function(e){var t=v(e,!0),n=J.call(this,t);return!(this===W&&d(Q,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,B)&&this[B][t])||n)},fe=function(e,t){var n=g(e),r=v(t,!0);if(n!==W||!d(Q,r)||d(Z,r)){var i=K(n,r);return!i||!d(Q,r)||d(n,B)&&n[B][r]||(i.enumerable=!0),i}},he=function(e){var t=Y(g(e)),n=[];return F(t,(function(e){d(Q,e)||d(R,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=Y(t?Z:g(e)),r=[];return F(n,(function(e){!d(Q,e)||t&&!d(W,e)||r.push(Q[e])})),r};if(l||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=P(e),n=function(e){this===W&&n.call(Z,e),d(this,B)&&d(this[B],t)&&(this[B][t]=!1),oe(this,t,y(1,e))};return s&&ie&&oe(W,t,{configurable:!0,set:n}),ae(t,e)},T(H[z],"toString",(function(){return V(this).tag})),T(H,"withoutSetter",(function(e){return ae(P(e),e)})),k.f=de,E.f=le,C.f=fe,w.f=x.f=he,S.f=pe,N.f=function(e){return ae(M(e),e)},s&&(X(H[z],"description",{configurable:!0,get:function(){return V(this).description}}),a||T(W,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),F(_(ne),(function(e){L(e)})),r({target:q,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=H(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:u((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(m(e))}}),$){var me=!l||u((function(){var e=H();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))}));r({target:"JSON",stat:!0,forced:me},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,$.apply(null,i)}})}H[z][U]||O(H[z],U,H[z].valueOf),D(H,q),R[B]=!0},"8b80":function(e,t,n){},"8bd0":function(e,t,n){},"8c22":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator",staticStyle:{margin:"-25px 0px 10px 2px"},attrs:{md:24,sm:24}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("JeecgOrderTicket-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("aa8e"),a=n("b65a"),s=n("0fea"),l={name:"JeecgOrderTicketList",mixins:[a["a"]],components:{JeecgOrderTicketModal:o["default"]},data:function(){return{description:"机票信息",columns:[{title:"航班号",align:"center",dataIndex:"ticketCode"},{title:"航班时间",align:"center",dataIndex:"tickectDate"},{title:"订单号码",align:"center",dataIndex:"orderId"},{title:"创建人",align:"center",dataIndex:"createBy"},{title:"创建时间",align:"center",dataIndex:"createTime",sorter:!0},{title:"操作",key:"operation",align:"center",width:130,scopedSlots:{customRender:"action"}}],url:{list:"/test/order/listOrderTicketByMainId",delete:"/test/order/deleteTicket",deleteBatch:"/test/order/deleteBatchTicket"}}},methods:{loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(s["d"])(this.url.list,{mainId:n.mainId}).then((function(e){e.success?t.dataSource=e.result:t.dataSource=null}))},getOrderMain:function(e){this.queryParam.mainId=e,this.loadData(1)},handleAdd:function(){this.$refs.modalForm.add(this.queryParam.mainId),this.$refs.modalForm.title="添加机票信息"}}},c=l,u=(n("63c3"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"87faa3a4",null);t["default"]=d.exports},"8c39":function(e,t,n){"use strict";n("0cf8")},"8c6e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{top:"5%","max-height":"95%"},attrs:{title:"高级查询构造器",width:800,visible:e.visible,confirmLoading:e.confirmLoading,mask:!1,wrapClassName:"ant-modal-cust-warp"},on:{cancel:e.handleCancel}},[n("template",{slot:"footer"},[n("a-button",{on:{click:e.handleCancel}},[e._v("关 闭")]),n("a-button",{staticStyle:{float:"left"},on:{click:e.handleReset}},[e._v("重 置")]),n("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("查 询")])],1),n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",[n("div",e._l(e.queryParamsModel,(function(t,r){return n("a-row",{key:r,staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",gutter:16}},[n("a-col",{attrs:{span:6}},[n("a-select",{attrs:{placeholder:"选择查询字段"},on:{select:function(n,r){return e.handleSelected(r,t)}},model:{value:t.field,callback:function(n){e.$set(t,"field",n)},expression:"item.field"}},e._l(e.fieldList,(function(t,r){return n("a-select-option",{key:"field"+r,attrs:{value:t.value,"data-type":t.type}},[e._v(e._s(t.text))])})),1)],1),n("a-col",{attrs:{span:6}},[n("a-select",{attrs:{placeholder:"选择匹配规则"},model:{value:t.rule,callback:function(n){e.$set(t,"rule",n)},expression:"item.rule"}},[n("a-select-option",{attrs:{value:"eq"}},[e._v("等于")]),n("a-select-option",{attrs:{value:"ne"}},[e._v("不等于")]),n("a-select-option",{attrs:{value:"gt"}},[e._v("大于")]),n("a-select-option",{attrs:{value:"ge"}},[e._v("大于等于")]),n("a-select-option",{attrs:{value:"lt"}},[e._v("小于")]),n("a-select-option",{attrs:{value:"le"}},[e._v("小于等于")]),n("a-select-option",{attrs:{value:"right_like"}},[e._v("以..开始")]),n("a-select-option",{attrs:{value:"left_like"}},[e._v("以..结尾")]),n("a-select-option",{attrs:{value:"like"}},[e._v("包含")]),n("a-select-option",{attrs:{value:"in"}},[e._v("在...中")])],1)],1),n("a-col",{attrs:{span:6}},["date"==t.type?n("j-date",{attrs:{placeholder:"请选择日期"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"datetime"==t.type?n("j-date",{attrs:{placeholder:"请选择时间","show-time":!0,"date-format":"YYYY-MM-DD HH:mm:ss"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"int"==t.type||"number"==t.type?n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入数值"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):n("a-input",{attrs:{placeholder:"请输入值"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}})],1),n("a-col",{attrs:{span:6}},[n("a-button",{attrs:{icon:"plus"},on:{click:e.handleAdd}}),e._v(" \n            "),n("a-button",{attrs:{icon:"minus"},on:{click:function(t){return e.handleDel(r)}}})],1)],1)})),1)])],1)],2)},i=[],o=n("da05"),a=n("2dab"),s={name:"JSuperQuery",components:{ACol:o["b"],JDate:a["default"]},data:function(){return{visible:!1,confirmLoading:!1,queryParamsModel:[{}]}},props:{fieldList:{type:Array,required:!0},callback:{type:String,required:!1,default:"handleSuperQuery"}},methods:{show:function(){this.queryParamsModel&&0!=this.queryParamsModel.length||(this.queryParamsModel=[{}]),this.visible=!0},handleOk:function(){console.log("---高级查询参数---\x3e",this.queryParamsModel),this.isNullArray()?this.$emit(this.callback):this.$emit(this.callback,this.queryParamsModel)},handleCancel:function(){this.close()},close:function(){this.$emit("close"),this.visible=!1},handleAdd:function(){this.queryParamsModel.push({})},handleDel:function(e){this.queryParamsModel.splice(e,1),this.$message.warning("请关闭后重新打开")},handleSelected:function(e,t){t["type"]=e.data.attrs["data-type"]},handleReset:function(){this.queryParamsModel=[{}],this.$emit(this.callback)},isNullArray:function(){if(!this.queryParamsModel||0==this.queryParamsModel.length)return!0;if(1==this.queryParamsModel.length){var e=this.queryParamsModel[0];if(!e.field||!e.val||!e.rule)return!0}return!1}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"8c72":function(e,t,n){"use strict";n("8aa8")},"8c8b":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));n("28a5"),n("a481"),n("3b2b");var r=function(e){if(e.lastIndexOf("\\")>=0){var t=new RegExp("\\\\","g");e=e.replace(t,"/")}return e.substring(e.lastIndexOf("/")+1)},i=function(){return"-"+parseInt(1e4*Math.random()+1,10)},o=function(e){var t=[];if(!e)return"";for(var n=0;n<e.length;n++)t.push(e[n].response.message);return t&&t.length>0?t.join(","):""},a=function(e){if(!e)return[];for(var t=[],n=e.split(","),o=0;o<n.length;o++)n[o]&&t.push({uid:i(),name:r(n[o]),status:"done",url:window._CONFIG["domianURL"]+"/sys/common/view/"+n[o],response:{status:"history",message:n[o]}});return t}},"8c90":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAfCAYAAAAFkva3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAF42lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIwLTA5LTI3VDEwOjU0OjMxKzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMC0wOS0yN1QxMTowNTowNSswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMC0wOS0yN1QxMTowNTowNSswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDphNzlkMGRkYy04M2U1LWY0NDgtYTI5NC03YjE1NGQ3ODVlYzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzI3YjU1NTUtMTU1Zi1jNjRmLThhYmMtZTY0Nzc4YTY1ZWE2IiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzI3YjU1NTUtMTU1Zi1jNjRmLThhYmMtZTY0Nzc4YTY1ZWE2Ij4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozMjdiNTU1NS0xNTVmLWM2NGYtOGFiYy1lNjQ3NzhhNjVlYTYiIHN0RXZ0OndoZW49IjIwMjAtMDktMjdUMTA6NTQ6MzErMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4yIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YTc5ZDBkZGMtODNlNS1mNDQ4LWEyOTQtN2IxNTRkNzg1ZWM3IiBzdEV2dDp3aGVuPSIyMDIwLTA5LTI3VDExOjA1OjA1KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+ztEUvgAAAZlJREFUSIntlL9OAkEQxr+5Xe48DiESaKSwseC1eBRfw8rO1sRG3sFCe00oiH/CnwTC5WT3dsdCRI5bOBQr45dMMzPfL7OzmyWGUxvSGVEusebaBbIR6u0Jyvi89cQ+QK+o6zsi3n+qpX51sn/Yn4IxyP4GiEHWI7BIPbnXw009yQQWHgAIa5SSwY9ASgYQ1ihgsTMCHxBb/RMYsdUEPljCAECaNJ4FlW/tbxZUrDRpvEzwSihRmhgSzEBhGBKsRGmy6s/AGMA0OJzvAlv0Zby5dxbqZDqMGluPN4waCHUyXc/nYNKmTWFX9uCQsGksbdoshAFApOJRv3rsBPWrx4hU/OKqOWG+0SeBUWNXLTDq1Tf61A1bX+1ClfmsOy7XM8cdl+tvlfnsOkPI+jkf+Mj3aq0bBj5v1/ZqrdtlHXmv+9dgBogQqeQ8KYVPADgphXGkkgsQffXkfY7JFtHudGWv1rpMPaF7tdZ9u9OVrok+YyuMmTEIjzoMjAbh0VlRb+Hn6Bt9B+DJN/qqqHcHmBo+R41H36iHot53JjRVL9quHjwAAAAASUVORK5CYII="},"8cac":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-input",{attrs:{placeholder:"选择",readonly:""},on:{click:e.showModal},model:{value:e.checkedListStr,callback:function(t){e.checkedListStr=t},expression:"checkedListStr"}},[n("a-icon",{attrs:{slot:"enterButton",type:"cluster",title:"选择"},slot:"enterButton"})],1),n("a-modal",{attrs:{title:"选择",maskClosable:e.maskClosable},on:{ok:e.handleOk,cancel:e.handleCancel},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a-checkbox-group",{attrs:{options:e.plainOptions,disabled:e.isVerifyPass},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}})],1)],1)},i=[],o=(n("28a5"),n("6b54"),n("89f2")),a={name:"checkboxDictModal",components:{initDictOptions:o["c"],filterMultiDictText:o["b"]},data:function(){var e=[],t=[""];return{visible:!1,plainOptions:e,checkedList:t,maskClosable:!1}},computed:{checkedListStr:function(){return this.checkedList.toString()}},watch:{model:{handler:function(e,t){console.log("newValue",e),this.initMyDictOptions()},deep:!0}},beforeMount:function(){this.initMyDictOptions()},methods:{initMyDictOptions:function(){var e=this;this.initCheckedList(),Object(o["c"])(this.dictCode).then((function(t){if(t.result){e.plainOptions=[];for(var n=0;n<t.result.length;n++)e.plainOptions.push(t.result[n].text)}}))},initCheckedList:function(){this.checkedList=[],this.model[this.checkedKey]&&(this.checkedList=this.model[this.checkedKey].split(","))},showModal:function(){this.visible=!0},handleOk:function(e){this.$emit("checkChanged",this.checkedListStr),this.visible=!1},handleCancel:function(e){this.initCheckedList()}},props:["model","checkedKey","dictCode","isVerifyPass"]},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},"8cbe":function(e,t,n){"use strict";n("5154")},"8cc5":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n("7fc9");function i(e){return void 0!==e?0:void 0}function o(e){return void 0!==e?e:void 0}function a(e){var t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?(e=Math.floor(e/t+.5)*t,e):void 0}}function s(e){var t=e||Object(r["j"])(5);return function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},"8cdb":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("\n  404 page\n")])},i=[],o={name:"404"},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"5f82220d",null);t["default"]=l.exports},"8ce1":function(e,t,n){},"8d37":function(e,t,n){var r=n("9c2cc"),i=n("fbee"),o=n("c75f"),a=n("be46"),s=n("7caa"),l=n("a1ab");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,c=o(r),u={},d=0;while(c.length>d)n=i(r,t=c[d++]),void 0!==n&&l(u,t,n);return u}})},"8d3f":function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.clone=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_clone/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1},maxDocs:{type:"number",name:"max_docs"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},"8d90":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{visible:e.visible,title:"修改头像",maskClosable:!1,confirmLoading:e.confirmLoading,width:800}},[n("a-row",[n("a-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[n("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),n("a-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[n("div",{staticClass:"avatar-upload-preview"},[n("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),n("template",{slot:"footer"},[n("a-button",{key:"back",on:{click:e.cancelHandel}},[e._v("取消")]),n("a-button",{key:"submit",attrs:{type:"primary",loading:e.confirmLoading},on:{click:e.okHandel}},[e._v("保存")])],1)],2)},i=[],o=n("7e79"),a={components:{VueCropper:o["VueCropper"]},data:function(){return{visible:!1,id:null,confirmLoading:!1,options:{img:"/avatar2.jpg",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},previews:{}}},methods:{edit:function(e){this.visible=!0,this.id=e},close:function(){this.id=null,this.visible=!1},cancelHandel:function(){this.close()},okHandel:function(){var e=this;e.confirmLoading=!0,setTimeout((function(){e.confirmLoading=!1,e.close(),e.$message.success("上传头像成功")}),2e3)},realTime:function(e){this.previews=e}}},s=a,l=(n("89b0"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"17f9d473",null);t["default"]=c.exports},"8db6":function(e,t,n){},"8dd6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-form",{staticClass:"form",attrs:{form:e.form},on:{submit:e.handleSubmit}},[n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:6,md:12,sm:24}},[n("a-form-item",{attrs:{label:"任务名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.name",{rules:[{required:!0,message:"请输入任务名称",whitespace:!0}]}],expression:"[ 'task.name', {rules: [{ required: true, message: '请输入任务名称', whitespace: true}]} ]"}],attrs:{placeholder:"请输入任务名称"}})],1)],1),n("a-col",{attrs:{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24}},[n("a-form-item",{attrs:{label:"任务描述"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.description",{rules:[{required:!0,message:"请输入任务描述",whitespace:!0}]}],expression:"[ 'task.description', {rules: [{ required: true, message: '请输入任务描述', whitespace: true}]} ]"}],attrs:{placeholder:"请输入任务描述"}})],1)],1),n("a-col",{attrs:{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24}},[n("a-form-item",{attrs:{label:"执行人"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.executor",{rules:[{required:!0,message:"请选择执行人"}]}],expression:"[\n            'task.executor',\n            {rules: [{ required: true, message: '请选择执行人'}]}\n          ]"}],attrs:{placeholder:"请选择执行人"}},[n("a-select-option",{attrs:{value:"黄丽丽"}},[e._v("黄丽丽")]),n("a-select-option",{attrs:{value:"李大刀"}},[e._v("李大刀")])],1)],1)],1)],1),n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:6,md:12,sm:24}},[n("a-form-item",{attrs:{label:"责任人"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.manager",{rules:[{required:!0,message:"请选择责任人"}]}],expression:"[\n            'task.manager',\n            {rules: [{ required: true, message: '请选择责任人'}]}\n          ]"}],attrs:{placeholder:"请选择责任人"}},[n("a-select-option",{attrs:{value:"王伟"}},[e._v("王伟")]),n("a-select-option",{attrs:{value:"李红军"}},[e._v("李红军")])],1)],1)],1),n("a-col",{attrs:{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24}},[n("a-form-item",{attrs:{label:"提醒时间"}},[n("a-time-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.time",{rules:[{required:!0,message:"请选择提醒时间"}]}],expression:"[\n            'task.time',\n            {rules: [{ required: true, message: '请选择提醒时间'}]}\n          ]"}],staticStyle:{width:"100%"}})],1)],1),n("a-col",{attrs:{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24}},[n("a-form-item",{attrs:{label:"任务类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["task.type",{rules:[{required:!0,message:"请选择任务类型"}]}],expression:"[ 'task.type', {rules: [{ required: true, message: '请选择任务类型'}]} ]"}],attrs:{placeholder:"请选择任务类型"}},[n("a-select-option",{attrs:{value:"定时执行"}},[e._v("定时执行")]),n("a-select-option",{attrs:{value:"周期执行"}},[e._v("周期执行")])],1)],1)],1)],1),e.showSubmit?n("a-form-item",[n("a-button",{attrs:{htmlType:"submit"}},[e._v("Submit")])],1):e._e()],1)},i=[],o={name:"TaskForm",props:{showSubmit:{type:Boolean,default:!1}},data:function(){return{form:this.$form.createForm(this)}},methods:{handleSubmit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,n){e||t.$notification["error"]({message:"Received values of form:",description:n})}))}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"74600c93",null);t["default"]=l.exports},"8e0b":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("dda8"),o=n("58b2"),a=n("247b"),s=n("b9e6"),l=n("f0e0"),c=n("5ab0"),u=n("d75c"),d=n("8f26"),f=n("0280"),h=n("aa31"),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,u,h,w,x){i(n,t,u);var S,C,E,k=function(e){if(e===h&&R)return R;if(!m&&e in I)return I[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",T=!1,I=e.prototype,A=I[g]||I["@@iterator"]||h&&I[h],R=!m&&A||k(h),P="Array"==t&&I.entries||A;if(P&&(S=o(P.call(new e)),p!==Object.prototype&&S.next&&(d||o(S)===p||(a?a(S,p):"function"!=typeof S[g]&&l(S,g,_)),s(S,O,!0,!0),d&&(f[O]=_))),h==y&&A&&A.name!==y&&(T=!0,R=function(){return A.call(this)}),d&&!x||I[g]===R||l(I,g,R),f[t]=R,h)if(C={values:k(y),keys:w?R:k(v),entries:k(b)},x)for(E in C)(m||T||!(E in I))&&c(I,E,C[E]);else r({target:t,proto:!0,forced:m||T},C);return C}},"8e42":function(e,t,n){},"8e4c":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"8e6b":function(e,t,n){var r=n("6ba5");function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"8ebe":function(e,t,n){"use strict";var r=n("99ca"),i=n("ef6d"),o=n("34ac6"),a=n("de7d"),s=n("7373"),l=n("a1ab"),c=n("96d9");e.exports=function(e){var t,n,u,d,f,h,p=i(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=c(p),_=0;if(y&&(v=r(v,g>2?arguments[2]:void 0,2)),void 0==b||m==Array&&a(b))for(t=s(p.length),n=new m(t);t>_;_++)h=y?v(p[_],_):p[_],l(n,_,h);else for(d=b.call(p),f=d.next,n=new m;!(u=f.call(d)).done;_++)h=y?o(d,v,[u.value,_],!0):u.value,l(n,_,h);return n.length=_,n}},"8eef":function(e,t,n){"use strict";n("200f")},"8f26":function(e,t){e.exports=!1},"8f2c":function(e,t,n){"use strict";n.r(t),n.d(t,"JeecgListMixinsTabletwo",(function(){return a}));n("aef6"),n("ca00");var r=n("0fea"),i=n("2b0e"),o=n("9fb0"),a=(n("89f2"),n("eec4"),n("88bc"),{data:function(){return{tokenHeader:{"X-Access-Token":i["default"].ls.get(o["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],loading:!1,selectedRowKeys:[],selectionRows:[],bid:"",visibleCheck:!0,columns2:[{title:"排序",align:"center",width:"10%",dataIndex:"zssx"},{title:"名称",align:"center",width:"30%",dataIndex:"name"},{title:"对应字段",align:"center",width:"25%",dataIndex:"zd"},{title:"操作",dataIndex:"action",align:"center",width:"25%",scopedSlots:{customRender:"action"}}],formtwo:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},visiblets:!1,loadingts:!1,tablename:""}},created:function(){},mounted:function(){},methods:{loadData:function(e){if(this.bid=e,this.onClearSelected(),this.zhikongtwo(this.bid),this.visibleCheck=!0,this.urlcong.list){var t={bid:this.bid,column:"createTime",order:"desc",field:"id,,district,name,action",pageNo:1,pageSize:1e3};this.loading=!0;var n=this;""==e?(n.loading=!1,n.$refs.TemplateEditTabletwo.cldatalatiao("")):Object(r["d"])(this.urlcong.list,t).then((function(e){e.success&&console.log("从表对应数据获取完成:"+e.result.records.length),510===e.code&&n.$message.warning(e.message),n.loading=!1,n.$refs.TemplateEditTabletwo.cldatalatiao(e.result.records)}))}else this.$message.error("请设置urlcong.list属性!")},modalFormOk:function(){this.loadData(this.bid)},rowClicknew:function(e){this.visibleCheck=!1,this.zhikongtwo(this.bid),this.fuzhitwo(e)},mergeArray:function(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)e[n]===t[r]&&e.splice(n,1);return e},handleDeleteForm:function(e){if(this.urlcong.delete){var t=this;Object(r["a"])(t.urlcong.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData(t.bid)):t.$message.warning(e.message)}))}else this.$message.error("请设置urlcong.delete属性!")},close:function(){this.$emit("closetwo")},yincang:function(){this.visible=!1},pdInteger:function(e){return e%1===0},handleOktwo:function(){var e=this,t=this;this.formtwo.validateFields((function(n,i){if(!n)if(t.pdInteger(i.zssx)){t.confirmLoading=!0;var o="",a="";i.smid?(o+=t.urlcong.edit,a="put",t.$route.path.endsWith("emergency_risk_index")||t.$route.path.endsWith("emergency_resource_index")?o+="/emergency":t.$route.path.endsWith("emergency_data_unaudit")?o+="/weitongguo":o+="/shenheku"):e.verify?t.$message.warning("审核状态无法新增数据"):(o+=t.urlcong.add,a="post");Object.assign(t.model,i);console.log("表单提交数据",i),Object(r["i"])(o,i,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.loadData(t.bid)):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}else t.$message.warning("展示顺序请输入整数")}))},addnew:function(){this.zhikongtwo(this.bid)},handleDeleteFormDB2:function(e){if(this.urlcong.delete){var t=this;Object(r["a"])(t.urlcong.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData(t.bid)):t.$message.warning(e.message)}))}else this.$message.error("请设置urlcong.delete属性!")},up:function(e){var t=this;Object(r["i"])(t.urlcong.up,e,"post").then((function(e){e.success?t.loadData(t.bid):t.$message.warning(e.message)}))},down:function(e){var t=this;Object(r["i"])(t.urlcong.down,e,"post").then((function(e){e.success?t.loadData(t.bid):t.$message.warning(e.message)}))},onChose:function(e){1==this.visibleCheck?this.$message.success("已处于新增状态"):e?(this.zhikongtwo(this.bid),this.visibleCheck=!0):this.visibleCheck=!1},zidongshengcheng:function(){this.visiblets=!0,this.loadingts=!1},handleOkts:function(){var e=this;e.loadingts=!0,Object(r["i"])(e.urlcong.zidongshengcheng+e.tablename,{bid:e.bid},"post").then((function(t){t.success?(e.visiblets=!1,e.loadingts=!1,e.$message.success(t.message),e.loadData(e.bid)):(e.visiblets=!1,e.loadingts=!1,e.$message.warning(t.message))}))},handleCancelts:function(){this.visiblets=!1},settablename:function(e){this.tablename=e},batchDel:function(){if(this.urlcong.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(r["a"])(n.urlcong.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(n.bid)):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]}}})},"8f2d":function(e,t,n){},"8f5f":function(e,t,n){"use strict";n("5f0e")},"903e":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.registerHelper("wordChars","r",/[\w.]/),e.defineMode("r",(function(t){function n(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var r=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],i=["list","quote","bquote","eval","return","call","parse","deparse"],o=["if","else","repeat","while","function","for","in","next","break"],a=["if","else","repeat","while","function","for"];e.registerHelper("hintWords","r",r.concat(i,o));var s,l=n(r),c=n(i),u=n(o),d=n(a),f=/[+\-*\/^<>=!&|~$:]/;function h(e,t){s=null;var n=e.next();if("#"==n)return e.skipToEnd(),"comment";if("0"==n&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==n&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(n))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==n||'"'==n)return t.tokenize=p(n),"string";if("`"==n)return e.match(/[^`]+`/),"variable-3";if("."==n&&e.match(/.[.\d]+/))return"keyword";if(/[\w\.]/.test(n)&&"_"!=n){e.eatWhile(/[\w\.]/);var r=e.current();return l.propertyIsEnumerable(r)?"atom":u.propertyIsEnumerable(r)?(d.propertyIsEnumerable(r)&&!e.match(/\s*if(\s+|$)/,!1)&&(s="block"),"keyword"):c.propertyIsEnumerable(r)?"builtin":"variable"}return"%"==n?(e.skipTo("%")&&e.next(),"operator variable-2"):"<"==n&&e.eat("-")||"<"==n&&e.match("<-")||"-"==n&&e.match(/>>?/)?"operator arrow":"="==n&&t.ctx.argList?"arg-is":f.test(n)?"$"==n?"operator dollar":(e.eatWhile(f),"operator"):/[\(\){}\[\];]/.test(n)?(s=n,";"==n?"semi":null):null}function p(e){return function(t,n){if(t.eat("\\")){var r=t.next();return"x"==r?t.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&t.eat("{")&&t.skipTo("}")?t.next():"u"==r?t.match(/^[a-f0-9]{4}/i):"U"==r?t.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&t.match(/^[0-7]{1,2}/),"string-2"}var i;while(null!=(i=t.next())){if(i==e){n.tokenize=h;break}if("\\"==i){t.backUp(1);break}}return"string"}}var m=1,g=2,v=4;function y(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function b(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function _(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:h,ctx:{type:"top",indent:-t.indentUnit,flags:g},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=g),t.ctx.flags&v&&_(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&0==(t.ctx.flags&g)&&b(t,m),";"!=s&&"{"!=s&&"}"!=s||"block"!=t.ctx.type||_(t),"{"==s?y(t,"}",e):"("==s?(y(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==s?y(t,"]",e):"block"==s?y(t,"block",e):s==t.ctx.type?_(t):"block"==t.ctx.type&&"comment"!=n&&b(t,v),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,n){if(e.tokenize!=h)return 0;var r=n&&n.charAt(0),i=e.ctx,o=r==i.type;return i.flags&v&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:t.indentUnit):i.flags&m?i.column+(o?0:1):i.indent+(o?0:t.indentUnit)},lineComment:"#"}})),e.defineMIME("text/x-rsrc","r")}))},"907d":function(e,t,n){var r=n("4b0b"),i=n("b99f"),o=n("d75c"),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},9089:function(e,t,n){"use strict";n("e3b3")},"90e4":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-cascader",{attrs:{options:e.options,placeholder:"请选择市/区/镇/村",expandTrigger:"hover",changeOnSelect:"",disabled:e.isVerifyPass},on:{change:e.onChange},model:{value:e.defaultValue,callback:function(t){e.defaultValue=t},expression:"defaultValue"}})},i=[],o=n("0fea"),a={name:"street_child",data:function(){return{defaultValue:[],options:[],url:{get:"/city/getCityInfo"},msg:{city:"",cityCode:"",district:"",districtCode:"",length:0}}},props:["params","isVerifyPass"],watch:{params:{handler:function(e,t){this.defaultValue=e},deep:!0}},beforeMount:function(){this.init(),this.getOption()},mounted:function(){},methods:{init:function(){this.defaultValue=this.params},getOption:function(){var e=this,t={id:"230417"};Object(o["d"])(this.url.get,t).then((function(t){t.success?e.options=t.result:e.options=[]}))},onChange:function(e,t){if(void 0!=t)switch(t.length){case 1:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district="",this.msg.districtCode="",this.msg.length=1;break;case 2:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district=t[1].label,this.msg.districtCode=t[1].value,this.msg.length=2;break;case 3:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district=t[1].label,this.msg.districtCode=t[1].value,this.msg.length=3;break;case 4:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district=t[1].label,this.msg.districtCode=t[1].value,this.msg.length=4;break}else this.msg.city="",this.msg.cityCode="",this.msg.district="",this.msg.districtCode=""}},created:function(){}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},9152:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?f/l:f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},"91a8":function(e,t,n){"use strict";n("e6b1")},"91b1":function(e,t,n){"use strict";var r=n("01d4"),i=n("0ec0"),o=n("acc1"),a=n("1300"),s=n("ca42"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(t,n,r){var i=e.call(this)||this,o=r||{};return i.tileCoord=t,i.state=n,i.interimTile=null,i.hifi=!0,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i}return l(t,e),t.prototype.changed=function(){this.dispatchEvent(r["a"].CHANGE)},t.prototype.release=function(){},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(e.getState()==o["a"].LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(e.getState()==o["a"].LOADED){e.interimTile=null;break}e.getState()==o["a"].LOADING?t=e:e.getState()==o["a"].IDLE?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){if(this.state!==o["a"].ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()},t.prototype.load=function(){Object(a["b"])()},t.prototype.getAlpha=function(e,t){if(!this.transition_)return 1;var n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;var r=t-n+1e3/60;return r>=this.transition_?1:Object(s["a"])(r/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(i["a"]),u=c,d=n("0999"),f=n("6611"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.crossOrigin_=i,s.src_=r,s.key=r,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return h(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=o["a"].ERROR,this.unlistenImage_(),this.image_=m(),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=o["a"].LOADED:this.state=o["a"].EMPTY,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state==o["a"].ERROR&&(this.state=o["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==o["a"].IDLE&&(this.state=o["a"].LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(f["a"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(u);function m(){var e=Object(d["a"])(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}var g,v=p,y=.5,b=!0,_=n("0af5"),w=n("256f"),x=n("7fc9"),S=10,C=.25,E=function(){function e(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;var a={},s=Object(w["h"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return a[t]||(a[t]=s(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Object(_["E"])(r)==Object(_["E"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(_["E"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(_["E"])(this.targetProj_.getExtent()):null;var l=Object(_["C"])(n),c=Object(_["D"])(n),u=Object(_["w"])(n),d=Object(_["v"])(n),f=this.transformInv_(l),h=this.transformInv_(c),p=this.transformInv_(u),m=this.transformInv_(d),g=S+(o?Math.max(0,Math.ceil(Object(x["d"])(Object(_["u"])(n)/(o*o*256*256)))):0);if(this.addQuad_(l,c,u,d,f,h,p,m,g),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach((function(e,t,n){v=Math.min(v,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-v>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-v>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-v>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-v>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var n=Math.min(t[0][0],t[1][0],t[2][0]),r=Math.max(t[0][0],t[1][0],t[2][0]);r-n<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}a={}}return e.prototype.addTriangle_=function(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})},e.prototype.addQuad_=function(e,t,n,r,i,o,a,s,l){var c=Object(_["b"])([i,o,a,s]),u=this.sourceWorldWidth_?Object(_["E"])(c)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&u>.5&&u<1,h=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var p=Object(_["b"])([e,t,n,r]),m=Object(_["E"])(p)/this.targetWorldWidth_;h=m>C||h}!f&&this.sourceProj_.isGlobal()&&u&&(h=u>C||h)}if(!(!h&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3]))||Object(_["F"])(c,this.maxSourceExtent_)){var g=0;if(!h&&(!isFinite(i[0])||!isFinite(i[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(s[0])||!isFinite(s[1])))if(l>0)h=!0;else if(g=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1),1!=g&&2!=g&&4!=g&&8!=g)return;if(l>0){if(!h){var v=[(e[0]+n[0])/2,(e[1]+n[1])/2],y=this.transformInv_(v),b=void 0;if(f){var w=(Object(x["e"])(i[0],d)+Object(x["e"])(a[0],d))/2;b=w-Object(x["e"])(y[0],d)}else b=(i[0]+a[0])/2-y[0];var S=(i[1]+a[1])/2-y[1],E=b*b+S*S;h=E>this.errorThresholdSquared_}if(h){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var k=[(t[0]+n[0])/2,(t[1]+n[1])/2],O=this.transformInv_(k),T=[(r[0]+e[0])/2,(r[1]+e[1])/2],I=this.transformInv_(T);this.addQuad_(e,t,k,T,i,o,O,I,l-1),this.addQuad_(T,k,n,r,I,O,a,s,l-1)}else{var A=[(e[0]+t[0])/2,(e[1]+t[1])/2],R=this.transformInv_(A),P=[(n[0]+r[0])/2,(n[1]+r[1])/2],M=this.transformInv_(P);this.addQuad_(e,A,P,r,i,R,M,s,l-1),this.addQuad_(A,t,n,P,R,o,a,M,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&g)&&this.addTriangle_(e,n,r,i,a,s),0==(14&g)&&this.addTriangle_(e,n,t,i,a,o),g&&(0==(13&g)&&this.addTriangle_(t,r,e,o,s,i),0==(7&g)&&this.addTriangle_(t,r,n,o,s,a))}},e.prototype.calculateSourceExtent=function(){var e=Object(_["j"])();return this.triangles_.forEach((function(t,n,r){var i=t.source;Object(_["r"])(e,i[0]),Object(_["r"])(e,i[1]),Object(_["r"])(e,i[2])})),e},e.prototype.getTriangles=function(){return this.triangles_},e}(),k=E,O={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},T=n("38f3");function I(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function A(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function R(){if(void 0===g){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",I(e,4,5,4,0),I(e,4,5,0,5);var t=e.getImageData(0,0,3,3).data;g=A(t,0)||A(t,4)||A(t,8)}return g}function P(e,t,n,r){var i=Object(w["n"])(n,t,e),o=Object(w["g"])(t,r,n),a=t.getMetersPerUnit();void 0!==a&&(o*=a);var s=e.getMetersPerUnit();void 0!==s&&(o/=s);var l=e.getExtent();if(!l||Object(_["f"])(l,i)){var c=Object(w["g"])(e,o,i)/o;isFinite(c)&&c>0&&(o/=c)}return o}function M(e,t,n,r){var i=Object(_["x"])(n),o=P(e,t,i,r);return(!isFinite(o)||o<=0)&&Object(_["t"])(n,(function(n){return o=P(e,t,n,r),isFinite(o)&&o>0})),o}function N(e,t,n,r,i,o,a,s,l,c,u,f){var h=Object(d["a"])(Math.round(n*e),Math.round(n*t));if(Object(T["a"])(h,f),0===l.length)return h.canvas;function p(e){return Math.round(e*n)/n}h.scale(n,n),h.globalCompositeOperation="lighter";var m=Object(_["j"])();l.forEach((function(e,t,n){Object(_["q"])(m,e.extent)}));var g=Object(_["E"])(m),v=Object(_["A"])(m),y=Object(d["a"])(Math.round(n*g/r),Math.round(n*v/r));Object(T["a"])(y,f);var b=n/r;l.forEach((function(e,t,n){var r=e.extent[0]-m[0],i=-(e.extent[3]-m[3]),o=Object(_["E"])(e.extent),a=Object(_["A"])(e.extent);e.image.width>0&&e.image.height>0&&y.drawImage(e.image,c,c,e.image.width-2*c,e.image.height-2*c,r*b,i*b,o*b,a*b)}));var w=Object(_["C"])(a);return s.getTriangles().forEach((function(e,t,i){var a=e.source,s=e.target,l=a[0][0],c=a[0][1],u=a[1][0],d=a[1][1],g=a[2][0],v=a[2][1],b=p((s[0][0]-w[0])/o),_=p(-(s[0][1]-w[1])/o),S=p((s[1][0]-w[0])/o),C=p(-(s[1][1]-w[1])/o),E=p((s[2][0]-w[0])/o),k=p(-(s[2][1]-w[1])/o),T=l,I=c;l=0,c=0,u-=T,d-=I,g-=T,v-=I;var A=[[u,d,0,0,S-b],[g,v,0,0,E-b],[0,0,u,d,C-_],[0,0,g,v,k-_]],P=Object(x["f"])(A);if(P){if(h.save(),h.beginPath(),R()||f===O){h.moveTo(S,C);for(var M=4,N=b-S,L=_-C,D=0;D<M;D++)h.lineTo(S+p((D+1)*N/M),C+p(D*L/(M-1))),D!=M-1&&h.lineTo(S+p((D+1)*N/M),C+p((D+1)*L/(M-1)));h.lineTo(E,k)}else h.moveTo(S,C),h.lineTo(b,_),h.lineTo(E,k);h.clip(),h.transform(P[0],P[2],P[1],P[3],b,_),h.translate(m[0]-T,m[3]-I),h.scale(r/n,-r/n),h.drawImage(y.canvas,0,0),h.restore()}})),u&&(h.save(),h.globalCompositeOperation="source-over",h.strokeStyle="black",h.lineWidth=1,s.getTriangles().forEach((function(e,t,n){var r=e.target,i=(r[0][0]-w[0])/o,a=-(r[0][1]-w[1])/o,s=(r[1][0]-w[0])/o,l=-(r[1][1]-w[1])/o,c=(r[2][0]-w[0])/o,u=-(r[2][1]-w[1])/o;h.beginPath(),h.moveTo(s,l),h.lineTo(i,a),h.lineTo(c,u),h.closePath(),h.stroke()})),h.restore()),h.canvas}var L=n("1e8d"),D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(t,n,r,i,a,s,l,c,u,d,f,h){var p=e.call(this,a,o["a"].IDLE)||this;p.renderEdges_=void 0!==f&&f,p.contextOptions_=h,p.pixelRatio_=l,p.gutter_=c,p.canvas_=null,p.sourceTileGrid_=n,p.targetTileGrid_=i,p.wrappedTileCoord_=s||a,p.sourceTiles_=[],p.sourcesListenerKeys_=null,p.sourceZ_=0;var m=i.getTileCoordExtent(p.wrappedTileCoord_),g=p.targetTileGrid_.getExtent(),v=p.sourceTileGrid_.getExtent(),b=g?Object(_["B"])(m,g):m;if(0===Object(_["u"])(b))return p.state=o["a"].EMPTY,p;var w=t.getExtent();w&&(v=v?Object(_["B"])(v,w):w);var S=i.getResolution(p.wrappedTileCoord_[0]),C=M(t,r,b,S);if(!isFinite(C)||C<=0)return p.state=o["a"].EMPTY,p;var E=void 0!==d?d:y;if(p.triangulation_=new k(t,r,b,v,C*E,S),0===p.triangulation_.getTriangles().length)return p.state=o["a"].EMPTY,p;p.sourceZ_=n.getZForResolution(C);var O=p.triangulation_.calculateSourceExtent();if(v&&(t.canWrapX()?(O[1]=Object(x["a"])(O[1],v[1],v[3]),O[3]=Object(x["a"])(O[3],v[1],v[3])):O=Object(_["B"])(O,v)),Object(_["u"])(O)){for(var T=n.getTileRangeForExtentAndZ(O,p.sourceZ_),I=T.minX;I<=T.maxX;I++)for(var A=T.minY;A<=T.maxY;A++){var R=u(p.sourceZ_,I,A,l);R&&p.sourceTiles_.push(R)}0===p.sourceTiles_.length&&(p.state=o["a"].EMPTY)}else p.state=o["a"].EMPTY;return p}return D(t,e),t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,n,r){t&&t.getState()==o["a"].LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=o["a"].ERROR;else{var t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"===typeof n?n:n[0],i="number"===typeof n?n:n[1],a=this.targetTileGrid_.getResolution(t),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=N(r,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),a,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.contextOptions_),this.state=o["a"].LOADED}this.changed()},t.prototype.load=function(){if(this.state==o["a"].IDLE){this.state=o["a"].LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,n,i){var a=t.getState();if(a==o["a"].IDLE||a==o["a"].LOADING){e++;var s=Object(L["a"])(t,r["a"].CHANGE,(function(n){var r=t.getState();r!=o["a"].LOADED&&r!=o["a"].ERROR&&r!=o["a"].EMPTY||(Object(L["c"])(s),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),this.sourceTiles_.forEach((function(e,t,n){var r=e.getState();r==o["a"].IDLE&&e.load()})),0===e&&setTimeout(this.reproject_.bind(this),0)}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(L["c"]),this.sourcesListenerKeys_=null},t}(u),F=j,B=n("92fa5"),q=function(){function e(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},e.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},e.prototype.forEach=function(e){var t=this.oldest_;while(t)e(t.value_,t.key_,this),t=t.newer},e.prototype.get=function(e,t){var n=this.entries_[e];return Object(B["a"])(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},e.prototype.remove=function(e){var t=this.entries_[e];return Object(B["a"])(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},e.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},e.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},e.prototype.set=function(e,t){Object(B["a"])(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},e.prototype.setSize=function(e){this.highWaterMark=e},e}(),z=q,U=n("2c30"),G=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.expireCache=function(e){while(this.canExpireCache()){var t=this.peekLast();if(t.getKey()in e)break;this.pop().release()}},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=this.peekFirstKey(),t=Object(U["b"])(e),n=t[0];this.forEach(function(e){e.tileCoord[0]!==n&&(this.remove(Object(U["c"])(e.tileCoord)),e.release())}.bind(this))}},t}(z),W=V,H={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},$=n("cef7"),K=n("ff80"),X=n("089b"),Y=n("345d"),J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX})||this;n.opaque_=void 0!==t.opaque&&t.opaque,n.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,n.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;var r=[256,256],i=t.tileGrid;return i&&Object(Y["c"])(i.getTileSize(i.getMinZoom()),r),n.tileCache=new W(t.cacheSize||0),n.tmpSize=[0,0],n.key_=t.key||"",n.tileOptions={transition:t.transition},n.zDirection=t.zDirection?t.zDirection:0,n}return J(t,e),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);n&&n.expireCache(t)},t.prototype.forEachLoadedTile=function(e,t,n,r){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var a,s,l,c=!0,u=n.minX;u<=n.maxX;++u)for(var d=n.minY;d<=n.maxY;++d)s=Object(U["d"])(t,u,d),l=!1,i.containsKey(s)&&(a=i.get(s),l=a.getState()===o["a"].LOADED,l&&(l=!1!==r(a))),l||(c=!1);return c},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},t.prototype.getTile=function(e,t,n,r,i){return Object(a["b"])()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:Object(X["c"])(e)},t.prototype.getTileCacheForProjection=function(e){return Object(B["a"])(Object(w["c"])(this.getProjection(),e),68),this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=Object(Y["c"])(r.getTileSize(e),this.tmpSize);return 1==i?o:Object(Y["b"])(o,i,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,t){var n=void 0!==t?t:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=Object(X["d"])(r,e,n)),Object(U["f"])(e,r)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),e.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,t){var n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)},t.prototype.useTile=function(e,t,n,r){},t}(K["a"]),Z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.tile=n,r}return J(t,e),t}($["a"]),ee=Q;function te(e,t){var n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?e.replace(n,a[0].toString()).replace(r,a[1].toString()).replace(i,a[2].toString()).replace(o,(function(){var e=a[0],n=t.getFullTileRange(e);Object(B["a"])(n,55);var r=n.getHeight()-a[2]-1;return r.toString()})):void 0}}function ne(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=te(e[i],t);return re(r)}function re(e){return 1===e.length?e[0]:function(t,n,r){if(t){var i=Object(U["e"])(t),o=Object(x["e"])(i,e.length);return e[o](t,n,r)}}}function ie(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e),n){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)t.push(e.replace(n[0],s.toString()));return t}return t.push(e),t}var oe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ae=function(e){function t(n){var r=e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return oe(t,e),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var t,n=e.target,r=Object(a["c"])(n),i=n.getState();i==o["a"].LOADING?(this.tileLoadingKeys_[r]=!0,t=H.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=i==o["a"].ERROR?H.TILELOADERROR:i==o["a"].LOADED?H.TILELOADEND:void 0),void 0!=t&&this.dispatchEvent(new Z(t,n))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof t?this.setKey(t):this.changed()},t.prototype.setUrl=function(e){var t=ie(e);this.urls=t,this.setUrls(t)},t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(ne(e,this.tileGrid),t):this.setKey(t)},t.prototype.tileUrlFunction=function(e,t,n){},t.prototype.useTile=function(e,t,n){var r=Object(U["d"])(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(ee),se=ae,le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:ue,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this;return n.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,n.tileClass=void 0!==t.tileClass?t.tileClass:v,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,n.contextOptions_=!1===t.imageSmoothing?O:void 0,n.renderReprojectionEdges_=!1,n}return le(t,e),t.prototype.canExpireCache=function(){if(!b)return e.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},t.prototype.expireCache=function(t,n){if(b){var r=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==r?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==r?n:{})}}else e.prototype.expireCache.call(this,t,n)},t.prototype.getContextOptions=function(){return this.contextOptions_},t.prototype.getGutterForProjection=function(e){return b&&this.getProjection()&&e&&!Object(w["c"])(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){return e.prototype.getKey.call(this)+(this.contextOptions_?"\n"+JSON.stringify(this.contextOptions_):"")},t.prototype.getOpaque=function(t){return!(b&&this.getProjection()&&t&&!Object(w["c"])(this.getProjection(),t))&&e.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(t){if(!b)return e.prototype.getTileGridForProjection.call(this,t);var n=this.getProjection();if(!this.tileGrid||n&&!Object(w["c"])(n,t)){var r=Object(a["c"])(t);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=Object(X["c"])(t)),this.tileGridForProjection[r]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(t){if(!b)return e.prototype.getTileCacheForProjection.call(this,t);var n=this.getProjection();if(!n||Object(w["c"])(n,t))return this.tileCache;var r=Object(a["c"])(t);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new W(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},t.prototype.createTile_=function(e,t,n,i,a,s){var l=[e,t,n],c=this.getTileCoordForTileUrlFunction(l,a),u=c?this.tileUrlFunction(c,i,a):void 0,d=new this.tileClass(l,void 0!==u?o["a"].IDLE:o["a"].EMPTY,void 0!==u?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return d.key=s,d.addEventListener(r["a"].CHANGE,this.handleTileChange.bind(this)),d},t.prototype.getTile=function(e,t,n,r,i){var o=this.getProjection();if(b&&o&&i&&!Object(w["c"])(o,i)){var a=this.getTileCacheForProjection(i),s=[e,t,n],l=void 0,c=Object(U["c"])(s);a.containsKey(c)&&(l=a.get(c));var u=this.getKey();if(l&&l.key==u)return l;var d=this.getTileGridForProjection(o),f=this.getTileGridForProjection(i),h=this.getTileCoordForTileUrlFunction(s,i),p=new F(o,d,i,f,s,h,this.getTilePixelRatio(r),this.getGutter(),function(e,t,n,r){return this.getTileInternal(e,t,n,r,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.contextOptions_);return p.key=u,l?(p.interimTile=l,p.refreshInterimChain(),a.replace(c,p)):a.set(c,p),p}return this.getTileInternal(e,t,n,r,o||i)},t.prototype.getTileInternal=function(e,t,n,r,i){var a=null,s=Object(U["d"])(e,t,n),l=this.getKey();if(this.tileCache.containsKey(s)){if(a=this.tileCache.get(s),a.key!=l){var c=a;a=this.createTile_(e,t,n,r,i,l),c.getState()==o["a"].IDLE?a.interimTile=c.interimTile:a.interimTile=c,a.refreshInterimChain(),this.tileCache.replace(s,a)}}else a=this.createTile_(e,t,n,r,i,l),this.tileCache.set(s,a);return a},t.prototype.setRenderReprojectionEdges=function(e){if(b&&this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,t){if(b){var n=Object(w["f"])(e);if(n){var r=Object(a["c"])(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}},t}(se);function ue(e,t){e.getImage().src=t}t["a"]=ce},"91b6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{class:{abcdefg:!0},attrs:{bordered:!1}},[n("div",{staticClass:"no-print",staticStyle:{"text-align":"right"}},[n("a-button",{directives:[{name:"print",rawName:"v-print",value:"#printContent",expression:"'#printContent'"}],attrs:{ghost:"",type:"primary"}},[e._v("打印")])],1),n("section",{ref:"print",staticClass:"abcdefg",attrs:{id:"printContent"}},[n("div",{staticStyle:{"text-align":"center"}},[n("p",{staticStyle:{"font-size":"24px","font-weight":"800"}},[e._v("打印测试表单")])]),n("a-col",{attrs:{md:24,sm:24}},[n("div",{staticClass:"sign",staticStyle:{"text-align":"left",height:"inherit"}},[n("a-col",{attrs:{span:24}},[n("span",[e._v("\n          打印人员:\n        ")]),n("a-input",{staticStyle:{width:"30%"},model:{value:e.printer,callback:function(t){e.printer=t},expression:"printer"}}),n("span",{staticStyle:{"margin-left":"12.5%"}},[e._v("打印日期:")]),n("a-input",{staticStyle:{width:"30%"},model:{value:e.printTime,callback:function(t){e.printTime=t},expression:"printTime"}})],1),n("a-col",{attrs:{span:24}}),n("a-col",{staticStyle:{"margin-top":"20px"},attrs:{span:24}},[n("span",[e._v("打印内容:")]),n("a-input",{staticStyle:{width:"80%"},model:{value:e.printContent,callback:function(t){e.printContent=t},expression:"printContent"}})],1),n("a-col",{staticStyle:{"margin-top":"20px"},attrs:{span:24}},[n("span",[e._v("打印目的:")]),n("a-input",{staticStyle:{width:"80%"},model:{value:e.printReason,callback:function(t){e.printReason=t},expression:"printReason"}})],1),n("a-col",{staticStyle:{"margin-top":"20px"},attrs:{span:24}},[n("span",[e._v("打印图片:")]),n("br"),n("a-upload",{attrs:{action:"/jsonplaceholder.typicode.com/posts/",listType:"picture-card",fileList:e.fileList},on:{preview:e.handlePreview,change:e.handleChange}},[e.fileList.length<3?n("div",[n("a-icon",{attrs:{type:"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v("Upload")])],1):e._e()]),n("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.handleCancel}},[n("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)],1)])],1)])},i=[],o=n("da05"),a=n("290c"),s=n("261e"),l={components:{ATextarea:s["a"],ARow:a["a"],ACol:o["b"]},name:"Printgzsld",props:{reBizCode:{type:String,default:""}},data:function(){return{columns:[{}],labelCol:{xs:{span:24},sm:{span:2}},wrapperCol:{xs:{span:24},sm:{span:8}},printer:"张三",printTime:"2019-02-01 12:00:00",printContent:"打印内容就是,做一个打印测试",printReason:"做一个打印测试",previewVisible:!1,previewImage:"",fileList:[{uid:"-1",name:"xxx.png",status:"done",url:"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"},{uid:"-2",name:"pic1.png",status:"done",url:"https://www.gizbot.com/img/2016/11/whatsapp-error-lead-image-08-1478607387.jpg"}],url:{loadApplicant:"/sps/register/loadApplicants",loadRegisterFiles:"/sps/register/getRegisterFilesConfig"}}},created:function(){this.getDate()},methods:{loadData:function(){},getDate:function(){},handleCancel:function(){this.previewVisible=!1},handlePreview:function(e){this.previewImage=e.url||e.thumbUrl,this.previewVisible=!0},handleChange:function(e){var t=e.fileList;this.fileList=t}}},c=l,u=(n("41b7"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"a6fead70",null);t["default"]=d.exports},"91be":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-list",{attrs:{itemLayout:"horizontal",dataSource:e.data}})},i=[],o={data:function(){return{data:[]}},methods:{}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"e454e91e",null);t["default"]=l.exports},"91dd":function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"===typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,f,h,p,m=e[u].replace(s,"%20"),g=m.indexOf(n);g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),h=decodeURIComponent(d),p=decodeURIComponent(f),r(a,h)?i(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},9204:function(e,t,n){"use strict";n("381b")},"92b7":function(e,t,n){},"92c1":function(e,t,n){"use strict";n("5ac7")},"92fa5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("835b");function i(e,t){if(!e)throw new r["a"](t)}},93906:function(e,t,n){var r=n("9eab");e.exports=function(e){var t=0,n=e.connectionPool,i=n._onConnectionDied,o=function(){o.timerId=e._timeout(o.timerId),e.sniff()},a=function(e){var t=r.now();return function(){return t-e}};n._onConnectionDied=function(r,s){var l=i.call(n,r,s);t=o.timerId?t+1:0;var c=n.calcDeadTimeout(t,1e3);return o.timerId&&c<o.timerId&&o.countdown()&&(o.timerId=e._timeout(o.timerId)),o.timerId||(o.timerId=e._timeout(o,c),o.countdown=a(c)),l},n._onConnectionDied.restore=function(){n._onConnectionDied=i}}},9401:function(e,t,n){var r=n("2ace");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"942d":function(e,t,n){"use strict";n.r(t);for(var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{width:null==e.width?"auto":e.width+"px"}},[n("v-chart",{attrs:{forceFit:null==e.width,height:e.height,data:e.data,padding:"0"}},[n("v-tooltip"),n("v-bar",{attrs:{position:"x*y"}})],1)],1)},i=[],o=(n("c5f6"),n("5a0c")),a=n.n(o),s=[],l=(new Date).getTime(),c=0;c<10;c++)s.push({x:a()(new Date(l+864e5*c)).format("YYYY-MM-DD"),y:Math.round(10*Math.random())});var u=["x*y",function(e,t){return{name:e,value:t}}],d=[{dataKey:"x",min:2},{dataKey:"y",title:"时间",min:1,max:30}],f={name:"MiniBar",props:{dataSource:{type:Array,default:function(){return[]}},width:{type:Number,default:null},height:{type:Number,default:200}},created:function(){0===this.dataSource.length?this.data=s:this.data=this.dataSource},data:function(){return{tooltip:u,data:[],scale:d}}},h=f,p=(n("d259"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"977e29aa",null);t["default"]=m.exports},9434:function(e,t,n){n("e8b0")},9474:function(e,t,n){},"94ab":function(e,t,n){"use strict";n("c2f5")},"94ce":function(e,t){(function(){"use strict";var e=function(){},t=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},n=function(e,t){return function(n){return e(t(n))}},r=function(e){return function(){return e}},i=function(e){return e};function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var a=function(e){return function(t){return!e(t)}},s=function(e){return function(){throw new Error(e)}},l=r(!1),c=r(!0),u=function(){return d},d=function(){var t=function(e){return e.isNone()},n=function(e){return e()},i=function(e){return e},o={fold:function(e,t){return e()},is:l,isSome:l,isNone:c,getOr:i,getOrThunk:n,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:i,orThunk:n,map:u,each:e,bind:u,exists:l,forall:c,filter:u,equals:t,equals_:t,toArray:function(){return[]},toString:r("none()")};return o}(),f=function(e){var t=r(e),n=function(){return o},i=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:c,isNone:l,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return f(t(e))},each:function(t){t(e)},bind:i,exists:i,forall:i,filter:function(t){return t(e)?o:d},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(l,(function(t){return n(e,t)}))}};return o},h=function(e){return null===e||void 0===e?d:f(e)},p={some:f,none:u,from:h},m=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},g=function(e){return function(t){return m(t)===e}},v=function(e){return function(t){return typeof t===e}},y=function(e){return function(t){return e===t}},b=g("string"),_=g("object"),w=g("array"),x=v("boolean"),S=y(void 0),C=function(e){return null===e||void 0===e},E=function(e){return!C(e)},k=v("function"),O=v("number"),T=Array.prototype.slice,I=Array.prototype.indexOf,A=Array.prototype.push,R=function(e,t){return I.call(e,t)},P=function(e,t){return R(e,t)>-1},M=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},N=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},L=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},D=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},j=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},F=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},B=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},q=function(e,t,n){return j(e,(function(e){n=t(n,e)})),n},z=function(e,t,n){return D(e,(function(e){n=t(n,e)})),n},U=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return p.some(o);if(n(o,r))break}return p.none()},G=function(e,t){return U(e,t,l)},V=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return p.some(n)}return p.none()},W=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!w(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);A.apply(t,e[n])}return t},H=function(e,t){return W(L(e,t))},$=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},K=function(e){var t=T.call(e,0);return t.reverse(),t},X=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},Y=function(e){return[e]},J=function(e,t){var n=T.call(e,0);return n.sort(t),n},Q=function(e,t){return t>=0&&t<e.length?p.some(e[t]):p.none()},Z=function(e){return Q(e,0)},ee=function(e){return Q(e,e.length-1)},te=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return p.none()},ne=function(){return ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ne.apply(this,arguments)};function re(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var ie=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},oe=function(e,t,n,i){var o=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!o,s=e.isiOS()||e.isAndroid(),l=s||i("(pointer:coarse)"),c=o||!a&&s&&i("(min-device-width:768px)"),u=a||s&&!c,d=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!u&&!c&&!d;return{isiPad:r(o),isiPhone:r(a),isTablet:r(c),isPhone:r(u),isTouch:r(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:r(d),isDesktop:r(f)}},ae=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},se=function(e,t){var n=ae(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return ue(r(1),r(2))},le=function(e,t){var n=String(t).toLowerCase();return 0===e.length?ce():se(e,n)},ce=function(){return ue(0,0)},ue=function(e,t){return{major:e,minor:t}},de={nu:ue,detect:le,unknown:ce},fe=function(e,t){var n=String(t).toLowerCase();return G(e,(function(e){return e.search(n)}))},he=function(e,t){return fe(e,t).map((function(e){var n=de.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},pe=function(e,t){return fe(e,t).map((function(e){var n=de.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},me={detectBrowser:he,detectOs:pe},ge=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ve=function(e,t){return-1!==e.indexOf(t)},ye=function(e,t){return ge(e,t,0)},be=function(e,t){return ge(e,t,e.length-t.length)},_e=function(e){return function(t){return t.replace(e,"")}},we=_e(/^\s+|\s+$/g),xe=function(e){return e.length>0},Se=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ce=function(e){return function(t){return ve(t,e)}},Ee=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ve(e,"edge/")&&ve(e,"chrome")&&ve(e,"safari")&&ve(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Se],search:function(e){return ve(e,"chrome")&&!ve(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ve(e,"msie")||ve(e,"trident")}},{name:"Opera",versionRegexes:[Se,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ce("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ce("firefox")},{name:"Safari",versionRegexes:[Se,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ve(e,"safari")||ve(e,"mobile/"))&&ve(e,"applewebkit")}}],ke=[{name:"Windows",search:Ce("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ve(e,"iphone")||ve(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ce("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ce("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ce("linux"),versionRegexes:[]},{name:"Solaris",search:Ce("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ce("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ce("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Oe={browsers:r(Ee),oses:r(ke)},Te="Edge",Ie="Chrome",Ae="IE",Re="Opera",Pe="Firefox",Me="Safari",Ne=function(){return Le({current:void 0,version:de.unknown()})},Le=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Te),isChrome:r(Ie),isIE:r(Ae),isOpera:r(Re),isFirefox:r(Pe),isSafari:r(Me)}},De={unknown:Ne,nu:Le,edge:r(Te),chrome:r(Ie),ie:r(Ae),opera:r(Re),firefox:r(Pe),safari:r(Me)},je="Windows",Fe="iOS",Be="Android",qe="Linux",ze="OSX",Ue="Solaris",Ge="FreeBSD",Ve="ChromeOS",We=function(){return He({current:void 0,version:de.unknown()})},He=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(je),isiOS:r(Fe),isAndroid:r(Be),isOSX:r(ze),isLinux:r(qe),isSolaris:r(Ue),isFreeBSD:r(Ge),isChromeOS:r(Ve)}},$e={unknown:We,nu:He,windows:r(je),ios:r(Fe),android:r(Be),linux:r(qe),osx:r(ze),solaris:r(Ue),freebsd:r(Ge),chromeos:r(Ve)},Ke=function(e,t){var n=Oe.browsers(),r=Oe.oses(),i=me.detectBrowser(n,e).fold(De.unknown,De.nu),o=me.detectOs(r,e).fold($e.unknown,$e.nu),a=oe(o,i,e,t);return{browser:i,os:o,deviceType:a}},Xe={detect:Ke},Ye=function(e){return window.matchMedia(e).matches},Je=ie((function(){return Xe.detect(navigator.userAgent,Ye)})),Qe=function(){return Je()},Ze=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},et=function(e,t){return Ze(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},tt=8,nt=9,rt=11,it=1,ot=3,at=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return ct(r.childNodes[0])},st=function(e,t){var n=t||document,r=n.createElement(e);return ct(r)},lt=function(e,t){var n=t||document,r=n.createTextNode(e);return ct(r)},ct=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},ut=function(e,t,n){return p.from(e.dom.elementFromPoint(t,n)).map(ct)},dt={fromHtml:at,fromTag:st,fromText:lt,fromDom:ct,fromPoint:ut},ft=function(e,t){var n=e.dom;if(n.nodeType!==it)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},ht=function(e){return e.nodeType!==it&&e.nodeType!==nt&&e.nodeType!==rt||0===e.childElementCount},pt=function(e,t){var n=void 0===t?document:t.dom;return ht(n)?[]:L(n.querySelectorAll(e),dt.fromDom)},mt=function(e,t){var n=void 0===t?document:t.dom;return ht(n)?p.none():p.from(n.querySelector(e)).map(dt.fromDom)},gt=function(e,t){return e.dom===t.dom},vt=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},yt=function(e,t){return et(e.dom,t.dom)},bt=function(e,t){return Qe().browser.isIE()?yt(e,t):vt(e,t)},_t=ft,wt=Object.keys,xt=Object.hasOwnProperty,St=function(e,t){for(var n=wt(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Ct=function(e,t){return Et(e,(function(e,n){return{k:n,v:t(e,n)}}))},Et=function(e,t){var n={};return St(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},kt=function(e){return function(t,n){e[n]=t}},Ot=function(e,t,n,r){var i={};return St(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Tt=function(t,n){var r={};return Ot(t,n,kt(r),e),r},It=function(e,t){var n=[];return St(e,(function(e,r){n.push(t(e,r))})),n},At=function(e){return It(e,(function(e){return e}))},Rt=function(e){return wt(e).length},Pt=function(e,t){return Mt(e,t)?p.from(e[t]):p.none()},Mt=function(e,t){return xt.call(e,t)},Nt=function(e,t){return Mt(e,t)&&void 0!==e[t]&&null!==e[t]},Lt=function(e){for(var t in e)if(xt.call(e,t))return!1;return!0},Dt=["tfoot","thead","tbody","colgroup"],jt=function(e){return P(Dt,e)},Ft=function(e,t){return{rows:e,columns:t}},Bt=function(e,t){return{row:e,column:t}},qt=function(e,t,n){return{element:e,rowspan:t,colspan:n}},zt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Ut=function(e,t,n,r,i,o){return{element:e,rowspan:t,colspan:n,row:r,column:i,isLocked:o}},Gt=function(e,t,n){return{element:e,cells:t,section:n}},Vt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Wt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Ht=function(e,t){return{cells:e,section:t}},$t=function(e,t){return{details:e,section:t}},Kt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},Xt=function(e,t,n){return{element:e,colspan:t,column:n}},Yt=("undefined"!==typeof window?window:Function("return this;")(),function(e){var t=e.dom.nodeName;return t.toLowerCase()}),Jt=function(e){return e.dom.nodeType},Qt=function(e){return function(t){return Jt(t)===e}},Zt=function(e){return Jt(e)===tt||"#comment"===Yt(e)},en=Qt(it),tn=Qt(ot),nn=Qt(nt),rn=Qt(rt),on=function(e){return function(t){return en(t)&&Yt(t)===e}},an=function(e){return dt.fromDom(e.dom.ownerDocument)},sn=function(e){return nn(e)?e:an(e)},ln=function(e){return dt.fromDom(sn(e).dom.defaultView)},cn=function(e){return p.from(e.dom.parentNode).map(dt.fromDom)},un=function(e,t){var n=k(t)?t:l,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=dt.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},dn=function(e){return p.from(e.dom.offsetParent).map(dt.fromDom)},fn=function(e){return p.from(e.dom.previousSibling).map(dt.fromDom)},hn=function(e){return p.from(e.dom.nextSibling).map(dt.fromDom)},pn=function(e){return L(e.dom.childNodes,dt.fromDom)},mn=function(e,t){var n=e.dom.childNodes;return p.from(n[t]).map(dt.fromDom)},gn=function(e){return mn(e,0)},vn=function(e){return rn(e)&&E(e.dom.host)},yn=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),bn=r(yn),_n=yn?function(e){return dt.fromDom(e.dom.getRootNode())}:sn,wn=function(e){var t=_n(e);return vn(t)?p.some(t):p.none()},xn=function(e){return dt.fromDom(e.dom.host)},Sn=function(e){if(bn()&&E(e.target)){var t=dt.fromDom(e.target);if(en(t)&&Cn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Z(n)}}return p.from(e.target)},Cn=function(e){return E(e.dom.shadowRoot)},En=function(e){var t=tn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var r=t.ownerDocument;return wn(dt.fromDom(t)).fold((function(){return r.body.contains(t)}),n(En,xn))},kn=function(){return On(dt.fromDom(document))},On=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return dt.fromDom(t)},Tn=function(e,t,n){return B(un(e,n),t)},In=function(e,t){return B(pn(e),t)},An=function(e,t){var n=[];return D(pn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(An(e,t))})),n},Rn=function(e,t,n){return Tn(e,(function(e){return ft(e,t)}),n)},Pn=function(e,t){return In(e,(function(e){return ft(e,t)}))},Mn=function(e,t){return pt(t,e)};function Nn(e,t,n,r,i){return e(n,r)?p.some(n):k(i)&&i(n)?p.none():t(n,r,i)}var Ln=function(e,t,n){var r=e.dom,i=k(n)?n:l;while(r.parentNode){r=r.parentNode;var o=dt.fromDom(r);if(t(o))return p.some(o);if(i(o))break}return p.none()},Dn=function(e,t,n){var r=function(e,t){return t(e)};return Nn(r,Ln,e,t,n)},jn=function(e,t){var n=function(e){return t(dt.fromDom(e))},r=G(e.dom.childNodes,n);return r.map(dt.fromDom)},Fn=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=dt.fromDom(e.childNodes[r]);if(t(i))return p.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return p.none()};return n(e.dom)},Bn=function(e,t,n){return Ln(e,(function(e){return ft(e,t)}),n)},qn=function(e,t){return jn(e,(function(e){return ft(e,t)}))},zn=function(e,t){return mt(t,e)},Un=function(e,t,n){var r=function(e,t){return ft(e,t)};return Nn(r,Bn,e,t,n)},Gn=function(e,t,n){if(!(b(n)||x(n)||O(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Vn=function(e,t,n){Gn(e.dom,t,n)},Wn=function(e,t){var n=e.dom;St(t,(function(e,t){Gn(n,t,e)}))},Hn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},$n=function(e,t){return p.from(Hn(e,t))},Kn=function(e,t){e.dom.removeAttribute(t)},Xn=function(e){return z(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},Yn=function(e){return void 0!==e.style&&k(e.style.getPropertyValue)},Jn=function(e,t,n){if(!b(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Yn(e)&&e.style.setProperty(t,n)},Qn=function(e,t){Yn(e)&&e.style.removeProperty(t)},Zn=function(e,t,n){var r=e.dom;Jn(r,t,n)},er=function(e,t){var n=e.dom;St(t,(function(e,t){Jn(n,t,e)}))},tr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||En(e)?i:nr(n,t)},nr=function(e,t){return Yn(e)?e.style.getPropertyValue(t):""},rr=function(e,t){var n=e.dom,r=nr(n,t);return p.from(r).filter((function(e){return e.length>0}))},ir=function(e,t){var n=e.dom;Qn(n,t),$n(e,"style").map(we).is("")&&Kn(e,"style")},or=function(e,t){var n=e.dom,r=t.dom;Yn(n)&&Yn(r)&&(r.style.cssText=n.style.cssText)},ar=function(e,t,n){return void 0===n&&(n=0),$n(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},sr=function(e,t){return ar(e,t,1)},lr=function(e){return sr(e,"colspan")>1},cr=function(e){return sr(e,"rowspan")>1},ur=function(e,t){return parseInt(tr(e,t),10)},dr=r(10),fr=r(10),hr=function(e,t){return pr(e,t,c)},pr=function(e,t,n){return H(pn(e),(function(e){return ft(e,t)?n(e)?[e]:[]:pr(e,t,n)}))},mr=function(e,t,n){if(void 0===n&&(n=l),n(t))return p.none();if(P(e,Yt(t)))return p.some(t);var r=function(e){return ft(e,"table")||n(e)};return Bn(t,e.join(","),r)},gr=function(e,t){return mr(["td","th"],e,t)},vr=function(e){return hr(e,"th,td")},yr=function(e){return ft(e,"colgroup")?Pn(e,"col"):H(wr(e),(function(e){return Pn(e,"col")}))},br=function(e,t){return Un(e,"table",t)},_r=function(e){return hr(e,"tr")},wr=function(e){return br(e).fold(r([]),(function(e){return Pn(e,"colgroup")}))},xr=function(e,t){return L(e,(function(e){if("colgroup"===Yt(e)){var n=L(yr(e),(function(e){var t=ar(e,"span",1);return qt(e,1,t)}));return Gt(e,n,"colgroup")}n=L(vr(e),(function(e){var t=ar(e,"rowspan",1),n=ar(e,"colspan",1);return qt(e,t,n)}));return Gt(e,n,t(e))}))},Sr=function(e){return cn(e).map((function(e){var t=Yt(e);return jt(t)?t:"tbody"})).getOr("tbody")},Cr=function(e){var t=_r(e),n=wr(e),r=re(n,t);return xr(r,Sr)},Er=function(e,t){return xr(e,(function(){return t}))},kr=function(e,t,n){var r=e.cells,i=r.slice(0,t),o=r.slice(t),a=i.concat(n).concat(o);return Ir(e,a)},Or=function(e,t,n){return kr(e,t,[n])},Tr=function(e,t,n){var r=e.cells;r[t]=n},Ir=function(e,t){return Ht(t,e.section)},Ar=function(e,t){var n=e.cells,r=L(n,t);return Ht(r,e.section)},Rr=function(e,t){return e.cells[t]},Pr=function(e,t){return Rr(e,t).element},Mr=function(e){return e.cells.length},Nr=function(e){var t=F(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Lr="data-snooker-locked-cols",Dr=function(e){return $n(e,Lr).bind((function(e){return p.from(e.match(/\d+/g))})).map((function(e){return X(e,c)}))},jr=function(e){var t=z(Nr(e).rows,(function(e,t){return D(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=It(t,(function(e,t){return parseInt(t,10)}));return J(n)},Fr=function(e,t){return e+","+t},Br=function(e,t,n){var r=e.access[Fr(t,n)];return void 0!==r?p.some(r):p.none()},qr=function(e,t,n){var r=zr(e,(function(e){return n(t,e.element)}));return r.length>0?p.some(r[0]):p.none()},zr=function(e,t){var n=H(e.all,(function(e){return e.cells}));return B(n,t)},Ur=function(e){var t={},n=0;return D(e.cells,(function(e){var r=e.colspan;N(r,(function(i){var o=n+i;t[o]=Xt(e.element,r,o)})),n+=r})),t},Gr=function(e){var t={},n=[],r={},i=Z(e).map((function(e){return e.element})).bind(br),o=i.bind(Dr).getOr({}),a=0,s=0,l=0;D(e,(function(e){if("colgroup"===e.section)r=Ur(e);else{var i=[];D(e.cells,(function(e){var n=0;while(void 0!==t[Fr(l,n)])n++;for(var r=Nt(o,n.toString()),a=Ut(e.element,e.rowspan,e.colspan,l,n,r),c=0;c<e.colspan;c++)for(var u=0;u<e.rowspan;u++){var d=l+u,f=n+c,h=Fr(d,f);t[h]=a,s=Math.max(s,f+1)}i.push(a)})),a++,n.push(Gt(e.element,i,e.section)),l++}}));var c=Ft(a,s);return{grid:c,access:t,all:n,columns:r}},Vr=function(e){var t=Cr(e);return Gr(t)},Wr=function(e){return H(e.all,(function(e){return e.cells}))},Hr=function(e){return At(e.columns)},$r=function(e){return wt(e.columns).length>0},Kr=function(e,t){return p.from(e.columns[t])},Xr={fromTable:Vr,generate:Gr,getAt:Br,findItem:qr,filterItems:zr,justCells:Wr,justColumns:Hr,hasColumns:$r,getColumnAt:Kr},Yr=function(e,t){var n=t.column,r=t.column+t.colspan-1,i=t.row,o=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&i<=e.finishRow&&o>=e.startRow},Jr=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},Qr=function(e,t){for(var n=!0,r=o(Jr,t),i=t.startRow;i<=t.finishRow;i++)for(var a=t.startCol;a<=t.finishCol;a++)n=n&&Xr.getAt(e,i,a).exists(r);return n?p.some(t):p.none()},Zr=function(e,t){return Kt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},ei=function(e,t,n){var r=Xr.findItem(e,t,gt),i=Xr.findItem(e,n,gt);return r.bind((function(e){return i.map((function(t){return Zr(e,t)}))}))},ti=function(e,t,n){return ei(e,t,n).bind((function(t){return Qr(e,t)}))},ni=function(e,t,n,r){return Xr.findItem(e,t,gt).bind((function(t){var i=n>0?t.row+t.rowspan-1:t.row,o=r>0?t.column+t.colspan-1:t.column,a=Xr.getAt(e,i+n,o+r);return a.map((function(e){return e.element}))}))},ri=function(e,t,n){return ei(e,t,n).map((function(t){var n=Xr.filterItems(e,o(Yr,t));return L(n,(function(e){return e.element}))}))},ii=function(e,t){var n=function(e,t){return bt(t,e)};return Xr.findItem(e,t,n).map((function(e){return e.element}))},oi=function(e,t,n){return br(e).bind((function(r){var i=ci(r);return ni(i,e,t,n)}))},ai=function(e,t,n){var r=ci(e);return ri(r,t,n)},si=function(e,t,n,r,i){var o=ci(e),a=gt(e,n)?p.some(t):ii(o,t),s=gt(e,i)?p.some(r):ii(o,r);return a.bind((function(e){return s.bind((function(t){return ri(o,e,t)}))}))},li=function(e,t,n){var r=ci(e);return ti(r,t,n)},ci=Xr.fromTable,ui=function(e,t){var n=cn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},di=function(e,t){var n=hn(e);n.fold((function(){var n=cn(e);n.each((function(e){hi(e,t)}))}),(function(e){ui(e,t)}))},fi=function(e,t){var n=gn(e);n.fold((function(){hi(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},hi=function(e,t){e.dom.appendChild(t.dom)},pi=function(e,t){ui(e,t),hi(t,e)},mi=function(e,t){D(t,(function(t){ui(e,t)}))},gi=function(e,t){D(t,(function(n,r){var i=0===r?e:t[r-1];di(i,n)}))},vi=function(e,t){D(t,(function(t){hi(e,t)}))},yi=function(e){e.dom.textContent="",D(pn(e),(function(e){bi(e)}))},bi=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},_i=function(e){var t=pn(e);t.length>0&&mi(e,t),bi(e)},wi=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?p.from(t.dom.nodeValue):p.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},xi=wi(tn,"text"),Si=function(e){return xi.get(e)},Ci=function(e){return xi.getOption(e)},Ei=function(e,t){return xi.set(e,t)},ki=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function Oi(){var e=function(e){return dt.fromDom(e.dom.cloneNode(!1))},t=function(e){return sn(e).dom},n=function(e){return!!en(e)&&("body"===Yt(e)||P(ki,Yt(e)))},i=function(e){return!!en(e)&&P(["br","img","hr","input"],Yt(e))},o=function(e){return en(e)&&"false"===Hn(e,"contenteditable")},a=function(e,t){return e.dom.compareDocumentPosition(t.dom)},s=function(e,t){var n=Xn(e);Wn(t,n)},l=function(e){var t=Yt(e);return P(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)};return{up:r({selector:Bn,closest:Un,predicate:Ln,all:un}),down:r({selector:Mn,predicate:An}),styles:r({get:tr,getRaw:rr,set:Zn,remove:ir}),attrs:r({get:Hn,set:Vn,remove:Kn,copyTo:s}),insert:r({before:ui,after:di,afterAll:gi,append:hi,appendAll:vi,prepend:fi,wrap:pi}),remove:r({unwrap:_i,remove:bi}),create:r({nu:dt.fromTag,clone:e,text:dt.fromText}),query:r({comparePosition:a,prevSibling:fn,nextSibling:hn}),property:r({children:pn,name:Yt,parent:cn,document:t,isText:tn,isComment:Zt,isElement:en,isSpecial:l,getText:Si,setText:Ei,isBoundary:n,isEmptyTag:i,isNonEditable:o}),eq:gt,is:_t}}var Ti=function(e,t,n,r){var i=n[0],o=n.slice(1);return r(e,t,i,o)},Ii=function(e,t,n){return n.length>0?Ti(e,t,n,Ai):p.none()},Ai=function(e,t,n,r){var i=t(e,n);return q(r,(function(n,r){var i=t(e,r);return Ri(e,n,i)}),i)},Ri=function(e,t,n){return t.bind((function(t){return n.filter(o(e.eq,t))}))},Pi=function(e,t){return o(e.eq,t)},Mi=function(e,t,n,r){void 0===r&&(r=l);var i=[t].concat(e.up().all(t)),o=[n].concat(e.up().all(n)),a=function(e){var t=V(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(i),c=a(o),u=G(s,(function(t){return M(c,Pi(e,t))}));return{firstpath:s,secondpath:c,shared:u}},Ni=Ii,Li=Mi,Di=Oi(),ji=function(e,t){return Ni(Di,(function(t,n){return e(n)}),t)},Fi=function(e,t,n){return Li(Di,e,t,n)},Bi=function(e){return Bn(e,"table")},qi=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||gt(t,e)}};return gt(e,t)?p.some({boxes:p.some([e]),start:e,finish:t}):Bi(e).bind((function(i){return Bi(t).bind((function(o){if(gt(i,o))return p.some({boxes:ai(i,e,t),start:e,finish:t});if(bt(i,o)){var a=Rn(t,"td,th",r(i)),s=a.length>0?a[a.length-1]:t;return p.some({boxes:si(i,e,i,t,o),start:e,finish:s})}if(bt(o,i)){a=Rn(e,"td,th",r(o));var l=a.length>0?a[a.length-1]:e;return p.some({boxes:si(o,e,i,t,o),start:e,finish:l})}return Fi(e,t).shared.bind((function(a){return Un(a,"table",n).bind((function(n){var a=Rn(t,"td,th",r(n)),s=a.length>0?a[a.length-1]:t,l=Rn(e,"td,th",r(n)),c=l.length>0?l[l.length-1]:e;return p.some({boxes:si(n,e,i,t,o),start:c,finish:s})}))}))}))}))},zi=function(e,t){var n=Mn(e,t);return n.length>0?p.some(n):p.none()},Ui=function(e,t){return G(e,(function(e){return ft(e,t)}))},Gi=function(e,t,n){return zn(e,t).bind((function(t){return zn(e,n).bind((function(e){return ji(Bi,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},Vi=function(e,t){return Bn(e,"table").bind((function(n){return zn(n,t).bind((function(t){return qi(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},Wi=function(e,t,n,r,i){return Ui(e,i).bind((function(e){return oi(e,t,n).bind((function(e){return Vi(e,r)}))}))},Hi=function(e,t){return zi(e,t)},$i=function(e,t,n){return Gi(e,t,n).bind((function(t){var n=function(t){return gt(e,t)},r="thead,tfoot,tbody,table",i=Bn(t.first,r,n),o=Bn(t.last,r,n);return i.bind((function(e){return o.bind((function(n){return gt(e,n)?li(t.table,t.first,t.last):p.none()}))}))}))},Ki=function(e){if(!w(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return D(e,(function(r,i){var o=wt(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!w(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var l=function(e){var r=wt(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=$(t,(function(e){return P(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:l,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},Xi={generate:Ki},Yi=Xi.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),Ji=function(e,t,n,r){return e.fold(t,n,r)},Qi=Yi.none,Zi=Yi.multiple,eo=Yi.single,to=function(e,t,n){var r=function(){return Hi(e(),n).fold((function(){return t().map(eo).getOrThunk(Qi)}),(function(e){return Zi(e)}))};return{get:r}},no=tinymce.util.Tools.resolve("tinymce.PluginManager"),ro=function(e,t){return dt.fromDom(e.dom.cloneNode(t))},io=function(e){return ro(e,!1)},oo=function(e){return ro(e,!0)},ao=function(e,t){var n=dt.fromTag(t),r=Xn(e);return Wn(n,r),n},so=function(e,t){var n=ao(e,t),r=pn(oo(e));return vi(n,r),n},lo=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},co=function(e,t,n){return e.isSome()&&t.isSome()?p.some(n(e.getOrDie(),t.getOrDie())):p.none()},uo=function(e,t){return void 0!==e&&null!==e?t(e):p.none()},fo=function(e,t){return e?p.some(t):p.none()},ho=function(e,t){var n=function(t,n){if(!O(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;Yn(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=tr(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return z(t,(function(t,n){var r=tr(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},po=ho("width",(function(e){return e.dom.offsetWidth})),mo=function(e){return po.get(e)},go=function(e){return po.getOuter(e)},vo=function(e,t){void 0===t&&(t=c);var n=e.grid,r=N(n.columns,i),o=N(n.rows,i);return L(r,(function(n){var r=function(){return H(o,(function(t){return Xr.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},i=function(e){return 1===e.colspan&&t(e.element)},a=function(){return Xr.getAt(e,0,n)};return yo(r,i,a)}))},yo=function(e,t,n){var r=e(),i=G(r,t),o=i.orThunk((function(){return p.from(r[0]).orThunk(n)}));return o.map((function(e){return e.element}))},bo=function(e){var t=e.grid,n=N(t.rows,i),o=N(t.columns,i);return L(n,(function(t){var n=function(){return H(o,(function(n){return Xr.getAt(e,t,n).filter((function(e){return e.row===t})).fold(r([]),(function(e){return[e]}))}))},i=function(e){return 1===e.rowspan},a=function(){return Xr.getAt(e,t,0)};return yo(n,i,a)}))},_o=function(e,t){if(t<0||t>=e.length-1)return p.none();var n=e[t].fold((function(){var n=K(e.slice(0,t));return te(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return p.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return te(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return p.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},wo=function(e,t){return function(n){return"rtl"===xo(n)?t:e}},xo=function(e){return"rtl"===tr(e,"direction")?"rtl":"ltr"},So=ho("height",(function(e){var t=e.dom;return En(e)?t.getBoundingClientRect().height:t.offsetHeight})),Co=function(e){return So.get(e)},Eo=function(e){return So.getOuter(e)},ko=function(e,t){var n=function(n,r){return ko(e+n,t+r)};return{left:e,top:t,translate:n}},Oo=ko,To=function(e){var t=e.getBoundingClientRect();return Oo(t.left,t.top)},Io=function(e,t){return void 0!==e?e:void 0!==t?t:0},Ao=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Oo(n.offsetLeft,n.offsetTop);var o=Io(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Io(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Io(i.clientTop,n.clientTop),l=Io(i.clientLeft,n.clientLeft);return Ro(e).translate(a-l,o-s)},Ro=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Oo(r.offsetLeft,r.offsetTop):En(e)?To(t):Oo(0,0)},Po=function(e,t){return{row:e,y:t}},Mo=function(e,t){return{col:e,x:t}},No=function(e){var t=Ao(e);return t.left+go(e)},Lo=function(e){return Ao(e).left},Do=function(e,t){return Mo(e,Lo(t))},jo=function(e,t){return Mo(e,No(t))},Fo=function(e){return Ao(e).top},Bo=function(e,t){return Po(e,Fo(t))},qo=function(e,t){return Po(e,Fo(t)+Eo(t))},zo=function(e,t,n){if(0===n.length)return[];var r=L(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),i=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([i])},Uo=function(e){return-e},Go={delta:i,positions:function(e){return zo(Bo,qo,e)},edge:Fo},Vo={delta:i,edge:Lo,positions:function(e){return zo(Do,jo,e)}},Wo={delta:Uo,edge:No,positions:function(e){return zo(jo,Do,e)}},Ho=wo(Vo,Wo),$o={delta:function(e,t){return Ho(t).delta(e,t)},positions:function(e,t){return Ho(t).positions(e,t)},edge:function(e){return Ho(e).edge(e)}},Ko={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Xo=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),Yo=function(e,t){return M(t,(function(t){return M(Ko[t],(function(t){return e===t}))}))},Jo=function(e,t){var n=p.from(Xo.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return Yo(r,t)?p.some({value:n,unit:r}):p.none()}))},Qo=function(){var e=Qe().browser;return e.isIE()||e.isEdge()},Zo=function(e,t){var n=parseFloat(e);return isNaN(n)?t:n},ea=function(e,t,n){return Zo(tr(e,t),n)},ta=function(e){var t=e.dom.getBoundingClientRect().height,n=tr(e,"box-sizing");if("border-box"===n)return t;var r=ea(e,"padding-top",0),i=ea(e,"padding-bottom",0),o=ea(e,"border-top-width",0),a=ea(e,"border-bottom-width",0),s=o+a;return t-r-i-s},na=function(e){var t=e.dom.getBoundingClientRect().width,n=tr(e,"box-sizing");if("border-box"===n)return t;var r=ea(e,"padding-left",0),i=ea(e,"padding-right",0),o=ea(e,"border-left-width",0),a=ea(e,"border-right-width",0),s=o+a;return t-r-i-s},ra=function(e){return Qo()?ta(e):ea(e,"height",Co(e))},ia=function(e){return Qo()?na(e):ea(e,"width",mo(e))},oa=/(\d+(\.\d+)?)%/,aa=/(\d+(\.\d+)?)px|em/,sa=function(e,t){var n=dn(e).getOr(On(an(e)));return t(e)/t(n)*100},la=function(e,t){Zn(e,"width",t+"px")},ca=function(e,t){Zn(e,"width",t+"%")},ua=function(e,t){Zn(e,"height",t+"px")},da=function(e){return rr(e,"height").getOrThunk((function(){return ra(e)+"px"}))},fa=function(e,t,n,r){var i=br(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,i),i},ha=function(e,t,n,r){var i=parseInt(e,10);return be(e,"%")&&"table"!==Yt(t)?fa(t,i,n,r):i},pa=function(e){var t=da(e);return t?ha(t,e,Co,ua):Co(e)},ma=function(e,t,n){var r=n(e),i=sr(e,t);return r/i},ga=function(e){var t=rr(e,"width");return t.fold((function(){return p.from(Hn(e,"width"))}),(function(e){return p.some(e)}))},va=function(e,t){return e/t.pixelWidth()*100},ya=function(e,t,n){var r=oa.exec(t);if(null!==r)return parseFloat(r[1]);var i=ia(e);return va(i,n)},ba=function(e,t){var n=ga(e);return n.fold((function(){var n=mo(e);return va(n,t)}),(function(n){return ya(e,n,t)}))},_a=function(e,t){return e/100*t.pixelWidth()},wa=function(e,t,n){var r=aa.exec(t);if(null!==r)return parseInt(r[1],10);var i=oa.exec(t);if(null!==i){var o=parseFloat(i[1]);return _a(o,n)}return ia(e)},xa=function(e,t){var n=ga(e);return n.fold((function(){return ia(e)}),(function(n){return wa(e,n,t)}))},Sa=function(e){return ma(e,"rowspan",pa)},Ca=function(e){var t=ga(e);return t.bind((function(e){return Jo(e,["fixed","relative","empty"])}))},Ea=function(e,t,n){Zn(e,"width",t+n)},ka=function(e){return mo(e)+"px"},Oa=function(e){return sa(e,mo)+"%"},Ta=function(e){return ga(e).exists((function(e){return oa.test(e)}))},Ia=function(e){return ga(e).exists((function(e){return aa.test(e)}))},Aa=function(e){return ga(e).isNone()},Ra=r(oa),Pa=r(aa),Ma=on("col"),Na=function(e,t,n){return rr(e,t).fold((function(){return n(e)+"px"}),(function(e){return e}))},La=function(e,t){var n=function(e){return Ma(e)?mo(e):xa(e,t)};return Na(e,"width",n)},Da=function(e){return Na(e,"height",Sa)},ja=function(e){return L(Xr.justColumns(e),(function(e){return p.from(e.element)}))},Fa=function(e,t){return rr(e,t).isSome()},Ba=function(e){return!Ma(e)||Fa(e,"width")},qa=function(e,t,n,r,i,o){return e.filter(r).fold((function(){return o(_o(n,t))}),(function(e){return i(e)}))},za=function(e,t,n,r,o){var s=vo(e,(function(e){return Fa(e,"width")})),l=Xr.hasColumns(e)?ja(e):s,c=[p.some($o.edge(t))].concat(L($o.positions(s,t),(function(e){return e.map((function(e){return e.x}))}))),u=a(lr);return L(l,(function(e,t){return qa(e,t,c,u,(function(e){if(Ba(e))return n(e,o);var a=uo(s[t],i);return qa(a,t,c,u,(function(e){return r(p.some(mo(e)))}),r)}),r)}))},Ua=function(e){return e.map((function(e){return e+"px"})).getOr("")},Ga=function(e,t,n){return za(e,t,La,Ua,n)},Va=function(e,t,n){return za(e,t,ba,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}),n)},Wa=function(e,t,n){return za(e,t,xa,(function(e){return e.getOrThunk(n.minCellWidth)}),n)},Ha=function(e,t,n,r,i){var o=bo(e),s=[p.some(n.edge(t))].concat(L(n.positions(o,t),(function(e){return e.map((function(e){return e.y}))})));return L(o,(function(e,t){return qa(e,t,s,a(cr),r,i)}))},$a=function(e,t,n){return Ha(e,t,n,Sa,(function(e){return e.getOrThunk(fr)}))},Ka=function(e,t,n){return Ha(e,t,n,Da,Ua)},Xa=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Ya=function(t){var n=function(){return mo(t)},i=r(0),o=function(e,n){return Wa(e,t,n)};return{width:n,pixelWidth:n,getWidths:o,getCellDelta:i,singleColumnWidth:r([0]),minCellWidth:i,setElementWidth:e,adjustTableWidth:e,isRelative:!0,label:"none"}},Ja=function(e,t){var n=Xa(parseFloat(e)),r=Xa(mo(t)),i=function(e){return e/r.get()*100},o=function(e,t){return[100-e]},a=function(){return dr()/r.get()*100},s=function(e){var i=n.get(),o=e/100*i,a=i+o;ca(t,a),n.set(a),r.set(mo(t))},l=function(e,n){return Va(e,t,n)};return{width:n.get,pixelWidth:r.get,getWidths:l,getCellDelta:i,singleColumnWidth:o,minCellWidth:a,setElementWidth:ca,adjustTableWidth:s,isRelative:!0,label:"percent"}},Qa=function(e,t){var n=Xa(e),r=n.get,o=i,a=function(e,t){var n=Math.max(dr(),e+t);return[n-e]},s=function(e){var i=r()+e;la(t,i),n.set(i)},l=function(e,n){return Wa(e,t,n)};return{width:r,pixelWidth:r,getWidths:l,getCellDelta:o,singleColumnWidth:a,minCellWidth:dr,setElementWidth:la,adjustTableWidth:s,isRelative:!1,label:"pixel"}},Za=function(e,t){var n=Ra().exec(t);if(null!==n)return Ja(n[1],e);var r=Pa().exec(t);if(null!==r){var i=parseInt(r[1],10);return Qa(i,e)}var o=mo(e);return Qa(o,e)},es=function(e){var t=ga(e);return t.fold((function(){return Ya(e)}),(function(t){return Za(e,t)}))},ts={getTableSize:es,pixelSize:Qa,percentageSize:Ja,noneSize:Ya},ns=function(e,t,n,r,i,o){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:i,selectedCells:o}},rs=function(e,t){var n=e.grid.columns,r=e.grid.rows,i=r,o=n,a=0,s=0,l=[],c=[];return St(e.access,(function(e){if(l.push(e),t(e)){c.push(e);var n=e.row,r=n+e.rowspan-1,u=e.column,d=u+e.colspan-1;n<i?i=n:r>a&&(a=r),u<o?o=u:d>s&&(s=d)}})),ns(i,o,a,s,l,c)},is=function(e,t,n){var r=e[n].element,i=dt.fromTag("td");hi(i,dt.fromTag("br"));var o=t?hi:fi;o(r,i)},os=function(e,t,n,r){for(var i=t.grid.columns,o=t.grid.rows,a=0;a<o;a++)for(var s=!1,l=0;l<i;l++)if(!(a<n.minRow||a>n.maxRow||l<n.minCol||l>n.maxCol)){var c=Xr.getAt(t,a,l).filter(r).isNone();c?is(e,s,a):s=!0}},as=function(e,t,n,r){St(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&bi(e.element)}));var i=B(hr(e,"tr"),(function(e){return 0===e.dom.childElementCount}));D(i,bi),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||D(hr(e,"th,td"),(function(e){Kn(e,"rowspan"),Kn(e,"colspan")})),Kn(e,Lr),Kn(e,"data-snooker-col-series");var o=ts.getTableSize(e);o.adjustTableWidth(r)},ss=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var i=Wa(t,e,n),o=z(i,(function(e,t){return e+t}),0),a=z(i.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),s=a/o*n.pixelWidth(),l=s-n.pixelWidth();return n.getCellDelta(l)},ls=function(e,t){var n=function(e){return ft(e.element,t)},r=oo(e),i=Cr(r),o=ts.getTableSize(e),a=Xr.generate(i),s=rs(a,n),l="th:not("+t+"),td:not("+t+")",c=pr(r,"th,td",(function(e){return ft(e,l)}));D(c,bi),os(i,a,s,n);var u=Xr.fromTable(e),d=ss(e,u,o,s);return as(r,s,a,d),r},cs=" ",us=function(e){return"img"===Yt(e)?1:Ci(e).fold((function(){return pn(e).length}),(function(e){return e.length}))},ds=function(e){return Ci(e).filter((function(e){return 0!==e.trim().length||e.indexOf(cs)>-1})).isSome()},fs=["img","br"],hs=function(e){var t=ds(e);return t||P(fs,Yt(e))},ps=function(e){return Fn(e,hs)},ms=function(e){return gs(e,hs)},gs=function(e,t){var n=function(e){for(var r=pn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return p.some(o);var a=n(o);if(a.isSome())return a}return p.none()};return n(e)},vs={scope:["row","col"]},ys=function(){var e=dt.fromTag("td");return hi(e,dt.fromTag("br")),e},bs=function(){return dt.fromTag("col")},_s=function(){return dt.fromTag("colgroup")},ws=function(e,t,n){var r=so(e,t);return St(n,(function(e,t){null===e?Kn(r,t):Vn(r,t,e)})),r},xs=function(e){return e},Ss=function(e){return function(){return dt.fromTag("tr",e.dom)}},Cs=function(e,t,n){var r=ps(e);return r.map((function(r){var i=n.join(","),o=Rn(r,i,(function(t){return gt(t,e)}));return q(o,(function(e,t){var n=io(t);return Kn(n,"contenteditable"),hi(e,n),n}),t)})).getOr(t)},Es=function(e,t){St(vs,(function(n,r){return $n(e,r).filter((function(e){return P(n,e)})).each((function(e){return Vn(t,r,e)}))}))},ks=function(e,t,n){var r=function(e,t){or(e.element,t),ir(t,"height"),1!==e.colspan&&ir(t,"width")},i=function(t){var i=an(t.element),o=dt.fromTag(Yt(t.element),i.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?Cs(t.element,o,a):o;return hi(s,dt.fromTag("br")),r(t,o),Es(t.element,o),e(t.element,o),o},o=function(t){var n=an(t.element),i=dt.fromTag(Yt(t.element),n.dom);return r(t,i),e(t.element,i),i};return{col:o,colgroup:_s,row:Ss(t),cell:i,replace:ws,gap:ys}},Os=function(e){return{col:bs,colgroup:_s,row:Ss(e),cell:ys,replace:xs,gap:ys}},Ts=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,pn(dt.fromDom(r))},Is=function(e){return L(e,dt.fromDom)},As=function(e){return e.nodeName.toLowerCase()},Rs=function(e){return dt.fromDom(e.getBody())},Ps=function(e){return e.getBoundingClientRect().width},Ms=function(e){return e.getBoundingClientRect().height},Ns=function(e){return function(t){return gt(t,Rs(e))}},Ls=function(e){return e?e.replace(/px$/,""):""},Ds=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},js=function(e){Kn(e,"data-mce-style");var t=function(e){return Kn(e,"data-mce-style")};D(vr(e),t),D(yr(e),t)},Fs=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return p.from(n).filter(xe)},Bs=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},qs=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},zs=function(e){return dt.fromDom(e.selection.getStart())},Us=function(e){return Ji(e.get(),r([]),i,Y)},Gs=function(e){var t=function(e,t){return $n(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=Us(e);return r.length>0&&$(r,n)?p.some(r):p.none()},Vs=function(e,t,n){return Ji(t.get(),p.none,(function(t){return t.length<=1?p.none():$i(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),p.none)},Ws="data-mce-selected",Hs="td["+Ws+"],th["+Ws+"]",$s="["+Ws+"]",Ks="data-mce-first-selected",Xs="td["+Ks+"],th["+Ks+"]",Ys="data-mce-last-selected",Js="td["+Ys+"],th["+Ys+"]",Qs=$s,Zs={selected:Ws,selectedSelector:Hs,firstSelected:Ks,firstSelectedSelector:Xs,lastSelected:Ys,lastSelectedSelector:Js},el=function(e){return{element:e,mergable:p.none(),unmergable:p.none(),selection:[e]}},tl=function(e,t,n){return{element:n,mergable:Vs(t,e,Zs),unmergable:Gs(e),selection:Us(e)}},nl=function(e,t,n){return{element:e,clipboard:t,generators:n}},rl=function(e,t,n,r){return{selection:Us(e),clipboard:n,generators:r}},il=function(e){return br(e[0]).map((function(e){var t=ls(e,Qs);return js(t),[t]}))},ol=function(e,t){return L(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},al=function(e){return L(e,(function(e){return e.dom.innerText})).join("")},sl=function(t,n,r,i){t.on("BeforeGetContent",(function(r){var i=function(e){r.preventDefault(),il(e).each((function(e){r.content="text"===r.format?al(e):ol(t,e)}))};!0===r.selection&&Ji(n.get(),e,i,e)})),t.on("BeforeSetContent",(function(e){if(!0===e.selection&&!0===e.paste){var n=p.from(t.dom.getParent(t.selection.getStart(),"th,td"));n.each((function(n){var o=dt.fromDom(n);br(o).each((function(n){var a=B(Ts(e.content),(function(e){return"meta"!==Yt(e)})),s=function(e){return"table"===Yt(e)};if(1===a.length&&s(a[0])){e.preventDefault();var l=dt.fromDom(t.getDoc()),c=Os(l),u=nl(o,a[0],c);r.pasteCells(n,u).each((function(e){t.selection.setRng(e.rng),t.focus(),i.clear(n)}))}}))}))}}))},ll=Xi.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),cl=ne({},ll),ul=function(e,t){return 0===e.length?cl.none():1===e.length?cl.only(0):0===t?cl.left(0,1):t===e.length-1?cl.right(t-1,t):t>0&&t<e.length-1?cl.middle(t-1,t,t+1):cl.none()},dl=function(e,t,n,i,o){var a=e.slice(0),s=ul(e,t),l=r(L(a,r(0))),c=function(e){return i.singleColumnWidth(a[e],n)},u=function(e,t){return o.calcLeftEdgeDeltas(a,e,t,n,i.minCellWidth(),i.isRelative)},d=function(e,t,r){return o.calcMiddleDeltas(a,e,t,r,n,i.minCellWidth(),i.isRelative)},f=function(e,t){return o.calcRightEdgeDeltas(a,e,t,n,i.minCellWidth(),i.isRelative)};return s.fold(l,c,u,d,f)},fl=function(e,t,n){for(var r=0,i=e;i<t;i++)r+=void 0!==n[i]?n[i]:0;return r},hl=function(e,t){var n=Xr.justCells(e);return L(n,(function(e){var n=fl(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},pl=function(e,t){var n=Xr.justColumns(e);return L(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},ml=function(e,t){var n=Xr.justCells(e);return L(n,(function(e){var n=fl(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},gl=function(e,t){return L(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},vl=function(e){return q(e,(function(e,t){return e+t}),0)},yl=function(e,t){return Xr.hasColumns(e)?pl(e,t):hl(e,t)},bl=function(e,t,n){var r=yl(e,t);D(r,(function(e){n.setElementWidth(e.element,e.width)}))},_l=function(e,t,n,r,i){var o=Xr.fromTable(e),a=i.getCellDelta(t),s=i.getWidths(o,i),l=n===o.grid.columns-1,c=r.clampTableDelta(s,n,a,i.minCellWidth(),l),u=dl(s,n,c,i,r),d=L(u,(function(e,t){return e+s[t]}));bl(o,d,i),r.resizeTable(i.adjustTableWidth,c,l)},wl=function(e,t,n,r){var i=Xr.fromTable(e),o=$a(i,e,r),a=L(o,(function(e,r){return n===r?Math.max(t+e,fr()):e})),s=ml(i,a),l=gl(i,a);D(l,(function(e){ua(e.element,e.height)})),D(s,(function(e){ua(e.element,e.height)}));var c=vl(a);ua(e,c)},xl=function(e,t,n,r,i){var o=Xr.generate(t),a=r.getWidths(o,r),s=r.pixelWidth(),l=i.calcRedestributedWidths(a,s,n.pixelDelta,r.isRelative),c=l.newSizes,u=l.delta;bl(o,c,r),r.adjustTableWidth(u)},Sl=function(e,t,n,r){var i=Xr.generate(t),o=r.getWidths(i,r);bl(i,o,r)},Cl=function(e){return L(e,r(0))},El=function(e,t,n,r,i){return i(e.slice(0,t)).concat(r).concat(i(e.slice(n)))},kl=function(e){return function(t,n,r,i){if(e(r)){var o=Math.max(i,t[n]-Math.abs(r)),a=Math.abs(o-t[n]);return r>=0?a:-a}return r}},Ol=kl((function(e){return e<0})),Tl=kl(c),Il=function(){var e=function(e,t,n,r,i){var o=Ol(e,t,r,i);return El(e,t,n+1,[o,0],Cl)},t=function(e,t,n,r){var i=(100+n)/100,o=Math.max(r,(e[t]+n)/i);return L(e,(function(e,n){var r=n===t?o:e/i;return r-e}))},n=function(n,r,i,o,a,s){return s?t(n,r,o,a):e(n,r,i,o,a)},r=function(e,t,r,i,o,a,s){return n(e,r,i,o,a,s)},i=function(e,t){return e(t)},o=function(e,n,r,i,o,a){if(a)return t(e,r,i,o);var s=Ol(e,r,i,o);return Cl(e.slice(0,r)).concat([s])},a=function(e,t,n,r){if(r){var i=t+n,o=i/t,a=L(e,(function(e){return e/o}));return{delta:100*o-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:i,clampTableDelta:Ol,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:o,calcRedestributedWidths:a}},Al=function(){var e=function(e,t,n,r,i){var o=r>=0?n:t,a=Tl(e,o,r,i);return El(e,t,n+1,[a,-a],Cl)},t=function(t,n,r,i,o,a){return e(t,r,i,o,a)},n=function(e,t,n){n&&e(t)},i=function(e,t,n,i,o,a){if(a)return Cl(e);var s=i/e.length;return L(e,r(s))},o=function(e,t,n,r,i){if(i){if(n>=0)return n;var o=z(e,(function(e,t){return e+t-r}),0);return Math.max(-o,n)}return Ol(e,t,n,r)},a=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:o,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:i,calcRedestributedWidths:a}},Rl=function(e,t){var n=p.from(e.dom.documentElement).map(dt.fromDom).getOr(e);return{parent:r(n),view:r(e),origin:r(Oo(0,0)),isResizable:t}},Pl=function(e,t,n){var i=function(){return Ao(t)};return{parent:r(t),view:r(e),origin:i,isResizable:n}},Ml=function(e,t,n){return{parent:r(t),view:r(e),origin:r(Oo(0,0)),isResizable:n}},Nl={only:Rl,detached:Pl,body:Ml},Ll=Xi.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),Dl=function(e,t,n){var r=n.substring(0,n.length-e.length),i=parseFloat(r);return r===i.toString()?t(i):Ll.invalid(n)},jl=function(e){return be(e,"%")?Dl("%",Ll.percent,e):be(e,"px")?Dl("px",Ll.pixels,e):Ll.invalid(e)},Fl=ne(ne({},Ll),{from:jl}),Bl=function(e,t){return L(e,(function(e){var n=Fl.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},ql=function(e,t,n){var r=n/t;return L(e,(function(e){var t=Fl.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},zl=function(e,t){var n=e.fold((function(){return r("")}),(function(e){var n=e/t;return r(n+"px")}),(function(){var e=100/t;return r(e+"%")}));return N(t,n)},Ul=function(e,t,n){return e.fold((function(){return t}),(function(e){return ql(t,n,e)}),(function(e){return Bl(t,n)}))},Gl=function(e,t,n){var r=Fl.from(n),i=$(e,(function(e){return"0px"===e}))?zl(r,e.length):Ul(r,e,t);return $l(i)},Vl=function(e,t){return 0===e.length?t:q(e,(function(e,t){return Fl.from(t).fold(r(0),i,i)+e}),0)},Wl=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},Hl=function(e,t){return Fl.from(e).fold(r(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},$l=function(e){if(0===e.length)return e;var t=q(e,(function(e,t){var n=Fl.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return Wl(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([Hl(n[n.length-1],Math.round(t.remainder))])},Kl=Fl.from,Xl=function(e,t,n){D(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),i=Vl(r,dr());Zn(t.element,"width",i+n)}))},Yl=function(e,t,n){D(t,(function(t,r){var i=Vl([e[r]],dr());Zn(t.element,"width",i+n)}))},Jl=function(e,t,n,r){D(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),i=Vl(n,fr());Zn(t.element,"height",i+r)})),D(t,(function(t,n){Zn(t.element,"height",e[n])}))},Ql=function(e){return Kl(e).fold(r("px"),r("px"),r("%"))},Zl=function(e,t,n,r){var i=Xr.fromTable(e),o=i.all,a=Xr.justCells(i),s=Xr.justColumns(i);t.each((function(t){var n=Ql(t),o=mo(e),l=Ga(i,e,r),c=Gl(l,o,t);Xr.hasColumns(i)?Yl(c,s,n):Xl(c,a,n),Zn(e,"width",t)})),n.each((function(t){var n=Ql(t),r=Co(e),s=Ka(i,e,Go),l=Gl(s,r,t);Jl(l,o,a,n),Zn(e,"height",t)}))},ec=Ta,tc=Ia,nc=Aa,rc=Oa,ic=function(e){var t=Xr.fromTable(e);return t.grid},oc=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=B(t,(function(t){return t!==e}))},i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};D(e,(function(e,t){i[e]=n[t]})),D(t,(function(e){e(i)}))};return{bind:n,unbind:r,trigger:i}},ac=function(e){var t=Ct(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=Ct(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},sc=function(e,t){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((function(){e.apply(null,r),n=null}),t)};return{cancel:r,throttle:i}},lc=function(e){return e.slice(0).sort()},cc=function(e,t){throw new Error("All required keys ("+lc(e).join(", ")+") were not specified. Specified keys were: "+lc(t).join(", ")+".")},uc=function(e){throw new Error("Unsupported keys for object: "+lc(e).join(", "))},dc=function(e,t){if(!w(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");D(t,(function(t){if(!b(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},fc=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+lc(e).join(", ")+") were not.")},hc=function(e){var t=lc(e),n=G(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},pc=function(e,t){return mc(e,t,{validate:k,label:"function"})},mc=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return dc("required",t),hc(t),function(r){var i=wt(r),o=$(t,(function(e){return P(i,e)}));o||cc(t,i),e(t,i);var a=B(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&fc(a,n.label),r}},gc=function(e,t){var n=B(t,(function(t){return!P(e,t)}));n.length>0&&uc(n)},vc=function(e){return pc(gc,e)},yc=vc(["compare","extract","mutate","sink"]),bc=vc(["element","start","stop","destroy"]),_c=vc(["forceDrop","drop","move","delayDrop"]),wc=function(){var e=p.none(),t=function(){e=p.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=p.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){i.trigger.move(e)}))}))},i=ac({move:oc(["info"])});return{onEvent:r,reset:t,events:i.registry}},xc=function(){var t=ac({move:oc(["info"])});return{onEvent:e,reset:e,events:t.registry}},Sc=function(){var e=xc(),t=wc(),n=e,r=function(){n.reset(),n=t},i=function(){n.reset(),n=e},o=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:i,isOn:a,onEvent:o,events:t.events}},Cc=function(e,t,n){var r=!1,i=ac({start:oc([]),stop:oc([])}),o=Sc(),a=function(){h.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=sc(a,200),l=function(e){h.start(e),o.on(),i.trigger.start()},c=function(e){s.cancel(),o.onEvent(e,t)};o.events.move.bind((function(n){t.mutate(e,n.info)}));var u=function(){r=!0},d=function(){r=!1},f=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},h=t.sink(_c({forceDrop:a,drop:f(a),move:f(c),delayDrop:f(s.throttle)}),n),p=function(){h.destroy()};return{element:h.element,go:l,on:u,off:d,destroy:p,events:i.registry}},Ec=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},kc=function(e){var n=dt.fromDom(Sn(e).getOr(e.target)),r=function(){return e.stopPropagation()},i=function(){return e.preventDefault()},o=t(i,r);return Ec(n,e.clientX,e.clientY,r,i,o,e)},Oc=function(e,t){return function(n){e(n)&&t(kc(n))}},Tc=function(e,t,n,r,i){var a=Oc(n,r);return e.dom.addEventListener(t,a,i),{unbind:o(Ac,e,t,a,i)}},Ic=function(e,t,n,r){return Tc(e,t,n,r,!1)},Ac=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Rc=c,Pc=function(e,t,n){return Ic(e,t,Rc,n)},Mc=kc,Nc=function(e,t){var n=Hn(e,t);return void 0===n||""===n?[]:n.split(" ")},Lc=function(e,t,n){var r=Nc(e,t),i=r.concat([n]);return Vn(e,t,i.join(" ")),!0},Dc=function(e,t,n){var r=B(Nc(e,t),(function(e){return e!==n}));return r.length>0?Vn(e,t,r.join(" ")):Kn(e,t),!1},jc=function(e){return void 0!==e.dom.classList},Fc=function(e){return Nc(e,"class")},Bc=function(e,t){return Lc(e,"class",t)},qc=function(e,t){return Dc(e,"class",t)},zc=function(e,t){jc(e)?e.dom.classList.add(t):Bc(e,t)},Uc=function(e){var t=jc(e)?e.dom.classList:Fc(e);0===t.length&&Kn(e,"class")},Gc=function(e,t){if(jc(e)){var n=e.dom.classList;n.remove(t)}else qc(e,t);Uc(e)},Vc=function(e,t){return jc(e)&&e.dom.classList.contains(t)},Wc=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},Hc=Wc("ephox-dragster"),$c=Hc.resolve,Kc=function(e){var t=ne({layerClass:$c("blocker")},e),n=dt.fromTag("div");Vn(n,"role","presentation"),er(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),zc(n,$c("blocker")),zc(n,t.layerClass);var r=function(){return n},i=function(){bi(n)};return{element:r,destroy:i}},Xc=function(e,t){return Oo(t.left-e.left,t.top-e.top)},Yc=function(e){return p.some(Oo(e.x,e.y))},Jc=function(e,t){e.mutate(t.left,t.top)},Qc=function(e,t){var n=Kc(t),r=Pc(n.element(),"mousedown",e.forceDrop),i=Pc(n.element(),"mouseup",e.drop),o=Pc(n.element(),"mousemove",e.move),a=Pc(n.element(),"mouseout",e.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},l=function(e){hi(e,n.element())},c=function(){bi(n.element())};return bc({element:n.element,start:l,stop:c,destroy:s})},Zc=yc({compare:Xc,extract:Yc,sink:Qc,mutate:Jc}),eu=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:Zc;return Cc(e,n,t)},tu=function(e){return"true"===Hn(e,"contenteditable")},nu=function(e,t){return Un(e,"[contenteditable]",t)},ru=Wc("ephox-snooker"),iu=ru.resolve,ou=function(){var e=ac({drag:oc(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},au=function(){var e=ac({drag:oc(["xDelta","yDelta","target"])}),t=p.none(),n=ou();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=p.some(e)},i=function(){return t};return{assign:r,get:i,mutate:n.mutate,events:e.registry}},su=function(e,t,n,r,i){var o=dt.fromTag("div");return er(o,{position:"absolute",left:t-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),Wn(o,{"data-column":e,role:"presentation"}),o},lu=function(e,t,n,r,i){var o=dt.fromTag("div");return er(o,{position:"absolute",left:t+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),Wn(o,{"data-row":e,role:"presentation"}),o},cu=iu("resizer-bar"),uu=iu("resizer-rows"),du=iu("resizer-cols"),fu=7,hu=function(e,t){return H(e.all,(function(e,n){return t(e.element)?[n]:[]}))},pu=function(e,t){var n=[];return N(e.grid.columns,(function(r){var i=Xr.getColumnAt(e,r).map((function(e){return e.element}));i.forall(t)&&n.push(r)})),B(n,(function(n){var r=Xr.filterItems(e,(function(e){return e.column===n}));return $(r,(function(e){return t(e.element)}))}))},mu=function(e){var t=Mn(e.parent(),"."+cu);D(t,bi)},gu=function(e,t,n){var r=e.origin();D(t,(function(t){t.each((function(t){var i=n(r,t);zc(i,cu),hi(e.parent(),i)}))}))},vu=function(e,t,n,r){gu(e,t,(function(e,t){var i=su(t.col,t.x-e.left,n.top-e.top,fu,r);return zc(i,du),i}))},yu=function(e,t,n,r){gu(e,t,(function(e,t){var i=lu(t.row,n.left-e.left,t.y-e.top,r,fu);return zc(i,uu),i}))},bu=function(e,t,n,r,i){var o=Ao(n),a=t.isResizable,s=r.length>0?Go.positions(r,n):[],l=s.length>0?hu(e,a):[],c=B(s,(function(e,t){return M(l,(function(e){return t===e}))}));yu(t,c,o,go(n));var u=i.length>0?$o.positions(i,n):[],d=u.length>0?pu(e,a):[],f=B(u,(function(e,t){return M(d,(function(e){return t===e}))}));vu(t,f,o,Eo(n))},_u=function(e,t){if(mu(e),e.isResizable(t)){var n=Xr.fromTable(t),r=bo(n),i=vo(n);bu(n,e,t,r,i)}},wu=function(e,t){var n=Mn(e.parent(),"."+cu);D(n,t)},xu=function(e){wu(e,(function(e){Zn(e,"display","none")}))},Su=function(e){wu(e,(function(e){Zn(e,"display","block")}))},Cu=function(e){return Vc(e,uu)},Eu=function(e){return Vc(e,du)},ku=iu("resizer-bar-dragging"),Ou=function(e){var t=au(),n=eu(t,{}),r=p.none(),i=function(e,t){return p.from(Hn(e,t))};t.events.drag.bind((function(e){i(e.target,"data-row").each((function(t){var n=ur(e.target,"top");Zn(e.target,"top",n+e.yDelta+"px")})),i(e.target,"data-column").each((function(t){var n=ur(e.target,"left");Zn(e.target,"left",n+e.xDelta+"px")}))}));var a=function(e,t){var n=ur(e,t),r=ar(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){i(t,"data-row").each((function(e){var r=a(t,"top");Kn(t,"data-initial-top"),m.trigger.adjustHeight(n,r,parseInt(e,10))})),i(t,"data-column").each((function(e){var r=a(t,"left");Kn(t,"data-initial-left"),m.trigger.adjustWidth(n,r,parseInt(e,10))})),_u(e,n)}))}))}));var s=function(r,i){m.trigger.startAdjust(),t.assign(r),Vn(r,"data-initial-"+i,ur(r,i)),zc(r,ku),Zn(r,"opacity","0.2"),n.go(e.parent())},l=Pc(e.parent(),"mousedown",(function(e){Cu(e.target)&&s(e.target,"top"),Eu(e.target)&&s(e.target,"left")})),c=function(t){return gt(t,e.view())},u=function(e){return Un(e,"table",c).filter((function(e){return nu(e,c).exists(tu)}))},d=Pc(e.view(),"mouseover",(function(t){u(t.target).fold((function(){En(t.target)&&mu(e)}),(function(t){r=p.some(t),_u(e,t)}))})),f=function(){l.unbind(),d.unbind(),n.destroy(),mu(e)},h=function(t){_u(e,t)},m=ac({adjustHeight:oc(["table","delta","row"]),adjustWidth:oc(["table","delta","column"]),startAdjust:oc([])});return{destroy:f,refresh:h,on:n.on,off:n.off,hideBars:o(xu,e),showBars:o(Su,e),events:m.registry}},Tu=function(e,t,n){var r=Go,i=$o,o=Ou(e),a=ac({beforeResize:oc(["table","type"]),afterResize:oc(["table","type"]),startDrag:oc([])});return o.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);wl(t,n,e.row,r),a.trigger.afterResize(t,"row")})),o.events.startAdjust.bind((function(e){a.trigger.startDrag()})),o.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var o=i.delta(e.delta,r),s=n(r);_l(r,o,e.column,t,s),a.trigger.afterResize(r,"col")})),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:a.registry}},Iu={create:Tu},Au=function(e,t){return e.fire("newrow",{node:t})},Ru=function(e,t){return e.fire("newcell",{node:t})},Pu=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},Mu=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},Nu=function(e,t,n,r,i){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:i})},Lu=function(e){e.fire("TableSelectionClear")},Du=function(e,t,n){e.fire("TableModified",ne(ne({},n),{table:t}))},ju={structure:!1,style:!0},Fu={structure:!0,style:!1},Bu="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",qu={"border-collapse":"collapse",width:"100%"},zu=function(e){if(ad(e)){var t=e.getBody().offsetWidth;return ne(ne({},qu),{width:t+"px"})}return sd(e)?Tt(qu,(function(e,t){return"width"!==t})):qu},Uu={border:"1"},Gu="preservetable",Vu=function(e){return e.getParam("table_sizing_mode","auto")},Wu=function(e){return e.getParam("table_responsive_width")},Hu=function(e){return e.getParam("table_default_attributes",Uu,"object")},$u=function(e){return e.getParam("table_default_styles",zu(e),"object")},Ku=function(e){return e.getParam("table_resize_bars",!0,"boolean")},Xu=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},Yu=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},Ju=function(e){return e.getParam("table_row_advtab",!0,"boolean")},Qu=function(e){return e.getParam("table_advtab",!0,"boolean")},Zu=function(e){return e.getParam("table_appearance_options",!0,"boolean")},ed=function(e){return e.getParam("table_grid",!0,"boolean")},td=function(e){return e.getParam("table_style_by_css",!1,"boolean")},nd=function(e){return e.getParam("table_cell_class_list",[],"array")},rd=function(e){return e.getParam("table_row_class_list",[],"array")},id=function(e){return e.getParam("table_class_list",[],"array")},od=function(e){return"relative"===Vu(e)||!0===Wu(e)},ad=function(e){return"fixed"===Vu(e)||!1===Wu(e)},sd=function(e){return"responsive"===Vu(e)},ld=function(e){return e.getParam("table_toolbar",Bu)},cd=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},ud=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return P(r,n)?n:t},dd=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",Gu,"string");return G(t,(function(e){return e===n})).getOr(Gu)},fd=function(e){return"preservetable"===dd(e)},hd=function(e){return"resizetable"===dd(e)},pd=function(e){var t=e.getParam("table_clone_elements");return b(t)?p.some(t.split(/[ ,]/)):Array.isArray(t)?p.some(t):p.none()},md=function(e){var t=e.getParam("object_resizing",!0);return b(t)?"table"===t:t},gd=function(e,t){if(od(e)){var n=Fs(e,t.dom).filter(Bs).getOrThunk((function(){return rc(t)}));return ts.percentageSize(n,t)}return ad(e)?ts.pixelSize(mo(t),t):ts.getTableSize(t)},vd=function(e){Kn(e,"width")},yd=function(e,t){var n=Oa(e);Zl(e,p.some(n),p.none(),t),vd(e)},bd=function(e,t){var n=ka(e);Zl(e,p.some(n),p.none(),t),vd(e)},_d=function(e){ir(e,"width");var t=yr(e),n=t.length>0?t:vr(e);D(n,(function(e){ir(e,"width"),vd(e)})),vd(e)},wd=function(e,t){var n=gd(e,t);yd(t,n)},xd=function(e,t){var n=gd(e,t);bd(t,n)},Sd=_d,Cd=function(e){var t=Xr.fromTable(e);Xr.hasColumns(t)||D(vr(e),(function(e){var t=tr(e,"width");Zn(e,"width",t),Kn(e,"width")}))},Ed=function(){var e=dt.fromTag("div");return er(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),hi(kn(),e),e},kd=function(e,t){return e.inline?Nl.body(Rs(e),Ed(),t):Nl.only(dt.fromDom(e.getDoc()),t)},Od=function(e,t){e.inline&&bi(t.parent())},Td="bar-",Id=function(e){return"false"!==Hn(e,"data-mce-resize")},Ad=function(e){var t,n,r=p.none(),i=p.none(),o=p.none(),a=function(e){return"TABLE"===e.nodeName},s=function(){return i},l=function(){return o.getOr(Nl.only(dt.fromDom(e.getBody()),Id))},c=function(t){return gd(e,t)},u=function(){return fd(e)?Al():Il()},d=function(e){return ic(e).columns},f=function(r,i,o){var a=be(i,"e");if(""===n&&wd(e,r),o!==t&&""!==n){Zn(r,"width",n);var s=u(),l=c(r),f=fd(e)||a?d(r)-1:0;_l(r,o-t,f,s,l)}else if(Bs(n)){var h=parseFloat(n.replace("%","")),p=o*h/t;Zn(r,"width",p+"%")}qs(n)&&Cd(r)},h=function(){i.each((function(e){e.destroy()})),o.each((function(t){Od(e,t)}))};return e.on("init",(function(){var t=kd(e,Id);if(o=p.some(t),md(e)&&Ku(e)){var n=u(),a=Iu.create(t,n,c);a.on(),a.events.startDrag.bind((function(t){r=p.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Pu(e,n,Ps(n),Ms(n),Td+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,i=n.dom;js(n),r.each((function(t){e.selection.setRng(t),e.focus()})),Mu(e,i,Ps(i),Ms(i),Td+t.type),e.undoManager.add()})),i=p.some(a)}})),e.on("ObjectResizeStart",(function(r){var i=r.target;if(a(i)){var o=dt.fromDom(i);D(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+dd(e)+"-columns")})),!tc(o)&&ad(e)?xd(e,o):!ec(o)&&od(e)&&wd(e,o),nc(o)&&ye(r.origin,Td)&&wd(e,o),t=r.width,n=sd(e)?"":Fs(e,i).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=dt.fromDom(n),i=t.origin;ye(i,"corner-")&&f(r,i,t.width),js(r),Du(e,r.dom,ju)}})),e.on("SwitchMode",(function(){s().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:s,lazyWire:l,destroy:h}},Rd=function(e,t){return{element:e,offset:t}},Pd=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return Pd(e,t,n).orThunk((function(){return p.some(t)}))})):p.none()},Md=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},Nd=function(e,t){var n=Pd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return Rd(n,Md(e,n));var r=e.property().children(n);return r.length>0?Nd(e,r[r.length-1]):Rd(n,Md(e,n))},Ld=Nd,Dd=Oi(),jd=function(e){return Ld(Dd,e)},Fd=function(e,t){var n=sr(e,"colspan");if(1===n){var r=Ca(e);r.each((function(n){var r=n.value/2;Ea(e,r,n.unit),Ea(t,r,n.unit)}))}},Bd=function(e,t,n,r){n===r?Kn(e,t):Vn(e,t,n)},qd=function(e,t,n){ee(Pn(e,t)).fold((function(){return fi(e,n)}),(function(e){return di(e,n)}))},zd=function(e,t){var n=qn(e,t).getOrThunk((function(){var n=dt.fromTag(t,an(e).dom);return"thead"===t?qd(e,"caption,colgroup",n):"colgroup"===t?qd(e,"caption",n):hi(e,n),n}));return yi(n),n},Ud=function(e,t){var n=[],r=[],i=function(e){return L(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return yi(t),D(e.cells,(function(e){e.isNew&&r.push(e.element),Bd(e.element,"colspan",e.colspan,1),Bd(e.element,"rowspan",e.rowspan,1),hi(t,e.element)})),t}))},o=function(e){return H(e,(function(e){return L(e.cells,(function(e){return Bd(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=zd(e,n),a="colgroup"===n?o:i,s=a(t);vi(r,s)},s=function(t){qn(e,t).each(bi)},l=function(e,t){e.length>0?a(e,t):s(t)},c=[],u=[],d=[],f=[];return D(t,(function(e){switch(e.section){case"thead":c.push(e);break;case"tbody":u.push(e);break;case"tfoot":d.push(e);break;case"colgroup":f.push(e);break}})),l(f,"colgroup"),l(c,"thead"),l(u,"tbody"),l(d,"tfoot"),{newRows:n,newCells:r}},Gd=function(e){return L(e,(function(e){var t=io(e.element);return D(e.cells,(function(e){var n=oo(e.element);Bd(n,"colspan",e.colspan,1),Bd(n,"rowspan",e.rowspan,1),hi(t,n)})),t}))},Vd=function(e,t){return L(e,(function(e){return Rr(e,t)}))},Wd=function(e,t){return e[t]},Hd=function(e,t){if(0===e.length)return 0;var n=e[0],r=V(e,(function(e){return!t(n.element,e.element)}));return r.fold((function(){return e.length}),(function(e){return e}))},$d=function(e,t,n,r){var i=Wd(e,t).cells.slice(n),o=Hd(i,r),a=Vd(e,n).slice(t),s=Hd(a,r);return{colspan:o,rowspan:s}},Kd=function(e,t){var n=L(e,(function(e){return L(e.cells,l)})),r=function(e,t,r,i){for(var o=e;o<e+r;o++)for(var a=t;a<t+i;a++)n[o][a]=!0};return L(e,(function(i,o){var a=H(i.cells,(function(i,a){if(!1===n[o][a]){var s=$d(e,o,a,t);return r(o,a,s.rowspan,s.colspan),[zt(i.element,s.rowspan,s.colspan,i.isNew)]}return[]}));return $t(a,i.section)}))},Xd=function(e,t,n){var r=[];if(Xr.hasColumns(e)){var i=L(Xr.justColumns(e),(function(e){return Vt(e.element,n,!1)}));r.push(Ht(i,"colgroup"))}for(var o=0;o<e.grid.rows;o++){for(var a=[],s=0;s<e.grid.columns;s++){var l=Xr.getAt(e,o,s).map((function(e){return Vt(e.element,n,e.isLocked)})).getOrThunk((function(){return Vt(t.gap(),!0,!1)}));a.push(l)}var c=Ht(a,e.all[o].section);r.push(c)}return r},Yd=function(e,t){return Xd(e,t,!1)},Jd=function(e,t){var n=function(e){var n=te(e,(function(e){return cn(e.element).map((function(e){var t=cn(e).isNone();return Vt(e,t,!1)}))}));return n.getOrThunk((function(){return Vt(t.row(),!0,!1)}))};return L(e,(function(e){var t=n(e.details);return Wt(t.element,e.details,e.section,t.isNew)}))},Qd=function(e,t){var n=Kd(e,gt);return Jd(n,t)},Zd=function(e,t){return te(e.all,(function(e){return G(e.cells,(function(e){return gt(t,e.element)}))}))},ef=function(e,t,n){var r=L(t.selection,(function(t){return gr(t).bind((function(t){return Zd(e,t)})).filter(n)})),i=lo(r);return fo(i.length>0,i)},tf=function(e,t,n,r,i){return function(o,a,s,l,c,u){var d=Xr.fromTable(a),f=t(d,s).map((function(t){var n=Yd(d,l),r=e(n,t,gt,i(l)),o=jr(r.grid),a=Qd(r.grid,l);return{info:t,grid:a,cursor:r.cursor,lockedColumns:o}}));return f.bind((function(e){var t=Ud(a,e.grid),i=p.from(c).getOrThunk((function(){return ts.getTableSize(a)})),s=p.from(u).getOrThunk(Al);return n(a,e.grid,e.info,i,s),r(a),_u(o,a),Kn(a,Lr),e.lockedColumns.length>0&&Vn(a,Lr,e.lockedColumns.join(",")),p.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},nf=function(e,t){return gr(t.element).bind((function(t){return Zd(e,t)}))},rf=function(e,t){return gr(t.element).bind((function(n){return Zd(e,n).map((function(e){var n=ne(ne({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},of=function(e,t){return ef(e,t,c).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},af=function(e,t){return t.mergable},sf=function(e,t){return t.unmergable},lf=function(e,t){return ef(e,t,c)},cf=function(e,t){return nf(e,t).filter((function(e){return!e.isLocked}))},uf=function(e,t){return ef(e,t,(function(e){return!e.isLocked}))},df=function(e,t){return Zd(e,t).exists((function(e){return!e.isLocked}))},ff=function(e,t){return $(t,(function(t){return df(e,t)}))},hf=function(e,t){return af(e,t).filter((function(t){return ff(e,t.cells)}))},pf=function(e,t){return sf(e,t).filter((function(t){return ff(e,t)}))},mf=function(e,t,n,r){var i=Nr(e).rows;if(0===i.length)return e;for(var o=t.startRow;o<=t.finishRow;o++)for(var a=t.startCol;a<=t.finishCol;a++){var s=i[o],l=Rr(s,a).isLocked;Tr(s,a,Vt(r(),!1,l))}return e},gf=function(e,t,n,r){for(var i=Nr(e).rows,o=!0,a=0;a<i.length;a++)for(var s=0;s<Mr(i[0]);s++){var l=i[a],c=Rr(l,s),u=c.element,d=n(u,t);!0===d&&!1===o?Tr(l,s,Vt(r(),!0,c.isLocked)):!0===d&&(o=!1)}return e},vf=function(e,t){return z(e,(function(e,n){return M(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},yf=function(e,t,n,r){return t>0&&t<e[0].cells.length&&D(e,(function(e){var i=e.cells[t-1],o=e.cells[t],a=n(o.element,i.element);a&&Tr(e,t,Vt(r(),!0,o.isLocked))})),e},bf=function(e,t,n,r){var i=Nr(e).rows;if(t>0&&t<i.length){var o=i[t-1].cells,a=vf(o,n);D(a,(function(e){for(var o=p.none(),a=t;a<i.length;a++)for(var s=function(t){var s=i[a],l=Rr(s,t),c=n(l.element,e.element);c&&(o.isNone()&&(o=p.some(r())),o.each((function(e){Tr(s,t,Vt(e,!0,l.isLocked))})))},l=0;l<Mr(i[0]);l++)s(l)}))}return e},_f=function(e){var t=function(t){return e===t},n=function(t){return _f(e)},i=function(t){return _f(e)},o=function(t){return _f(t(e))},a=function(t){return _f(e)},s=function(t){t(e)},u=function(t){return t(e)},d=function(t,n){return n(e)},f=function(t){return t(e)},h=function(t){return t(e)},m=function(){return p.some(e)};return{is:t,isValue:c,isError:l,getOr:r(e),getOrThunk:r(e),getOrDie:r(e),or:n,orThunk:i,fold:d,map:o,mapError:a,each:s,bind:u,exists:f,forall:h,toOptional:m}},wf=function(t){var n=function(e){return e()},r=function(){return s(String(t))()},o=function(e){return e},a=function(e){return e()},u=function(e){return wf(t)},d=function(e){return wf(e(t))},f=function(e){return wf(t)},h=function(e,n){return e(t)};return{is:l,isValue:l,isError:c,getOr:i,getOrThunk:n,getOrDie:r,or:o,orThunk:a,fold:h,map:u,mapError:d,each:e,bind:f,exists:l,forall:c,toOptional:p.none}},xf=function(e,t){return e.fold((function(){return wf(t)}),_f)},Sf={value:_f,error:wf,fromOption:xf},Cf=function(e,t,n){if(e.row>=t.length||e.column>Mr(t[0]))return Sf.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),i=r[0].cells.slice(e.column),o=Mr(n[0]),a=n.length;return Sf.value({rowDelta:r.length-a,colDelta:i.length-o})},Ef=function(e,t){var n=Mr(e[0]),r=Mr(t[0]);return{rowDelta:0,colDelta:n-r}},kf=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},Of=function(e,t,n,r){var i="colgroup"===t.section?n.col:n.cell;return N(e,(function(e){return Vt(i(),!0,r(e))}))},Tf=function(e,t,n,r){return e.concat(N(t,(function(){var t=e[e.length-1],i=Of(t.cells.length,t,n,(function(e){return Mt(r,e.toString())}));return Ir(t,i)})))},If=function(e,t,n,r){return L(e,(function(e){var i=Of(t,e,n,l);return kr(e,r,i)}))},Af=function(e,t,n){return L(e,(function(e){return z(n,(function(n,r){var i=Of(1,e,t,c)[0];return Or(n,r,i)}),e)}))},Rf=function(e,t,n){var r=t.colDelta<0?If:i,o=t.rowDelta<0?Tf:i,a=jr(e),s=Mr(e[0]),l=M(a,(function(e){return e===s-1})),u=r(e,Math.abs(t.colDelta),n,l?s-1:s),d=jr(u);return o(u,Math.abs(t.rowDelta),n,X(d,c))},Pf=function(e,t,n,r){var i=Rr(e[t],n),a=o(r,i.element),s=e[t];return e.length>1&&Mr(s)>1&&(n>0&&a(Pr(s,n-1))||n<s.cells.length-1&&a(Pr(s,n+1))||t>0&&a(Pr(e[t-1],n))||t<e.length-1&&a(Pr(e[t+1],n)))},Mf=function(e,t,n,r,i,o){for(var a=e.row,s=e.column,l=n.length,u=Mr(n[0]),d=a+l,f=s+u+o.length,h=X(o,c),p=a;p<d;p++)for(var m=0,g=s;g<f;g++)if(h[g])m++;else{Pf(t,p,g,i)&&gf(t,Pr(t[p],g),i,r.cell);var v=g-s-m,y=Rr(n[p-a],v),b=y.element,_=r.replace(b);Tr(t[p],g,Vt(_,!0,y.isLocked))}return t},Nf=function(e,t,n){var r=Mr(t[0]),i=N(r-e.column,(function(t){return t+e.column})),o=G(i,(function(e){return $(n,(function(t){return t!==e}))})).getOr(r-1);return ne(ne({},e),{column:o})},Lf=function(e,t,n){return B(n,(function(n){return n>=e.column&&n<=Mr(t[0])+e.column}))},Df=function(e,t,n,r,i){var o=jr(t),a=Nf(e,t,o),s=Lf(a,n,o),l=Cf(a,t,n);return l.map((function(e){var o=ne(ne({},e),{colDelta:e.colDelta-s.length}),l=Rf(t,o,r),c=jr(l),u=Lf(a,n,c);return Mf(a,l,n,r,i,u)}))},jf=function(e,t,n,r,i){yf(t,e,i,r.cell);var o=kf(n,t),a=Rf(n,o,r),s=kf(t,a),l=Rf(t,s,r);return L(l,(function(t,n){return kr(t,e,a[n].cells)}))},Ff=function(e,t,n,r,i){bf(t,e,i,r.cell);var o=jr(t),a=Ef(t,n),s=ne(ne({},a),{colDelta:a.colDelta-o.length}),l=Rf(t,s,r),c=Nr(l),u=c.cols,d=c.rows,f=jr(l),h=Ef(n,t),p=ne(ne({},h),{colDelta:h.colDelta+f.length}),m=Af(n,r,f),g=Rf(m,p,r);return u.concat(d.slice(0,e)).concat(g).concat(d.slice(e,d.length))},Bf=function(e,t,n,r,i){var o=Nr(e),a=o.rows,s=o.cols,l=a.slice(0,t),c=a.slice(t),u=Ar(a[n],(function(e,n){var o=t>0&&t<a.length&&r(Pr(a[t-1],n),Pr(a[t],n)),s=o?Rr(a[t],n):Vt(i(e.element,r),!0,e.isLocked);return s}));return s.concat(l).concat([u]).concat(c)},qf=function(e,t,n,r,i,o,a){if("colgroup"!==n&&r)return Rr(e,t);var s=Rr(e,i);return Vt(a(s.element,o),!0,!1)},zf=function(e,t,n,r,i){return L(e,(function(e){var o=t>0&&t<Mr(e)&&r(Pr(e,t-1),Pr(e,t)),a=qf(e,t,e.section,o,n,r,i);return Or(e,t,a)}))},Uf=function(e,t){return H(e,(function(e){var n=e.cells,r=q(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Ht(r,e.section)]:[]}))},Gf=function(e,t,n){var r=Nr(e),i=r.rows,o=r.cols;return o.concat(i.slice(0,t)).concat(i.slice(n+1))},Vf=function(e,t,n,r){var i=function(e){return M(t,(function(t){return n(e.element,t.element)}))};return L(e,(function(e){return Ar(e,(function(e){return i(e)?Vt(r(e.element,n),!0,e.isLocked):e}))}))},Wf=function(e,t,n,r){return void 0!==Pr(e[t],n)&&t>0&&r(Pr(e[t-1],n),Pr(e[t],n))},Hf=function(e,t,n){return t>0&&n(Pr(e,t-1),Pr(e,t))},$f=function(e,t,n,r){var i=Nr(e).rows,o=H(i,(function(r,i){var o=Wf(e,i,t,n)||Hf(r,t,n);return o?[]:[Rr(r,t)]}));return Vf(e,o,n,r)},Kf=function(e,t,n,r){var i=Nr(e).rows,o=i[t],a=H(o.cells,(function(e,r){var a=Wf(i,t,r,n)||Hf(o,r,n);return a?[]:[e]}));return Vf(e,a,n,r)},Xf=function(e){var t=function(e,t){var n=M(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return z(e,t,[]).sort((function(e,t){return e.column-t.column}))},Yf=function(e){var t=ar(e,"colspan",1),n=ar(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Jf=function(e,t){void 0===t&&(t=Yf);var n=Xa(p.none()),r=function(t){switch(Yt(t.element)){case"col":return e.col(t);default:return e.cell(t)}},i=function(e){var n=t(e);return r(n)},o=function(e){var t=i(e);return n.get().isNone()&&n.set(p.some(t)),a=p.some({item:e,replacement:t}),t},a=p.none(),s=function(e,t){return a.fold((function(){return o(e)}),(function(n){return t(e,n.item)?n.replacement:o(e)}))};return{getOrInit:s,cursor:n.get}},Qf=function(e,t){return function(n){var r=Xa(p.none()),i=[],o=function(e,t){return G(i,(function(n){return t(n.item,e)}))},a=function(o){var a={scope:e},s=n.replace(o,t,a);return i.push({item:o,sub:s}),r.get().isNone()&&r.set(p.some(s)),s},s=function(e,t){return"col"===Yt(e)?e:o(e,t).fold((function(){return a(e)}),(function(n){return t(e,n.item)?n.sub:a(e)}))};return{replaceOrInit:s,cursor:r.get}}},Zf=function(e){return $n(e,"scope").map((function(e){return e.substr(0,3)}))},eh=function(e){var t=Xa(p.none()),n=function(n){t.get().isNone()&&t.set(p.some(n));var r=Zf(n);return r.each((function(e){return Vn(n,"scope",e)})),function(){var t=e.cell({element:n,colspan:1,rowspan:1});return ir(t,"width"),ir(n,"width"),r.each((function(e){return Vn(t,"scope",e)})),t}},i=function(e){var t=function(){var t=lo(L(e,Zf));if(0===t.length)return p.none();var n=t[0],r=["row","col"],i=M(t,(function(e){return e!==n&&P(r,e)}));return i?p.none():p.from(n)};return ir(e[0],"width"),t().fold((function(){return Kn(e[0],"scope")}),(function(t){return Vn(e[0],"scope",t+"group")})),r(e[0])};return{unmerge:n,merge:i,cursor:t.get}},th={modification:Jf,transform:Qf,merging:eh},nh=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rh=function(e,t){var n=e.property().name(t);return P(["ol","ul"],n)},ih=function(e,t){var n=e.property().name(t);return P(nh,n)},oh=function(e,t){return P(["br","img","hr","input"],e.property().name(t))},ah=Oi(),sh=function(e){return ih(ah,e)},lh=function(e){return rh(ah,e)},ch=function(e){return oh(ah,e)},uh=function(e){var t=function(e){return"br"===Yt(e)},n=function(e){return $(e,(function(e){return t(e)||tn(e)&&0===Si(e).trim().length}))},r=function(e){return"li"===Yt(e)||Ln(e,lh).isSome()},i=function(e){return hn(e).map((function(e){return!!sh(e)||!!ch(e)&&"img"!==Yt(e)})).getOr(!1)},o=function(e){return ms(e).bind((function(n){var o=i(n);return cn(n).map((function(i){return!0===o||r(i)||t(n)||sh(i)&&!gt(e,i)?[]:[dt.fromTag("br")]}))})).getOr([])},a=function(){var t=H(e,(function(e){var t=pn(e);return n(t)?[]:t.concat(o(e))}));return 0===t.length?[dt.fromTag("br")]:t},s=a();yi(e[0]),vi(e[0],s)},dh=function(e){var t=vr(e);0===t.length&&bi(e)},fh=function(e,t){return{grid:e,cursor:t}},hh=function(e,t,n){var r=Nr(e).rows;return ph(r,t,n).orThunk((function(){return ph(r,0,0)}))},ph=function(e,t,n){return p.from(e[t]).bind((function(e){return p.from(e.cells[n]).bind((function(e){return p.from(e.element)}))}))},mh=function(e,t,n){var r=Nr(e).rows;return fh(e,ph(r,t,n))},gh=function(e){var t=function(e,t){var n=M(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return z(e,t,[]).sort((function(e,t){return e.row-t.row}))},vh=function(e,t,n,r){var i=t[0].row,o=gh(t),a=q(o,(function(e,t){var o=Bf(e.grid,i,t.row+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return mh(a,i,t[0].column)},yh=function(e,t,n,r){var i=gh(t),o=i[i.length-1],a=o.row+o.rowspan,s=q(i,(function(e,t){return Bf(e,a,t.row,n,r.getOrInit)}),e);return mh(s,a,t[0].column)},bh=function(e,t,n,r){var i=t.details,o=Xf(i),a=o[0].column,s=q(o,(function(e,t){var i=zf(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return mh(s,i[0].row,a)},_h=function(e,t,n,r){var i=t.details,o=i[i.length-1],a=o.column+o.colspan,s=Xf(i),l=q(s,(function(e,t){return zf(e,a,t.column,n,r.getOrInit)}),e);return mh(l,i[0].row,a)},wh=function(e,t,n,r){var i=Kf(e,t.row,n,r.replaceOrInit);return mh(i,t.row,t.column)},xh=function(e,t,n,r){var i=gh(t),o=function(e,t){return Kf(e,t.row,n,r.replaceOrInit)},a=z(i,o,e);return mh(a,t[0].row,t[0].column)},Sh=function(e,t,n,r){var i=$f(e,t.column,n,r.replaceOrInit);return mh(i,t.row,t.column)},Ch=function(e,t,n,r){var i=Xf(t),o=function(e,t){return $f(e,t.column,n,r.replaceOrInit)},a=z(i,o,e);return mh(a,t[0].row,t[0].column)},Eh=function(e,t,n,r){var i=Kf(e,t.row,n,r.replaceOrInit);return mh(i,t.row,t.column)},kh=function(e,t,n,r){var i=gh(t),o=function(e,t){return Kf(e,t.row,n,r.replaceOrInit)},a=z(i,o,e);return mh(a,t[0].row,t[0].column)},Oh=function(e,t,n,r){var i=$f(e,t.column,n,r.replaceOrInit);return mh(i,t.row,t.column)},Th=function(e,t,n,r){var i=Xf(t),o=function(e,t){return $f(e,t.column,n,r.replaceOrInit)},a=z(i,o,e);return mh(a,t[0].row,t[0].column)},Ih=function(e,t,n,r){var i=Xf(t.details),o=Uf(e,L(i,(function(e){return e.column}))),a=hh(o,i[0].row,i[0].column);return fh(o,a)},Ah=function(e,t,n,r){var i=gh(t),o=Gf(e,i[0].row,i[i.length-1].row),a=hh(o,t[0].row,t[0].column);return fh(o,a)},Rh=function(e,t,n,r){var i=t.cells;uh(i);var o=mf(e,t.bounds,n,r.merge(i));return fh(o,p.from(i[0]))},Ph=function(e,t,n,r){var i=function(e,t){return gf(e,t,n,r.unmerge(t))},o=q(t,i,e);return fh(o,p.from(t[0]))},Mh=function(e,t,n,r){var i=function(e,t){var n=Xr.fromTable(e);return Xd(n,t,!0)},o=i(t.clipboard,t.generators),a=Bt(t.row,t.column),s=Df(a,e,o,t.generators,n);return s.fold((function(){return fh(e,p.some(t.element))}),(function(e){var n=hh(e,t.row,t.column);return fh(e,n)}))},Nh=function(e,t,n){var r=Er(e,n.section),i=Xr.generate(r);return Xd(i,t,!0)},Lh=function(e,t,n,r){var i=Nr(e).rows,o=t.cells[0].column,a=i[t.cells[0].row],s=Nh(t.clipboard,t.generators,a),l=jf(o,e,s,t.generators,n),c=hh(l,t.cells[0].row,t.cells[0].column);return fh(l,c)},Dh=function(e,t,n,r){var i=Nr(e).rows,o=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=i[t.cells[0].row],s=Nh(t.clipboard,t.generators,a),l=jf(o,e,s,t.generators,n),c=hh(l,t.cells[0].row,t.cells[0].column);return fh(l,c)},jh=function(e,t,n,r){var i=Nr(e).rows,o=t.cells[0].row,a=i[o],s=Nh(t.clipboard,t.generators,a),l=Ff(o,e,s,t.generators,n),c=hh(l,t.cells[0].row,t.cells[0].column);return fh(l,c)},Fh=function(e,t,n,r){var i=Nr(e).rows,o=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=i[t.cells[0].row],s=Nh(t.clipboard,t.generators,a),l=Ff(o,e,s,t.generators,n),c=hh(l,t.cells[0].row,t.cells[0].column);return fh(l,c)},Bh=function(e,t){var n=Xr.fromTable(e),r=lf(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=W(L(n.all,(function(e){return B(e.cells,(function(e){return e.column>=r&&e.column<i}))})));return qh(o,(function(e){return"th"===Yt(e.element)}))})).getOr("")},qh=function(e,t){var n=B(e,t);return 0===n.length?p.some("td"):n.length===e.length?p.some("th"):p.none()},zh=Sl,Uh=xl,Gh=function(e,t){return M(t,(function(e){return 0===e.column&&e.isLocked}))},Vh=function(e,t){return M(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Wh=function(e,t){var n=vo(e),r=Xf(t);return z(r,(function(e,t){var r=n[t.column],i=r.map(go).getOr(0);return e+i}),0)},Hh=function(e){return function(t,n){return lf(t,n).filter((function(n){var r=e?Gh:Vh;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Wh(t,e)}}))}},$h=function(e,t){return uf(e,t).map((function(t){return{details:t,pixelDelta:-Wh(e,t)}}))},Kh=function(e){return function(t,n){return of(t,n).filter((function(n){var r=e?Gh:Vh;return!r(t,n.cells)}))}},Xh=tf(vh,lf,e,e,th.modification),Yh=tf(yh,lf,e,e,th.modification),Jh=tf(bh,Hh(!0),Uh,e,th.modification),Qh=tf(_h,Hh(!1),Uh,e,th.modification),Zh=tf(Ih,$h,Uh,dh,th.modification),ep=tf(Ah,lf,e,dh,th.modification),tp=(tf(Sh,cf,e,e,th.transform("row","th")),tf(Ch,uf,e,e,th.transform("row","th"))),np=(tf(Oh,cf,e,e,th.transform(null,"td")),tf(Th,uf,e,e,th.transform(null,"td"))),rp=(tf(wh,nf,e,e,th.transform("col","th")),tf(xh,lf,e,e,th.transform("col","th")),tf(Eh,nf,e,e,th.transform(null,"td")),tf(kh,lf,e,e,th.transform(null,"td")),tf(Rh,hf,zh,e,th.merging)),ip=tf(Ph,pf,zh,e,th.merging),op=tf(Mh,rf,zh,e,th.modification),ap=tf(Lh,Kh(!0),e,e,th.modification),sp=tf(Dh,Kh(!1),e,e,th.modification),lp=tf(jh,of,e,e,th.modification),cp=tf(Fh,of,e,e,th.modification),up=Bh,dp=function(e){return As(e.parentNode)},fp=function(e){return"thead"===e?"header":"tfoot"===e?"footer":"body"},hp=function(e,t){var n="thead"===dp(t),r=!M(t.cells,(function(e){return"th"!==As(e)}));return n||r?p.some({thead:n,ths:r}):p.none()},pp=function(e,t){return fp(hp(e,t).fold((function(){return dp(t)}),(function(e){return"thead"})))},mp=function(e,t,n){var r=e.getParent(t,"table"),i=t.parentNode,o=As(i);if(n!==o){var a=e.select(n,r)[0];if(!a){a=e.create(n);var s=r.firstChild;"thead"===n?ee(Pn(dt.fromDom(r),"caption,colgroup")).fold((function(){return r.insertBefore(a,s)}),(function(t){return e.insertAfter(a,t.dom)})):r.appendChild(a)}"tbody"===n&&"thead"===o&&a.firstChild?a.insertBefore(t,a.firstChild):a.appendChild(t),i.hasChildNodes()||e.remove(i)}},gp=function(e,t,n){if(E(n)&&As(t)!==n){var r=e.dom.rename(t,n);return Ru(e,r),r}return t},vp=function(e,t,n,r){var i=e.dom,o=gp(e,t,n);return S(r)||i.setAttrib(o,"scope",r),o},yp=function(e,t,n,r){return D(t,(function(t){return vp(e,t,n,r)}))},bp=function(e,t,n){var r=function(){var n=br(dt.fromDom(t.cells[0])).map((function(e){return _r(e)})).getOr([]);return te(n,(function(t){return hp(e,t.dom)})).map((function(e){return e.thead&&e.ths?"sectionCells":e.thead?"section":"cells"})).getOr("section")},i=e.dom;if("header"===n){var o=ud(e),a="auto"===o?r():o;yp(e,t.cells,"section"===a?"td":"th","col"),mp(i,t,"cells"===a?"tbody":"thead")}else yp(e,t.cells,"td",null),mp(i,t,"footer"===n?"tfoot":"tbody")},_p=function(e){return br(e).bind((function(e){return Hi(e,Zs.firstSelectedSelector)})).fold((function(){return e}),(function(e){return e[0]}))},wp=function(e){return function(t){var n=Yt(t),r="col"===n||"colgroup"===n?_p(t):t;return Un(r,e)}},xp=wp("th,td"),Sp=wp("th,td,caption"),Cp=function(e,t){return xp(e).map((function(e){return Us(t)})).getOr([])},Ep=function(e,t){var n=xp(e),r=n.bind((function(e){return br(e)})).map((function(e){return _r(e)}));return co(n,r,(function(e,n){return B(n,(function(n){return M(Is(n.dom.cells),(function(n){return"1"===Hn(n,t)||gt(n,e)}))}))})).getOr([])},kp=function(t,n,r){var i=function(e){return"table"===Yt(Rs(e))},o=function(e){return!1===i(t)||ic(e).rows>1},a=function(e){return!1===i(t)||ic(e).columns>1},s=pd(t),l=hd(t)?e:Fd,u=function(e,n,r,i,o){return function(a,l){js(a);var c=i(),u=dt.fromDom(t.getDoc()),d=ks(r,u,s),f=gd(t,a),h=hd(t)?Il():Al();return n(a)?e(c,a,l,d,f,h).bind((function(e){return D(e.newRows,(function(e){Au(t,e.dom)})),D(e.newCells,(function(e){Ru(t,e.dom)})),e.cursor.map((function(e){var n=jd(e),r=t.dom.createRng();return r.setStart(n.element.dom,n.offset),r.setEnd(n.element.dom,n.offset),{rng:r,effect:o}}))})):p.none()}},d=u(ep,o,e,n,Fu),f=u(Zh,a,e,n,Fu),h=u(Xh,c,e,n,Fu),m=u(Yh,c,e,n,Fu),g=u(Jh,c,l,n,Fu),v=u(Qh,c,l,n,Fu),y=u(rp,c,e,n,Fu),b=u(ip,c,e,n,Fu),_=u(ap,c,e,n,Fu),w=u(sp,c,e,n,Fu),x=u(lp,c,e,n,Fu),S=u(cp,c,e,n,Fu),C=u(op,c,e,n,Fu),E=function(e,t){return Pt(e,"type").filter((function(e){return P(t,e)}))},k=function(e,t){return E(t,["td","th"]).each((function(t){var n=L(Cp(zs(e),r),(function(e){return e.dom}));yp(e,n,t,null)}))},O=function(e,t){return E(t,["header","body","footer"]).each((function(t){L(Ep(zs(e),Zs.selected),(function(n){return bp(e,n.dom,t)}))}))},T=u(tp,c,e,n,Fu),I=u(np,c,e,n,Fu),A=function(e){var t=Ep(zs(e),Zs.selected);if(t.length>0){var n=L(t,(function(t){return pp(e,t.dom)})),r=P(n,"header"),i=P(n,"footer");if(r||i){var o=P(n,"body");return!r||o||i?r||o||!i?"":"footer":"header"}return"body"}},R=function(e){return qh(Cp(zs(e),r),(function(e){return"th"===Yt(e)})).getOr("")},M=up;return{deleteRow:d,deleteColumn:f,insertRowsBefore:h,insertRowsAfter:m,insertColumnsBefore:g,insertColumnsAfter:v,mergeCells:y,unmergeCells:b,pasteColsBefore:_,pasteColsAfter:w,pasteRowsBefore:x,pasteRowsAfter:S,pasteCells:C,setTableCellType:k,setTableRowType:O,makeColumnsHeader:T,unmakeColumnsHeader:I,getTableRowType:A,getTableCellType:R,getTableColType:M}},Op={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Tp=function(){return dt.fromTag("th")},Ip=function(){return dt.fromTag("td")},Ap=function(){return dt.fromTag("col")},Rp=function(e,t,n,r){for(var i=dt.fromTag("tr"),o=0;o<e;o++){var a=r<t||o<n?Tp():Ip();o<n&&Vn(a,"scope","row"),r<t&&Vn(a,"scope","col"),hi(a,dt.fromTag("br")),hi(i,a)}return i},Pp=function(e){var t=dt.fromTag("colgroup");return N(e,(function(){return hi(t,Ap())})),t},Mp=function(e,t,n,r){return N(e,(function(e){return Rp(t,n,r,e)}))},Np=function(e,t,n,r,i,o){void 0===o&&(o=Op);var a=dt.fromTag("table"),s="cells"!==i;er(a,o.styles),Wn(a,o.attributes),o.colGroups&&hi(a,Pp(t));var l=Math.min(e,n);if(s&&n>0){var c=dt.fromTag("thead");hi(a,c);var u="sectionCells"===i?l:0,d=Mp(n,t,u,r);vi(c,d)}var f=dt.fromTag("tbody");hi(a,f);var h=s?e-l:e,p=s?0:n,m=Mp(h,t,p,r);return vi(f,m),a},Lp=function(e){return e.dom.innerHTML},Dp=function(e){var t=dt.fromTag("div"),n=dt.fromDom(e.dom.cloneNode(!0));return hi(t,n),Lp(t)},jp=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Fp=function(e,t){zn(t,"td,th").each(o(jp,e))},Bp=function(e,t){D(Mn(t,"tr"),(function(t){Au(e,t.dom),D(Mn(t,"th,td"),(function(t){Ru(e,t.dom)}))}))},qp=function(e){return b(e)&&-1!==e.indexOf("%")},zp=function(e,t,n,r,i){var o=$u(e),a={styles:o,attributes:Hu(e),colGroups:cd(e)};return e.undoManager.ignore((function(){var o=Np(n,t,i,r,ud(e),a);Vn(o,"data-mce-id","__mce");var s=Dp(o);e.insertContent(s),e.addVisual()})),zn(Rs(e),'table[data-mce-id="__mce"]').map((function(t){return ad(e)?xd(e,t):sd(e)?Sd(t):(od(e)||qp(o.width))&&wd(e,t),js(t),Kn(t,"data-mce-id"),Bp(e,t),Fp(e,t),t.dom})).getOr(null)},Up=function(e,t,n,r,i){void 0===r&&(r={});var o=function(e){return O(e)&&e>0};if(o(t)&&o(n)){var a=r.headerRows||0,s=r.headerColumns||0;return zp(e,n,t,s,a)}return console.error(i),null},Gp=function(e){return function(){return e().fold((function(){return[]}),(function(e){return L(e,(function(e){return e.dom}))}))}},Vp=function(e){return function(t){var n=t.length>0?p.some(Is(t)):p.none();e(n)}},Wp=function(e){return function(t,n,r){void 0===r&&(r={});var i=Up(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),i}},Hp=function(e,t,n,r){return{insertTable:Wp(e),setClipboardRows:Vp(t.setRows),getClipboardRows:Gp(t.getRows),setClipboardCols:Vp(t.setColumns),getClipboardCols:Gp(t.getColumns),resizeHandler:n,selectionTargets:r}},$p=function(e,t,n){var r=ar(e,t,1);1===n||r<=1?Kn(e,t):Vn(e,t,Math.min(n,r))},Kp=function(e,t,n){if(Xr.hasColumns(e)){var r=B(Xr.justColumns(e),(function(e){return e.column>=t&&e.column<n})),i=L(r,(function(e){var r=oo(e.element);return $p(r,"span",n-t),r})),o=dt.fromTag("colgroup");return vi(o,i),[o]}return[]},Xp=function(e,t,n){return L(e.all,(function(e){var r=B(e.cells,(function(e){return e.column>=t&&e.column<n})),i=L(r,(function(e){var r=oo(e.element);return $p(r,"colspan",n-t),r})),o=dt.fromTag("tr");return vi(o,i),o}))},Yp=function(e,t){var n=Xr.fromTable(e),r=uf(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=Kp(n,r,i),a=Xp(n,r,i);return re(o,a)}))},Jp=function(e,t,n){var r=Xr.fromTable(e),i=lf(r,t);return i.bind((function(e){var t=Xd(r,n,!1),i=Nr(t).rows,o=i.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=H(o,(function(e){var t=B(e.cells,(function(e){return!e.isLocked}));return t.length>0?[ne(ne({},e),{cells:t})]:[]})),s=Qd(a,n);return fo(s.length>0,s)})).map((function(e){return Gd(e)}))},Qp=tinymce.util.Tools.resolve("tinymce.util.Tools"),Zp=function(e,t,n){var r,i=e.select("td,th",t),o=function(t,r){for(var i=0;i<r.length;i++){var o=e.getStyle(r[i],n);if("undefined"===typeof t&&(t=o),t!==o)return""}return t};return o(r,i)},em=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},tm=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},nm=function(e,t){Qp.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},rm=function(e,t){Qp.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},im=function(e){return Nt(e,"menu")},om=function(e,t){var n=function(e,t){return t.concat(L(e,(function(e){var t=e.text||e.title;return im(e)?{text:t,items:om(e.menu)}:{text:t,value:e.value}})))};return n(e,t||[])},am=function(e){return function(t){return ye(t,"rgb")?e.toHex(t):t}},sm=function(e,t){var n=dt.fromDom(t);return{borderwidth:rr(n,"border-width").getOr(""),borderstyle:rr(n,"border-style").getOr(""),bordercolor:rr(n,"border-color").map(am(e)).getOr(""),backgroundcolor:rr(n,"background-color").map(am(e)).getOr("")}},lm=function(e){var t=e[0],n=e.slice(1);return D(n,(function(e){D(wt(t),(function(n){St(e,(function(e,r){var i=t[n];""!==i&&n===r&&i!==e&&(t[n]="")}))}))})),t},cm=function(e){var t=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],n={name:"borderwidth",type:"input",label:"Border width"},r="cell"===e?[n].concat(t):t;return{title:"Advanced",name:"advanced",items:r}},um=function(e,t,n,r){return G(e,(function(e){return n.formatter.matchNode(r,t+e)})).getOr("")},dm=o(um,["left","center","right"],"align"),fm=o(um,["top","middle","bottom"],"valign"),hm=function(e,t){var n=$u(e),r=Hu(e),i=function(e){return{borderstyle:Pt(n,"border-style").getOr(""),bordercolor:am(e)(Pt(n,"border-color").getOr("")),backgroundcolor:am(e)(Pt(n,"background-color").getOr(""))}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return td(e)&&t?{border:t}:Pt(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},s=t?i(e.dom):{},l=function(){var e=Pt(n,"border-spacing").or(Pt(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=Pt(n,"border-padding").or(Pt(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return ne(ne({},e),t)},c=ne(ne(ne(ne(ne(ne({},o),n),r),s),a()),l());return c},pm=function(e,t,n){var r=function(t,n){var r=rr(dt.fromDom(n),"border-width");return td(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Zp(e.dom,n,"border-width")||Zp(e.dom,n,"border")},i=e.dom;return ne({width:i.getStyle(t,"width")||i.getAttrib(t,"width"),height:i.getStyle(t,"height")||i.getAttrib(t,"height"),cellspacing:i.getStyle(t,"border-spacing")||i.getAttrib(t,"cellspacing"),cellpadding:i.getAttrib(t,"cellpadding")||Zp(e.dom,t,"padding"),border:r(i,t),caption:!!i.select("caption",t)[0],class:i.getAttrib(t,"class",""),align:dm(e,t)},n?sm(i,t):{})},mm=function(e,t,n){var r=e.dom;return ne({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:pp(e,t),align:dm(e,t)},n?sm(r,t):{})},gm=function(e,t,n,r){var i=e.dom,o=r.getOr(t),a=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return ne({width:a(o,"width"),height:a(t,"height"),scope:i.getAttrib(t,"scope"),celltype:As(t),class:i.getAttrib(t,"class",""),halign:dm(e,t),valign:fm(e,t)},n?sm(i,t):{})},vm=function(e){var t=om(nd(e));return t.length>0?p.some({name:"class",type:"listbox",label:"Class",items:t}):p.none()},ym=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"H Align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"V Align",items:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}],bm=function(e){return ym.concat(vm(e).toArray())},_m=function(e){return function(t,n){var r=t.dom,i=function(t,i){e&&!i||r.setAttrib(n,t,i)},o=function(t,i){e&&!i||r.setStyle(n,t,i)},a=function(r,i){e&&!i||(""===i?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:i},n))};return{setAttrib:i,setStyle:o,setFormat:a}}},wm={normal:_m(!1),ifTruthy:_m(!0)},xm=function(e){return br(e[0]).map((function(t){var n=Xr.fromTable(t),r=Xr.justCells(n),i=B(r,(function(t){return M(e,(function(e){return gt(t.element,e)}))}));return L(i,(function(e){return{element:e.element.dom,column:Xr.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))}))},Sm=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Ds(n.height)),t.setStyle("width",Ds(n.width))},Cm=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Ds(t.borderwidth))},Em=function(e,t,n,r){var i=1===t.length,o=Tt(r,(function(e,t){return n[t]!==e}));if(Rt(o)>0&&t.length>=1){var a=br(t[0]);xm(t).each((function(t){D(t,(function(t){var n=vp(e,t.element,r.celltype),o=i?wm.normal(e,n):wm.ifTruthy(e,n),a=t.column.map((function(t){return i?wm.normal(e,t):wm.ifTruthy(e,t)})).getOr(o);Sm(o,a,r),Yu(e)&&Cm(o,r),i&&(nm(e,n),rm(e,n)),r.halign&&em(e,n,r.halign),r.valign&&tm(e,n,r.valign)}))}));var s=Rt(Tt(o,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0;a.each((function(t){return Du(e,t.dom,{structure:Mt(o,"celltype"),style:s})}))}},km=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){Em(e,t,n,i),e.focus()}))},Om=function(e,t){var n=xm(t).map((function(t){return L(t,(function(t){return gm(e,t.element,Yu(e),t.column)}))}));return lm(n.getOrDie())},Tm=function(e,t){var n=Cp(zs(e),t);if(0!==n.length){var r=Om(e,n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:bm(e)},cm("cell")]},a={type:"panel",items:[{type:"grid",columns:2,items:bm(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:Yu(e)?i:a,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:o(km,e,n,r)})}},Im=function(e){var t=om(rd(e));return t.length>0?p.some({name:"class",type:"listbox",label:"Class",items:t}):p.none()},Am=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],Rm=function(e){return Am.concat(Im(e).toArray())},Pm=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Ds(t.height))},Mm=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},Nm=function(e,t,n,r){var i=1===t.length,o=Tt(r,(function(e,t){return n[t]!==e}));if(Rt(o)>0){D(t,(function(t){r.type!==As(t.parentNode)&&bp(e,t,r.type);var o=i?wm.normal(e,t):wm.ifTruthy(e,t);Pm(o,r),Ju(e)&&Mm(o,r),r.align!==n.align&&(nm(e,t),em(e,t,r.align))}));var a=Mt(o,"type"),s=!a||Rt(o)>1;br(dt.fromDom(t[0])).each((function(t){return Du(e,t.dom,{structure:a,style:s})}))}},Lm=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){Nm(e,t,n,i),e.focus()}))},Dm=function(e){var t=Ep(zs(e),Zs.selected);if(0!==t.length){var n=L(t,(function(t){return mm(e,t.dom,Ju(e))})),r=lm(n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:Rm(e)},cm("row")]},a={type:"panel",items:[{type:"grid",columns:2,items:Rm(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:Ju(e)?i:a,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:o(Lm,e,L(t,(function(e){return e.dom})),r)})}},jm=tinymce.util.Tools.resolve("tinymce.Env"),Fm=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=Zu(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(i).concat(o).concat(a).concat(s)},Bm=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)b(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var i=0;i<t.children.length;i++)Bm(e,t.children[i],n,r)},qm=function(e,t,n){var r=e.dom,i={},o={};if(i.class=n.class,o.height=Ds(n.height),r.getAttrib(t,"width")&&!td(e)?i.width=Ls(n.width):o.width=Ds(n.width),td(e)?(o["border-width"]=Ds(n.border),o["border-spacing"]=Ds(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),td(e)&&t.children)for(var a=0;a<t.children.length;a++)Bm(r,t.children[a],{"border-width":Ds(n.border),padding:Ds(n.cellpadding)}),Qu(e)&&Bm(r,t.children[a],{"border-color":n.bordercolor});Qu(e)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(ne(ne({},$u(e)),o)),r.setAttribs(t,ne(ne({},Hu(e)),i))},zm=function(e,t,n,r){var i,o=e.dom,a=r.getData(),s=Tt(a,(function(e,t){return n[t]!==e}));r.close(),""===a.class&&delete a.class,e.undoManager.transact((function(){if(!t){var n=parseInt(a.cols,10)||1,r=parseInt(a.rows,10)||1;t=zp(e,n,r,0,0)}if(Rt(s)>0&&(qm(e,t,a),i=o.select("caption",t)[0],i&&!a.caption&&o.remove(i),!i&&a.caption&&(i=o.create("caption"),i.innerHTML=jm.ie?cs:'<br data-mce-bogus="1"/>',t.insertBefore(i,t.firstChild)),""===a.align?nm(e,t):em(e,t,a.align)),e.focus(),e.addVisual(),Rt(s)>0){var l=Mt(s,"caption"),c=!l||Rt(s)>1;Du(e,t,{structure:l,style:c})}}))},Um=function(e,t){var n,r=e.dom,i=hm(e,Qu(e));!1===t?(n=r.getParent(e.selection.getStart(),"table"),n?i=pm(e,n,Qu(e)):Qu(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",Qu(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var a=om(id(e));a.length>0&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var s={type:"grid",columns:2,items:Fm(e,a,t)},l=function(){return{type:"panel",items:[s]}},c=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[s]},cm("table")]}},u=Qu(e)?c():l();e.windowManager.open({title:"Table Properties",size:"normal",body:u,onSubmit:o(zm,e,n,i),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},Gm=function(e){return Sp(zs(e))},Vm=function(e){return xp(zs(e))},Wm=function(t,n,r,i,s){var l=Ns(t),c=function(){return Gm(t).each((function(e){br(e,l).filter(a(l)).each((function(e){var n=dt.fromText("");if(di(e,n),bi(e),t.dom.isEmpty(t.getBody()))t.setContent(""),t.selection.setCursorLocation();else{var r=t.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),t.selection.setRng(r),t.nodeChanged()}}))}))},u=function(e){return Gm(t).each((function(n){var r=sd(t)||ad(t)||od(t);r||br(n,l).each((function(n){"relative"!==e||ec(n)?"fixed"!==e||tc(n)?"responsive"!==e||nc(n)||Sd(n):xd(t,n):wd(t,n),js(n),Du(t,n.dom,Fu)}))}))},d=function(e){return br(e,l)},f=function(e){return function(n){t.selection.setRng(n.rng),t.focus(),r.clear(e),js(e),Du(t,e.dom,n.effect)}},h=function(e){return Vm(t).each((function(t){d(t).each((function(n){var r=tl(i,n,t);e(n,r).each(f(n))}))}))},m=function(){return Vm(t).map((function(n){return d(n).bind((function(r){var o=tl(i,r,n),a=ks(e,dt.fromDom(t.getDoc()),p.none());return Jp(r,o,a)}))}))},g=function(){return Vm(t).map((function(e){return d(e).bind((function(t){var n=tl(i,t,e);return Yp(t,n)}))}))},v=function(e,n){return n().each((function(n){var r=L(n,(function(e){return oo(e)}));Vm(t).each((function(n){return d(n).each((function(o){var a=Os(dt.fromDom(t.getDoc())),s=rl(i,n,r,a);e(o,s).each(f(o))}))}))}))};St({mceTableSplitCells:function(){return h(n.unmergeCells)},mceTableMergeCells:function(){return h(n.mergeCells)},mceTableInsertRowBefore:function(){return h(n.insertRowsBefore)},mceTableInsertRowAfter:function(){return h(n.insertRowsAfter)},mceTableInsertColBefore:function(){return h(n.insertColumnsBefore)},mceTableInsertColAfter:function(){return h(n.insertColumnsAfter)},mceTableDeleteCol:function(){return h(n.deleteColumn)},mceTableDeleteRow:function(){return h(n.deleteRow)},mceTableCutCol:function(e){return g().each((function(e){s.setColumns(e),h(n.deleteColumn)}))},mceTableCutRow:function(e){return m().each((function(e){s.setRows(e),h(n.deleteRow)}))},mceTableCopyCol:function(e){return g().each((function(e){return s.setColumns(e)}))},mceTableCopyRow:function(e){return m().each((function(e){return s.setRows(e)}))},mceTablePasteColBefore:function(e){return v(n.pasteColsBefore,s.getColumns)},mceTablePasteColAfter:function(e){return v(n.pasteColsAfter,s.getColumns)},mceTablePasteRowBefore:function(e){return v(n.pasteRowsBefore,s.getRows)},mceTablePasteRowAfter:function(e){return v(n.pasteRowsAfter,s.getRows)},mceTableDelete:c,mceTableSizingMode:function(e,t){return u(t)}},(function(e,n){return t.addCommand(n,e)}));var y=function(e,t){t.each((function(t){Du(e,t.dom,Fu)}))};St({mceTableCellType:function(e,r){var i=br(zs(t),l);n.setTableCellType(t,r),y(t,i)},mceTableRowType:function(e,r){var i=br(zs(t),l);n.setTableRowType(t,r),y(t,i)}},(function(e,n){return t.addCommand(n,e)})),t.addCommand("mceTableColType",(function(e,t){return Pt(t,"type").each((function(e){return h("th"===e?n.makeColumnsHeader:n.unmakeColumnsHeader)}))})),St({mceTableProps:o(Um,t,!1),mceTableRowProps:o(Dm,t),mceTableCellProps:o(Tm,t,i)},(function(e,n){return t.addCommand(n,(function(){return e()}))})),t.addCommand("mceInsertTable",(function(e,n){_(n)&&wt(n).length>0?Up(t,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):Um(t,!0)})),t.addCommand("mceTableApplyCellStyle",(function(e,n){var r=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(_(n)){var o=Cp(zs(t),i);if(0!==o.length){var a=Tt(n,(function(e,n){return t.formatter.has(r(n))&&b(e)}));Lt(a)||(St(a,(function(e,n){D(o,(function(i){wm.normal(t,i.dom).setFormat(r(n),e)}))})),d(o[0]).each((function(e){return Du(t,e.dom,ju)})))}}}))},Hm=function(e,t,n){var r=Ns(e),i=function(e){return br(e,r)};St({mceTableRowType:function(){return t.getTableRowType(e)},mceTableCellType:function(){return t.getTableCellType(e)},mceTableColType:function(){return xp(zs(e)).bind((function(e){return i(e).map((function(r){var i=tl(n,r,e);return t.getTableColType(r,i)}))})).getOr("")}},(function(t,n){return e.addQueryValueHandler(n,t)}))},$m=function(){var e=Xa(p.none()),t=Xa(p.none()),n=function(e){e.set(p.none())};return{getRows:e.get,setRows:function(r){e.set(r),n(t)},clearRows:function(){return n(e)},getColumns:t.get,setColumns:function(r){t.set(r),n(e)},clearColumns:function(){return n(t)}}},Km={tablecellbackgroundcolor:{selector:"td,th",styles:{backgroundColor:"%value"},remove_similar:!0},tablecellbordercolor:{selector:"td,th",styles:{borderColor:"%value"},remove_similar:!0},tablecellborderstyle:{selector:"td,th",styles:{borderStyle:"%value"},remove_similar:!0},tablecellborderwidth:{selector:"td,th",styles:{borderWidth:"%value"},remove_similar:!0}},Xm=function(e){e.formatter.register(Km)},Ym=Xi.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Jm=function(e){return void 0===e&&(e=void 0),Ym.none(e)},Qm=ne(ne({},Ym),{none:Jm}),Zm=function(e,t){return br(e,t).bind((function(t){var n=vr(t),r=V(n,(function(t){return gt(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},eg=function(e,t){var n=Zm(e,t);return n.fold((function(){return Qm.none(e)}),(function(t){return t.index+1<t.all.length?Qm.middle(e,t.all[t.index+1]):Qm.last(e)}))},tg=function(e,t){var n=Zm(e,t);return n.fold((function(){return Qm.none()}),(function(t){return t.index-1>=0?Qm.middle(e,t.all[t.index-1]):Qm.first(e)}))},ng=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},rg={create:ng},ig=Xi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),og=function(e,t,n,r){return e.fold(t,n,r)},ag=function(e){return e.fold(i,i,i)},sg=ig.before,lg=ig.on,cg=ig.after,ug={before:sg,on:lg,after:cg,cata:og,getStart:ag},dg=Xi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),fg=function(e){return dg.exact(e.start,e.soffset,e.finish,e.foffset)},hg=function(e){return e.match({domRange:function(e){return dt.fromDom(e.startContainer)},relative:function(e,t){return ug.getStart(e)},exact:function(e,t,n,r){return e}})},pg=dg.domRange,mg=dg.relative,gg=dg.exact,vg=function(e){var t=hg(e);return ln(t)},yg=rg.create,bg={domRange:pg,relative:mg,exact:gg,exactFromRange:fg,getWin:vg,range:yg},_g=function(e,t){var n=e.document.createRange();return wg(n,t),n},wg=function(e,t){return e.selectNodeContents(t.dom)},xg=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},Sg=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},Cg=function(e,t,n){var r=e.document.createRange();return xg(r,t),Sg(r,n),r},Eg=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},kg=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},Og=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?p.some(n).map(kg):p.none()},Tg=Xi.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Ig=function(e,t,n){return t(dt.fromDom(n.startContainer),n.startOffset,dt.fromDom(n.endContainer),n.endOffset)},Ag=function(e,t){return t.match({domRange:function(e){return{ltr:r(e),rtl:p.none}},relative:function(t,n){return{ltr:ie((function(){return Cg(e,t,n)})),rtl:ie((function(){return p.some(Cg(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:ie((function(){return Eg(e,t,n,r,i)})),rtl:ie((function(){return p.some(Eg(e,r,i,t,n))}))}}})},Rg=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Tg.rtl(dt.fromDom(e.endContainer),e.endOffset,dt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Ig(e,Tg.ltr,n)}))}return Ig(e,Tg.ltr,n)},Pg=function(e,t){var n=Ag(e,t);return Rg(e,n)},Mg=function(e,t){var n=Pg(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})},Ng=(Tg.ltr,Tg.rtl,function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),l=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||l>o)return a-1;o=l}}return 0}),Lg=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Dg=function(e,t,n,r,i){var o=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=Si(t).length,l=Ng(a,n,r,i.right,s);return o(l)},jg=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getClientRects(),a=te(o,(function(e){return Lg(e,n,r)?p.some(e):p.none()}));return a.map((function(i){return Dg(e,t,n,r,i)}))},Fg=function(e,t,n,r){var i=e.dom.createRange(),o=pn(t);return te(o,(function(t){return i.selectNode(t.dom),Lg(i.getBoundingClientRect(),n,r)?Bg(e,t,n,r):p.none()}))},Bg=function(e,t,n,r){return tn(t)?jg(e,t,n,r):Fg(e,t,n,r)},qg=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return Bg(e,t,a,s)},zg=!0,Ug=!1,Gg=function(e,t){return t-e.left<e.right-t?zg:Ug},Vg=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},Wg=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),o=Gg(i,n),a=o===zg?ps:ms;return a(t).map((function(t){return Vg(e,t,o)}))},Hg=function(e,t,n){var r=t.dom.getBoundingClientRect(),i=Gg(r,n);return p.some(Vg(e,t,i))},$g=function(e,t,n){var r=0===pn(t).length?Hg:Wg;return r(e,t,n)},Kg=function(e,t,n){return p.from(e.dom.caretPositionFromPoint(t,n)).bind((function(t){if(null===t.offsetNode)return p.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),p.some(n)}))},Xg=function(e,t,n){return p.from(e.dom.caretRangeFromPoint(t,n))},Yg=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return qg(e,t,a,s)},Jg=function(e,t,n){return dt.fromPoint(e,t,n).bind((function(r){var i=function(){return $g(e,r,t)};return 0===pn(r).length?i():Yg(e,r,t,n).orThunk(i)}))},Qg=function(){return document.caretPositionFromPoint?Kg:document.caretRangeFromPoint?Xg:Jg}(),Zg=function(e,t,n){var r=dt.fromDom(e.document);return Qg(r,t,n).map((function(e){return rg.create(dt.fromDom(e.startContainer),e.startOffset,dt.fromDom(e.endContainer),e.endOffset)}))},ev=function(e,t){var n=Yt(e);return"input"===n?ug.after(e):P(["br","img"],n)?0===t?ug.before(e):ug.after(e):ug.on(e,t)},tv=function(e,t){var n=e.fold(ug.before,ev,ug.after),r=t.fold(ug.before,ev,ug.after);return bg.relative(n,r)},nv=function(e,t,n,r){var i=ev(e,t),o=ev(n,r);return bg.relative(i,o)},rv=function(e){return e.match({domRange:function(e){var t=dt.fromDom(e.startContainer),n=dt.fromDom(e.endContainer);return nv(t,e.startOffset,n,e.endOffset)},relative:tv,exact:nv})},iv=function(e,t,n,r){var i=an(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},ov=function(e,t,n,r){var i=iv(e,t,n,r),o=gt(e,n)&&t===r;return i.collapsed&&!o},av=function(e){return p.from(e.getSelection())},sv=function(e,t){av(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},lv=function(e,t,n,r,i){var o=Eg(e,t,n,r,i);sv(e,o)},cv=function(e,t,n,r,i,o){t.collapse(n.dom,r),t.extend(i.dom,o)},uv=function(e,t){return Pg(e,t).match({ltr:function(t,n,r,i){lv(e,t,n,r,i)},rtl:function(t,n,r,i){av(e).each((function(o){if(o.setBaseAndExtent)o.setBaseAndExtent(t.dom,n,r.dom,i);else if(o.extend)try{cv(e,o,t,n,r,i)}catch(a){lv(e,r,i,t,n)}else lv(e,r,i,t,n)}))}})},dv=function(e,t,n,r,i){var o=nv(t,n,r,i);uv(e,o)},fv=function(e,t,n){var r=tv(t,n);uv(e,r)},hv=function(e){var t=bg.getWin(e).dom,n=function(e,n,r,i){return Eg(t,e,n,r,i)},r=rv(e);return Pg(t,r).match({ltr:n,rtl:n})},pv=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return p.some(rg.create(dt.fromDom(t.startContainer),t.startOffset,dt.fromDom(n.endContainer),n.endOffset))}return p.none()},mv=function(e){if(null===e.anchorNode||null===e.focusNode)return pv(e);var t=dt.fromDom(e.anchorNode),n=dt.fromDom(e.focusNode);return ov(t,e.anchorOffset,n,e.focusOffset)?p.some(rg.create(t,e.anchorOffset,n,e.focusOffset)):pv(e)},gv=function(e,t){var n=_g(e,t);sv(e,n)},vv=function(e){return av(e).filter((function(e){return e.rangeCount>0})).bind(mv)},yv=function(e){return vv(e).map((function(e){return bg.exact(e.start,e.soffset,e.finish,e.foffset)}))},bv=function(e,t){var n=Mg(e,t);return Og(n)},_v=function(e,t,n){return Zg(e,t,n)},wv=function(e){av(e).each((function(e){return e.removeAllRanges()}))},xv=tinymce.util.Tools.resolve("tinymce.util.VK"),Sv=function(e,t,n,r){return Ov(e,t,eg(n),r)},Cv=function(e,t,n,r){return Ov(e,t,tg(n),r)},Ev=function(e,t){var n=bg.exact(t,0,t,0);return hv(n)},kv=function(e,t){var n=Mn(t,"tr");return ee(n).bind((function(t){return zn(t,"td,th").map((function(t){return Ev(e,t)}))}))},Ov=function(e,t,n,r){return n.fold(p.none,p.none,(function(t,n){return ps(n).map((function(t){return Ev(e,t)}))}),(function(n){return br(n,t).bind((function(t){var i=el(n);return e.undoManager.transact((function(){r.insertRowsAfter(t,i)})),kv(e,t)}))}))},Tv=["table","li","dl"],Iv=function(e,t,n){if(e.keyCode===xv.TAB){var r=Rs(t),i=function(e){var t=Yt(e);return gt(e,r)||P(Tv,t)},o=t.selection.getRng();if(o.collapsed){var a=dt.fromDom(o.startContainer);gr(a,i).each((function(r){e.preventDefault();var o=e.shiftKey?Cv:Sv,a=o(t,i,r,n);a.each((function(e){t.selection.setRng(e)}))}))}}},Av=function(e,t){return{selection:e,kill:t}},Rv={create:Av},Pv=function(e,t,n,r){return{start:ug.on(e,t),finish:ug.on(n,r)}},Mv={create:Pv},Nv=function(e,t){var n=Mg(e,t);return rg.create(dt.fromDom(n.startContainer),n.startOffset,dt.fromDom(n.endContainer),n.endOffset)},Lv=Mv.create,Dv=function(e,t,n,r,i,o,a){return gt(n,i)&&r===o?p.none():Un(n,"td,th",t).bind((function(n){return Un(i,"td,th",t).bind((function(r){return jv(e,t,n,r,a)}))}))},jv=function(e,t,n,r,i){return gt(n,r)?p.none():qi(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>0?(i(e,r,t.start,t.finish),p.some(Rv.create(p.some(Lv(n,0,n,us(n))),!0))):p.none()}))},Fv=function(e,t,n,r,i){var o=function(e){return i.clearBeforeUpdate(n),i.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return Wi(r,e,t,i.firstSelectedSelector,i.lastSelectedSelector).map(o)},Bv=function(e,t){return{item:e,mode:t}},qv=function(e,t,n,r){return void 0===r&&(r=zv),e.property().parent(t).map((function(e){return Bv(e,r)}))},zv=function(e,t,n,r){return void 0===r&&(r=Uv),n.sibling(e,t).map((function(e){return Bv(e,r)}))},Uv=function(e,t,n,r){void 0===r&&(r=Uv);var i=e.property().children(t),o=n.first(i);return o.map((function(e){return Bv(e,r)}))},Gv=[{current:qv,next:zv,fallback:p.none()},{current:zv,next:Uv,fallback:p.some(qv)},{current:Uv,next:Uv,fallback:p.some(zv)}],Vv=function(e,t,n,r,i){void 0===i&&(i=Gv);var o=G(i,(function(e){return e.current===n}));return o.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return Vv(e,t,n,r)}))}))}))},Wv=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?p.some(e[e.length-1]):p.none()};return{sibling:e,first:t}},Hv=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?p.some(e[0]):p.none()};return{sibling:e,first:t}},$v={left:Wv,right:Hv},Kv=function(e,t,n,r,i,o){var a=Vv(e,t,r,i);return a.bind((function(t){return o(t.item)?p.none():n(t.item)?p.some(t.item):Kv(e,t.item,n,t.mode,i,o)}))},Xv=function(e,t,n,r){return Kv(e,t,n,zv,$v.left(),r)},Yv=function(e,t,n,r){return Kv(e,t,n,zv,$v.right(),r)},Jv=function(e){return function(t){return 0===e.property().children(t).length}},Qv=function(e,t,n){return ey(e,t,Jv(e),n)},Zv=function(e,t,n){return ty(e,t,Jv(e),n)},ey=Xv,ty=Yv,ny=Oi(),ry=function(e,t){return Qv(ny,e,t)},iy=function(e,t){return Zv(ny,e,t)},oy=function(e,t,n){return ey(ny,e,t,n)},ay=function(e,t,n){return ty(ny,e,t,n)},sy=function(e,t,n){return Ln(e,t,n).isSome()},ly=Xi.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),cy=function(e,t,n){var r=e.getRect(t),i=e.getRect(n);return i.right>r.left&&i.left<r.right},uy=function(e){return Un(e,"tr")},dy=function(e,t,n,r,i,o,a){return Un(r,"td,th",a).bind((function(n){return Un(t,"td,th",a).map((function(t){return gt(n,t)?gt(r,n)&&us(n)===i?o(t):ly.none("in same cell"):ji(uy,[n,t]).fold((function(){return cy(e,t,n)?ly.success():o(t)}),(function(e){return o(t)}))}))})).getOr(ly.none("default"))},fy=function(e,t,n,r,i){return e.fold(t,n,r,i)},hy=ne(ne({},ly),{verify:dy,cata:fy}),py=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},my=function(e){return cn(e).bind((function(t){var n=pn(t);return gy(n,e).map((function(r){return py(t,n,e,r)}))}))},gy=function(e,t){return V(e,o(gt,t))},vy=function(e){return"br"===Yt(e)},yy=function(e,t,n){return t(e,n).bind((function(e){return tn(e)&&0===Si(e).trim().length?yy(e,t,n):p.some(e)}))},by=function(e,t,n){return n.traverse(t).orThunk((function(){return yy(t,n.gather,e)})).map(n.relative)},_y=function(e,t){return mn(e,t).filter(vy).orThunk((function(){return mn(e,t-1).filter(vy)}))},wy=function(e,t,n,r){return _y(t,n).bind((function(t){return r.traverse(t).fold((function(){return yy(t,r.gather,e).map(r.relative)}),(function(e){return my(e).map((function(e){return ug.on(e.parent,e.index)}))}))}))},xy=function(e,t,n,r){var i=vy(t)?by(e,t,r):wy(e,t,n,r);return i.map((function(e){return{start:e,finish:e}}))},Sy=function(e){return hy.cata(e,(function(e){return p.none()}),(function(){return p.none()}),(function(e){return p.some(Rd(e,0))}),(function(e){return p.some(Rd(e,us(e)))}))},Cy=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},Ey=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},ky=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},Oy=function(e){return e.top},Ty=function(e){return e.bottom},Iy=function(e,t,n){return n>=0&&n<us(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):p.none()},Ay=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},Ry=function(e,t){return p.some(e.getRect(t))},Py=function(e,t,n){return en(t)?Ry(e,t).map(Ay):tn(t)?Iy(e,t,n).map(Ay):p.none()},My=function(e,t){return en(t)?Ry(e,t).map(Ay):tn(t)?e.getRangedRect(t,0,t,us(t)).map(Ay):p.none()},Ny=5,Ly=100,Dy=Xi.generate([{none:[]},{retry:["caret"]}]),jy=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},Fy=function(e,t,n){return Dn(t,sh).fold(l,(function(t){return My(e,t).exists((function(e){return jy(n,e)}))}))},By=function(e,t,n,r,i){var o=Cy(i,Ny);return Math.abs(n.bottom-r.bottom)<1||n.top>i.bottom?Dy.retry(o):n.top===i.bottom?Dy.retry(Cy(i,1)):Fy(e,t,i)?Dy.retry(ky(o,Ny,0)):Dy.none()},qy=function(e,t,n,r,i){var o=Ey(i,Ny);return Math.abs(n.top-r.top)<1||n.bottom<i.top?Dy.retry(o):n.bottom===i.top?Dy.retry(Ey(i,1)):Fy(e,t,i)?Dy.retry(ky(o,Ny,0)):Dy.none()},zy={point:Oy,adjuster:qy,move:Ey,gather:ry},Uy={point:Ty,adjuster:By,move:Cy,gather:iy},Gy=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===Yt(e)})).isSome()},Vy=function(e,t,n,r,i){return Wy(e,t,n,t.move(r,Ny),i)},Wy=function(e,t,n,r,i){return 0===i?p.some(r):Gy(e,r.left,t.point(r))?Vy(e,t,n,r,i-1):e.situsFromPoint(r.left,t.point(r)).bind((function(o){return o.start.fold(p.none,(function(o){return My(e,o).bind((function(a){return t.adjuster(e,o,a,n,r).fold(p.none,(function(r){return Wy(e,t,n,r,i-1)}))})).orThunk((function(){return p.some(r)}))}),p.none)}))},Hy=function(e,t){return e.situsFromPoint(t.left,t.bottom+Ny)},$y=function(e,t){return e.situsFromPoint(t.left,t.top-Ny)},Ky=function(e,t,n){return e.point(t)>n.getInnerHeight()?p.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?p.some(-e.point(t)):p.none()},Xy=function(e,t,n){var r=e.move(n,Ny),i=Wy(t,e,n,r,Ly).getOr(r);return Ky(e,i,t).fold((function(){return t.situsFromPoint(i.left,e.point(i))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(i.left,e.point(i)-n)}))},Yy={tryUp:o(Xy,zy),tryDown:o(Xy,Uy),ieTryUp:$y,ieTryDown:Hy,getJumpSize:r(Ny)},Jy=20,Qy=function(e,t,n){return e.getSelection().bind((function(r){return xy(t,r.finish,r.foffset,n).fold((function(){return p.some(Rd(r.finish,r.foffset))}),(function(i){var o=e.fromSitus(i),a=hy.verify(e,r.finish,r.foffset,o.finish,o.foffset,n.failure,t);return Sy(a)}))}))},Zy=function(e,t,n,r,i,o){return 0===o?p.none():nb(e,t,n,r,i).bind((function(a){var s=e.fromSitus(a),l=hy.verify(e,n,r,s.finish,s.foffset,i.failure,t);return hy.cata(l,(function(){return p.none()}),(function(){return p.some(a)}),(function(a){return gt(n,a)&&0===r?eb(e,n,r,Ey,i):Zy(e,t,a,0,i,o-1)}),(function(a){return gt(n,a)&&r===us(a)?eb(e,n,r,Cy,i):Zy(e,t,a,us(a),i,o-1)}))}))},eb=function(e,t,n,r,i){return Py(e,t,n).bind((function(t){return tb(e,i,r(t,Yy.getJumpSize()))}))},tb=function(e,t,n){var r=Qe().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):p.none()},nb=function(e,t,n,r,i){return Py(e,n,r).bind((function(t){return tb(e,i,t)}))},rb=function(e,t,n){return Qy(e,t,n).bind((function(r){return Zy(e,t,r.element,r.offset,n,Jy).map(e.fromSitus)}))},ib=function(e,t){return sy(e,(function(e){return cn(e).exists((function(e){return gt(e,t)}))}))},ob=function(e,t,n,r,i){return Un(r,"td,th",t).bind((function(r){return Un(r,"table",t).bind((function(o){return ib(i,o)?rb(e,t,n).bind((function(e){return Un(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):p.none()}))}))},ab=function(e,t,n,r,i,o){return Qe().browser.isIE()?p.none():o(r,t).orThunk((function(){return ob(e,t,n,r,i).map((function(e){var t=e.range;return Rv.create(p.some(Lv(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},sb=function(e,t){return Un(e,"tr",t).bind((function(e){return Un(e,"table",t).bind((function(n){var r=Mn(n,"tr");return gt(e,r[0])?oy(n,(function(e){return ms(e).isSome()}),t).map((function(e){var t=us(e);return Rv.create(p.some(Lv(e,t,e,t)),!0)})):p.none()}))}))},lb=function(e,t){return Un(e,"tr",t).bind((function(e){return Un(e,"table",t).bind((function(n){var r=Mn(n,"tr");return gt(e,r[r.length-1])?ay(n,(function(e){return ps(e).isSome()}),t).map((function(e){return Rv.create(p.some(Lv(e,0,e,0)),!0)})):p.none()}))}))},cb=function(e,t,n,r,i,o,a){return ob(e,n,r,i,o).bind((function(e){return jv(t,n,e.start,e.finish,a)}))},ub=function(){var e=Xa(p.none()),t=function(){return e.set(p.none())},n=function(t){return e.set(p.some(t))},r=function(){return e.get().isSome()},i=function(t){return e.get().each(t)};return{clear:t,set:n,isSet:r,on:i}},db=function(e,t){return Un(e,"td,th",t)},fb=function(e,t,n,r){var i=ub(),o=i.clear,a=function(o){i.on((function(i){r.clearBeforeUpdate(t),db(o.target,n).each((function(o){qi(i,o,n).each((function(n){var a=n.boxes.getOr([]);(a.length>1||1===a.length&&!gt(i,o))&&(r.selectRange(t,a,n.start,n.finish),e.selectContents(o))}))}))}))},s=function(e){r.clear(t),db(e.target,n).each(i.set)},l=function(e){a(e)},c=function(e){a(e),o()};return{clearstate:o,mousedown:s,mouseover:l,mouseup:c}},hb={traverse:hn,gather:iy,relative:ug.before,otherRetry:Yy.tryDown,ieRetry:Yy.ieTryDown,failure:hy.failedDown},pb={traverse:fn,gather:ry,relative:ug.before,otherRetry:Yy.tryUp,ieRetry:Yy.ieTryUp,failure:hy.failedUp},mb=function(e){return function(t){return t===e}},gb=mb(38),vb=mb(40),yb=function(e){return e>=37&&e<=40},bb={isBackward:mb(37),isForward:mb(39)},_b={isBackward:mb(39),isForward:mb(37)},wb=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Oo(n,r)},xb=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollBy(e,t)},Sb=function(e){var t=function(t,n){return dt.fromPoint(dt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,i){var o=bg.exact(t,n,r,i);return bv(e,o)},i=function(){return yv(e).map((function(t){return Nv(e,t)}))},o=function(t){var n=bg.relative(t.start,t.finish);return Nv(e,n)},a=function(t,n){return _v(e,t,n).map((function(e){return Mv.create(e.start,e.soffset,e.finish,e.foffset)}))},s=function(){wv(e)},l=function(t){void 0===t&&(t=!1),yv(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var i=t?n:r;fv(e,i,i)}),(function(n,r,i,o){var a=t?n:i,s=t?r:o;dv(e,a,s,a,s)}))}))},c=function(t){gv(e,t)},u=function(t){dv(e,t.start,t.soffset,t.finish,t.foffset)},d=function(t,n){fv(e,t,n)},f=function(){return e.innerHeight},h=function(){var t=wb(dt.fromDom(e.document));return t.top},p=function(t,n){xb(t,n,dt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,collapseSelection:l,setSelection:u,setRelativeSelection:d,selectContents:c,getInnerHeight:f,getScrollY:h,scrollBy:p}},Cb=function(e,t){return{rows:e,cols:t}},Eb=function(e,t,n,r){var i=Sb(e),o=fb(i,t,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},kb=function(e,t,n,r){var i=Sb(e),a=function(){return r.clear(t),p.none()},s=function(e,s,l,c,u,d){var f=e.raw,h=f.which,m=!0===f.shiftKey,g=zi(t,r.selectedSelector).fold((function(){return vb(h)&&m?o(cb,i,t,n,hb,c,s,r.selectRange):gb(h)&&m?o(cb,i,t,n,pb,c,s,r.selectRange):vb(h)?o(ab,i,n,hb,c,s,lb):gb(h)?o(ab,i,n,pb,c,s,sb):p.none}),(function(e){var n=function(n){return function(){var o=te(n,(function(n){return Fv(n.rows,n.cols,t,e,r)}));return o.fold((function(){return Gi(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=vb(h)||d.isForward(h)?ug.after:ug.before;return i.setRelativeSelection(ug.on(e.first,0),n(e.table)),r.clear(t),Rv.create(p.none(),!0)}))}),(function(e){return p.some(Rv.create(p.none(),!0))}))}};return vb(h)&&m?n([Cb(1,0)]):gb(h)&&m?n([Cb(-1,0)]):d.isBackward(h)&&m?n([Cb(0,-1),Cb(-1,0)]):d.isForward(h)&&m?n([Cb(0,1),Cb(1,0)]):yb(h)&&!1===m?a:p.none}));return g()},l=function(e,i,o,a,s){return zi(t,r.selectedSelector).fold((function(){var l=e.raw,c=l.which,u=!0===l.shiftKey;return!1===u?p.none():yb(c)?Dv(t,n,i,o,a,s,r.selectRange):p.none()}),p.none)};return{keydown:s,keyup:l}},Ob=function(e,t,n,r){var i=Sb(e);return function(e,o){r.clearBeforeUpdate(t),qi(e,o,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),i.selectContents(o),i.collapseSelection()}))}},Tb=function(e,t){D(t,(function(t){Gc(e,t)}))},Ib=function(e){return function(t){zc(t,e)}},Ab=function(e){return function(t){Tb(t,e)}},Rb=function(e){var t=Ib(e.selected),n=Ab([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=Mn(t,e.selectedSelector);D(r,n)},i=function(n,i,o,a){r(n),D(i,t),zc(o,e.firstSelected),zc(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Pb=function(e,t,n){var r=function(t){Kn(t,e.selected),Kn(t,e.firstSelected),Kn(t,e.lastSelected)},i=function(t){Vn(t,e.selected,"1")},o=function(e){a(e),n()},a=function(t){var n=Mn(t,e.selectedSelector);D(n,r)},s=function(n,r,a,s){o(n),D(r,i),Vn(a,e.firstSelected,"1"),Vn(s,e.lastSelected,"1"),t(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Mb={byClass:Rb,byAttr:Pb},Nb=function(e,t,n){var r=e.slice(0,t[t.length-1].row+1),i=Qd(r,n);return H(i,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return L(n,(function(e){return e.element}))}))},Lb=function(e,t,n){var r=e.slice(t[0].row+t[0].rowspan-1,e.length),i=Qd(r,n);return H(i,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return L(n,(function(e){return e.element}))}))},Db=function(e,t,n){var r=Xr.fromTable(e),i=lf(r,t);return i.map((function(e){var t=Xd(r,n,!1),i=Nb(t,e,n),o=Lb(t,e,n);return{upOrLeftCells:i,downOrRightCells:o}}))},jb=function(e){return!1===Vc(dt.fromDom(e.target),"ephox-snooker-resizer-bar")};function Fb(t,n,r){var i=function(n,i,o){r.targets().each((function(r){var a=br(i);a.each((function(a){var s=pd(t),l=ks(e,dt.fromDom(t.getDoc()),s),c=Db(a,r,l);Nu(t,n,i,o,c)}))}))},o=function(){return Lu(t)},a=Mb.byAttr(Zs,i,o);return t.on("init",(function(r){var i=t.getWin(),o=Rs(t),s=Ns(t),l=function(){var n=t.selection,r=dt.fromDom(n.getStart()),i=dt.fromDom(n.getEnd()),s=ji(br,[r,i]);s.fold((function(){return a.clear(o)}),e)},c=Eb(i,o,s,a),u=kb(i,o,s,a),d=Ob(i,o,s,a),f=function(e){return!0===e.raw.shiftKey};t.on("TableSelectorChange",(function(e){return d(e.start,e.finish)}));var h=function(e,n){f(e)&&(n.kill&&e.kill(),n.selection.each((function(e){var n=bg.relative(e.start,e.finish),r=Mg(i,n);t.selection.setRng(r)})))},p=function(e){var n=Mc(e);if(n.raw.shiftKey&&yb(n.raw.which)){var r=t.selection.getRng(),i=dt.fromDom(r.startContainer),o=dt.fromDom(r.endContainer);u.keyup(n,i,r.startOffset,o,r.endOffset).each((function(e){h(n,e)}))}},m=function(e){var r=Mc(e);n().each((function(e){return e.hideBars()}));var i=t.selection.getRng(),o=dt.fromDom(i.startContainer),a=dt.fromDom(i.endContainer),s=wo(bb,_b)(dt.fromDom(t.selection.getStart()));u.keydown(r,o,i.startOffset,a,i.endOffset,s).each((function(e){h(r,e)})),n().each((function(e){return e.showBars()}))},g=function(e){return 0===e.button},v=function(e){return void 0===e.buttons||(!(!jm.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},y=function(e){c.clearstate()},b=function(e){g(e)&&jb(e)&&c.mousedown(Mc(e))},_=function(e){v(e)&&jb(e)&&c.mouseover(Mc(e))},w=function(e){g(e)&&jb(e)&&c.mouseup(Mc(e))},x=function(){var e=Xa(dt.fromDom(o)),t=Xa(0),n=function(n){var r=dt.fromDom(n.target);if("td"===Yt(r)||"th"===Yt(r)){var i=e.get(),o=t.get();gt(i,r)&&n.timeStamp-o<300&&(n.preventDefault(),d(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},S=x();t.on("dragstart",y),t.on("mousedown",b),t.on("mouseover",_),t.on("mouseup",w),t.on("touchend",S.touchEnd),t.on("keyup",p),t.on("keydown",m),t.on("NodeChange",l)})),{clear:a.clear}}var Bb=function(e,t){var n=Xa(p.none()),r=Xa([]),i=p.none(),o=on("caption"),a=function(e){return i.forall((function(t){return!t[e]}))},s=function(){return Sp(zs(e)).bind((function(e){var n=br(e);return n.map((function(n){return o(e)?el(e):tl(t,n,e)}))}))},l=function(e){var t=br(e.element);return t.map((function(t){var n=Xr.fromTable(t),r=lf(n,e).getOr([]),i=z(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:hf(n,e).isSome(),unmergeable:pf(n,e).isSome(),locked:i}}))},c=function(){n.set(ie(s)()),i=n.get().bind(l),D(r.get(),(function(e){return e()}))},u=function(e,t){var i=function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))};return i(),r.set(r.get().concat([i])),function(){r.set(B(r.get(),(function(e){return e!==i})))}},d=function(e){return i.exists((function(t){return t.locked[e]}))},f=function(e){return u(e,(function(e){return!1}))},h=function(e){return u(e,(function(e){return o(e.element)}))},m=function(e){return function(t){return u(t,(function(t){return o(t.element)||d(e)}))}},g=function(e){return function(t){return u(t,(function(t){return o(t.element)||e().isNone()}))}},v=function(e,t){return function(n){return u(n,(function(n){return o(n.element)||e().isNone()||d(t)}))}},y=function(e){return u(e,(function(e){return a("mergeable")}))},b=function(e){return u(e,(function(e){return a("unmergeable")}))};return e.on("NodeChange ExecCommand TableSelectorChange",c),{onSetupTable:f,onSetupCellOrRow:h,onSetupColumn:m,onSetupPasteable:g,onSetupPasteableColumn:v,onSetupMergeable:y,onSetupUnmergeable:b,resetTargets:c,targets:function(){return n.get()}}},qb=function(e,t,n){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var r=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:r("mceTableProps"),icon:"table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:r("mceTableDelete"),icon:"table-delete-table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:r("mceTableCellProps"),icon:"table-cell-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:r("mceTableMergeCells"),icon:"table-merge-cells",onSetup:t.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:r("mceTableSplitCells"),icon:"table-split-cells",onSetup:t.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:r("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:r("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:r("mceTableDeleteRow"),icon:"table-delete-row",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:r("mceTableRowProps"),icon:"table-row-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:r("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:t.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:r("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:t.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:r("mceTableDeleteCol"),icon:"table-delete-column",onSetup:t.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:t.onSetupPasteable(n.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:t.onSetupPasteable(n.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:t.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:t.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:t.onSetupPasteableColumn(n.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:t.onSetupPasteableColumn(n.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:r("mceInsertTable"),icon:"table"})},zb=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=ld(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},Ub=function(e,t,n){var r=function(t){return function(){return e.execCommand(t)}},i=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},o={text:"Table properties",onSetup:t.onSetupTable,onAction:r("mceTableProps")},a={text:"Delete table",icon:"table-delete-table",onSetup:t.onSetupTable,onAction:r("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:r("mceTableInsertRowBefore"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:r("mceTableInsertRowAfter"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:r("mceTableDeleteRow"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:r("mceTableRowProps"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:r("mceTableCutRow"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:r("mceTableCopyRow"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:r("mceTablePasteRowBefore"),onSetup:t.onSetupPasteable(n.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:r("mceTablePasteRowAfter"),onSetup:t.onSetupPasteable(n.getRows)});var s={type:"nestedmenuitem",text:"Row",getSubmenuItems:function(){return"tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter"}};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:r("mceTableInsertColBefore"),onSetup:t.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:r("mceTableInsertColAfter"),onSetup:t.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:r("mceTableDeleteCol"),onSetup:t.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:r("mceTableCutCol"),onSetup:t.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:r("mceTableCopyCol"),onSetup:t.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:r("mceTablePasteColBefore"),onSetup:t.onSetupPasteableColumn(n.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:r("mceTablePasteColAfter"),onSetup:t.onSetupPasteableColumn(n.getColumns,"onLast")});var l={type:"nestedmenuitem",text:"Column",getSubmenuItems:function(){return"tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter"}};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:r("mceTableCellProps"),onSetup:t.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:r("mceTableMergeCells"),onSetup:t.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:r("mceTableSplitCells"),onSetup:t.onSetupUnmergeable});var c={type:"nestedmenuitem",text:"Cell",getSubmenuItems:function(){return"tablecellprops tablemergecells tablesplitcells"}};!1===ed(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:r("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:r("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",o),e.ui.registry.addMenuItem("deletetable",a),e.ui.registry.addNestedMenuItem("row",s),e.ui.registry.addNestedMenuItem("column",l),e.ui.registry.addNestedMenuItem("cell",c),e.ui.registry.addContextMenu("table",{update:function(){return t.resetTargets(),t.targets().fold((function(){return""}),(function(e){return"caption"===Yt(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}})},Gb=function(e){var t=to((function(){return Rs(e)}),(function(){return Sp(zs(e))}),Zs.selectedSelector),n=Bb(e,t),r=Ad(e),i=Fb(e,r.lazyResize,n),o=kp(e,r.lazyWire,t),a=$m();return Wm(e,o,i,t,a),Hm(e,o,t),sl(e,t,o,i),Ub(e,n,a),qb(e,n,a),zb(e),e.on("PreInit",(function(){e.serializer.addTempAttr(Zs.firstSelected),e.serializer.addTempAttr(Zs.lastSelected),Xm(e)})),Xu(e)&&e.on("keydown",(function(t){Iv(t,e,o)})),e.on("remove",(function(){r.destroy()})),Hp(e,a,r,n)};function Vb(){no.add("table",Gb)}Vb()})()},"94f4":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}})],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("主表")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"imgSlot",fn:function(t){return[t?n("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:e.getImgView(t),height:"25px",alt:"图片不存在"}}):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此图片")])]}},{key:"fileSlot",fn:function(t){return[t?n("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(n){return e.uploadFile(t)}}},[e._v("\n          下载\n        ")]):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此文件")])]}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("testParentTest_1-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("b65a"),a=n("6a5c"),s={name:"TestParentTest_1List",mixins:[o["a"]],components:{TestParentTest_1Modal:a["default"]},data:function(){return{description:"主表管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"哈哈",align:"center",dataIndex:"aa"},{title:"黑嘿",align:"center",dataIndex:"bb"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/test_parent_test_122/testParentTest_1/list",delete:"/test_parent_test_122/testParentTest_1/delete",deleteBatch:"/test_parent_test_122/testParentTest_1/deleteBatch",exportXlsUrl:"/test_parent_test_122/testParentTest_1/exportXls",importExcelUrl:"test_parent_test_122/testParentTest_1/importExcel"},dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{initDictConfig:function(){}}},l=s,c=(n("309c"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"c9260a66",null);t["default"]=u.exports},9536:function(e,t,n){"use strict";n("0bd6")},9539:function(e,t,n){},"958e":function(e,t,n){},"959b":function(e,t,n){(function(e){e(n("56b3"),n("d5e0"),n("f040"))})((function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function o(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,f=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v="    ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function _(e){return!e||!/\S/.test(e.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==S){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=O,t.block=x,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function x(t,r){var i=t.column()===r.indentation,s=_(r.prevLine.stream),h=r.indentedCode,g=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){r.list=null;while(w<r.listStack[r.listStack.length-1])r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var x=!s&&!g&&!r.prevLine.header&&(!v||!h)&&!r.prevLine.fencedCodeEnd,S=(!1===r.list||g||s)&&r.indentation<=b&&t.match(l),k=null;if(r.indentationDiff>=4&&(h||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(k=t.match(d))&&k[1].length<=6)return r.quote=0,r.header=k[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,E(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),E(r);if(!S&&!r.setext&&i&&r.indentation<=b&&(k=t.match(c))){var O=k[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+O]),E(r)}return i&&r.indentation<=b&&(k=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(k[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(k[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=C,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,E(r)):r.setext||!(x&&v||r.quote||!1!==r.list||r.code||S||m.test(t.string))&&(k=t.lookAhead(1))&&(k=k.match(f))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==k[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,E(r)):S?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,r,P):y(t,r,r.inline)}function S(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=O,n.block=x,n.htmlState=null)}return o}function C(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(o||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),o||(r=E(t)),t.localMode=t.localState=null,t.block=x,t.f=O,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?b(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),a.code)}function E(e){var t=[];if(e.formatting){t.push(a.formatting),"string"===typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(a.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(a.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function k(e,t){if(e.match(h,!0))return E(t)}function O(t,i){var o=i.text(t,i);if("undefined"!==typeof o)return o;if(i.list)return i.list=null,E(i);if(i.taskList){var s=" "===t.match(u,!0)[1];return s?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,E(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),E(i);var l=t.next();if(i.linkTitle){i.linkTitle=!1;var c=l;"("===l&&(c=")"),c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var d="^\\s*(?:[^"+c+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(d),!0))return a.linkHref}if("`"===l){var f=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var p=E(i);return i.code=0,p}return i.formatting=f,E(i)}return i.code=h,E(i)}if(i.code)return E(i);if("\\"===l&&(t.next(),n.highlightFormatting)){var m=E(i),v=a.formatting+"-escape";return m?m+" "+v:v}if("!"===l&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("["===l&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("]"===l&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");m=E(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=I,m}if("["===l&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),E(i);if("]"===l&&i.linkText){n.highlightFormatting&&(i.formatting="link");m=E(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?I:O,m}if("<"===l&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=T,n.highlightFormatting&&(i.formatting="link");m=E(i);return m?m+=" ":m="",m+a.linkInline}if("<"===l&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=T,n.highlightFormatting&&(i.formatting="link");m=E(i);return m?m+=" ":m="",m+a.linkEmail}if(n.xml&&"<"===l&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var _=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(_)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,S)}if(n.xml&&"<"===l&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===l||"_"===l){var w=1,x=1==t.pos?" ":t.string.charAt(t.pos-2);while(w<3&&t.eat(l))w++;var C=t.peek()||" ",k=!/\s/.test(C)&&(!g.test(C)||/\s/.test(x)||g.test(x)),A=!/\s/.test(x)&&(!g.test(x)||/\s/.test(C)||g.test(C)),R=null,P=null;if(w%2&&(i.em||!k||"*"!==l&&A&&!g.test(x)?i.em!=l||!A||"*"!==l&&k&&!g.test(C)||(R=!1):R=!0),w>1&&(i.strong||!k||"*"!==l&&A&&!g.test(x)?i.strong!=l||!A||"*"!==l&&k&&!g.test(C)||(P=!1):P=!0),null!=P||null!=R){n.highlightFormatting&&(i.formatting=null==R?"strong":null==P?"em":"strong em"),!0===R&&(i.em=l),!0===P&&(i.strong=l);p=E(i);return!1===R&&(i.em=!1),!1===P&&(i.strong=!1),p}}else if(" "===l&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return E(i);t.backUp(1)}if(n.strikethrough)if("~"===l&&t.eatWhile(l)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");p=E(i);return i.strikethrough=!1,p}if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),E(i)}else if(" "===l&&t.match("~~",!0)){if(" "===t.peek())return E(i);t.backUp(2)}if(n.emoji&&":"===l&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var M=E(i);return i.emoji=!1,M}return" "===l&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),E(i)}function T(e,t){var r=e.next();if(">"===r){t.f=t.inline=O,n.highlightFormatting&&(t.formatting="link");var i=E(t);return i?i+=" ":i="",i+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function I(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=R("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,E(t)):"error"}var A={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function R(e){return function(t,r){var i=t.next();if(i===e){r.f=r.inline=O,n.highlightFormatting&&(r.formatting="link-string");var o=E(r);return r.linkHref=!1,o}return t.match(A[e]),r.linkHref=!0,E(r)}}function P(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=M,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,E(t)):y(e,t,O)}function M(e,t){if(e.match("]:",!0)){t.f=t.inline=N,n.highlightFormatting&&(t.formatting="link");var r=E(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function N(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=O,a.linkHref+" url")}var L={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:O,text:k,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=S)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==S?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(t,n,i){return t.block==S&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:w,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}))},"95ae":function(e,t,n){},"95df":function(e,t,n){},"95e3":function(e,t,n){"use strict";n("c601")},9606:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{"min-width":"500px","overflow-x":"auto"}},[n("p",[e._v("我是右侧页面")]),n("img-turn-page")],1)},i=[],o=n("4874"),a={name:"SplitPanelAModal",components:{ImgTurnPage:o["default"]},data:function(){return{}},created:function(){},methods:{}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"233ad4e8",null);t["default"]=c.exports},"96b3":function(e,t,n){},"96cd":function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports["default"]=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"===typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{u=t.regeneratorRuntime=c?e.exports:{},u.wrap=_;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",m={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(P([])));y&&y!==r&&i.call(y,a)&&(g=y);var b=C.prototype=x.prototype=Object.create(g);S.prototype=b.constructor=C,C.constructor=S,C[l]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},E(k.prototype),k.prototype[s]=function(){return this},u.AsyncIterator=k,u.async=function(e,t,n,r){var i=new k(_(e,t,n,r));return u.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=P,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new R(r||[]);return o._invoke=O(e,n,a),o}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function S(){}function C(){}function E(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e){function t(n,r,o,a){var s=w(e[n],e,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(c).then((function(e){l.value=e,o(l)}),a)}a(s.arg)}var n;function r(e,r){function i(){return new Promise((function(n,i){t(e,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function O(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return M()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=w(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function T(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,T(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=w(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"96d9":function(e,t,n){var r=n("83cf"),i=n("0280"),o=n("d75c"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},"96f8":function(e,t,n){var r=n("9c2cc"),i=n("8ebe"),o=n("5ff1"),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},"972f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{padding:"0 0 32px 32px"}},[n("v-chart",{attrs:{forceFit:!0,height:350,data:e.chartData,scale:e.scale}},[n("v-coord",{attrs:{type:"polar",startAngle:-202.5,endAngle:22.5,radius:.75}}),n("v-axis",{attrs:{dataKey:"value",zIndex:2,line:null,label:e.axisLabel,subTickCount:4,subTickLine:e.axisSubTickLine,tickLine:e.axisTickLine,grid:null}}),n("v-axis",{attrs:{dataKey:"1",show:!1}}),n("v-series",{attrs:{gemo:"point",position:"value*1",shape:"pointer",color:"#1890FF",active:!1}}),n("v-guide",{attrs:{type:"arc",zIndex:0,top:!1,start:e.arcGuide1Start,end:e.arcGuide1End,vStyle:e.arcGuide1Style}}),n("v-guide",{attrs:{type:"arc",zIndex:1,start:e.arcGuide2Start,end:e.getArcGuide2End(),vStyle:e.arcGuide2Style}}),n("v-guide",{attrs:{type:"html",position:e.htmlGuidePosition,html:e.getHtmlGuideHtml()}})],1)],1)},i=[],o=(n("c5f6"),n("3654"));Object(o["b"])("point","pointer",{draw:function(e,t){var n=e.points[0];n=this.parsePoint(n);var r=this.parsePoint({x:0,y:0});return t.addShape("line",{attrs:{x1:r.x,y1:r.y,x2:n.x,y2:n.y+15,stroke:e.color,lineWidth:5,lineCap:"round"}}),t.addShape("circle",{attrs:{x:r.x,y:r.y,r:9.75,stroke:e.color,lineWidth:4.5,fill:"#fff"}})}});var a=[{dataKey:"value",min:0,max:9,tickInterval:1,nice:!1}],s=[{value:0}],l={name:"DashChartDemo",props:{datasource:{type:Number,default:0},title:{type:String,default:""}},created:function(){this.datasource?this.chartData=[{value:this.datasource}]:this.chartData=s,this.getChartData()},watch:{datasource:function(e){this.chartData=[{value:e}],this.getChartData()}},methods:{getChartData:function(){this.chartData&&this.chartData.length>0?this.abcd=10*this.chartData[0].value:this.abcd=70},getHtmlGuideHtml:function(){return'<div style="width: 300px;text-align: center;">\n<p style="font-size: 14px;color: #545454;margin: 0;">'+this.title+'</p>\n<p style="font-size: 36px;color: #545454;margin: 0;">'+this.abcd+"%</p>\n</div>"},getArcGuide2End:function(){return[this.chartData[0].value,.945]}},data:function(){return{chartData:[],height:400,scale:a,abcd:70,axisLabel:{offset:-16,textStyle:{fontSize:18,textAlign:"center",textBaseline:"middle"}},axisSubTickLine:{length:-8,stroke:"#fff",strokeOpacity:1},axisTickLine:{length:-17,stroke:"#fff",strokeOpacity:1},arcGuide1Start:[0,.945],arcGuide1End:[9,.945],arcGuide1Style:{stroke:"#CBCBCB",lineWidth:18},arcGuide2Start:[0,.945],arcGuide2Style:{stroke:"#1890FF",lineWidth:18},htmlGuidePosition:["50%","100%"],htmlGuideHtml:'\n      <div style="width: 300px;text-align: center;">\n        <p style="font-size: 14px;color: #545454;margin: 0;">'.concat(this.title,'</p>\n        <p style="font-size: 36px;color: #545454;margin: 0;">').concat(this.abcd,"%</p>\n      </div>\n    ")}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},9769:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u}));var r=n("7fc9");function i(e,t,n,i,o,a,s){var l,c=e[t],u=e[t+1],d=e[n]-c,f=e[n+1]-u;if(0===d&&0===f)l=t;else{var h=((o-c)*d+(a-u)*f)/(d*d+f*f);if(h>1)l=n;else{if(h>0){for(var p=0;p<i;++p)s[p]=Object(r["c"])(e[t+p],e[n+p],h);return void(s.length=i)}l=t}}for(p=0;p<i;++p)s[p]=e[l+p];s.length=i}function o(e,t,n,i,o){var a=e[t],s=e[t+1];for(t+=i;t<n;t+=i){var l=e[t],c=e[t+1],u=Object(r["g"])(a,s,l,c);u>o&&(o=u),a=l,s=c}return o}function a(e,t,n,r,i){for(var a=0,s=n.length;a<s;++a){var l=n[a];i=o(e,t,l,r,i),t=l}return i}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){var l=n[o];i=a(e,t,l,r,i),t=l[l.length-1]}return i}function l(e,t,n,o,a,s,l,c,u,d,f){if(t==n)return d;var h,p;if(0===a){if(p=Object(r["g"])(l,c,e[t],e[t+1]),p<d){for(h=0;h<o;++h)u[h]=e[t+h];return u.length=o,p}return d}var m=f||[NaN,NaN],g=t+o;while(g<n)if(i(e,g-o,g,o,l,c,m),p=Object(r["g"])(l,c,m[0],m[1]),p<d){for(d=p,h=0;h<o;++h)u[h]=m[h];u.length=o,g+=o}else g+=o*Math.max((Math.sqrt(p)-Math.sqrt(d))/a|0,1);if(s&&(i(e,n-o,t,o,l,c,m),p=Object(r["g"])(l,c,m[0],m[1]),p<d)){for(d=p,h=0;h<o;++h)u[h]=m[h];u.length=o}return d}function c(e,t,n,r,i,o,a,s,c,u,d){for(var f=d||[NaN,NaN],h=0,p=n.length;h<p;++h){var m=n[h];u=l(e,t,m,r,i,o,a,s,c,u,f),t=m}return u}function u(e,t,n,r,i,o,a,s,l,u,d){for(var f=d||[NaN,NaN],h=0,p=n.length;h<p;++h){var m=n[h];u=c(e,t,m,r,i,o,a,s,l,u,f),t=m[m.length-1]}return u}},9834:function(e,t,n){"use strict";n.d(t,"a",(function(){return B_}));var r={};n.r(r),n.d(r,"abstract",(function(){return Ds})),n.d(r,"getUid",(function(){return Fs})),n.d(r,"VERSION",(function(){return Bs}));var i={};n.r(i),n.d(i,"register",(function(){return UO}));var o=window.SuperMap=window.SuperMap||{};o.Components=window.SuperMap.Components||{};var a=o.DataFormat={GEOJSON:"GEOJSON",ISERVER:"ISERVER"},s=o.ServerType={ISERVER:"ISERVER",IPORTAL:"IPORTAL",ONLINE:"ONLINE"},l=o.GeometryType={LINE:"LINE",LINEM:"LINEM",POINT:"POINT",REGION:"REGION",POINTEPS:"POINTEPS",LINEEPS:"LINEEPS",REGIONEPS:"REGIONEPS",ELLIPSE:"ELLIPSE",CIRCLE:"CIRCLE",TEXT:"TEXT",RECTANGLE:"RECTANGLE",UNKNOWN:"UNKNOWN",GEOCOMPOUND:"GEOCOMPOUND"},c=o.QueryOption={ATTRIBUTE:"ATTRIBUTE",ATTRIBUTEANDGEOMETRY:"ATTRIBUTEANDGEOMETRY",GEOMETRY:"GEOMETRY"},u=(o.JoinType={INNERJOIN:"INNERJOIN",LEFTJOIN:"LEFTJOIN"},o.SpatialQueryMode={CONTAIN:"CONTAIN",CROSS:"CROSS",DISJOINT:"DISJOINT",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",NONE:"NONE",OVERLAP:"OVERLAP",TOUCH:"TOUCH",WITHIN:"WITHIN"}),d=(o.SpatialRelationType={CONTAIN:"CONTAIN",INTERSECT:"INTERSECT",WITHIN:"WITHIN"},o.MeasureMode={DISTANCE:"DISTANCE",AREA:"AREA"}),f=o.Unit={METER:"METER",KILOMETER:"KILOMETER",MILE:"MILE",YARD:"YARD",DEGREE:"DEGREE",MILLIMETER:"MILLIMETER",CENTIMETER:"CENTIMETER",INCH:"INCH",DECIMETER:"DECIMETER",FOOT:"FOOT",SECOND:"SECOND",MINUTE:"MINUTE",RADIAN:"RADIAN"},h=o.BufferRadiusUnit={CENTIMETER:"CENTIMETER",DECIMETER:"DECIMETER",FOOT:"FOOT",INCH:"INCH",KILOMETER:"KILOMETER",METER:"METER",MILE:"MILE",MILLIMETER:"MILLIMETER",YARD:"YARD"},p=(o.EngineType={IMAGEPLUGINS:"IMAGEPLUGINS",OGC:"OGC",ORACLEPLUS:"ORACLEPLUS",SDBPLUS:"SDBPLUS",SQLPLUS:"SQLPLUS",UDB:"UDB"},o.ThemeGraphTextFormat={CAPTION:"CAPTION",CAPTION_PERCENT:"CAPTION_PERCENT",CAPTION_VALUE:"CAPTION_VALUE",PERCENT:"PERCENT",VALUE:"VALUE"}),m=o.ThemeGraphType={AREA:"AREA",BAR:"BAR",BAR3D:"BAR3D",LINE:"LINE",PIE:"PIE",PIE3D:"PIE3D",POINT:"POINT",RING:"RING",ROSE:"ROSE",ROSE3D:"ROSE3D",STACK_BAR:"STACK_BAR",STACK_BAR3D:"STACK_BAR3D",STEP:"STEP"},g=o.GraphAxesTextDisplayMode={ALL:"ALL",NONE:"NONE",YAXES:"YAXES"},v=o.GraduatedMode={CONSTANT:"CONSTANT",LOGARITHM:"LOGARITHM",SQUAREROOT:"SQUAREROOT"},y=o.RangeMode={CUSTOMINTERVAL:"CUSTOMINTERVAL",EQUALINTERVAL:"EQUALINTERVAL",LOGARITHM:"LOGARITHM",QUANTILE:"QUANTILE",SQUAREROOT:"SQUAREROOT",STDDEVIATION:"STDDEVIATION"},b=(o.ThemeType={DOTDENSITY:"DOTDENSITY",GRADUATEDSYMBOL:"GRADUATEDSYMBOL",GRAPH:"GRAPH",LABEL:"LABEL",RANGE:"RANGE",UNIQUE:"UNIQUE"},o.ColorGradientType={BLACK_WHITE:"BLACKWHITE",BLUE_BLACK:"BLUEBLACK",BLUE_RED:"BLUERED",BLUE_WHITE:"BLUEWHITE",CYAN_BLACK:"CYANBLACK",CYAN_BLUE:"CYANBLUE",CYAN_GREEN:"CYANGREEN",CYAN_WHITE:"CYANWHITE",GREEN_BLACK:"GREENBLACK",GREEN_BLUE:"GREENBLUE",GREEN_ORANGE_VIOLET:"GREENORANGEVIOLET",GREEN_RED:"GREENRED",GREEN_WHITE:"GREENWHITE",PINK_BLACK:"PINKBLACK",PINK_BLUE:"PINKBLUE",PINK_RED:"PINKRED",PINK_WHITE:"PINKWHITE",RAIN_BOW:"RAINBOW",RED_BLACK:"REDBLACK",RED_WHITE:"REDWHITE",SPECTRUM:"SPECTRUM",TERRAIN:"TERRAIN",YELLOW_BLACK:"YELLOWBLACK",YELLOW_BLUE:"YELLOWBLUE",YELLOW_GREEN:"YELLOWGREEN",YELLOW_RED:"YELLOWRED",YELLOW_WHITE:"YELLOWWHITE"}),_=o.TextAlignment={TOPLEFT:"TOPLEFT",TOPCENTER:"TOPCENTER",TOPRIGHT:"TOPRIGHT",BASELINELEFT:"BASELINELEFT",BASELINECENTER:"BASELINECENTER",BASELINERIGHT:"BASELINERIGHT",BOTTOMLEFT:"BOTTOMLEFT",BOTTOMCENTER:"BOTTOMCENTER",BOTTOMRIGHT:"BOTTOMRIGHT",MIDDLELEFT:"MIDDLELEFT",MIDDLECENTER:"MIDDLECENTER",MIDDLERIGHT:"MIDDLERIGHT"},w=(o.FillGradientMode={NONE:"NONE",LINEAR:"LINEAR",RADIAL:"RADIAL",CONICAL:"CONICAL",SQUARE:"SQUARE"},o.AlongLineDirection={NORMAL:"ALONG_LINE_NORMAL",LB_TO_RT:"LEFT_BOTTOM_TO_RIGHT_TOP",LT_TO_RB:"LEFT_TOP_TO_RIGHT_BOTTOM",RB_TO_LT:"RIGHT_BOTTOM_TO_LEFT_TOP",RT_TO_LB:"RIGHT_TOP_TO_LEFT_BOTTOM"}),x=o.LabelBackShape={DIAMOND:"DIAMOND",ELLIPSE:"ELLIPSE",MARKER:"MARKER",NONE:"NONE",RECT:"RECT",ROUNDRECT:"ROUNDRECT",TRIANGLE:"TRIANGLE"},S=o.LabelOverLengthMode={NEWLINE:"NEWLINE",NONE:"NONE",OMIT:"OMIT"},C=(o.DirectionType={EAST:"EAST",NONE:"NONE",NORTH:"NORTH",SOURTH:"SOURTH",WEST:"WEST"},o.SideType={LEFT:"LEFT",MIDDLE:"MIDDLE",NONE:"NONE",RIGHT:"RIGHT"},o.SupplyCenterType={FIXEDCENTER:"FIXEDCENTER",NULL:"NULL",OPTIONALCENTER:"OPTIONALCENTER"},o.TurnType={AHEAD:"AHEAD",BACK:"BACK",END:"END",LEFT:"LEFT",NONE:"NONE",RIGHT:"RIGHT"},o.BufferEndType={FLAT:"FLAT",ROUND:"ROUND"}),E=o.OverlayOperationType={CLIP:"CLIP",ERASE:"ERASE",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",UNION:"UNION",UPDATE:"UPDATE",XOR:"XOR"},k=o.OutputType={INDEXEDHDFS:"INDEXEDHDFS",UDB:"UDB",MONGODB:"MONGODB",PG:"PG"},O=o.SmoothMethod={BSPLINE:"BSPLINE",POLISH:"POLISH"},T=o.SurfaceAnalystMethod={ISOLINE:"ISOLINE",ISOREGION:"ISOREGION"},I=o.DataReturnMode={DATASET_AND_RECORDSET:"DATASET_AND_RECORDSET",DATASET_ONLY:"DATASET_ONLY",RECORDSET_ONLY:"RECORDSET_ONLY"},A=o.EditType={ADD:"add",UPDATE:"update",DELETE:"delete"},R=o.TransferTactic={LESS_TIME:"LESS_TIME",LESS_TRANSFER:"LESS_TRANSFER",LESS_WALK:"LESS_WALK",MIN_DISTANCE:"MIN_DISTANCE"},P=o.TransferPreference={BUS:"BUS",SUBWAY:"SUBWAY",NO_SUBWAY:"NO_SUBWAY",NONE:"NONE"},M=(o.GridType={CROSS:"CROSS",GRID:"GRID",POINT:"POINT"},o.ColorSpaceType={CMYK:"CMYK",RGB:"RGB"},o.LayerType={UGC:"UGC",WMS:"WMS",WFS:"WFS",CUSTOM:"CUSTOM"},o.UGCLayerType={THEME:"THEME",VECTOR:"VECTOR",GRID:"GRID",IMAGE:"IMAGE"},o.StatisticMode={AVERAGE:"AVERAGE",MAX:"MAX",MIN:"MIN",STDDEVIATION:"STDDEVIATION",SUM:"SUM",VARIANCE:"VARIANCE"},o.PixelFormat={BIT16:"BIT16",BIT32:"BIT32",BIT64:"BIT64",SINGLE:"SINGLE",DOUBLE:"DOUBLE",UBIT1:"UBIT1",UBIT4:"UBIT4",UBIT8:"UBIT8",UBIT24:"UBIT24",UBIT32:"UBIT32"},o.SearchMode={KDTREE_FIXED_COUNT:"KDTREE_FIXED_COUNT",KDTREE_FIXED_RADIUS:"KDTREE_FIXED_RADIUS",NONE:"NONE",QUADTREE:"QUADTREE"},o.InterpolationAlgorithmType={KRIGING:"KRIGING",SimpleKriging:"SimpleKriging",UniversalKriging:"UniversalKriging"},o.VariogramMode={EXPONENTIAL:"EXPONENTIAL",GAUSSIAN:"GAUSSIAN",SPHERICAL:"SPHERICAL"}),N=o.Exponent={EXP1:"EXP1",EXP2:"EXP2"},L=o.ClientType={IP:"IP",REFERER:"Referer",REQUESTIP:"RequestIP",NONE:"NONE",SERVER:"SERVER",WEB:"WEB"},D=(o.ChartType={BAR:"Bar",BAR3D:"Bar3D",CIRCLE:"Circle",PIE:"Pie",POINT:"Point",LINE:"Line",RING:"Ring"},o.ClipAnalystMode={CLIP:"clip",INTERSECT:"intersect"}),j=o.AnalystAreaUnit={SQUAREMETER:"SquareMeter",SQUAREKILOMETER:"SquareKiloMeter",HECTARE:"Hectare",ARE:"Are",ACRE:"Acre",SQUAREFOOT:"SquareFoot",SQUAREYARD:"SquareYard",SQUAREMILE:"SquareMile"},F=o.AnalystSizeUnit={METER:"Meter",KILOMETER:"Kilometer",YARD:"Yard",FOOT:"Foot",MILE:"Mile"},B=o.StatisticAnalystMode={MAX:"max",MIN:"min",AVERAGE:"average",SUM:"sum",VARIANCE:"variance",STDDEVIATION:"stdDeviation"},q=o.SummaryType={SUMMARYMESH:"SUMMARYMESH",SUMMARYREGION:"SUMMARYREGION"},z=o.TopologyValidatorRule={REGIONNOOVERLAP:"REGIONNOOVERLAP",REGIONNOOVERLAPWITH:"REGIONNOOVERLAPWITH",REGIONCONTAINEDBYREGION:"REGIONCONTAINEDBYREGION",REGIONCOVEREDBYREGION:"REGIONCOVEREDBYREGION",LINENOOVERLAP:"LINENOOVERLAP",LINENOOVERLAPWITH:"LINENOOVERLAPWITH",POINTNOIDENTICAL:"POINTNOIDENTICAL"},U=o.AggregationType={GEOHASH_GRID:"geohash_grid",FILTER:"filter"},G=o.AggregationQueryBuilderType={GEO_BOUNDING_BOX:"geo_bounding_box"},V=(o.GetFeatureMode={BOUNDS:"BOUNDS",BUFFER:"BUFFER",ID:"ID",SPATIAL:"SPATIAL",SQL:"SQL"},o.RasterFunctionType={NDVI:"NDVI",HILLSHADE:"HILLSHADE"});o.ResourceType={MAP:"MAP",SERVICE:"SERVICE",SCENE:"SCENE",DATA:"DATA",INSIGHTS_WORKSPACE:"INSIGHTS_WORKSPACE",MAP_DASHBOARD:"MAP_DASHBOARD"},o.OrderBy={UPDATETIME:"UPDATETIME",HEATLEVEL:"HEATLEVEL",RELEVANCE:"RELEVANCE"},o.OrderType={ASC:"ASC",DESC:"DESC"},o.SearchType={PUBLIC:"PUBLIC",MY_RES:"MY_RES",MYGROUP_RES:"MYGROUP_RES",MYDEPARTMENT_RES:"MYDEPARTMENT_RES",SHARETOME_RES:"SHARETOME_RES"},o.AggregationTypes={TAG:"TAG",TYPE:"TYPE"},o.PermissionType={SEARCH:"SEARCH",READ:"READ",READWRITE:"READWRITE",DELETE:"DELETE",DOWNLOAD:"DOWNLOAD"},o.EntityType={DEPARTMENT:"DEPARTMENT",GROUP:"GROUP",IPORTALGROUP:"IPORTALGROUP",ROLE:"ROLE",USER:"USER"},o.DataItemType={WORKSPACE:"WORKSPACE",UDB:"UDB",SHP:"SHP",EXCEL:"EXCEL",CSV:"CSV",GEOJSON:"GEOJSON",SMTILES:"SMTILES",SVTILES:"SVTILES",MBTILES:"MBTILES",TPK:"TPK",UGCV5:"UGCV5",UGCV5_MVT:"UGCV5_MVT",JSON:"JSON"},o.WebExportFormatType={PNG:"PNG",PDF:"PDF"},o.WebScaleOrientationType={HORIZONTALLABELSBELOW:"HORIZONTALLABELSBELOW",HORIZONTALLABELSABOVE:"HORIZONTALLABELSABOVE",VERTICALLABELSLEFT:"VERTICALLABELSLEFT",VERTICALLABELSRIGHT:"VERTICALLABELSRIGHT"},o.WebScaleType={LINE:"LINE",BAR:"BAR",BAR_SUB:"BAR_SUB"},o.WebScaleUnit={METER:"METER",FOOT:"FOOT",DEGREES:"DEGREES"};class W{constructor(e,t){this.w=e?parseFloat(e):0,this.h=e?parseFloat(t):0,this.CLASS_NAME="SuperMap.Size"}toString(){return"w="+this.w+",h="+this.h}clone(){return new W(this.w,this.h)}equals(e){var t=!1;return null!=e&&(t=this.w===e.w&&this.h===e.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(e.w)&&isNaN(e.h)),t}destroy(){this.w=null,this.h=null}}o.Size=W;class H{constructor(e,t,n){this.x=e?parseFloat(e):0,this.y=t?parseFloat(t):0,this.mode=n,this.CLASS_NAME="SuperMap.Pixel",o.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}toString(){return"x="+this.x+",y="+this.y}clone(){return new H(this.x,this.y,this.mode)}equals(e){var t=!1;return null!=e&&(t=this.x==e.x&&this.y==e.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(e.x)&&isNaN(e.y)),t}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}add(e,t){if(null==e||null==t)throw new TypeError("Pixel.add cannot receive null values");return new H(this.x+e,this.y+t)}offset(e){var t=this.clone();return e&&(t=this.add(e.x,e.y)),t}destroy(){this.x=null,this.y=null,this.mode=null}}o.Pixel=H,o.inherit=function(e,t){var n,r,i,a=function(){};for(a.prototype=t.prototype,e.prototype=new a,n=2,r=arguments.length;n<r;n++)i=arguments[n],"function"===typeof i&&(i=i.prototype),o.Util.extend(e.prototype,i)},o.mixin=function(...e){class t{constructor(t){for(var n=0;n<e.length;n++)i(this,new e[n](t))}}for(var n=0;n<e.length;n++){var r=e[n];i(t,r),i(t.prototype,r.prototype),i(t.prototype,new r)}return t;function i(e,t){var n=Object.getOwnPropertyNames(t);Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t)));for(var r=0;r<n.length;r++){var i=n[r];if("constructor"!==i&&"prototype"!==i&&"name"!==i&&"length"!==i){let n=Object.getOwnPropertyDescriptor(t,i);window["ActiveXObject"]?Object.defineProperty(e,i,n||{}):Object.defineProperty(e,i,n)}}}};var $=o.String={startsWith:function(e,t){return 0==e.indexOf(t)},contains:function(e,t){return-1!=e.indexOf(t)},trim:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(e){for(var t=e.split("-"),n=t[0],r=1,i=t.length;r<i;r++){var o=t[r];n+=o.charAt(0).toUpperCase()+o.substring(1)}return n},format:function(e,t,n){t||(t=window);var r=function(e,r){for(var i,o=r.split(/\.+/),a=0;a<o.length;a++)0==a&&(i=t),i=i[o[a]];return"function"===typeof i&&(i=n?i.apply(null,n):i()),"undefined"==typeof i?"undefined":i};return e.replace(o.String.tokenRegEx,r)},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(e){return o.String.numberRegEx.test(e)},numericIf:function(e){return o.String.isNumeric(e)?parseFloat(e):e}},K=o.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(e,t){var n=0;return t>0&&(n=parseFloat(e.toPrecision(t))),n},format:function(e,t,n,r){t="undefined"!=typeof t?t:0,n="undefined"!=typeof n?n:o.Number.thousandsSeparator,r="undefined"!=typeof r?r:o.Number.decimalSeparator,null!=t&&(e=parseFloat(e.toFixed(t)));var i=e.toString().split(".");1===i.length&&null==t&&(t=0);var a,s=i[0];if(n){var l=/(-?[0-9]+)([0-9]{3})/;while(l.test(s))s=s.replace(l,"$1"+n+"$2")}if(0==t)a=s;else{var c=i.length>1?i[1]:"0";null!=t&&(c+=new Array(t-c.length+1).join("0")),a=s+r+c}return a}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(e){return K.limitSigDigs(this,e)});var X=o.Function={bind:function(e,t){var n=Array.prototype.slice.apply(arguments,[2]);return function(){var r=n.concat(Array.prototype.slice.apply(arguments,[0]));return e.apply(t,r)}},bindAsEventListener:function(e,t){return function(n){return e.call(t,n||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}},Y=(o.Array={filter:function(e,t,n){var r=[];if(Array.prototype.filter)r=e.filter(t,n);else{var i=e.length;if("function"!=typeof t)throw new TypeError;for(var o=0;o<i;o++)if(o in e){var a=e[o];t.call(n,a,o,e)&&r.push(a)}}return r}},o.Util=o.Util||{});o.Util.extend=function(e,t){if(e=e||{},t){for(var n in t){var r=t[n];void 0!==r&&(e[n]=r)}var i="function"===typeof window.Event&&t instanceof window.Event;!i&&t.hasOwnProperty&&t.hasOwnProperty("toString")&&(e.toString=t.toString)}return e},o.Util.copy=function(e,t){var n;if(e=e||{},t)for(var r in e)n=t[r],"undefined"!==typeof n&&(e[r]=n)},o.Util.reset=function(e){for(var t in e=e||{},e)if(e.hasOwnProperty(t)){if("object"===typeof e[t]&&e[t]instanceof Array){for(var n in e[t])e[t][n].destroy&&e[t][n].destroy();e[t].length=0}else"object"===typeof e[t]&&e[t]instanceof Object&&e[t].destroy&&e[t].destroy();e[t]=null}},o.Util.getElement=function(){for(var e=[],t=0,n=arguments.length;t<n;t++){var r=arguments[t];if("string"===typeof r&&(r=document.getElementById(r)),1===arguments.length)return r;e.push(r)}return e},o.Util.isElement=function(e){return!(!e||1!==e.nodeType)},o.Util.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},o.Util.removeItem=function(e,t){for(var n=e.length-1;n>=0;n--)e[n]===t&&e.splice(n,1);return e},o.Util.indexOf=function(e,t){if(null==e)return-1;if("function"===typeof e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},o.Util.modifyDOMElement=function(e,t,n,r,i,o,a,s){t&&(e.id=t),n&&(e.style.left=n.x+"px",e.style.top=n.y+"px"),r&&(e.style.width=r.w+"px",e.style.height=r.h+"px"),i&&(e.style.position=i),o&&(e.style.border=o),a&&(e.style.overflow=a),parseFloat(s)>=0&&parseFloat(s)<1?(e.style.filter="alpha(opacity="+100*s+")",e.style.opacity=s):1===parseFloat(s)&&(e.style.filter="",e.style.opacity="")},o.Util.applyDefaults=function(e,t){e=e||{};var n="function"===typeof window.Event&&t instanceof window.Event;for(var r in t)(void 0===e[r]||!n&&t.hasOwnProperty&&t.hasOwnProperty(r)&&!e.hasOwnProperty(r))&&(e[r]=t[r]);return!n&&t&&t.hasOwnProperty&&t.hasOwnProperty("toString")&&!e.hasOwnProperty("toString")&&(e.toString=t.toString),e},o.Util.getParameterString=function(e){var t=[];for(var n in e){var r,i=e[n];if(null!=i&&"function"!==typeof i)r=Array.isArray(i)||"[object Object]"===i.toString()?encodeURIComponent(JSON.stringify(i)):encodeURIComponent(i),t.push(encodeURIComponent(n)+"="+r)}return t.join("&")},o.Util.urlAppend=function(e,t){var n=e;if(t){0===t.indexOf("?")&&(t=t.substring(1));var r=(e+" ").split(/[?&]/);n+=" "===r.pop()?t:r.length?"&"+t:"?"+t}return n},o.Util.urlPathAppend=function(e,t){let n=e;if(!t)return n;0===t.indexOf("/")&&(t=t.substring(1));const r=e.split("?");return r[0].indexOf("/",r[0].length-1)<0&&(r[0]+="/"),n=`${r[0]}${t}${r.length>1?"?"+r[1]:""}`,n},o.Util.DEFAULT_PRECISION=14,o.Util.toFloat=function(e,t){return null==t&&(t=o.Util.DEFAULT_PRECISION),"number"!==typeof e&&(e=parseFloat(e)),0===t?e:parseFloat(e.toPrecision(t))},o.Util.rad=function(e){return e*Math.PI/180},o.Util.getParameters=function(e){e=null===e||void 0===e?window.location.href:e;var t="";if(o.String.contains(e,"?")){var n=e.indexOf("?")+1,r=o.String.contains(e,"#")?e.indexOf("#"):e.length;t=e.substring(n,r)}for(var i={},a=t.split(/[&;]/),s=0,l=a.length;s<l;++s){var c=a[s].split("=");if(c[0]){var u=c[0];try{u=decodeURIComponent(u)}catch(f){u=unescape(u)}var d=(c[1]||"").replace(/\+/g," ");try{d=decodeURIComponent(d)}catch(f){d=unescape(d)}d=d.split(","),1==d.length&&(d=d[0]),i[u]=d}}return i},o.Util.lastSeqID=0,o.Util.createUniqueID=function(e){return null==e&&(e="id_"),o.Util.lastSeqID+=1,e+o.Util.lastSeqID},o.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},o.INCHES_PER_UNIT["in"]=o.INCHES_PER_UNIT.inches,o.INCHES_PER_UNIT["degrees"]=o.INCHES_PER_UNIT.dd,o.INCHES_PER_UNIT["nmi"]=1852*o.INCHES_PER_UNIT.m,o.METERS_PER_INCH=.0254000508001016,o.Util.extend(o.INCHES_PER_UNIT,{Inch:o.INCHES_PER_UNIT.inches,Meter:1/o.METERS_PER_INCH,Foot:.3048006096012192/o.METERS_PER_INCH,IFoot:.3048/o.METERS_PER_INCH,ClarkeFoot:.3047972651151/o.METERS_PER_INCH,SearsFoot:.30479947153867626/o.METERS_PER_INCH,GoldCoastFoot:.3047997101815088/o.METERS_PER_INCH,IInch:.0254/o.METERS_PER_INCH,MicroInch:254e-7/o.METERS_PER_INCH,Mil:2.54e-8/o.METERS_PER_INCH,Centimeter:.01/o.METERS_PER_INCH,Kilometer:1e3/o.METERS_PER_INCH,Yard:.9144018288036576/o.METERS_PER_INCH,SearsYard:.914398414616029/o.METERS_PER_INCH,IndianYard:.9143985307444408/o.METERS_PER_INCH,IndianYd37:.91439523/o.METERS_PER_INCH,IndianYd62:.9143988/o.METERS_PER_INCH,IndianYd75:.9143985/o.METERS_PER_INCH,IndianFoot:.30479951/o.METERS_PER_INCH,IndianFt37:.30479841/o.METERS_PER_INCH,IndianFt62:.3047996/o.METERS_PER_INCH,IndianFt75:.3047995/o.METERS_PER_INCH,Mile:1609.3472186944373/o.METERS_PER_INCH,IYard:.9144/o.METERS_PER_INCH,IMile:1609.344/o.METERS_PER_INCH,NautM:1852/o.METERS_PER_INCH,"Lat-66":110943.31648893273/o.METERS_PER_INCH,"Lat-83":110946.25736872235/o.METERS_PER_INCH,Decimeter:.1/o.METERS_PER_INCH,Millimeter:.001/o.METERS_PER_INCH,Dekameter:10/o.METERS_PER_INCH,Decameter:10/o.METERS_PER_INCH,Hectometer:100/o.METERS_PER_INCH,GermanMeter:1.0000135965/o.METERS_PER_INCH,CaGrid:.999738/o.METERS_PER_INCH,ClarkeChain:20.1166194976/o.METERS_PER_INCH,GunterChain:20.11684023368047/o.METERS_PER_INCH,BenoitChain:20.116782494375872/o.METERS_PER_INCH,SearsChain:20.11676512155/o.METERS_PER_INCH,ClarkeLink:.201166194976/o.METERS_PER_INCH,GunterLink:.2011684023368047/o.METERS_PER_INCH,BenoitLink:.20116782494375873/o.METERS_PER_INCH,SearsLink:.2011676512155/o.METERS_PER_INCH,Rod:5.02921005842012/o.METERS_PER_INCH,IntnlChain:20.1168/o.METERS_PER_INCH,IntnlLink:.201168/o.METERS_PER_INCH,Perch:5.02921005842012/o.METERS_PER_INCH,Pole:5.02921005842012/o.METERS_PER_INCH,Furlong:201.1684023368046/o.METERS_PER_INCH,Rood:3.778266898/o.METERS_PER_INCH,CapeFoot:.3047972615/o.METERS_PER_INCH,Brealey:375/o.METERS_PER_INCH,ModAmFt:.304812252984506/o.METERS_PER_INCH,Fathom:1.8288/o.METERS_PER_INCH,"NautM-UK":1853.184/o.METERS_PER_INCH,"50kilometers":5e4/o.METERS_PER_INCH,"150kilometers":15e4/o.METERS_PER_INCH}),o.Util.extend(o.INCHES_PER_UNIT,{mm:o.INCHES_PER_UNIT["Meter"]/1e3,cm:o.INCHES_PER_UNIT["Meter"]/100,dm:100*o.INCHES_PER_UNIT["Meter"],km:1e3*o.INCHES_PER_UNIT["Meter"],kmi:o.INCHES_PER_UNIT["nmi"],fath:o.INCHES_PER_UNIT["Fathom"],ch:o.INCHES_PER_UNIT["IntnlChain"],link:o.INCHES_PER_UNIT["IntnlLink"],"us-in":o.INCHES_PER_UNIT["inches"],"us-ft":o.INCHES_PER_UNIT["Foot"],"us-yd":o.INCHES_PER_UNIT["Yard"],"us-ch":o.INCHES_PER_UNIT["GunterChain"],"us-mi":o.INCHES_PER_UNIT["Mile"],"ind-yd":o.INCHES_PER_UNIT["IndianYd37"],"ind-ft":o.INCHES_PER_UNIT["IndianFt37"],"ind-ch":20.11669506/o.METERS_PER_INCH}),o.DOTS_PER_INCH=96,o.Util.normalizeScale=function(e){var t=e>1?1/e:e;return t},o.Util.getResolutionFromScale=function(e,t){var n;if(e){null==t&&(t="degrees");var r=o.Util.normalizeScale(e);n=1/(r*o.INCHES_PER_UNIT[t]*o.DOTS_PER_INCH)}return n},o.Util.getScaleFromResolution=function(e,t){null==t&&(t="degrees");var n=e*o.INCHES_PER_UNIT[t]*o.DOTS_PER_INCH;return n},o.IS_GECKO=function(){var e=navigator.userAgent.toLowerCase();return-1===e.indexOf("webkit")&&-1!==e.indexOf("gecko")}(),o.Browser=function(){var e,t="",n="",r="pc",i=navigator.userAgent.toLowerCase();return i.indexOf("msie")>-1||i.indexOf("trident")>-1&&i.indexOf("rv")>-1?(t="msie",e=i.match(/msie ([\d.]+)/)||i.match(/rv:([\d.]+)/)):i.indexOf("chrome")>-1?(t="chrome",e=i.match(/chrome\/([\d.]+)/)):i.indexOf("firefox")>-1?(t="firefox",e=i.match(/firefox\/([\d.]+)/)):i.indexOf("opera")>-1?(t="opera",e=i.match(/version\/([\d.]+)/)):i.indexOf("safari")>-1&&(t="safari",e=i.match(/version\/([\d.]+)/)),n=e?e[1]:"",i.indexOf("ipad")>-1||i.indexOf("ipod")>-1||i.indexOf("iphone")>-1?r="apple":i.indexOf("android")>-1&&(e=i.match(/version\/([\d.]+)/),n=e?e[1]:"",r="android"),{name:t,version:n,device:r}}(),o.Util.getBrowser=function(){return o.Browser},o.Util.isSupportCanvas=function(){var e=!0,t=o.Util.getBrowser();return document.createElement("canvas").getContext?("firefox"===t.name&&parseFloat(t.version)<5&&(e=!1),"safari"===t.name&&parseFloat(t.version)<4&&(e=!1),"opera"===t.name&&parseFloat(t.version)<10&&(e=!1),"msie"===t.name&&parseFloat(t.version)<9&&(e=!1)):e=!1,e}(),o.Util.supportCanvas=function(){return o.Util.isSupportCanvas},o.INCHES_PER_UNIT["degree"]=o.INCHES_PER_UNIT.dd,o.INCHES_PER_UNIT["meter"]=o.INCHES_PER_UNIT.m,o.INCHES_PER_UNIT["foot"]=o.INCHES_PER_UNIT.ft,o.INCHES_PER_UNIT["inch"]=o.INCHES_PER_UNIT.inches,o.INCHES_PER_UNIT["mile"]=o.INCHES_PER_UNIT.mi,o.INCHES_PER_UNIT["kilometer"]=o.INCHES_PER_UNIT.km,o.INCHES_PER_UNIT["yard"]=o.INCHES_PER_UNIT.yd,o.Util.isInTheSameDomain=function(e){if(!e)return!0;var t=e.indexOf("//"),n=document.location.toString(),r=n.indexOf("//");if(-1===t)return!0;var i,o=i=e.substring(0,t),a=n.substring(r+2);r=a.indexOf("/");var s=a.indexOf(":"),l=a.substring(0,r),c=document.location.protocol;if(-1!==s||(l+=":"+("http:"===c.toLowerCase()?80:443)),c.toLowerCase()!==o.toLowerCase())return!1;o=e.substring(t+2);var u=o.indexOf(":");t=o.indexOf("/");var d,f=o.substring(0,t);-1!==u?d=o.substring(0,u):(d=o.substring(0,t),f+=":"+("http:"===i.toLowerCase()?80:443));var h=document.domain;return d===h&&f===l},o.Util.calculateDpi=function(e,t,n,r,i){if(e&&t&&n){var o,a=1e4,s=e.getWidth(),l=e.getHeight(),c=t.w,u=t.h;if(i=i||6378137,r=r||"degrees","degree"===r.toLowerCase()||"degrees"===r.toLowerCase()||"dd"===r.toLowerCase()){let e=s/c,t=l/u,r=e>t?e:t;o=.0254*a/r/n/(2*Math.PI*i/360)/a}else{let e=s/c;o=.0254*a/e/n/a}return o}},o.Util.toJSON=function(e){var t=e;if(null==t)return null;switch(t.constructor){case String:return t='"'+t.replace(/(["\\])/g,"\\$1")+'"',t=t.replace(/\n/g,"\\n"),t=t.replace(/\r/g,"\\r"),t=t.replace("<","&lt;"),t=t.replace(">","&gt;"),t=t.replace(/%/g,"%25"),t=t.replace(/&/g,"%26"),t;case Array:for(var n=[],r=0,i=t.length;r<i;r++)n.push(o.Util.toJSON(t[r]));return"["+n.join(",")+"]";case Number:return isFinite(t)?String(t):null;case Boolean:return String(t);case Date:var a="{'__type':\"System.DateTime\",'Year':"+t.getFullYear()+",'Month':"+(t.getMonth()+1)+",'Day':"+t.getDate()+",'Hour':"+t.getHours()+",'Minute':"+t.getMinutes()+",'Second':"+t.getSeconds()+",'Millisecond':"+t.getMilliseconds()+",'TimezoneOffset':"+t.getTimezoneOffset()+"}";return a;default:if(null!=t["toJSON"]&&"function"===typeof t["toJSON"])return t.toJSON();if("object"===typeof t){if(t.length){let e=[];for(let n=0,r=t.length;n<r;n++)e.push(o.Util.toJSON(t[n]));return"["+e.join(",")+"]"}let e=[];for(let n in t)"function"!==typeof t[n]&&"CLASS_NAME"!==n&&"parent"!==n&&e.push("'"+n+"':"+o.Util.toJSON(t[n]));return e.length>0?"{"+e.join(",")+"}":"{}"}return t.toString()}},o.Util.getResolutionFromScaleDpi=function(e,t,n,r){var i=null,a=1e4;return r=r||6378137,n=n||"",e>0&&t>0?(e=o.Util.normalizeScale(e),"degree"===n.toLowerCase()||"degrees"===n.toLowerCase()||"dd"===n.toLowerCase()?(i=.0254*a/t/e/(2*Math.PI*r/360)/a,i):(i=.0254*a/t/e/a,i)):-1},o.Util.getScaleFromResolutionDpi=function(e,t,n,r){var i=null,o=1e4;return r=r||6378137,n=n||"",e>0&&t>0?"degree"===n.toLowerCase()||"degrees"===n.toLowerCase()||"dd"===n.toLowerCase()?(i=.0254*o/t/e/(2*Math.PI*r/360)/o,i):(i=.0254*o/t/e/o,i):-1},o.Util.transformResult=function(e){return e.responseText&&"string"===typeof e.responseText&&(e=JSON.parse(e.responseText)),e},o.Util.copyAttributes=function(e,t){if(e=e||{},t)for(var n in t){var r=t[n];void 0!==r&&"CLASS_NAME"!==n&&"function"!==typeof r&&(e[n]=r)}return e},o.Util.copyAttributesWithClip=function(e,t,n){if(e=e||{},t)for(var r in t){var i=!1;if(n&&n.length)for(var o=0,a=n.length;o<a;o++)if(r===n[o]){i=!0;break}if(!0!==i){var s=t[r];void 0!==s&&"CLASS_NAME"!==r&&"function"!==typeof s&&(e[r]=s)}}return e},o.Util.cloneObject=function(e){if(null===e||"object"!==typeof e)return e;if(e instanceof Date){let t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array){let t=e.slice(0);return t}if(e instanceof Object){let n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=o.Util.cloneObject(e[t]));return n}throw new Error("Unable to copy obj! Its type isn't supported.")},o.Util.lineIntersection=function(e,t,n,r){var i,a,s=null,l=(r.x-n.x)*(e.y-n.y)-(r.y-n.y)*(e.x-n.x),c=(t.x-e.x)*(e.y-n.y)-(t.y-e.y)*(e.x-n.x),u=(r.y-n.y)*(t.x-e.x)-(r.x-n.x)*(t.y-e.y);if(0!=u)i=l/u,a=c/u,s=i>=0&&a<=1&&i<=1&&a>=0?new o.Geometry.Point(e.x+i*(t.x-e.x),e.y+i*(t.y-e.y)):"No Intersection";else if(0==l&&0==c){var d=Math.max(e.y,t.y),f=Math.min(e.y,t.y),h=Math.max(e.x,t.x),p=Math.min(e.x,t.x);s=(n.y>=f&&n.y<=d||r.y>=f&&r.y<=d)&&n.x>=p&&n.x<=h||r.x>=p&&r.x<=h?"Coincident":"Parallel"}else s="Parallel";return s},o.Util.getTextBounds=function(e,t,n){document.body.appendChild(n),n.style.width="auto",n.style.height="auto",e.fontSize&&(n.style.fontSize=e.fontSize),e.fontFamily&&(n.style.fontFamily=e.fontFamily),e.fontWeight&&(n.style.fontWeight=e.fontWeight),n.style.position="relative",n.style.visibility="hidden",n.style.display="inline-block",n.innerHTML=t;var r=n.clientWidth,i=n.clientHeight;return document.body.removeChild(n),{textWidth:r,textHeight:i}};class J{constructor(e,t){Y.isArray(e)&&(t=e[1],e=e[0]),this.lon=e?Y.toFloat(e):0,this.lat=t?Y.toFloat(t):0,this.CLASS_NAME="SuperMap.LonLat"}toString(){return"lon="+this.lon+",lat="+this.lat}toShortString(){return this.lon+","+this.lat}clone(){return new J(this.lon,this.lat)}add(e,t){if(null==e||null==t)throw new TypeError("LonLat.add cannot receive null values");return new J(this.lon+Y.toFloat(e),this.lat+Y.toFloat(t))}equals(e){var t=!1;return null!=e&&(t=this.lon===e.lon&&this.lat===e.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(e.lon)&&isNaN(e.lat)),t}wrapDateLine(e){var t=this.clone();if(e){while(t.lon<e.left)t.lon+=e.getWidth();while(t.lon>e.right)t.lon-=e.getWidth()}return t}destroy(){this.lon=null,this.lat=null}static fromString(e){var t=e.split(",");return new J(t[0],t[1])}static fromArray(e){var t=Y.isArray(e),n=t&&e[0],r=t&&e[1];return new J(n,r)}}class Q{constructor(e,t,n,r){Y.isArray(e)&&(r=e[3],n=e[2],t=e[1],e=e[0]),this.left=null!=e?Y.toFloat(e):this.left,this.bottom=null!=t?Y.toFloat(t):this.bottom,this.right=null!=n?Y.toFloat(n):this.right,this.top=null!=r?Y.toFloat(r):this.top,this.centerLonLat=null,this.CLASS_NAME="SuperMap.Bounds"}clone(){return new Q(this.left,this.bottom,this.right,this.top)}equals(e){var t=!1;return null!=e&&(t=this.left===e.left&&this.right===e.right&&this.top===e.top&&this.bottom===e.bottom),t}toString(){return[this.left,this.bottom,this.right,this.top].join(",")}toArray(e){return!0===e?[this.bottom,this.left,this.top,this.right]:[this.left,this.bottom,this.right,this.top]}toBBOX(e,t){null==e&&(e=6);var n=Math.pow(10,e),r=Math.round(this.left*n)/n,i=Math.round(this.bottom*n)/n,o=Math.round(this.right*n)/n,a=Math.round(this.top*n)/n;return!0===t?i+","+r+","+a+","+o:r+","+i+","+o+","+a}getWidth(){return this.right-this.left}getHeight(){return this.top-this.bottom}getSize(){return new W(this.getWidth(),this.getHeight())}getCenterPixel(){return new H((this.left+this.right)/2,(this.bottom+this.top)/2)}getCenterLonLat(){return this.centerLonLat||(this.centerLonLat=new J((this.left+this.right)/2,(this.bottom+this.top)/2)),this.centerLonLat}scale(e,t){var n,r;e=e||1,null==t&&(t=this.getCenterLonLat()),"SuperMap.LonLat"===t.CLASS_NAME?(n=t.lon,r=t.lat):(n=t.x,r=t.y);var i=(this.left-n)*e+n,o=(this.bottom-r)*e+r,a=(this.right-n)*e+n,s=(this.top-r)*e+r;return new Q(i,o,a,s)}add(e,t){if(null==e||null==t)throw new TypeError("Bounds.add cannot receive null values");return new Q(this.left+e,this.bottom+t,this.right+e,this.top+t)}extend(e){var t=null;if(e){switch(e.CLASS_NAME){case"SuperMap.LonLat":t=new Q(e.lon,e.lat,e.lon,e.lat);break;case"SuperMap.Geometry.Point":t=new Q(e.x,e.y,e.x,e.y);break;case"SuperMap.Bounds":t=e;break}t&&(this.centerLonLat=null,(null==this.left||t.left<this.left)&&(this.left=t.left),(null==this.bottom||t.bottom<this.bottom)&&(this.bottom=t.bottom),(null==this.right||t.right>this.right)&&(this.right=t.right),(null==this.top||t.top>this.top)&&(this.top=t.top))}}containsLonLat(e,t){"boolean"===typeof t&&(t={inclusive:t}),t=t||{};var n=this.contains(e.lon,e.lat,t.inclusive),r=t.worldBounds;if(r&&!n){var i=r.getWidth(),o=(r.left+r.right)/2,a=Math.round((e.lon-o)/i);n=this.containsLonLat({lon:e.lon-a*i,lat:e.lat},{inclusive:t.inclusive})}return n}containsPixel(e,t){return this.contains(e.x,e.y,t)}contains(e,t,n){if(null==n&&(n=!0),null==e||null==t)return!1;var r=!1;return r=n?e>=this.left&&e<=this.right&&t>=this.bottom&&t<=this.top:e>this.left&&e<this.right&&t>this.bottom&&t<this.top,r}intersectsBounds(e,t){if("boolean"===typeof t&&(t={inclusive:t}),t=t||{},t.worldBounds){var n=this.wrapDateLine(t.worldBounds);e=e.wrapDateLine(t.worldBounds)}else n=this;null==t.inclusive&&(t.inclusive=!0);var r=!1,i=n.left===e.right||n.right===e.left||n.top===e.bottom||n.bottom===e.top;if(t.inclusive||!i){var o=e.bottom>=n.bottom&&e.bottom<=n.top||n.bottom>=e.bottom&&n.bottom<=e.top,a=e.top>=n.bottom&&e.top<=n.top||n.top>e.bottom&&n.top<e.top,s=e.left>=n.left&&e.left<=n.right||n.left>=e.left&&n.left<=e.right,l=e.right>=n.left&&e.right<=n.right||n.right>=e.left&&n.right<=e.right;r=(o||a)&&(s||l)}if(t.worldBounds&&!r){var c=t.worldBounds,u=c.getWidth(),d=!c.containsBounds(n),f=!c.containsBounds(e);d&&!f?(e=e.add(-u,0),r=n.intersectsBounds(e,{inclusive:t.inclusive})):f&&!d&&(n=n.add(-u,0),r=e.intersectsBounds(n,{inclusive:t.inclusive}))}return r}containsBounds(e,t,n){null==t&&(t=!1),null==n&&(n=!0);var r=this.contains(e.left,e.bottom,n),i=this.contains(e.right,e.bottom,n),o=this.contains(e.left,e.top,n),a=this.contains(e.right,e.top,n);return t?r||i||o||a:r&&i&&o&&a}determineQuadrant(e){var t="",n=this.getCenterLonLat();return t+=e.lat<n.lat?"b":"t",t+=e.lon<n.lon?"l":"r",t}wrapDateLine(e,t){t=t||{};var n=t.leftTolerance||0,r=t.rightTolerance||0,i=this.clone();if(e){var o=e.getWidth();while(i.left<e.left&&i.right-r<=e.left)i=i.add(o,0);while(i.left+n>=e.right&&i.right>e.right)i=i.add(-o,0);var a=i.left+n;a<e.right&&a>e.left&&i.right-r>e.right&&(i=i.add(-o,0))}return i}toServerJSONObject(){var e={rightTop:{x:this.right,y:this.top},leftBottom:{x:this.left,y:this.bottom},left:this.left,right:this.right,top:this.top,bottom:this.bottom};return e}destroy(){this.left=null,this.right=null,this.top=null,this.bottom=null,this.centerLonLat=null}static fromString(e,t){var n=e.split(",");return Q.fromArray(n,t)}static fromArray(e,t){return!0===t?new Q(e[1],e[0],e[3],e[2]):new Q(e[0],e[1],e[2],e[3])}static fromSize(e){return new Q(0,e.h,e.w,0)}static oppositeQuadrant(e){var t="";return t+="t"===e.charAt(0)?"b":"t",t+="l"===e.charAt(1)?"r":"l",t}}o.Bounds=Q;class Z{constructor(){this.CLASS_NAME="SuperMap.Geometry",this.id=Y.createUniqueID(this.CLASS_NAME+"_"),this.parent=null,this.bounds=null,this.SRID=null}destroy(){this.id=null,this.bounds=null,this.SRID=null}clone(){return new Z}setBounds(e){e&&(this.bounds=e.clone())}clearBounds(){this.bounds=null,this.parent&&this.parent.clearBounds()}extendBounds(e){var t=this.getBounds();t?this.bounds.extend(e):this.setBounds(e)}getBounds(){return null==this.bounds&&this.calculateBounds(),this.bounds}calculateBounds(){}getVertices(e){}getArea(){return 0}}o.Geometry=Z;class ee extends Z{constructor(e){super(),this.components=[],this.componentTypes=null,null!=e&&this.addComponents(e),this.CLASS_NAME="SuperMap.Geometry.Collection",this.geometryType="Collection"}destroy(){this.components.length=0,this.components=null,super.destroy()}clone(){for(var e=new ee,t=0,n=this.components.length;t<n;t++)e.addComponent(this.components[t].clone());return Y.applyDefaults(e,this),e}getComponentsString(){for(var e=[],t=0,n=this.components.length;t<n;t++)e.push(this.components[t].toShortString());return e.join(",")}calculateBounds(){this.bounds=null;var e=new Q,t=this.components;if(t)for(var n=0,r=t.length;n<r;n++)e.extend(t[n].getBounds());null!=e.left&&null!=e.bottom&&null!=e.right&&null!=e.top&&this.setBounds(e)}addComponents(e){Y.isArray(e)||(e=[e]);for(var t=0,n=e.length;t<n;t++)this.addComponent(e[t])}addComponent(e,t){var n=!1;if(e&&(null==this.componentTypes||Y.indexOf(this.componentTypes,e.CLASS_NAME)>-1)){if(null!=t&&t<this.components.length){var r=this.components.slice(0,t),i=this.components.slice(t,this.components.length);r.push(e),this.components=r.concat(i)}else this.components.push(e);e.parent=this,this.clearBounds(),n=!0}return n}removeComponents(e){var t=!1;Y.isArray(e)||(e=[e]);for(var n=e.length-1;n>=0;--n)t=this.removeComponent(e[n])||t;return t}removeComponent(e){return Y.removeItem(this.components,e),this.clearBounds(),!0}getArea(){for(var e=0,t=0,n=this.components.length;t<n;t++)e+=this.components[t].getArea();return e}equals(e){var t=!0;if(e&&e.CLASS_NAME&&this.CLASS_NAME===e.CLASS_NAME)if(Y.isArray(e.components)&&e.components.length===this.components.length){for(var n=0,r=this.components.length;n<r;++n)if(!this.components[n].equals(e.components[n])){t=!1;break}}else t=!1;else t=!1;return t}getVertices(e){for(var t=[],n=0,r=this.components.length;n<r;++n)Array.prototype.push.apply(t,this.components[n].getVertices(e));return t}}o.Geometry.Collection=ee;class te extends ee{constructor(e){super(e),this.componentTypes=["SuperMap.Geometry.Point"],this.CLASS_NAME="SuperMap.Geometry.MultiPoint",this.geometryType="MultiPoint"}addPoint(e,t){this.addComponent(e,t)}removePoint(e){this.removeComponent(e)}}o.Geometry.MultiPoint=te;class ne extends te{constructor(e){super(e),this.componentTypes=["SuperMap.Geometry.Point","SuperMap.PointWithMeasure"],this.CLASS_NAME="SuperMap.Geometry.Curve",this.geometryType="Curve"}}o.Geometry.Curve=ne;class re extends Z{constructor(e,t,n,r){super(e,t,n,r),this.x=parseFloat(e),this.y=parseFloat(t),this.tag=r||0==r?parseFloat(r):null,this.type=n||"Point",this.CLASS_NAME="SuperMap.Geometry.Point",this.geometryType="Point"}clone(e){return null==e&&(e=new re(this.x,this.y)),Y.applyDefaults(e,this),e}calculateBounds(){this.bounds=new Q(this.x,this.y,this.x,this.y)}equals(e){var t=!1;return null!=e&&(t=this.x===e.x&&this.y===e.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(e.x)&&isNaN(e.y)),t}move(e,t){this.x=this.x+e,this.y=this.y+t,this.clearBounds()}toShortString(){return this.x+", "+this.y}destroy(){this.x=null,this.y=null,this.tag=null,super.destroy()}getVertices(e){return[this]}}o.Geometry.Point=re;class ie extends ne{constructor(e){super(e),this.CLASS_NAME="SuperMap.Geometry.LineString",this.geometryType="LineString"}removeComponent(e){var t=this.components&&this.components.length>2;return t&&super.removeComponent.apply(this,arguments),t}getSortedSegments(){for(var e,t,n=this.components.length-1,r=new Array(n),i=0;i<n;++i)e=this.components[i],t=this.components[i+1],e.x<t.x?r[i]={x1:e.x,y1:e.y,x2:t.x,y2:t.y}:r[i]={x1:t.x,y1:t.y,x2:e.x,y2:e.y};function o(e,t){return e.x1-t.x1}return r.sort(o)}getVertices(e){var t;return t=!0===e?[this.components[0],this.components[this.components.length-1]]:!1===e?this.components.slice(1,this.components.length-1):this.components.slice(),t}static calculateCircle(e){if(e.length<3)return e;var t={},n=e[0],r=e[1],i=e[2],o=0,a=0,s=!0,l=0,c=0,u=0,d=72,f=[],h=(i.y-n.y)/(i.x-n.x),p=i.y-h*i.x;if(i.x!=n.x&&i.y!=n.y&&r.y==h*r.x+p||i.x==n.x&&r.x==n.x||i.y==n.y&&r.y==n.y||i.x==n.x&&i.y==n.y||i.x==r.x&&i.y==r.y||n.x==r.x&&n.y==r.y)f.push(n),f.push(r),f.push(i);else{var m=(r.x*r.x+r.y*r.y-(n.x*n.x+n.y*n.y))*(2*(i.y-n.y))-(i.x*i.x+i.y*i.y-(n.x*n.x+n.y*n.y))*(2*(r.y-n.y)),g=2*(r.x-n.x)*(i.x*i.x+i.y*i.y-(n.x*n.x+n.y*n.y))-2*(i.x-n.x)*(r.x*r.x+r.y*r.y-(n.x*n.x+n.y*n.y)),v=4*((r.x-n.x)*(i.y-n.y)-(i.x-n.x)*(r.y-n.y));t.x=m/v,t.y=g/v,o=Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y));var y=(n.x-i.x)*(n.x-i.x)+(n.y-i.y)*(n.y-i.y),b=(2*o*o-y)/(2*o*o);b=b>=1?1:b,b=b<=-1?-1:b,u=180*Math.acos(b)/Math.PI,u=i.x==n.x?t.x>n.x&&r.x>n.x||t.x<n.x&&r.x<n.x?360-u:u:t.y>h*t.x+p&&r.y>h*r.x+p||t.y<h*t.x+p&&r.y<h*r.x+p?360-u:u,a=u/72,i.y!=n.y?i.x==n.x?i.y>n.y?r.x<n.x&&(s=!1):r.x>n.x&&(s=!1):i.x<n.x?r.y<h*r.x+p&&(s=!1):r.y>h*r.x+p&&(s=!1):i.x>n.x?r.y>n.y&&(s=!1):r.y<n.y&&(s=!1);var _=(n.y-t.y)/(n.x-t.x),w=_>=0?180*Math.atan(_)/Math.PI:Math.abs(180*Math.atan(_)/Math.PI)+90,x=Math.abs(t.y);n.y==x&&x==i.y&&n.x<i.x&&(w+=180);var S=n.y-t.y;f.push(n);for(var C=1;C<d;C++){l=a*C,c=w,s?S>=0?_>=0?c+=l:c=180-(c-90)+l:c=_>0?c-180+l:90-c+l:S>=0?_>=0?c-=l:c=180-(c-90)-l:c=_>=0?c-180-l:90-c-l,c=c*Math.PI/180;var E=t.x+o*Math.cos(c),k=t.y+o*Math.sin(c);f.push(new re(E,k))}f.push(i)}return f}static createLineEPS(e){var t=[],n=e.length;if(n<2)return e;for(var r=0;r<n;){var i=e[r].type;if("LTypeArc"==i){var o=ie.createLineArc(t,r,n,e);t=o[0],r=o[1]}else t.push(e[r]),r++}return t}static createLineArc(e,t,n,r){if(0==t){let i=ie.addPointEPS(r,t,n,"LTypeArc");Array.prototype.push.apply(e,i[0]),t=i[1]+1}else if(t==n-1){var i=[r[t-1],r[t]],o=ie.calculateCircle(i);Array.prototype.push.apply(e,o),t++}else{let i=ie.addPointEPS(r,t,n,"LTypeArc");e.pop(),Array.prototype.push.apply(e,i[0]),t=i[1]+1}return[e,t]}static addPointEPS(e,t,n,r){var i,o=[],a=t+1;return 0==t?Array.prototype.push.apply(o,[e[t],e[t+1]]):t==n-1?Array.prototype.push.apply(o,[e[t-1],e[t]]):Array.prototype.push.apply(o,[e[t-1],e[t],e[t+1]]),"LTypeCurve"==r?i=ie.calculatePointsFBZN(o):"LTypeArc"==r&&(i=ie.calculateCircle(o)),[i,a]}}o.Geometry.LineString=ie;class oe extends Z{constructor(e,t,n){super(e,t,n),this.x=parseFloat(e),this.y=parseFloat(t),this.text=n.toString(),this.bsInfo={h:null,w:null},this.element=document.createElement("span"),this.CLASS_NAME="SuperMap.Geometry.GeoText",this.geometryType="GeoText"}destroy(){super.destroy(),this.x=null,this.y=null,this.text=null}getCentroid(){return new re(this.x,this.y)}clone(e){return null==e&&(e=new oe(this.x,this.y,this.text)),Y.applyDefaults(e,this),e}calculateBounds(){this.bounds=new Q(this.x,this.y,this.x,this.y)}getLabelPxBoundsByLabel(e,t,n,r){var i,o,a,s,l,c=Y.cloneObject(e),u=r.label||this.text,d=u.split("\n"),f=d.length;if(t=parseFloat(t),n=parseFloat(n),f>1&&(n=parseFloat(n)*f),r.labelAlign&&"cm"!==r.labelAlign)switch(r.labelAlign){case"lt":c.x+=t/2,c.y+=n/2;break;case"lm":c.x+=t/2;break;case"lb":c.x+=t/2,c.y-=n/2;break;case"ct":c.y+=n/2;break;case"cb":c.y-=n/2;break;case"rt":c.x-=t/2,c.y+=n/2;break;case"rm":c.x-=t/2;break;case"rb":c.x-=t/2,c.y-=n/2;break;default:break}return this.bsInfo.h=n,this.bsInfo.w=t,o=c.x-parseFloat(t)/2,a=c.y+parseFloat(n)/2,l=c.x+parseFloat(t)/2,s=c.y-parseFloat(n)/2,i=new Q(o,a,l,s),i}getLabelPxBoundsByText(e,t){var n,r,i,o,a,s=this.getLabelPxSize(t),l=Y.cloneObject(e);if(t.labelAlign&&"cm"!==t.labelAlign)switch(t.labelAlign){case"lt":l.x+=s.w/2,l.y+=s.h/2;break;case"lm":l.x+=s.w/2;break;case"lb":l.x+=s.w/2,l.y-=s.h/2;break;case"ct":l.y+=s.h/2;break;case"cb":l.y-=s.h/2;break;case"rt":l.x-=s.w/2,l.y+=s.h/2;break;case"rm":l.x-=s.w/2;break;case"rb":l.x-=s.w/2,l.y-=s.h/2;break;default:break}return this.bsInfo.h=s.h,this.bsInfo.w=s.w,r=l.x-s.w/2,i=l.y+s.h/2,a=t.fontStyle&&"italic"===t.fontStyle?l.x+s.w/2+parseInt(parseFloat(t.fontSize)/2):l.x+s.w/2,o=l.y-s.h/2,n=new Q(r,i,a,o),n}getLabelPxSize(e){var t,n,r,i,o=1,a=.2,s=parseFloat(e.strokeWidth);t=e.label||this.text,n=e.fontSize?parseFloat(e.fontSize):parseFloat("12px");var l=t.split("\n"),c=l.length;i=c>1?n*c+c+s+a*n:n+s+a*n+1,r=0,this.labelWTmp&&r<this.labelWTmp&&(r=this.labelWTmp);for(var u=0;u<c;u++){var d=this.getTextCount(l[u]),f=this.labelWTmp=Y.getTextBounds(e,l[u],this.element).textWidth+d.textC*o+s;r<f&&(r=f)}var h=new Object;return h.h=i,h.w=r,h}getTextCount(e){for(var t={},n=0,r=0,i=0;i<e.length;i++)e.charCodeAt(i)>255?n++:r++;return t.cnC=n,t.enC=r,t.textC=e.length,t}}o.Geometry.GeoText=oe;class ae extends ie{constructor(e){super(e),this.componentTypes=["SuperMap.Geometry.Point"],this.CLASS_NAME="SuperMap.Geometry.LinearRing",this.geometryType="LinearRing"}addComponent(e,t){var n=!1,r=this.components.pop();null==t&&e.equals(r)||(n=super.addComponent.apply(this,arguments));var i=this.components[0];return super.addComponent.apply(this,[i]),n}removeComponent(e){var t=this.components&&this.components.length>3;if(t){this.components.pop(),super.removeComponent.apply(this,arguments);var n=this.components[0];super.addComponent.apply(this,[n])}return t}getArea(){var e=0;if(this.components&&this.components.length>2){for(var t=0,n=0,r=this.components.length;n<r-1;n++){var i=this.components[n],o=this.components[n+1];t+=(i.x+o.x)*(o.y-i.y)}e=-t/2}return e}getVertices(e){return!0===e?[]:this.components.slice(0,this.components.length-1)}}o.Geometry.LinearRing=ae;class se extends ee{constructor(e){super(e),this.componentTypes=["SuperMap.Geometry.LineString"],this.CLASS_NAME="SuperMap.Geometry.MultiLineString",this.geometryType="MultiLineString"}}o.Geometry.MultiLineString=se;class le extends ee{constructor(e){super(e),this.componentTypes=["SuperMap.Geometry.Polygon"],this.CLASS_NAME="SuperMap.Geometry.MultiPolygon",this.geometryType="MultiPolygon"}}o.Geometry.MultiPolygon=le;class ce extends ee{constructor(e){super(e),this.componentTypes=["SuperMap.Geometry.LinearRing"],this.CLASS_NAME="SuperMap.Geometry.Polygon",this.geometryType="Polygon"}getArea(){var e=0;if(this.components&&this.components.length>0){e+=Math.abs(this.components[0].getArea());for(var t=1,n=this.components.length;t<n;t++)e-=Math.abs(this.components[t].getArea())}return e}}o.Geometry.Polygon=ce;class ue extends Z{constructor(e,t,n,r){super(e,t,n,r),this.x=e,this.y=t,this.width=n,this.height=r,this.CLASS_NAME="SuperMap.Geometry.Rectangle",this.geometryType="Rectangle"}calculateBounds(){this.bounds=new Q(this.x,this.y,this.x+this.width,this.y+this.height)}getArea(){var e=this.width*this.height;return e}}o.Geometry.Rectangle=ue;class de{constructor(e,t){this.value=e||"",this.name=t||"token",this.CLASS_NAME="SuperMap.Credential"}getUrlParameters(){return this.name+"="+this.value}getValue(){return this.value}destroy(){this.value=null,this.name=null}}de.CREDENTIAL=null,o.Credential=de;o.Date={toISOString:function(){if("toISOString"in Date.prototype)return function(e){return e.toISOString()};{function e(e,t){var n=e+"";while(n.length<t)n="0"+n;return n}return function(t){var n;return n=isNaN(t.getTime())?"Invalid Date":t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1,2)+"-"+e(t.getUTCDate(),2)+"T"+e(t.getUTCHours(),2)+":"+e(t.getUTCMinutes(),2)+":"+e(t.getUTCSeconds(),2)+"."+e(t.getUTCMilliseconds(),3)+"Z",n}}}(),parse:function(e){var t,n=e.match(/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:(?:T(\d{1,2}):(\d{2}):(\d{2}(?:\.\d+)?)(Z|(?:[+-]\d{1,2}(?::(\d{2}))?)))|Z)?$/);if(n&&(n[1]||n[7])){var r=parseInt(n[1],10)||0,i=parseInt(n[2],10)-1||0,o=parseInt(n[3],10)||1;t=new Date(Date.UTC(r,i,o));var a=n[7];if(a){var s=parseInt(n[4],10),l=parseInt(n[5],10),c=parseFloat(n[6]),u=0|c,d=Math.round(1e3*(c-u));if(t.setUTCHours(s,l,u,d),"Z"!==a){var f=parseInt(a,10),h=parseInt(n[8],10)||0,p=-1e3*(60*f*60+60*h);t=new Date(t.getTime()+p)}}}else t=new Date("invalid");return t}};var fe=o.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(e){return e.target||e.srcElement},isSingleTouch:function(e){return e.touches&&1===e.touches.length},isMultiTouch:function(e){return e.touches&&e.touches.length>1},isLeftClick:function(e){return e.which&&1===e.which||e.button&&1===e.button},isRightClick:function(e){return e.which&&3===e.which||e.button&&2===e.button},stop:function(e,t){t||(e.preventDefault?e.preventDefault():e.returnValue=!1),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},findElement:function(e,t){var n=o.Event.element(e);while(n.parentNode&&(!n.tagName||n.tagName.toUpperCase()!=t.toUpperCase()))n=n.parentNode;return n},observe:function(e,t,n,r){var i=Y.getElement(e);if(r=r||!1,"keypress"===t&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||i.attachEvent)&&(t="keydown"),this.observers||(this.observers={}),!i._eventCacheID){var o="eventCacheID_";i.id&&(o=i.id+"_"+o),i._eventCacheID=Y.createUniqueID(o)}var a=i._eventCacheID;this.observers[a]||(this.observers[a]=[]),this.observers[a].push({element:i,name:t,observer:n,useCapture:r}),i.addEventListener?"mousewheel"===t?i.addEventListener(t,n,{useCapture:r,passive:!1}):i.addEventListener(t,n,r):i.attachEvent&&i.attachEvent("on"+t,n)},stopObservingElement:function(e){var t=Y.getElement(e),n=t._eventCacheID;this._removeElementObservers(o.Event.observers[n])},_removeElementObservers:function(e){if(e)for(var t=e.length-1;t>=0;t--){var n=e[t],r=new Array(n.element,n.name,n.observer,n.useCapture);o.Event.stopObserving.apply(this,r)}},stopObserving:function(e,t,n,r){r=r||!1;var i=Y.getElement(e),a=i._eventCacheID;"keypress"===t&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||i.detachEvent)&&(t="keydown");var s=!1,l=o.Event.observers[a];if(l){var c=0;while(!s&&c<l.length){var u=l[c];if(u.name===t&&u.observer===n&&u.useCapture===r){l.splice(c,1),0==l.length&&delete o.Event.observers[a],s=!0;break}c++}}return s&&(i.removeEventListener?i.removeEventListener(t,n,r):i&&i.detachEvent&&i.detachEvent("on"+t,n)),s},unloadCache:function(){if(o.Event&&o.Event.observers){for(var e in o.Event.observers){var t=o.Event.observers[e];o.Event._removeElementObservers.apply(this,[t])}o.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};o.Event=fe,o.Event.observe(window,"unload",o.Event.unloadCache,!1);class he{constructor(e,t,n,r,i){if(this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=e,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=r,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,Y.extend(this,i),null!=n)for(var o=0,a=n.length;o<a;o++)this.addEventType(n[o]);null!=t&&this.attachToElement(t),this.CLASS_NAME="SuperMap.Events"}destroy(){for(var e in this.extensions)"boolean"!==typeof this.extensions[e]&&this.extensions[e].destroy();this.extensions=null,this.element&&(fe.stopObservingElement(this.element),this.element.hasScrollEvent&&fe.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}addEventType(e){this.listeners[e]||(this.eventTypes.push(e),this.listeners[e]=[])}attachToElement(e){this.element?fe.stopObservingElement(this.element):(this.eventHandler=X.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=X.bind(this.clearMouseCache,this)),this.element=e;for(var t=0,n=this.BROWSER_EVENTS.length;t<n;t++){var r=this.BROWSER_EVENTS[t];this.addEventType(r),fe.observe(e,r,this.eventHandler)}fe.observe(e,"dragstart",fe.stop)}on(e){for(var t in e)"scope"!==t&&e.hasOwnProperty(t)&&this.register(t,e.scope,e[t])}register(e,t,n,r){if(e in he&&!this.extensions[e]&&(this.extensions[e]=new he[e](this)),null!=n&&-1!==Y.indexOf(this.eventTypes,e)){null==t&&(t=this.object);var i=this.listeners[e];i||(i=[],this.listeners[e]=i,this.extensionCount[e]=0);var o={obj:t,func:n};r?(i.splice(this.extensionCount[e],0,o),"object"===typeof r&&r.extension&&this.extensionCount[e]++):i.push(o)}}registerPriority(e,t,n){this.register(e,t,n,!0)}un(e){for(var t in e)"scope"!==t&&e.hasOwnProperty(t)&&this.unregister(t,e.scope,e[t])}unregister(e,t,n){null==t&&(t=this.object);var r=this.listeners[e];if(null!=r)for(var i=0,o=r.length;i<o;i++)if(r[i].obj===t&&r[i].func===n){r.splice(i,1);break}}remove(e){null!=this.listeners[e]&&(this.listeners[e]=[])}triggerEvent(e,t){var n=this.listeners[e];if(n&&0!=n.length){var r;null==t&&(t={}),t.object=this.object,t.element=this.element,t.type||(t.type=e),n=n.slice();for(var i=0,o=n.length;i<o;i++){var a=n[i];if(r=a.func.apply(a.obj,[t]),void 0!=r&&!1===r)break}return this.fallThrough||fe.stop(t,!0),r}}handleBrowserEvent(e){var t=e.type,n=this.listeners[t];if(n&&0!=n.length){var r=e.touches;if(r&&r[0]){for(var i,o=0,a=0,s=r.length,l=0;l<s;++l)i=r[l],o+=i.clientX,a+=i.clientY;e.clientX=o/s,e.clientY=a/s}this.includeXY&&(e.xy=this.getMousePosition(e)),this.triggerEvent(t,e)}}clearMouseCache(){this.element.scrolls=null,this.element.lefttop=null;var e=document.body;e&&(0==e.scrollTop&&0==e.scrollLeft||!navigator.userAgent.match(/iPhone/i))&&(this.element.offsets=null)}getMousePosition(e){if(this.includeXY?this.element.hasScrollEvent||(fe.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=!0):this.clearMouseCache(),!this.element.scrolls){var t=Y.getViewportElement();this.element.scrolls=[t.scrollLeft,t.scrollTop]}return this.element.lefttop||(this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0]),this.element.offsets||(this.element.offsets=Y.pagePosition(this.element)),new H(e.clientX+this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],e.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])}}o.Events=he,o.Events.prototype.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"];class pe{constructor(e,t,n){this.CLASS_NAME="SuperMap.Feature",this.layer=e,this.id=Y.createUniqueID(this.CLASS_NAME+"_"),this.lonlat=t,this.data=null!=n?n:{}}destroy(){this.id=null,this.lonlat=null,this.data=null}}o.Feature=pe;class me extends pe{constructor(e,t,n){super(null,null,t),this.fid=null,this.geometry=e||null,this.attributes={},t&&(this.attributes=Y.extend(this.attributes,t)),this.bounds=null,this.state=null,this.style=n||null,this.url=null,this.lonlat=null,this.CLASS_NAME="SuperMap.Feature.Vector",o.State={UNKNOWN:"Unknown",INSERT:"Insert",UPDATE:"Update",DELETE:"Delete"},me.style={default:{fillColor:"#ee9900",fillOpacity:.4,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},select:{fillColor:"blue",fillOpacity:.4,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"blue",strokeOpacity:1,strokeWidth:2,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"pointer",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},temporary:{fillColor:"#66cccc",fillOpacity:.2,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#66cccc",strokeOpacity:1,strokeLinecap:"round",strokeWidth:2,strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"default",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},delete:{display:"none"}}}destroy(){this.layer&&(this.layer.removeFeatures(this),this.layer=null),this.geometry=null,super.destroy()}clone(){return new me(this.geometry?this.geometry.clone():null,this.attributes,this.style)}toState(e){if(e===o.State.UPDATE)switch(this.state){case o.State.UNKNOWN:case o.State.DELETE:this.state=e;break;case o.State.UPDATE:case o.State.INSERT:break}else if(e===o.State.INSERT)switch(this.state){case o.State.UNKNOWN:break;default:this.state=e;break}else if(e===o.State.DELETE)switch(this.state){case o.State.INSERT:break;case o.State.DELETE:break;case o.State.UNKNOWN:case o.State.UPDATE:this.state=e;break}else e===o.State.UNKNOWN&&(this.state=e)}}o.Feature.Vector=me;class ge{constructor(e){this.data=null,this.keepData=!1,Y.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}destroy(){}read(e){}write(e){}}o.Format=o.Format||ge;class ve extends ge{constructor(e){super(e),this.indent="    ",this.space=" ",this.newline="\n",this.level=0,this.pretty=!1,this.nativeJSON=function(){return!(!window.JSON||"function"!==typeof JSON.parse||"function"!==typeof JSON.stringify)}(),this.CLASS_NAME="SuperMap.Format.JSON",this.serialize={object:function(e){if(null==e)return"null";if(e.constructor===Date)return this.serialize.date.apply(this,[e]);if(e.constructor===Array)return this.serialize.array.apply(this,[e]);var t,n,r,i=["{"];this.level+=1;var o=!1;for(t in e)e.hasOwnProperty(t)&&(n=this.write.apply(this,[t,this.pretty]),r=this.write.apply(this,[e[t],this.pretty]),null!=n&&null!=r&&(o&&i.push(","),i.push(this.writeNewline(),this.writeIndent(),n,":",this.writeSpace(),r),o=!0));return this.level-=1,i.push(this.writeNewline(),this.writeIndent(),"}"),i.join("")},array:function(e){var t,n=["["];this.level+=1;for(var r=0,i=e.length;r<i;++r)t=this.write.apply(this,[e[r],this.pretty]),null!=t&&(r>0&&n.push(","),n.push(this.writeNewline(),this.writeIndent(),t));return this.level-=1,n.push(this.writeNewline(),this.writeIndent(),"]"),n.join("")},string:function(e){var t={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(e)?'"'+e.replace(/([\x00-\x1f\\"])/g,(function(e,n){var r=t[n];return r||(r=n.charCodeAt(),"\\u00"+Math.floor(r/16).toString(16)+(r%16).toString(16))}))+'"':'"'+e+'"'},number:function(e){return isFinite(e)?String(e):"null"},boolean:function(e){return String(e)},date:function(e){function t(e){return e<10?"0"+e:e}return'"'+e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+"T"+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())+'"'}}}read(e,t){var n;if(this.nativeJSON)try{n=JSON.parse(e,t)}catch(r){}return this.keepData&&(this.data=n),n}write(e,t){this.pretty=!!t;var n=null,r=typeof e;if(this.serialize[r])try{n=!this.pretty&&this.nativeJSON?JSON.stringify(e):this.serialize[r].apply(this,[e])}catch(i){}return n}writeIndent(){var e=[];if(this.pretty)for(var t=0;t<this.level;++t)e.push(this.indent);return e.join("")}writeNewline(){return this.pretty?this.newline:""}writeSpace(){return this.pretty?this.space:""}}o.Format.JSON=ve;class ye{constructor(e,t,n){this.red=e||0==e?e:255,this.green=t||0,this.blue=n||0,this.CLASS_NAME="SuperMap.ServerColor"}destroy(){var e=this;e.red=null,e.green=null,e.blue=null}static fromJson(e){if(e){var t=new ye,n=255;null!==e.red&&(n=Number(e.red)),t.red=n;var r=0;null!==e.green&&(r=Number(e.green)),t.green=r;var i=0;return null!==e.blue&&(i=Number(e.blue)),t.blue=i,t}}}o.ServerColor=ye;class be{constructor(e){this.fillBackColor=new ye(255,255,255),this.fillBackOpaque=!1,this.fillForeColor=new ye(255,0,0),this.fillGradientMode=null,this.fillGradientAngle=0,this.fillGradientOffsetRatioX=0,this.fillGradientOffsetRatioY=0,this.fillOpaqueRate=100,this.fillSymbolID=0,this.lineColor=new ye(0,0,0),this.lineSymbolID=0,this.lineWidth=1,this.markerAngle=0,this.markerSize=1,this.markerSymbolID=-1,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ServerStyle"}destroy(){var e=this;e.fillBackColor&&(e.fillBackColor.destroy(),e.fillBackColor=null),e.fillBackOpaque=null,e.fillForeColor&&(e.fillForeColor.destroy(),e.fillForeColor=null),e.fillGradientMode=null,e.fillGradientAngle=null,e.fillGradientOffsetRatioX=null,e.fillGradientOffsetRatioY=null,e.fillOpaqueRate=null,e.fillSymbolID=null,e.lineColor&&(e.lineColor.destroy(),e.lineColor=null),e.lineSymbolID=null,e.lineWidth=null,e.markerAngle=null,e.markerSize=null,e.markerSymbolID=null}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e}static fromJson(e){if(e)return new be({fillBackColor:ye.fromJson(e.fillBackColor),fillBackOpaque:e.fillBackOpaque,fillForeColor:ye.fromJson(e.fillForeColor),fillGradientMode:e.fillGradientMode,fillGradientAngle:e.fillGradientAngle,fillGradientOffsetRatioX:e.fillGradientOffsetRatioX,fillGradientOffsetRatioY:e.fillGradientOffsetRatioY,fillOpaqueRate:e.fillOpaqueRate,fillSymbolID:e.fillSymbolID,lineColor:ye.fromJson(e.lineColor),lineSymbolID:e.lineSymbolID,lineWidth:e.lineWidth,markerAngle:e.markerAngle,markerSize:e.markerSize,markerSymbolID:e.markerSymbolID})}}o.ServerStyle=be;class _e extends re{constructor(e){super(e),this.measure=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.PointWithMeasure"}equals(e){var t=!1;if(null!=e){var n=this.x===e.x&&this.y===e.y&&this.measure===e.measure,r=isNaN(this.x)&&isNaN(this.y)&&isNaN(this.measure),i=isNaN(e.x)&&isNaN(e.y)&&isNaN(e.measure);t=n||r&&i}return t}toJson(){var e="{";return null!=this.measure&&void 0!=this.measure&&(e+='"measure":'+this.measure+","),e+='"x":'+this.x+",",e+='"y":'+this.y,e+="}",e}destroy(){var e=this;e.measure=null,e.x=null,e.y=null}static fromJson(e){if(e)return new _e({x:e.x,y:e.y,measure:e.measure})}}o.PointWithMeasure=_e;class we extends ee{constructor(e,t){super(e,t),this.id=null,this.center=null,this.style=null,this.length=null,this.maxM=null,this.minM=null,this.parts=null,this.points=null,this.type=null,this.componentTypes=["SuperMap.Geometry.LinearRing","SuperMap.Geometry.LineString"],t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.Route",this.geometryType="LINEM"}toJson(){var e="{";if(null!=this.id&&void 0!=this.id&&(e+='"id":'+this.id+","),null!=this.center&&void 0!=this.center&&(e+='"center":'+this.center+","),null!=this.style&&void 0!=this.style&&(e+='"style":'+this.style+","),null!=this.length&&void 0!=this.length&&(e+='"length":'+this.length+","),null!=this.maxM&&void 0!=this.maxM&&(e+='"maxM":'+this.maxM+","),null!=this.minM&&void 0!=this.minM&&(e+='"minM":'+this.minM+","),null!=this.type&&void 0!=this.type&&(e+='"type":"'+this.type+'",'),null!=this.parts&&void 0!=this.parts){e+='"parts":['+this.parts[0];for(var t=1;t<this.parts.length;t++)e+=","+this.parts[t];e+="],"}if(null!=this.components&&this.components.length>0){e+='"points":[';for(var n=0,r=this.components.length;n<r;n++)for(var i=0,o=this.components[n].components.length;i<o;i++)e+=this.components[n].components[i].toJson()+",";e=e.replace(/,$/g,""),e+="]"}return e=e.replace(/,$/g,""),e+="}",e}destroy(){var e=this;e.id=null,e.center=null,e.style=null,e.length=null,e.maxM=null,e.minM=null,e.type=null,e.parts=null,e.components.length=0,e.components=null,e.componentTypes=null}static fromJson(e){if(e){var t=e.parts||[],n=e.points||[],r=t.length,i=[];if(!(r>0))return null;for(var o=0,a=0,s=[];o<r;o++){for(var l=0;l<t[o];l++)s.push(_e.fromJson(n[a+l]));a+=t[o],s[0].equals(s[t[o]-1])?i.push(new ae(s)):i.push(new ie(s)),s=[]}return new we(i,{id:e.id,center:e.center,style:e.style,length:e.length,maxM:e.maxM,minM:e.minM,type:e.type,parts:e.parts})}}}o.Route=we;class xe{constructor(e){this.id=0,this.style=null,this.parts=null,this.points=null,this.type=null,this.prjCoordSys=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ServerGeometry"}destroy(){var e=this;e.id=null,e.style=null,e.parts=null,e.partTopo=null,e.points=null,e.type=null,e.prjCoordSys=null}toGeometry(){var e=this,t=e.type;switch(t.toUpperCase()){case l.POINT:return e.toGeoPoint();case l.LINE:return e.toGeoLine();case l.LINEM:return e.toGeoLinem();case l.REGION:return e.toGeoRegion();case l.POINTEPS:return e.toGeoPoint();case l.LINEEPS:return e.toGeoLineEPS();case l.REGIONEPS:return e.toGeoRegionEPS();case l.GEOCOMPOUND:return e.transformGeoCompound()}}toGeoPoint(){var e=this,t=e.parts||[],n=e.points||[],r=t.length;if(r>0){if(1===r)return new re(n[0].x,n[0].y);var i=[];for(let e=0;e<r;e++)i.push(new re(n[e].x,n[e].y));return new te(i)}return null}toGeoLine(){var e=this,t=e.parts||[],n=e.points||[],r=t.length;if(r>0){if(1===r){let e=[];for(let r=0;r<t[0];r++)e.push(new re(n[r].x,n[r].y));return e[0].equals(e[t[0]-1])?new ae(e):new ie(e)}{let e=[];for(let i=0;i<r;i++){let r=[];for(let e=0;e<t[i];e++)r.push(new re(n[e].x,n[e].y));e.push(new ie(r)),n.splice(0,t[i])}return new se(e)}}return null}toGeoLineEPS(){var e,t,n,r,i,o=this,a=o.parts||[],s=o.points||[],l=a.length;if(l>0){if(1===l){for(e=0,n=[];e<a[0];e++)n.push(new re(s[e].x,s[e].y,s[e].type));return n[0].equals(n[a[0]-1])?(i=ie.createLineEPS(n),new ae(i)):(i=ie.createLineEPS(n),new ie(i))}for(e=0,r=[];e<l;e++){for(t=0,n=[];t<a[e];t++)n.push(new re(s[t].x,s[t].y));i=ie.createLineEPS(n),r.push(new ie(i)),s.splice(0,a[e])}return new se(r)}return null}toGeoLinem(){var e=this;return we.fromJson(e)}toGeoRegion(){var e=this,t=e.parts||[],n=e.partTopo||[],r=e.points||[],i=t.length;if(i<=0)return null;var o=[],a=[];if(1==i){for(let e=0;e<r.length;e++)a.push(new re(r[e].x,r[e].y));return o.push(new ce([new ae(a)])),new le(o)}var s=[],l=[],c=[],u=[],d=[];for(let m=0,g=0;m<i;m++){for(let e=0;e<t[m];e++)a.push(new re(r[g+e].x,r[g+e].y));g+=t[m];var f=new ce([new ae(a)]);a=[],c.push(f),0===n.length&&u.push(f.getBounds()),d.push(1),l.push(f.getArea())}if(xe.bubbleSort(l,c,n,u),0===n.length){var h=[];for(let e=1;e<c.length;e++)for(let t=e-1;t>=0;t--)if(h[e]=-1,u[t].containsBounds(u[e])){d[e]=-1*d[t],d[e]<0&&(h[e]=t);break}for(let e=0;e<c.length;e++)d[e]>0?o.push(c[e]):(o[h[e]].components=o[h[e]].components.concat(c[e].components),o.push(""))}else{o=new Array;for(let e=0;e<c.length;e++)if(n[e]&&-1==n[e]?s=s.concat(c[e].components):(s.length>0&&o.length>0&&(o[o.length-1].components=o[o.length-1].components.concat(s),s=[]),o.push(c[e])),e==i-1){var p=o.length;if(p)o[p-1].components=o[p-1].components.concat(s);else for(let e=0,t=s.length;e<t;e++)o.push(new ce(s))}}return new le(o)}toGeoRegionEPS(){var e=this,t=e.parts||[],n=e.partTopo||[],r=e.points||[],i=t.length;if(i<=0)return null;var o,a=[],s=[];if(1==i){for(var l=0;l<r.length;l++)s.push(new re(r[l].x,r[l].y));return o=ie.createLineEPS(s),a.push(new ce([new ae(o)])),new le(a)}var c=[],u=[],d=[],f=[],h=[];for(let v=0,y=0;v<i;v++){for(let e=0;e<t[v];e++)s.push(new re(r[y+e].x,r[y+e].y));y+=t[v],o=ie.createLineEPS(s);var p=new ce([new ae(o)]);s=[],d.push(p),0===n.length&&f.push(p.getBounds()),h.push(1),u.push(p.getArea())}if(xe.bubbleSort(u,d,n,f),0===n.length){var m=[];for(let e=1;e<d.length;e++)for(let t=e-1;t>=0;t--)if(m[e]=-1,f[t].containsBounds(f[e])){h[e]=-1*h[t],h[e]<0&&(m[e]=t);break}for(let e=0;e<d.length;e++)h[e]>0?a.push(d[e]):(a[m[e]].components=a[m[e]].components.concat(d[e].components),a.push(""))}else{a=new Array;for(let e=0;e<d.length;e++)if(n[e]&&-1==n[e]?c=c.concat(d[e].components):(c.length>0&&a.length>0&&(a[a.length-1].components=a[a.length-1].components.concat(c),c=[]),a.push(d[e])),e==i-1){var g=a.length;if(g)a[g-1].components=a[g-1].components.concat(c);else for(let e=0,t=c.length;e<t;e++)a.push(new ce(c))}}return new le(a)}transformGeoCompound(){const e=this,t=e.geoParts||[],n=t.length;if(n<=0)return null;const r=[];for(let i=0;i<n;i++){const e=t[i];r.push(new xe(e).toGeometry())}return new ee(r)}static fromJson(e){if(e)return new xe({id:e.id,style:be.fromJson(e.style),parts:e.parts,partTopo:e.partTopo,points:e.points,center:e.center,length:e.length,maxM:e.maxM,minM:e.minM,type:e.type})}static fromGeometry(e){if(e){var t=0,n=[],r=[],i=null,o=e.components,a=e.CLASS_NAME,s={epsgCode:e.SRID};if(isNaN(e.id)||(t=e.id),"SuperMap.Geometry.LinearRing"!=a&&"SuperMap.Geometry.LineString"!=a&&(e instanceof te||e instanceof se)){let e=o.length;for(let t=0;t<e;t++){let e=o[t].getVertices().length;n.push(e);for(let n=0;n<e;n++)r.push(new re(o[t].getVertices()[n].x,o[t].getVertices()[n].y))}i="SuperMap.Geometry.MultiPoint"==a?l.POINT:l.LINE}else if(e instanceof le){let e=o.length;for(let t=0;t<e;t++){let e=o[t],i=e.components,a=i.length;for(let t=0;t<a;t++){let e=i[t].getVertices().length+1;n.push(e);for(let n=0;n<e-1;n++)r.push(new re(i[t].getVertices()[n].x,i[t].getVertices()[n].y));r.push(new re(i[t].getVertices()[0].x,i[t].getVertices()[0].y))}}i=l.REGION}else if(e instanceof ce){let e=o.length;for(let t=0;t<e;t++){let e=o[t].getVertices().length+1;n.push(e);for(let n=0;n<e-1;n++)r.push(new re(o[t].getVertices()[n].x,o[t].getVertices()[n].y));r.push(new re(o[t].getVertices()[0].x,o[t].getVertices()[0].y))}i=l.REGION}else{let t=e.getVertices().length;for(let n=0;n<t;n++)r.push(new re(e.getVertices()[n].x,e.getVertices()[n].y));e instanceof ae&&(r.push(new re(e.getVertices()[0].x,e.getVertices()[0].y)),t++),n.push(t),i=e instanceof re?l.POINT:l.LINE}return new xe({id:t,style:null,parts:n,points:r,type:i,prjCoordSys:s})}}static IsClockWise(e){var t=e.length;if(t<3)return 0;var n=e[0].y*(e[t-1].x-e[1].x);e.push(e[0]);for(var r=1;r<t;r++)n+=e[r].y*(e[r-1].x-e[r+1].x);return.5*n}static bubbleSort(e,t,n,r){for(var i=0;i<e.length;i++)for(var o=0;o<e.length;o++)if(e[i]>e[o]){var a=e[o];e[o]=e[i],e[i]=a;var s=t[o];if(t[o]=t[i],t[i]=s,n&&n.length>0){var l=n[o];n[o]=n[i],n[i]=l}if(r&&r.length>0){var c=r[o];r[o]=r[i],r[i]=c}}}}o.ServerGeometry=xe;class Se extends ve{constructor(e){super(e),this.ignoreExtraDims=!0,this.CLASS_NAME="SuperMap.Format.GeoJSON",this.parseCoords={point:function(e){if(!1===this.ignoreExtraDims&&2!=e.length)throw"Only 2D points are supported: "+e;return new re(e[0],e[1])},multipoint:function(e){for(var t=[],n=null,r=0,i=e.length;r<i;++r){try{n=this.parseCoords["point"].apply(this,[e[r]])}catch(o){throw o}t.push(n)}return new te(t)},linestring:function(e){for(var t=[],n=null,r=0,i=e.length;r<i;++r){try{n=this.parseCoords["point"].apply(this,[e[r]])}catch(o){throw o}t.push(n)}return new ie(t)},multilinestring:function(e){for(var t=[],n=null,r=0,i=e.length;r<i;++r){try{n=this.parseCoords["linestring"].apply(this,[e[r]])}catch(o){throw o}t.push(n)}return new se(t)},polygon:function(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i){try{n=this.parseCoords["linestring"].apply(this,[e[i]])}catch(a){throw a}t=new ae(n.components),r.push(t)}return new ce(r)},multipolygon:function(e){for(var t=[],n=null,r=0,i=e.length;r<i;++r){try{n=this.parseCoords["polygon"].apply(this,[e[r]])}catch(o){throw o}t.push(n)}return new le(t)},box:function(e){if(2!=e.length)throw"GeoJSON box coordinates must have 2 elements";return new ce([new ae([new re(e[0][0],e[0][1]),new re(e[1][0],e[0][1]),new re(e[1][0],e[1][1]),new re(e[0][0],e[1][1]),new re(e[0][0],e[0][1])])])}},this.extract={feature:function(e){var t=this.extract.geometry.apply(this,[e.geometry]),n={type:"Feature",properties:this.createAttributes(e),geometry:t};return e.geometry&&"TEXT"===e.geometry.type&&(n.properties.texts=e.geometry.texts,n.properties.textStyle=e.geometry.textStyle),e.fid&&(n.id=e.fid),e.ID&&(n.id=e.ID),n},geometry:function(e){if(null==e)return null;!e.parts&&e.points&&(e.parts=[e.points.length]);var t,n,r=e.hasOwnProperty("geometryType")?e:new xe(e).toGeometry()||e,i=r.geometryType||r.type;return"LinearRing"===i&&(i="LineString"),"LINEM"===i&&(i="MultiLineString"),t=this.extract[i.toLowerCase()].apply(this,[r]),i="TEXT"===i?"Point":i,n="Collection"===i?{type:"GeometryCollection",geometries:t}:{type:i,coordinates:t},n},point:function(e){var t=[e.x,e.y];for(var n in e)"x"===n||"y"===n||null===e[n]||isNaN(e[n])||t.push(e[n]);return t},text:function(e){return[e.points[0].x,e.points[0].y]},multipoint:function(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push(this.extract.point.apply(this,[e.components[n]]));return t},linestring:function(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push(this.extract.point.apply(this,[e.components[n]]));return t},multilinestring:function(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push(this.extract.linestring.apply(this,[e.components[n]]));return t},polygon:function(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push(this.extract.linestring.apply(this,[e.components[n]]));return t},multipolygon:function(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push(this.extract.polygon.apply(this,[e.components[n]]));return t},collection:function(e){for(var t=e.components.length,n=new Array(t),r=0;r<t;++r)n[r]=this.extract.geometry.apply(this,[e.components[r]]);return n}}}read(e,t,n){t=t||"FeatureCollection";var r=null,i=null;if(i="string"==typeof e?super.read(e,n):e,i){if("string"!=typeof i.type);else if(this.isValidType(i,t))switch(t){case"Geometry":try{r=this.parseGeometry(i)}catch(l){}break;case"Feature":try{r=this.parseFeature(i),r.type="Feature"}catch(l){}break;case"FeatureCollection":switch(r=[],i.type){case"Feature":try{r.push(this.parseFeature(i))}catch(l){r=null}break;case"FeatureCollection":for(var o=0,a=i.features.length;o<a;++o)try{r.push(this.parseFeature(i.features[o]))}catch(l){r=null}break;default:try{var s=this.parseGeometry(i);r.push(new me(s))}catch(l){r=null}}break;default:break}}else;return r}write(e,t){return super.write(this.toGeoJSON(e),t)}fromGeoJSON(e,t,n){let r=this.read(e,t,n);return Y.isArray(r)?r.map(e=>this._toiSevrerFeature(e)):this._toiSevrerFeature(r)}toGeoJSON(e){var t={type:null};if(Y.isArray(e)){t.type="FeatureCollection";var n=e.length;t.features=new Array(n);for(var r=0;r<n;++r){var i=e[r];if(o(i)){let e={};e.geometry=i,t.features[r]=this.extract.feature.apply(this,[e])}else t.features[r]=this.extract.feature.apply(this,[i])}}else if(o(e)){let n={};n.geometry=e,t=this.extract.feature.apply(this,[n])}else t=this.extract.feature.apply(this,[e]);function o(e){return e.hasOwnProperty("parts")&&e.hasOwnProperty("points")||e.hasOwnProperty("geoParts")}return t}isValidType(e,t){var n=!1;switch(t){case"Geometry":-1==Y.indexOf(["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon","Box","GeometryCollection"],e.type)||(n=!0);break;case"FeatureCollection":n=!0;break;default:e.type==t&&(n=!0)}return n}parseFeature(e){var t,n,r,i;r=e.properties?e.properties:{},i=e.geometry&&e.geometry.bbox||e.bbox;try{n=this.parseGeometry(e.geometry)}catch(o){throw o}return t=new me(n,r),i&&(t.bounds=Q.fromArray(i)),e.id&&(t.fid=e.id),t}parseGeometry(e){if(null==e)return null;var t;if("GeometryCollection"==e.type){if(!Y.isArray(e.geometries))throw"GeometryCollection must have geometries array: "+e;for(var n=e.geometries.length,r=new Array(n),i=0;i<n;++i)r[i]=this.parseGeometry.apply(this,[e.geometries[i]]);t=new ee(r)}else{if(!Y.isArray(e.coordinates))throw"Geometry must have coordinates array: "+e;if(!this.parseCoords[e.type.toLowerCase()])throw"Unsupported geometry type: "+e.type;try{t=this.parseCoords[e.type.toLowerCase()].apply(this,[e.coordinates])}catch(o){throw o}}return t}createCRSObject(e){var t=e.layer.projection.toString(),n={};if(t.match(/epsg:/i)){var r=parseInt(t.substring(t.indexOf(":")+1));n=4326==r?{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}}:{type:"name",properties:{name:"EPSG:"+r}}}return n}_toiSevrerFeature(e){const t=e.attributes,n=[],r=[];for(var i in t)n.push(i),r.push(t[i]);const o={fieldNames:n,fieldValues:r,geometry:xe.fromGeometry(e.geometry)};return o.geometry.id=e.fid,o}createAttributes(e){if(!e)return null;var t={};i(e,t);var n=["fieldNames","fieldValues","geometry","stringID","ID"];for(var r in e)n.indexOf(r)>-1||(t[r]=e[r]);function i(e,t){if(e.hasOwnProperty("fieldNames")&&e.hasOwnProperty("fieldValues")){var n=e.fieldNames,r=e.fieldValues;for(var i in n)t[n[i]]=r[i]}}return t}}o.Format.GeoJSON=Se;class Ce extends ge{constructor(e){super(e),this.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},this.CLASS_NAME="SuperMap.Format.WKT",this.extract={point:function(e){return e.x+" "+e.y},multipoint(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push("("+this.extract.point.apply(this,[e.components[n]])+")");return t.join(",")},linestring(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push(this.extract.point.apply(this,[e.components[n]]));return t.join(",")},multilinestring(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push("("+this.extract.linestring.apply(this,[e.components[n]])+")");return t.join(",")},polygon(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push("("+this.extract.linestring.apply(this,[e.components[n]])+")");return t.join(",")},multipolygon(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push("("+this.extract.polygon.apply(this,[e.components[n]])+")");return t.join(",")},collection(e){for(var t=[],n=0,r=e.components.length;n<r;++n)t.push(this.extractGeometry.apply(this,[e.components[n]]));return t.join(",")}},this.parse={point:function(e){var t=$.trim(e).split(this.regExes.spaces);return new me(new re(t[0],t[1]))},multipoint:function(e){for(var t,n=$.trim(e).split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(this.regExes.trimParens,"$1"),r.push(this.parse.point.apply(this,[t]).geometry);return new me(new te(r))},linestring:function(e){for(var t=$.trim(e).split(","),n=[],r=0,i=t.length;r<i;++r)n.push(this.parse.point.apply(this,[t[r]]).geometry);return new me(new ie(n))},multilinestring:function(e){for(var t,n=$.trim(e).split(this.regExes.parenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(this.regExes.trimParens,"$1"),r.push(this.parse.linestring.apply(this,[t]).geometry);return new me(new se(r))},polygon:function(e){for(var t,n,r,i=$.trim(e).split(this.regExes.parenComma),o=[],a=0,s=i.length;a<s;++a)t=i[a].replace(this.regExes.trimParens,"$1"),n=this.parse.linestring.apply(this,[t]).geometry,r=new ae(n.components),o.push(r);return new me(new ce(o))},multipolygon:function(e){for(var t,n=$.trim(e).split(this.regExes.doubleParenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(this.regExes.trimParens,"$1"),r.push(this.parse.polygon.apply(this,[t]).geometry);return new me(new le(r))},geometrycollection:function(e){e=e.replace(/,\s*([A-Za-z])/g,"|$1");for(var t=$.trim(e).split("|"),n=[],r=0,i=t.length;r<i;++r)n.push(this.read(t[r]));return n}}}read(e){var t,n,r;e=e.replace(/[\n\r]/g," ");var i=this.regExes.typeStr.exec(e);return i&&(n=i[1].toLowerCase(),r=i[2],this.parse[n]&&(t=this.parse[n].apply(this,[r]))),t}write(e){var t,n,r;e.constructor===Array?(t=e,r=!0):(t=[e],r=!1);var i=[];r&&i.push("GEOMETRYCOLLECTION(");for(var o=0,a=t.length;o<a;++o)r&&o>0&&i.push(","),n=t[o].geometry,i.push(this.extractGeometry(n));return r&&i.push(")"),i.join("")}extractGeometry(e){var t=e.CLASS_NAME.split(".")[2].toLowerCase();if(!this.extract[t])return null;var n="collection"===t?"GEOMETRYCOLLECTION":t.toUpperCase(),r=n+"("+this.extract[t].apply(this,[e])+")";return r}}o.Format.WKT=Ce;class Ee{constructor(e){var t=this;e=e||{},this.speed=e.speed&&e.speed>=0?e.speed:1,this.frequency=e.speed&&e.frequency>=0?e.frequency:1e3,this.startTime=e.startTime&&null!=e.startTime?e.startTime:0,this.endTime=e.endTime&&null!=e.endTime&&e.endTime>=t.startTime?e.endTime:+new Date,this.repeat=void 0===e.repeat||e.repeat,this.reverse=void 0!==e.reverse&&e.reverse,this.currentTime=null,this.oldTime=null,this.running=!1,this.EVENT_TYPES=["start","pause","stop"],t.events=new he(this,null,this.EVENT_TYPES),t.speed=Number(t.speed),t.frequency=Number(t.frequency),t.startTime=Number(t.startTime),t.endTime=Number(t.endTime),t.startTime=Date.parse(new Date(t.startTime)),t.endTime=Date.parse(new Date(t.endTime)),t.currentTime=t.startTime,this.CLASS_NAME="SuperMap.TimeControlBase"}updateOptions(e){var t=this;e=e||{},e.speed&&e.speed>=0&&(t.speed=e.speed,t.speed=Number(t.speed)),e.speed&&e.frequency>=0&&(t.frequency=e.frequency,t.frequency=Number(t.frequency)),e.startTime&&null!=e.startTime&&(t.startTime=e.startTime,t.startTime=Date.parse(new Date(t.startTime))),e.endTime&&null!=e.endTime&&e.endTime>=t.startTime&&(t.endTime=e.endTime,t.endTime=Date.parse(new Date(t.endTime))),null!=e.repeat&&(t.repeat=e.repeat),null!=e.reverse&&(t.reverse=e.reverse)}start(){var e=this;e.running||(e.running=!0,e.tick(),e.events.triggerEvent("start",e.currentTime))}pause(){var e=this;e.running=!1,e.events.triggerEvent("pause",e.currentTime)}stop(){var e=this;e.currentTime=e.startTime,e.running&&(e.running=!1),e.events.triggerEvent("stop",e.currentTime)}toggle(){var e=this;e.running?e.pause():e.start()}setSpeed(e){var t=this;return e>=0&&(t.speed=e,!0)}getSpeed(){return this.speed}setFrequency(e){var t=this;return e>=0&&(t.frequency=e,!0)}getFrequency(){return this.frequency}setStartTime(e){var t=this;return e=Date.parse(new Date(e)),!(e>t.endTime)&&(t.startTime=e,t.currentTime<t.startTime&&(t.currentTime=t.startTime,t.tick()),!0)}getStartTime(){return this.startTime}setEndTime(e){var t=this;return t.endTime=Date.parse(new Date(t.endTime)),!(e<t.startTime)&&(t.endTime=e,t.currentTime>=t.endTime&&(t.currentTime=t.startTime,t.tick()),!0)}getEndTime(){return this.endTime}setCurrentTime(e){var t=this;return t.currentTime=Date.parse(new Date(t.currentTime)),e>=t.startTime&&e<=t.endTime&&(t.currentTime=e,t.startTime=t.currentTime,t.tick(),!0)}getCurrentTime(){return this.currentTime}setRepeat(e){this.repeat=e}getRepeat(){return this.repeat}setReverse(e){this.reverse=e}getReverse(){return this.reverse}getRunning(){return this.running}destroy(){var e=this;e.speed=null,e.frequency=null,e.startTime=null,e.endTime=null,e.currentTime=null,e.repeat=null,e.running=!1,e.reverse=null}tick(){}}o.TimeControlBase=Ee;class ke extends Ee{constructor(e,t){super(t);var n=this;n.callback=e,Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),n.update=n.update.bind(n),n.oldTime=n.currentTime,n.CLASS_NAME="SuperMap.TimeFlowControl"}updateOptions(e){e=e||{},super.updateOptions(e)}start(){var e=this;e.running||(e.running=!0,e.reverse?e.currentTime===e.startTime&&(e.oldTime=e.endTime,e.currentTime=e.oldTime):e.oldTime===e.endTime&&(e.currentTime=e.startTime,e.oldTime=e.currentTime),e.tick())}stop(){super.stop();var e=this;e.oldTime=e.currentTime,e.running&&(e.running=!1),e.intervalId&&window.clearTimeout(e.intervalId)}destroy(){super.destroy();var e=this;e.oldTime=null,e.callback=null}tick(){var e=this;e.intervalId&&window.clearInterval(e.intervalId),e.intervalId=null,e.update(),e.intervalId=window.setInterval(e.update,e.frequency)}update(){var e=this;if(e.running)if(e.callback&&e.callback(e.currentTime),e.reverse){if(e.currentTime===e.startTime){if(!e.repeat)return e.running=!1,null;e.oldTime=e.endTime,e.currentTime=e.oldTime}else e.currentTime=e.oldTime,e.oldTime-=e.speed;e.oldTime<=e.startTime&&(e.oldTime=e.startTime)}else{if(e.currentTime===e.endTime){if(!e.repeat)return e.running=!1,e.stop(),null;e.stop(),e.currentTime=e.startTime,e.oldTime=e.currentTime,e.start()}else e.oldTime=e.currentTime,e.currentTime+=e.speed;e.currentTime>=e.endTime&&(e.currentTime=e.endTime)}}}o.TimeFlowControl=ke;n("146a"),n("e901");var Oe=n("d871"),Te=n.n(Oe);let Ie=window.fetch;o.setCORS=function(e){o.CORS=e};var Ae=o.isCORS=function(){return void 0!=o.CORS?o.CORS:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest},Re=(o.setRequestTimeout=function(e){return o.RequestTimeout=e},o.getRequestTimeout=function(){return o.RequestTimeout||45e3}),Pe=o.FetchRequest={commit:function(e,t,n,r){switch(e=e?e.toUpperCase():e,e){case"GET":return this.get(t,n,r);case"POST":return this.post(t,n,r);case"PUT":return this.put(t,n,r);case"DELETE":return this.delete(t,n,r);default:return this.get(t,n,r)}},supportDirectRequest:function(e,t){return!!Y.isInTheSameDomain(e)||(void 0!=t.crossOrigin?t.crossOrigin:Ae()||t.proxy)},get:function(e,t,n){n=n||{};var r="GET";if(e=Y.urlAppend(e,this._getParameterString(t||{})),e=this._processUrl(e,n),!this.supportDirectRequest(e,n)){e=e.replace(".json",".jsonp");var i={url:e,data:t};return o.Util.RequestJSONPPromise.GET(i)}return this.urlIsLong(e)?this._postSimulatie(r,e.substring(0,e.indexOf("?")-1),t,n):this._fetch(e,t,n,r)},delete:function(e,t,n){n=n||{};var r="DELETE";if(e=Y.urlAppend(e,this._getParameterString(t||{})),e=this._processUrl(e,n),!this.supportDirectRequest(e,n)){e=e.replace(".json",".jsonp");var i={url:e+="&_method=DELETE",data:t};return o.Util.RequestJSONPPromise.DELETE(i)}return this.urlIsLong(e)?this._postSimulatie(r,e.substring(0,e.indexOf("?")-1),t,n):this._fetch(e,t,n,r)},post:function(e,t,n){if(n=n||{},!this.supportDirectRequest(e,n)){e=e.replace(".json",".jsonp");var r={url:e+="&_method=POST",data:t};return o.Util.RequestJSONPPromise.POST(r)}return this._fetch(this._processUrl(e,n),t,n,"POST")},put:function(e,t,n){if(n=n||{},e=this._processUrl(e,n),!this.supportDirectRequest(e,n)){e=e.replace(".json",".jsonp");var r={url:e+="&_method=PUT",data:t};return o.Util.RequestJSONPPromise.PUT(r)}return this._fetch(e,t,n,"PUT")},urlIsLong:function(e){for(var t=0,n=null,r=0,i=e.length;r<i;r++)n=e.charCodeAt(r),n<127?t++:128<=n&&n<=2047?t+=2:2048<=n&&n<=65535&&(t+=3);return!(t<2e3)},_postSimulatie:function(e,t,n,r){var i=t.indexOf("?")>-1?"&":"?";return t+=i+"_method="+e,"string"!==typeof n&&(n=JSON.stringify(n)),this.post(t,n,r)},_processUrl:function(e,t){if(this._isMVTRequest(e))return e;if(-1===e.indexOf(".json")&&!t.withoutFormatSuffix)if(e.indexOf("?")<0)e+=".json";else{var n=e.split("?");2===n.length&&(e=n[0]+".json?"+n[1])}return t&&t.proxy&&("function"===typeof t.proxy?e=t.proxy(e):(e=decodeURIComponent(e),e=t.proxy+encodeURIComponent(e))),e},_fetch:function(e,t,n,r){return n=n||{},n.headers=n.headers||{},n.headers["Content-Type"]||(n.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),n.timeout?this._timeout(n.timeout,Ie(e,{method:r,headers:n.headers,body:"PUT"===r||"POST"===r?t:void 0,credentials:this._getWithCredentials(n),mode:"cors",timeout:Re()}).then((function(e){return e}))):Ie(e,{method:r,body:"PUT"===r||"POST"===r?t:void 0,headers:n.headers,credentials:this._getWithCredentials(n),mode:"cors",timeout:Re()}).then((function(e){return e}))},_getWithCredentials:function(e){return!0===e.withCredentials?"include":!1===e.withCredentials?"omit":"same-origin"},_fetchJsonp:function(e,t){return t=t||{},Te()(e,{method:"GET",timeout:t.timeout}).then((function(e){return e}))},_timeout:function(e,t){return new Promise((function(n,r){setTimeout((function(){r(new Error("timeout"))}),e),t.then(n,r)}))},_getParameterString:function(e){var t=[];for(var n in e){var r,i=e[n];if(null!=i&&"function"!==typeof i)r=Array.isArray(i)||"[object Object]"===i.toString()?encodeURIComponent(JSON.stringify(i)):encodeURIComponent(i),t.push(encodeURIComponent(n)+"="+r)}return t.join("&")},_isMVTRequest:function(e){return e.indexOf(".mvt")>-1||e.indexOf(".pbf")>-1}};o.Util.RequestJSONPPromise={limitLength:1500,queryKeys:[],queryValues:[],supermap_callbacks:{},addQueryStrings:function(e){var t=this;for(var n in e){t.queryKeys.push(n),"string"!==typeof e[n]&&(e[n]=o.Util.toJSON(e[n]));var r=encodeURIComponent(e[n]);t.queryValues.push(r)}},issue:function(e){for(var t=this,n=t.getUid(),r=e.url,i=[],o=new Promise((function(e){t.supermap_callbacks[n]=function(r){delete t.supermap_callbacks[n],e(r)}})),a=r,s=0,l=t.queryKeys?t.queryKeys.length:0,c=0;c<l;c++)if(a.length+t.queryKeys[c].length+2>=t.limitLength){if(0==s)return!1;i.push(a),a=r,s=0,c--}else if(a.length+t.queryKeys[c].length+2+t.queryValues[c].length>t.limitLength){var u=t.queryValues[c];while(u.length>0){var d=t.limitLength-a.length-t.queryKeys[c].length-2;a.indexOf("?")>-1?a+="&":a+="?";var f=u.substring(0,d);"%"===f.substring(d-1,d)?(d-=1,f=u.substring(0,d)):"%"===f.substring(d-2,d-1)&&(d-=2,f=u.substring(0,d)),a+=t.queryKeys[c]+"="+f,u=u.substring(d),f.length>0&&(i.push(a),a=r,s=0)}}else s++,a.indexOf("?")>-1?a+="&":a+="?",a+=t.queryKeys[c]+"="+t.queryValues[c];return i.push(a),t.send(i,"SuperMap.Util.RequestJSONPPromise.supermap_callbacks["+n+"]",e&&e.proxy),o},getUid:function(){var e=(new Date).getTime(),t=Math.floor(1e17*Math.random());return 1e3*e+t},send:function(e,t,n){var r=e.length;if(r>0)for(var i=(new Date).getTime(),o=0;o<r;o++){var a=e[o];a.indexOf("?")>-1?a+="&":a+="?",a+="sectionCount="+r,a+="&sectionIndex="+o,a+="&jsonpUserID="+i,n&&(a=decodeURIComponent(a),a=n+encodeURIComponent(a)),Te()(a,{jsonpCallbackFunction:t,timeout:3e4})}},GET:function(e){var t=this;return t.queryKeys.length=0,t.queryValues.length=0,t.addQueryStrings(e.params),t.issue(e)},POST:function(e){var t=this;return t.queryKeys.length=0,t.queryValues.length=0,t.addQueryStrings({requestEntity:e.data}),t.issue(e)},PUT:function(e){var t=this;return t.queryKeys.length=0,t.queryValues.length=0,t.addQueryStrings({requestEntity:e.data}),t.issue(e)},DELETE:function(e){var t=this;return t.queryKeys.length=0,t.queryValues.length=0,t.addQueryStrings({requestEntity:e.data}),t.issue(e)}};class Me{static generateToken(e,t){var n=this.servers[e];if(n)return Pe.post(n.tokenServiceUrl,JSON.stringify(t.toJSON())).then((function(e){return e.text()}))}static registerServers(e){this.servers=this.servers||{},Y.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var n=e[t];this.servers[n.server]=n}}static registerToken(e,t){if(this.tokens=this.tokens||{},e&&t){var n=this._getTokenStorageKey(e);this.tokens[n]=t}}static registerKey(e,t){if(this.keys=this.keys||{},e&&!(e.length<1)&&t){e=Y.isArray(e)?e:[e];for(var n=0;n<e.length;n++){var r=this._getUrlRestString(e[0])||e[0];this.keys[r]=t}}}static getServerInfo(e){return this.servers=this.servers||{},this.servers[e]}static getToken(e){if(e){this.tokens=this.tokens||{};var t=this._getTokenStorageKey(e);return this.tokens[t]}}static getKey(e){this.keys=this.keys||{};var t=this._getUrlRestString(e)||e;return this.keys[t]}static loginiServer(e,t,n,r){e=Y.urlPathAppend(e,"services/security/login");var i={username:t&&t.toString(),password:n&&n.toString(),rememberme:r};i=JSON.stringify(i);var o={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}};return Pe.post(e,i,o).then((function(e){return e.json()}))}static logoutiServer(e){e=Y.urlPathAppend(e,"services/security/logout");var t={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0};return Pe.get(e,"",t).then((function(){return!0})).catch((function(){return!1}))}static loginOnline(e,t){var n=Me.SSO+"/login?service="+e;this._open(n,t)}static loginiPortal(e,t,n){e=Y.urlPathAppend(e,"web/login");var r={username:t&&t.toString(),password:n&&n.toString()};r=JSON.stringify(r);var i={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0};return Pe.post(e,r,i).then((function(e){return e.json()}))}static logoutiPortal(e){e=Y.urlPathAppend(e,"services/security/logout");var t={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0};return Pe.get(e,"",t).then((function(){return!0})).catch((function(){return!1}))}static loginManager(e,t,n){if(Y.isInTheSameDomain(e)){var r=Y.urlPathAppend(e,"icloud/security/tokens"),i=t||{},o={username:i.userName&&i.userName.toString(),password:i.password&&i.password.toString()};o=JSON.stringify(o);var a={headers:{Accept:"*/*","Content-Type":"application/json"}},s=this;return Pe.post(r,o,a).then((function(e){e.text().then((function(e){return s.imanagerToken=e,e}))}))}var l=!n||n.isNewTab;this._open(e,l)}static destroyAllCredentials(){this.keys=null,this.tokens=null,this.servers=null}static destroyToken(e){if(e){var t=this._getTokenStorageKey(e);this.tokens=this.tokens||{},this.tokens[t]&&delete this.tokens[t]}}static destroyKey(e){if(e){this.keys=this.keys||{};var t=this._getUrlRestString(e)||e;this.keys[t]&&delete this.keys[t]}}static _open(e,t){t=null==t||t;var n=window.screen.availWidth/2-this.INNER_WINDOW_WIDTH/2,r=window.screen.availHeight/2-this.INNER_WINDOW_HEIGHT/2,i="height="+this.INNER_WINDOW_HEIGHT+", width="+this.INNER_WINDOW_WIDTH+",top="+r+", left="+n+",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";t?window.open(e,"login"):window.open(e,"login",i)}static _getTokenStorageKey(e){var t=/(.*?):\/\/([^\/]+)/i,n=e.match(t);return n?n[0]:e}static _getUrlRestString(e){if(!e)return e;var t=/(http|https):\/\/(.*\/rest)/i,n=e.match(t);return n?n[0]:e}}Me.INNER_WINDOW_WIDTH=600,Me.INNER_WINDOW_HEIGHT=600,Me.SSO="https://sso.supermap.com",Me.ONLINE="https://www.supermapol.com",o.SecurityManager=Me;class Ne{constructor(e,t){if(e){var n=e.substr(e.length-1,1);this.serviceUrl="/"===n?e.substr(0,e.length-2):e}this.options=t||{},this.CLASS_NAME="SuperMap.iManagerServiceBase"}request(e,t,n,r){r=r||{headers:{Accept:"*/*","Content-Type":"application/json"}},r.hasOwnProperty("withCredentials")||(r["withCredentials"]=!0),r["crossOrigin"]=this.options.crossOrigin,r["headers"]=this.options.headers;var i=Me.imanagerToken;return i&&(r.headers||(r.headers=[]),r.headers["X-Auth-Token"]=i),n&&(n=JSON.stringify(n)),Pe.commit(e,t,n,r).then((function(e){return e.json()}))}}o.iManagerServiceBase=Ne;class Le{constructor(e){e=e||{},this.nodeSpec="SMALL",this.nodeCount=1,this.nodeName="",this.password="",this.description="",this.physicalMachineName="",this.ips=[],this.userName="",Y.extend(this,e)}}o.iManagerCreateNodeParam=Le;class De extends Ne{constructor(e){super(e)}load(){return this.request("GET",this.serviceUrl+"/web/api/service.json")}createIServer(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/server.json",new Le(e))}createIPortal(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/portal.json",new Le(e))}iServerList(){return this.request("GET",this.serviceUrl+"/icloud/web/nodes/server.json")}iPortalList(){return this.request("GET",this.serviceUrl+"/icloud/web/nodes/portal.json")}startNodes(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/started.json",e)}stopNodes(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/stopped.json",e)}}o.iManager=De;class je{constructor(e,t){t=t||{},this.serviceUrl=e,this.serverType=s.iPortal,this.CLASS_NAME="SuperMap.iPortalServiceBase",this.withCredentials=t.withCredentials||!1,this.crossOrigin=t.crossOrigin,this.headers=t.headers}request(e,t,n,r={headers:this.headers,crossOrigin:this.crossOrigin,withCredentials:this.withCredentials}){return t=this.createCredentialUrl(t),Pe.commit(e,t,n,r).then((function(e){return e.json()}))}createCredentialUrl(e){var t=e,n=this.getCredential();if(n){var r=t.substring(t.length-1,t.length);t.indexOf("?")>-1&&"?"===r?t+=n.getUrlParameters():t.indexOf("?")>-1&&"?"!==r?t+="&"+n.getUrlParameters():t+="?"+n.getUrlParameters()}return t}getCredential(){var e,t=Me.getToken(this.serviceUrl);return e=t?new de(t,"token"):null,e||(t=this.getKey(),e=t?new de(t,"key"):null),e}getKey(){}}o.iPortalServiceBase=je;class Fe{constructor(e){e=e||{},this.resourceType="",this.pageSize=12,this.currentPage=1,this.orderBy="UPDATETIME",this.orderType="DESC",this.searchType="PUBLIC",this.tags=[],this.dirIds=[],this.resourceSubTypes=[],this.aggregationTypes=[],this.text="",this.groupIds=[],this.departmentIds=[],Y.extend(this,e)}}o.iPortalQueryParam=Fe;class Be{constructor(e){e=e||{},this.content=[],this.total=0,this.currentPage=1,this.pageSize=12,this.aggregations=null,Y.extend(this,e)}}o.iPortalQueryResult=Be;class qe extends je{constructor(e,t){super(e),t=t||{},this.authorizeSetting=[],this.bounds="",this.bounds4326="",this.checkStatus="",this.createTime=0,this.description=null,this.dirId=null,this.epsgCode=0,this.heatLevel=0,this.id=0,this.name="",this.personalDirId=null,this.resourceId=0,this.resourceSubType=null,this.resourceType=null,this.serviceRootUrlId=null,this.tags=null,this.thumbnail=null,this.updateTime=0,this.userName="",this.sourceJSON={},Y.extend(this,t),this.resourceUrl=e+"/web/"+this.resourceType.replace("_","").toLowerCase()+"s/"+this.resourceId,this.withCredentials&&(this.resourceUrl=e+"/web/mycontent/"+this.resourceType.replace("_","").toLowerCase()+"s/"+this.resourceId)}load(){var e=this;return e.request("GET",e.resourceUrl+".json").then((function(t){if(t.error)return t;e.sourceJSON=t}))}update(){var e=this.resourceType.replace("_","").toLowerCase(),t={headers:{"Content-Type":"application/x-www-form-urlencoded"}};"data"===e&&(this.resourceUrl=this.resourceUrl+"/attributes.json");var n=JSON.stringify(this.sourceJSON);if("service"===e){var r={authorizeSetting:this.sourceJSON.authorizeSetting,metadata:this.sourceJSON.metadata,tags:this.sourceJSON.tags,thumbnail:this.sourceJSON.thumbnail,tokenRefreshUrl:this.sourceJSON.tokenRefreshUrl};n=JSON.stringify(r)}return this.request("PUT",this.resourceUrl,n,t)}}o.iPortalResource=qe;class ze{constructor(e){e=e||{},this.ids=[],this.entities=[],this.resourceType="",Y.extend(this,e)}}o.iPortalShareParam=ze;class Ue extends je{constructor(e,t){super(e,t),this.iportalUrl=e,t=t||{},this.withCredentials=t.withCredentials||!1}load(){return Pe.get(this.iportalUrl+"/web")}queryResources(e){if(!(e instanceof Fe))return new Promise((function(e){e("queryParams is not instanceof iPortalQueryParam !")}));var t=this,n=this.iportalUrl+"/gateway/catalog/resource/search.json";return e.t=(new Date).getTime(),this.request("GET",n,e).then((function(e){var n=[];e.content.forEach((function(e){n.push(new qe(t.iportalUrl,e))}));let r=new Be;return r.content=n,r.total=e.total,r.currentPage=e.currentPage,r.pageSize=e.pageSize,r.aggregations=e.aggregations,r}))}updateResourcesShareSetting(e){if(!(e instanceof ze))return new Promise((function(e){e("shareParams is not instanceof iPortalShareParam !")}));var t=e.resourceType.replace("_","").toLowerCase()+"s";"datas"===t&&(t="mycontent/"+t);var n={ids:e.ids,entities:e.entities},r=this.iportalUrl+"/web/"+t+"/sharesetting.json";return this.request("PUT",r,JSON.stringify(n)).then((function(e){return e}))}}o.iPortal=Ue;class Ge{constructor(e){e=e||{},this.permissionType="",this.entityType="",this.entityName="GUEST",this.entityId=null,Y.extend(this,e)}}o.iPortalShareEntity=Ge;class Ve{constructor(e){e=e||{},this.rootUrl="",this.tags=[],this.entities=[],Y.extend(this,e)}}o.iPortalAddResourceParam=Ve;class We{constructor(e){e=e||{},this.type="",this.tags=[],this.entities=[],this.metadata={},this.addedMapNames=[],this.addedSceneNames=[],Y.extend(this,e)}}o.iPortalRegisterServiceParam=We;class He{constructor(e){e=e||{},this.fileName="",this.type="",this.tags=[],this.dataMetaInfo={},Y.extend(this,e)}}o.iPortalAddDataParam=He;class $e{constructor(e){e=e||{},this.xField="",this.yField="",this.fileEncoding="UTF-8",this.xIndex=1,this.yIndex=1,this.fieldTypes=[],this.separator="",this.firstRowIsHead=!0,this.url="",this.dataStoreInfo={},Y.extend(this,e)}}o.iPortalDataMetaInfoParam=$e;class Ke{constructor(e){e=e||{},this.type="",this.url="",this.connectionInfo={},Y.extend(this,e)}}o.iPortalDataStoreInfoParam=Ke;class Xe{constructor(e){e=e||{},this.dataBase="",this.server="",Y.extend(this,e)}}o.iPortalDataConnectionInfoParam=Xe;class Ye extends je{constructor(e){super(e),this.iportalUrl=e}deleteResources(e){var t=e.resourceType.replace("_","").toLowerCase(),n=this.iportalUrl+"/web/"+t+"s.json?ids="+encodeURI(JSON.stringify(e.ids));return"data"===t?(n=this.iportalUrl+"/web/mycontent/datas/delete.json",this.request("POST",n,JSON.stringify(e.ids))):this.request("DELETE",n)}addMap(e){if(!(e instanceof Ve))return this.getErrMsgPromise("addMapParams is not instanceof IPortalAddResourceParam !");let t={rootUrl:e.rootUrl,tags:e.tags,authorizeSetting:e.entities},n=this.iportalUrl+"/web/maps/batchaddmaps.json";return this.request("POST",n,JSON.stringify(t)).then((function(e){return e}))}addScene(e){if(!(e instanceof Ve))return this.getErrMsgPromise("addSceneParams is not instanceof IPortalAddResourceParam !");let t={rootUrl:e.rootUrl,tags:e.tags,authorizeSetting:e.entities},n=this.iportalUrl+"/web/scenes/batchaddscenes.json";return this.request("POST",n,JSON.stringify(t)).then((function(e){return e}))}registerService(e){if(!(e instanceof We))return this.getErrMsgPromise("registerParams is not instanceof IPortalRegisterServiceParam !");let t={type:e.type,tags:e.tags,authorizeSetting:e.entities,metadata:e.metadata,addedMapNames:e.addedMapNames,addedSceneNames:e.addedSceneNames},n=this.iportalUrl+"/web/services.json";return this.request("POST",n,JSON.stringify(t)).then(e=>e)}getErrMsgPromise(e){return new Promise(t=>{t(e)})}uploadDataRequest(e,t){var n=this.iportalUrl+"/web/mycontent/datas/"+e+"/upload.json";return this.request("POST",n,t)}addData(e,t){if(!(e instanceof He))return this.getErrMsgPromise("params is not instanceof iPortalAddDataParam !");var n,r=this.iportalUrl+"/web/mycontent/datas.json",i={fileName:e.fileName,tags:e.tags,type:e.type},o=e.type.toLowerCase();if("excel"===o||"csv"===o){if(!(e.dataMetaInfo instanceof $e))return this.getErrMsgPromise("params.dataMetaInfo is not instanceof iPortalDataMetaInfoParam !");n={xField:e.dataMetaInfo.xField,yField:e.dataMetaInfo.yField},"csv"===o&&(n.fileEncoding=e.dataMetaInfo.fileEncoding),i.coordType="WGS84",i.dataMetaInfo=n}else if("hdfs"===o||"hbase"===o){if(!(e.dataMetaInfo instanceof $e))return this.getErrMsgPromise("params.dataMetaInfo is not instanceof iPortalDataMetaInfoParam !");if(!(e.dataMetaInfo.dataStoreInfo instanceof Ke))return this.getErrMsgPromise("params.dataMetaInfo.dataStoreInfo is not instanceof iPortalDataStoreInfoParam !");var a={type:e.dataMetaInfo.dataStoreInfo.type};switch(o){case"hdfs":a.url=e.dataMetaInfo.dataStoreInfo.url,n={url:e.dataMetaInfo.url,dataStoreInfo:a};break;case"hbase":if(!(e.dataMetaInfo.dataStoreInfo.connectionInfo instanceof Xe))return this.getErrMsgPromise("params.dataMetaInfo.dataStoreInfo.connectionInfo is not instanceof iPortalDataConnectionInfoParam !");a.connectionInfo={dataBase:e.dataMetaInfo.dataStoreInfo.connectionInfo.dataBase,server:e.dataMetaInfo.dataStoreInfo.connectionInfo.server,engineType:"HBASE"},a.datastoreType="SPATIAL",n={dataStoreInfo:a};break}i.dataMetaInfo=n}return this.request("POST",r,JSON.stringify(i)).then(e=>"hdfs"===o||"hbase"===o?e:e.childID?this.uploadDataRequest(e.childID,t):e.customResult)}publishOrUnpublish(e,t){if(!e.dataId||!e.serviceType)return this.getErrMsgPromise("option.dataID and option.serviceType are Required!");var n=e.dataId,r=e.dataServiceId,i=e.serviceType,o=this.iportalUrl+"/web/mycontent/datas/"+n+"/publishstatus.json?serviceType="+i;return r&&(o+="&dataServiceId="+r),this.request("PUT",o,JSON.stringify(t)).then(e=>t?(r||(r=e.customResult),r):e)}getDataPublishedStatus(e,t){var n=this.iportalUrl+"/web/mycontent/datas/"+e+"/publishstatus.json?dataServiceId="+t+"&forPublish=true";return this.request("GET",n)}unPublishDataService(e){return this.publishOrUnpublish(e,!1)}publishDataService(e){return this.publishOrUnpublish(e,!0)}}o.iPortalUser=Ye;class Je{constructor(e,t){let n=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,Y.isArray(e)?(n.urls=e,n.length=e.length,n.totalTimes=n.length,1===n.length?n.url=e[0]:(n.index=parseInt(Math.random()*n.length),n.url=e[n.index])):(n.totalTimes=1,n.url=e),Y.isArray(e)&&!n.isServiceSupportPolling()&&(n.url=e[0],n.totalTimes=1),n.serverType=n.serverType||s.ISERVER,t=t||{},this.crossOrigin=t.crossOrigin,this.headers=t.headers,Y.extend(this,t),n.isInTheSameDomain=Y.isInTheSameDomain(n.url),n.events=new he(n,null,n.EVENT_TYPES,!0),n.eventListeners instanceof Object&&n.events.on(n.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}destroy(){let e=this;Y.isArray(e.urls)&&(e.urls=null,e.index=null,e.length=null,e.totalTimes=null),e.url=null,e.options=null,e._processSuccess=null,e._processFailed=null,e.isInTheSameDomain=null,e.EVENT_TYPES=null,e.events&&(e.events.destroy(),e.events=null),e.eventListeners&&(e.eventListeners=null)}request(e){let t=this;e.url=e.url||t.url,e.proxy=e.proxy||t.proxy,e.withCredentials=void 0!=e.withCredentials?e.withCredentials:t.withCredentials,e.crossOrigin=void 0!=e.crossOrigin?e.crossOrigin:t.crossOrigin,e.headers=e.headers||t.headers,e.isInTheSameDomain=t.isInTheSameDomain;let n=this.getCredential(e.url);n&&(e.url=Y.urlAppend(e.url,n.getUrlParameters())),t.calculatePollingTimes(),t._processSuccess=e.success,t._processFailed=e.failure,e.scope=t,e.success=t.getUrlCompleted,e.failure=t.getUrlFailed,t.options=e,t._commit(t.options)}getCredential(e){let t,n,r=e;switch(this.serverType){case s.IPORTAL:n=Me.getToken(r),t=n?new de(n,"token"):null,t||(n=Me.getKey(r),t=n?new de(n,"key"):null);break;case s.ONLINE:n=Me.getKey(r),t=n?new de(n,"key"):null;break;default:n=Me.getToken(r),t=n?new de(n,"token"):null;break}return t}getUrlCompleted(e){let t=this;t._processSuccess(e)}getUrlFailed(e){let t=this;t.totalTimes>0?(t.totalTimes--,t.ajaxPolling()):t._processFailed(e)}ajaxPolling(){let e=this,t=e.options.url,n=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;e.index=parseInt(Math.random()*e.length),e.url=e.urls[e.index],t=t.replace(n,n.exec(e.url)[0]),e.options.url=t,e.options.isInTheSameDomain=Y.isInTheSameDomain(t),e._commit(e.options)}calculatePollingTimes(){let e=this;e.times?e.totalTimes>e.POLLING_TIMES?e.times>e.POLLING_TIMES?e.totalTimes=e.POLLING_TIMES:e.totalTimes=e.times:e.times<e.totalTimes&&(e.totalTimes=e.times):e.totalTimes>e.POLLING_TIMES&&(e.totalTimes=e.POLLING_TIMES),e.totalTimes--}isServiceSupportPolling(){let e=this;return!("SuperMap.REST.ThemeService"===e.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===e.CLASS_NAME)}serviceProcessCompleted(e){e=Y.transformResult(e),this.events.triggerEvent("processCompleted",{result:e})}serviceProcessFailed(e){e=Y.transformResult(e);let t=e.error||e;this.events.triggerEvent("processFailed",{error:t})}_commit(e){"POST"!==e.method&&"PUT"!==e.method||(e.params&&(e.url=Y.urlAppend(e.url,Y.getParameterString(e.params||{}))),e.params=e.data),Pe.commit(e.method,e.url,e.params,{headers:e.headers,withCredentials:e.withCredentials,crossOrigin:e.crossOrigin,timeout:e.async?0:null,proxy:e.proxy}).then((function(e){return e.text?e.text():e.json?e.json():e})).then((function(t){var n=t;if("string"===typeof t&&(n=(new ve).read(t)),(!n||n.error||n.code>=300&&304!==n.code)&&(n=n&&n.error?{error:n.error}:{error:n}),n.error){var r=e.scope?X.bind(e.failure,e.scope):e.failure;r(n)}else{n.succeed=void 0==n.succeed||n.succeed;var i=e.scope?X.bind(e.success,e.scope):e.success;i(n)}})).catch((function(t){var n=e.scope?X.bind(e.failure,e.scope):e.failure;n(t)}))}}o.CommonServiceBase=Je;class Qe{constructor(e){e.filters&&"string"===typeof e.filters&&(e.filters=e.filters.split(",")),this.address=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,Y.extend(this,e)}destroy(){this.address=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null}}o.GeoCodingParameter=Qe;class Ze{constructor(e){e.filters&&(e.filters=e.filters.split(",")),this.x=null,this.y=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,this.geoDecodingRadius=null,Y.extend(this,e)}destroy(){this.x=null,this.y=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,this.geoDecodingRadius=null}}o.GeoDecodingParameter=Ze;class et extends Je{constructor(e,t){super(e,t),this.options=t||{},this.CLASS_NAME="SuperMap.AddressMatchService"}destroy(){super.destroy()}code(e,t){t instanceof Qe&&this.processAsync(e,t)}decode(e,t){t instanceof Ze&&this.processAsync(e,t)}processAsync(e,t){this.request({method:"GET",url:e,params:t,scope:this,success:this.serviceProcessCompleted,failure:this.serviceProcessFailed})}serviceProcessCompleted(e){e.succeed&&delete e.succeed,super.serviceProcessCompleted(e)}serviceProcessFailed(e){super.serviceProcessFailed(e)}}o.AddressMatchService=et;class tt{constructor(e){this.name=null,this.queryType=null,this.CLASS_NAME="SuperMap.AggQueryBuilderParameter",Y.extend(this,e)}destroy(){var e=this;e.name=null,e.queryType=null}}o.AggQueryBuilderParameter=tt;class nt{constructor(e){this.aggName=null,this.aggType=null,this.aggFieldName=null,this.subAgg=null,this.CLASS_NAME="SuperMap.AggregationParameter",Y.extend(this,e)}destroy(){var e=this;e.aggName=null,e.aggFieldName=null,e.aggType=null,e.subAgg&&(e.subAgg=null)}}o.AggregationParameter=nt;class rt{constructor(e){this.dataset=null,this.targetDatasourceName=null,this.totalGridName=null,this.diffuseDatasetGridName=null,this.durationDatasetGridName=null,this.directDatasetGridName=null,this.latitude=null,this.timeMode="MULTIDAYS",this.dayStart=null,this.dayEnd=null,this.hourStart=null,this.hourEnd=null,this.transmittance=null,this.hourInterval=null,this.dayInterval=null,this.deleteExistResultDataset=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.AreaSolarRadiationParameters"}destroy(){var e=this;e.dataset=null,e.zFactor=1,e.averageCurvatureName=null,e.profileCurvatureName=null,e.planCurvatureName=null,e.deleteExistResultDataset=!0}static toObject(e,t){var n={};for(var r in e)if("dataset"!==r){var i="latitude"===r||"timeMode"===r||"dayStart"===r,o="dayEnd"===r||"hourStart"===r||"hourEnd"===r,a="transmittance"===r||"hourInterval"===r||"dayInterval"===r;i||o||a?n[r]=e[r]:t[r]=e[r]}t["parameter"]=n}}o.AreaSolarRadiationParameters=rt;class it extends Je{constructor(e,t){super(e,t),this.format=a.GEOJSON,this.CLASS_NAME="SuperMap.SpatialAnalystBase"}destroy(){super.destroy(),this.format=null}serviceProcessCompleted(e){var t,n=this;if(e=Y.transformResult(e),e&&n.format===a.GEOJSON&&"function"===typeof n.toGeoJSONResult)if(Y.isArray(e)){for(var r=0;r<e.length;r++)e[r]=n.toGeoJSONResult(e[r]);t=e}else t=n.toGeoJSONResult(e);t||(t=e),n.events.triggerEvent("processCompleted",{result:t})}toGeoJSONResult(e){if(!e)return null;e.result&&e.result.resultGeometry&&(e=e.result);var t=new Se;if(e.recordsets)for(var n=0,r=e.recordsets,i=r.length;n<i;n++)r[n].features&&(r[n].features=t.toGeoJSON(r[n].features));else e.recordset&&e.recordset.features&&(e.recordset.features=t.toGeoJSON(e.recordset.features));return e.resultGeometry&&(e.resultGeometry=t.toGeoJSON(e.resultGeometry)),e.regions&&(e.regions=t.toGeoJSON(e.regions)),e}}o.SpatialAnalystBase=it;class ot extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.AreaSolarRadiationService"}destroy(){super.destroy()}processAsync(e){if(e instanceof rt){var t=this,n={};e instanceof rt&&(t.url=Y.urlPathAppend(t.url,`datasets/${e.dataset}/solarradiation`)),t.url=Y.urlAppend(t.url,"returnContent=true"),rt.toObject(e,n);var r=Y.toJSON(n);t.request({method:"POST",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}o.AreaSolarRadiationService=ot;class at{constructor(e){this.exp=null,this.value=100,Y.extend(this,e),this.CLASS_NAME="SuperMap.BufferDistance"}destroy(){this.exp=null,this.value=null}}o.BufferDistance=at;class st{constructor(e){this.endType=C.FLAT,this.leftDistance=new at,this.rightDistance=new at,this.semicircleLineSegment=4,this.radiusUnit=h.METER,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.BufferSetting"}destroy(){let e=this;e.endType=null,e.leftDistance&&(e.leftDistance.destroy(),e.leftDistance=null),e.rightDistance&&(e.rightDistance.destroy(),e.rightDistance=null),e.semicircleLineSegment=null,e.radiusUnit=null}}o.BufferSetting=st;class lt{constructor(e){var t=this;t.bufferSetting=new st,Y.extend(this,e),this.CLASS_NAME="SuperMap.BufferAnalystParameters"}destroy(){var e=this;e.bufferSetting&&(e.bufferSetting.destroy(),e.bufferSetting=null)}}o.BufferAnalystParameters=lt;class ct{constructor(e){this.expectCount=1e3,this.dataset=null,this.dataReturnMode=I.RECORDSET_ONLY,this.deleteExistResultDataset=!0,Y.extend(this,e),this.CLASS_NAME="SuperMap.DataReturnOption"}destroy(){var e=this;e.expectCount=null,e.dataset=null,e.dataReturnMode=null,e.deleteExistResultDataset=null}}o.DataReturnOption=ct;class ut{constructor(e){this.foreignTableName=null,this.joinFilter=null,this.joinType=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.JoinItem"}destroy(){var e=this;e.foreignTableName=null,e.joinFilter=null,e.joinType=null}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e}}o.JoinItem=ut;class dt{constructor(e){this.alias=null,this.connect=null,this.dataBase=null,this.driver=null,this.engineType=null,this.exclusive=null,this.OpenLinkTable=null,this.password=null,this.readOnly=null,this.server=null,this.user=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.DatasourceConnectionInfo"}destroy(){var e=this;e.alias=null,e.connect=null,e.dataBase=null,e.driver=null,e.engineType=null,e.exclusive=null,e.OpenLinkTable=null,e.password=null,e.readOnly=null,e.server=null,e.user=null}}o.DatasourceConnectionInfo=dt;class ft{constructor(e){this.datasourceConnectionInfo=null,this.foreignKeys=null,this.foreignTable=null,this.linkFields=null,this.linkFilter=null,this.name=null,this.primaryKeys=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.LinkItem"}destroy(){var e=this;e.datasourceConnectionInfo instanceof dt&&(e.datasourceConnectionInfo.destroy(),e.datasourceConnectionInfo=null),e.foreignKeys=null,e.foreignTable=null,e.linkFields=null,e.linkFilter=null,e.name=null,e.primaryKeys=null}}o.LinkItem=ft;class ht{constructor(e){this.attributeFilter=null,this.name=null,this.joinItems=null,this.linkItems=null,this.ids=null,this.orderBy=null,this.groupBy=null,this.fields=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.FilterParameter"}destroy(){var e=this;if(e.attributeFilter=null,e.name=null,e.joinItems){for(let t=0,n=e.joinItems,r=n.length;t<r;t++)n[t].destroy();e.joinItems=null}if(e.linkItems){for(let t=0,n=e.linkItems,r=n.length;t<r;t++)n[t].destroy();e.linkItems=null}e.ids=null,e.orderBy=null,e.groupBy=null,e.fields=null}}o.FilterParameter=ht;class pt extends lt{constructor(e){super(e),this.dataset=null,this.filterQueryParameter=new ht,this.resultSetting=new ct,this.isAttributeRetained=!0,this.isUnion=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.DatasetBufferAnalystParameters"}destroy(){super.destroy();var e=this;e.dataset=null,e.filterQueryParameter&&(e.filterQueryParameter.destroy(),e.filterQueryParameter=null),e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null),e.isAttributeRetained=null,e.isUnion=null}static toObject(e,t){for(var n in e)if("bufferSetting"===n)e.bufferSetting.radiusUnit=e.bufferSetting.radiusUnit.toUpperCase(),t.bufferAnalystParameter=e.bufferSetting;else if("resultSetting"===n)t.dataReturnOption=e.resultSetting;else{if("dataset"===n)continue;t[n]=e[n]}}}o.DatasetBufferAnalystParameters=pt;class mt extends lt{constructor(e){super(e),this.sourceGeometry=null,this.sourceGeometrySRID=null,e&&Y.extend(this,e),this.CLASS_NAME=" SuperMap.GeometryBufferAnalystParameters"}destroy(){super.destroy();var e=this;e.sourceGeometry&&(e.sourceGeometry.destroy(),e.sourceGeometry=null)}static toObject(e,t){for(var n in e)if("bufferSetting"===n){var r={};for(var i in e.bufferSetting)r[i]=e.bufferSetting[i];t.analystParameter=r}else"sourceGeometry"===n?t.sourceGeometry=xe.fromGeometry(e.sourceGeometry):t[n]=e[n]}}o.GeometryBufferAnalystParameters=mt;class gt extends it{constructor(e,t){super(e,t),this.mode=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.BufferAnalystService"}destroy(){super.destroy(),this.mode=null}processAsync(e){var t={},n=this;e instanceof pt?(n.mode="datasets",n.url=Y.urlPathAppend(n.url,"datasets/"+e.dataset+"/buffer"),pt.toObject(e,t)):e instanceof mt&&(n.mode="geometry",n.url=Y.urlPathAppend(n.url,"geometry/buffer"),mt.toObject(e,t));var r=Y.toJSON(t);n.url=Y.urlAppend(n.url,"returnContent=true"),n.request({method:"POST",data:r,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}o.BufferAnalystService=gt;class vt{constructor(e){this.type=k.UDB,this.datasetName="analystResult",this.datasourceInfo=null,this.outputPath="",Y.extend(this,e),this.CLASS_NAME="SuperMap.OutputSetting"}destroy(){var e=this;e.type=null,e.datasetName=null,e.outputPath=null,e.datasourceInfo instanceof dt&&(e.datasourceInfo.destroy(),e.datasourceInfo=null)}}o.OutputSetting=vt;class yt{constructor(e){this.items=null,this.numericPrecision=1,this.rangeMode=y.EQUALINTERVAL,this.rangeCount="",this.colorGradientType=b.YELLOW_RED,Y.extend(this,e),this.CLASS_NAME="SuperMap.MappingParameters"}destroy(){var e=this;if(e.items){if(e.items.length>0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.numericPrecision=null,e.rangeMode=null,e.rangeCount=null,e.colorGradientType=null}}o.MappingParameters=yt;class bt{constructor(e){if(this.datasetName="",this.bounds="",this.distance="",this.distanceField="",this.distanceUnit=F.METER,this.dissolveField="",this.output=null,this.mappingParameters=null,!e)return this;Y.extend(this,e),this.CLASS_NAME="SuperMap.BuffersAnalystJobsParameter"}destroy(){this.datasetName=null,this.bounds=null,this.distance=null,this.distanceField=null,this.distanceUnit=null,this.dissolveField=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"output"!==n?(t["analyst"]=t["analyst"]||{},"bounds"===n&&e[n]?t["analyst"][n]=e[n].toBBOX():t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.BuffersAnalystJobsParameter=bt;class _t extends Je{constructor(e,t){t=t||{},t.EVENT_TYPES=["processCompleted","processFailed","processRunning"],super(e,t),this.CLASS_NAME="SuperMap.ProcessingServiceBase"}destroy(){super.destroy()}getJobs(e){var t=this;Pe.get(t._processUrl(e),null,{proxy:t.proxy}).then((function(e){return e.json()})).then((function(e){t.events.triggerEvent("processCompleted",{result:e})})).catch((function(e){t.eventListeners.processFailed({error:e})}))}addJob(e,t,n,r){var i=this,o=null;t&&t instanceof n&&(o=new Object,n.toObject(t,o));let a=Object.assign({"Content-Type":"application/x-www-form-urlencoded"},i.headers||{});var s={proxy:i.proxy,headers:a,withCredentials:i.withCredentials,crossOrigin:i.crossOrigin,isInTheSameDomain:i.isInTheSameDomain};Pe.post(i._processUrl(e),JSON.stringify(o),s).then((function(e){return e.json()})).then((function(e){e.succeed?i.serviceProcessCompleted(e,r):i.serviceProcessFailed(e)})).catch((function(e){i.serviceProcessFailed({error:e})}))}serviceProcessCompleted(e,t){e=Y.transformResult(e),t=t||1e3;var n=this;if(e)var r=setInterval((function(){Pe.get(n._processUrl(e.newResourceLocation),{_t:(new Date).getTime()}).then((function(e){return e.json()})).then((function(e){n.events.triggerEvent("processRunning",{id:e.id,state:e.state}),"LOST"!==e.state.runState&&"KILLED"!==e.state.runState&&"FAILED"!==e.state.runState||(clearInterval(r),n.events.triggerEvent("processFailed",{error:e.state.errorMsg,state:e.state.runState})),"FINISHED"===e.state.runState&&e.setting.serviceInfo&&(clearInterval(r),n.events.triggerEvent("processCompleted",{result:e}))})).catch((function(e){clearInterval(r),n.events.triggerEvent("processFailed",{error:e})}))}),t)}serviceProcessFailed(e){super.serviceProcessFailed(e)}_processUrl(e){return Me.getToken(e)&&(e=Y.urlAppend(e,"token="+Me.getToken(e))),e}}o.ProcessingServiceBase=_t;class wt extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/buffers"),this.CLASS_NAME="SuperMap.BuffersAnalystJobsService"}destroy(){super.destroy()}getBuffersJobs(){super.getJobs(this.url)}getBuffersJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addBuffersJob(e,t){super.addJob(this.url,e,bt,t)}}o.BuffersAnalystJobsService=wt;class xt{constructor(e){var t=this;this.sourceNodeIDs=null,this.edgeID=null,this.nodeID=null,this.isUncertainDirectionValid=!1,Y.extend(t,e),this.CLASS_NAME="SuperMap.BurstPipelineAnalystParameters"}destroy(){var e=this;e.sourceNodeIDs=null,e.edgeID=null,e.nodeID=null,e.isUncertainDirectionValid=null}}o.BurstPipelineAnalystParameters=xt;class St extends Je{constructor(e,t){super(e,t),this.format=a.GEOJSON,this.CLASS_NAME="SuperMap.NetworkAnalystServiceBase"}destroy(){super.destroy(),this.format=null}serviceProcessCompleted(e){var t,n=this;e=Y.transformResult(e),e&&n.format===a.GEOJSON&&"function"===typeof n.toGeoJSONResult&&(t=n.toGeoJSONResult(e)),t||(t=e),n.events.triggerEvent("processCompleted",{result:t})}toGeoJSONResult(e){return null}}o.NetworkAnalystServiceBase=St;class Ct extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.BurstPipelineAnalystService"}destroy(){super.destroy()}processAsync(e){if(!(e instanceof xt))return null;var t,n=this;if(n.url=Y.urlPathAppend(n.url,"burstAnalyse"),t={sourceNodeIDs:e.sourceNodeIDs,isUncertainDirectionValid:e.isUncertainDirectionValid},null!==e.edgeID&&null!==e.nodeID)throw new Error("edgeID and nodeID cannot be null at the same time.");if(null===e.edgeID&&null===e.nodeID)throw new Error("edgeID and nodeID cannot be null at the same time.");null!==e.edgeID?t.edgeID=e.edgeID:t.nodeID=e.nodeID,n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}o.BurstPipelineAnalystService=Ct;class Et extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.ChartFeatureInfoSpecsService"}destroy(){super.destroy(),Y.reset(this)}processAsync(){var e=this,t="GET";e.isTempLayers||Y.urlPathAppend(e.url,"chartFeatureInfoSpecs"),e.request({method:t,params:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}o.ChartFeatureInfoSpecsService=Et;class kt{constructor(e){this.isQueryPoint=null,this.isQueryLine=null,this.isQueryRegion=null,this.attributeFilter=null,this.chartFeatureInfoSpecCode=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.ChartQueryFilterParameter"}destroy(){var e=this;e.isQueryPoint=null,e.isQueryLine=null,e.isQueryRegion=null,e.attributeFilter=null,e.chartFeatureInfoSpecCode=null}toJson(){var e="";return e+='"isQueryPoint":'+this.isQueryPoint+",",e+='"isQueryLine":'+this.isQueryLine+",",e+='"isQueryRegion":'+this.isQueryRegion+",",this.attributeFilter&&(e+='"attributeFilter": "'+this.attributeFilter+'",'),e+='"chartFeatureInfoSpecCode":'+this.chartFeatureInfoSpecCode,e="{"+e+"}",e}}o.ChartQueryFilterParameter=kt;class Ot{constructor(e){this.queryMode=null,this.bounds=null,this.chartLayerNames=null,this.chartQueryFilterParameters=null,this.returnContent=!0,this.startRecord=0,this.expectCount=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.ChartQueryParameters"}destroy(){var e=this;e.queryMode=null,e.bounds=null,e.chartLayerNames=null,e.chartQueryFilterParameters=null,e.returnContent=!0,e.startRecord=0,e.expectCount=null}getVariablesJson(){var e="";if(e+='"queryMode":"'+this.queryMode+'",',this.chartLayerNames&&this.chartLayerNames.length){for(var t=[],n=this.chartLayerNames.length,r=0;r<n;r++)t.push('"'+this.chartLayerNames[r]+'"');var i="["+t.join(",")+"]";e+='"chartLayerNames":'+i+","}if("ChartBoundsQuery"===this.queryMode&&this.bounds&&(e+='"bounds":{"leftBottom":{"x":'+this.bounds.left+',"y":'+this.bounds.bottom+'},"rightTop":{"x":'+this.bounds.right+',"y":'+this.bounds.top+"}},"),this.chartQueryFilterParameters&&this.chartQueryFilterParameters.length){for(var o=[],a=this.chartQueryFilterParameters.length,s=0;s<a;s++){var l=this.chartQueryFilterParameters[s];l instanceof kt&&o.push(l.toJson())}var c="["+o.join(",")+"]";c='"chartQueryParams":'+c+",",c+='"startRecord":'+this.startRecord+",",c+='"expectCount":'+this.expectCount,c="{"+c+"}",e+='"chartQueryParameters":'+c}return e="{"+e+"}",e}}o.ChartQueryParameters=Ot;class Tt{constructor(e){e&&(this.customParams=null,this.prjCoordSys=null,this.expectCount=1e5,this.networkType=l.LINE,this.queryOption=c.ATTRIBUTEANDGEOMETRY,this.queryParams=null,this.startRecord=0,this.holdTime=10,this.returnCustomResult=!1,this.returnFeatureWithFieldCaption=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.QueryParameters")}destroy(){var e=this;if(e.customParams=null,e.expectCount=null,e.networkType=null,e.queryOption=null,e.queryParams){for(var t=0,n=e.queryParams,r=n.length;t<r;t++)n[t].destroy();e.queryParams=null}e.startRecord=null,e.holdTime=null,e.returnCustomResult=null,e.prjCoordSys=null}}o.QueryParameters=Tt;class It extends Je{constructor(e,t){super(e,t),t=t||{},this.returnContent=null,this.format=a.GEOJSON,Y.extend(this,t);var n=this;t.format&&(n.format=t.format.toUpperCase()),n.url&&(n.url=Y.urlPathAppend(n.url,"queryResults"),this.CLASS_NAME="SuperMap.ChartQueryService")}destroy(){var e=this;Je.prototype.destroy.apply(this,arguments),e.returnContent=null,e.format=null}processAsync(e){if(e instanceof Ot){var t,n=this;n.returnContent=e.returnContent,t=e.getVariablesJson(),n.returnContent&&(n.url=Y.urlAppend(n.url,"returnContent=true")),n.request({method:"POST",data:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}serviceProcessCompleted(e){var t=this;if(e=Y.transformResult(e),e&&e.recordsets&&t.format===a.GEOJSON)for(var n=0,r=e.recordsets,i=r.length;n<i;n++)if(r[n].features){var o=new Se;r[n].features=o.toGeoJSON(r[n].features)}t.events.triggerEvent("processCompleted",{result:e})}getQueryParameters(e){return new Tt({queryMode:e.queryMode,bounds:e.bounds,chartLayerNames:e.chartLayerNames,chartQueryFilterParameters:e.chartQueryFilterParameters,returnContent:e.returnContent})}}o.ChartQueryService=It;class At{constructor(e){this.clipDatasetName=null,this.clipDatasourceName=null,this.clipRegion=null,this.isClipInRegion=!0,this.isExactClip=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ClipParameter"}destroy(){var e=this;e.clipDatasetName=null,e.clipDatasourceName=null,e.clipRegion=null,e.isClipInRegion=null,e.isExactClip=null}toJSON(){return Y.toJSON({isClipInRegion:this.isClipInRegion,clipDatasetName:this.clipDatasetName,clipDatasourceName:this.clipDatasourceName,isExactClip:this.isExactClip,clipRegion:xe.fromGeometry(this.clipRegion)})}}o.ClipParameter=At;class Rt{constructor(e){e=e||{},this.elevation=null,this.color=null,Y.extend(this,e);var t=this,n=t.color;n&&(t.color=new ye(n.red,n.green,n.blue)),this.CLASS_NAME="SuperMap.ColorDictionary"}destroy(){Y.reset(this)}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e}}o.ColorDictionary=Rt;class Pt{constructor(e){e&&(this.returnEdgeFeatures=!1,this.returnEdgeGeometry=!1,this.returnEdgeIDs=!1,this.returnNodeFeatures=!1,this.returnNodeGeometry=!1,this.returnNodeIDs=!1,this.returnPathGuides=!1,this.returnRoutes=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.TransportationAnalystResultSetting")}destroy(){var e=this;e.returnEdgeFeatures=null,e.returnEdgeGeometry=null,e.returnEdgeIDs=null,e.returnNodeFeatures=null,e.returnNodeGeometry=null,e.returnNodeIDs=null,e.returnPathGuides=null,e.returnRoutes=null}}o.TransportationAnalystResultSetting=Pt;class Mt{constructor(e){e&&(this.barrierEdgeIDs=null,this.barrierNodeIDs=null,this.barrierPoints=null,this.weightFieldName=null,this.turnWeightField=null,this.resultSetting=new Pt,Y.extend(this,e),this.CLASS_NAME="SuperMap.TransportationAnalystParameter")}destroy(){var e=this;if(e.barrierEdgeIDs=null,e.barrierNodeIDs=null,e.weightFieldName=null,e.turnWeightField=null,e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null),e.barrierPoints&&e.barrierPoints.length)for(var t in e.barrierPoints)e.barrierPoints[t].destroy();e.barrierPoints=null}}o.TransportationAnalystParameter=Mt;class Nt{constructor(e){this.isAnalyzeById=!1,this.nodes=null,this.parameter=new Mt,Y.extend(this,e),this.CLASS_NAME="SuperMap.ComputeWeightMatrixParameters"}destroy(){var e=this;e.isAnalyzeById=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}o.ComputeWeightMatrixParameters=Nt;class Lt extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.ComputeWeightMatrixService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Nt){var t,n=this;n.url=Y.urlPathAppend(n.url,"weightmatrix"),t={parameter:Y.toJSON(e.parameter),nodes:n.getJson(e.isAnalyzeById,e.nodes)},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJson(e,t){var n="[",r=t?t.length:0;if(!1===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+='{"x":'+t[i].x+',"y":'+t[i].y+"}";else if(!0===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+=t[i];return n+="]",n}}o.ComputeWeightMatrixService=Lt;class Dt extends Je{constructor(e,t){t=t||{},t.EVENT_TYPES=["broadcastSocketConnected","broadcastSocketError","broadcastFailed","broadcastSucceeded","subscribeSocketConnected","subscribeSocketError","messageSucceeded","setFilterParamSucceeded"],super(e,t),this.geometry=null,this.prjCoordSys=null,this.excludeField=null,Y.extend(this,t),this.CLASS_NAME="SuperMap.DataFlowService"}initBroadcast(){var e=this;return this.broadcastWebSocket=this._connect(Y.urlPathAppend(e.url,"broadcast")),this.broadcastWebSocket.onopen=function(t){e.broadcastWebSocket.isOpen=!0,t.eventType="broadcastSocketConnected",e.events.triggerEvent("broadcastSocketConnected",t)},this.broadcastWebSocket.onclose=function(t){e.broadcastWebSocket.isOpen=!1,t.eventType="broadcastSocketConnected",e.events.triggerEvent("broadcastSocketConnected",t)},this.broadcastWebSocket.onerror=function(t){t.eventType="broadcastSocketError",e.events.triggerEvent("broadcastSocketError",t)},this}broadcast(e){this.broadcastWebSocket&&this.broadcastWebSocket.isOpen?(this.broadcastWebSocket.send(JSON.stringify(e)),this.events.triggerEvent("broadcastSucceeded")):this.events.triggerEvent("broadcastFailed")}initSubscribe(){var e=this;return this.subscribeWebSocket=this._connect(Y.urlPathAppend(e.url,"subscribe")),this.subscribeWebSocket.onopen=function(t){e.subscribeWebSocket.send(e._getFilterParams()),t.eventType="subscribeSocketConnected",e.events.triggerEvent("subscribeSocketConnected",t)},this.subscribeWebSocket.onerror=function(t){t.eventType="subscribeSocketError",e.events.triggerEvent("subscribeSocketError",t)},this.subscribeWebSocket.onmessage=function(t){e._onMessage(t)},this}setExcludeField(e){return this.excludeField=e,this.subscribeWebSocket.send(this._getFilterParams()),this}setGeometry(e){return this.geometry=e,this.subscribeWebSocket.send(this._getFilterParams()),this}unSubscribe(){this.subscribeWebSocket&&(this.subscribeWebSocket.close(),this.subscribeWebSocket=null)}unBroadcast(){this.broadcastWebSocket&&(this.broadcastWebSocket.close(),this.broadcastWebSocket=null)}destroy(){Je.prototype.destroy.apply(this,arguments);var e=this;e.geometry=null,e.prjCoordSys=null,e.excludeField=null,this.unBroadcast(),this.unSubscribe()}_getFilterParams(){var e={filterParam:{prjCoordSys:this.prjCoordSys,excludeField:this.excludeField,geometry:this.geometry}};return Y.toJSON(e)}_onMessage(e){if(e.data&&e.data.indexOf("filterParam")>=0){var t=JSON.parse(e.data);return e.filterParam=t,e.eventType="setFilterParamSucceeded",void this.events.triggerEvent("setFilterParamSucceeded",e)}var n=JSON.parse(e.data);e.featureResult=n,e.eventType="messageSucceeded",this.events.triggerEvent("messageSucceeded",e)}_connect(e){if(e=this._appendCredentials(e),"WebSocket"in window)return new WebSocket(e);if("MozWebSocket"in window){var t=window.MozWebSocket;return new t(e)}return console.log("no WebSocket"),null}_appendCredentials(e){var t=Me.getToken(e);return t&&(e=Y.urlAppend(e,"token="+t)),e}}o.DataFlowService=Dt;class jt{constructor(e){e=e||{},this.bounds=null,this.dataSourceName=null,this.description=null,this.encodeType=null,this.isReadOnly=null,this.name=null,this.prjCoordSys=null,this.tableName=null,this.type=null,Y.extend(this,e);var t=this.bounds;t&&(this.bounds=new Q(t.leftBottom.x,t.leftBottom.y,t.rightTop.x,t.rightTop.y)),this.CLASS_NAME="SuperMap.DatasetInfo"}destroy(){Y.reset(this)}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e.bounds&&e.bounds.toServerJSONObject&&(e.bounds=e.bounds.toServerJSONObject()),e}}o.DatasetInfo=jt;class Ft{constructor(e){this.operation=E.UNION,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.OverlayAnalystParameters"}destroy(){var e=this;e.operation=null}}o.OverlayAnalystParameters=Ft;class Bt extends Ft{constructor(e){super(e),this.operateDataset=null,this.operateDatasetFields=[],this.operateDatasetFilter=new ht,this.operateRegions=[],this.sourceDataset=null,this.sourceDatasetFields=[],this.sourceDatasetFilter=new ht,this.tolerance=0,this.resultSetting=new ct,Y.extend(this,e),this.CLASS_NAME="SuperMap.DatasetOverlayAnalystParameters"}destroy(){super.destroy();var e=this;if(e.operateDataset=null,e.operateDatasetFields=null,e.operateDatasetFilter&&(e.operateDatasetFilter.destroy(),e.operateDatasetFilter=null),e.operateRegions){for(var t=0,n=e.operateRegions,r=n.length;t<r;t++)n[t].destroy();e.operateRegions=null}e.sourceDataset=null,e.sourceDatasetFields=null,e.sourceDatasetFilter&&(e.sourceDatasetFilter.destroy(),e.sourceDatasetFilter=null),e.tolerance=null,e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null)}static toObject(e,t){for(var n in e)if("sourceDataset"!==n)if("operateRegions"===n){t.operateRegions=[];var r=e.operateRegions;for(var i in r)r.hasOwnProperty(i)&&(t.operateRegions[i]=xe.fromGeometry(r[i]))}else"resultSetting"===n?t.dataReturnOption=e.resultSetting:t[n]=e[n]}}o.DatasetOverlayAnalystParameters=Bt;class qt{constructor(e){this.clipRegion=null,this.datumValue=0,this.expectedZValues=null,this.interval=0,this.resampleTolerance=0,this.smoothMethod=O.BSPLINE,this.smoothness=0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.SurfaceAnalystParametersSetting"}destroy(){var e=this;e.clipRegion&&(e.clipRegion.destroy(),e.clipRegion=null),e.datumValue=null,e.expectedZValues=null,e.interval=null,e.resampleTolerance=null,e.smoothMethod=null,e.smoothness=null}toJSON(){let e="'datumValue':"+Y.toJSON(this.datumValue);if(e+=",'interval':"+Y.toJSON(this.interval),e+=",'resampleTolerance':"+Y.toJSON(this.resampleTolerance),e+=",'smoothMethod':"+Y.toJSON(this.smoothMethod),e+=",'smoothness':"+Y.toJSON(this.smoothness),null!=this.expectedZValues&&(e+=",'expectedZValues':"+Y.toJSON(this.expectedZValues)),null!=this.clipRegion){var t=this.clipRegion;this.clipRegion instanceof Z&&this.clipRegion.components&&(t=xe.fromGeometry(this.clipRegion)),e+=",'clipRegion':"+Y.toJSON(t)}return"{"+e+"}"}}o.SurfaceAnalystParametersSetting=qt;class zt{constructor(e){this.resolution=0,this.extractParameter=new qt,this.resultSetting=new ct,this.surfaceAnalystMethod=T.ISOLINE,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.SurfaceAnalystParameters"}destroy(){var e=this;e.resolution=null,e.extractParameter&&(e.extractParameter.destroy(),e.extractParameter=null),e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null),e.surfaceAnalystMethod=null}}o.SurfaceAnalystParameters=zt;class Ut extends zt{constructor(e){super(e),this.dataset=null,this.filterQueryParameter=new ht,this.zValueFieldName=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.DatasetSurfaceAnalystParameters"}destroy(){super.destroy();var e=this;e.dataset=null,e.filterQueryParameter&&(e.filterQueryParameter.destroy(),e.filterQueryParameter=null),e.zValueFieldName=null}static toObject(e,t){for(var n in e)if("filterQueryParameter"===n&&(t.filterQueryParameter=e.filterQueryParameter),"extractParameter"===n)e.extractParameter.clipRegion instanceof Z&&e.extractParameter.clipRegion.components&&(e.extractParameter.clipRegion=xe.fromGeometry(e.extractParameter.clipRegion)),t.extractParameter=e.extractParameter;else{if("dataset"===n)continue;if("surfaceAnalystMethod"===n)continue;t[n]=e[n]}}}o.DatasetSurfaceAnalystParameters=Ut;class Gt{constructor(e){e&&(this.clipRegion=null,this.createResultDataset=!1,this.resultDatasetName=null,this.resultDatasourceName=null,this.returnResultRegion=!0,Y.extend(this,e),this.CLASS_NAME="SuperMap.ThiessenAnalystParameters")}destroy(){var e=this;e.clipRegion&&(e.clipRegion.destroy(),e.clipRegion=null),e.createResultDataset=null,e.resultDatasetName=null,e.resultDatasourceName=null,e.returnResultRegion=null}}o.ThiessenAnalystParameters=Gt;class Vt extends Gt{constructor(e){super(e),this.filterQueryParameter=null,this.dataset=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.DatasetThiessenAnalystParameters"}destroy(){super.destroy();var e=this;e.filterQueryParameter&&(e.filterQueryParameter.destroy(),e.filterQueryParameter=null)}static toObject(e,t){for(var n in e)"clipRegion"===n?t.clipRegion=xe.fromGeometry(e.clipRegion):t[n]=e[n]}}o.DatasetThiessenAnalystParameters=Vt;class Wt{constructor(e){this.dataset=null,this.bounds=null,this.fieldName=null,this.resultGridDatasetResolution=null,this.searchRadius=null,this.targetDatasource=null,this.resultGridName=null,this.deleteExistResultDataset=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.DensityKernelAnalystParameters"}destroy(){var e=this;e.dataset=null,e.bounds=null,e.fieldName=null,e.resultGridDatasetResolution=null,e.searchRadius=null,e.targetDatasource=null,e.resultGridName=null,e.deleteExistResultDataset=null}static toObject(e,t){for(var n in e)"dataset"!==n&&(t[n]=e[n])}}o.DensityKernelAnalystParameters=Wt;class Ht extends it{constructor(e,t){super(e,t),this.mode=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.DensityAnalystService"}destroy(){super.destroy(),this.mode=null}processAsync(e){var t=this,n=new Object;e instanceof Wt&&(t.url=Y.urlPathAppend(t.url,"datasets/"+e.dataset+"/densityanalyst/kernel"),t.mode="kernel"),Wt.toObject(e,n);var r=Y.toJSON(n);t.url=Y.urlAppend(t.url,"returnContent=true"),t.request({method:"POST",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}o.DensityAnalystService=Ht;class $t{constructor(e){this.dataSourceName=null,this.dataSetName=null,this.features=null,this.editType=A.ADD,this.IDs=null,this.returnContent=!1,this.isUseBatch=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.EditFeaturesParameters"}destroy(){var e=this;e.dataSourceName=null,e.dataSetName=null,e.features=null,e.editType=null,e.IDs=null,e.returnContent=null}static toJsonParameters(e){var t,n,r,i=e.editType;if(i===A.DELETE){if(null===e.IDs)return;r={ids:e.IDs}}else if(r=[],e.features){n=e.features.length;for(var o=0;o<n;o++)t=e.features[o],t.geometry=xe.fromGeometry(t.geometry),r.push(t)}return Y.toJSON(r)}}o.EditFeaturesParameters=$t;class Kt extends Je{constructor(e,t){super(e,t),this.returnContent=!1,this.isUseBatch=!1,t&&Y.extend(this,t),this.url=Y.urlPathAppend(this.url,"features"),this.CLASS_NAME="SuperMap.EditFeaturesService"}destroy(){super.destroy();var e=this;e.returnContent=null,e.isUseBatch=null,e.fromIndex=null,e.toIndex=null}processAsync(e){if(e instanceof $t){var t=this,n="POST",r="",i=e.editType,o=null;t.returnContent=e.returnContent,t.isUseBatch=e.isUseBatch,o=$t.toJsonParameters(e),i===A.DELETE?(r=Y.toJSON(e.IDs),t.url=Y.urlAppend(t.url,"ids="+r),n="DELETE",o=r):i===A.UPDATE?n="PUT":(t.isUseBatch&&(t.url=Y.urlAppend(t.url,"isUseBatch="+t.isUseBatch),t.returnContent=!1),t.returnContent&&(t.url=Y.urlAppend(t.url,"returnContent=true"),n="POST")),t.request({method:n,data:o,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}o.EditFeaturesService=Kt;class Xt{constructor(e){this.edgeID=null,this.nodeID=null,this.weightName=null,this.isUncertainDirectionValid=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.FacilityAnalyst3DParameters"}destroy(){var e=this;e.edgeID=null,e.nodeID=null,e.weightName=null,e.isUncertainDirectionValid=null}}o.FacilityAnalyst3DParameters=Xt;class Yt extends Xt{constructor(e){super(e),this.CLASS_NAME="SuperMap.FacilityAnalystSinks3DParameters"}destroy(){super.destroy()}}o.FacilityAnalystSinks3DParameters=Yt;class Jt extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FacilityAnalystSinks3DService"}destroy(){Je.prototype.destroy.apply(this,arguments)}processAsync(e){if(e instanceof Yt){var t,n=this;n.url=Y.urlPathAppend(n.url,"sinks"),t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}o.FacilityAnalystSinks3DService=Jt;class Qt extends Xt{constructor(e){super(e),this.CLASS_NAME="SuperMap.FacilityAnalystSources3DParameters"}destroy(){super.destroy()}}o.FacilityAnalystSources3DParameters=Qt;class Zt extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FacilityAnalystSources3DService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Qt){var t,n=this;n.url=Y.urlPathAppend(n.url,"sources"),t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}o.FacilityAnalystSources3DService=Zt;class en{constructor(e){this.sourceNodeIDs=null,this.edgeID=null,this.nodeID=null,this.isUncertainDirectionValid=!1,this.queryType=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.FacilityAnalystStreamParameters"}destroy(){var e=this;e.edgeID=null,e.nodeID=null,e.weightName=null,e.isUncertainDirectionValid=null,e.type=null}}o.FacilityAnalystStreamParameters=en;class tn extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FacilityAnalystStreamService"}destroy(){super.destroy()}processAsync(e){if(e instanceof en){var t,n=this;if(0===e.queryType)n.url=Y.urlPathAppend(n.url,"upstreamcirticalfaclilities");else{if(1!==e.queryType)return;n.url=Y.urlPathAppend(n.url,"downstreamcirticalfaclilities")}t={sourceNodeIDs:e.sourceNodeIDs,isUncertainDirectionValid:e.isUncertainDirectionValid},null!==e.edgeID&&null!==e.nodeID||null===e.edgeID&&null===e.nodeID||(null!==e.edgeID?t.edgeID=e.edgeID:t.nodeID=e.nodeID,n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed}))}}}o.FacilityAnalystStreamService=tn;class nn extends Xt{constructor(e){super(e),this.CLASS_NAME="SuperMap.FacilityAnalystTracedown3DParameters"}destroy(){super.destroy()}}o.FacilityAnalystTracedown3DParameters=nn;class rn extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FacilityAnalystTracedown3DService"}destroy(){super.destroy()}processAsync(e){if(e instanceof nn){var t,n=this;n.url=Y.urlPathAppend(n.url,"tracedownresult"),t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}o.FacilityAnalystTracedown3DService=rn;class on extends Xt{constructor(e){super(e),this.CLASS_NAME="SuperMap.FacilityAnalystTraceup3DParameters"}destroy(){super.destroy()}}o.FacilityAnalystTraceup3DParameters=on;class an extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FacilityAnalystTraceup3DService"}destroy(){super.destroy()}processAsync(e){if(e instanceof on){var t,n=this;n.url=Y.urlPathAppend(n.url,"traceupresult"),t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}o.FacilityAnalystTraceup3DService=an;class sn extends Xt{constructor(e){super(e),e=e||{},this.sourceNodeIDs=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.FacilityAnalystUpstream3DParameters"}destroy(){super.destroy(),this.sourceNodeIDs=null}}o.FacilityAnalystUpstream3DParameters=sn;class ln extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FacilityAnalystUpstream3DService"}destroy(){super.destroy()}processAsync(e){if(e instanceof sn){var t,n=this;n.url=Y.urlPathAppend(n.url,"upstreamcirticalfaclilities"),t={sourceNodeIDs:e.sourceNodeIDs,edgeID:e.edgeID,nodeID:e.nodeID,isUncertainDirectionValid:e.isUncertainDirectionValid},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}o.FacilityAnalystUpstream3DService=ln;class cn extends nt{constructor(e){super(e),this.filterParam=null,this.aggType=U.FILTER,this.CLASS_NAME="SuperMap.FilterAggParameter",Y.extend(this,e)}destroy(){super.destroy();var e=this;e.filterParam&&(e.filterParam=null)}}o.FilterAggParameter=cn;class un{constructor(e){this.datasource=null,this.dataset=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.FieldParameters"}destroy(){var e=this;e.datasource=null,e.dataset=null}}o.FieldParameters=un;class dn extends un{constructor(e){super(e),this.fieldName=null,this.statisticMode=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.FieldStatisticsParameters"}destroy(){var e=this;e.fieldName=null,e.statisticMode=null}}o.FieldStatisticsParameters=dn;class fn extends Je{constructor(e,t){super(e,t),this.datasource=null,this.dataset=null,this.field=null,this.statisticMode=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.FieldStatisticService"}destroy(){super.destroy();var e=this;e.datasource=null,e.dataset=null,e.field=null,e.statisticMode=null}processAsync(){var e=this,t="datasources/"+e.datasource+"/datasets/"+e.dataset+"/fields/"+e.field+"/"+e.statisticMode;e.url=Y.urlPathAppend(e.url,t),e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}o.FieldStatisticService=fn;class hn{constructor(e){this.event=null,this.expectFacilityCount=1,this.facilities=null,this.fromEvent=!1,this.isAnalyzeById=!1,this.maxWeight=0,this.parameter=new Mt,Y.extend(this,e),this.CLASS_NAME="SuperMap.FindClosestFacilitiesParameters"}destroy(){var e=this;e.event=null,e.expectFacilityCount=null,e.facilities=null,e.fromEvent=null,e.isAnalyzeById=null,e.maxWeight=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}o.FindClosestFacilitiesParameters=hn;class pn extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindClosestFacilitiesService"}destroy(){super.destroy()}processAsync(e){if(e instanceof hn){var t,n=this;n.url=Y.urlPathAppend(n.url,"closestfacility"),t={expectFacilityCount:e.expectFacilityCount,fromEvent:e.fromEvent,maxWeight:e.maxWeight,parameter:Y.toJSON(e.parameter),event:Y.toJSON(e.event),facilities:n.getJson(e.isAnalyzeById,e.facilities)},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJson(e,t){var n="[",r=t?t.length:0;if(!1===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+='{"x":'+t[i].x+',"y":'+t[i].y+"}";else if(!0===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+=t[i];return n+="]",n}toGeoJSONResult(e){if(!e||!e.facilityPathList)return e;var t=new Se;return e.facilityPathList.map((function(e){return e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures)),e})),e}}o.FindClosestFacilitiesService=pn;class mn{constructor(e){this.expectedSupplyCenterCount=null,this.isFromCenter=!1,this.supplyCenters=null,this.turnWeightField=null,this.weightName=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.FindLocationParameters"}destroy(){var e=this;if(e.expectedSupplyCenterCount=null,e.isFromCenter=null,e.turnWeightField=null,e.weightName=null,e.supplyCenters){for(var t=0,n=e.supplyCenters,r=n.length;t<r;t++)n[t].destroy();e.supplyCenters=null}}}o.FindLocationParameters=mn;class gn extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindLocationService"}destroy(){super.destroy()}processAsync(e){if(e instanceof mn){var t,n=this;n.url=Y.urlPathAppend(n.url,"location"),t={isFromCenter:e.isFromCenter,expectedSupplyCenterCount:e.expectedSupplyCenterCount,weightName:e.weightName,turnWeightField:e.turnWeightField,returnEdgeFeature:!0,returnEdgeGeometry:!0,returnNodeFeature:!0,mapParameter:Y.toJSON(e.mapParameter),supplyCenters:n.getCentersJson(e.supplyCenters)},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getCentersJson(e){for(var t="[",n=e?e.length:0,r=0;r<n;r++)r>0&&(t+=","),t+=Y.toJSON(e[r]);return t+="]",t}toGeoJSONResult(e){if(!e)return null;var t=new Se;return e.demandResults&&(e.demandResults=t.toGeoJSON(e.demandResults)),e.supplyResults&&(e.supplyResults=t.toGeoJSON(e.supplyResults)),e}}o.FindLocationService=gn;class vn{constructor(e){this.centers=null,this.hasLeastTotalCost=!1,this.isAnalyzeById=!1,this.nodes=null,this.parameter=new Mt,Y.extend(this,e),this.CLASS_NAME="SuperMap.FindMTSPPathsParameters"}destroy(){var e=this;e.centers=null,e.hasLeastTotalCost=null,e.isAnalyzeById=null,e.nodes=null,e.maxWeight=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}o.FindMTSPPathsParameters=vn;class yn extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindMTSPPathsService"}destroy(){super.destroy()}processAsync(e){if(e instanceof vn){var t,n=this,r=n.getJson(e.isAnalyzeById,e.centers),i=n.getJson(e.isAnalyzeById,e.nodes);n.url=Y.urlPathAppend(n.url,"mtsppath"),t={centers:r,nodes:i,parameter:Y.toJSON(e.parameter),hasLeastTotalCost:e.hasLeastTotalCost},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJson(e,t){var n="[",r=t?t.length:0;if(!1===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+='{"x":'+t[i].x+',"y":'+t[i].y+"}";else if(!0===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+=t[i];return n+="]",n}toGeoJSONResult(e){if(!e||!e.pathList)return null;var t=new Se;return e.pathList.map((function(e){return e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures)),e})),e}}o.FindMTSPPathsService=yn;class bn{constructor(e){this.isAnalyzeById=!1,this.hasLeastEdgeCount=null,this.nodes=null,this.parameter=new Mt,Y.extend(this,e),this.CLASS_NAME="SuperMap.FindPathParameters"}destroy(){var e=this;e.isAnalyzeById=null,e.hasLeastEdgeCount=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}o.FindPathParameters=bn;class _n extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindPathService"}destroy(){super.destroy()}processAsync(e){if(e instanceof bn){var t,n=this;n.url=Y.urlPathAppend(n.url,"path"),t={hasLeastEdgeCount:e.hasLeastEdgeCount,parameter:Y.toJSON(e.parameter),nodes:n.getJson(e.isAnalyzeById,e.nodes)},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJson(e,t){var n="[",r=t?t.length:0;if(!1===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+='{"x":'+t[i].x+',"y":'+t[i].y+"}";else if(!0===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+=t[i];return n+="]",n}toGeoJSONResult(e){if(!e||!e.pathList||e.pathList.length<1)return null;var t=new Se;return e.pathList.forEach((function(e){e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures))})),e}}o.FindPathService=_n;class wn{constructor(e){this.isAnalyzeById=!1,this.isCenterMutuallyExclusive=!1,this.centers=null,this.isFromCenter=!1,this.weights=null,this.parameter=new Mt,Y.extend(this,e),this.CLASS_NAME="SuperMap.FindServiceAreasParameters"}destroy(){var e=this;e.isAnalyzeById=null,e.isCenterMutuallyExclusive=null,e.centers=null,e.isFromCenter=null,e.weights=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}o.FindServiceAreasParameters=wn;class xn extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindServiceAreasService"}destroy(){super.destroy()}processAsync(e){if(e instanceof wn){var t,n=this;n.url=Y.urlPathAppend(n.url,"servicearea"),t={isFromCenter:e.isFromCenter,isCenterMutuallyExclusive:e.isCenterMutuallyExclusive,parameter:Y.toJSON(e.parameter),centers:n.getJson(e.isAnalyzeById,e.centers),weights:n.getJson(!0,e.weights)},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJson(e,t){var n="[",r=t?t.length:0;if(!1===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+='{"x":'+t[i].x+',"y":'+t[i].y+"}";else if(!0===e)for(let i=0;i<r;i++)i>0&&(n+=","),n+=t[i];return n+="]",n}toGeoJSONResult(e){if(!e||!e.serviceAreaList)return e;var t=new Se;return e.serviceAreaList.map((function(e){return e.serviceRegion&&(e.serviceRegion=t.toGeoJSON(e.serviceRegion)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures)),e.routes&&(e.routes=t.toGeoJSON(e.routes)),e})),e}}o.FindServiceAreasService=xn;class Sn{constructor(e){this.endNodeAssigned=!1,this.isAnalyzeById=!1,this.nodes=null,this.parameter=new Mt,Y.extend(this,e),this.CLASS_NAME="SuperMap.FindTSPPathsParameters"}destroy(){var e=this;e.endNodeAssigned=null,e.isAnalyzeById=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}o.FindTSPPathsParameters=Sn;class Cn extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.FindTSPPathsService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Sn){var t,n=this;n.url=Y.urlPathAppend(n.url,"tsppath"),t={parameter:o.Util.toJSON(e.parameter),endNodeAssigned:e.endNodeAssigned,nodes:n.getNodesJson(e)},n.request({method:"GET",params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getNodesJson(e){var t,n,r,i,o="";if(!1===e.isAnalyzeById){for(t="[",n=0,i=e.nodes,r=i.length;n<r;n++)n>0&&(t+=","),t+='{"x":'+i[n].x+',"y":'+i[n].y+"}";t+="]",o+=t}else if(!0===e.isAnalyzeById){let t="[",n=e.nodes,r=n.length;for(let e=0;e<r;e++)e>0&&(t+=","),t+=n[e];t+="]",o+=t}return o}toGeoJSONResult(e){if(!e||!e.tspPathList)return null;var t=new Se;return e.tspPathList.forEach((function(e){e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures))})),e}}o.FindTSPPathsService=Cn;class En{constructor(e){this.routeTable=null,this.routeIDField=null,this.attributeFilter=null,this.eventTable=null,this.eventRouteIDField=null,this.measureField=null,this.measureStartField=null,this.measureEndField=null,this.measureOffsetField=null,this.errorInfoField=null,this.retainedFields=null,this.dataReturnOption=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.GenerateSpatialDataParameters"}destroy(){var e=this;e.routeTable&&(e.routeTable=null),e.routeIDField=null,e.attributeFilter=null,e.eventTable=null,e.eventRouteIDField=null,e.measureField=null,e.measureStartField=null,e.measureEndField=null,e.measureOffsetField=null,e.errorInfoField=null,e.dataReturnOption&&(e.dataReturnOption.destroy(),e.dataReturnOption=null)}}o.GenerateSpatialDataParameters=En;class kn extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GenerateSpatialDataService"}destroy(){super.destroy()}processAsync(e){if(e instanceof En){var t,n=this;t=n.getJsonParameters(e),n.request({method:"POST",data:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJsonParameters(e){var t="",n="datasets/"+e.routeTable+"/linearreferencing/generatespatialdata",r=this;return r.url=Y.urlPathAppend(r.url,n),r.url=Y.urlAppend(r.url,"returnContent=true"),t=Y.toJSON(e),t}}o.GenerateSpatialDataService=kn;class On extends tt{constructor(e){super(e),this.bounds=null,this.queryType=G.GEO_BOUNDING_BOX,this.CLASS_NAME="SuperMap.GeoBoundingBoxQueryBuilderParameter",Y.extend(this,e)}destroy(){super.destroy(),this.bounds=null,this.queryType=null}}o.GeoBoundingBoxQueryBuilderParameter=On;class Tn extends nt{constructor(e){super(e),this.precision=5,this.aggType=U.GEOHASH_GRID,Y.extend(this,e),this.CLASS_NAME="SuperMap.GeoHashGridAggParameter"}destroy(){super.destroy(),this.aggType=null}static toJsonParameters(e){var t={aggName:e.aggName,aggFieldName:e.aggFieldName,aggType:e.aggType,precision:e.precision};return e.subAgg&&(t.subAgg=e.subAgg),Y.toJson(t)}}o.GeoHashGridAggParameter=Tn;class In extends Ft{constructor(e){super(e),e&&e.operateGeometry&&(this.operateGeometry=e.operateGeometry),e&&e.sourceGeometry&&(this.sourceGeometry=e.sourceGeometry),e&&e.operateGeometries&&(this.operateGeometries=e.operateGeometries),e&&e.sourceGeometries&&(this.sourceGeometries=e.sourceGeometries),e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.GeometryOverlayAnalystParameters"}destroy(){super.destroy();var e=this;e.sourceGeometry&&(e.sourceGeometry.destroy(),e.sourceGeometry=null),e.sourceGeometries&&(e.sourceGeometries.destroy(),e.sourceGeometries=null),e.sourceGeometry&&(e.sourceGeometry.destroy(),e.sourceGeometry=null),e.operateGeometries&&(e.operateGeometries.destroy(),e.operateGeometries=null)}static toObject(e,t){for(var n in e)if("sourceGeometry"===n)t.sourceGeometry=xe.fromGeometry(e.sourceGeometry);else if("sourceGeometries"===n){for(var r=[],i=0;i<e.sourceGeometries.length;i++)r.push(xe.fromGeometry(e.sourceGeometries[i]));t.sourceGeometries=r}else if("operateGeometry"===n)t.operateGeometry=xe.fromGeometry(e.operateGeometry);else if("operateGeometries"===n){for(var o=[],a=0;a<e.operateGeometries.length;a++)o.push(xe.fromGeometry(e.operateGeometries[a]));t.operateGeometries=o}else t[n]=e[n]}}o.GeometryOverlayAnalystParameters=In;class An extends zt{constructor(e){super(e),this.points=null,this.zValues=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.GeometrySurfaceAnalystParameters"}destroy(){super.destroy();var e=this;if(e.points){for(var t=0,n=e.points,r=n.length;t<r;t++)n[t].destroy();e.points=null}e.zValues=null}}o.GeometrySurfaceAnalystParameters=An;class Rn extends Gt{constructor(e){super(e),this.points=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.GeometryThiessenAnalystParameters"}destroy(){super.destroy();var e=this;if(e.points){for(var t=e.points.length-1;t>=0;t--)e.points[t].destroy();e.points=null}}static toObject(e,t){for(var n in e)"clipRegion"===n?t.clipRegion=xe.fromGeometry(e.clipRegion):t[n]=e[n]}}o.GeometryThiessenAnalystParameters=Rn;class Pn extends Je{constructor(e,t){t=t||{},t.EVENT_TYPES=["processCompleted","processFailed","processRunning"],super(e,t),this.CLASS_NAME="SuperMap.GeoprocessingService",this.headers={},this.crossOrigin=!0}getTools(){this._get(this.url+"/list")}getTool(e){this._get(`${this.url}/${e}`)}execute(e,t,n){t=t||null,n=n||null;const r={parameter:t,environment:n};this._get(`${this.url}/${e}/execute`,r)}submitJob(e,t,n){t=t||null,n=n||null;const r={parameter:t,environments:n};this.request({url:`${this.url}/${e}/jobs`,headers:{"Content-type":"application/json"},method:"POST",data:JSON.stringify(r),scope:this,success:this.serviceProcessCompleted,failure:this.serviceProcessFailed})}waitForJobCompletion(e,t,n){const r=this,i=setInterval((function(){const o=function(e){const t=e.state.runState;switch(n.statusCallback&&n.statusCallback(t),t){case"FINISHED":clearInterval(i),r.events.triggerEvent("processCompleted",{result:e});break;case"FAILED":clearInterval(i),r.events.triggerEvent("processFailed",{result:e});break;case"CANCELED":clearInterval(i),r.events.triggerEvent("processFailed",{result:e});break}};r._get(`${r.url}/${t}/jobs/${e}`,null,o)}),n.interval)}getJobInfo(e,t){this._get(`${this.url}/${e}/jobs/${t}`)}cancelJob(e,t){this._get(`${this.url}/${e}/jobs/${t}/cancel`)}getJobs(e){let t=this.url+"/jobs";e&&(t=`${this.url}/${e}/jobs`),this._get(t)}getResults(e,t,n){let r=`${this.url}/${e}/jobs/${t}/results`;n&&(r=`${r}/${n}`),this._get(r)}_get(e,t,n,r){this.request({url:e,method:"GET",params:t,headers:{"Content-type":"application/json"},scope:this,success:n||this.serviceProcessCompleted,failure:r||this.serviceProcessFailed})}}o.GeoprocessingService=Pn;class Mn{constructor(e){this.dataset=null,this.sourceFilter=null,this.referenceFilter=null,this.spatialRelationType=null,this.isBorderInside=null,this.returnFeature=null,this.returnGeoRelatedOnly=null,this.startRecord=0,this.expectCount=500,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.GeoRelationAnalystParameters"}destroy(){var e=this;e.sourceFilter&&e.sourceFilter.destroy(),e.sourceFilter=null,e.referenceFilter&&e.referenceFilter.destroy(),e.referenceFilter=null,e.dataset=null,e.spatialRelationType=null,e.isBorderInside=null,e.returnFeature=null,e.returnGeoRelatedOnly=null,e.startRecord=null,e.expectCount=null}}o.GeoRelationAnalystParameters=Mn;class Nn extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GeoRelationAnalystService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Mn){var t=this;t.url=Y.urlPathAppend(t.url,"datasets/"+e.dataset+"/georelation");var n=o.Util.toJSON(e);t.url=Y.urlAppend(t.url,"returnContent=true"),t.request({method:"POST",data:n,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}o.GeoRelationAnalystService=Nn;class Ln{constructor(e){this.datasetNames=null,this.targetEpsgCode=null,this.targetPrj=null,this.returnContent=!0,this.fromIndex=0,this.toIndex=19,this.returnCountOnly=!1,this.maxFeatures=null,this.aggregations=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesParametersBase"}destroy(){var e=this;e.datasetNames=null,e.returnContent=null,e.fromIndex=null,e.toIndex=null,e.maxFeatures=null,e.targetEpsgCode=null,e.targetPrj=null,e.aggregation&&(e.aggregation=null)}}o.GetFeaturesParametersBase=Ln;class Dn extends Ln{constructor(e){super(e),this.getFeatureMode=Dn.getFeatureMode.BOUNDS,this.bounds=null,this.fields=null,this.attributeFilter=null,this.spatialQueryMode=u.CONTAIN,Y.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByBoundsParameters"}destroy(){super.destroy();var e=this;if(e.bounds&&(e.bounds.destroy(),e.bounds=null),e.fields){while(e.fields.length>0)e.fields.pop();e.fields=null}e.attributeFilter=null,e.spatialQueryMode=null,e.getFeatureMode=null}static toJsonParameters(e){var t,n,r;return n={leftBottom:{x:e.bounds.left,y:e.bounds.bottom},rightTop:{x:e.bounds.right,y:e.bounds.top}},r={datasetNames:e.datasetNames,getFeatureMode:Dn.getFeatureMode.BOUNDS,bounds:n,spatialQueryMode:e.spatialQueryMode},e.fields&&(t=new ht,t.name=e.datasetNames,t.fields=e.fields,r.queryParameter=t),e.attributeFilter&&(r.attributeFilter=e.attributeFilter,r.getFeatureMode=Dn.getFeatureMode.BOUNDS_ATTRIBUTEFILTER),e.maxFeatures&&!isNaN(e.maxFeatures)&&(r.maxFeatures=e.maxFeatures),e.targetEpsgCode&&(r.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(r.targetPrj=e.targetPrj),Y.toJSON(r)}}Dn.getFeatureMode={BOUNDS:"BOUNDS",BOUNDS_ATTRIBUTEFILTER:"BOUNDS_ATTRIBUTEFILTER"},o.GetFeaturesByBoundsParameters=Dn;class jn extends Je{constructor(e,t){super(e,t),t=t||{},this.returnContent=!0,this.fromIndex=0,this.toIndex=19,this.maxFeatures=null,this.format=a.GEOJSON,Y.extend(this,t),this.url=Y.urlPathAppend(this.url,"featureResults"),this.CLASS_NAME="SuperMap.GetFeaturesServiceBase"}destroy(){super.destroy();var e=this;e.returnContent=null,e.fromIndex=null,e.toIndex=null,e.maxFeatures=null,e.format=null}processAsync(e){if(e){var t=this,n=null,r=!0;t.returnContent=e.returnContent,t.fromIndex=e.fromIndex,t.toIndex=e.toIndex,t.maxFeatures=e.maxFeatures,t.returnContent&&(t.url=Y.urlAppend(t.url,"returnContent="+t.returnContent),r=!1);var i=null!=t.fromIndex&&null!=t.toIndex&&!isNaN(t.fromIndex)&&!isNaN(t.toIndex);i&&t.fromIndex>=0&&t.toIndex>=0&&!r&&(t.url=Y.urlAppend(t.url,`fromIndex=${t.fromIndex}&toIndex=${t.toIndex}`)),e.returnCountOnly&&(t.url=Y.urlAppend(t.url,"&returnCountOnly="+e.returnContent)),n=t.getJsonParameters(e),t.request({method:"POST",data:n,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}serviceProcessCompleted(e){var t=this;if(e=Y.transformResult(e),t.format===a.GEOJSON&&e.features){var n=new Se;e.features=n.toGeoJSON(e.features)}t.events.triggerEvent("processCompleted",{result:e})}}o.GetFeaturesServiceBase=jn;class Fn extends jn{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByBoundsService"}destroy(){super.destroy()}getJsonParameters(e){return Dn.toJsonParameters(e)}}o.GetFeaturesByBoundsService=Fn;class Bn extends Ln{constructor(e){super(e),this.bufferDistance=null,this.attributeFilter=null,this.geometry=null,this.fields=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByBufferParameters"}destroy(){super.destroy();var e=this;if(e.bufferDistance=null,e.attributeFilter=null,e.fields){while(e.fields.length>0)e.fields.pop();e.fields=null}e.geometry&&(e.geometry.destroy(),e.geometry=null)}static toJsonParameters(e){var t,n,r;return r=xe.fromGeometry(e.geometry),n={datasetNames:e.datasetNames,getFeatureMode:"BUFFER",bufferDistance:e.bufferDistance,geometry:r},e.fields&&(t=new ht,t.name=e.datasetNames,t.fields=e.fields,n.queryParameter=t),e.attributeFilter&&(n.attributeFilter=e.attributeFilter,n.getFeatureMode="BUFFER_ATTRIBUTEFILTER"),e.maxFeatures&&!isNaN(e.maxFeatures)&&(n.maxFeatures=e.maxFeatures),e.targetEpsgCode&&(n.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(n.targetPrj=e.targetPrj),Y.toJSON(n)}}o.GetFeaturesByBufferParameters=Bn;class qn extends jn{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByBufferService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof Bn)return o.GetFeaturesByBufferParameters.toJsonParameters(e)}}o.GetFeaturesByBufferService=qn;class zn extends Ln{constructor(e){super(e),this.getFeatureMode="SPATIAL",this.geometry=null,this.fields=null,this.attributeFilter=null,this.spatialQueryMode=u.CONTAIN,Y.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByGeometryParameters"}destroy(){super.destroy();var e=this;if(e.geometry&&(e.geometry.destroy(),e.geometry=null),e.fields){while(e.fields.length>0)e.fields.pop();e.fields=null}e.attributeFilter=null,e.spatialQueryMode=null,e.getFeatureMode=null}static toJsonParameters(e){var t,n,r;return n=xe.fromGeometry(e.geometry),r={datasetNames:e.datasetNames,getFeatureMode:"SPATIAL",geometry:n,spatialQueryMode:e.spatialQueryMode},e.fields&&(t=new ht,t.name=e.datasetNames,t.fields=e.fields,r.queryParameter=t),e.attributeFilter&&(r.attributeFilter=e.attributeFilter,r.getFeatureMode="SPATIAL_ATTRIBUTEFILTER"),e.maxFeatures&&!isNaN(e.maxFeatures)&&(r.maxFeatures=e.maxFeatures),e.targetEpsgCode&&(r.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(r.targetPrj=e.targetPrj),Y.toJSON(r)}}o.GetFeaturesByGeometryParameters=zn;class Un extends jn{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByGeometryService"}destroy(){super.destroy()}getJsonParameters(e){return zn.toJsonParameters(e)}}o.GetFeaturesByGeometryService=Un;class Gn extends Ln{constructor(e){super(e),this.getFeatureMode="ID",this.IDs=null,this.fields=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesByIDsParameters"}destroy(){super.destroy();var e=this;if(e.IDs=null,e.getFeatureMode=null,e.fields){while(e.fields.length>0)e.fields.pop();e.fields=null}}static toJsonParameters(e){var t,n;return t={datasetNames:e.datasetNames,getFeatureMode:"ID",ids:e.IDs},e.fields&&(n=new ht,n.name=e.datasetNames,n.fields=e.fields,t.queryParameter=n),e.targetEpsgCode&&(t.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(t.targetPrj=e.targetPrj),Y.toJSON(t)}}o.GetFeaturesByIDsParameters=Gn;class Vn extends jn{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesByIDsService"}destroy(){super.destroy()}getJsonParameters(e){return Gn.toJsonParameters(e)}}o.GetFeaturesByIDsService=Vn;class Wn extends Ln{constructor(e){super(e),this.getFeatureMode="SQL",this.queryParameter=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.GetFeaturesBySQLParameters"}destroy(){super.destroy();var e=this;e.getFeatureMode=null,e.queryParameter&&(e.queryParameter.destroy(),e.queryParameter=null)}static toJsonParameters(e){var t={datasetNames:e.datasetNames,getFeatureMode:"SQL",queryParameter:e.queryParameter};return e.maxFeatures&&!isNaN(e.maxFeatures)&&(t.maxFeatures=e.maxFeatures),e.aggregations&&(t.aggregations=e.aggregations),e.targetEpsgCode&&(t.targetEpsgCode=e.targetEpsgCode),!e.targetEpsgCode&&e.targetPrj&&(t.targetPrj=e.targetPrj),Y.toJSON(t)}}o.GetFeaturesBySQLParameters=Wn;class Hn extends jn{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.GetFeaturesBySQLService"}destroy(){super.destroy()}getJsonParameters(e){return Wn.toJsonParameters(e)}}o.GetFeaturesBySQLService=Hn;class $n extends Je{constructor(e,t){super(e,t),this.datasource=null,this.dataset=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.GetFieldsService"}destroy(){super.destroy();var e=this;e.datasource=null,e.dataset=null}processAsync(){var e=this;e.url=Y.urlPathAppend(e.url,`datasources/${e.datasource}/datasets/${e.dataset}/fields`),e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}o.GetFieldsService=$n;class Kn{constructor(e){this.datasetName=null,this.dataSourceName=null,this.X=null,this.Y=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.GetGridCellInfosParameters"}destroy(){var e=this;e.datasetName=null,e.dataSourceName=null,e.X=null,e.Y=null}}o.GetGridCellInfosParameters=Kn;class Xn extends Je{constructor(e,t){super(e,t),this.datasetName=null,this.dataSourceName=null,this.datasetType=null,this.X=null,this.Y=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.GetGridCellInfosService"}destroy(){super.destroy();var e=this;e.X=null,e.Y=null,e.datasetName=null,e.dataSourceName=null,e.datasetType=null}processAsync(e){if(e instanceof Kn){Y.extend(this,e);var t=this;t.url=Y.urlPathAppend(t.url,`datasources/${t.dataSourceName}/datasets/${t.datasetName}`),t.queryRequest(t.getDatasetInfoCompleted,t.getDatasetInfoFailed)}}queryRequest(e,t){var n=this;n.request({method:"GET",data:null,scope:n,success:e,failure:t})}getDatasetInfoCompleted(e){var t=this;e=Y.transformResult(e),t.datasetType=e.datasetInfo.type,t.queryGridInfos()}queryGridInfos(){var e=this;e.url=Y.urlPathAppend(e.url,"GRID"==e.datasetType?"gridValue":"imageValue"),null!=e.X&&null!=e.Y&&(e.url=Y.urlAppend(e.url,`x=${e.X}&y=${e.Y}`)),e.queryRequest(e.serviceProcessCompleted,e.serviceProcessFailed)}getDatasetInfoFailed(e){var t=this;t.serviceProcessFailed(e)}}o.GetGridCellInfosService=Xn;class Yn{constructor(e,t){this.srcData=e,this.targetData=t,this.CLASS_NAME="SuperMap.ThemeMemoryData"}destroy(){var e=this;e.srcData=null,e.targetData=null}toJSON(){if(this.srcData&&this.targetData){for(var e="",t=Math.min(this.srcData.length,this.targetData.length),n=0;n<t;n++)e+="'"+this.srcData[n]+"':'"+this.targetData[n]+"',";return n>0&&(e=e.substring(0,e.length-1)),"{"+e+"}"}return null}}o.ThemeMemoryData=Yn;class Jn{constructor(e,t){if(!e)return this;this.memoryData=null,this.type=e,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.Theme"}destroy(){var e=this;e.memoryData&&(e.memoryData.destroy(),e.memoryData=null),e.type=null}toServerJSONObject(){}}o.Theme=Jn;class Qn{constructor(e){this.align=_.BASELINECENTER,this.backColor=new ye(255,255,255),this.foreColor=new ye(0,0,0),this.backOpaque=!1,this.sizeFixed=!0,this.fontHeight=6,this.fontWidth=0,this.fontWeight=400,this.fontName="Times New Roman",this.bold=!1,this.italic=!1,this.italicAngle=0,this.shadow=!1,this.strikeout=!1,this.outline=!1,this.opaqueRate=0,this.underline=!1,this.rotation=0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ServerTextStyle"}destroy(){var e=this;e.align=null,e.backColor&&(e.backColor.destroy(),e.backColor=null),e.foreColor&&(e.foreColor.destroy(),e.foreColor=null),e.backOpaque=null,e.sizeFixed=null,e.fontHeight=null,e.fontWidth=null,e.fontWeight=null,e.fontName=null,e.bold=null,e.italic=null,e.italicAngle=null,e.shadow=null,e.strikeout=null,e.outline=null,e.opaqueRate=null,e.underline=null,e.rotation=null}static fromObj(e){var t=new Qn(e);return Y.copy(t,e),t.backColor=ye.fromJson(e.backColor),t.foreColor=ye.fromJson(e.foreColor),t}}o.ServerTextStyle=Qn;class Zn{constructor(e){this.caption=null,this.end=0,this.start=0,this.visible=!0,this.style=new Qn,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeLabelItem"}destroy(){var e=this;e.caption=null,e.end=null,e.start=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}static fromObj(e){if(e){var t=new Zn;return Y.copy(t,e),t}}}o.ThemeLabelItem=Zn;class er{constructor(e){this.caption=null,this.style=new be,this.unique=null,this.visible=!0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeUniqueItem"}destroy(){var e=this;e.caption=null,e.unique=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e.style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}static fromObj(e){var t=new er;return Y.copy(t,e),t.style=be.fromJson(e.style),t}}o.ThemeUniqueItem=er;class tr{constructor(e){this.flowEnabled=!1,this.leaderLineDisplayed=!1,this.leaderLineStyle=new be,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeFlow"}destroy(){var e=this;e.flowEnabled=null,e.leaderLineDisplayed=null,e.leaderLineStyle&&(e.leaderLineStyle.destroy(),e.leaderLineStyle=null)}static fromObj(e){if(e){var t=new tr;return Y.copy(t,e),t.leaderLineStyle=be.fromJson(e.leaderLineStyle),t}}}o.ThemeFlow=tr;class nr{constructor(e){this.offsetFixed=!1,this.offsetX="0.0",this.offsetY="0.0",e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeOffset"}destroy(){var e=this;e.offsetFixed=null,e.offsetX=null,e.offsetY=null}static fromObj(e){if(e){var t=new nr;return Y.copy(t,e),t}}}o.ThemeOffset=nr;class rr{constructor(e){this.defaultStyle=null,this.separator=null,this.separatorEnabled=!1,this.splitIndexes=null,this.styles=new Qn,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.LabelMixedTextStyle"}destroy(){var e=this;if(e.defaultStyle&&(e.defaultStyle.destroy(),e.defaultStyle=null),e.separator=null,e.separatorEnabled=null,e.splitIndexes&&(e.splitIndexes=null),e.styles){for(var t=0,n=e.styles,r=n.length;t<r;t++)n[t].destroy();e.styles=null}}static fromObj(e){if(e){var t=new rr,n=e.styles;if(Y.copy(t,e),t.defaultStyle=new Qn(e.defaultStyle),n){t.styles=[];for(var r=0,i=n.length;r<i;r++)t.styles.push(new Qn(n[r]))}return t}}}o.LabelMixedTextStyle=rr;class ir{constructor(e){this.maxTextHeight=0,this.maxTextWidth=0,this.minTextHeight=0,this.minTextWidth=0,this.uniformStyle=new Qn,this.uniformMixedStyle=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeLabelText"}destroy(){var e=this;e.maxTextHeight=null,e.maxTextWidth=null,e.minTextHeight=null,e.minTextWidth=null,e.uniformStyle&&(e.uniformStyle.destroy(),e.uniformStyle=null),e.uniformMixedStyle&&(e.uniformMixedStyle.destroy(),e.uniformMixedStyle=null)}static fromObj(e){if(e){var t=new ir;return Y.copy(t,e),t.uniformStyle=Qn.fromObj(e.uniformStyle),t.uniformMixedStyle=rr.fromObj(e.uniformMixedStyle),t}}}o.ThemeLabelText=ir;class or{constructor(e){this.isAlongLine=!0,this.alongLineDirection=w.LB_TO_RT,this.angleFixed=!1,this.repeatedLabelAvoided=!1,this.repeatIntervalFixed=!1,this.labelRepeatInterval=0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeLabelAlongLine"}destroy(){var e=this;e.isAlongLine=null,e.alongLineDirection=null,e.angleFixed=null,e.repeatedLabelAvoided=null,e.repeatIntervalFixed=null,e.labelRepeatInterval=null}static fromObj(e){if(e){var t=new or;return Y.copy(t,e),t}}}o.ThemeLabelAlongLine=or;class ar{constructor(e){this.labelBackShape=x.NONE,this.backStyle=new be,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeLabelBackground"}destroy(){var e=this;e.labelBackShape=null,e.backStyle&&(e.backStyle.destroy(),e.backStyle=null)}static fromObj(e){if(e){var t=new ar;return t.labelBackShape=e.labelBackShape,t.backStyle=be.fromJson(e.backStyle),t}}}o.ThemeLabelBackground=ar;class sr extends Jn{constructor(e){super("LABEL",e),this.alongLine=new or,this.background=new ar,this.flow=new tr,this.items=null,this.uniqueItems=null,this.labelExpression=null,this.labelOverLengthMode=S.NONE,this.matrixCells=null,this.maxLabelLength=256,this.numericPrecision=0,this.offset=new nr,this.overlapAvoided=!0,this.rangeExpression=null,this.uniqueExpression=null,this.smallGeometryLabeled=!1,this.text=new ir,this.textSpace=0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeLabel"}destroy(){super.destroy();var e=this;if(e.alongLine=null,e.background&&(e.background.destroy(),e.background=null),e.flow=null,e.items){for(var t=0,n=e.items,r=n.length;t<r;t++)n[t].destroy();e.items=null}if(e.uniqueItems){for(var i=0,o=e.uniqueItems,a=o.length;i<a;i++)o[i].destory();e.uniqueItems=null}e.labelExpression=null,e.labelOverLengthMode=null,e.matrixCells=null,e.maxLabelLength=null,e.numericPrecision=null,e.overlapAvoided=null,e.rangeExpression=null,e.uniqueExpression=null,e.offset&&(e.offset.destroy(),e.offset=null),e.overlapAvoided=null,e.smallGeometryLabeled=null,e.text&&(e.text.destroy(),e.text=null),e.textSpace=null}toJSON(){return Y.toJSON(this.toServerJSONObject())}toServerJSONObject(){var e={};return e.type=this.type,e.memoryData=this.memoryData,this.alongLine&&(e.alongLine=this.alongLine.isAlongLine,e.alongLineDirection=this.alongLine.alongLineDirection,e.angleFixed=this.alongLine.angleFixed,e.isLabelRepeated=this.alongLine.isLabelRepeated,e.labelRepeatInterval=this.alongLine.labelRepeatInterval,e.repeatedLabelAvoided=this.alongLine.repeatedLabelAvoided,e.repeatIntervalFixed=this.alongLine.repeatIntervalFixed),this.offset&&(e.offsetFixed=this.offset.offsetFixed,e.offsetX=this.offset.offsetX,e.offsetY=this.offset.offsetY),this.flow&&(e.flowEnabled=this.flow.flowEnabled,e.leaderLineDisplayed=this.flow.leaderLineDisplayed,e.leaderLineStyle=this.flow.leaderLineStyle),this.text&&(e.maxTextHeight=this.text.maxTextHeight,e.maxTextWidth=this.text.maxTextWidth,e.minTextHeight=this.text.minTextHeight,e.minTextWidth=this.text.minTextWidth,e.uniformStyle=this.text.uniformStyle,e.uniformMixedStyle=this.text.uniformMixedStyle),this.background&&(e.labelBackShape=this.background.labelBackShape,e.backStyle=this.background.backStyle),e.labelOverLengthMode=this.labelOverLengthMode,e.maxLabelLength=this.maxLabelLength,e.smallGeometryLabeled=this.smallGeometryLabeled,e.rangeExpression=this.rangeExpression,e.uniqueExpression=this.uniqueExpression,e.numericPrecision=this.numericPrecision,e.items=this.items,e.uniqueItems=this.uniqueItems,e.labelExpression=this.labelExpression,e.overlapAvoided=this.overlapAvoided,e.matrixCells=this.matrixCells,e.textSpace=this.textSpace,e}static fromObj(e){if(e){var t=new sr,n=e.items,r=e.uniqueItems,i=e.matrixCells;if(e.matrixCells=null,Y.copy(t,e),t.alongLine=or.fromObj(e),t.background=ar.fromObj(e),t.flow=new tr({flowEnabled:e.flowEnabled,leaderLineDisplayed:e.leaderLineDisplayed,leaderLineStyle:e.leaderLineStyle}),n){t.items=[];for(var o=0,a=n.length;o<a;o++)t.items.push(Zn.fromObj(n[o]))}if(r){t.uniqueItems=[];for(let e=0,n=r.length;e<n;e++)t.uniqueItems.push(er.fromObj(r[e]))}if(i){t.matrixCells=[];for(let e=0,t=i.length;e<t;e++);}return t.offset=nr.fromObj(e),t.text=ir.fromObj(e),t}}}o.ThemeLabel=sr;class lr extends Jn{constructor(e){super("UNIQUE",e),this.defaultStyle=new be,this.items=null,this.uniqueExpression=null,this.colorGradientType=b.YELLOW_RED,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeUnique"}destroy(){super.destroy();var e=this;if(e.uniqueExpression=null,e.colorGradientType=null,e.items){if(e.items.length>0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.defaultStyle&&(e.defaultStyle.destroy(),e.defaultStyle=null)}toServerJSONObject(){var e={};if(e=Y.copyAttributes(e,this),e.defaultStyle&&e.defaultStyle.toServerJSONObject&&(e.defaultStyle=e.defaultStyle.toServerJSONObject()),e.items){for(var t=[],n=e.items.length,r=0;r<n;r++)t.push(e.items[r].toServerJSONObject());e.items=t}return e}static fromObj(e){var t=new lr,n=e.items,r=n?n.length:0;Y.extend(t,e),t.items=[],t.defaultStyle=be.fromJson(e.defaultStyle);for(var i=0;i<r;i++)t.items.push(er.fromObj(n[i]));return t}}o.ThemeUnique=lr;class cr{constructor(e){this.axesColor=new ye(0,0,0),this.axesDisplayed=!1,this.axesGridDisplayed=!1,this.axesTextDisplayed=!1,this.axesTextStyle=new Qn,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGraphAxes"}destroy(){var e=this;e.axesColor&&(e.axesColor.destroy(),e.axesColor=null),e.axesDisplayed=null,e.axesGridDisplayed=null,e.axesTextDisplayed=null,e.axesTextStyle&&(e.axesTextStyle.destroy(),e.axesTextStyle=null)}static fromObj(e){if(e){var t=new cr;return Y.copy(t,e),t.axesColor=ye.fromJson(e.axesColor),t.axesTextStyle=Qn.fromObj(e.axesTextStyle),t}}}o.ThemeGraphAxes=cr;class ur{constructor(e){this.maxGraphSize=0,this.minGraphSize=0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGraphSize"}destroy(){var e=this;e.maxGraphSize=null,e.minGraphSize=null}static fromObj(e){var t=new ur;return Y.copy(t,e),t}}o.ThemeGraphSize=ur;class dr{constructor(e){this.graphTextDisplayed=!1,this.graphTextFormat=p.CAPTION,this.graphTextStyle=new Qn,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGraphText"}destroy(){var e=this;e.graphTextDisplayed=null,e.graphTextFormat=null,e.graphTextStyle&&(e.graphTextStyle.destroy(),e.graphTextStyle=null)}static fromObj(e){var t=new dr;return Y.copy(t,e),t.graphTextStyle=Qn.fromObj(e.graphTextStyle),t}}o.ThemeGraphText=dr;class fr{constructor(e){this.caption=null,this.graphExpression=null,this.memoryDoubleValues=null,this.uniformStyle=new be,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGraphItem"}destroy(){var e=this;e.caption=null,e.graphExpression=null,e.memoryDoubleValues=null,e.uniformStyle=null}static fromObj(e){if(e){var t=new fr;return Y.copy(t,e),t.uniformStyle=be.fromJson(e.uniformStyle),t}}}o.ThemeGraphItem=fr;class hr extends Jn{constructor(e){super("GRAPH",e),this.barWidth=0,this.flow=new tr,this.graduatedMode=v.CONSTANT,this.graphAxes=new cr,this.graphSize=new ur,this.graphSizeFixed=!1,this.graphText=new dr,this.graphType=m.AREA,this.graphAxesTextDisplayMode=g.NONE,this.items=null,this.memoryKeys=null,this.negativeDisplayed=!1,this.offset=new nr,this.overlapAvoided=!0,this.roseAngle=0,this.startAngle=0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGraph"}destroy(){super.destroy();var e=this;if(e.barWidth=null,e.flow&&(e.flow.destroy(),e.flow=null),e.graduatedMode=null,e.graphAxes&&(e.graphAxes.destroy(),e.graphAxes=null),e.graphSize&&(e.graphSize.destroy(),e.graphSize=null),e.graphSizeFixed=null,e.graphText&&(e.graphText.destroy(),e.graphText=null),e.graphType=null,e.items){for(var t=0,n=e.items,r=n.length;t<r;t++)n[t].destroy();e.items=null}e.memoryKeys=null,e.negativeDisplayed=null,e.offset&&(e.offset.destroy(),e.offset=null),e.overlapAvoided=null,e.roseAngle=null,e.startAngle=null,e.graphAxesTextDisplayMode=null}toJSON(){return Y.toJSON(this.toServerJSONObject())}toServerJSONObject(){var e={};return e.type=this.type,this.graphText&&(e.graphTextDisplayed=this.graphText.graphTextDisplayed,e.graphTextFormat=this.graphText.graphTextFormat,e.graphTextStyle=this.graphText.graphTextStyle),this.flow&&(e.flowEnabled=this.flow.flowEnabled,e.leaderLineDisplayed=this.flow.leaderLineDisplayed,e.leaderLineStyle=this.flow.leaderLineStyle),this.graphAxes&&(e.axesColor=this.graphAxes.axesColor,e.axesDisplayed=this.graphAxes.axesDisplayed,e.axesGridDisplayed=this.graphAxes.axesGridDisplayed,e.axesTextDisplayed=this.graphAxes.axesTextDisplayed,e.axesTextStyle=this.graphAxes.axesTextStyle),this.graphSize&&(e.maxGraphSize=this.graphSize.maxGraphSize,e.minGraphSize=this.graphSize.minGraphSize),this.offset&&(e.offsetFixed=this.offset.offsetFixed,e.offsetX=this.offset.offsetX,e.offsetY=this.offset.offsetY),e.barWidth=this.barWidth,e.graduatedMode=this.graduatedMode,e.graphSizeFixed=this.graphSizeFixed,e.graphType=this.graphType,e.graphAxesTextDisplayMode=this.graphAxesTextDisplayMode,e.items=this.items,e.memoryKeys=this.memoryKeys,e.negativeDisplayed=this.negativeDisplayed,e.overlapAvoided=this.overlapAvoided,e.roseAngle=this.roseAngle,e.startAngle=this.startAngle,e}static fromObj(e){var t=new hr,n=e.items,r=n?n.length:0;Y.copy(t,e),t.items=[],t.flow=tr.fromObj(e),t.graphAxes=cr.fromObj(e),t.graphSize=ur.fromObj(e),t.graphText=dr.fromObj(e),t.offset=nr.fromObj(e);for(var i=0;i<r;i++)t.items.push(fr.fromObj(n[i]));return t}}o.ThemeGraph=hr;class pr extends Jn{constructor(e){super("DOTDENSITY",e),this.dotExpression=null,this.style=new be,this.value=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeDotDensity"}destroy(){var e=this;e.dotExpression=null,e.value=null,e.style&&(e.style.destroy(),e.style=null)}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e.style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}static fromObj(e){if(e){var t=new pr;return Y.copy(t,e),t.style=be.fromJson(e.style),t}}}o.ThemeDotDensity=pr;class mr{constructor(e){this.negativeDisplayed=!1,this.negativeStyle=new be,this.positiveStyle=new be,this.zeroDisplayed=!1,this.zeroStyle=new be,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGraduatedSymbolStyle"}destroy(){var e=this;e.negativeDisplayed=null,e.negativeStyle=null,e.positiveStyle=null,e.zeroDisplayed=null,e.zeroStyle=null}static fromObj(e){if(e){var t=new mr;return Y.copy(t,e),t.negativeStyle=be.fromJson(e.negativeStyle),t.positiveStyle=be.fromJson(e.positiveStyle),t.zeroStyle=be.fromJson(e.zeroStyle),t}}}o.ThemeGraduatedSymbolStyle=mr;class gr extends Jn{constructor(e){super("GRADUATEDSYMBOL",e),this.baseValue=0,this.expression=null,this.flow=new tr,this.graduatedMode=o.GraduatedMode.CONSTAN,this.offset=new nr,this.style=new mr,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGraduatedSymbol"}destroy(){super.destroy();var e=this;e.expression=null,e.flow&&(e.flow.destroy(),e.flow=null),e.graduatedMode=v.CONSTANT,e.offset&&(e.offset.destroy(),e.offset=null),e.style&&(e.style.destroy(),e.style=null)}toJSON(){return Y.toJSON(this.toServerJSONObject())}toServerJSONObject(){var e={};return e.type=this.type,e.memoryData=this.memoryData,e.baseValue=this.baseValue,e.expression=this.expression,e.graduatedMode=this.graduatedMode,this.flow&&(e.flowEnabled=this.flow.flowEnabled,e.leaderLineDisplayed=this.flow.leaderLineDisplayed,e.leaderLineStyle=this.flow.leaderLineStyle),this.offset&&(e.offsetFixed=this.offset.offsetFixed,e.offsetX=this.offset.offsetX,e.offsetY=this.offset.offsetY),this.style&&(e.negativeStyle=this.style.negativeStyle,e.negativeDisplayed=this.style.negativeDisplayed,e.positiveStyle=this.style.positiveStyle,e.zeroDisplayed=this.style.zeroDisplayed,e.zeroStyle=this.style.zeroStyle),e}static fromObj(e){if(e){var t=new o.ThemeGraduatedSymbol;return Y.copy(t,e),t.flow=tr.fromObj(e),t.offset=nr.fromObj(e),t.style=mr.fromObj(e),t}}}o.ThemeGraduatedSymbol=gr;class vr{constructor(e){this.caption=null,this.end=0,this.start=0,this.style=new be,this.visible=!0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeRangeItem"}destroy(){var e=this;e.caption=null,e.end=null,e.start=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e.style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}static fromObj(e){if(e){var t=new vr;return Y.copy(t,e),t.style=be.fromJson(e.style),t}}}o.ThemeRangeItem=vr;class yr extends Jn{constructor(e){super("RANGE",e),this.precision="1.0E-12",this.items=null,this.rangeExpression=null,this.rangeMode=y.EQUALINTERVAL,this.rangeParameter=0,this.colorGradientType=b.YELLOW_RED,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeRange"}destroy(){super.destroy();var e=this;if(e.items){if(e.items.length>0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.rangeExpression=null,e.rangeMode=null,e.rangeParameter=null,e.colorGradientType=null}static fromObj(e){if(e){var t=new yr;Y.copy(t,e);var n=e.items,r=n?n.length:0;t.items=[];for(var i=0;i<r;i++)t.items.push(vr.fromObj(n[i]));return t}}}o.ThemeRange=yr;class br{constructor(e){e=e||{},this.bounds=null,this.caption=null,this.description=null,this.name=null,this.queryable=null,this.subLayers=null,this.type=null,this.visible=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.UGCLayer"}destroy(){var e=this;Y.reset(e)}fromJson(e){e=e||{},Y.extend(this,e);var t=this.bounds;t&&(this.bounds=new Q(t.leftBottom.x,t.leftBottom.y,t.rightTop.x,t.rightTop.y))}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e.bounds&&e.bounds.toServerJSONObject&&(e.bounds=e.bounds.toServerJSONObject()),e}}o.UGCLayer=br;class _r{constructor(e){e=e||{},this.allowPointOverlap=!0,this.allowPointWithTextDisplay=!0,this.allowTextOverlap=!1,this.allowTextAndPointOverlap=!0,this.allowThemeGraduatedSymbolOverlap=!1,this.allowThemeGraphOverlap=!1,this.horizontalOverlappedSpaceSize=0,this.verticalOverlappedSpaceSize=0,Y.extend(this,e),this.ugcLayer=new br(e),this.CLASS_NAME="SuperMap.OverlapDisplayedOptions"}destroy(){Y.reset(this)}fromJson(e){this.ugcLayer.fromJson.apply(this,[e])}toServerJSONObject(){var e=this.ugcLayer.toServerJSONObject.apply(this,arguments);return e}toString(){var e=this.ugcLayer.toServerJSONObject.apply(this,arguments),t="{";for(var n in e)e.hasOwnProperty(n)&&(t+="'"+n+"':"+e[n]+",");return t=t.substr(0,t.length-1),t+="}",t}}o.OverlapDisplayedOptions=_r;class wr extends br{constructor(e){e=e||{},super(e),this.completeLineSymbolDisplayed=null,this.maxScale=null,this.minScale=null,this.minVisibleGeometrySize=null,this.opaqueRate=null,this.symbolScalable=null,this.symbolScale=null,this.overlapDisplayed=null,this.overlapDisplayedOptions=null,this.CLASS_NAME="SuperMap.UGCMapLayer"}destroy(){super.destroy(),Y.reset(this)}fromJson(e){super.fromJson(e)}toServerJSONObject(){return super.toServerJSONObject()}}o.UGCMapLayer=wr;class xr extends wr{constructor(e){e=e||{},super(e),this.datasetInfo=null,this.displayFilter=null,this.joinItems=null,this.representationField=null,this.ugcLayerType=null,this.CLASS_NAME="SuperMap.UGCSubLayer"}fromJson(e){if(super.fromJson(e),this.datasetInfo&&(this.datasetInfo=new jt(this.datasetInfo)),this.joinItems&&this.joinItems.length){for(var t=[],n=0;n<this.joinItems.length;n++)t[n]=new ut(this.joinItems[n]);this.joinItems=t}}destroy(){super.destroy(),Y.reset(this)}toServerJSONObject(){var e=super.toServerJSONObject();if(e.joinItems){for(var t=[],n=0;n<e.joinItems.length;n++)e.joinItems[n].toServerJSONObject&&(t[n]=e.joinItems[n].toServerJSONObject());e.joinItems=t}return e.datasetInfo&&e.datasetInfo.toServerJSONObject&&(e.datasetInfo=e.datasetInfo.toServerJSONObject()),e}}o.UGCSubLayer=xr;class Sr extends xr{constructor(e){e=e||{},super(e),this.theme=null,this.themeElementPosition=null,this.CLASS_NAME="SuperMap.ServerTheme"}destroy(){super.destroy(),Y.reset(this)}fromJson(e){super.fromJson(e);var t=this.theme,n=t&&t.type;switch(n){case"LABEL":this.theme=sr.fromObj(t);break;case"UNIQUE":this.theme=lr.fromObj(t);break;case"GRAPH":this.theme=hr.fromObj(t);break;case"DOTDENSITY":this.theme=pr.fromObj(t);break;case"GRADUATEDSYMBOL":this.theme=gr.fromObj(t);break;case"RANGE":this.theme=yr.fromObj(t);break;default:break}this.themeElementPosition&&(this.themeElementPosition=new J(this.themeElementPosition.x,this.themeElementPosition.y))}toServerJSONObject(){var e=super.toServerJSONObject();return e.themeElementPosition&&e.themeElementPosition.toServerJSONObject&&(e.themeElementPosition=e.themeElementPosition.toServerJSONObject()),e.theme&&e.theme.toServerJSONObject&&(e.theme=e.theme.toServerJSONObject()),e}}o.ServerTheme=Sr;class Cr extends xr{constructor(e){e=e||{},super(e),this.colorDictionarys=null,this.brightness=null,this.colorGradientType=null,this.colors=null,this.contrast=null,this.dashStyle=null,this.gridType=null,this.horizontalSpacing=null,this.sizeFixed=null,this.solidStyle=null,this.specialColor=null,this.specialValue=null,this.specialValueTransparent=null,this.verticalSpacing=null,this.CLASS_NAME="SuperMap.Grid"}destroy(){super.destroy(),Y.reset(this)}fromJson(e){if(super.fromJson(e),this.specialColor&&(this.specialColor=new ye(this.specialColor.red,this.specialColor.green,this.specialColor.blue)),this.colors){var t,n=[];for(var r in this.colors)t=this.colors[r],n.push(new ye(t.red,t.green,t.blue));this.colors=n}if(this.dashStyle&&(this.dashStyle=new be(this.dashStyle)),this.solidStyle&&(this.solidStyle=new be(this.solidStyle)),this.colorDictionary){var i,o=[];for(var a in this.colorDictionary)i=this.colorDictionary[a],o.push(new Rt({elevation:a,color:i}));this.colorDictionarys=o}delete this.colorDictionary}toServerJSONObject(){var e=super.toServerJSONObject();return e.dashStyle&&e.dashStyle.toServerJSONObject&&(e.dashStyle=e.dashStyle.toServerJSONObject()),e.solidStyle&&e.solidStyle.toServerJSONObject&&(e.solidStyle=e.solidStyle.toServerJSONObject()),e}}o.Grid=Cr;class Er extends xr{constructor(e){e=e||{},super(e),this.brightness=null,this.colorSpaceType=null,this.contrast=null,this.displayBandIndexes=null,this.transparent=null,this.transparentColor=null,this.transparentColorTolerance=null,this.CLASS_NAME="SuperMap.Image"}destroy(){super.destroy(),Y.reset(this)}fromJson(e){super.fromJson(e),this.transparentColor&&(this.transparentColor=new ye(this.transparentColor.red,this.transparentColor.green,this.transparentColor.blue))}toServerJSONObject(){return super.toServerJSONObject()}}o.Image=Er;class kr extends xr{constructor(e){e=e||{},super(e),this.style=null,this.CLASS_NAME="SuperMap.Vector"}destroy(){super.destroy(),Y.reset(this)}fromJson(e){super.fromJson(e);var t=this.style;t&&(this.style=new be(t))}toServerJSONObject(){var e=o.toServerJSONObject();return e.style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}}o.Vector=kr;class Or extends Je{constructor(e,t){super(e,t),this.isTempLayers=!1,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.GetLayersInfoService"}destroy(){super.destroy(),Y.reset(this)}processAsync(){var e=this,t="GET";e.isTempLayers||(e.url=Y.urlPathAppend(e.url,"layers")),e.request({method:t,params:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}serviceProcessCompleted(e){var t,n,r,i=this;e=Y.transformResult(e),t=!!e&&e.length>0,n=t?e[0].subLayers.layers:null,r=n?n.length:0,i.handleLayers(r,n),i.events.triggerEvent("processCompleted",{result:e[0]})}handleLayers(e,t){var n,r=this;if(e)for(var i=0;i<e;i++)if(t[i].subLayers&&t[i].subLayers.layers&&t[i].subLayers.layers.length>0)r.handleLayers(t[i].subLayers.layers.length,t[i].subLayers.layers);else{var o=t[i].ugcLayerType;switch(o){case"THEME":n=new Sr,n.fromJson(t[i]),t[i]=n;break;case"GRID":n=new Cr,n.fromJson(t[i]),t[i]=n;break;case"IMAGE":n=new Er,n.fromJson(t[i]),t[i]=n;break;case"VECTOR":n=new kr,n.fromJson(t[i]),t[i]=n;break;default:break}}}}o.GetLayersInfoService=Or;class Tr{constructor(e){e&&(this.bounds=null,this.searchRadius=0,this.zValueFieldName=null,this.zValueScale=1,this.resolution=null,this.filterQueryParameter=null,this.outputDatasetName=null,this.outputDatasourceName=null,this.pixelFormat=null,this.dataset=null,this.inputPoints=null,this.InterpolationAnalystType="dataset",this.clipParam=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.InterpolationAnalystParameters")}destroy(){var e=this;e.bounds=null,e.searchRadius=null,e.zValueFieldName=null,e.zValueScale=null,e.resolution=null,e.filterQueryParameter=null,e.outputDatasetName=null,e.pixelFormat=null}static toObject(e,t){for(var n in e)if("inputPoints"===n&&"geometry"===e.InterpolationAnalystType){for(var r=[],i=0;i<e.inputPoints.length;i++){var o=e.inputPoints[i],a={x:o.x,y:o.y,z:o.tag};r.push(a)}t[n]=r}else t[n]=e[n]}}o.InterpolationAnalystParameters=Tr;class Ir extends Tr{constructor(e){super(e),this.smooth=.1,this.tension=40,this.searchMode=null,this.expectedCount=12,this.maxPointCountForInterpolation=200,this.maxPointCountInNode=50,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.InterpolationRBFAnalystParameters"}destroy(){super.destroy();var e=this;e.smooth=null,e.tension=null,e.searchMode=null,e.expectedCount=null,e.maxPointCountForInterpolation=null,e.maxPointCountInNode=null}static toObject(e,t){for(var n in e)t[n]=e[n]}}o.InterpolationRBFAnalystParameters=Ir;class Ar extends Tr{constructor(e){super(e),e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.InterpolationDensityAnalystParameters"}destroy(){super.destroy()}}o.InterpolationDensityAnalystParameters=Ar;class Rr extends Tr{constructor(e){super(e),this.power=2,this.searchMode=null,this.expectedCount=12,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.InterpolationIDWAnalystParameters"}destroy(){super.destroy();var e=this;e.power=null,e.searchMode=null,e.expectedCount=null}}o.InterpolationIDWAnalystParameters=Rr;class Pr extends Tr{constructor(e){super(e),this.type=null,this.mean=null,this.angle=0,this.nugget=0,this.range=0,this.sill=0,this.variogramMode=M.SPHERICAL,this.exponent=N.EXP1,this.searchMode=null,this.expectedCount=12,this.maxPointCountForInterpolation=200,this.maxPointCountInNode=50,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.InterpolationKrigingAnalystParameters"}destroy(){super.destroy();var e=this;e.type=null,e.mean=null,e.angle=null,e.nugget=null,e.range=null,e.sill=null,e.variogramMode=null,e.exponent=null,e.searchMode=null,e.expectedCount=null,e.maxPointCountForInterpolation=null,e.maxPointCountInNode=null}}o.InterpolationKrigingAnalystParameters=Pr;class Mr extends it{constructor(e,t){super(e,t),this.mode=null,t&&Y.extend(this,t)}destroy(){super.destroy(),this.mode=null,this.CLASS_NAME="SuperMap.InterpolationAnalystService"}processAsync(e){var t={},n=this;e instanceof Ar?(n.mode="Density","geometry"===e.InterpolationAnalystType?n.url=Y.urlPathAppend(n.url,"geometry/interpolation/density"):n.url=Y.urlPathAppend(n.url,"datasets/"+e.dataset+"/interpolation/density")):e instanceof Rr?(n.mode="IDW","geometry"===e.InterpolationAnalystType?n.url=Y.urlPathAppend(n.url,"geometry/interpolation/idw"):n.url=Y.urlPathAppend(n.url,"datasets/"+e.dataset+"/interpolation/idw")):e instanceof Ir?(n.mode="RBF","geometry"===e.InterpolationAnalystType?n.url=Y.urlPathAppend(n.url,"geometry/interpolation/rbf"):n.url=Y.urlPathAppend(n.url,"datasets/"+e.dataset+"/interpolation/rbf")):e instanceof Pr&&(n.mode="Kriging","geometry"===e.InterpolationAnalystType?n.url=Y.urlPathAppend(n.url,"geometry/interpolation/kriging"):n.url=Y.urlPathAppend(n.url,"datasets/"+e.dataset+"/interpolation/kriging")),Tr.toObject(e,t);var r=Y.toJSON(t);n.url=Y.urlAppend(n.url,"returnContent=true"),n.request({method:"POST",data:r,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}o.InterpolationAnalystService=Mr;class Nr{constructor(e){e&&(this.datasetName="",this.query="",this.resolution=80,this.method=0,this.meshType=0,this.fields="",this.radius=300,this.meshSizeUnit=F.METER,this.radiusUnit=F.METER,this.areaUnit=j.SQUAREMILE,this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.KernelDensityJobParameter")}destroy(){this.datasetName=null,this.query=null,this.resolution=null,this.method=null,this.radius=null,this.meshType=null,this.fields=null,this.meshSizeUnit=null,this.radiusUnit=null,this.areaUnit=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"output"!==n?(t["analyst"]=t["analyst"]||{},"query"===n&&e[n]?t["analyst"][n]=e[n].toBBOX():t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.KernelDensityJobParameter=Nr;class Lr extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/density"),this.CLASS_NAME="SuperMap.KernelDensityJobsService"}destroy(){super.destroy()}getKernelDensityJobs(){super.getJobs(this.url)}getKernelDensityJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addKernelDensityJob(e,t){super.addJob(this.url,e,Nr,t)}}o.KernelDensityJobsService=Lr;class Dr{constructor(){this.CLASS_NAME="LabelMatrixCell"}}o.LabelMatrixCell=Dr;class jr extends Dr{constructor(e){super(e),this.height=0,this.pathField=null,this.rotation=0,this.width=0,this.sizeFixed=!1,this.type="IMAGE",e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.LabelImageCell"}destroy(){var e=this;e.height=null,e.pathField=null,e.rotation=null,e.width=null,e.sizeFixed=null}}o.LabelImageCell=jr;class Fr extends Dr{constructor(e){super(e),this.style=new be,this.symbolIDField=null,this.type="SYMBOL",e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.LabelSymbolCell"}destroy(){var e=this;e.style&&(e.style.destroy(),e.style=null),e.symbolIDField=null}}o.LabelSymbolCell=Fr;class Br extends Dr{constructor(e){super(e),this.themeLabel=new sr,this.type="THEME",e&&Y.extend(this,e),this.CLASS_NAME=" SuperMap.LabelThemeCell"}destroy(){var e=this;e.themeLabel&&(e.themeLabel.destroy(),e.themeLabel=null)}}o.LabelThemeCell=Br;class qr{constructor(e){this.layerName=null,this.isVisible=null,this.displayFilter=null,this.fieldValuesDisplayFilter=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.LayerStatus"}destroy(){var e=this;e.layerName=null,e.isVisible=null,e.displayFilter=null}toJSON(){var e="{";e+='"type":"UGC",';var t=[];return this.layerName&&(t.push('"name":"'+this.layerName+'"'),t.push('"visible":'+this.isVisible)),this.displayFilter&&t.push('"displayFilter":"'+this.displayFilter+'"'),(this.minScale||0==this.minScale)&&t.push('"minScale":'+this.minScale),(this.maxScale||0==this.maxScale)&&t.push('"maxScale":'+this.maxScale),this.fieldValuesDisplayFilter&&t.push('"fieldValuesDisplayFilter":'+Y.toJSON(this.fieldValuesDisplayFilter)),e+=t,e+="}",e}}o.LayerStatus=qr;class zr extends Je{constructor(e,t){super(e,t),this.projection=null,this.CLASS_NAME="SuperMap.MapService",t&&Y.extend(this,t);var n=this;if(n.projection){var r=n.projection.split(":");r instanceof Array&&(2===r.length&&(n.url=Y.urlAppend(n.url,"prjCoordSys="+encodeURIComponent(`{"epsgCode":"${r[1]}"}`))),1===r.length&&(n.url=Y.urlAppend(n.url,"prjCoordSys="+encodeURIComponent(`{"epsgCode":"${r[0]}"}`))))}}destroy(){super.destroy();var e=this;e.events&&(e.events.un(e.eventListeners),e.events.listeners=null,e.events.destroy(),e.events=null,e.eventListeners=null)}processAsync(){var e=this;e.request({method:"GET",scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}serviceProcessCompleted(e){var t=this;e=Y.transformResult(e);var n=e.code>=200&&e.code<300||0==e.code||304===e.code,r=e.code&&n;!e.code||r?t.events&&t.events.triggerEvent("processCompleted",{result:e}):t.events.triggerEvent("processFailed",{error:e})}}o.MapService=zr;class Ur{constructor(e){e&&(this.dataset=null,this.extractRegion=null,this.expression=null,this.isZip=!1,this.ignoreNoValue=!1,this.targetDatasource=null,this.resultGridName=null,this.deleteExistResultDataset=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.MathExpressionAnalysisParameters")}destroy(){var e=this;e.dataset=null,e.bounds=null,e.expression=null,e.isZip=!0,e.ignoreNoValue=!0,e.targetDatasource=null,e.resultGridName=null,e.deleteExistResultDataset=null}static toObject(e,t){for(var n in e)if("dataset"!==n&&(t[n]=e[n]),"extractRegion"===n&&e[n]){for(var r=e[n].components[0].components,i={},o=[],a="REGION",s=r.length,l=0;l<s-1;l++){var c={};c["x"]=r[l].x,c["y"]=r[l].y,o.push(c)}i["points"]=o,i["type"]=a,t[n]=i}}}o.MathExpressionAnalysisParameters=Ur;class Gr extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.MathExpressionAnalysisService"}destroy(){super.destroy()}processAsync(e){var t=this,n={};e instanceof Ur&&(t.url=Y.urlPathAppend(t.url,"datasets/"+e.dataset+"/mathanalyst")),Ur.toObject(e,n);var r=Y.toJSON(n);t.url=Y.urlAppend(t.url,"returnContent=true"),t.request({method:"POST",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}o.MathExpressionAnalysisService=Gr;class Vr{constructor(e,t){e&&(this.geometry=e,this.unit=f.METER,this.prjCoordSys=null,this.distanceMode=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.MeasureParameters")}destroy(){var e=this;e.geometry=null,e.unit=null,e.prjCoordSys=null}}o.MeasureParameters=Vr;class Wr extends Je{constructor(e,t){super(e,t),this.measureMode=d.DISTANCE,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.MeasureService"}destroy(){super.destroy();var e=this;e.measureMode=null}processAsync(e){if(e instanceof Vr){var t=this,n=e.geometry,r=0,i=null;if(n){t.url=Y.urlPathAppend(t.url,t.measureMode===d.AREA?"area":"distance");var o,a,s,l=xe.fromGeometry(n);if(l)r=l.parts[0],i=l.points.splice(0,r),e.prjCoordSys?("object"===typeof e.prjCoordSys?(a=e.prjCoordSys.projCode,o='{"epsgCode"'+a.substring(a.indexOf(":"),a.length)+"}"):"string"===typeof e.prjCoordSys&&(o='{"epsgCode"'+e.prjCoordSys.substring(e.prjCoordSys.indexOf(":"),e.prjCoordSys.length)+"}"),s={point2Ds:Y.toJSON(i),unit:e.unit,prjCoordSys:o}):s={point2Ds:Y.toJSON(i),unit:e.unit},t.request({method:"GET",params:s,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}}o.MeasureService=Wr;class Hr extends it{constructor(e,t){super(e,t),this.mode=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.OverlayAnalystService"}destroy(){super.destroy(),this.mode=null}processAsync(e){var t={},n=this;e instanceof Bt?(n.mode="datasets",n.url=Y.urlPathAppend(n.url,"datasets/"+e.sourceDataset+"/overlay"),Bt.toObject(e,t)):e instanceof In&&(n.mode="geometry",e.operateGeometries&&e.sourceGeometries?(n.url=Y.urlPathAppend(n.url,"geometry/overlay/batch"),n.url=Y.urlAppend(n.url,"ignoreAnalystParam=true")):n.url=Y.urlPathAppend(n.url,"geometry/overlay"),In.toObject(e,t)),n.url=Y.urlAppend(n.url,"returnContent=true");var r=Y.toJSON(t);n.request({method:"POST",data:r,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}o.OverlayAnalystService=Hr;class $r{constructor(e){e&&(this.datasetName="",this.datasetOverlay="",this.mode="",this.srcFields="",this.overlayFields="",this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.OverlayGeoJobParameter")}destroy(){this.datasetName=null,this.datasetOverlay=null,this.mode=null,this.srcFields=null,this.overlayFields=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!=n?"output"!==n?(t["analyst"]=t["analyst"]||{},t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.OverlayGeoJobParameter=$r;class Kr extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/overlay"),this.CLASS_NAME="SuperMap.OverlayGeoJobsService"}destroy(){super.destroy()}getOverlayGeoJobs(){super.getJobs(this.url)}getOverlayGeoJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addOverlayGeoJob(e,t){super.addJob(this.url,e,$r,t)}}o.OverlayGeoJobsService=Kr;class Xr extends Tt{constructor(e){e&&(super(e),this.returnContent=!0,this.bounds=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.QueryByBoundsParameters")}destroy(){super.destroy();var e=this;e.returnContent=null,e.bounds&&(e.bounds=null)}}o.QueryByBoundsParameters=Xr;class Yr extends Je{constructor(e,t){super(e,t),this.returnContent=!1,this.format=a.GEOJSON,this.returnFeatureWithFieldCaption=!1,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.QueryService",this.url&&(t&&t.format&&(this.format=t.format.toUpperCase()),this.url=Y.urlPathAppend(this.url,"queryResults"))}destroy(){super.destroy();var e=this;e.returnContent=null,e.format=null}processAsync(e){if(e instanceof Tt){var t=this,n=null,r=null;t.returnContent=e.returnContent,r=t.getJsonParameters(e),t.returnContent?t.url=Y.urlAppend(t.url,"returnContent="+t.returnContent):(n=e.returnCustomResult,n&&(t.url=Y.urlAppend(t.url,"returnCustomResult="+n))),t.returnFeatureWithFieldCaption=e.returnFeatureWithFieldCaption,t.request({method:"POST",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}serviceProcessCompleted(e){var t=this;e=Y.transformResult(e);var n=new Se;if(e&&e.recordsets)for(var r=0,i=e.recordsets,o=i.length;r<o;r++)i[r].features&&(!0===t.returnFeatureWithFieldCaption&&i[r].features.map(e=>(e.fieldNames=i[r].fieldCaptions,e)),t.format===a.GEOJSON&&(i[r].features=n.toGeoJSON(i[r].features)));t.events.triggerEvent("processCompleted",{result:e})}getQueryParameters(e){return new Tt({customParams:e.customParams,expectCount:e.expectCount,networkType:e.networkType,queryOption:e.queryOption,queryParams:e.queryParams,startRecord:e.startRecord,prjCoordSys:e.prjCoordSys,holdTime:e.holdTime})}}o.QueryService=Yr;class Jr extends Yr{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryByBoundsService"}destroy(){super.destroy()}getJsonParameters(e){if(!(e instanceof Xr))return null;var t=this,n="",r=null,i=e.bounds;return r=t.getQueryParameters(e),n+="'queryMode':'BoundsQuery','queryParameters':",n+=Y.toJSON(r),n+=",'bounds': {'rightTop':{'y':"+i.top+",'x':"+i.right+"},'leftBottom':{'y':"+i.bottom+",'x':"+i.left+"}}",n="{"+n+"}",n}}o.QueryByBoundsService=Jr;class Qr extends Tt{constructor(e){e&&(super(e),this.distance=0,this.geometry=null,this.isNearest=null,this.returnContent=!0,Y.extend(this,e),this.CLASS_NAME="SuperMap.QueryByDistanceParameters")}destroy(){super.destroy();var e=this;e.returnContent=null,e.distance=null,e.isNearest=null,e.geometry&&(e.geometry.destroy(),e.geometry=null)}}o.QueryByDistanceParameters=Qr;class Zr extends Yr{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryByDistanceService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof Qr){var t=this,n="",r=t.getQueryParameters(e),i=xe.fromGeometry(e.geometry);return n+=e.isNearest?"'queryMode':'FindNearest','queryParameters':":"'queryMode':'DistanceQuery','queryParameters':",n+=Y.toJSON(r),n+=",'geometry':"+Y.toJSON(i)+",'distance':"+e.distance,n="{"+n+"}",n}}}o.QueryByDistanceService=Zr;class ei extends Tt{constructor(e){e&&(super(e),this.returnContent=!0,this.geometry=null,this.spatialQueryMode=u.INTERSECT,Y.extend(this,e),this.CLASS_NAME="SuperMap.QueryByGeometryParameters")}destroy(){super.destroy();var e=this;e.returnContent=null,e.geometry=null,e.spatialQueryMode=null}}o.QueryByGeometryParameters=ei;class ti extends Yr{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryByGeometryService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof ei){var t=this,n="",r=null,i=e.geometry,o=xe.fromGeometry(i);return r=t.getQueryParameters(e),n+="'queryMode':'SpatialQuery','queryParameters':",n+=Y.toJSON(r)+",'geometry':"+Y.toJSON(o)+",'spatialQueryMode':"+Y.toJSON(e.spatialQueryMode),n="{"+n+"}",n}}}o.QueryByGeometryService=ti;class ni extends Tt{constructor(e){e&&(super(e),this.returnContent=!0,Y.extend(this,e),this.CLASS_NAME="SuperMap.QueryBySQLParameters")}destroy(){super.destroy();var e=this;e.returnContent=null}}o.QueryBySQLParameters=ni;class ri extends Yr{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.QueryBySQLService"}destroy(){super.destroy()}getJsonParameters(e){if(e instanceof ni){var t=this,n="",r=null;return r=t.getQueryParameters(e),n+="'queryMode':'SqlQuery','queryParameters':",n+=Y.toJSON(r),n="{"+n+"}",n}}}o.QueryBySQLService=ri;class ii{constructor(e){if(!e)return this;this.sourceRoute=null,this.point=null,this.tolerance=null,this.isIgnoreGap=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.RouteCalculateMeasureParameters"}destroy(){var e=this;e.sourceRoute=null,e.point=null,e.tolerance&&(e.tolerance=null),e.isIgnoreGap&&(e.isIgnoreGap=!1)}}o.RouteCalculateMeasureParameters=ii;class oi extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.RouteCalculateMeasureService"}destroy(){super.destroy()}processAsync(e){if(e instanceof ii){var t,n=this;t=n.getJsonParameters(e),n.request({method:"POST",data:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJsonParameters(e){var t,n="geometry/calculatemeasure",r=this;return r.url=Y.urlPathAppend(r.url,n),r.url=Y.urlAppend(r.url,"returnContent=true"),t=Y.toJSON(e),t}}o.RouteCalculateMeasureService=oi;class ai{constructor(e){if(!e)return this;this.sourceRoute=null,this.dataset=null,this.routeIDField=null,this.routeID=null,this.type=null,this.measure=null,this.offset=0,this.isIgnoreGap=!1,this.startMeasure=null,this.endMeasure=null;var t=e.sourceRoute,n={};if(t&&t instanceof Z&&t.components){n.type=t.type,n.parts=t.parts;for(var r=[],i=0,o=t.components.length;i<o;i++)r=r.concat(t.components[i].components);n.points=r,e.sourceRoute=n}Y.extend(this,e),this.CLASS_NAME="SuperMap.RouteLocatorParameters"}destroy(){var e=this;e.sourceRoute=null,e.type=null,e.measure=null,e.offset=0,e.isIgnoreGap=!1,e.startMeasure=null,e.endMeasure=null,e.dataset=null,e.routeID=null,e.routeIDField=null}}o.RouteLocatorParameters=ai;class si extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.RouteLocatorService"}destroy(){super.destroy()}processAsync(e){if(e instanceof ai){var t,n=this;t=n.getJsonParameters(e),n.request({method:"POST",data:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJsonParameters(e){var t,n="geometry/routelocator",r=this;return e.dataset&&(n="datasets/"+e.dataset+"/linearreferencing/routelocator",e.sourceRoute=null),r.url=Y.urlPathAppend(r.url,n),r.url=Y.urlAppend(r.url,"returnContent=true"),t=Y.toJSON(e),t}}o.RouteLocatorService=si;class li{constructor(e){this.fieldNames=null,this.fieldValues=null,this.geometry=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ServerFeature"}destroy(){var e=this;e.fieldNames=null,e.fieldValues=null,e.geometry&&(e.geometry.destroy(),e.geometry=null)}toFeature(){var e,t,n,r,i={},o=this;for(var a in e=o.fieldNames,t=o.fieldValues,e)i[e[a]]=t[a];return o.geometry&&(n=o.geometry.toGeometry()),r=new me(n,i),o.geometry&&o.geometry.id&&(r.fid=o.geometry.id),r}static fromJson(e){var t=null;if(e)return t=e.geometry,t&&(t=xe.fromJson(t)),new li({fieldNames:e.fieldNames,fieldValues:e.fieldValues,geometry:t})}}o.ServerFeature=li;class ci{constructor(e){e=e||{},this.resourceID=null,this.tempLayerName=null,this.layerInfo=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.SetLayerInfoParameters"}destroy(){var e=this;e.resourceID=null,e.tempLayerName=null,e.layerInfo=null}}o.SetLayerInfoParameters=ci;class ui extends Je{constructor(e,t){super(e,t),t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.SetLayerInfoService"}destroy(){super.destroy(),Y.reset(this)}processAsync(e){if(e){var t=this,n=Y.toJSON(e);t.request({method:"PUT",data:n,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}o.SetLayerInfoService=ui;class di{constructor(e){e=e||{},this.isTempLayers=null,this.resourceID=null,this.layersInfo=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.SetLayersInfoParameters"}destroy(){var e=this;e.isTempLayers=null,e.resourceID=null,e.layersInfo=null}}o.SetLayersInfoParameters=di;class fi extends Je{constructor(e,t){super(e,t),this.resourceID=null,this.isTempLayers=!1,t&&o.Util.extend(this,t),this.CLASS_NAME="SuperMap.SetLayersInfoService"}destroy(){super.destroy(),Y.reset(this)}processAsync(e){if(e){var t,n=[],r=this,i="";r.isTempLayers?(r.url=Y.urlPathAppend(r.url,"tempLayersSet/"+r.resourceID),i="PUT"):(r.url=Y.urlPathAppend(r.url,"tempLayersSet"),i="POST"),e.subLayers||(e.subLayers={layers:[]}),e.subLayers.layers||(e.subLayers.layers=[]);var o=e.subLayers.layers,a=o.length;for(let e in o){if("GRID"===o[e].ugcLayerType){var s={},l=o[e].colorDictionarys;for(var c in l){var u=l[c].elevation;s[u]=l[c].color}}o[e].colorDictionary=s,delete o[e].colorDictionarys}for(let e=0;e<a;e++)o[e].toJsonObject?n.push(o[e].toJsonObject()):n.push(o[e]);t=Y.extend(t,e),t.subLayers={layers:n},t.object=null;var d=Y.toJSON([t]);r.request({method:i,data:d,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}}o.SetLayersInfoService=fi;class hi{constructor(e){this.layerStatusList=[],this.holdTime=15,this.resourceID=null,e&&Y.extend(this,e)}destroy(){var e=this;e.layerStatusList=null,e.holdTime=null,e.resourceID=null}toJSON(){var e="{";e+='"layers":[';for(var t=[],n=0,r=this.layerStatusList.length;n<r;n++)t.push(this.layerStatusList[n].toJSON());return e+=t,e+="]",e+="}",e}}o.SetLayerStatusParameters=hi;class pi extends Je{constructor(e,t){super(e,t),this.lastparams=null,this.mapUrl=e,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.SetLayerStatusService"}destroy(){super.destroy(),Y.reset(this)}processAsync(e){if(e instanceof hi){var t=this,n="POST";if(t.url=t.mapUrl,null==e.resourceID)t.url=Y.urlPathAppend(t.url,"tempLayersSet"),t.lastparams=e,t.request({method:n,scope:t,success:t.createTempLayerComplete,failure:t.serviceProcessFailed});else{t.url=Y.urlPathAppend(t.url,"tempLayersSet/"+e.resourceID),t.url=Y.urlAppend(t.url,"elementRemain=true&reference="+e.resourceID+"&holdTime="+e.holdTime.toString());var r="[{";r+='"type":"UGC",',null!=e.layerStatusList&&e.layerStatusList.length>0&&(r+='"subLayers":'+e.toJSON()),r+=',"visible":true,',r+='"name":"'+this.getMapName(this.mapUrl)+'"',r+="}]",t.request({method:"PUT",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}createTempLayerComplete(e){var t=this;e=Y.transformResult(e),e.succeed&&(t.lastparams.resourceID=e.newResourceID),t.processAsync(t.lastparams)}getMapName(e){var t=e;"/"===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1));var n=t.lastIndexOf("/"),r=t.substring(n+1,t.length);return r}serviceProcessCompleted(e){var t=this;e=Y.transformResult(e),null!=e&&null!=t.lastparams&&(e.newResourceID=t.lastparams.resourceID),t.events.triggerEvent("processCompleted",{result:e})}}o.SetLayerStatusService=pi;class mi{constructor(e){e&&(this.datasetName="",this.datasetQuery="",this.geometryQuery="",this.mode=u.CONTAIN,this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.SingleObjectQueryJobsParameter")}destroy(){this.datasetName=null,this.datasetQuery=null,this.geometryQuery=null,this.mode=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"output"!==n?(t["analyst"]=t["analyst"]||{},t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.SingleObjectQueryJobsParameter=mi;class gi extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/query"),this.CLASS_NAME="SuperMap.SingleObjectQueryJobsService"}destroy(){super.destroy()}getQueryJobs(){super.getJobs(this.url)}getQueryJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addQueryJob(e,t){super.addJob(this.url,e,mi,t)}}o.SingleObjectQueryJobsService=gi;class vi{constructor(e){e=e||{},this.keyWord=null,this.returnPosition=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.StopQueryParameters"}destroy(){Y.reset(this)}}o.StopQueryParameters=vi;class yi extends Je{constructor(e,t){super(e,t),t=t||{},Y.extend(this,t),this.CLASS_NAME="SuperMap.StopQueryService"}destroy(){super.destroy(),Y.reset(this)}processAsync(e){if(e instanceof vi){var t=this;t.url=Y.urlPathAppend(t.url,"stops/keyword/"+e.keyWord),t.request({method:"GET",params:{returnPosition:e.returnPosition},scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}o.StopQueryService=yi;class bi{constructor(e){e&&(this.datasetName="",this.groupField="",this.attributeField="",this.statisticModes="",this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.SummaryAttributesJobsParameter")}destroy(){this.datasetName=null,this.groupField=null,this.attributeField=null,this.statisticModes=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"output"!==n?(t["analyst"]=t["analyst"]||{},t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.SummaryAttributesJobsParameter=bi;class _i extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/summaryattributes"),this.CLASS_NAME="SuperMap.SummaryAttributesJobsService"}destroy(){super.destroy()}getSummaryAttributesJobs(){super.getJobs(this.url)}getSummaryAttributesJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addSummaryAttributesJob(e,t){super.addJob(this.url,e,bi,t)}}o.SummaryAttributesJobsService=_i;class wi{constructor(e){e&&(this.datasetName="",this.regionDataset="",this.query="",this.resolution=100,this.meshType=0,this.statisticModes=B.AVERAGE,this.fields="",this.type=q.SUMMARYMESH,this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.SummaryMeshJobParameter")}destroy(){this.datasetName=null,this.query=null,this.resolution=null,this.statisticModes=null,this.meshType=null,this.fields=null,this.regionDataset=null,this.type=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"type"!==n?"output"!==n?("SUMMARYMESH"===e.type&&"regionDataset"!==n||"SUMMARYREGION"===e.type&&!r(["meshType","resolution","query"],n))&&(t["analyst"]=t["analyst"]||{},"query"===n&&e[n]?t["analyst"][n]=e[n].toBBOX():t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):t["type"]=e[n]:(t["input"]=t["input"]||{},t["input"][n]=e[n]);function r(e,t){var n=e.length;while(n--)if(e[n]===t)return!0;return!1}}}o.SummaryMeshJobParameter=wi;class xi extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/aggregatepoints"),this.CLASS_NAME="SuperMap.SummaryMeshJobsService"}destroy(){super.destroy()}getSummaryMeshJobs(){super.getJobs(this.url)}getSummaryMeshJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addSummaryMeshJob(e,t){super.addJob(this.url,e,wi,t)}}o.SummaryMeshJobsService=xi;class Si{constructor(e){e&&(this.datasetName="",this.regionDataset="",this.sumShape=!0,this.query="",this.standardSummaryFields=!1,this.standardFields="",this.standardStatisticModes="",this.weightedSummaryFields=!1,this.weightedFields="",this.weightedStatisticModes="",this.meshType=0,this.resolution=100,this.meshSizeUnit=F.METER,this.type=q.SUMMARYMESH,this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.SummaryRegionJobParameter")}destroy(){this.datasetName=null,this.sumShape=null,this.regionDataset=null,this.query=null,this.standardSummaryFields=null,this.standardFields=null,this.standardStatisticModes=null,this.weightedSummaryFields=null,this.weightedFields=null,this.weightedStatisticModes=null,this.meshType=null,this.resolution=null,this.meshSizeUnit=null,this.type=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"type"!==n&&"type"!==n?"output"!==n?("SUMMARYREGION"===e.type||"SUMMARYMESH"===e.type&&"regionDataset"!==n)&&(t["analyst"]=t["analyst"]||{},"query"===n&&e[n]?t["analyst"][n]=e[n].toBBOX():t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):t["type"]=e[n]:(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.SummaryRegionJobParameter=Si;class Ci extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/summaryregion"),this.CLASS_NAME="SuperMap.SummaryRegionJobsService"}destroy(){super.destroy()}getSummaryRegionJobs(){super.getJobs(this.url)}getSummaryRegionJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addSummaryRegionJob(e,t){super.addJob(this.url,e,Si,t)}}o.SummaryRegionJobsService=Ci;class Ei{constructor(e){this.maxWeight=null,this.nodeID=null,this.resourceValue=null,this.type=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.SupplyCenter"}destroy(){var e=this;e.maxWeight=null,e.nodeID=null,e.resourceValue=null,e.type=null}static fromJson(e){if(e)return new Ei({maxWeight:e.maxWeight,nodeID:e.nodeID,resourceValue:e.resourceValue,type:e.type})}}o.SupplyCenter=Ei;class ki extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.SurfaceAnalystService"}destroy(){super.destroy()}processAsync(e){if(e instanceof zt){var t,n=this;t=n.getJsonParameters(e),n.request({method:"POST",data:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}getJsonParameters(e){var t="",n={},r=this;if(e instanceof Ut)r.url=Y.urlPathAppend(r.url,"datasets/"+e.dataset+"/"+e.surfaceAnalystMethod.toLowerCase()),Ut.toObject(e,n),t=Y.toJSON(n);else{if(!(e instanceof An))return;r.url=Y.urlPathAppend(r.url,"geometry/"+e.surfaceAnalystMethod.toLowerCase()),t=Y.toJSON(e)}return r.url=Y.urlAppend(r.url,"returnContent=true"),t}}o.SurfaceAnalystService=ki;class Oi{constructor(e){e&&(this.dataset=null,this.zFactor=1,this.averageCurvatureName=null,this.profileCurvatureName="",this.planCurvatureName="",this.deleteExistResultDataset=!1,Y.extend(this,e),this.CLASS_NAME="SuperMap.TerrainCurvatureCalculationParameters")}destroy(){var e=this;e.dataset=null,e.zFactor=1,e.averageCurvatureName=null,e.profileCurvatureName=null,e.planCurvatureName=null,e.deleteExistResultDataset=!0}static toObject(e,t){for(var n in e)"dataset"!==n&&(t[n]=e[n])}}o.TerrainCurvatureCalculationParameters=Oi;class Ti extends it{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TerrainCurvatureCalculationService"}destroy(){super.destroy()}processAsync(e){var t=this,n={};e instanceof Oi&&(t.url=Y.urlPathAppend(t.url,"datasets/"+e.dataset+"/terraincalculation/curvature")),Oi.toObject(e,n);var r=o.Util.toJSON(n);t.url=Y.urlAppend(t.url,"returnContent=true"),t.request({method:"POST",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}o.TerrainCurvatureCalculationService=Ti;class Ii{constructor(e){this.caption=null,this.color=new ye,this.end=0,this.start=0,this.visible=!0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGridRangeItem"}destroy(){var e=this;e.caption=null,e.end=null,e.start=null,e.color&&(e.color.destroy(),e.color=null),e.visible=null}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e.color&&e.color.toServerJSONObject&&(e.color=e.color.toServerJSONObject()),e}static fromObj(e){if(e){var t=new Ii;return Y.copy(t,e),t.color=ye.fromJson(e.color),t}}}o.ThemeGridRangeItem=Ii;class Ai extends Jn{constructor(e){super("GRIDRANGE",e),this.items=null,this.rangeMode=y.EQUALINTERVAL,this.rangeParameter=0,this.colorGradientType=b.YELLOW_RED,this.reverseColor=!1,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGridRange"}destroy(){super.destroy();var e=this;if(e.items){if(e.items.length>0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.reverseColor=null,e.rangeMode=null,e.rangeParameter=null,e.colorGradientType=null}static fromObj(e){if(e){var t=new Ai;Y.copy(t,e);var n=e.items,r=n?n.length:0;t.items=[];for(var i=0;i<r;i++)t.items.push(Ii.fromObj(n[i]));return t}}}o.ThemeGridRange=Ai;class Ri{constructor(e){this.caption=null,this.color=new ye,this.unique=null,this.visible=!0,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGridUniqueItem"}destroy(){var e=this;e.caption=null,e.unique=null,e.color&&(e.color.destroy(),e.color=null),e.visible=null}toServerJSONObject(){var e={};return e=Y.copyAttributes(e,this),e.color&&e.color.toServerJSONObject&&(e.color=e.color.toServerJSONObject()),e}static fromObj(e){var t=new Ri;return Y.copy(t,e),t.color=ye.fromJson(e.color),t}}o.ThemeGridUniqueItem=Ri;class Pi extends Jn{constructor(e){super("GRIDUNIQUE",e),this.defaultcolor=new ye,this.items=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeGridUnique"}destroy(){super.destroy();var e=this;if(e.items){if(e.items.length>0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.defaultcolor&&(e.defaultcolor.destroy(),e.defaultcolor=null)}toServerJSONObject(){var e={};if(e=Y.copyAttributes(e,this),e.defaultcolor&&e.defaultcolor.toServerJSONObject&&(e.defaultcolor=e.defaultcolor.toServerJSONObject()),e.items){for(var t=[],n=e.items.length,r=0;r<n;r++)t.push(e.items[r].toServerJSONObject());e.items=t}return e}static fromObj(e){var t=new Pi,n=e.items,r=n?n.length:0;Y.extend(t,e),t.items=[],t.defaultcolor=ye.fromJson(e.defaultcolor);for(var i=0;i<r;i++)t.items.push(Ri.fromObj(n[i]));return t}}o.ThemeGridUnique=Pi;class Mi{constructor(e){this.caption=null,this.unique=null,this.offsetX=0,this.offsetY=0,this.visible=!0,this.style=new Qn,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeLabelUniqueItem"}destroy(){var e=this;e.unique=null,e.caption=null,e.offsetX=null,e.offsetY=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}static fromObj(e){if(e){var t=new Mi;return Y.copy(t,e),t}}}o.ThemeLabelUniqueItem=Mi;class Ni{constructor(e){this.datasetNames=null,this.dataSourceNames=null,this.joinItems=null,this.themes=null,this.displayFilters=null,this.displayOrderBys=null,this.fieldValuesDisplayFilter=null,e&&Y.extend(this,e),this.CLASS_NAME="SuperMap.ThemeParameters"}destroy(){var e=this;if(e.datasetNames=null,e.dataSourceNames=null,e.joinItems){for(let t=0,n=e.joinItems,r=n.length;t<r;t++)n[t].destroy();e.joinItems=null}if(e.themes){for(let t=0,n=e.themes,r=n.length;t<r;t++)n[t].destroy();e.themes=null}}}o.ThemeParameters=Ni;class Li extends Je{constructor(e,t){super(e,t),t&&o.Util.extend(this,t),this.url=Y.urlPathAppend(this.url,"tempLayersSet"),this.CLASS_NAME="SuperMap.ThemeService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Ni){var t=this,n=null;n=t.getJsonParameters(e),t.request({method:"POST",data:n,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}getJsonParameters(e){var t,n="",r=null,i=null,o=null;n+="[{'type': 'UGC','subLayers': {'layers': [";for(var a=0;a<e.themes.length;a++){r=e.themes[a];var s=Y.toJSON(r);if(s=s.slice(0,-1),n+="{'theme': "+s+"},'type': 'UGC','ugcLayerType': 'THEME',",i=e.displayFilters,i&&i.length>0&&(1===i.length?n+="'displayFilter':\""+i[0]+'",':n+="'displayFilter':\""+i[a]+'",'),o=e.displayOrderBy,o&&o.length>0&&(1===o.length?n+="'displayOrderBy':'"+o[0]+"',":n+="'displayOrderBy':'"+o[a]+"',"),t=e.fieldValuesDisplayFilter,t&&(n+="'fieldValuesDisplayFilter':"+Y.toJSON(t)+","),e.joinItems&&e.joinItems.length>0&&e.joinItems[a]&&(n+="'joinItems':["+Y.toJSON(e.joinItems[a])+"],"),e.datasetNames&&e.dataSourceNames){var l=e.datasetNames[a]?a:e.datasetNames.length-1,c=e.dataSourceNames[a]?a:e.dataSourceNames.length-1;n+="'datasetInfo': {'name': '"+e.datasetNames[l]+"','dataSourceName': '"+e.dataSourceNames[c]+"'}},"}else n+="},"}e.themes&&e.themes.length>0&&(n=n.substring(0,n.length-1)),n+="]},";var u=this.url.split("/"),d=u[u.length-2];return n+="'name': '"+d+"'}]",n}}o.ThemeService=Li;class Di extends it{constructor(e,t){super(e,t),this.mode=null,t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.ThiessenAnalystService"}destroy(){super.destroy(),this.mode=null}processAsync(e){var t={},n=this;e instanceof Vt?(n.mode="datasets",n.url=Y.urlPathAppend(n.url,"datasets/"+e.dataset+"/thiessenpolygon"),Vt.toObject(e,t)):e instanceof Rn&&(n.mode="geometry",n.url=Y.urlPathAppend(n.url,"geometry/thiessenpolygon"),Rn.toObject(e,t));var r=Y.toJSON(t);n.url=Y.urlAppend(n.url,"returnContent=true"),n.request({method:"POST",data:r,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}o.ThiessenAnalystService=Di;class ji extends it{constructor(e,t){super(e,t),t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.GeometryBatchAnalystService"}processAsync(e){var t=this;t.url=Y.urlPathAppend(t.url,"geometry/batchanalyst"),t.url=Y.urlAppend(t.url,"returnContent=true&ignoreAnalystParam=true");var n=t._processParams(e),r=Y.toJSON(n);t.request({method:"POST",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}_processParams(e){var t=this;if(Y.isArray(e)){var n=[];return e.map((function(e){return n.push(t._toJSON(e)),e})),n}}_toJSON(e){var t={};if("buffer"===e.analystName)t.analystName="buffer",t.param={},mt.toObject(e.param,t.param);else if("overlay"===e.analystName)t.analystName="overlay",t.param={},In.toObject(e.param,t.param);else if("interpolationDensity"===e.analystName)t.analystName="interpolationDensity",t.param={},Tr.toObject(e.param,t.param);else if("interpolationidw"===e.analystName)t.analystName="interpolationidw",t.param={},Tr.toObject(e.param,t.param);else if("interpolationRBF"===e.analystName)t.analystName="interpolationRBF",t.param={},Tr.toObject(e.param,t.param);else if("interpolationKriging"===e.analystName)t.analystName="interpolationKriging",t.param={},Tr.toObject(e.param,t.param);else{if("thiessenpolygon"!==e.analystName)return e;t.analystName="thiessenpolygon",t.param={},Rn.toObject(e.param,t.param)}return t}destroy(){super.destroy()}}o.GeometryBatchAnalystService=ji;class Fi extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TilesetsService"}destroy(){super.destroy()}processAsync(){if(this.url){var e=this;e.url=Y.urlPathAppend(e.url,"tilesets"),e.request({method:"GET",scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}o.TilesetsService=Fi;class Bi{constructor(e){e&&(this.datasetName="",this.datasetTopology="",this.tolerance="",this.rule=z.REGIONNOOVERLAP,this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.TopologyValidatorJobsParameter")}destroy(){this.datasetName=null,this.datasetTopology=null,this.tolerance=null,this.rule=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"output"!==n?(t["analyst"]=t["analyst"]||{},t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.TopologyValidatorJobsParameter=Bi;class qi extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/topologyvalidator"),this.CLASS_NAME="SuperMap.TopologyValidatorJobsService"}destroy(){super.destroy()}getTopologyValidatorJobs(){super.getJobs(this.url)}getTopologyValidatorJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addTopologyValidatorJob(e,t){super.addJob(this.url,e,Bi,t)}}o.TopologyValidatorJobsService=qi;class zi{constructor(e){e=e||{},this.lineID=null,this.lineName=null,this.lineAliasName=null,this.startStopIndex=null,this.startStopName=null,this.startStopAliasName=null,this.endStopIndex=null,this.endStopName=null,this.endStopAliasName=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.TransferLine"}destroy(){Y.reset(this)}static fromJson(e){if(e)return new zi({lineID:e["lineID"],lineName:e["lineName"],lineAliasName:e["lineAliasName"],startStopIndex:e["startStopIndex"],startStopName:e["startStopName"],startStopAliasName:e["startStopAliasName"],endStopIndex:e["endStopIndex"],endStopName:e["endStopName"],endStopAliasName:e["endStopAliasName"]})}}o.TransferLine=zi;class Ui{constructor(e){e=e||{},this.transferLines=null,this.points=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.TransferPathParameters"}destroy(){Y.reset(this)}static toJson(e){if(e)return Y.toJSON(e)}}o.TransferPathParameters=Ui;class Gi extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TransferPathService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Ui){var t,n=this,r="GET";n.url=Y.urlPathAppend(n.url,"path"),t={points:Y.toJSON(e.points),transferLines:Y.toJSON(e["transferLines"])},n.request({method:r,params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}o.TransferPathService=Gi;class Vi{constructor(e){e=e||{},this.solutionCount=6,this.transferPreference=P.NONE,this.transferTactic=R.LESS_TIME,this.walkingRatio=null,this.points=!1,this.evadeLines=null,this.evadeStops=null,this.priorLines=null,this.priorStops=null,this.travelTime=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.TransferSolutionParameters"}destroy(){Y.reset(this)}static toJson(e){if(e)return Y.toJSON(e)}}o.TransferSolutionParameters=Vi;class Wi extends Je{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.TransferSolutionService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Vi){var t,n=this,r="GET";n.url=Y.urlPathAppend(n.url,"solutions"),t={points:Y.toJSON(e.points),walkingRatio:e["walkingRatio"],transferTactic:e["transferTactic"],solutionCount:e["solutionCount"],transferPreference:e["transferPreference"]},e.evadeLines&&(t["evadeLines"]=Y.toJSON(e.evadeLines)),e.evadeStops&&(t["evadeStops"]=Y.toJSON(e.evadeStops)),e.priorLines&&(t["priorLines"]=Y.toJSON(e.priorLines)),e.priorStops&&(t["priorStops"]=Y.toJSON(e.priorStops)),e.travelTime&&(t["travelTime"]=e.travelTime),n.request({method:r,params:t,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}o.TransferSolutionService=Wi;class Hi{constructor(e){e&&(this.edgeId="",this.fromNodeId="",this.toNodeId="",this.weightField="",this.edgeWeight="",Y.extend(this,e),this.CLASS_NAME="SuperMap.UpdateEdgeWeightParameters")}destroy(){this.edgeId=null,this.fromNodeId=null,this.toNodeId=null,this.weightField=null,this.edgeWeight=null}}o.UpdateEdgeWeightParameters=Hi;class $i extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.UpdateEdgeWeightService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Hi){var t=this,n=t.parse(e);t.url=Y.urlPathAppend(t.url,n);var r=e.edgeWeight?e.edgeWeight:null;t.request({method:"PUT",scope:t,data:r,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}parse(e){if(e){var t="";for(var n in e)if(""!==e[n]&&"edgeWeight"!==e[n])switch(n){case"edgeId":t+="/edgeweight/"+e[n];break;case"fromNodeId":t+="/fromnode/"+e[n];break;case"toNodeId":t+="/tonode/"+e[n];break;case"weightField":t+="/weightfield/"+e[n];break;default:break}return t}}}o.UpdateEdgeWeightService=$i;class Ki{constructor(e){e&&(this.nodeId="",this.fromEdgeId="",this.toEdgeId="",this.weightField="",this.turnNodeWeight="",Y.extend(this,e),this.CLASS_NAME="SuperMap.UpdateTurnNodeWeightParameters")}destroy(){this.nodeId=null,this.fromEdgeId=null,this.toEdgeId=null,this.weightField=null,this.turnNodeWeight=null}}o.UpdateTurnNodeWeightParameters=Ki;class Xi extends St{constructor(e,t){super(e,t),this.CLASS_NAME="SuperMap.UpdateTurnNodeWeightService"}destroy(){super.destroy()}processAsync(e){if(e instanceof Ki){var t=this,n=t.parse(e);t.url=Y.urlPathAppend(t.url,n);var r=e.turnNodeWeight?e.turnNodeWeight:null;t.request({method:"PUT",scope:t,data:r,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}parse(e){if(e){var t="";for(var n in e)if(""!==e[n]&&"turnNodeWeight"!==e[n])switch(n){case"nodeId":t+="/turnnodeweight/"+e[n];break;case"fromEdgeId":t+="/fromedge/"+e[n];break;case"toEdgeId":t+="/toedge/"+e[n];break;case"weightField":t+="/weightfield/"+e[n];break;default:break}return t}}}o.UpdateTurnNodeWeightService=Xi;class Yi{constructor(e){e=e||{},this.datasetName="",this.datasetVectorClip="",this.geometryClip="",this.mode=D.CLIP,this.output=null,this.mappingParameters=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.VectorClipJobsParameter"}destroy(){this.datasetName=null,this.datasetVectorClip=null,this.geometryClip=null,this.mode=null,this.output instanceof vt&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof yt&&(this.mappingParameters.destroy(),this.mappingParameters=null)}static toObject(e,t){for(var n in e)"datasetName"!==n?"output"!==n?(t["analyst"]=t["analyst"]||{},t["analyst"][n]=e[n],"mappingParameters"===n&&(t["analyst"][n]=t["analyst"][n]||{},t["analyst"]["mappingParameters"]=e[n])):(t["output"]=t["output"]||{},t["output"]=e[n]):(t["input"]=t["input"]||{},t["input"][n]=e[n])}}o.VectorClipJobsParameter=Yi;class Ji extends _t{constructor(e,t){super(e,t),this.url=Y.urlPathAppend(this.url,"spatialanalyst/vectorclip"),this.CLASS_NAME="SuperMap.VectorClipJobsService"}destroy(){super.destroy()}getVectorClipJobs(){super.getJobs(this.url)}getVectorClipJob(e){super.getJobs(Y.urlPathAppend(this.url,e))}addVectorClipJob(e,t){super.addJob(this.url,e,Yi,t)}}o.VectorClipJobsService=Ji;class Qi{constructor(e){e=e||{},this.type=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.RasterFunctionParameter"}destroy(){this.type=null}}o.RasterFunctionParameter=Qi;class Zi extends Qi{constructor(e){super(e),this.redIndex=0,this.nirIndex=1,this.colorMap="0:ffffe5ff;0.1:f7fcb9ff;0.2:d9f0a3ff;0.3:addd8eff;0.4:78c679ff;0.5:41ab5dff;0.6:238443ff;0.7:006837ff;1:004529ff",this.type=V.NDVI,Y.extend(this,e),this.CLASS_NAME="SuperMap.NDVIParameter"}destroy(){super.destroy(),this.redIndex=null,this.nirIndex=null,this.colorMap=null}toJSON(){return{redIndex:this.redIndex,nirIndex:this.nirIndex,colorMap:this.colorMap,type:this.type}}}o.NDVIParameter=Zi;class eo extends Qi{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.zFactor=1,this.type=V.HILLSHADE,Y.extend(this,e),this.CLASS_NAME="SuperMap.HillshadeParameter"}destroy(){super.destroy(),this.altitude=null,this.azimuth=null,this.zFactor=null}toJSON(){return{altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,type:this.type}}}o.HillshadeParameter=eo;class to{constructor(e){this.name=null,this.picAsUrl=null,this.picAsBase64=null,this.CLASS_NAME="SuperMap.WebPrintingJobCustomItems",Y.extend(this,e)}destroy(){var e=this;e.name=null,e.picAsUrl=null,e.picAsBase64=null}toJSON(){var e={name:this.name};return this.title&&(e.title=this.title),this.picAsUrl?e.picAsUrl=this.picAsUrl:this.picAsBase64&&(e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,"")),Y.toJSON(e)}}o.WebPrintingJobCustomItems=to;class no{constructor(e){this.picAsUrl=null,this.picAsBase64=null,this.CLASS_NAME="SuperMap.WebPrintingJobImage",Y.extend(this,e)}destroy(){this.picAsUrl=null,this.picAsBase64=null}toJSON(){var e={};return this.picAsUrl&&(e.picAsUrl=this.picAsUrl),this.picAsBase64&&(e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,"")),Y.toJSON(e)}}o.WebPrintingJobImage=no;class ro{constructor(e){this.name=null,this.layerType=null,this.url=null,this.CLASS_NAME="SuperMap.WebPrintingJobLayers",Y.extend(this,e)}destroy(){this.name=null,this.layerType=null,this.url=null}}o.WebPrintingJobLayers=ro;class io{constructor(e){this.title=null,this.picAsUrl=null,this.picAsBase64=null,this.layers=null,this.customItems=null,this.CLASS_NAME="SuperMap.WebPrintingJobLegendOptions",Y.extend(this,e)}destroy(){this.title=null,this.picAsUrl=null,this.picAsBase64=null,this.layers instanceof ro&&(this.layers.destroy(),this.layers=null),this.customItems instanceof to&&(this.customItems.destroy(),this.customItems=null)}toJSON(){var e={title:this.title||""};return this.picAsUrl?e.picAsUrl=this.picAsUrl:this.picAsBase64?e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,""):this.customItems&&(e.customItems=this.customItems),Y.toJSON(e)}}o.WebPrintingJobLegendOptions=io;class oo{constructor(e){this.center=null,this.scale=null,this.layerNames=null,this.image=null,this.layers=null,this.CLASS_NAME="SuperMap.WebPrintingJobLittleMapOptions",Y.extend(this,e)}destroy(){this.center=null,this.scale=null,this.layerNames=null,this.image instanceof no&&(this.image.destroy(),this.image=null),this.layers instanceof ro&&(this.layers.destroy(),this.layers=null)}toJSON(){var e={scale:this.scale,center:this.center};return this.layerNames?e.layerNames=this.layerNames:this.layers&&(e.layers=this.layers),this.image&&(e.image=this.image),Y.toJSON(e)}}o.WebPrintingJobLittleMapOptions=oo;class ao{constructor(e){this.picAsUrl=null,this.picAsBase64=null,this.CLASS_NAME="SuperMap.WebPrintingJobNorthArrowOptions",Y.extend(this,e)}destroy(){this.picAsUrl=null,this.picAsBase64=null}toJSON(){var e={};return this.picAsUrl?e.picAsUrl=this.picAsUrl:this.picAsBase64&&(e.picAsBase64=this.picAsBase64.replace(/^data:.+;base64,/,"")),Y.toJSON(e)}}o.WebPrintingJobNorthArrowOptions=ao;class so{constructor(e){this.scaleText=null,this.orientation=null,this.type=null,this.intervals=null,this.unit=null,this.CLASS_NAME="SuperMap.WebPrintingJobScaleBarOptions",Y.extend(this,e)}destroy(){this.scaleText=null,this.orientation=null,this.type=null,this.intervals=null,this.unit=null}toJSON(){var e={scaleText:this.scaleText||"",type:this.type||"BAR",intervals:this.intervals||"",unit:this.unit||"METER"};return this.orientation&&(e.orientation=this.orientation),Y.toJSON(e)}}o.WebPrintingJobScaleBarOptions=so;class lo{constructor(e){this.type=null,this.url=null,this.token=null,this.value=null,this.CLASS_NAME="SuperMap.WebPrintingJobContent",Y.extend(this,e)}destroy(){this.type="WEBMAP",this.url=null,this.token=null,this.value=null}toJSON(){var e={type:this.type};return this.token&&(e.token=this.token),this.url?e.url=this.url:this.value&&(e.value=this.value),Y.toJSON(e)}}o.WebPrintingJobContent=lo;class co{constructor(e){this.templateName=null,this.title=null,this.subTitle=null,this.author=null,this.copyright=null,this.scaleBarOptions=null,this.northArrowOptions=null,this.littleMapOptions=null,this.legendOptions=null,this.CLASS_NAME="SuperMap.WebPrintingJobLayoutOptions",Y.extend(this,e)}destroy(){this.templateName=null,this.title=null,this.subTitle=null,this.author=null,this.copyright=null,this.scaleBarOptions instanceof so&&(this.scaleBarOptions.destroy(),this.scaleBarOptions=null),this.northArrowOptions instanceof ao&&(this.northArrowOptions.destroy(),this.northArrowOptions=null),this.littleMapOptions instanceof oo&&(this.littleMapOptions.destroy(),this.littleMapOptions=null),this.legendOptions instanceof io&&(this.legendOptions.destroy(),this.legendOptions=null)}toJSON(){var e={templateName:this.templateName,title:this.title,subTitle:this.subTitle,author:this.author,copyright:this.copyright};return this.scaleBarOptions&&(e.scaleBarOptions=this.scaleBarOptions),this.northArrowOptions&&(e.northArrowOptions=this.northArrowOptions),this.littleMapOptions&&(e.littleMapOptions=this.littleMapOptions),this.legendOptions&&(e.legendOptions=this.legendOptions),Y.toJSON(e)}}o.WebPrintingJobLayoutOptions=co;class uo{constructor(e){this.format=null,this.dpi=96,this.scale=null,this.rotation=null,this.center=null,this.CLASS_NAME="SuperMap.WebPrintingJobExportOptions",Y.extend(this,e)}destroy(){this.format=null,this.dpi=null,this.scale=null,this.rotation=null,this.center=null,this.outputSize=null}toJSON(){var e={format:this.format||"PDF",dpi:this.dpi,scale:this.scale,center:this.center};return this.rotation&&(e.rotation=this.rotation),this.outputSize&&(e.outputSize=this.outputSize),Y.toJSON(e)}}o.WebPrintingJobExportOptions=uo;class fo{constructor(e){e&&(this.content=null,this.layoutOptions=null,this.exportOptions=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.WebPrintingJobParameters")}destroy(){this.content instanceof lo&&(this.content.destroy(),this.content=null),this.layoutOptions instanceof co&&(this.layoutOptions.destroy(),this.layoutOptions=null),this.exportOptions instanceof uo&&(this.exportOptions.destroy(),this.exportOptions=null)}}o.WebPrintingJobParameters=fo;class ho extends Je{constructor(e,t){super(e,t),t&&Y.extend(this,t),this.CLASS_NAME="SuperMap.WebPrintingService",this.url}destroy(){super.destroy()}createWebPrintingJob(e){if(e){e.layoutOptions&&e.layoutOptions.legendOptions&&(!e.layoutOptions.legendOptions.title&&(e.layoutOptions.legendOptions.title=""),e.layoutOptions.legendOptions.picAsBase64=e.layoutOptions.legendOptions.picAsBase64&&e.layoutOptions.legendOptions.picAsBase64.replace(/^data:.+;base64,/,""),e.layoutOptions.legendOptions.customItems&&e.layoutOptions.legendOptions.customItems.hasOwnProperty("picAsBase64")&&(e.layoutOptions.legendOptions.customItems.picAsBase64=e.layoutOptions.legendOptions.customItems.picAsBase64.replace(/^data:.+;base64,/,"")));var t=this;t.request({url:t._processUrl("jobs"),method:"POST",data:Y.toJSON(e),scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}getPrintingJob(e){var t=this,n=t._processUrl("jobs/"+e);t.request({url:n,method:"GET",scope:t,success:function(e){t.rollingProcess(e,n)},failure:t.serviceProcessFailed})}getPrintingJobResult(e){var t=this;t.request({url:t._processUrl(`jobs/${e}/result`),method:"GET",scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}getLayoutTemplates(){var e=this;e.request({url:e._processUrl("layouts"),method:"GET",scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}rollingProcess(e,t){var n=this;if(e)var r=setInterval((function(){n.request({url:t,method:"GET",scope:n,success:function(e){switch(e.status){case"FINISHED":clearInterval(r),n.serviceProcessCompleted(e);break;case"ERROR":clearInterval(r),n.serviceProcessFailed(e);break;case"RUNNING":n.events.triggerEvent("processRunning",e);break}},failure:n.serviceProcessFailed})}),1e3)}_processUrl(e){return e?Y.urlPathAppend(this.url,e):this.url}}o.WebPrintingService=ho;o.ServiceStatus={DOES_NOT_INVOLVE:"DOES_NOT_INVOLVE",PUBLISH_FAILED:"PUBLISH_FAILED",PUBLISHED:"PUBLISHED",PUBLISHING:"PUBLISHING",UNPUBLISHED:"UNPUBLISHED",UNPUBLISHED_FAILED:"UNPUBLISHED_FAILED"},o.DataItemType={AUDIO:"AUDIO",COLOR:"COLOR",COLORSCHEME:"COLORSCHEME",CSV:"CSV",EXCEL:"EXCEL",FILLSYMBOL:"FILLSYMBOL",IMAGE:"IMAGE",LAYERTEMPLATE:"LAYERTEMPLATE",LAYOUTTEMPLATE:"LAYOUTTEMPLATE",LINESYMBOL:"LINESYMBOL",MAPTEMPLATE:"MAPTEMPLATE",MARKERSYMBOL:"MARKERSYMBOL",MBTILES:"MBTILES",PHOTOS:"PHOTOS",SHP:"SHP",SMTILES:"SMTILES",SVTILES:"SVTILES",THEMETEMPLATE:"THEMETEMPLATE",TPK:"TPK",UDB:"UDB",UGCV5:"UGCV5",UNKNOWN:"UNKNOWN",VIDEO:"VIDEO",WORKENVIRONMENT:"WORKENVIRONMENT",WORKSPACE:"WORKSPACE"},o.DataItemOrderBy={FILENAME:"FILENAME",ID:"ID",LASTMODIFIEDTIME:"LASTMODIFIEDTIME",NICKNAME:"NICKNAME",SERVICESTATUS:"SERVICESTATUS",SIZE:"SIZE",STATUS:"STATUS",TYPE:"TYPE",UPDATETIME:"UPDATETIME",USERNAME:"USERNAME"},o.FilterField={LINKPAGE:"LINKPAGE",MAPTITLE:"MAPTITLE",NICKNAME:"NICKNAME",RESTITLE:"RESTITLE",USERNAME:"USERNAME"};class po{constructor(e){e=e||{},Y.extend(this,e),this.serverType=s.ONLINE,this.CLASS_NAME="SuperMap.OnlineServiceBase"}request(e,t,n,r={}){return t=this.createCredentialUrl(t),r["crossOrigin"]=this.options.crossOrigin,r["headers"]=this.options.headers,Pe.commit(e,t,n,r).then((function(e){return e.json()}))}createCredentialUrl(e){var t=e,n=this.getCredential();if(n){var r="key="+n,i=t.substring(t.length-1,t.length);t.indexOf("?")>-1&&"?"===i?t+=r:t.indexOf("?")>-1&&"?"!==i?t+="&"+r:t+="?"+r}return t}getCredential(){}}o.OnlineServiceBase=po;class mo extends po{constructor(e,t){super(e),t=t||{},this.MD5=null,this.type=null,this.userName=null,this.fileName=null,this.size=null,this.serviceStatus=null,this.serviceId=null,this.id=null,this.lastModfiedTime=null,this.status=null,this.storageId=null,this.publishInfo=null,this.authorizeSetting=null,this.nickname=null,this.tags=[],this.description=null,this.dataItemServices=null,this.coordType=null,this.dataCheckResult=null,this.dataMetaInfo=null,this.thumbnail=null,Y.extend(this,t),this.id&&(this.serviceUrl=e+"/"+this.id),this.CLASS_NAME="SuperMap.OnlineData"}load(){if(this.serviceUrl){var e=this;return e.request("GET",this.serviceUrl).then((function(t){Y.extend(e,t)}))}}getPublishedServices(){return this.dataItemServices}getAuthorizeSetting(){return this.authorizeSetting}}o.OnlineData=mo;class go{constructor(){this.rootUrl="https://www.supermapol.com",this.webUrl=this.rootUrl+"/web";var e=this.webUrl+"/mycontent";this.mDatasUrl=e+"/datas",this.CLASS_NAME="SuperMap.Online"}load(){return Pe.get(this.rootUrl).then((function(e){return e}))}login(){Me.loginOnline(this.rootUrl,!0)}queryDatas(e){var t=this,n=t.mDatasUrl;return e&&(e=e.toJSON()),Pe.get(n,e).then((function(e){if(e&&e.content&&!(e.content.length<1)){for(var n=[],r=e.content,i=r.length,o=0;o<i;o++){var a=r[o],s=new mo(t.mDatasUrl,a);n.push(s)}return n}}))}}o.Online=go;class vo{constructor(e){e=e||{},this.userNames=null,this.types=null,this.fileName=null,this.serviceStatuses=null,this.serviceId=null,this.ids=null,this.keywords=null,this.orderBy=null,this.tags=null,this.filterFields=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.OnlineQueryDatasParameter"}toJSON(){var e=this,t={types:e.types,fileName:e.fileName,serviceStatuses:e.serviceStatuses,serviceId:e.serviceId,ids:e.ids,keywords:e.keywords,orderBy:e.orderBy,tags:e.tags,filterFields:e.filterFields};for(var n in t)null==t[n]&&delete t[n];return t}}o.OnlineQueryDatasParameter=vo;class yo{constructor(e){this.name=null,this.serviceIds=null,this.clientType=L.SERVER,this.limitation=null,Y.extend(this,e),this.CLASS_NAME="SuperMap.KeyServiceParameter"}toJSON(){return{name:this.name,serviceIds:this.serviceIds,clientType:this.clientType,limitation:this.limitation}}}o.KeyServiceParameter=yo;class bo{constructor(e,t){this.type=e,this.server=null,this.tokenServiceUrl=null,this.keyServiceUrl=null,Y.extend(this,t),this.CLASS_NAME="SuperMap.ServerInfo",this.type=this.type||s.ISERVER,this.server||console.error("server url require is not  undefined");var n="/services/security/tokens";this.type===s.ISERVER&&this.server.indexOf("iserver")<0&&(n="/iserver"+n),this.tokenServiceUrl||(this.tokenServiceUrl=Y.urlPathAppend(this.server,n)),this.keyServiceUrl||(this.type===s.IPORTAL?this.keyServiceUrl=Y.urlPathAppend(this.server,"/web/mycontent/keys/register"):this.type===s.ONLINE&&(this.keyServiceUrl=Y.urlPathAppend(this.server,"/web/mycontent/keys")))}}o.ServerInfo=bo;class _o{constructor(e){this.userName=null,this.password=null,this.clientType=L.NONE,this.ip=null,this.referer=null,this.expiration=60,Y.extend(this,e),this.CLASS_NAME="SuperMap.TokenServiceParameter"}toJSON(){return{userName:this.userName,password:this.password,clientType:this.clientType,ip:this.ip,referer:this.referer,expiration:this.expiration}}}o.TokenServiceParameter=_o;var wo=n("f94d"),xo=n.n(wo);class So{constructor(e,t){t=t||{},this.url=e,this.client=new xo.a.Client({host:this.url}),this.change=null,this.openGeoFence=!1,this.outOfGeoFence=null,this.geoFence=null,this.EVENT_TYPES=["change","error","outOfGeoFence"],this.events=new he(this,null,this.EVENT_TYPES),this.eventListeners=null,Y.extend(this,t),this.eventListeners instanceof Object&&this.events.on(this.eventListeners)}setGeoFence(e){this.geoFence=e}bulk(e,t){return this.client.bulk(e,t)}clearScroll(e,t){return this.client.clearScroll(e,t)}count(e,t){return this.client.count(e,t)}create(e,t){return this.client.create(e,t)}delete(e,t){return this.client.delete(e,t)}deleteByQuery(e,t){return this.client.deleteByQuery(e,t)}deleteScript(e,t){return this.client.deleteScript(e,t)}deleteTemplate(e,t){return this.client.deleteTemplate(e,t)}exists(e,t){return this.client.exists(e,t)}existsSource(e,t){return this.client.existsSource(e,t)}explain(e,t){return this.client.explain(e,t)}fieldCaps(e,t){return this.client.fieldCaps(e,t)}get(e,t){return this.client.get(e,t)}getScript(e,t){return this.client.getScript(e,t)}getSource(e,t){return this.client.getSource(e,t)}getTemplate(e,t){return this.client.getTemplate(e,t)}index(e,t){return this.client.index(e,t)}info(e,t){return this.client.info(e,t)}mget(e,t){return this.client.mget(e,t)}msearch(e,t){let n=this;return n.client.msearch(e).then((function(e){return n._update(e.responses,t),e}),(function(e){return t(e),n.events.triggerEvent("error",{error:e}),e}))}msearchTemplate(e,t){return this.client.msearchTemplate(e,t)}mtermvectors(e,t){return this.client.mtermvectors(e,t)}ping(e,t){return this.client.ping(e,t)}putScript(e,t){return this.client.putScript(e,t)}putTemplate(e,t){return this.client.putTemplate(e,t)}reindex(e,t){return this.client.reindex(e,t)}reindexRessrottle(e,t){return this.client.reindexRessrottle(e,t)}renderSearchTemplate(e,t){return this.client.renderSearchTemplate(e,t)}scroll(e,t){return this.client.scroll(e,t)}search(e,t){let n=this;return n.client.search(e).then((function(e){return n._update(e.responses,t),e}),(function(e){return t(e),n.events.triggerEvent("error",{error:e}),e}))}searchShards(e,t){return this.client.searchShards(e,t)}searchTemplate(e,t){return this.client.searchTemplate(e,t)}suggest(e,t){return this.client.suggest(e,t)}termvectors(e,t){return this.client.termvectors(e,t)}update(e,t){return this.client.update(e,t)}updateByQuery(e,t){return this.client.updateByQuery(e,t)}_update(e,t){let n=this;e&&(n.data=e,n.openGeoFence&&n.geoFence&&n._validateDatas(e),n.events.triggerEvent("change",{data:n.data}),n.change?n.change&&n.change(e):t&&t(void 0,{responses:e}))}_validateDatas(e){if(e){e instanceof Array||(e=[e]);var t,n=e.length;for(t=0;t<n;t++)this._validateData(e[t])}}_validateData(e){let t=this;e.hits.hits.map((function(n){let r=n._source,i=t._getMeterPerMapUnit(t.geoFence.unit),o=t.geoFence.center[0]*i,a=t.geoFence.center[1]*i,s=r.x*i,l=r.y*i,c=t._distance(s,l,o,a),u=t.geoFence.radius;return c>u&&(t.outOfGeoFence&&t.outOfGeoFence(e),t.events.triggerEvent("outOfGeoFence",{data:e})),n}))}_distance(e,t,n,r){return Math.sqrt((e-n)*(e-n)+(t-r)*(t-r))}_getMeterPerMapUnit(e){let t,n=6378137;return"meter"===e?t=1:"degree"===e&&(t=2*Math.PI*n/360),t}}o.ElasticSearch=So;class Co{constructor(){this.BUILTIN_OBJECT={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},this._ctx=null,this._canvas=null,this._pixelCtx=null,this._width=null,this._height=null,this._offsetX=0,this._offsetY=0,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Util"}clone(e){var t=this.BUILTIN_OBJECT;if("object"==typeof e&&null!==e){var n=e;if(e instanceof Array){n=[];for(var r=0,i=e.length;r<i;r++)n[r]=this.clone(e[r])}else if(!t[Object.prototype.toString.call(e)])for(var o in n={},e)e.hasOwnProperty(o)&&(n[o]=this.clone(e[o]));return n}return e}mergeItem(e,t,n,r){var i=this.BUILTIN_OBJECT;t.hasOwnProperty(n)&&("object"!=typeof e[n]||i[Object.prototype.toString.call(e[n])]?!r&&n in e||(e[n]=t[n]):this.merge(e[n],t[n],r))}merge(e,t,n){for(var r in t)this.mergeItem(e,t,r,n);return e}getContext(){return this._ctx||(this._ctx=document.createElement("canvas").getContext("2d")),this._ctx}getPixelContext(){return this._pixelCtx||(this._canvas=document.createElement("canvas"),this._width=this._canvas.width,this._height=this._canvas.height,this._pixelCtx=this._canvas.getContext("2d")),this._pixelCtx}adjustCanvasSize(e,t){var n,r=this._canvas,i=this._pixelCtx,o=this._width,a=this._height,s=this._offsetX,l=this._offsetY,c=100;e+s>o&&(o=e+s+c,r.width=o,n=!0),t+l>a&&(a=t+l+c,r.height=a,n=!0),e<-s&&(s=Math.ceil(-e/c)*c,o+=s,r.width=o,n=!0),t<-l&&(l=Math.ceil(-t/c)*c,a+=l,r.height=a,n=!0),n&&i.translate(s,l)}getPixelOffset(){return{x:this._offsetX,y:this._offsetY}}indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}inherits(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)e.prototype[i]=n[i];e.constructor=e}}class Eo{constructor(){this.util=new Co,this._ctx=null,this.palette=["#ff9277"," #dddd00"," #ffc877"," #bbe3ff"," #d5ffbb","#bbbbff"," #ddb000"," #b0dd00"," #e2bbff"," #ffbbe3","#ff7777"," #ff9900"," #83dd00"," #77e3ff"," #778fff","#c877ff"," #ff77ab"," #ff6600"," #aa8800"," #77c7ff","#ad77ff"," #ff77ff"," #dd0083"," #777700"," #00aa00","#0088aa"," #8400dd"," #aa0088"," #dd0000"," #772e00"],this._palette=this.palette,this.highlightColor="rgba(0,0,255,1)",this._highlightColor=this.highlightColor,this.colorRegExp=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,this._nameColors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Color"}customPalette(e){this.palette=e}resetPalette(){this.palette=this._palette}getColor(e,t){return e|=0,t=t||this.palette,t[e%t.length]}customHighlight(e){this.highlightColor=e}resetHighlight(){this.highlightColor=this._highlightColor}getHighlightColor(){return this.highlightColor}getRadialGradient(e,t,n,r,i,o,a){var s=this.util;this._ctx||(this._ctx=s.getContext());for(var l=this._ctx.createRadialGradient(e,t,n,r,i,o),c=0,u=a.length;c<u;c++)l.addColorStop(a[c][0],a[c][1]);return l.__nonRecursion=!0,l}getLinearGradient(e,t,n,r,i){var o=this.util;this._ctx||(this._ctx=o.getContext());for(var a=this._ctx.createLinearGradient(e,t,n,r),s=0,l=i.length;s<l;s++)a.addColorStop(i[s][0],i[s][1]);return a.__nonRecursion=!0,a}getStepColors(e,t,n){e=this.toRGBA(e),t=this.toRGBA(t),e=this.getData(e),t=this.getData(t);for(var r=[],i=(t[0]-e[0])/n,o=(t[1]-e[1])/n,a=(t[2]-e[2])/n,s=(t[3]-e[3])/n,l=0,c=e[0],u=e[1],d=e[2],f=e[3];l<n;l++)r[l]=this.toColor([this.adjust(Math.floor(c),[0,255]),this.adjust(Math.floor(u),[0,255]),this.adjust(Math.floor(d),[0,255]),f.toFixed(4)-0],"rgba"),c+=i,u+=o,d+=a,f+=s;return c=t[0],u=t[1],d=t[2],f=t[3],r[l]=this.toColor([c,u,d,f],"rgba"),r}getGradientColors(e,t){var n=[],r=e.length;if(void 0===t&&(t=20),1===r)n=this.getStepColors(e[0],e[0],t);else if(r>1)for(var i=0,o=r-1;i<o;i++){var a=this.getStepColors(e[i],e[i+1],t);i<o-1&&a.pop(),n=n.concat(a)}return n}toColor(e,t){if(t=t||"rgb",e&&(3===e.length||4===e.length)){if(e=this.map(e,(function(e){return e>1?Math.ceil(e):e})),t.indexOf("hex")>-1)return"#"+((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1);if(t.indexOf("hs")>-1){var n=this.map(e.slice(1,3),(function(e){return e+"%"}));e[1]=n[0],e[2]=n[1]}return t.indexOf("a")>-1?(3===e.length&&e.push(1),e[3]=this.adjust(e[3],[0,1]),t+"("+e.slice(0,4).join(",")+")"):t+"("+e.slice(0,3).join(",")+")"}}toArray(e){e=this.trim(e),e.indexOf("rgba")<0&&(e=this.toRGBA(e));var t=[],n=0;return e.replace(/[\d.]+/g,(function(e){n<3?e|=0:e=+e,t[n++]=e})),t}convert(e,t){if(!this.isCalculableColor(e))return e;var n=this.getData(e),r=n[3];return"undefined"===typeof r&&(r=1),e.indexOf("hsb")>-1?n=this._HSV_2_RGB(n):e.indexOf("hsl")>-1&&(n=this._HSL_2_RGB(n)),t.indexOf("hsb")>-1||t.indexOf("hsv")>-1?n=this._RGB_2_HSB(n):t.indexOf("hsl")>-1&&(n=this._RGB_2_HSL(n)),n[3]=r,this.toColor(n,t)}toRGBA(e){return this.convert(e,"rgba")}toRGB(e){return this.convert(e,"rgb")}toHex(e){return this.convert(e,"hex")}toHSVA(e){return this.convert(e,"hsva")}toHSV(e){return this.convert(e,"hsv")}toHSBA(e){return this.convert(e,"hsba")}toHSB(e){return this.convert(e,"hsb")}toHSLA(e){return this.convert(e,"hsla")}toHSL(e){return this.convert(e,"hsl")}toName(e){for(var t in this._nameColors)if(this.toHex(this._nameColors[t])===this.toHex(e))return t;return null}trim(e){return String(e).replace(/\s+/g,"")}normalize(e){if(this._nameColors[e]&&(e=this._nameColors[e]),e=this.trim(e),e=e.replace(/hsv/i,"hsb"),/^#[\da-f]{3}$/i.test(e)){e=parseInt(e.slice(1),16);var t=(3840&e)<<8,n=(240&e)<<4,r=15&e;e="#"+((1<<24)+(t<<4)+t+(n<<4)+n+(r<<4)+r).toString(16).slice(1)}return e}lift(e,t){if(!this.isCalculableColor(e))return e;var n=t>0?1:-1;"undefined"===typeof t&&(t=0),t=Math.abs(t)>1?1:Math.abs(t),e=this.toRGB(e);for(var r=this.getData(e),i=0;i<3;i++)r[i]=1===n?r[i]*(1-t)|0:(255-r[i])*t+r[i]|0;return"rgb("+r.join(",")+")"}reverse(e){if(!this.isCalculableColor(e))return e;var t=this.getData(this.toRGBA(e));return t=this.map(t,(function(e){return 255-e})),this.toColor(t,"rgb")}mix(e,t,n){if(!this.isCalculableColor(e)||!this.isCalculableColor(t))return e;"undefined"===typeof n&&(n=.5),n=1-this.adjust(n,[0,1]);for(var r=2*n-1,i=this.getData(this.toRGBA(e)),o=this.getData(this.toRGBA(t)),a=i[3]-o[3],s=((r*a===-1?r:(r+a)/(1+r*a))+1)/2,l=1-s,c=[],u=0;u<3;u++)c[u]=i[u]*s+o[u]*l;var d=i[3]*n+o[3]*(1-n);return d=Math.max(0,Math.min(1,d)),1===i[3]&&1===o[3]?this.toColor(c,"rgb"):(c[3]=d,this.toColor(c,"rgba"))}random(){return"#"+Math.random().toString(16).slice(2,8)}getData(e){e=this.normalize(e);var t,n,r=e.match(this.colorRegExp);if(null===r)throw new Error("The color format error");var i,o=[];if(r[2])t=r[2].replace("#","").split(""),i=[t[0]+t[1],t[2]+t[3],t[4]+t[5]],o=this.map(i,(function(e){return Eo.prototype.adjust.call(this,parseInt(e,16),[0,255])}));else if(r[4]){var a=r[4].split(",");n=a[3],i=a.slice(0,3),o=this.map(i,(function(e){return e=Math.floor(e.indexOf("%")>0?2.55*parseInt(e,0):e),Eo.prototype.adjust.call(this,e,[0,255])})),"undefined"!==typeof n&&o.push(this.adjust(parseFloat(n),[0,1]))}else if(r[5]||r[6]){var s=(r[5]||r[6]).split(","),l=parseInt(s[0],0)/360,c=s[1],u=s[2];n=s[3],o=this.map([c,u],(function(e){return Eo.prototype.adjust.call(this,parseFloat(e)/100,[0,1])})),o.unshift(l),"undefined"!==typeof n&&o.push(this.adjust(parseFloat(n),[0,1]))}return o}alpha(e,t){if(!this.isCalculableColor(e))return e;null===t&&(t=1);var n=this.getData(this.toRGBA(e));return n[3]=this.adjust(Number(t).toFixed(4),[0,1]),this.toColor(n,"rgba")}map(e,t){if("function"!==typeof t)throw new TypeError;for(var n=e?e.length:0,r=0;r<n;r++)e[r]=t(e[r]);return e}adjust(e,t){return e<=t[0]?e=t[0]:e>=t[1]&&(e=t[1]),e}isCalculableColor(e){return e instanceof Array||"string"===typeof e}_HSV_2_RGB(e){var t,n,r,i=e[0],o=e[1],a=e[2];if(0===o)t=255*a,n=255*a,r=255*a;else{var s=6*i;6===s&&(s=0);var l=0|s,c=a*(1-o),u=a*(1-o*(s-l)),d=a*(1-o*(1-(s-l))),f=0,h=0,p=0;0===l?(f=a,h=d,p=c):1===l?(f=u,h=a,p=c):2===l?(f=c,h=a,p=d):3===l?(f=c,h=u,p=a):4===l?(f=d,h=c,p=a):(f=a,h=c,p=u),t=255*f,n=255*h,r=255*p}return[t,n,r]}_HSL_2_RGB(e){var t,n,r,i=e[0],o=e[1],a=e[2];if(0===o)t=255*a,n=255*a,r=255*a;else{var s;s=a<.5?a*(1+o):a+o-o*a;var l=2*a-s;t=255*this._HUE_2_RGB(l,s,i+1/3),n=255*this._HUE_2_RGB(l,s,i),r=255*this._HUE_2_RGB(l,s,i-1/3)}return[t,n,r]}_HUE_2_RGB(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),6*n<1?e+6*(t-e)*n:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}_RGB_2_HSB(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,c=s;if(0===l)t=0,n=0;else{n=l/s;var u=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?t=f-d:i===s?t=1/3+u-f:o===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}return t*=360,n*=100,c*=100,[t,n,c]}_RGB_2_HSL(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?t=f-d:i===s?t=1/3+u-f:o===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}return t*=360,n*=100,c*=100,[t,n,c]}}var ko=new Eo;class Oo{static createCanvas(e,t){var n=document.createElement("canvas");return n.height=e,n.width=t,n.getContext("2d")}static getLinearGradient(e,t,n,r,i){this._ctx||(this._ctx=this.getContext());for(var o=this._ctx.createLinearGradient(e,t,n,r),a=i.length,s=1/(a-1),l=0,c=0;c<a;c++)o.addColorStop(l,i[c]),l+=s;return o.__nonRecursion=!0,o}static getContext(){return this._ctx||(this._ctx=document.createElement("canvas").getContext("2d")),this._ctx}static getStepColors(e,t,n){e=ko.toRGBA(e),t=ko.toRGBA(t),e=ko.getData(e),t=ko.getData(t);for(var r=[],i=(t[0]-e[0])/n,o=(t[1]-e[1])/n,a=(t[2]-e[2])/n,s=(t[3]-e[3])/n,l=0,c=e[0],u=e[1],d=e[2],f=e[3];l<n;l++)r[l]=ko.toColor([ko.adjust(Math.floor(c),[0,255]),ko.adjust(Math.floor(u),[0,255]),ko.adjust(Math.floor(d),[0,255]),f.toFixed(4)-0],"hex"),c+=i,u+=o,d+=a,f+=s;return c=t[0],u=t[1],d=t[2],f=t[3],r[l]=ko.toColor([c,u,d,f],"hex"),r}static getGradientColors(e,t,n){var r,i,o,a=[],s=e.length;if(void 0!==t){if(s>=t)if("RANGE"===n)for(i=0;i<t;i++)a.push(e[i]);else for(i=0;i<t;i++){let t=Math.floor(i/2);if(i%2===0)a.push(e[t]);else{let n=e.length-1-t;a.push(e[n])}}else{for(r=Math.ceil(t/(s-1)),i=0,o=s-1;i<o;i++){var l=this.getStepColors(e[i],e[i+1],r);i<o-1&&l.pop(),a=a.concat(l)}for(var c=a.length-t,u=0,d=0;u<c;u++)a.splice(d+2,1)}return a}}}o.ColorsPickerUtil=Oo;class To{static newInstance(){return this.geostatsInstance||(this.geostatsInstance=new window.geostats),this.geostatsInstance}static getInstance(e){let t=this.newInstance();return t.setSerie(e),t}static getArrayStatistic(e,t){return e.length?"Sum"===t||"求和"===t?this.getSum(e):"Maximum"===t||"最大值"===t?this.getMax(e):"Minimum"===t||"最小值"===t?this.getMin(e):"Average"===t||"平均值"===t?this.getMean(e):"Median"===t||"中位数"===t?this.getMedian(e):"times"===t||"计数"===t?this.getTimes(e):void 0:0}static getArraySegments(e,t,n){if("offset"===t)return this.getEqInterval(e,n);if("jenks"===t)return this.getJenks(e,n);if("square"===t){let t=this.getMin(e);return t>=0&&this.getSqrtInterval(e,n)}if("logarithm"===t){let t=this.getMin(e);return t>0&&this.getGeometricProgression(e,n)}}static getSum(e){return this.getInstance(e).sum()}static getMax(e){return this.getInstance(e).max()}static getMin(e){return this.getInstance(e).min()}static getMean(e){return this.getInstance(e).mean()}static getMedian(e){return this.getInstance(e).median()}static getTimes(e){return e.length}static getEqInterval(e,t){return this.getInstance(e).getClassEqInterval(t)}static getJenks(e,t){return this.getInstance(e).getClassJenks(t)}static getSqrtInterval(e,t){e=e.map((function(e){return Math.sqrt(e)}));let n=this.getInstance(e).getClassEqInterval(t);return n.map((function(e){return e*e}))}static getGeometricProgression(e,t){return this.getInstance(e).getClassGeometricProgression(t)}}o.ArrayStatistic=To;var Io=n("fec4"),Ao=n.n(Io);class Ro{constructor(e){this.env=null,this.parser=null,this.ruleSet=null,this.cartoStr="",this.shaders=null,"string"===typeof e&&(this.cartoStr=e,this.env={frames:[],errors:[],error:function(e){this.errors.push(e)}},this.parser=this.getParser(this.env),this.parse(e),this.shaders=this.toShaders())}getParser(e){var t,n,r,i,a,s,l,c,u,d=this;function f(){i=l[r],a=n,c=n}function h(){l[r]=i,n=a,c=n}function p(){n>c&&(l[r]=l[r].slice(n-c),c=n)}function m(e){var i,o,a,s;if(e instanceof Function)return e.call(u.parsers);if("string"===typeof e)i=t.charAt(n)===e?e:null,o=1,p();else{if(p(),i=e.exec(l[r]),!i)return null;o=i[0].length}if(i){var d=n+=o;s=n+l[r].length-o;while(n<s){if(a=t.charCodeAt(n),32!==a&&10!==a&&9!==a)break;n++}return l[r]=l[r].slice(o+(n-d)),c=n,0===l[r].length&&r<l.length-1&&r++,"string"===typeof i?i:1===i.length?i[0]:i}}function g(e){return"string"===typeof e?t.charAt(n)===e:!!e.test(l[r])}function v(n){var r,i={index:s,filename:e.filename,message:"Parse error.",line:0,column:-1};for(var o in i)0===n[o]&&(n[o]=i[o]);r=n.filename&&d.env.inputs&&d.env.inputs[n.filename]?d.env.inputs[n.filename]:t,n.line=(r.slice(0,n.index).match(/\n/g)||"").length+1;for(var a=n.index;a>=0&&"\n"!==r.charAt(a);a--)n.column++;return new Error([n.filename,n.line,n.column,n.message].join(";"))}return this.env=e=e||{},this.env.filename=this.env.filename||null,this.env.inputs=this.env.inputs||{},u={parse:function(i){var a,u=null;if(n=r=c=s=0,l=[],t=i.replace(/\r\n/g,"\n"),e.filename&&(d.env.inputs[e.filename]=t),l=function(e){for(var n,r,i,o,a=0,s=/(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,l=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,c=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,d=0,f=e[0],h=0;h<t.length;)if(s.lastIndex=h,(n=s.exec(t))&&n.index===h&&(h+=n[0].length,f.push(n[0])),i=t.charAt(h),l.lastIndex=c.lastIndex=h,(n=c.exec(t))&&n.index===h)h+=n[0].length,f.push(n[0]);else if(r||"/"!==i||(o=t.charAt(h+1),"/"!==o&&"*"!==o||!(n=l.exec(t))||n.index!==h)){switch(i){case"{":if(!r){d++,f.push(i);break}case"}":if(!r){d--,f.push(i),e[++a]=f=[];break}case"(":if(!r){r=!0,f.push(i);break}case")":if(r){r=!1,f.push(i);break}default:f.push(i);break}h++}else h+=n[0].length,f.push(n[0]);return 0!==d&&(u={index:h-1,type:"Parse",message:d>0?"missing closing `}`":"missing opening `{`"}),e.map((function(e){return e.join("")}))}([[]]),u)throw v(u);var f=function(e,t){var n=e.specificity,r=t.specificity;return n[0]!=r[0]?r[0]-n[0]:n[1]!=r[1]?r[1]-n[1]:n[2]!=r[2]?r[2]-n[2]:r[3]-n[3]};return a=new o.CartoCSS.Tree.Ruleset([],m(this.parsers.primary)),a.root=!0,a.toList=function(){return function(e){e.error=function(t){e.errors||(e.errors=new Error("")),e.errors.message?e.errors.message+="\n"+v(t).message:e.errors.message=v(t).message},e.frames=e.frames||[];var t=this.flatten([],[],e);return t.sort(f),t}}(),a},parsers:{primary:function(){var e,t=[];while((e=m(this.rule)||m(this.ruleset)||m(this.comment))||m(/^[\s\n]+/)||(e=m(this.invalid)))e&&t.push(e);return t},invalid:function(){var e=m(/^[^;\n]*[;\n]/);if(e)return new o.CartoCSS.Tree.Invalid(e,a)},comment:function(){var e;if("/"===t.charAt(n))return"/"===t.charAt(n+1)?new o.CartoCSS.Tree.Comment(m(/^\/\/.*/),!0):(e=m(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))?new o.CartoCSS.Tree.Comment(e):void 0},entities:{quoted:function(){if('"'===t.charAt(n)||"'"===t.charAt(n)){var e=m(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/);return e?new o.CartoCSS.Tree.Quoted(e[1]||e[2]):void 0}},field:function(){var e="[",t="]";if(m(e)){var n=m(/(^[^\]]+)/);if(m(t))return n?new o.CartoCSS.Tree.Field(n[1]):void 0}},comparison:function(){var e=m(/^=~|=|!=|<=|>=|<|>/);if(e)return e},keyword:function(){var e=m(/^[A-Za-z\u4e00-\u9fa5-]+[A-Za-z-0-9\u4e00-\u9fa5_]*/);if(e)return new o.CartoCSS.Tree.Keyword(e)},call:function(){var e,t;if(e=/^([\w\-]+|%)\(/.exec(l[r])){if(e=e[1],"url"===e)return null;n+=e.length;var i="(",a=")";if(m(i),t=m(this.entities["arguments"]),m(a))return e?new o.CartoCSS.Tree.Call(e,t,n):void 0}},arguments:function(){var e,t=[];while(e=m(this.expression)){t.push(e);var n=",";if(!m(n))break}return t},literal:function(){return m(this.entities.dimension)||m(this.entities.keywordcolor)||m(this.entities.hexcolor)||m(this.entities.quoted)},url:function(){var e;if("u"===t.charAt(n)&&m(/^url\(/)){e=m(this.entities.quoted)||m(this.entities.variable)||m(/^[\-\w%@_match\/.&=:;#+?~]+/)||"";var r=")";return m(r)?new o.CartoCSS.Tree.URL("undefined"!==typeof e.value||e instanceof o.CartoCSS.Tree.Variable?e:new o.CartoCSS.Tree.Quoted(e)):new o.CartoCSS.Tree.Invalid(e,a,"Missing closing ) in URL.")}},variable:function(){var r,i=n;if("@"===t.charAt(n)&&(r=m(/^@[\w-]+/)))return new o.CartoCSS.Tree.Variable(r,i,e.filename)},hexcolor:function(){var e;if("#"===t.charAt(n)&&(e=m(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/)))return new o.CartoCSS.Tree.Color(e[1])},keywordcolor:function(){var e=l[r].match(/^[a-z]+/);if(e&&e[0]in o.CartoCSS.Tree.Reference.data.colors)return new o.CartoCSS.Tree.Color(o.CartoCSS.Tree.Reference.data.colors[m(/^[a-z]+/)])},dimension:function(){var e=t.charCodeAt(n);if(!(e>57||e<45||47===e)){var r=m(/^(-?\d*\.?\d+(?:[eE][-+]?\d+)?)(\%|\w+)?/);return r?new o.CartoCSS.Tree.Dimension(r[1],r[2],a):void 0}}},variable:function(){var e;if("@"===t.charAt(n)&&(e=m(/^(@[\w-]+)\s*:/)))return e[1]},entity:function(){var e=m(this.entities.call)||m(this.entities.literal),t=m(this.entities.field)||m(this.entities.variable),n=m(this.entities.url)||m(this.entities.keyword);return e||t||n},end:function(){var e=";";return m(e)||g("}")},element:function(){var e=m(/^(?:[.#][\w\u4e00-\u9fa5\-]+|\*|Map)/);if(e)return new o.CartoCSS.Tree.Element(e)},attachment:function(){var e=m(/^::([\w\-]+(?:\/[\w\-]+)*)/);if(e)return e[1]},selector:function(){var e,r,i,s,l,c=[],u=new o.CartoCSS.Tree.Filterset,d=[],f=0,h=0;while((i=m(this.element))||(l=m(this.zoom))||(s=m(this.filter))||(e=m(this.attachment))){if(f++,i)c.push(i);else if(l)d.push(l),h++;else if(s){var p=u.add(s);if(p)throw v({message:p,index:n-1});h++}else{if(r)throw v({message:"Encountered second attachment name.",index:n-1});r=e}var g=t.charAt(n);if("{"===g||"}"===g||";"===g||","===g)break}if(f)return new o.CartoCSS.Tree.Selector(u,d,c,r,h,a)},filter:function(){f();var t,n,r,i="[",s="]";if(m(i)&&(t=m(/^[a-zA-Z0-9\-_]+/)||m(this.entities.quoted)||m(this.entities.variable)||m(this.entities.keyword)||m(this.entities.field))&&(t instanceof o.CartoCSS.Tree.Quoted&&(t=new o.CartoCSS.Tree.Field(t.toString())),(n=m(this.entities.comparison))&&(r=m(this.entities.quoted)||m(this.entities.variable)||m(this.entities.dimension)||m(this.entities.keyword)||m(this.entities.field)))){if(!m(s))throw v({message:"Missing closing ] of filter.",index:a-1});return t.is||(t=new o.CartoCSS.Tree.Field(t)),new o.CartoCSS.Tree.Filter(t,n,r,a,e.filename)}},zoom:function(){f();var e,t,n="]";if(m(/^\[\s*zoom/g)&&(e=m(this.entities.comparison))&&(t=m(this.entities.variable)||m(this.entities.dimension))&&m(n))return new o.CartoCSS.Tree.Zoom(e,t,a);h()},block:function(){var e,t="{",n="}";if(m(t)&&(e=m(this.primary))&&m(n))return e},ruleset:function(){var e,t,n=[],r=",";f();while(e=m(this.selector)){n.push(e);while(m(this.comment));if(!m(r))break;while(m(this.comment));}if(e)while(m(this.comment));if(n.length>0&&(t=m(this.block))){if(1===n.length&&n[0].elements.length&&"Map"===n[0].elements[0].value){var i=new o.CartoCSS.Tree.Ruleset(n,t);return i.isMap=!0,i}return new o.CartoCSS.Tree.Ruleset(n,t)}h()},rule:function(){var r,i,l=t.charAt(n);if(f(),"."!==l&&"#"!==l&&(r=m(this.variable)||m(this.property))){if(i=m(this.value),i&&m(this.end))return new o.CartoCSS.Tree.Rule(r,i,a,e.filename);s=n,h()}},font:function(){var e,t=[],n=[],r=",";while(e=m(this.entity))n.push(e);if(t.push(new o.CartoCSS.Tree.Expression(n)),m(r))while(e=m(this.expression))if(t.push(e),!m(r))break;return new o.CartoCSS.Tree.Value(t)},value:function(){var e,t=[],n=",";while(e=m(this.expression))if(t.push(e),!m(n))break;return t.length>1?new o.CartoCSS.Tree.Value(t.map((function(e){return e.value[0]}))):1===t.length?new o.CartoCSS.Tree.Value(t):void 0},sub:function(){var e,t="(",n=")";if(m(t)&&(e=m(this.expression))&&m(n))return e},multiplication:function(){var e,t,n,r,i="/";if(e=m(this.operand)){while((n=m(i)||m("*")||m("%"))&&(t=m(this.operand)))r=new o.CartoCSS.Tree.Operation(n,[r||e,t],a);return r||e}},addition:function(){var e,r,i,s,l="+";if(e=m(this.multiplication)){while((i=m(/^[-+]\s+/)||" "!=t.charAt(n-1)&&(m(l)||m("-")))&&(r=m(this.multiplication)))s=new o.CartoCSS.Tree.Operation(i,[s||e,r],a);return s||e}},operand:function(){return m(this.sub)||m(this.entity)},expression:function(){var e,t=[];while(e=m(this.addition)||m(this.entity))t.push(e);if(t.length>0)return new o.CartoCSS.Tree.Expression(t)},property:function(){var e=m(/^(([a-z][-a-z_0-9]*\/)?\*?-?[-a-z_0-9]+)\s*:/);if(e)return e[1]}}},u}parse(e){var t=this.parser,n=this.ruleSet=t.parse(e);return n}toShaders(){if(this.ruleSet){var e=this.ruleSet;if(e){var t=e.toList(this.env);t.reverse();var n={},r=[];this._toShaders(n,r,t);for(var i=[],o={},a=0,s=t.length;a<s;++a){var l=t[a],c=l.attachment,u=n[r[a]],d=[];if(!o[c]){var f=0;for(var h in u)if("zoom"!==h&&"frames"!==h&&"attachment"!==h&&"elements"!=h)if("layer-index"===h){var p=function(e,t){var n=null;return u[h].join("\n"),n},m=p();Object.defineProperty(d,"layerIndex",{configurable:!0,enumerable:!1,value:m})}else d[f++]=function(e,t){if(!Array.isArray(e))return e;var n=e.join("\n"),r='attributes["FEATUREID"]&&attributes["FEATUREID"]',i=n.indexOf(r);if(i>=0){if(!t.featureFilter){var o=i+r.length,a=n.indexOf(")",o+1),s="featureId&&(featureId"+n.substring(o,a)+")",l=function(e){return!!s};Object.defineProperty(t,"featureFilter",{configurable:!0,enumerable:!1,value:l})}return{property:h,getValue:Function("attributes","zoom","seftFilter","var _value = null; var isExcute=typeof seftFilter=='function'?sefgFilter():seftFilter;if(isExcute){"+n+";} return _value; ")}}return{property:h,getValue:Function("attributes","zoom","var _value = null;"+n+"; return _value; ")}}(u[h],d);Object.defineProperty(d,"attachment",{configurable:!0,enumerable:!1,value:c}),Object.defineProperty(d,"elements",{configurable:!0,enumerable:!1,value:l.elements}),i.push(d),o[r[a]]=!0}Object.defineProperty(d,"zoom",{configurable:!0,enumerable:!1,value:l.zoom})}return i}}return null}_toShaders(e,t,n){for(let r=0,i=n.length;r<i;++r){let i=n[r],a=[];for(let e=0,t=i.elements.length;e<t;e++)a.push(i.elements[e]);let s=i.filters.filters,l=[];for(let e in s)l.push(s[e].id);let c=a.join("/")+"::"+i.attachment+"_"+l.join("_");t.push(c);let u=e[c]=e[c]||{};u.zoom=o.CartoCSS.Tree.Zoom.all;let d=i.toJS(this.env);for(let e in d)(u[e]=u[e]||[]).push(d[e].join("\n"))}}getShaders(){return this.shaders}destroy(){this.cartoStr=null,this.env=null,this.ruleSet=null,this.parser=null,this.shaders=null}}o._mapnik_reference_latest={version:"2.1.1",style:{"filter-mode":{type:["all","first"],doc:"Control the processing behavior of Rule filters within a Style. If 'all' is used then all Rules are processed sequentially independent of whether any previous filters matched. If 'first' is used then it means processing ends after the first match (a positive filter evaluation) and no further Rules in the Style are processed ('first' is usually the default for CSS implementations on top of Mapnik to simplify translation from CSS to Mapnik XML)","default-value":"all","default-meaning":"All Rules in a Style are processed whether they have filters or not and whether or not the filter conditions evaluate to true."},"image-filters":{css:"image-filters","default-value":"none","default-meaning":"no filters",type:"functions",functions:[["agg-stack-blur",2],["emboss",0],["blur",0],["gray",0],["sobel",0],["edge-detect",0],["x-gradient",0],["y-gradient",0],["invert",0],["sharpen",0]],doc:"A list of image filters."},"comp-op":{css:"comp-op","default-value":"src-over","default-meaning":"add the current layer on top of other layers",doc:"Composite operation. This defines how this layer should behave relative to layers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]},opacity:{css:"opacity",type:"float",doc:"An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)","default-value":1,"default-meaning":"no separate buffer will be used and no alpha will be applied to the style after rendering"}},layer:{name:{"default-value":"",type:"string",required:!0,"default-meaning":"No layer name has been provided",doc:"The name of a layer. Can be anything you wish and is not strictly validated, but ideally unique  in the map"},srs:{"default-value":"",type:"string","default-meaning":"No srs value is provided and the value will be inherited from the Map's srs",doc:"The spatial reference system definition for the layer, aka the projection. Can either be a proj4 literal string like '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' or, if the proper proj4 epsg/nad/etc identifier files are installed, a string that uses an id like: '+init=epsg:4326'"},status:{"default-value":!0,type:"boolean","default-meaning":"This layer will be marked as active and available for processing",doc:"A property that can be set to false to disable this layer from being processed"},minzoom:{"default-value":"0",type:"float","default-meaning":"The layer will be visible at the minimum possible scale",doc:"The minimum scale denominator that this layer will be visible at. A layer's visibility is determined by whether its status is true and if the Map scale >= minzoom - 1e-6 and scale < maxzoom + 1e-6"},maxzoom:{"default-value":"1.79769e+308",type:"float","default-meaning":"The layer will be visible at the maximum possible scale",doc:"The maximum scale denominator that this layer will be visible at. The default is the numeric limit of the C++ double type, which may vary slightly by system, but is likely a massive number like 1.79769e+308 and ensures that this layer will always be visible unless the value is reduced. A layer's visibility is determined by whether its status is true and if the Map scale >= minzoom - 1e-6 and scale < maxzoom + 1e-6"},queryable:{"default-value":!1,type:"boolean","default-meaning":"The layer will not be available for the direct querying of data values",doc:"This property was added for GetFeatureInfo/WMS compatibility and is rarely used. It is off by default meaning that in a WMS context the layer will not be able to be queried unless the property is explicitly set to true"},"clear-label-cache":{"default-value":!1,type:"boolean","default-meaning":"The renderer's collision detector cache (used for avoiding duplicate labels and overlapping markers) will not be cleared immediately before processing this layer",doc:"This property, by default off, can be enabled to allow a user to clear the collision detector cache before a given layer is processed. This may be desirable to ensure that a given layers data shows up on the map even if it normally would not because of collisions with previously rendered labels or markers"},"group-by":{"default-value":"",type:"string","default-meaning":"No special layer grouping will be used during rendering",doc:"https://github.com/mapnik/mapnik/wiki/Grouped-rendering"},"buffer-size":{"default-value":"0",type:"float","default-meaning":"No buffer will be used",doc:"Extra tolerance around the Layer extent (in pixels) used to when querying and (potentially) clipping the layer data during rendering"},"maximum-extent":{"default-value":"none",type:"bbox","default-meaning":"No clipping extent will be used",doc:"An extent to be used to limit the bounds used to query this specific layer data during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Layer."}},symbolizers:{"*":{"image-filters":{css:"image-filters","default-value":"none","default-meaning":"no filters",type:"functions",functions:[["agg-stack-blur",2],["emboss",0],["blur",0],["gray",0],["sobel",0],["edge-detect",0],["x-gradient",0],["y-gradient",0],["invert",0],["sharpen",0]],doc:"A list of image filters."},"comp-op":{css:"comp-op","default-value":"src-over","default-meaning":"add the current layer on top of other layers",doc:"Composite operation. This defines how this layer should behave relative to layers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]},opacity:{css:"opacity",type:"float",doc:"An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)","default-value":1,"default-meaning":"no separate buffer will be used and no alpha will be applied to the style after rendering"}},map:{"background-color":{css:"background-color","default-value":"none","default-meaning":"transparent",type:"color",doc:"Map Background color"},"background-image":{css:"background-image",type:"uri","default-value":"","default-meaning":"transparent",doc:"An image that is repeated below all features on a map as a background.",description:"Map Background image"},srs:{css:"srs",type:"string","default-value":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs","default-meaning":"The proj4 literal of EPSG:4326 is assumed to be the Map's spatial reference and all data from layers within this map will be plotted using this coordinate system. If any layers do not declare an srs value then they will be assumed to be in the same srs as the Map and not transformations will be needed to plot them in the Map's coordinate space",doc:"Map spatial reference (proj4 string)"},"buffer-size":{css:"buffer-size","default-value":"0",type:"float","default-meaning":"No buffer will be used",doc:'Extra tolerance around the map (in pixels) used to ensure labels crossing tile boundaries are equally rendered in each tile (e.g. cut in each tile). Not intended to be used in combination with "avoid-edges".'},"maximum-extent":{css:"","default-value":"none",type:"bbox","default-meaning":"No clipping extent will be used",doc:"An extent to be used to limit the bounds used to query all layers during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Map."},base:{css:"base","default-value":"","default-meaning":"This base path defaults to an empty string meaning that any relative paths to files referenced in styles or layers will be interpreted relative to the application process.",type:"string",doc:"Any relative paths used to reference files will be understood as relative to this directory path if the map is loaded from an in memory object rather than from the filesystem. If the map is loaded from the filesystem and this option is not provided it will be set to the directory of the stylesheet."},"paths-from-xml":{css:"","default-value":!0,"default-meaning":"Paths read from XML will be interpreted from the location of the XML",type:"boolean",doc:"value to control whether paths in the XML will be interpreted from the location of the XML or from the working directory of the program that calls load_map()"},"minimum-version":{css:"","default-value":"none","default-meaning":"Mapnik version will not be detected and no error will be thrown about compatibility",type:"string",doc:"The minumum Mapnik version (e.g. 0.7.2) needed to use certain functionality in the stylesheet"},"font-directory":{css:"font-directory",type:"uri","default-value":"none","default-meaning":"No map-specific fonts will be registered",doc:"Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered)."}},polygon:{fill:{css:"polygon-fill",type:"color","default-value":"rgba(128,128,128,1)","default-meaning":"gray and fully opaque (alpha = 1), same as rgb(128,128,128)",doc:"Fill color to assign to a polygon"},"fill-opacity":{css:"polygon-opacity",type:"float",doc:"The opacity of the polygon","default-value":1,"default-meaning":"opaque"},gamma:{css:"polygon-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of polygon edges"},"gamma-method":{css:"polygon-gamma-method",type:["power","linear","none","threshold","multiply"],"default-value":"power","default-meaning":"pow(x,gamma) is used to calculate pixel gamma, which produces slightly smoother line and polygon antialiasing than the 'linear' method, while other methods are usually only used to disable AA",doc:"An Antigrain Geometry specific rendering hint to control the quality of antialiasing. Under the hood in Mapnik this method is used in combination with the 'gamma' value (which defaults to 1). The methods are in the AGG source at https://github.com/mapnik/mapnik/blob/master/deps/agg/include/agg_gamma_functions.h"},clip:{css:"polygon-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"polygon-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"polygon-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"polygon-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},line:{stroke:{css:"line-color","default-value":"rgba(0,0,0,1)",type:"color","default-meaning":"black and fully opaque (alpha = 1), same as rgb(0,0,0)",doc:"The color of a drawn line"},"stroke-width":{css:"line-width","default-value":1,type:"float",doc:"The width of a line in pixels"},"stroke-opacity":{css:"line-opacity","default-value":1,type:"float","default-meaning":"opaque",doc:"The opacity of a line"},"stroke-linejoin":{css:"line-join","default-value":"miter",type:["miter","round","bevel"],doc:"The behavior of lines when joining"},"stroke-linecap":{css:"line-cap","default-value":"butt",type:["butt","round","square"],doc:"The display of line endings"},"stroke-gamma":{css:"line-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of stroke line"},"stroke-gamma-method":{css:"line-gamma-method",type:["power","linear","none","threshold","multiply"],"default-value":"power","default-meaning":"pow(x,gamma) is used to calculate pixel gamma, which produces slightly smoother line and polygon antialiasing than the 'linear' method, while other methods are usually only used to disable AA",doc:"An Antigrain Geometry specific rendering hint to control the quality of antialiasing. Under the hood in Mapnik this method is used in combination with the 'gamma' value (which defaults to 1). The methods are in the AGG source at https://github.com/mapnik/mapnik/blob/master/deps/agg/include/agg_gamma_functions.h"},"stroke-dasharray":{css:"line-dasharray",type:"numbers",doc:"A pair of length values [a,b], where (a) is the dash length and (b) is the gap length respectively. More than two values are supported for more complex patterns.","default-value":"none","default-meaning":"solid line"},"stroke-dashoffset":{css:"line-dash-offset",type:"numbers",doc:"valid parameter but not currently used in renderers (only exists for experimental svg support in Mapnik which is not yet enabled)","default-value":"none","default-meaning":"solid line"},"stroke-miterlimit":{css:"line-miterlimit",type:"float",doc:"The limit on the ratio of the miter length to the stroke-width. Used to automatically convert miter joins to bevel joins for sharp angles to avoid the miter extending beyond the thickness of the stroking path. Normally will not need to be set, but a larger value can sometimes help avoid jaggy artifacts.","default-value":4,"default-meaning":"Will auto-convert miters to bevel line joins when theta is less than 29 degrees as per the SVG spec: 'miterLength / stroke-width = 1 / sin ( theta / 2 )'"},clip:{css:"line-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"line-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},offset:{css:"line-offset",type:"float","default-value":0,"default-meaning":"no offset",doc:"Offsets a line a number of pixels parallel to its actual path. Postive values move the line left, negative values move it right (relative to the directionality of the line)."},rasterizer:{css:"line-rasterizer",type:["full","fast"],"default-value":"full",doc:"Exposes an alternate AGG rendering method that sacrifices some accuracy for speed."},"geometry-transform":{css:"line-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"line-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},markers:{file:{css:"marker-file",doc:"An SVG file that this marker shows at each placement. If no file is given, the marker will show an ellipse.","default-value":"","default-meaning":"An ellipse or circle, if width equals height",type:"uri"},opacity:{css:"marker-opacity",doc:"The overall opacity of the marker, if set, overrides both the opacity of both the fill and stroke","default-value":1,"default-meaning":"The stroke-opacity and fill-opacity will be used",type:"float"},"fill-opacity":{css:"marker-fill-opacity",doc:"The fill opacity of the marker","default-value":1,"default-meaning":"opaque",type:"float"},stroke:{css:"marker-line-color",doc:"The color of the stroke around a marker shape.","default-value":"black",type:"color"},"stroke-width":{css:"marker-line-width",doc:"The width of the stroke around a marker shape, in pixels. This is positioned on the boundary, so high values can cover the area itself.",type:"float"},"stroke-opacity":{css:"marker-line-opacity","default-value":1,"default-meaning":"opaque",doc:"The opacity of a line",type:"float"},placement:{css:"marker-placement",type:["point","line","interior"],"default-value":"point","default-meaning":"Place markers at the center point (centroid) of the geometry",doc:"Attempt to place markers on a point, in the center of a polygon, or if markers-placement:line, then multiple times along a line. 'interior' placement can be used to ensure that points placed on polygons are forced to be inside the polygon interior"},"multi-policy":{css:"marker-multi-policy",type:["each","whole","largest"],"default-value":"each","default-meaning":"If a feature contains multiple geometries and the placement type is either point or interior then a marker will be rendered for each",doc:"A special setting to allow the user to control rendering behavior for 'multi-geometries' (when a feature contains multiple geometries). This setting does not apply to markers placed along lines. The 'each' policy is default and means all geometries will get a marker. The 'whole' policy means that the aggregate centroid between all geometries will be used. The 'largest' policy means that only the largest (by bounding box areas) feature will get a rendered marker (this is how text labeling behaves by default)."},"marker-type":{css:"marker-type",type:["arrow","ellipse"],"default-value":"ellipse",doc:"The default marker-type. If a SVG file is not given as the marker-file parameter, the renderer provides either an arrow or an ellipse (a circle if height is equal to width)"},width:{css:"marker-width","default-value":10,doc:"The width of the marker, if using one of the default types.",type:"expression"},height:{css:"marker-height","default-value":10,doc:"The height of the marker, if using one of the default types.",type:"expression"},fill:{css:"marker-fill","default-value":"blue",doc:"The color of the area of the marker.",type:"color"},"allow-overlap":{css:"marker-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping markers are shown or hidden.","default-meaning":"Do not allow makers to overlap with each other - overlapping markers will not be shown."},"ignore-placement":{css:"marker-ignore-placement",type:"boolean","default-value":!1,"default-meaning":"do not store the bbox of this geometry in the collision detector cache",doc:"value to control whether the placement of the feature will prevent the placement of other features"},spacing:{css:"marker-spacing",doc:"Space between repeated labels","default-value":100,type:"float"},"max-error":{css:"marker-max-error",type:"float","default-value":.2,doc:"The maximum difference between actual marker placement and the marker-spacing parameter. Setting a high value can allow the renderer to try to resolve placement conflicts with other symbolizers."},transform:{css:"marker-transform",type:"functions",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]],"default-value":"","default-meaning":"No transformation",doc:"SVG transformation definition"},clip:{css:"marker-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"marker-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"marker-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"marker-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},shield:{name:{css:"shield-name",type:"expression",serialization:"content",doc:'Value to use for a shield"s text label. Data columns are specified using brackets like [column_name]'},file:{css:"shield-file",required:!0,type:"uri","default-value":"none",doc:"Image file to render behind the shield text"},"face-name":{css:"shield-face-name",type:"string",validate:"font",doc:"Font name and style to use for the shield text","default-value":"",required:!0},"unlock-image":{css:"shield-unlock-image",type:"boolean",doc:"This parameter should be set to true if you are trying to position text beside rather than on top of the shield image","default-value":!1,"default-meaning":"text alignment relative to the shield image uses the center of the image as the anchor for text positioning."},size:{css:"shield-size",type:"float",doc:"The size of the shield text in pixels"},fill:{css:"shield-fill",type:"color",doc:"The color of the shield text"},placement:{css:"shield-placement",type:["point","line","vertex","interior"],"default-value":"point",doc:"How this shield should be placed. Point placement attempts to place it on top of points, line places along lines multiple times per feature, vertex places on the vertexes of polygons, and interior attempts to place inside of polygons."},"avoid-edges":{css:"shield-avoid-edges",doc:"Tell positioning algorithm to avoid labeling near intersection edges.",type:"boolean","default-value":!1},"allow-overlap":{css:"shield-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping shields are shown or hidden.","default-meaning":"Do not allow shields to overlap with other map elements already placed."},"minimum-distance":{css:"shield-min-distance",type:"float","default-value":0,doc:"Minimum distance to the next shield symbol, not necessarily the same shield."},spacing:{css:"shield-spacing",type:"float","default-value":0,doc:"The spacing between repeated occurrences of the same shield on a line"},"minimum-padding":{css:"shield-min-padding","default-value":0,doc:"Determines the minimum amount of padding that a shield gets relative to other shields",type:"float"},"wrap-width":{css:"shield-wrap-width",type:"unsigned","default-value":0,doc:"Length of a chunk of text in characters before wrapping text"},"wrap-before":{css:"shield-wrap-before",type:"boolean","default-value":!1,doc:"Wrap text before wrap-width is reached. If false, wrapped lines will be a bit longer than wrap-width."},"wrap-character":{css:"shield-wrap-character",type:"string","default-value":" ",doc:"Use this character instead of a space to wrap long names."},"halo-fill":{css:"shield-halo-fill",type:"color","default-value":"#FFFFFF","default-meaning":"white",doc:"Specifies the color of the halo around the text."},"halo-radius":{css:"shield-halo-radius",doc:"Specify the radius of the halo in pixels","default-value":0,"default-meaning":"no halo",type:"float"},"character-spacing":{css:"shield-character-spacing",type:"unsigned","default-value":0,doc:"Horizontal spacing between characters (in pixels). Currently works for point placement only, not line placement."},"line-spacing":{css:"shield-line-spacing",doc:"Vertical spacing between lines of multiline labels (in pixels)",type:"unsigned"},dx:{css:"shield-text-dx",type:"float",doc:"Displace text within shield by fixed amount, in pixels, +/- along the X axis.  A positive value will shift the text right","default-value":0},dy:{css:"shield-text-dy",type:"float",doc:"Displace text within shield by fixed amount, in pixels, +/- along the Y axis.  A positive value will shift the text down","default-value":0},"shield-dx":{css:"shield-dx",type:"float",doc:"Displace shield by fixed amount, in pixels, +/- along the X axis.  A positive value will shift the text right","default-value":0},"shield-dy":{css:"shield-dy",type:"float",doc:"Displace shield by fixed amount, in pixels, +/- along the Y axis.  A positive value will shift the text down","default-value":0},opacity:{css:"shield-opacity",type:"float",doc:"(Default 1.0) - opacity of the image used for the shield","default-value":1},"text-opacity":{css:"shield-text-opacity",type:"float",doc:"(Default 1.0) - opacity of the text placed on top of the shield","default-value":1},"horizontal-alignment":{css:"shield-horizontal-alignment",type:["left","middle","right","auto"],doc:"The shield's horizontal alignment from its centerpoint","default-value":"auto"},"vertical-alignment":{css:"shield-vertical-alignment",type:["top","middle","bottom","auto"],doc:"The shield's vertical alignment from its centerpoint","default-value":"middle"},"text-transform":{css:"shield-text-transform",type:["none","uppercase","lowercase","capitalize"],doc:"Transform the case of the characters","default-value":"none"},"justify-alignment":{css:"shield-justify-alignment",type:["left","center","right","auto"],doc:"Define how text in a shield's label is justified","default-value":"auto"},clip:{css:"shield-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},"comp-op":{css:"shield-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},"line-pattern":{file:{css:"line-pattern-file",type:"uri","default-value":"none",required:!0,doc:"An image file to be repeated and warped along a line"},clip:{css:"line-pattern-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"line-pattern-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"line-pattern-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"line-pattern-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},"polygon-pattern":{file:{css:"polygon-pattern-file",type:"uri","default-value":"none",required:!0,doc:"Image to use as a repeated pattern fill within a polygon"},alignment:{css:"polygon-pattern-alignment",type:["local","global"],"default-value":"local",doc:"Specify whether to align pattern fills to the layer or to the map."},gamma:{css:"polygon-pattern-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of polygon pattern edges"},opacity:{css:"polygon-pattern-opacity",type:"float",doc:"(Default 1.0) - Apply an opacity level to the image used for the pattern","default-value":1,"default-meaning":"The image is rendered without modifications"},clip:{css:"polygon-pattern-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"polygon-pattern-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"polygon-pattern-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"polygon-pattern-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},raster:{opacity:{css:"raster-opacity","default-value":1,"default-meaning":"opaque",type:"float",doc:"The opacity of the raster symbolizer on top of other symbolizers."},"filter-factor":{css:"raster-filter-factor","default-value":-1,"default-meaning":"Allow the datasource to choose appropriate downscaling.",type:"float",doc:"This is used by the Raster or Gdal datasources to pre-downscale images using overviews. Higher numbers can sometimes cause much better scaled image output, at the cost of speed."},scaling:{css:"raster-scaling",type:["near","fast","bilinear","bilinear8","bicubic","spline16","spline36","hanning","hamming","hermite","kaiser","quadric","catrom","gaussian","bessel","mitchell","sinc","lanczos","blackman"],"default-value":"near",doc:"The scaling algorithm used to making different resolution versions of this raster layer. Bilinear is a good compromise between speed and accuracy, while lanczos gives the highest quality."},"mesh-size":{css:"raster-mesh-size","default-value":16,"default-meaning":"Reprojection mesh will be 1/16 of the resolution of the source image",type:"unsigned",doc:"A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion."},"comp-op":{css:"raster-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},point:{file:{css:"point-file",type:"uri",required:!1,"default-value":"none",doc:"Image file to represent a point"},"allow-overlap":{css:"point-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping points are shown or hidden.","default-meaning":"Do not allow points to overlap with each other - overlapping markers will not be shown."},"ignore-placement":{css:"point-ignore-placement",type:"boolean","default-value":!1,"default-meaning":"do not store the bbox of this geometry in the collision detector cache",doc:"value to control whether the placement of the feature will prevent the placement of other features"},opacity:{css:"point-opacity",type:"float","default-value":1,"default-meaning":"Fully opaque",doc:"A value from 0 to 1 to control the opacity of the point"},placement:{css:"point-placement",type:["centroid","interior"],doc:"How this point should be placed. Centroid calculates the geometric center of a polygon, which can be outside of it, while interior always places inside of a polygon.","default-value":"centroid"},transform:{css:"point-transform",type:"functions",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]],"default-value":"","default-meaning":"No transformation",doc:"SVG transformation definition"},"comp-op":{css:"point-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},text:{name:{css:"text-name",type:"expression",required:!0,"default-value":"",serialization:"content",doc:"Value to use for a text label. Data columns are specified using brackets like [column_name]"},"face-name":{css:"text-face-name",type:"string",validate:"font",doc:"Font name and style to render a label in",required:!0},size:{css:"text-size",type:"float","default-value":10,doc:"Text size in pixels"},"text-ratio":{css:"text-ratio",doc:"Define the amount of text (of the total) present on successive lines when wrapping occurs","default-value":0,type:"unsigned"},"wrap-width":{css:"text-wrap-width",doc:"Length of a chunk of text in characters before wrapping text","default-value":0,type:"unsigned"},"wrap-before":{css:"text-wrap-before",type:"boolean","default-value":!1,doc:"Wrap text before wrap-width is reached. If false, wrapped lines will be a bit longer than wrap-width."},"wrap-character":{css:"text-wrap-character",type:"string","default-value":" ",doc:"Use this character instead of a space to wrap long text."},spacing:{css:"text-spacing",type:"unsigned",doc:"Distance between repeated text labels on a line (aka. label-spacing)"},"character-spacing":{css:"text-character-spacing",type:"float","default-value":0,doc:"Horizontal spacing adjustment between characters in pixels"},"line-spacing":{css:"text-line-spacing","default-value":0,type:"unsigned",doc:"Vertical spacing adjustment between lines in pixels"},"label-position-tolerance":{css:"text-label-position-tolerance","default-value":0,type:"unsigned",doc:"Allows the label to be displaced from its ideal position by a number of pixels (only works with placement:line)"},"max-char-angle-delta":{css:"text-max-char-angle-delta",type:"float","default-value":"22.5",doc:"The maximum angle change, in degrees, allowed between adjacent characters in a label. This value internally is converted to radians to the default is 22.5*math.pi/180.0. The higher the value the fewer labels will be placed around around sharp corners."},fill:{css:"text-fill",doc:"Specifies the color for the text","default-value":"#000000",type:"color"},opacity:{css:"text-opacity",doc:"A number from 0 to 1 specifying the opacity for the text","default-value":1,"default-meaning":"Fully opaque",type:"float"},"halo-fill":{css:"text-halo-fill",type:"color","default-value":"#FFFFFF","default-meaning":"white",doc:"Specifies the color of the halo around the text."},"halo-radius":{css:"text-halo-radius",doc:"Specify the radius of the halo in pixels","default-value":0,"default-meaning":"no halo",type:"float"},dx:{css:"text-dx",type:"float",doc:"Displace text by fixed amount, in pixels, +/- along the X axis.  A positive value will shift the text right","default-value":0},dy:{css:"text-dy",type:"float",doc:"Displace text by fixed amount, in pixels, +/- along the Y axis.  A positive value will shift the text down","default-value":0},"vertical-alignment":{css:"text-vertical-alignment",type:["top","middle","bottom","auto"],doc:"Position of label relative to point position.","default-value":"auto","default-meaning":'Default affected by value of dy; "bottom" for dy>0, "top" for dy<0.'},"avoid-edges":{css:"text-avoid-edges",doc:"Tell positioning algorithm to avoid labeling near intersection edges.","default-value":!1,type:"boolean"},"minimum-distance":{css:"text-min-distance",doc:"Minimum permitted distance to the next text symbolizer.",type:"float"},"minimum-padding":{css:"text-min-padding",doc:"Determines the minimum amount of padding that a text symbolizer gets relative to other text",type:"float"},"minimum-path-length":{css:"text-min-path-length",type:"float","default-value":0,"default-meaning":"place labels on all paths",doc:"Place labels only on paths longer than this value."},"allow-overlap":{css:"text-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping text is shown or hidden.","default-meaning":"Do not allow text to overlap with other text - overlapping markers will not be shown."},orientation:{css:"text-orientation",type:"expression",doc:"Rotate the text."},placement:{css:"text-placement",type:["point","line","vertex","interior"],"default-value":"point",doc:"Control the style of placement of a point versus the geometry it is attached to."},"placement-type":{css:"text-placement-type",doc:'Re-position and/or re-size text to avoid overlaps. "simple" for basic algorithm (using text-placements string,) "dummy" to turn this feature off.',type:["dummy","simple"],"default-value":"dummy"},placements:{css:"text-placements",type:"string","default-value":"",doc:'If "placement-type" is set to "simple", use this "POSITIONS,[SIZES]" string. An example is `text-placements: "E,NE,SE,W,NW,SW";` '},"text-transform":{css:"text-transform",type:["none","uppercase","lowercase","capitalize"],doc:"Transform the case of the characters","default-value":"none"},"horizontal-alignment":{css:"text-horizontal-alignment",type:["left","middle","right","auto"],doc:"The text's horizontal alignment from its centerpoint","default-value":"auto"},"justify-alignment":{css:"text-align",type:["left","right","center","auto"],doc:"Define how text is justified","default-value":"auto","default-meaning":"Auto alignment means that text will be centered by default except when using the `placement-type` parameter - in that case either right or left justification will be used automatically depending on where the text could be fit given the `text-placements` directives"},clip:{css:"text-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},"comp-op":{css:"text-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},building:{fill:{css:"building-fill","default-value":"#FFFFFF",doc:"The color of the buildings walls.",type:"color"},"fill-opacity":{css:"building-fill-opacity",type:"float",doc:"The opacity of the building as a whole, including all walls.","default-value":1},height:{css:"building-height",doc:"The height of the building in pixels.",type:"expression","default-value":"0"}}},colors:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50],transparent:[0,0,0,0]},filter:{value:["true","false","null","point","linestring","polygon","collection"]}},Ro["mapnik_reference"]={version:{latest:o._mapnik_reference_latest,"2.1.1":o._mapnik_reference_latest}},o.CartoCSS=Ro,o.CartoCSS.Tree={},o.CartoCSS.Tree.operate=function(e,t,n){switch(e){case"+":return t+n;case"-":return t-n;case"*":return t*n;case"%":return t%n;case"/":return t/n}},o.CartoCSS.Tree.functions={rgb:function(e,t,n){return this.rgba(e,t,n,1)},rgba:function(e,t,n,r){var i=this,a=[e,t,n].map((function(e){return i.number(e)}));return r=i.number(r),a.some(isNaN)||isNaN(r)?null:new o.CartoCSS.Tree.Color(a,r)},stop:function(e){var t,n;return arguments.length>1&&(t=arguments[1]),arguments.length>2&&(n=arguments[2]),{is:"tag",val:e,color:t,mode:n,toString(r){return'\n\t<stop value="'+e.ev(r)+'"'+(t?' color="'+t.ev(r)+'" ':"")+(n?' mode="'+n.ev(r)+'" ':"")+"/>"}}},hsl:function(e,t,n){return this.hsla(e,t,n,1)},hsla:function(e,t,n,r){if(e=this.number(e)%360/360,t=this.number(t),n=this.number(n),r=this.number(r),[e,t,n,r].some(isNaN))return null;var i=n<=.5?n*(t+1):n+t-n*t,o=2*n-i;return this.rgba(255*a(e+1/3),255*a(e),255*a(e-1/3),r);function a(e){return e=e<0?e+1:e>1?e-1:e,6*e<1?o+(i-o)*e*6:2*e<1?i:3*e<2?o+(i-o)*(2/3-e)*6:o}},hue:function(e){return"toHSL"in e?new o.CartoCSS.Tree.Dimension(Math.round(e.toHSL().h)):null},saturation:function(e){return"toHSL"in e?new o.CartoCSS.Tree.Dimension(Math.round(100*e.toHSL().s),"%"):null},lightness:function(e){return"toHSL"in e?new o.CartoCSS.Tree.Dimension(Math.round(100*e.toHSL().l),"%"):null},alpha:function(e){return"toHSL"in e?new o.CartoCSS.Tree.Dimension(e.toHSL().a):null},saturate:function(e,t){if(!("toHSL"in e))return null;var n=e.toHSL();return n.s+=t.value/100,n.s=this.clamp(n.s),this.hsla_simple(n)},desaturate:function(e,t){if(!("toHSL"in e))return null;var n=e.toHSL();return n.s-=t.value/100,n.s=this.clamp(n.s),this.hsla_simple(n)},lighten:function(e,t){if(!("toHSL"in e))return null;var n=e.toHSL();return n.l+=t.value/100,n.l=this.clamp(n.l),this.hsla_simple(n)},darken:function(e,t){if(!("toHSL"in e))return null;var n=e.toHSL();return n.l-=t.value/100,n.l=this.clamp(n.l),this.hsla_simple(n)},fadein:function(e,t){if(!("toHSL"in e))return null;var n=e.toHSL();return n.a+=t.value/100,n.a=this.clamp(n.a),this.hsla_simple(n)},fadeout:function(e,t){if(!("toHSL"in e))return null;var n=e.toHSL();return n.a-=t.value/100,n.a=this.clamp(n.a),this.hsla_simple(n)},spin:function(e,t){if(!("toHSL"in e))return null;var n=e.toHSL(),r=(n.h+t.value)%360;return n.h=r<0?360+r:r,this.hsla_simple(n)},replace:function(e,t,n){return"field"===e.is?e.toString+".replace("+t.toString()+", "+n.toString()+")":e.replace(t,n)},mix:function(e,t,n){var r=n.value/100,i=2*r-1,a=e.toHSL().a-t.toHSL().a,s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,l=1-s,c=[e.rgb[0]*s+t.rgb[0]*l,e.rgb[1]*s+t.rgb[1]*l,e.rgb[2]*s+t.rgb[2]*l],u=e.alpha*r+t.alpha*(1-r);return new o.CartoCSS.Tree.Color(c,u)},greyscale:function(e){return this.desaturate(e,new o.CartoCSS.Tree.Dimension(100))},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,r=0;r<t.length;r++)n=n.replace(/%s/,t[r].value).replace(/%[da]/,t[r].toString());return n=n.replace(/%%/g,"%"),new o.CartoCSS.Tree.Quoted(n)},hsla_simple:function(e){return this.hsla(e.h,e.s,e.l,e.a)},number:function(e){return e instanceof o.CartoCSS.Tree.Dimension?parseFloat("%"===e.unit?e.value/100:e.value):"number"===typeof e?e:NaN},clamp:function(e){return Math.min(1,Math.max(0,e))}},o.CartoCSS.Tree.Call=class{constructor(e,t,n){this.is="call",this.name=e,this.args=t,this.index=n}ev(e){for(var t=this.args.map((function(t){return t.ev(e)})),n=0;n<t.length;n++)if("undefined"===t[n].is)return{is:"undefined",value:"undefined"};if(this.name in o.CartoCSS.Tree.functions){if(o.CartoCSS.Tree.functions[this.name].length<=t.length){var r=o.CartoCSS.Tree.functions[this.name].apply(o.CartoCSS.Tree.functions,t);return null===r?(e.error({message:"incorrect arguments given to "+this.name+"()",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):r}return e.error({message:"incorrect number of arguments for "+this.name+"(). "+o.CartoCSS.Tree.functions[this.name].length+" expected.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}}var i=o.CartoCSS.Tree.Reference.mapnikFunctions[this.name];if(void 0===i){var a=Ao()(o.CartoCSS.Tree.Reference.mapnikFunctions),s=this.name,l=a.map((function(e){return[e[0],o.CartoCSS.Tree.Reference.editDistance(s,e[0]),e[1]]})).sort((function(e,t){return e[1]-t[1]}));return e.error({message:"unknown function "+this.name+"(), did you mean "+l[0][0]+"("+l[0][2]+")",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}}return i!==t.length&&-1!==i?(e.error({message:"function "+this.name+"() takes "+i+" arguments and was given "+t.length,index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):(this.args=t,this)}toString(e,t){return this.args.length?this.name+"("+this.args.join(",")+")":this.name}},o.CartoCSS.Tree.Color=class{constructor(e,t){this.is="color",Array.isArray(e)?this.rgb=e.slice(0,3):6==e.length?this.rgb=e.match(/.{2}/g).map((function(e){return parseInt(e,16)})):this.rgb=e.split("").map((function(e){return parseInt(e+e,16)})),"number"===typeof t?this.alpha=t:4===e.length?this.alpha=e[3]:this.alpha=1}ev(){return this}toString(){return"rgba("+this.rgb.map((function(e){return Math.round(e)})).concat(this.alpha).join(", ")+")"}operate(e,t,n){var r=[];n instanceof o.CartoCSS.Tree.Color||(n=n.toColor());for(var i=0;i<3;i++)r[i]=o.CartoCSS.Tree.operate(t,this.rgb[i],n.rgb[i]);return new o.CartoCSS.Tree.Color(r)}toHSL(){var e,t,n=this.rgb[0]/255,r=this.rgb[1]/255,i=this.rgb[2]/255,o=this.alpha,a=Math.max(n,r,i),s=Math.min(n,r,i),l=(a+s)/2,c=a-s;if(a===s)e=t=0;else{switch(t=l>.5?c/(2-a-s):c/(a+s),a){case n:e=(r-i)/c+(r<i?6:0);break;case r:e=(i-n)/c+2;break;case i:e=(n-r)/c+4;break;default:break}e/=6}return{h:360*e,s:t,l:l,a:o}}},o.CartoCSS.Tree.Comment=class{constructor(e,t){this.value=e,this.silent=!!t}toString(e){return"\x3c!--"+this.value+"--\x3e"}ev(){return this}},o.CartoCSS.Tree.Definition=class{constructor(e,t){this.elements=e.elements,this.rules=t,this.ruleIndex={};for(var n=0;n<this.rules.length;n++)"zoom"in this.rules[n]&&(this.rules[n]=this.rules[n].clone()),this.rules[n].zoom=e.zoom,this.ruleIndex[this.rules[n].updateID()]=!0;this.filters=e.filters,this.zoom=e.zoom,this.attachment=e.attachment||"__default__",this.specificity=e.specificity()}toString(){for(var e=this.filters.toString(),t=0;t<this.rules.length;t++)e+="\n    "+this.rules[t];return e}toJS(e){var t={},n=this.zoom,r=this.filters.toJS(e),i=[n];function a(n){if(n instanceof o.CartoCSS.Tree.Rule)t[n.name]=t[n.name]||[],r?t[n.name].push("if("+r+"){"+n.value.toJS(e)+"}"):t[n.name].push(n.value.toJS(e));else if(n instanceof o.CartoCSS.Tree.Ruleset){var i=n.toJS(e);for(var a in i)for(var s in t[a]=t[a]||[],i[a])t[a].push(i[a][s])}}for(var s in r&&i.push(r),r=i.join(" && "),this.rules)a(this.rules[s]);return t}},o.CartoCSS.Tree.Dimension=class{constructor(e,t,n){this.is="float",this.physical_units=["m","cm","in","mm","pt","pc"],this.screen_units=["px","%"],this.all_units=["m","cm","in","mm","pt","pc","px","%"],this.densities={m:.0254,mm:25.4,cm:2.54,pt:72,pc:6},this.value=parseFloat(e),this.unit=t||null,this.index=n}ev(e){if(this.unit&&this.all_units.indexOf(this.unit)<0)return e.error({message:"Invalid unit: '"+this.unit+"'",index:this.index}),{is:"undefined",value:"undefined"};if(this.unit&&this.physical_units.indexOf(this.unit)>=0){if(!e.ppi)return e.error({message:"ppi is not set, so metric units can't be used",index:this.index}),{is:"undefined",value:"undefined"};this.value=this.value/this.densities[this.unit]*e.ppi,this.unit="px"}return this}toColor(){return new o.CartoCSS.Tree.Color([this.value,this.value,this.value])}round(){return this.value=Math.round(this.value),this}toString(){return this.value.toString()}operate(e,t,n){return"%"===this.unit&&"%"!==n.unit?(e.error({message:"If two operands differ, the first must not be %",index:this.index}),{is:"undefined",value:"undefined"}):"%"!==this.unit&&"%"===n.unit?"*"===t||"/"===t||"%"===t?(e.error({message:"Percent values can only be added or subtracted from other values",index:this.index}),{is:"undefined",value:"undefined"}):new o.CartoCSS.Tree.Dimension(o.CartoCSS.Tree.operate(t,this.value,this.value*n.value*.01),this.unit):new o.CartoCSS.Tree.Dimension(o.CartoCSS.Tree.operate(t,this.value,n.value),this.unit||n.unit)}},o.CartoCSS.Tree.Element=class{constructor(e){this.value=e.trim(),"#"===this.value[0]&&(this.type="id",this.clean=this.value.replace(/^#/,"")),"."===this.value[0]&&(this.type="class",this.clean=this.value.replace(/^\./,"")),-1!==this.value.indexOf("*")&&(this.type="wildcard")}specificity(){return["id"===this.type?1:0,"class"===this.type?1:0]}toString(){return this.value}},o.CartoCSS.Tree.Expression=class{constructor(e){this.is="expression",this.value=e}ev(e){return this.value.length>1?new o.CartoCSS.Tree.Expression(this.value.map((function(t){return t.ev(e)}))):this.value[0].ev(e)}toString(e){return this.value.map((function(t){return t.toString(e)})).join(" ")}},o.CartoCSS.Tree.Field=class{constructor(e){this.is="field",this.value=e||""}toString(){return'["'+this.value.toUpperCase()+'"]'}ev(){return this}},o.CartoCSS.Tree.Filter=class{constructor(e,t,n,r,i){this.ops={"<":[" &lt; ","numeric"],">":[" &gt; ","numeric"],"=":[" = ","both"],"!=":[" != ","both"],"<=":[" &lt;= ","numeric"],">=":[" &gt;= ","numeric"],"=~":[".match(","string",")"]},this.key=e,this.op=t,this.val=n,this.index=r,this.filename=i,this.id=this.key+this.op+this.val}ev(e){return this.key=this.key.ev(e),this.val=this.val.ev(e),this}toString(){return"["+this.id+"]"}},o.CartoCSS.Tree.Filterset=class{constructor(){this.filters={}}toJS(e){function t(e){var t=e.op;"="===t&&(t="==");var n=e.val;void 0!==e._val&&(n=e._val.toString(!0)),e.key&&"scale"===e.key.value?n=+n:"string"!==typeof n&&"object"!==typeof n||(n="'"+n+"'");var r="attributes";return r+"&&"+r+e.key+"&&"+r+e.key+" "+t+n}var n=[];for(var r in this.filters)n.push(t(this.filters[r]));return n.join(" && ")}toString(){var e=[];for(var t in this.filters)e.push(this.filters[t].id);return e.sort().join("\t")}ev(e){for(var t in this.filters)this.filters[t].ev(e);return this}clone(){var e=new o.CartoCSS.Tree.Filterset;for(var t in this.filters)e.filters[t]=this.filters[t];return e}cloneWith(e){var t=[];for(var n in e.filters){var r=this.addable(e.filters[n]);if(!1===r)return!1;!0===r&&t.push(e.filters[n])}if(!t.length)return null;var i=new o.CartoCSS.Tree.Filterset;for(n in this.filters)i.filters[n]=this.filters[n];while(n=t.shift())i.add(n);return i}addable(e){var t=e.key.toString(),n=e.val.toString();switch(n.match(/^[0-9]+(\.[0-9]*)?_match/)&&(n=parseFloat(n)),e.op){case"=":return void 0!==this.filters[t+"="]?this.filters[t+"="].val.toString()==n&&null:void 0===this.filters[t+"!="+n]&&(!(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=n)&&(!(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=n)&&(!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>n)&&!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<n))));case"=~":return!0;case"!=":return void 0!==this.filters[t+"="]?this.filters[t+"="].val!==n&&null:void 0!==this.filters[t+"!="+n]||void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=n||void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=n||void 0!==this.filters[t+">="]&&this.filters[t+">="].val>n?null:!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<n)||null;case">":return t+"="in this.filters?!(this.filters[t+"="].val<=n)&&null:!(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=n)&&(!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<=n)&&(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=n?null:!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>n)||null));case">=":return void 0!==this.filters[t+"="]?!(this.filters[t+"="].val<n)&&null:!(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=n)&&(!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<n)&&(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=n?null:!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>=n)||null));case"<":return void 0!==this.filters[t+"="]?!(this.filters[t+"="].val>=n)&&null:!(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=n)&&(!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>=n)&&(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=n?null:!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<n)||null));case"<=":return void 0!==this.filters[t+"="]?!(this.filters[t+"="].val>n)&&null:!(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=n)&&(!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>n)&&(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=n?null:!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<=n)||null));default:break}}conflict(e){var t=e.key.toString(),n=e.val.toString();return isNaN(parseFloat(n))||(n=parseFloat(n)),("="===e.op&&void 0!==this.filters[t+"="]&&n!=this.filters[t+"="].val.toString()||"!="===e.op&&void 0!==this.filters[t+"="]&&n==this.filters[t+"="].val.toString()||"="===e.op&&void 0!==this.filters[t+"!="]&&n===this.filters[t+"!="].val.toString())&&e.toString()+" added to "+this.toString()+" produces an invalid filter"}add(e,t){var n,r=e.key.toString(),i=e.op,o=this.conflict(e);if(o)return o;if("="===i){for(var a in this.filters)this.filters[a].key===r&&delete this.filters[a];this.filters[r+"="]=e}else if("!="===i)this.filters[r+"!="+e.val]=e;else if("=~"===i)this.filters[r+"=~"+e.val]=e;else if(">"===i){for(var s in this.filters)this.filters[s].key===r&&this.filters[s].val<=e.val&&delete this.filters[s];this.filters[r+">"]=e}else if(">="===i){for(var l in this.filters)n=+this.filters[l].val.toString(),this.filters[l].key===r&&n<e.val&&delete this.filters[l];void 0!==this.filters[r+"!="+e.val]?(delete this.filters[r+"!="+e.val],e.op=">",this.filters[r+">"]=e):this.filters[r+">="]=e}else if("<"===i){for(var c in this.filters)n=+this.filters[c].val.toString(),this.filters[c].key===r&&n>=e.val&&delete this.filters[c];this.filters[r+"<"]=e}else if("<="===i){for(var u in this.filters)n=+this.filters[u].val.toString(),this.filters[u].key===r&&n>e.val&&delete this.filters[u];void 0!==this.filters[r+"!="+e.val]?(delete this.filters[r+"!="+e.val],e.op="<",this.filters[r+"<"]=e):this.filters[r+"<="]=e}}},o.CartoCSS.Tree.Fontset=class{constructor(e,t){this.fonts=t,this.name="fontset-"+e.effects.length}},o.CartoCSS.Tree.Invalid=class{constructor(e,t,n){this.is="invalid",this.chunk=e,this.index=t,this.type="syntax",this.message=n||"Invalid code: "+this.chunk}ev(e){return e.error({chunk:this.chunk,index:this.index,type:"syntax",message:this.message||"Invalid code: "+this.chunk}),{is:"undefined"}}},o.CartoCSS.Tree.Keyword=class{ev(){return this}constructor(e){this.value=e;var t={transparent:"color",true:"boolean",false:"boolean"};this.is=t[e]?t[e]:"keyword"}toString(){return this.value}},o.CartoCSS.Tree.Literal=class{constructor(e){this.value=e||"",this.is="field"}toString(){return this.value}ev(){return this}},o.CartoCSS.Tree.Operation=class{constructor(e,t,n){this.is="operation",this.op=e.trim(),this.operands=t,this.index=n}ev(e){var t,n=this.operands[0].ev(e),r=this.operands[1].ev(e);return"undefined"===n.is||"undefined"===r.is?{is:"undefined",value:"undefined"}:(n instanceof o.CartoCSS.Tree.Dimension&&r instanceof o.CartoCSS.Tree.Color&&("*"===this.op||"+"===this.op?(t=r,r=n,n=t):e.error({name:"OperationError",message:"Can't substract or divide a color from a number",index:this.index})),n instanceof o.CartoCSS.Tree.Quoted&&r instanceof o.CartoCSS.Tree.Quoted&&"+"!==this.op?(e.error({message:"Can't subtract, divide, or multiply strings.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):n instanceof o.CartoCSS.Tree.Field||r instanceof o.CartoCSS.Tree.Field||n instanceof o.CartoCSS.Tree.Literal||r instanceof o.CartoCSS.Tree.Literal?"color"===n.is||"color"===r.is?(e.error({message:"Can't subtract, divide, or multiply colors in expressions.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):new o.CartoCSS.Tree.Literal(n.ev(e).toString(!0)+this.op+r.ev(e).toString(!0)):void 0===n.operate?(e.error({message:"Cannot do math with type "+n.is+".",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):n.operate(e,this.op,r))}},o.CartoCSS.Tree.Quoted=class{constructor(e){this.is="string",this.value=e||""}toString(e){var t=this.value.replace(/&/g,"&amp;"),n=t.replace(/\'/g,"\\'").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/\>/g,"&gt;");return!0===e?"'"+n+"'":t}ev(){return this}operate(e,t,n){return new o.CartoCSS.Tree.Quoted(o.CartoCSS.Tree.operate(t,this.toString(),n.toString(this.contains_field)))}},o.CartoCSS.Tree.Reference={_validateValue:{font:function(e,t){return!e.validation_data||!e.validation_data.fonts||-1!=e.validation_data.fonts.indexOf(t)}},setData:function(e){function t(e){var t={};for(var n in e.symbolizers)for(var r in e.symbolizers[n])e.symbolizers[n][r].hasOwnProperty("css")&&(t[e.symbolizers[n][r].css]=[e.symbolizers[n][r],n,r]);return t}function n(e){var t={};for(var n in e.symbolizers)for(var r in e.symbolizers[n])if("functions"===e.symbolizers[n][r].type)for(var i=0;i<e.symbolizers[n][r].functions.length;i++){var o=e.symbolizers[n][r].functions[i];t[o[0]]=o[1]}return t}function r(e){var t={};for(var n in e.symbolizers)for(var r in t[n]=[],e.symbolizers[n])e.symbolizers[n][r].required&&t[n].push(e.symbolizers[n][r].css);return t}this.data=e,this.selector_cache=t(e),this.mapnikFunctions=n(e),this.required_cache=r(e)},setVersion:function(e){return!!o.CartoCSS.mapnik_reference.version.hasOwnProperty(e)&&(this.setData(o.CartoCSS.mapnik_reference.version[e]),!0)},selectorData:function(e,t){if(this.selector_cache&&this.selector_cache[e])return this.selector_cache[e][t]},validSelector:function(e){return!!this.selector_cache[e]},selectorName:function(e){return this.selectorData(e,2)},selector:function(e){return this.selectorData(e,0)},symbolizer:function(e){return this.selectorData(e,1)},requiredProperties:function(e,t){var n=this.required_cache[e];for(var r in n)if(!(n[r]in t))return"Property "+n[r]+" required for defining "+e+" styles."},isFont:function(e){return"font"===this.selector(e).validate},editDistance:function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;for(var n=[],r=0;r<=t.length;r++)n[r]=[r];for(var i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]},validValue:function(e,t,n){function r(e,t){if("string"===e.value[0].is)return!0;for(var n in e.value)for(var r in e.value[n].value){if("call"!==e.value[n].value[r].is)return!1;var i=find(this.selector(t).functions,(function(t){return t[0]===e.value[n].value[r].name}));if((!i||-1!==i[1])&&(!i||i[1]!==e.value[n].value[r].args.length))return!1}return!0}function i(e,t){return"object"===typeof this.selector(t).type?-1!==this.selector(t).type.indexOf(e.value[0].value):"string"===this.selector(t).type}var o;if(this.selector(t)){if("keyword"===n.value[0].is)return i(n,t);if("undefined"===n.value[0].is)return!0;if("numbers"===this.selector(t).type){for(o in n.value)if("float"!==n.value[o].is)return!1;return!0}if("tags"===this.selector(t).type){if(!n.value)return!1;if(!n.value[0].value)return"tag"===n.value[0].is;for(o=0;o<n.value[0].value.length;o++)if("tag"!==n.value[0].value[o].is)return!1;return!0}if("functions"==this.selector(t).type)return r(n,t);if("expression"===this.selector(t).type)return!0;if("unsigned"===this.selector(t).type)return"float"===n.value[0].is&&(n.value[0].round(),!0);if(this.selector(t).validate){var a=!1;for(o=0;o<n.value.length;o++)if(this.selector(t).type===n.value[o].is&&this._validateValue[this.selector(t).validate](e,n.value[o].value))return!0;return a}return this.selector(t).type===n.value[0].is}return!1}},o.CartoCSS.Tree.Reference.setVersion("latest"),o.CartoCSS.Tree.Rule=class{constructor(e,t,n,r){this.is="rule";var i=e.split("/");this.name=i.pop(),this.instance=i.length?i[0]:"__default__",this.value=t instanceof o.CartoCSS.Tree.Value?t:new o.CartoCSS.Tree.Value([t]),this.index=n,this.symbolizer=o.CartoCSS.Tree.Reference.symbolizer(this.name),this.filename=r,this.variable="@"===e.charAt(0)}clone(){var e=Object.create(o.CartoCSS.Tree.Rule.prototype);return e.name=this.name,e.value=this.value,e.index=this.index,e.instance=this.instance,e.symbolizer=this.symbolizer,e.filename=this.filename,e.variable=this.variable,e}updateID(){return this.id=this.zoom+"#"+this.instance+"#"+this.name}toString(){return"["+o.CartoCSS.Tree.Zoom.toString(this.zoom)+"] "+this.name+": "+this.value}ev(e){return new o.CartoCSS.Tree.Rule(this.name,this.value.ev(e),this.index,this.filename)}},o.CartoCSS.Tree.Ruleset=class{constructor(e,t){this.is="ruleset",this.selectors=e,this.rules=t,this._lookups={}}ev(e){var t,n,r=new o.CartoCSS.Tree.Ruleset(this.selectors,this.rules.slice(0));for(r.root=this.root,e.frames.unshift(r),t=0,n;t<r.rules.length;t++)n=r.rules[t],r.rules[t]=n.ev?n.ev(e):n;return e.frames.shift(),r}match(e){return!e||0===e.length}variables(){return this._variables?this._variables:this._variables=this.rules.reduce((function(e,t){return t instanceof o.CartoCSS.Tree.Rule&&!0===t.variable&&(e[t.name]=t),e}),{})}variable(e){return this.variables()[e]}rulesets(){return this._rulesets?this._rulesets:this._rulesets=this.rules.filter((function(e){return e instanceof o.CartoCSS.Tree.Ruleset}))}find(e,t){t=t||this;var n,r=[],i=e.toString();return i in this._lookups?this._lookups[i]:(this.rulesets().forEach((function(i){if(i!==t)for(var a=0;a<i.selectors.length;a++)if(n=e.match(i.selectors[a]),n){e.elements.length>1?Array.prototype.push.apply(r,i.find(new o.CartoCSS.Tree.Selector(null,null,e.elements.slice(1)),t)):r.push(i);break}})),this._lookups[i]=r)}evZooms(e){for(var t=0;t<this.selectors.length;t++){for(var n=o.CartoCSS.Tree.Zoom.all,r=0;r<this.selectors[t].zoom.length;r++)n=this.selectors[t].zoom[r].ev(e).zoom;this.selectors[t].zoom=n}}flatten(e,t,n){var r,i,a=[];for(0===this.selectors.length&&(n.frames=n.frames.concat(this.rules)),this.evZooms(n),r=0;r<this.selectors.length;r++){var s=this.selectors[r];if(s.filters)if(t.length)for(i=0;i<t.length;i++){var l=t[i],c=l.filters.cloneWith(s.filters);if(null===c){if(l.zoom===s.zoom&&l.attachment===s.attachment&&l.elements.join()===s.elements.join()){a.push(l);continue}c=l.filters}else if(!c)continue;var u=Object.create(o.CartoCSS.Tree.Selector.prototype);u.filters=c,u.zoom=s.zoom,u.elements=l.elements.concat(s.elements),l.attachment&&s.attachment?u.attachment=l.attachment+"/"+s.attachment:u.attachment=s.attachment||l.attachment,u.conditions=l.conditions+s.conditions,u.index=s.index,a.push(u)}else a.push(s)}var d=[];for(r=0;r<this.rules.length;r++){var f=this.rules[r];f instanceof o.CartoCSS.Tree.Ruleset?f.flatten(e,a,n):f instanceof o.CartoCSS.Tree.Rule?d.push(f):f instanceof o.CartoCSS.Tree.Invalid&&n.error(f)}var h=!!d.length&&d[0].index;for(r=0;r<a.length;r++)!1!==h&&(a[r].index=h),e.push(new o.CartoCSS.Tree.Definition(a[r],d.slice()));return e}},o.CartoCSS.Tree.Selector=class{constructor(e,t,n,r,i,a){this.elements=n||[],this.attachment=r,this.filters=e||{},this.zoom="undefined"!==typeof t?t:o.CartoCSS.Tree.Zoom.all,this.conditions=i,this.index=a}specificity(){return this.elements.reduce((function(e,t){var n=t.specificity();return e[0]+=n[0],e[1]+=n[1],e}),[0,0,this.conditions,this.index])}},o.CartoCSS.Tree.URL=class{constructor(e,t){this.is="uri",this.value=e,this.paths=t}toString(){return this.value.toString()}ev(e){return new o.CartoCSS.Tree.URL(this.value.ev(e),this.paths)}},o.CartoCSS.Tree.Value=class{constructor(e){this.is="value",this.value=e}ev(e){return 1===this.value.length?this.value[0].ev(e):new o.CartoCSS.Tree.Value(this.value.map((function(t){return t.ev(e)})))}toJS(e){var t=this.ev(e),n=t.toString();return"color"===t.is||"uri"===t.is||"string"===t.is||"keyword"===t.is?n="'"+n+"'":"field"===t.is?n=n.replace(/\[(.*)\]/g,"attributes['_match1']"):t.value&&"object"===typeof t.value&&(n="["+n+"]"),"_value = "+n+";"}toString(e,t,n,r){return this.value.map((function(t){return t.toString(e,r)})).join(n||", ")}clone(){var e=Object.create(o.CartoCSS.Tree.Value.prototype);return Array.isArray(e)?e.value=this.value.slice():e.value=this.value,e.is=this.is,e}},o.CartoCSS.Tree.Variable=class{constructor(e,t,n){this.is="variable",this.name=e,this.index=t,this.filename=n}toString(){return this.name}ev(e){if(this._css)return this._css;var t=e.frames.filter(function(e){return e.name===this.name}.bind(this));return t.length?t[0].value.ev(e):(e.error({message:"variable "+this.name+" is undefined",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"})}},o.CartoCSS.Tree.Zoom=class{constructor(e,t,n){this.op=e,this.value=t,this.index=n}setZoom(e){return this.zoom=e,this}ev(e){var t=parseInt(this.value.ev(e).toString(),10);switch((t>o.CartoCSS.Tree.Zoom.maxZoom||t<0)&&e.error({message:"Only zoom levels between 0 and "+o.CartoCSS.Tree.Zoom.maxZoom+" supported.",index:this.index}),this.op){case"=":return this.zoom="zoom && zoom === "+t,this;case">":this.zoom="zoom && zoom > "+t;break;case">=":this.zoom="zoom && zoom >= "+t;break;case"<":this.zoom="zoom && zoom < "+t;break;case"<=":this.zoom="zoom && zoom <= "+t;break;default:return this}return this}toString(){for(var e="",t=0;t<=o.CartoCSS.Tree.Zoom.maxZoom;t++)e+=this.zoom&1<<t?"X":".";return e}},o.CartoCSS.Tree.Zoom.all=23,o.CartoCSS.Tree.Zoom.maxZoom=22,o.CartoCSS.Tree.Zoom.ranges={0:1e9,1:5e8,2:2e8,3:1e8,4:5e7,5:25e6,6:125e5,7:65e5,8:3e6,9:15e5,10:75e4,11:4e5,12:2e5,13:1e5,14:5e4,15:25e3,16:12500,17:5e3,18:2500,19:1500,20:750,21:500,22:250,23:100};class Po{constructor(e){e=e||{},this.fill=!0,this.fillColor="#000000",this.fillOpacity=1,this.stroke=!1,this.strokeColor="#000000",this.strokeOpacity=1,this.strokeWidth=1,this.strokeLinecap="butt",this.strokeLineJoin="miter",this.strokeDashstyle="solid",this.pointRadius=6,this.shadowBlur=0,this.shadowColor="#000000",this.shadowOffsetX=0,this.shadowOffsetY=0,this.label="",this.labelRect=!1,this.fontColor="",this.fontSize=12,this.fontStyle="normal",this.fontVariant="normal",this.fontWeight="normal",this.fontFamily="arial,sans-serif",this.labelPosition="top",this.labelAlign="center",this.labelBaseline="middle",this.labelXOffset=0,this.labelYOffset=0,Y.extend(this,e)}}o.ThemeStyle=Po;class Mo{constructor(){this.refOriginalPosition=[0,0],this.refDataID=null,this.isHoverByRefDataID=!1,this.refDataHoverGroup=null,this.dataInfo=null,this.clickable=!0,this.hoverable=!0,this.style=null,this.highlightStyle={},this.CLASS_NAME="SuperMap.Feature.ShapeParameters"}destroy(){this.refOriginalPosition=null,this.refDataID=null,this.isHoverByRefDataID=null,this.refDataHoverGroup=null,this.dataInfo=null,this.clickable=null,this.hoverable=null,this.style=null,this.highlightStyle=null}}o.Feature=o.Feature||{},o.Feature.ShapeParameters=Mo;class No extends Mo{constructor(e,t){super(e,t),this.x=isNaN(e)?0:e,this.y=isNaN(t)?0:t,this.r=6,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Point"}destroy(){this.x=null,this.y=null,this.r=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Point=No;class Lo extends Mo{constructor(e){super(e),this.pointList=e,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Line"}destroy(){this.pointList=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Line=Lo;class Do extends Mo{constructor(e){super(e),this.pointList=e,this.holePolygonPointLists=null,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Polygon"}destroy(){this.pointList=null,this.holePolygonPointLists=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Polygon=Do;class jo extends Mo{constructor(e,t,n,r){super(e,t,n,r),this.x=isNaN(e)?0:e,this.y=isNaN(e)?0:t,this.width=isNaN(n)?0:n,this.height=isNaN(r)?0:r,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Rectangle"}destroy(){this.x=null,this.y=null,this.width=null,this.height=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Rectangle=jo;class Fo extends Mo{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,o,a),this.x=isNaN(e)?0:e,this.y=isNaN(t)?0:t,this.r=isNaN(n)?0:n,this.startAngle=isNaN(r)?0:r,this.endAngle=isNaN(i)?0:i,this.r0=isNaN(o)?0:o,this.clockWise=a,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Sector"}destroy(){this.x=null,this.y=null,this.r=null,this.startAngle=null,this.endAngle=null,this.r0=null,this.clockWise=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Sector=Fo;class Bo extends Mo{constructor(e,t,n){super(e,t,n),this.x=e,this.y=t,this.text=n,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Label"}destroy(){this.x=null,this.y=null,this.text=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Label=Bo;class qo extends Mo{constructor(e,t,n,r,i,o,a,s,l){super(e,t,n,r,i,o,a,s,l),this.x=e,this.y=t,this.image=n,this.width=r,this.height=i,this.sx=o,this.sy=a,this.sWidth=s,this.sHeight=l,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Image"}destroy(){this.x=null,this.y=null,this.image=null,this.width=null,this.height=null,this.sx=null,this.sy=null,this.sWidth=null,this.sHeight=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Image=qo;class zo extends Mo{constructor(e,t,n){super(e,t,n),this.x=isNaN(e)?0:e,this.y=isNaN(t)?0:t,this.r=isNaN(n)?0:n,this.CLASS_NAME="SuperMap.Feature.ShapeParameters.Circle"}destroy(){this.x=null,this.y=null,this.r=null,super.destroy()}}o.Feature=o.Feature||{},o.Feature.ShapeParameters.Circle=zo;class Uo{constructor(){this._handlers={},this.CLASS_NAME="SuperMap.LevelRenderer.Eventful"}destroy(){this._handlers=null}one(e,t,n){var r=this._handlers;return t&&e?(r[e]||(r[e]=[]),r[e].push({h:t,one:!0,ctx:n||this}),this):this}bind(e,t,n){var r=this._handlers;return t&&e?(r[e]||(r[e]=[]),r[e].push({h:t,one:!1,ctx:n||this}),this):this}unbind(e,t){var n=this._handlers;if(!e)return this._handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i]["h"]!=t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this}dispatch(e){if(this._handlers[e]){var t=arguments,n=t.length;n>3&&(t=Array.prototype.slice.call(t,1));for(var r=this._handlers[e],i=r.length,o=0;o<i;){switch(n){case 1:r[o]["h"].call(r[o]["ctx"]);break;case 2:r[o]["h"].call(r[o]["ctx"],t[1]);break;case 3:r[o]["h"].call(r[o]["ctx"],t[1],t[2]);break;default:r[o]["h"].apply(r[o]["ctx"],t);break}r[o]["one"]?(r.splice(o,1),i--):o++}}return this}dispatchWithContext(e){if(this._handlers[e]){var t=arguments,n=t.length;n>4&&(t=Array.prototype.slice.call(t,1,t.length-1));for(var r=t[t.length-1],i=this._handlers[e],o=i.length,a=0;a<o;){switch(n){case 1:i[a]["h"].call(r);break;case 2:i[a]["h"].call(r,t[1]);break;case 3:i[a]["h"].call(r,t[1],t[2]);break;default:i[a]["h"].apply(r,t);break}i[a]["one"]?(i.splice(a,1),o--):a++}}return this}}class Go{constructor(){this.ArrayCtor="undefined"===typeof Float32Array?Array:Float32Array,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Vector"}create(e,t){var n=this.ArrayCtor,r=new n(2);return r[0]=e||0,r[1]=t||0,r}copy(e,t){return e[0]=t[0],e[1]=t[1],e}set(e,t,n){return e[0]=t,e[1]=n,e}add(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}scaleAndAdd(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}sub(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}len(e){return Math.sqrt(this.lenSquare(e))}lenSquare(e){return e[0]*e[0]+e[1]*e[1]}mul(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}div(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}dot(e,t){return e[0]*t[0]+e[1]*t[1]}scale(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}normalize(e,t){var n=this.len(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}distance(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}distanceSquare(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}negate(e,t){return e[0]=-t[0],e[1]=-t[1],e}lerp(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}applyTransform(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}min(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}max(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}length(e){return this.len(e)}lengthSquare(e){return this.lenSquare(e)}dist(e,t){return this.distance(e,t)}distSquare(e,t){return this.distanceSquare(e,t)}}class Vo{constructor(){this.vector=new Go,this.EPSILON=1e-4,this.THREE_SQRT=Math.sqrt(3),this.ONE_THIRD=1/3,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Curve"}isAroundZero(e){return e>-this.EPSILON&&e<this.EPSILON}isNotAroundZero(e){return e>this.EPSILON||e<-this.EPSILON}cubicAt(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}cubicDerivativeAt(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}cubicRootAt(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-i,u=s*s-3*a*l,d=s*l-9*a*c,f=l*l-3*s*c,h=0;if(this.isAroundZero(u)&&this.isAroundZero(d))if(this.isAroundZero(s))o[0]=0;else{let e=-l/s;e>=0&&e<=1&&(o[h++]=e)}else{var p=d*d-4*u*f;if(this.isAroundZero(p)){var m=d/u;let e=-s/a+m,t=-m/2;e>=0&&e<=1&&(o[h++]=e),t>=0&&t<=1&&(o[h++]=t)}else if(p>0){let e=Math.sqrt(p),t=u*s+1.5*a*(-d+e),n=u*s+1.5*a*(-d-e);t=t<0?-Math.pow(-t,this.ONE_THIRD):Math.pow(t,this.ONE_THIRD),n=n<0?-Math.pow(-n,this.ONE_THIRD):Math.pow(n,this.ONE_THIRD);let r=(-s-(t+n))/(3*a);r>=0&&r<=1&&(o[h++]=r)}else{var g=(2*u*s-3*a*d)/(2*Math.sqrt(u*u*u)),v=Math.acos(g)/3,y=Math.sqrt(u),b=Math.cos(v);let e=(-s-2*y*b)/(3*a),t=(-s+y*(b+this.THREE_SQRT*Math.sin(v)))/(3*a),n=(-s+y*(b-this.THREE_SQRT*Math.sin(v)))/(3*a);e>=0&&e<=1&&(o[h++]=e),t>=0&&t<=1&&(o[h++]=t),n>=0&&n<=1&&(o[h++]=n)}}return h}cubicExtrema(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(this.isAroundZero(a)){if(this.isNotAroundZero(o)){let e=-s/o;e>=0&&e<=1&&(i[l++]=e)}}else{var c=o*o-4*a*s;if(this.isAroundZero(c))i[0]=-o/(2*a);else if(c>0){let e=Math.sqrt(c),t=(-o+e)/(2*a),n=(-o-e)/(2*a);t>=0&&t<=1&&(i[l++]=t),n>=0&&n<=1&&(i[l++]=n)}}return l}cubicSubdivide(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,d=(u-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=r}cubicProjectPoint(e,t,n,r,i,o,a,s,l,c,u){var d,f=this.vector.create(),h=this.vector.create(),p=this.vector.create(),m=.005,g=1/0;f[0]=l,f[1]=c;for(let v=0;v<1;v+=.05){h[0]=this.cubicAt(e,n,i,a,v),h[1]=this.cubicAt(t,r,o,s,v);let l=this.vector.distSquare(f,h);l<g&&(d=v,g=l)}g=1/0;for(let v=0;v<32;v++){if(m<this.EPSILON)break;let l=d-m,c=d+m;h[0]=this.cubicAt(e,n,i,a,l),h[1]=this.cubicAt(t,r,o,s,l);let u=this.vector.distSquare(h,f);if(l>=0&&u<g)d=l,g=u;else{p[0]=this.cubicAt(e,n,i,a,c),p[1]=this.cubicAt(t,r,o,s,c);let l=this.vector.distSquare(p,f);c<=1&&l<g?(d=c,g=l):m*=.5}}return u&&(u[0]=this.cubicAt(e,n,i,a,d),u[1]=this.cubicAt(t,r,o,s,d)),Math.sqrt(g)}quadraticAt(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}quadraticDerivativeAt(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}quadraticRootAt(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(this.isAroundZero(o)){if(this.isNotAroundZero(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var u=a*a-4*o*s;if(this.isAroundZero(u)){let e=-a/(2*o);e>=0&&e<=1&&(i[l++]=e)}else if(u>0){let e=Math.sqrt(u),t=(-a+e)/(2*o),n=(-a-e)/(2*o);t>=0&&t<=1&&(i[l++]=t),n>=0&&n<=1&&(i[l++]=n)}}return l}quadraticExtremum(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}quadraticProjectPoint(e,t,n,r,i,o,a,s,l){var c,u=this.vector.create(),d=this.vector.create(),f=this.vector.create(),h=.005,p=1/0;u[0]=a,u[1]=s;for(let m=0;m<1;m+=.05){d[0]=this.quadraticAt(e,n,i,m),d[1]=this.quadraticAt(t,r,o,m);let a=this.vector.distSquare(u,d);a<p&&(c=m,p=a)}p=1/0;for(let m=0;m<32;m++){if(h<this.EPSILON)break;let a=c-h,s=c+h;d[0]=this.quadraticAt(e,n,i,a),d[1]=this.quadraticAt(t,r,o,a);let l=this.vector.distSquare(d,u);if(a>=0&&l<p)c=a,p=l;else{f[0]=this.quadraticAt(e,n,i,s),f[1]=this.quadraticAt(t,r,o,s);let a=this.vector.distSquare(f,u);s<=1&&a<p?(c=s,p=a):h*=.5}}return l&&(l[0]=this.quadraticAt(e,n,i,c),l[1]=this.quadraticAt(t,r,o,c)),Math.sqrt(p)}}class Wo{constructor(){this.util=new Co,this.curve=new Vo,this._ctx=null,this._textWidthCache={},this._textHeightCache={},this._textWidthCacheCounter=0,this._textHeightCacheCounter=0,this.TEXT_CACHE_MAX=5e3,this.PI2=2*Math.PI,this.roots=[-1,-1,-1],this.extrema=[-1,-1],this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Area"}normalizeRadian(e){return e%=this.PI2,e<0&&(e+=this.PI2),e}isInside(e,t,n,r){if(!t||!e)return!1;var i=e.type;this._ctx=this._ctx||this.util.getContext();var o=this._mathMethod(e,t,n,r);if("undefined"!=typeof o)return o;if(e.buildPath&&this._ctx.isPointInPath)return this._buildPathMethod(e,this._ctx,t,n,r);switch(i){case"ellipse":case"smicellipse":return!0;case"trochoid":var a="out"==t.location?t.r1+t.r2+t.d:t.r1-t.r2+t.d;return this.isInsideCircle(t,n,r,a);case"rose":return this.isInsideCircle(t,n,r,t.maxr);default:return!1}}_mathMethod(e,t,n,r){var i=e.type;switch(i){case"bezier-curve":return"undefined"===typeof t.cpX2?this.isInsideQuadraticStroke(t.xStart,t.yStart,t.cpX1,t.cpY1,t.xEnd,t.yEnd,t.lineWidth,n,r):this.isInsideCubicStroke(t.xStart,t.yStart,t.cpX1,t.cpY1,t.cpX2,t.cpY2,t.xEnd,t.yEnd,t.lineWidth,n,r);case"line":return this.isInsideLine(t.xStart,t.yStart,t.xEnd,t.yEnd,t.lineWidth,n,r);case"broken-line":return this.isInsideBrokenLine(t.pointList,t.lineWidth,n,r);case"smicbroken-line":{let i=n,o=r;return e.refOriginalPosition&&(i=n-e.refOriginalPosition[0],o=r-e.refOriginalPosition[1]),this.isInsideBrokenLine(t.pointList,t.lineWidth,i,o)}case"ring":return this.isInsideRing(t.x,t.y,t.r0,t.r,n,r);case"smicring":{let i=t.x,o=t.y;return e.refOriginalPosition&&(i=t.x+e.refOriginalPosition[0],o=t.y+e.refOriginalPosition[1]),this.isInsideRing(i,o,t.r0,t.r,n,r)}case"circle":return this.isInsideCircle(t.x,t.y,t.r,n,r);case"smicpoint":{let i=n,o=r;return e.refOriginalPosition&&(i=n-e.refOriginalPosition[0],o=r-e.refOriginalPosition[1]),this.isInsideCircle(t.x,t.y,t.r,i,o)}case"sector":{let e=t.startAngle*Math.PI/180,i=t.endAngle*Math.PI/180;return t.clockWise||(e=-e,i=-i),this.isInsideSector(t.x,t.y,t.r0,t.r,e,i,!t.clockWise,n,r)}case"smicsector":{let i=t.startAngle*Math.PI/180,o=t.endAngle*Math.PI/180;t.clockWise||(i=-i,o=-o);let a=t.x,s=t.y;return e.refOriginalPosition&&(a=t.x+e.refOriginalPosition[0],s=t.y+e.refOriginalPosition[1]),this.isInsideSector(a,s,t.r0,t.r,i,o,!t.clockWise,n,r)}case"path":return this.isInsidePath(t.pathArray,Math.max(t.lineWidth,5),t.brushType,n,r);case"polygon":case"star":case"smicstar":case"isogon":case"smicisogon":return this.isInsidePolygon(t.pointList,n,r);case"smicpolygon":{let i=n,f=r;if(e.refOriginalPosition&&(i=n-e.refOriginalPosition[0],f=r-e.refOriginalPosition[1]),e.holePolygonPointLists&&e.holePolygonPointLists.length>0){for(var o=this.isInsidePolygon(t.pointList,i,f),a=e.holePolygonPointLists,s=!1,l=0,c=a.length;l<c;l++){var u=a[l],d=this.isInsidePolygon(u,i,f);!0===d&&(s=!0)}return!0===o&&!1===s}return this.isInsidePolygon(t.pointList,i,f)}case"text":var f=t.__rect||e.getRect(t);return this.isInsideRect(f.x,f.y,f.width,f.height,n,r);case"smictext":var h=e.getTextBackground(t);return this.isInsidePolygon(h,n,r);case"rectangle":case"image":return this.isInsideRect(t.x,t.y,t.width,t.height,n,r);case"smicimage":{let i=t.x,o=t.y;return e.refOriginalPosition&&(i=t.x+e.refOriginalPosition[0],o=t.y+e.refOriginalPosition[1]),this.isInsideRect(i,o,t.width,t.height,n,r)}}}_buildPathMethod(e,t,n,r,i){return t.beginPath(),e.buildPath(t,n),t.closePath(),t.isPointInPath(r,i)}isOutside(e,t,n,r){return!this.isInside(e,t,n,r)}isInsideLine(e,t,n,r,i,o,a){if(0===i)return!1;var s=Math.max(i,5),l=0,c=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;l=(t-r)/(e-n),c=(e*r-n*t)/(e-n);var u=l*o-a+c,d=u*u/(l*l+1);return d<=s/2*s/2}isInsideCubicStroke(e,t,n,r,i,o,a,s,l,c,u){if(0===l)return!1;var d=Math.max(l,5);if(u>t+d&&u>r+d&&u>o+d&&u>s+d||u<t-d&&u<r-d&&u<o-d&&u<s-d||c>e+d&&c>n+d&&c>i+d&&c>a+d||c<e-d&&c<n-d&&c<i-d&&c<a-d)return!1;var f=this.curve.cubicProjectPoint(e,t,n,r,i,o,a,s,c,u,null);return f<=d/2}isInsideQuadraticStroke(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var c=Math.max(a,5);if(l>t+c&&l>r+c&&l>o+c||l<t-c&&l<r-c&&l<o-c||s>e+c&&s>n+c&&s>i+c||s<e-c&&s<n-c&&s<i-c)return!1;var u=this.curve.quadraticProjectPoint(e,t,n,r,i,o,s,l,null);return u<=c/2}isInsideArcStroke(e,t,n,r,i,o,a,s,l){var c=this.PI2;if(0===a)return!1;var u=Math.max(a,5);s-=e,l-=t;var d=Math.sqrt(s*s+l*l);if(d-u>n||d+u<n)return!1;if(Math.abs(r-i)>=c)return!0;if(o){var f=r;r=this.normalizeRadian(i),i=this.normalizeRadian(f)}else r=this.normalizeRadian(r),i=this.normalizeRadian(i);r>i&&(i+=c);var h=Math.atan2(l,s);return h<0&&(h+=c),h>=r&&h<=i||h+c>=r&&h+c<=i}isInsideBrokenLine(e,t,n,r){for(var i=Math.max(t,10),o=0,a=e.length-1;o<a;o++){var s=e[o][0],l=e[o][1],c=e[o+1][0],u=e[o+1][1];if(this.isInsideLine(s,l,c,u,i,n,r))return!0}return!1}isInsideRing(e,t,n,r,i,o){var a=(i-e)*(i-e)+(o-t)*(o-t);return a<r*r&&a>n*n}isInsideRect(e,t,n,r,i,o){return i>=e&&i<=e+n&&o>=t&&o<=t+r}isInsideCircle(e,t,n,r,i){return(r-e)*(r-e)+(i-t)*(i-t)<n*n}isInsideSector(e,t,n,r,i,o,a,s,l){return this.isInsideArcStroke(e,t,(n+r)/2,i,o,a,r-n,s,l)}isInsidePolygon(e,t,n){for(var r=e.length,i=0,o=0,a=r-1;o<r;o++){var s=e[a][0],l=e[a][1],c=e[o][0],u=e[o][1];i+=this.windingLine(s,l,c,u,t,n),a=o}return 0!==i}windingLine(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r==t)return 0;var a=r<t?1:-1,s=(o-t)/(r-t),l=s*(n-e)+e;return l>i?a:0}swapExtrema(){var e=this.extrema[0];this.extrema[0]=this.extrema[1],this.extrema[1]=e}windingCubic(e,t,n,r,i,o,a,s,l,c){var u=this.curve,d=this.roots,f=this.extrema;if(c>t&&c>r&&c>o&&c>s||c<t&&c<r&&c<o&&c<s)return 0;var h=u.cubicRootAt(t,r,o,s,c,d);if(0===h)return 0;for(var p,m,g=0,v=-1,y=0;y<h;y++){var b=d[y],_=u.cubicAt(e,n,i,a,b);_<l||(v<0&&(v=u.cubicExtrema(t,r,o,s,f),f[1]<f[0]&&v>1&&this.swapExtrema(),p=u.cubicAt(t,r,o,s,f[0]),v>1&&(m=u.cubicAt(t,r,o,s,f[1]))),2==v?b<f[0]?g+=p<t?1:-1:b<f[1]?g+=m<p?1:-1:g+=s<m?1:-1:b<f[0]?g+=p<t?1:-1:g+=s<p?1:-1)}return g}windingQuadratic(e,t,n,r,i,o,a,s){var l=this.curve,c=this.roots;if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var u=l.quadraticRootAt(t,r,o,s,c);if(0===u)return 0;var d=l.quadraticExtremum(t,r,o);if(d>=0&&d<=1){var f=0,h=l.quadraticAt(t,r,o,d);for(let r=0;r<u;r++){let s=l.quadraticAt(e,n,i,c[r]);s>a||(c[r]<d?f+=h<t?1:-1:f+=o<h?1:-1)}return f}{let r=l.quadraticAt(e,n,i,c[0]);return r>a?0:o<t?1:-1}}windingArc(e,t,n,r,i,o,a,s){var l=this.roots,c=this.PI2;if(s-=t,s>n||s<-n)return 0;let u=Math.sqrt(n*n-s*s);if(l[0]=-u,l[1]=u,Math.abs(r-i)>=c){r=0,i=c;var d=o?1:-1;return a>=l[0]+e&&a<=l[1]+e?d:0}if(o){let e=r;r=this.normalizeRadian(i),i=this.normalizeRadian(e)}else r=this.normalizeRadian(r),i=this.normalizeRadian(i);r>i&&(i+=c);var f=0;for(let p=0;p<2;p++){var h=l[p];if(h+e>a){let e=Math.atan2(s,h),t=o?1:-1;e<0&&(e=c+e),(e>=r&&e<=i||e+c>=r&&e+c<=i)&&(e>Math.PI/2&&e<1.5*Math.PI&&(t=-t),f+=t)}}return f}isInsidePath(e,t,n,r,i){var o=0,a=0,s=0,l=0,c=0,u=!0,d=!0;n=n||"fill";for(var f="stroke"===n||"both"===n,h="fill"===n||"both"===n,p=0;p<e.length;p++){var m=e[p],g=m.points;if(u||"M"===m.command){if(p>0&&(h&&(o+=this.windingLine(a,s,l,c,r,i)),0!==o))return!0;l=g[g.length-2],c=g[g.length-1],u=!1,d&&"A"!==m.command&&(d=!1,a=l,s=c)}switch(m.command){case"M":a=g[0],s=g[1];break;case"L":if(f&&this.isInsideLine(a,s,g[0],g[1],t,r,i))return!0;h&&(o+=this.windingLine(a,s,g[0],g[1],r,i)),a=g[0],s=g[1];break;case"C":if(f&&this.isInsideCubicStroke(a,s,g[0],g[1],g[2],g[3],g[4],g[5],t,r,i))return!0;h&&(o+=this.windingCubic(a,s,g[0],g[1],g[2],g[3],g[4],g[5],r,i)),a=g[4],s=g[5];break;case"Q":if(f&&this.isInsideQuadraticStroke(a,s,g[0],g[1],g[2],g[3],t,r,i))return!0;h&&(o+=this.windingQuadratic(a,s,g[0],g[1],g[2],g[3],r,i)),a=g[2],s=g[3];break;case"A":var v=g[0],y=g[1],b=g[2],_=g[3],w=g[4],x=g[5],S=Math.cos(w)*b+v,C=Math.sin(w)*_+y;d?(d=!1,l=S,c=C):o+=this.windingLine(a,s,S,C);var E=(r-v)*_/b+v;if(f&&this.isInsideArcStroke(v,y,_,w,w+x,1-g[7],t,E,i))return!0;h&&(o+=this.windingArc(v,y,_,w,w+x,1-g[7],E,i)),a=Math.cos(w+x)*b+v,s=Math.sin(w+x)*_+y;break;case"z":if(f&&this.isInsideLine(a,s,l,c,t,r,i))return!0;u=!0;break}}return h&&(o+=this.windingLine(a,s,l,c,r,i)),0!==o}getTextWidth(e,t){var n=e+":"+t;if(this._textWidthCache[n])return this._textWidthCache[n];this._ctx=this._ctx||this.util.getContext(),this._ctx.save(),t&&(this._ctx.font=t),e=(e+"").split("\n");for(var r=0,i=0,o=e.length;i<o;i++)r=Math.max(this._ctx.measureText(e[i]).width,r);return this._ctx.restore(),this._textWidthCache[n]=r,++this._textWidthCacheCounter>this.TEXT_CACHE_MAX&&(this._textWidthCacheCounter=0,this._textWidthCache={}),r}getTextHeight(e,t){var n=e+":"+t;if(this._textHeightCache[n])return this._textHeightCache[n];this._ctx=this._ctx||this.util.getContext(),this._ctx.save(),t&&(this._ctx.font=t),e=(e+"").split("\n");var r=(this._ctx.measureText("ZH").width+2)*e.length;return this._ctx.restore(),this._textHeightCache[n]=r,++this._textHeightCacheCounter>this.TEXT_CACHE_MAX&&(this._textHeightCacheCounter=0,this._textHeightCache={}),r}}class Ho{constructor(){3===arguments.length&&this.computeBoundingBox(arguments),this.CLASS_NAME="SuperMap.LevelRenderer.Tool.ComputeBoundingBox"}computeBoundingBox(e,t,n){if(0!==e.length){for(var r=e[0][0],i=e[0][0],o=e[0][1],a=e[0][1],s=1;s<e.length;s++){var l=e[s];l[0]<r&&(r=l[0]),l[0]>i&&(i=l[0]),l[1]<o&&(o=l[1]),l[1]>a&&(a=l[1])}t[0]=r,t[1]=o,n[0]=i,n[1]=a}}cubeBezier(e,t,n,r,i,o){var a=new Vo,s=[];a.cubicExtrema(e[0],t[0],n[0],r[0],s);for(let h=0;h<s.length;h++)s[h]=a.cubicAt(e[0],t[0],n[0],r[0],s[h]);var l=[];a.cubicExtrema(e[1],t[1],n[1],r[1],l);for(let h=0;h<l.length;h++)l[h]=a.cubicAt(e[1],t[1],n[1],r[1],l[h]);s.push(e[0],r[0]),l.push(e[1],r[1]);var c=Math.min.apply(null,s),u=Math.max.apply(null,s),d=Math.min.apply(null,l),f=Math.max.apply(null,l);i[0]=c,i[1]=d,o[0]=u,o[1]=f}quadraticBezier(e,t,n,r,i){var o=new Vo,a=o.quadraticExtremum(e[0],t[0],n[0]),s=o.quadraticExtremum(e[1],t[1],n[1]);a=Math.max(Math.min(a,1),0),s=Math.max(Math.min(s,1),0);var l=1-a,c=1-s,u=l*l*e[0]+2*l*a*t[0]+a*a*n[0],d=l*l*e[1]+2*l*a*t[1]+a*a*n[1],f=c*c*e[0]+2*c*s*t[0]+s*s*n[0],h=c*c*e[1]+2*c*s*t[1]+s*s*n[1];r[0]=Math.min(e[0],n[0],u,f),r[1]=Math.min(e[1],n[1],d,h),i[0]=Math.max(e[0],n[0],u,f),i[1]=Math.max(e[1],n[1],d,h)}arc(e,t,n,r,i,o,a,s){var l=new Go,c=l.create(),u=l.create(),d=l.create();if(c[0]=Math.cos(r)*n+e,c[1]=Math.sin(r)*n+t,u[0]=Math.cos(i)*n+e,u[1]=Math.sin(i)*n+t,l.min(a,c,u),l.max(s,c,u),r%=2*Math.PI,r<0&&(r+=2*Math.PI),i%=2*Math.PI,i<0&&(i+=2*Math.PI),r>i&&!o?i+=2*Math.PI:r<i&&o&&(r+=2*Math.PI),o){var f=i;i=r,r=f}for(var h=0;h<i;h+=Math.PI/2)h>r&&(d[0]=Math.cos(h)*n+e,d[1]=Math.sin(h)*n+t,l.min(a,d,a),l.max(s,d,s))}}class $o{constructor(){this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Env";var e=this;function t(t){var n=e.os={},r=e.browser={},i=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),o=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),l=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),c=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),u=c&&t.match(/TouchPad/),d=t.match(/Kindle\/([\d.]+)/),f=t.match(/Silk\/([\d._]+)/),h=t.match(/(BlackBerry).*Version\/([\d.]+)/),p=t.match(/(BB10).*Version\/([\d.]+)/),m=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),g=t.match(/PlayBook/),v=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),y=t.match(/Firefox\/([\d.]+)/),b=t.match(/MSIE ([\d.]+)/),_=i&&t.match(/Mobile\//)&&!v,w=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!v;return(r.webkit=!!i)&&(r.version=i[1]),o&&(n.android=!0,n.version=o[2]),l&&!s&&(n.ios=n.iphone=!0,n.version=l[2].replace(/_/g,".")),a&&(n.ios=n.ipad=!0,n.version=a[2].replace(/_/g,".")),s&&(n.ios=n.ipod=!0,n.version=s[3]?s[3].replace(/_/g,"."):null),c&&(n.webos=!0,n.version=c[2]),u&&(n.touchpad=!0),h&&(n.blackberry=!0,n.version=h[2]),p&&(n.bb10=!0,n.version=p[2]),m&&(n.rimtabletos=!0,n.version=m[2]),g&&(r.playbook=!0),d&&(n.kindle=!0,n.version=d[1]),f&&(r.silk=!0,r.version=f[1]),!f&&n.android&&t.match(/Kindle Fire/)&&(r.silk=!0),v&&(r.chrome=!0,r.version=v[1]),y&&(r.firefox=!0,r.version=y[1]),b&&(r.ie=!0,r.version=b[1]),_&&(t.match(/Safari/)||n.ios)&&(r.safari=!0),w&&(r.webview=!0),b&&(r.ie=!0,r.version=b[1]),n.tablet=!!(a||g||o&&!t.match(/Mobile/)||y&&t.match(/Tablet/)||b&&!t.match(/Phone/)&&t.match(/Touch/)),n.phone=!(n.tablet||n.ipod||!(o||l||c||h||p||v&&t.match(/Android/)||v&&t.match(/CriOS\/([\d.]+)/)||y&&t.match(/Mobile/)||b&&t.match(/Touch/))),{browser:r,os:n,canvasSupported:!!document.createElement("canvas").getContext}}return t(navigator.userAgent)}destory(){return!0}}class Ko{constructor(){this.stop="function"===typeof window.addEventListener?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0},this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Event"}getX(e){return"undefined"!=typeof e.zrenderX&&e.zrenderX||"undefined"!=typeof e.offsetX&&e.offsetX||"undefined"!=typeof e.layerX&&e.layerX||"undefined"!=typeof e.clientX&&e.clientX}getY(e){return"undefined"!=typeof e.zrenderY&&e.zrenderY||"undefined"!=typeof e.offsetY&&e.offsetY||"undefined"!=typeof e.layerY&&e.layerY||"undefined"!=typeof e.clientY&&e.clientY}getDelta(e){return"undefined"!=typeof e.zrenderDelta&&e.zrenderDelta||"undefined"!=typeof e.wheelDelta&&e.wheelDelta||"undefined"!=typeof e.detail&&-e.detail}}class Xo{constructor(){this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Http"}get(e,t,n){if("object"===typeof e){var r=e;e=r.url,t=r.onsuccess,n=r.onerror}var i=window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");i.open("GET",e,!0),i.onreadystatechange=function(){4==i.readyState&&(i.status>=200&&i.status<300||304===i.status?t&&t(i.responseText):n&&n(),i.onreadystatechange=new Function,i=null)},i.send(null)}}class Yo{}Yo.EVENT={RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",MOUSEWHEEL:"mousewheel",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",GLOBALOUT:"globalout",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",touchClickDelay:300},Yo.catchBrushException=!1,Yo.debugMode=0;class Jo{constructor(){return this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Log",function(){if(0!==Yo.debugMode)if(1==Yo.debugMode)for(let e in arguments)throw new Error(arguments[e]);else if(Yo.debugMode>1)for(let e in arguments)console.log(arguments[e])}}destory(){return!0}}class Qo{constructor(){this._radians=window.Math.PI/180,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Math"}sin(e,t){return window.Math.sin(t?e*this._radians:e)}cos(e,t){return window.Math.cos(t?e*this._radians:e)}degreeToRadian(e){return e*this._radians}radianToDegree(e){return e/this._radians}}class Zo{constructor(){this.ArrayCtor="undefined"===typeof Float32Array?Array:Float32Array,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Matrix"}create(){var e=this.ArrayCtor,t=new e(6);return this.identity(t),t}identity(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}copy(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}mul(e,t,n){return e[0]=t[0]*n[0]+t[2]*n[1],e[1]=t[1]*n[0]+t[3]*n[1],e[2]=t[0]*n[2]+t[2]*n[3],e[3]=t[1]*n[2]+t[3]*n[3],e[4]=t[0]*n[4]+t[2]*n[5]+t[4],e[5]=t[1]*n[4]+t[3]*n[5]+t[5],e}translate(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}rotate(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=r*u+a*c,e[1]=-r*c+a*u,e[2]=i*u+s*c,e[3]=-i*c+u*s,e[4]=u*o+c*l,e[5]=u*l-c*o,e}scale(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}invert(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}mulVector(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5];return e[0]=n[0]*r+n[1]*i+o,e[1]=n[0]*a+n[1]*s+l,e}}class ea{static SUtil_smoothBezier(e,t,n,r,i){i&&2===i||(i=[0,0]);var o,a,s=i,l=[],c=[],u=[],d=[],f=!!r;if(f){o=[1/0,1/0],a=[-1/0,-1/0];let t=e.length;for(let n=0;n<t;n++)ea.Util_vector.min(o,o,[e[n][0]+s[0],e[n][1]+s[1]]),ea.Util_vector.max(a,a,[e[n][0]+s[0],e[n][1]+s[1]]);ea.Util_vector.min(o,o,r[0]),ea.Util_vector.max(a,a,r[1])}let h=e.length;for(let p=0;p<h;p++){let r,i,m=[e[p][0]+s[0],e[p][1]+s[1]];if(n)r=[e[p?p-1:h-1][0]+s[0],e[p?p-1:h-1][1]+s[1]],i=[e[(p+1)%h][0]+s[0],e[(p+1)%h][1]+s[1]];else{if(0===p||p===h-1){l.push([e[p][0]+s[0],e[p][1]+s[1]]);continue}r=[e[p-1][0]+s[0],e[p-1][1]+s[1]],i=[e[p+1][0]+s[0],e[p+1][1]+s[1]]}ea.Util_vector.sub(c,i,r),ea.Util_vector.scale(c,c,t);let g=ea.Util_vector.distance(m,r),v=ea.Util_vector.distance(m,i),y=g+v;0!==y&&(g/=y,v/=y),ea.Util_vector.scale(u,c,-g),ea.Util_vector.scale(d,c,v);let b=ea.Util_vector.add([],m,u),_=ea.Util_vector.add([],m,d);f&&(ea.Util_vector.max(b,b,o),ea.Util_vector.min(b,b,a),ea.Util_vector.max(_,_,o),ea.Util_vector.min(_,_,a)),l.push(b),l.push(_)}return n&&l.push(l.shift()),l}static SUtil_smoothSpline(e,t,n,r){r&&2===r||(r=[0,0]);var i=r,o=e.length,a=[],s=0;for(let u=1;u<o;u++)s+=ea.Util_vector.distance([e[u-1][0]+i[0],e[u-1][1]+i[1]],[e[u][0]+i[0],e[u][1]+i[1]]);var l=s/5;l=l<o?o:l;for(let u=0;u<l;u++){let n,r,s,d=u/(l-1)*(t?o:o-1),f=Math.floor(d),h=d-f,p=[e[f%o][0]+i[0],e[f%o][1]+i[1]];t?(n=[e[(f-1+o)%o][0]+i[0],e[(f-1+o)%o][1]+i[1]],r=[e[(f+1)%o][0]+i[0],e[(f+1)%o][1]+i[1]],s=[e[(f+2)%o][0]+i[0],e[(f+2)%o][1]+i[1]]):(n=[e[0===f?f:f-1][0]+i[0],e[0===f?f:f-1][1]+i[1]],r=[e[f>o-2?o-1:f+1][0]+i[0],e[f>o-2?o-1:f+1][1]+i[1]],s=[e[f>o-3?o-1:f+2][0]+i[0],e[f>o-3?o-1:f+2][1]+i[1]]);let m=h*h,g=h*m;a.push([c(n[0],p[0],r[0],s[0],h,m,g),c(n[1],p[1],r[1],s[1],h,m,g)])}return a;function c(e,t,n,r,i,o,a){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*i+t}}static SUtil_dashedLineTo(e,t,n,r,i,o,a){var s=[5,5];if(o="number"!=typeof o?5:o,e.setLineDash)return s[0]=o,s[1]=o,a&&a instanceof Array?e.setLineDash(a):e.setLineDash(s),e.moveTo(t,n),void e.lineTo(r,i);var l=r-t,c=i-n,u=Math.floor(Math.sqrt(l*l+c*c)/o);l/=u,c/=u;for(var d=!0,f=0;f<u;++f)d?e.moveTo(t,n):e.lineTo(t,n),d=!d,t+=l,n+=c;e.lineTo(r,i)}}ea.Util_area=new Wo,ea.Util_color=new Eo,ea.Util_computeBoundingBox=new Ho,ea.Util_curve=new Vo,ea.Util_env=new $o,ea.Util_event=new Ko,ea.Util_http=new Xo,ea.Util_log=new Jo,ea.Util_math=new Qo,ea.Util_matrix=new Zo,ea.Util=new Co,ea.Util_vector=new Go;class ta{constructor(){this.position=[0,0],this.rotation=[0,0,0],this.scale=[1,1,0,0],this.needLocalTransform=!1,this.needTransform=!1,this.CLASS_NAME="SuperMap.LevelRenderer.Transformable",this.lookAt=function(){var e=ea.Util_vector.create();return function(t){this.transform||(this.transform=ea.Util_matrix.create());var n=this.transform;function r(e){var t=5e-5;return e>-t&&e<t}ea.Util_vector.sub(e,t,this.position),r(e[0])&&r(e[1])||(ea.Util_vector.normalize(e,e),n[2]=e[0]*this.scale[1],n[3]=e[1]*this.scale[1],n[0]=e[1]*this.scale[0],n[1]=-e[0]*this.scale[0],n[4]=this.position[0],n[5]=this.position[1],this.decomposeTransform())}}()}destroy(){this.position=null,this.rotation=null,this.scale=null,this.needLocalTransform=null,this.needTransform=null}updateNeedTransform(){function e(e){var t=5e-5;return e>t||e<-t}this.needLocalTransform=e(this.rotation[0])||e(this.position[0])||e(this.position[1])||e(this.scale[0]-1)||e(this.scale[1]-1)}updateTransform(){if(this.updateNeedTransform(),this.parent?this.needTransform=this.needLocalTransform||this.parent.needTransform:this.needTransform=this.needLocalTransform,this.needTransform){var e=[0,0],t=this.transform||ea.Util_matrix.create();if(ea.Util_matrix.identity(t),this.needLocalTransform){if(n(this.scale[0])||n(this.scale[1])){e[0]=-this.scale[2]||0,e[1]=-this.scale[3]||0;let r=n(e[0])||n(e[1]);r&&ea.Util_matrix.translate(t,t,e),ea.Util_matrix.scale(t,t,this.scale),r&&(e[0]=-e[0],e[1]=-e[1],ea.Util_matrix.translate(t,t,e))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){e[0]=-this.rotation[1]||0,e[1]=-this.rotation[2]||0;let r=n(e[0])||n(e[1]);r&&ea.Util_matrix.translate(t,t,e),ea.Util_matrix.rotate(t,t,this.rotation[0]),r&&(e[0]=-e[0],e[1]=-e[1],ea.Util_matrix.translate(t,t,e))}}else 0!==this.rotation&&ea.Util_matrix.rotate(t,t,this.rotation);(n(this.position[0])||n(this.position[1]))&&ea.Util_matrix.translate(t,t,this.position)}this.transform=t,this.parent&&this.parent.needTransform&&(this.needLocalTransform?ea.Util_matrix.mul(this.transform,this.parent.transform,this.transform):ea.Util_matrix.copy(this.transform,this.parent.transform))}function n(e){var t=5e-5;return e>t||e<-t}}setTransform(e){if(this.needTransform){var t=this.transform;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}}decomposeTransform(){if(this.transform){var e=this.transform,t=e[0]*e[0]+e[1]*e[1],n=this.position,r=this.scale,i=this.rotation;a(t-1)&&(t=Math.sqrt(t));var o=e[2]*e[2]+e[3]*e[3];a(o-1)&&(o=Math.sqrt(o)),n[0]=e[4],n[1]=e[5],r[0]=t,r[1]=o,r[2]=r[3]=0,i[0]=Math.atan2(-e[1]/o,e[0]/t),i[1]=i[2]=0}function a(e){var t=5e-5;return e>t||e<-t}}}class na extends(o.mixin(Uo,ta)){constructor(e){super(e),e=e||{},this.id=null,this.style={},this.highlightStyle=null,this.parent=null,this.__dirty=!0,this.__clipShapes=[],this.invisible=!1,this.ignore=!1,this.zlevel=0,this.draggable=!1,this.clickable=!1,this.hoverable=!0,this.z=0,this.refOriginalPosition=[0,0],this.refDataID=null,this.isHoverByRefDataID=!1,this.refDataHoverGroup=null,this.dataInfo=null,Y.extend(this,e),this.id=this.id||Y.createUniqueID("smShape_"),this.CLASS_NAME="SuperMap.LevelRenderer.Shape",this.getTansform=function(){var e=[];return function(t,n){var r=[t,n];return this.needTransform&&this.transform&&(ea.Util_matrix.invert(e,this.transform),ea.Util_matrix.mulVector(r,e,[t,n,1]),t==r[0]&&n==r[1]&&this.updateNeedTransform()),r}}()}destroy(){this.id=null,this.style=null,this.highlightStyle=null,this.parent=null,this.__dirty=null,this.__clipShapes=null,this.invisible=null,this.ignore=null,this.zlevel=null,this.draggable=null,this.clickable=null,this.hoverable=null,this.z=null,this.refOriginalPosition=null,this.refDataID=null,this.refDataHoverGroup=null,this.isHoverByRefDataID=null,this.dataInfo=null,super.destroy()}brush(e,t){var n=this.beforeBrush(e,t);switch(e.beginPath(),this.buildPath(e,n),n.brushType){case"both":this.setCtxGlobalAlpha(e,"fill",n),e.fill(),n.lineWidth>0&&(this.setCtxGlobalAlpha(e,"stroke",n),e.stroke()),this.setCtxGlobalAlpha(e,"reset",n);break;case"stroke":this.setCtxGlobalAlpha(e,"stroke",n),n.lineWidth>0&&e.stroke(),this.setCtxGlobalAlpha(e,"reset",n);break;default:this.setCtxGlobalAlpha(e,"fill",n),e.fill(),this.setCtxGlobalAlpha(e,"reset",n);break}this.drawText(e,n,this.style),this.afterBrush(e)}beforeBrush(e,t){var n=this.style;return this.brushTypeOnly&&(n.brushType=this.brushTypeOnly),t&&(n=this.getHighlightStyle(n,this.highlightStyle||{},this.brushTypeOnly)),"stroke"==this.brushTypeOnly&&(n.strokeColor=n.strokeColor||n.color),e.save(),this.doClip(e),this.setContext(e,n),this.setTransform(e),n}afterBrush(e){e.restore()}setContext(e,t){for(var n=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]],r=0,i=n.length;r<i;r++){var o=n[r][0],a=t[o],s=n[r][1];"undefined"!=typeof a&&(e[s]=a)}}doClip(e){var t=ea.Util_matrix.create();if(this.__clipShapes)for(var n=0;n<this.__clipShapes.length;n++){var r=this.__clipShapes[n];if(r.needTransform){let n=r.transform;ea.Util_matrix.invert(t,n),e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}if(e.beginPath(),r.buildPath(e,r.style),e.clip(),r.needTransform){let n=t;e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}}}getHighlightStyle(e,t,n){var r={};for(let o in e)r[o]=e[o];var i=ea.Util_color.getHighlightColor();"stroke"!=e.brushType?(r.strokeColor=i,r.lineWidth=e.lineWidth||1,r.brushType="both"):"stroke"!=n?(r.strokeColor=i,r.lineWidth=e.lineWidth||1):r.strokeColor=t.strokeColor||ea.Util_color.mix(e.strokeColor,ea.Util_color.toRGB(i));for(let o in t)"undefined"!=typeof t[o]&&(r[o]=t[o]);return r}getHighlightZoom(){return"text"!=this.type?6:2}drift(e,t){this.position[0]+=e,this.position[1]+=t}buildPath(e,t){ea.Util_log("buildPath not implemented in "+this.type)}getRect(e){ea.Util_log("getRect not implemented in "+this.type)}isCover(e,t){var n=this.getTansform(e,t);e=n[0],t=n[1];var r=this.style.__rect;return r||(r=this.style.__rect=this.getRect(this.style)),e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height&&ea.Util_area.isInside(this,this.style,e,t)}drawText(e,t,n){if("undefined"!=typeof t.text&&!1!==t.text){var r=t.textColor||t.color||t.strokeColor;e.fillStyle=r;var i,o,a,s,l=10,c=t.textPosition||this.textPosition||"top",u=[];switch(u=this.refOriginalPosition&&2===this.refOriginalPosition.length?this.refOriginalPosition:[0,0],c){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var d=(n||t).__rect||this.getRect(n||t);switch(c){case"inside":a=d.x+d.width/2,s=d.y+d.height/2,i="center",o="middle","stroke"!=t.brushType&&r==t.color&&(e.fillStyle="#fff");break;case"left":a=d.x-l,s=d.y+d.height/2,i="end",o="middle";break;case"right":a=d.x+d.width+l,s=d.y+d.height/2,i="start",o="middle";break;case"top":a=d.x+d.width/2,s=d.y-l,i="center",o="bottom";break;case"bottom":a=d.x+d.width/2,s=d.y+d.height+l,i="center",o="top";break}}break;case"start":case"end":var f=0,h=0,p=0,m=0;if("undefined"!=typeof t.pointList){var g=t.pointList;if(g.length<2)return;var v=g.length;switch(c){case"start":f=g[0][0]+u[0],h=g[1][0]+u[0],p=g[0][1]+u[1],m=g[1][1]+u[1];break;case"end":f=g[v-2][0]+u[0],h=g[v-1][0]+u[0],p=g[v-2][1]+u[1],m=g[v-1][1]+u[1];break}}else f=t.xStart+u[0]||0,h=t.xEnd+u[0]||0,p=t.yStart+u[1]||0,m=t.yEnd+u[1]||0;switch(c){case"start":i=f<h?"end":"start",o=p<m?"bottom":"top",a=f,s=p;break;case"end":i=f<h?"start":"end",o=p<m?"top":"bottom",a=h,s=m;break}l-=4,f&&h&&f!=h?a-="end"==i?l:-l:i="center",p!=m?s-="bottom"==o?l:-l:o="middle";break;case"specific":a=t.textX||0,s=t.textY||0,i="start",o="middle";break}t.labelXOffset&&!isNaN(t.labelXOffset)&&(a+=t.labelXOffset),t.labelYOffset&&!isNaN(t.labelYOffset)&&(s+=t.labelYOffset),null!=a&&null!=s&&na._fillText(e,t.text,a,s,t.textFont,t.textAlign||i,t.textBaseline||o)}}modSelf(){this.__dirty=!0,this.style&&(this.style.__rect=null),this.highlightStyle&&(this.highlightStyle.__rect=null)}isSilent(){return!(this.hoverable||this.draggable||this.clickable||this.onmousemove||this.onmouseover||this.onmouseout||this.onmousedown||this.onmouseup||this.onclick||this.ondragenter||this.ondragover||this.ondragleave||this.ondrop)}setCtxGlobalAlpha(e,t,n){e.globalAlpha="fill"===t?"undefined"===typeof n["fillOpacity"]?"undefined"===typeof n["opacity"]?1:n["opacity"]:n["fillOpacity"]:"stroke"===t?"undefined"===typeof n["strokeOpacity"]?"undefined"===typeof n["opacity"]?1:n["opacity"]:n["strokeOpacity"]:"undefined"===typeof n["opacity"]?1:n["opacity"]}static _fillText(e,t,n,r,i,o,a){i&&(e.font=i),e.textAlign=o,e.textBaseline=a;var s=na._getTextRect(t,n,r,i,o,a);t=(t+"").split("\n");var l=ea.Util_area.getTextHeight("ZH",i);switch(a){case"top":r=s.y;break;case"bottom":r=s.y+l;break;default:r=s.y+l/2}for(var c=0,u=t.length;c<u;c++)e.fillText(t[c],n,r),r+=l}static _getTextRect(e,t,n,r,i,o){var a=ea.Util_area.getTextWidth(e,r),s=ea.Util_area.getTextHeight("ZH",r);switch(e=(e+"").split("\n"),i){case"end":case"right":t-=a;break;case"center":t-=a/2;break}switch(o){case"top":break;case"bottom":n-=s*e.length;break;default:n-=s*e.length/2}return{x:t,y:n,width:a,height:s*e.length}}}class ra extends na{constructor(e){super(e),this.type="smicpoint",this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicPoint"}destroy(){this.type=null,super.destroy()}buildPath(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition;e.arc(t.x+n[0],t.y+n[1],t.r,0,2*Math.PI,!0)}getRect(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,n=this.refOriginalPosition;return e.__rect||(t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+n[0]-e.r-t/2),y:Math.round(e.y+n[1]-e.r-t/2),width:2*e.r+t,height:2*e.r+t}),e.__rect}}class ia extends na{constructor(e){super(e),this.type="smictext",this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicText"}destroy(){this.type=null,super.destroy()}brush(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition,r=this.style;if(t&&(r=this.getHighlightStyle(r,this.highlightStyle||{})),"undefined"!=typeof r.text&&!1!==r.text){e.save(),this.doClip(e),this.setContext(e,r),this.setTransform(e),r.textFont&&(e.font=r.textFont),e.textAlign=r.textAlign||"start",e.textBaseline=r.textBaseline||"middle";var i,o=(r.text+"").split("\n"),a=ea.Util_area.getTextHeight("ZH",r.textFont),s=this.getRectNoRotation(r),l=r.x+n[0];i="top"==r.textBaseline?s.y:"bottom"==r.textBaseline?s.y+a:s.y+a/2;for(var c=r.x+n[0],u=r.y+n[1],d=0,f=o.length;d<f;d++){switch(r.labelRect&&(e.fillRect(s.x-2,s.y,s.width+4,s.height),e.fillStyle=r.strokeColor,e.strokeRect(s.x-2,s.y,s.width+4,s.height),e.fillStyle=r.textColor),r.brushType){case"stroke":this.setCtxGlobalAlpha(e,"stroke",r),r.textRotation&&0!==r.textRotation?(e.save(),e.translate(c,u),e.rotate(r.textRotation*Math.PI/180),"top"==r.textBaseline?r.maxWidth?e.strokeText(o[d],0,a*d,r.maxWidth):e.strokeText(o[d],0,a*d):"bottom"==r.textBaseline?r.maxWidth?e.strokeText(o[d],0,a*(d+1)-s.height,r.maxWidth):e.strokeText(o[d],0,a*(d+1)-s.height):r.maxWidth?e.strokeText(o[d],0,a*(d+1)-s.height/2-a/2,r.maxWidth):e.strokeText(o[d],0,a*(d+1)-s.height/2-a/2),e.restore()):r.maxWidth?e.strokeText(o[d],l,i,r.maxWidth):e.strokeText(o[d],l,i),this.setCtxGlobalAlpha(e,"reset",r);break;case"both":r.textRotation&&0!==r.textRotation?(e.save(),e.translate(c,u),e.rotate(r.textRotation*Math.PI/180),"top"==r.textBaseline?r.maxWidth?(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],0,a*d,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],0,a*d,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r)):(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],0,a*d),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],0,a*d),this.setCtxGlobalAlpha(e,"reset",r)):"bottom"==r.textBaseline?r.maxWidth?(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],0,a*(d+1)-s.height,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],0,a*(d+1)-s.height,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r)):(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],0,a*(d+1)-s.height),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],0,a*(d+1)-s.height),this.setCtxGlobalAlpha(e,"reset",r)):r.maxWidth?(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],0,a*(d+1)-s.height/2-a/2,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],0,a*(d+1)-s.height/2-a/2,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r)):(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],0,a*(d+1)-s.height/2-a/2),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],0,a*(d+1)-s.height/2-a/2),this.setCtxGlobalAlpha(e,"reset",r)),e.restore()):r.maxWidth?(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],l,i,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],l,i,r.maxWidth),this.setCtxGlobalAlpha(e,"reset",r)):(this.setCtxGlobalAlpha(e,"fill",r),e.fillText(o[d],l,i),this.setCtxGlobalAlpha(e,"reset",r),this.setCtxGlobalAlpha(e,"stroke",r),e.strokeText(o[d],l,i),this.setCtxGlobalAlpha(e,"reset",r));break;default:this.setCtxGlobalAlpha(e,"fill",r),r.textRotation&&0!==r.textRotation?(e.save(),e.translate(c,u),e.rotate(r.textRotation*Math.PI/180),"top"==r.textBaseline?r.maxWidth?e.fillText(o[d],0,a*d,r.maxWidth):e.fillText(o[d],0,a*d):"bottom"==r.textBaseline?r.maxWidth?e.fillText(o[d],0,a*(d+1)-s.height,r.maxWidth):e.fillText(o[d],0,a*(d+1)-s.height):r.maxWidth?e.fillText(o[d],0,a*(d+1)-s.height/2-a/2,r.maxWidth):e.fillText(o[d],0,a*(d+1)-s.height/2-a/2),e.restore()):r.maxWidth?e.fillText(o[d],l,i,r.maxWidth):e.fillText(o[d],l,i),this.setCtxGlobalAlpha(e,"reset",r)}i+=a}e.restore()}}getRect(e){if(e.__rect)return e.__rect;for(var t,n,r,i,o=this.getTextBackground(e,!0),a=0,s=o.length;a<s;a++){var l=o[a];0==a?(t=l[0],r=l[0],n=l[1],i=l[1]):(l[0]<t&&(t=l[0]),l[0]>r&&(r=l[0]),l[1]<n&&(n=l[1]),l[1]>i&&(i=l[1]))}return e.__rect={x:t,y:n,width:r-t,height:i-n},e.__rect}getRectNoRotation(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,n=this.refOriginalPosition,r=ea.Util_area.getTextHeight("ZH",e.textFont),i=ea.Util_area.getTextWidth(e.text,e.textFont),o=ea.Util_area.getTextHeight(e.text,e.textFont),a=e.x+n[0];"end"==e.textAlign||"right"==e.textAlign?a-=i:"center"==e.textAlign&&(a-=i/2),t="top"==e.textBaseline?e.y+n[1]:"bottom"==e.textBaseline?e.y+n[1]-o:e.y+n[1]-o/2;var s,l=!1;if(e.maxWidth){var c=parseInt(e.maxWidth);c<i&&(s=i,l=!0,i=c),a=e.x+n[0],"end"==e.textAlign||"right"==e.textAlign?a-=i:"center"==e.textAlign&&(a-=i/2)}if(e.textFont){var u=e.textFont,d=u.toLowerCase();d.indexOf("italic")>-1&&(i+=!0===l?r/3*(i/s):r/3)}var f={x:a,y:t,width:i,height:o};return f}getTextBackground(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition;if(!t&&e.__textBackground)return e.__textBackground;var r=this.getRectNoRotation(e),i=e.x+n[0],o=e.y+n[1],a=[];if(e.textRotation&&0!==e.textRotation){let t=e.textRotation,n=this.getRotatedLocation(r.x,r.y,i,o,t),s=this.getRotatedLocation(r.x+r.width,r.y,i,o,t),l=this.getRotatedLocation(r.x+r.width,r.y+r.height,i,o,t),c=this.getRotatedLocation(r.x,r.y+r.height,i,o,t);a.push(n),a.push(s),a.push(l),a.push(c)}else{let e=[r.x,r.y],t=[r.x+r.width,r.y],n=[r.x+r.width,r.y+r.height],i=[r.x,r.y+r.height];a.push(e),a.push(t),a.push(n),a.push(i)}return e.__textBackground=a,e.__textBackground}getRotatedLocation(e,t,n,r,i){var o,a,s=new Array;return t=-t,r=-r,i=-i,o=(e-n)*Math.cos(i/180*Math.PI)-(t-r)*Math.sin(i/180*Math.PI)+n,a=(e-n)*Math.sin(i/180*Math.PI)+(t-r)*Math.cos(i/180*Math.PI)+r,s[0]=o,s[1]=-a,s}}class oa extends na{constructor(e){super(e),this.type="smiccircle",this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicCircle"}destroy(){this.type=null,super.destroy()}buildPath(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition,r=t.x+n[0],i=t.y+n[1];return e.moveTo(r+t.r,i),e.arc(r,i,t.r,0,2*Math.PI,!0),!0}getRect(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,n=this.refOriginalPosition,r=e.x+n[0],i=e.y+n[1],o=e.r;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(r-o-t/2),y:Math.round(i-o-t/2),width:2*o+t,height:2*o+t},e.__rect}}class aa extends na{constructor(e){super(e),this.type="smicpolygon",this.holePolygonPointLists=null,this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicPolygon"}destroy(){this.type=null,this.holePolygonPointLists=null,super.destroy()}brush(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.style;t&&(n=this.getHighlightStyle(n,this.highlightStyle||{})),e.save(),this.setContext(e,n),this.setTransform(e);var r=!1;"fill"!=n.brushType&&"both"!=n.brushType&&"undefined"!=typeof n.brushType||(e.beginPath(),"dashed"==n.lineType||"dotted"==n.lineType||"dot"==n.lineType||"dash"==n.lineType||"dashdot"==n.lineType||"longdash"==n.lineType||"longdashdot"==n.lineType?this.buildPath(e,{lineType:"solid",lineWidth:n.lineWidth,pointList:n.pointList}):(this.buildPath(e,n),r=!0),e.closePath(),this.setCtxGlobalAlpha(e,"fill",n),e.fill(),this.setCtxGlobalAlpha(e,"reset",n)),n.lineWidth>0&&("stroke"==n.brushType||"both"==n.brushType)&&(r||(e.beginPath(),this.buildPath(e,n)),this.setCtxGlobalAlpha(e,"stroke",n),e.stroke(),this.setCtxGlobalAlpha(e,"reset",n)),this.drawText(e,n,this.style);var i=Y.cloneObject(n);if(i.pointList&&this.holePolygonPointLists&&this.holePolygonPointLists.length>0)for(var o=this.holePolygonPointLists,a=o.length,s=0;s<a;s++){var l=o[s];i.pointList=l,e.globalCompositeOperation="destination-out",r=!1,"fill"!=i.brushType&&"both"!=i.brushType&&"undefined"!=typeof i.brushType||(e.beginPath(),"dashed"==i.lineType||"dotted"==i.lineType||"dot"==i.lineType||"dash"==i.lineType||"dashdot"==i.lineType||"longdash"==i.lineType||"longdashdot"==i.lineType?this.buildPath(e,{lineType:"solid",lineWidth:i.lineWidth,pointList:i.pointList}):(this.buildPath(e,i),r=!0),e.closePath(),this.setCtxGlobalAlpha(e,"fill",i),e.fill(),this.setCtxGlobalAlpha(e,"reset",i)),i.lineWidth>0&&("stroke"==i.brushType||"both"==i.brushType)?(r||(e.beginPath(),this.buildPath(e,i)),e.globalCompositeOperation="source-over",this.setCtxGlobalAlpha(e,"stroke",i),e.stroke(),this.setCtxGlobalAlpha(e,"reset",i)):e.globalCompositeOperation="source-over"}e.restore()}buildPath(e,t){t.showShadow&&(e.shadowBlur=t.shadowBlur,e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY),this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition,r=t.pointList;if(!(r.length<2))if(t.smooth&&"spline"!==t.smooth){var i,o,a,s=ea.SUtil_smoothBezier(r,t.smooth,!0,t.smoothConstraint,n);e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(var l=r.length,c=0;c<l;c++)i=s[2*c],o=s[2*c+1],a=[r[(c+1)%l][0]+n[0],r[(c+1)%l][1]+n[1]],e.bezierCurveTo(i[0],i[1],o[0],o[1],a[0],a[1])}else if("spline"===t.smooth&&(r=ea.SUtil_smoothSpline(r,!0,null,n)),t.lineType&&"solid"!=t.lineType){if("dashed"===t.lineType||"dotted"===t.lineType||"dot"===t.lineType||"dash"===t.lineType||"longdash"===t.lineType){let i=t._dashLength||(t.lineWidth||1)*("dashed"==t.lineType?5:1);t._dashLength=i;let o=t.lineWidth||1,a=o,s=o;"dashed"===t.lineType&&(a*=5,s*=5,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o)),"dotted"===t.lineType&&t.lineCap&&"butt"!==t.lineCap&&(a=1,s+=o),"dot"===t.lineType&&(s*=4,t.lineCap&&"butt"!==t.lineCap&&(a=1,s+=o)),"dash"===t.lineType&&(a*=4,s*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o)),"longdash"===t.lineType&&(a*=8,s*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o)),e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(let t=1;t<r.length;t++)ea.SUtil_dashedLineTo(e,r[t-1][0]+n[0],r[t-1][1]+n[1],r[t][0]+n[0],r[t][1]+n[1],o,[a,s]);ea.SUtil_dashedLineTo(e,r[r.length-1][0]+n[0],r[r.length-1][1]+n[1],r[0][0]+n[0],r[0][1]+n[1],o,[a,s])}else if("dashdot"===t.lineType||"longdashdot"===t.lineType){let i=t._dashLength||(t.lineWidth||1)*("dashed"==t.lineType?5:1);t._dashLength=i;let o=t.lineWidth||1,a=o,s=o,l=o,c=o;"dashdot"===t.lineType&&(a*=4,s*=4,c*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o,l=1,c+=o)),"longdashdot"===t.lineType&&(a*=8,s*=4,c*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o,l=1,c+=o)),e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(let t=1;t<r.length;t++)ea.SUtil_dashedLineTo(e,r[t-1][0]+n[0],r[t-1][1]+n[1],r[t][0]+n[0],r[t][1]+n[1],o,[a,s,l,c]);ea.SUtil_dashedLineTo(e,r[r.length-1][0]+n[0],r[r.length-1][1]+n[1],r[0][0]+n[0],r[0][1]+n[1],o,[a,s,l,c])}}else{e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(let t=1;t<r.length;t++)e.lineTo(r[t][0]+n[0],r[t][1]+n[1]);e.lineTo(r[0][0]+n[0],r[0][1]+n[1])}}getRect(e,t){var n;if(t?n=t:(this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),n=this.refOriginalPosition),e.__rect)return e.__rect;for(var r,i=Number.MAX_VALUE,o=Number.MIN_VALUE,a=Number.MAX_VALUE,s=Number.MIN_VALUE,l=e.pointList,c=0,u=l.length;c<u;c++)l[c][0]+n[0]<i&&(i=l[c][0]+n[0]),l[c][0]+n[0]>o&&(o=l[c][0]+n[0]),l[c][1]+n[1]<a&&(a=l[c][1]+n[1]),l[c][1]+n[1]>s&&(s=l[c][1]+n[1]);return r="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(i-r/2),y:Math.round(a-r/2),width:o-i+r,height:s-a+r},e.__rect}}class sa extends na{constructor(e){super(e),this.brushTypeOnly="stroke",this.textPosition="end",this.type="smicbroken-line",this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicBrokenLine"}destroy(){this.brushTypeOnly=null,this.textPosition=null,this.type=null,super.destroy()}buildPath(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition,r=t.pointList;if(!(r.length<2)){var i=Math.min(t.pointList.length,Math.round(t.pointListLength||t.pointList.length));if(t.smooth&&"spline"!==t.smooth){var o,a,s,l=ea.SUtil_smoothBezier(r,t.smooth,!1,t.smoothConstraint,n);e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(let t=0;t<i-1;t++)o=l[2*t],a=l[2*t+1],s=[r[t+1][0]+n[0],r[t+1][1]+n[1]],e.bezierCurveTo(o[0],o[1],a[0],a[1],s[0],s[1])}else if("spline"===t.smooth&&(r=ea.SUtil_smoothSpline(r,null,null,n),i=r.length),t.lineType&&"solid"!==t.lineType){if("dashed"===t.lineType||"dotted"===t.lineType||"dot"===t.lineType||"dash"===t.lineType||"longdash"===t.lineType){let o=t.lineWidth||1,a=o,s=o;"dashed"===t.lineType&&(a*=5,s*=5,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o)),"dotted"===t.lineType&&t.lineCap&&"butt"!==t.lineCap&&(a=1,s+=o),"dot"===t.lineType&&(s*=4,t.lineCap&&"butt"!==t.lineCap&&(a=1,s+=o)),"dash"===t.lineType&&(a*=4,s*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o)),"longdash"===t.lineType&&(a*=8,s*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o)),e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(var c=1;c<i;c++)ea.SUtil_dashedLineTo(e,r[c-1][0]+n[0],r[c-1][1]+n[1],r[c][0]+n[0],r[c][1]+n[1],o,[a,s])}else if("dashdot"===t.lineType||"longdashdot"===t.lineType){let o=t.lineWidth||1,a=o,s=o,l=o,c=o;"dashdot"===t.lineType&&(a*=4,s*=4,c*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o,l=1,c+=o)),"longdashdot"===t.lineType&&(a*=8,s*=4,c*=4,t.lineCap&&"butt"!==t.lineCap&&(a-=o,s+=o,l=1,c+=o)),o=(t.lineWidth||1)*("dashed"===t.lineType?5:1),e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(let t=1;t<i;t++)ea.SUtil_dashedLineTo(e,r[t-1][0]+n[0],r[t-1][1]+n[1],r[t][0]+n[0],r[t][1]+n[1],o,[a,s,l,c])}}else{e.moveTo(r[0][0]+n[0],r[0][1]+n[1]);for(let t=1;t<i;t++)e.lineTo(r[t][0]+n[0],r[t][1]+n[1])}}}getRect(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition;return aa.prototype.getRect.apply(this,[e,t])}}class la extends na{constructor(e){super(e),this.type="smicimage",this._imageCache={},this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicImage"}destroy(){this.type=null,this._imageCache=null,super.destroy()}brush(e,t,n){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=this.style||{};t&&(i=this.getHighlightStyle(i,this.highlightStyle||{}));var o=i.image,a=this;if("string"===typeof o){var s=o;this._imageCache[s]?o=this._imageCache[s]:(o=new Image,o.onload=function(){o.onload=null,clearTimeout(la._refreshTimeout),la._needsRefresh.push(a),la._refreshTimeout=setTimeout((function(){n&&n(la._needsRefresh),la._needsRefresh=[]}),10)},o.src=s,this._imageCache[s]=o)}if(o){if("IMG"==o.nodeName.toUpperCase())if(window.ActiveXObject){if("complete"!=o.readyState)return}else if(!o.complete)return;var l=i.width||o.width,c=i.height||o.height,u=i.x+r[0],d=i.y+r[1];if(!o.width||!o.height)return;if(e.save(),this.doClip(e),this.setContext(e,i),this.setTransform(e),i.sWidth&&i.sHeight){let t=i.sx+r[0]||0,n=i.sy+r[1]||0;e.drawImage(o,t,n,i.sWidth,i.sHeight,u,d,l,c)}else if(i.sx&&i.sy){let t=i.sx+r[0],n=i.sy+r[1];var f=l-t,h=c-n;e.drawImage(o,t,n,f,h,u,d,l,c)}else e.drawImage(o,u,d,l,c);i.width||(i.width=l),i.height||(i.height=c),this.style.width||(this.style.width=l),this.style.height||(this.style.height=c),this.drawText(e,i,this.style),e.restore()}}getRect(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition;return{x:e.x+t[0],y:e.y+t[1],width:e.width,height:e.height}}clearCache(){this._imageCache={}}}la._needsRefresh=[],la._refreshTimeout=null;class ca extends na{constructor(e){super(e),this.type="smicrectangle",this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicRectangle"}destroy(){this.type=null,super.destroy()}_buildRadiusPath(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n,r,i,o,a,s=this.refOriginalPosition,l=t.x+s[0],c=t.y+s[1],u=t.width,d=t.height,f=t.radius;"number"===typeof f?n=r=i=o=f:f instanceof Array?1===f.length?n=r=i=o=f[0]:2===f.length?(n=i=f[0],r=o=f[1]):3===f.length?(n=f[0],r=o=f[1],i=f[2]):(n=f[0],r=f[1],i=f[2],o=f[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>d&&(a=r+i,r*=d/a,i*=d/a),n+o>d&&(a=n+o,n*=d/a,o*=d/a),e.moveTo(l+n,c),e.lineTo(l+u-r,c),0!==r&&e.quadraticCurveTo(l+u,c,l+u,c+r),e.lineTo(l+u,c+d-i),0!==i&&e.quadraticCurveTo(l+u,c+d,l+u-i,c+d),e.lineTo(l+o,c+d),0!==o&&e.quadraticCurveTo(l,c+d,l,c+d-o),e.lineTo(l,c+n),0!==n&&e.quadraticCurveTo(l,c,l+n,c)}buildPath(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition;t.radius?this._buildRadiusPath(e,t):(e.moveTo(t.x+n[0],t.y+n[1]),e.lineTo(t.x+n[0]+t.width,t.y+n[1]),e.lineTo(t.x+n[0]+t.width,t.y+n[1]+t.height),e.lineTo(t.x+n[0],t.y+n[1]+t.height),e.lineTo(t.x+n[0],t.y+n[1])),e.closePath()}getRect(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,n=this.refOriginalPosition;return e.__rect||(t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+n[0]-t/2),y:Math.round(e.y+n[1]-t/2),width:e.width+t,height:e.height+t}),e.__rect}}class ua extends na{constructor(e){super(e),this.type="smicsector",this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),this.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicSector"}destroy(){this.type=null,super.destroy()}buildPath(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition,r=t.x+n[0],i=t.y+n[1],o=t.r0||0,a=t.r,s=t.startAngle,l=t.endAngle,c=t.clockWise||!1;s=ea.Util_math.degreeToRadian(s),l=ea.Util_math.degreeToRadian(l),c||(s=-s,l=-l);var u=ea.Util_math.cos(s),d=ea.Util_math.sin(s);e.moveTo(u*o+r,d*o+i),e.lineTo(u*a+r,d*a+i),e.arc(r,i,a,s,l,!c),e.lineTo(ea.Util_math.cos(l)*o+r,ea.Util_math.sin(l)*o+i),0!==o&&e.arc(r,i,o,l,s,c),e.closePath()}getRect(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition,n=ea.Util_vector.create(),r=ea.Util_vector.create(),i=ea.Util_vector.create(),o=ea.Util_vector.create(),a=e.x+t[0],s=e.y+t[1],l=e.r0||0,c=e.r,u=ea.Util_math.degreeToRadian(e.startAngle),d=ea.Util_math.degreeToRadian(e.endAngle),f=e.clockWise;return f||(u=-u,d=-d),l>1?ea.Util_computeBoundingBox.arc(a,s,l,u,d,!f,n,i):(n[0]=i[0]=a,n[1]=i[1]=s),ea.Util_computeBoundingBox.arc(a,s,c,u,d,!f,r,o),ea.Util_vector.min(n,n,r),ea.Util_vector.max(i,i,o),e.__rect={x:n[0],y:n[1],width:i[0]-n[0],height:i[1]-n[1]},e.__rect}}class da{constructor(e){this.shapeParameters=e,this.CLASS_NAME="SuperMap.Feature.ShapeFactory"}destroy(){this.shapeParameters=null}createShape(e){if(e&&(this.shapeParameters=e),!this.shapeParameters)return null;var t=this.shapeParameters;if(t instanceof No){let e=new Object;e["x"]=t.x,e["y"]=t.y,e["r"]=t.r,e=Y.copyAttributesWithClip(e,t.style,["x","y"]);let n=new ra;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["x","y","style","highlightStyle"]),n}if(t instanceof Lo){if(!t.pointList)return null;let e=new Object;e["pointList"]=t.pointList,e=Y.copyAttributesWithClip(e,t.style,["pointList"]);let n=new sa;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["pointList","style","highlightStyle"]),n}if(t instanceof Do){if(!t.pointList)return null;let e=new Object;e["pointList"]=t.pointList,e=Y.copyAttributesWithClip(e,t.style,["pointList"]);let n=new aa;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["pointList","style","highlightStyle"]),n}if(t instanceof jo){if(!t.x&&!t.y&!t.width&!t.height)return null;let e=new Object;e["x"]=t.x,e["y"]=t.y,e["width"]=t.width,e["height"]=t.height,e=Y.copyAttributesWithClip(e,t.style,["x","y","width","height"]);let n=new ca;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["x","y","width","height","style","highlightStyle"]),n}if(t instanceof Fo){let e=new Object;e["x"]=t.x,e["y"]=t.y,e["r"]=t.r,e["startAngle"]=t.startAngle,e["endAngle"]=t.endAngle,t["r0"]&&(e["r0"]=t.r0),t["clockWise"]&&(e["clockWise"]=t.clockWise),e=Y.copyAttributesWithClip(e,t.style,["x","y","r","startAngle","endAngle","r0","endAngle"]);let n=new ua;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["x","y","r","startAngle","endAngle","r0","endAngle","style","highlightStyle"]),n}if(t instanceof Bo){let e=new Object;e["x"]=t.x,e["y"]=t.y,e["text"]=t.text,e=Y.copyAttributesWithClip(e,t.style,["x","y","text"]);let n=new ia;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["x","y","text","style","highlightStyle"]),n}if(t instanceof qo){let e=new Object;e["x"]=t.x,e["y"]=t.y,t["image"]&&(e["image"]=t.image),t["width"]&&(e["width"]=t.width),t["height"]&&(e["height"]=t.height),t["sx"]&&(e["sx"]=t.sx),t["sy"]&&(e["sy"]=t.sy),t["sWidth"]&&(e["sWidth"]=t.sWidth),t["sHeight"]&&(e["sHeight"]=t.sHeight),e=Y.copyAttributesWithClip(e,t.style,["x","y","image","width","height","sx","sy","sWidth","sHeight"]);let n=new la;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["x","y","image","width","height","style","highlightStyle"]),n}if(t instanceof zo){let e=new Object;e["x"]=t.x,e["r"]=t.r,e["y"]=t.y,e=Y.copyAttributesWithClip(e,t.style,["x","y","r"]);let n=new oa;return n.style=da.transformStyle(e),n.highlightStyle=da.transformStyle(t.highlightStyle),Y.copyAttributesWithClip(n,t,["x","y","r","style","highlightStyle","lineWidth","text","textPosition"]),n}return null}static transformStyle(e){var t={},n=["normal","normal","normal","12","arial,sans-serif"],r=[!0,!1];for(var i in e)switch(i){case"fill":r[0]=e[i];break;case"fillColor":t["color"]=e[i];break;case"stroke":r[1]=e[i];break;case"strokeWidth":t["lineWidth"]=e[i];break;case"strokeLinecap":t["lineCap"]=e[i];break;case"strokeLineJoin":t["lineJoin"]=e[i];break;case"strokeDashstyle":t["lineType"]=e[i];break;case"pointRadius":t["r"]=e[i];break;case"label":t["text"]=e[i];break;case"labelRect":t["labelRect"]=e[i];break;case"fontColor":t["textColor"]=e[i];break;case"fontStyle":n[0]=e[i];break;case"fontVariant":n[1]=e[i];break;case"fontWeight":n[2]=e[i];break;case"fontSize":var o="";e[i]&&e[i].toString().indexOf("px")<0&&(o="px"),n[3]=e[i]+o;break;case"fontFamily":n[4]=e[i];break;case"fontOpacity":t["opacity"]=e[i];break;case"labelPosition":t["textPosition"]=e[i];break;case"labelAlign":t["textAlign"]=e[i];break;case"labelBaseline":t["textBaseline"]=e[i];break;case"labelRotation":t["textRotation"]=e[i];break;default:t[i]=e[i];break}return t["textFont"]=n.join(" "),!0===r[0]&&!1===r[1]?t["brushType"]="fill":!1===r[0]&&!0===r[1]?t["brushType"]="stroke":!0===r[0]&&!0===r[1]?t["brushType"]="both":t["brushType"]="fill",null==t["lineWidth"]&&(t["lineWidth"]=1),t}static Background(e,t,n){var r=n||{},i=new jo(t[0],t[3],Math.abs(t[2]-t[0]),Math.abs(t[3]-t[1]));return i.style={fillColor:"#f3f3f3"},r.backgroundStyle&&Y.copyAttributesWithClip(i.style,r.backgroundStyle),r.backgroundRadius&&(i.style["radius"]=r.backgroundRadius),i.clickable=!1,i.hoverable=!1,e.createShape(i)}static GraphAxis(e,t,n,r){var i=t,o=n||{},a=[],s=[],l=!!o.useXReferenceLine&&o.useXReferenceLine,c=o.axisYTick&&!isNaN(o.axisYTick)?o.axisYTick:0,u=[],d=[],f=[];if(0==c){if(f.push([i[0],i[3]-5]),f.push([i[0],i[1]]),o.axis3DParameter&&!isNaN(o.axis3DParameter)&&o.axis3DParameter>=15){let e=parseInt(o.axis3DParameter),t=[i[0]-e,i[1]+e];o.axisUseArrow?(d.push([t[0]+1.5,t[1]-7.5]),d.push([t[0]-1,t[1]+1]),d.push([t[0]+7.5,t[1]-1.5]),f.push([t[0],t[1]])):f.push([t[0],t[1]]),f.push([i[0],i[1]])}f.push([i[2]+5,i[1]])}else{var h=Math.abs(i[1]-i[3])/c,p=i[3];f.push([i[0],p-5]);for(var m=0;m<c;m++){if(f.push([i[0],p]),f.push([i[0]-5,p]),f.push([i[0],p]),l){var g=new Lo([[i[0],p],[i[2],p]]);g.style={strokeColor:"#cfcfcf",strokeLinecap:"butt",strokeLineJoin:"round",strokeWidth:1},g.clickable=!1,g.hoverable=!1,o.xReferenceLineStyle&&Y.copyAttributesWithClip(g.style,o.xReferenceLineStyle),a.push(e.createShape(g))}p+=h}if(f.push([i[0],i[1]]),o.axis3DParameter&&!isNaN(o.axis3DParameter)&&o.axis3DParameter>=15){let e=parseInt(o.axis3DParameter),t=[i[0]-e,i[1]+e];o.axisUseArrow?(d.push([t[0]+1.5,t[1]-7.5]),d.push([t[0]-1,t[1]+1]),d.push([t[0]+7.5,t[1]-1.5]),f.push([t[0],t[1]])):f.push([t[0],t[1]]),f.push([i[0],i[1]])}f.push([i[2]+5,i[1]])}if(o.axisUseArrow){var v=[[i[2]+5,i[1]+4],[i[2]+13,i[1]],[i[2]+5,i[1]-4]],y=[[i[0]-4,i[3]-5],[i[0],i[3]-13],[i[0]+4,i[3]-5]],b=new Do(v);b.style={fillColor:"#008acd"},Y.copyAttributesWithClip(b.style,o.axisStyle),s.push(e.createShape(b));var _=new Do(y);if(_.style={fillColor:"#008acd"},Y.copyAttributesWithClip(_.style,o.axisStyle),s.push(e.createShape(_)),o.axis3DParameter&&!isNaN(o.axis3DParameter)&&o.axis3DParameter>=15){var w=new Do(d);w.style={fillColor:"#008acd"},Y.copyAttributesWithClip(w.style,o.axisStyle),s.push(e.createShape(w))}}u=f;var x=new Lo(u);x.style={strokeLinecap:"butt",strokeLineJoin:"round",strokeColor:"#008acd",strokeWidth:1},o.axisStyle&&Y.copyAttributesWithClip(x.style,o.axisStyle),x.clickable=!1,x.hoverable=!1;var S=[e.createShape(x)],C=[];if(o.axisYLabels&&o.axisYLabels.length&&o.axisYLabels.length>0){var E=o.axisYLabels;let t=E.length;var k=[0,0];if(o.axisYLabelsOffset&&o.axisYLabelsOffset.length&&(k=o.axisYLabelsOffset),1==t){let t=new Bo(i[0]-5+k[0],i[3]+k[1],E[0]);t.style={labelAlign:"right"},o.axisYLabelsStyle&&Y.copyAttributesWithClip(t.style,o.axisYLabelsStyle),t.clickable=!1,t.hoverable=!1,C.push(e.createShape(t))}else for(var O=i[3],T=Math.abs(i[1]-i[3])/(t-1),I=0;I<t;I++){let t=new Bo(i[0]-5+k[0],O+k[1],E[I]);t.style={labelAlign:"right"},o.axisYLabelsStyle&&Y.copyAttributesWithClip(t.style,o.axisYLabelsStyle),t.clickable=!1,t.hoverable=!1,C.push(e.createShape(t)),O+=T}}var A=[];if(o.axisXLabels&&o.axisXLabels.length&&o.axisXLabels.length>0){let t=o.axisXLabels,n=t.length,a=[0,0];if(o.axisXLabelsOffset&&o.axisXLabelsOffset.length&&(a=o.axisXLabelsOffset),r&&r.xPositions&&r.xPositions.length&&r.xPositions.length==n){let s=r.xPositions;for(let r=0;r<n;r++){let n=new Bo(s[r]+a[0],i[1]+a[1],t[r]);n.style={labelAlign:"center",labelBaseline:"top"},o.axisXLabelsStyle&&Y.copyAttributesWithClip(n.style,o.axisXLabelsStyle),n.clickable=!1,n.hoverable=!1,A.push(e.createShape(n))}}else if(1==n){let n=new Bo(i[0]-5+a[0],i[1]+a[0],t[0]);n.style={labelAlign:"center",labelBaseline:"top"},o.axisXLabelsStyle&&Y.copyAttributesWithClip(n.style,o.axisXLabelsStyle),n.clickable=!1,n.hoverable=!1,A.push(e.createShape(n))}else{let r=i[0],s=Math.abs(i[2]-i[0])/(n-1);for(let l=0;l<n;l++){let n=new Bo(r+a[0],i[1]+a[1],t[l]);n.style={labelAlign:"center",labelBaseline:"top"},o.axisXLabelsStyle&&Y.copyAttributesWithClip(n.style,o.axisXLabelsStyle),n.clickable=!1,n.hoverable=!1,A.push(e.createShape(n)),r+=s}}}return a.concat(S).concat(C).concat(A).concat(s)}static ShapeStyleTool(e,t,n,r,i,o){var a=e||{};if(t&&Y.copyAttributesWithClip(a,t),n&&n.length&&"undefined"!==typeof i&&!isNaN(i)&&i>=0&&n[i]&&Y.copyAttributesWithClip(a,n[i]),r&&r.length&&"undefined"!==typeof o)for(var s=r,l=s.length,c=parseFloat(o),u=0;u<l;u++)if(s[u].start<=c&&c<s[u].end){Y.copyAttributesWithClip(a,s[u].style);break}return a}}o.Feature=o.Feature||{},o.Feature.ShapeFactory=da;class fa{constructor(e,t){e&&t&&t.map&&t.renderer&&(this.id=Y.createUniqueID(this.CLASS_NAME+"_"),this.lonlat=null,this.location=[],this.data=e,this.shapes=[],this.layer=t,this.CLASS_NAME="SuperMap.Feature.Theme")}destroy(){this.data=null,this.id=null,this.lonlat=null,this.location=null,this.shapes=null,this.layer=null}getLocalXY(e){var t=this.layer.map.getResolution(),n=this.layer.map.getExtent();if(e instanceof re||e instanceof oe){let r=e.x/t+-n.left/t,i=n.top/t-e.y/t;return[r,i]}if(e instanceof J){let r=e.lon/t+-n.left/t,i=n.top/t-e.lat/t;return[r,i]}return null}}o.Feature=o.Feature||{},o.Feature.Theme=fa;class ha extends fa{constructor(e,t,n,r,i,o){super(e,t,n,r,i,o),this.shapeFactory=new da,this.shapeParameters=null,this.RelativeCoordinate=!1,this.setting=null,this.origonPoint=null,this.chartBox=null,this.chartBounds=null,this.width=null,this.height=null,this.XOffset=0,this.YOffset=0,this.DVBParameter=null,this.dataViewBox=null,this.DVBCodomain=null,this.DVBCenterPoint=null,this.DVBUnitValue=null,this.DVBOrigonPoint=null,this.DVBWidth=null,this.DVBHeight=null,this.origonPointOffset=null,this.fields=n||[],this.dataValues=null,this.lonlat=i||this.data.geometry.getBounds().getCenterLonLat(),r&&r.width&&r.height&&r.codomain&&(this.setting=r),this.CLASS_NAME="SuperMap.Feature.Theme.Graph"}destroy(){this.shapeFactory=null,this.shapeParameters=null,this.width=null,this.height=null,this.origonPoint=null,this.chartBox=null,this.dataViewBox=null,this.chartBounds=null,this.DVBParameter=null,this.DVBOrigonPoint=null,this.DVBCenterPoint=null,this.DVBWidth=null,this.DVBHeight=null,this.DVBCodomain=null,this.DVBUnitValue=null,this.origonPointOffset=null,this.XOffset=null,this.YOffset=null,this.fields=null,this.dataValues=null,this.setting=null,super.destroy()}initBaseParameter(){var e=!0;if(!this.setting)return!1;var t=this.setting;if(!(t.width&&t.height&&t.codomain))return!1;var n="undefined"===typeof t.decimalNumber||isNaN(t.decimalNumber)?-1:t.decimalNumber,r=fa.getDataValues(this.data,this.fields,n);this.dataValues=r||[],this.width=parseFloat(t.width),this.height=parseFloat(t.height),this.DVBCodomain=t.codomain,this.XOffset=t.XOffset?t.XOffset:0,this.YOffset=t.YOffset?t.YOffset:0,this.origonPoint=[],this.chartBox=[],this.dataViewBox=[],this.DVBParameter=t.dataViewBoxParameter?t.dataViewBoxParameter:[0,0,0,0],this.DVBOrigonPoint=[],this.DVBCenterPoint=[],this.origonPointOffset=[],this.resetLocation();var i=this.width,o=this.height,a=this.location;this.origonPoint=[a[0]-i/2,a[1]-o/2];var s=this.origonPoint;this.chartBox=[s[0],s[1]+o,s[0]+i,s[1]];var l=this.chartBox,c=this.DVBParameter;this.dataViewBox=[l[0]+c[0],l[1]-c[1],l[2]-c[2],l[3]+c[3]];var u=this.dataViewBox;return!(u[0]>=u[2]||u[1]<=u[3])&&(this.DVBOrigonPoint=[u[0],u[3]],this.DVBWidth=Math.abs(u[2]-u[0]),this.DVBHeight=Math.abs(u[1]-u[3]),this.DVBCenterPoint=[this.DVBOrigonPoint[0]+this.DVBWidth/2,this.DVBOrigonPoint[1]+this.DVBHeight/2],this.origonPointOffset=[this.DVBOrigonPoint[0]-s[0],this.DVBOrigonPoint[1]-s[1]],e)}resetLocation(e){e&&(this.lonlat=e);var t=this.getLocalXY(this.lonlat);t[0]+=this.XOffset,t[1]+=this.YOffset,this.location=t;var n=this.width,r=this.height,i=this.location;return this.chartBounds=new Q(i[0]-n/2,i[1]+r/2,i[0]+n/2,i[1]-r/2),this.resetLinearGradient(),i}resetLinearGradient(){}shapesConvertToRelativeCoordinate(){for(var e=this.shapes,t=this.location,n=0,r=e.length;n<r;n++){e[n].refOriginalPosition=t;var i=e[n].style;for(var o in i)switch(o){case"pointList":for(var a=i[o],s=0,l=a.length;s<l;s++)a[s][0]-=t[0],a[s][1]-=t[1];break;case"x":i[o]-=t[0];break;case"y":i[o]-=t[1];break;default:break}}this.RelativeCoordinate=!0}assembleShapes(){}getLocalXY(e){return this.layer.getLocalXY(e)}}fa.getDataValues=function(e,t,n){if(!e.attributes)return!1;for(var r=[],i=e.attributes,o=0;o<t.length;o++)for(var a in i)if(a===t[o])try{!isNaN(n)&&n>=0?r.push(parseFloat(i[a].toString()).toFixed(n)):r.push(parseFloat(i[a].toString()))}catch(s){throw new Error("not a number")}return r.length===t.length&&r},o.Feature.Theme.Graph=ha;class pa extends ha{constructor(e,t,n,r,i){super(e,t,n,r,i),this.CLASS_NAME="SuperMap.Feature.Theme.Bar"}destroy(){super.destroy()}assembleShapes(){var e=[["#00FF00","#00CD00"],["#00CCFF","#5E87A2"],["#00FF66","#669985"],["#CCFF00","#94A25E"],["#FF9900","#A2945E"]],t={showShadow:!0,shadowBlur:8,shadowColor:"rgba(100,100,100,0.8)",shadowOffsetX:2,shadowOffsetY:2},n=this.setting;if(n.barLinearGradient||(n.barLinearGradient=e),n.dataViewBoxParameter||("undefined"===typeof n.useAxis||n.useAxis?n.dataViewBoxParameter=[45,15,15,15]:n.dataViewBoxParameter=[5,5,5,5]),this.initBaseParameter()){var r=this.DVBCodomain;this.DVBUnitValue=(r[1]-r[0])/this.DVBHeight;var i=this.dataViewBox,o=this.dataValues;if(!(o.length<1)){for(let e=0,t=o.length;e<t;e++)if(o[e]<r[0]||o[e]>r[1])return;var a=this.calculateXShapeInfo();if(a){var s=a.xPositions,l=a.width;("undefined"===typeof n.useBackground||n.useBackground)&&this.shapes.push(da.Background(this.shapeFactory,this.chartBox,n)),("undefined"===typeof n.useAxis||n.useAxis)&&(this.shapes=this.shapes.concat(da.GraphAxis(this.shapeFactory,i,n,a)));for(var c=0;c<o.length;c++){var u=i[1]-(o[c]-r[0])/this.DVBUnitValue,d=[[s[c]-l/2,i[1]-1],[s[c]+l/2,i[1]-1],[s[c]+l/2,u],[s[c]-l/2,u]],f=new Do(d);if("undefined"===typeof n.showShadow||n.showShadow){if(n.barShadowStyle){var h=n.barShadowStyle;h.shadowBlur&&(t.shadowBlur=h.shadowBlur),h.shadowColor&&(t.shadowColor=h.shadowColor),h.shadowOffsetX&&(t.shadowOffsetX=h.shadowOffsetX),h.shadowOffsetY&&(t.shadowOffsetY=h.shadowOffsetY)}f.style={},Y.copyAttributesWithClip(f.style,t)}f.refDataID=this.data.id,f.dataInfo={field:this.fields[c],value:o[c]},"undefined"!==typeof n.barHoverAble&&(f.hoverable=n.barHoverAble),"undefined"!==typeof n.barClickAble&&(f.clickable=n.barClickAble),this.shapes.push(this.shapeFactory.createShape(f))}this.shapesConvertToRelativeCoordinate()}}}}calculateXShapeInfo(){var e,t=this.dataViewBox,n=this.setting,r=this.dataValues.length;if(r<1)return null;var i=[],o=0,a=this.DVBWidth;if(n.xShapeBlank&&n.xShapeBlank.length&&3==n.xShapeBlank.length){e=n.xShapeBlank;var s=a-(e[0]+e[2]+(r-1)*e[1]);if(s<=r)return null;o=s/r}else o=a/(2*r+1),e=[o,o,o];for(var l=0,c=0;c<r;c++)0==c?l=e[0]+o/2:l+=o+e[1],i.push(t[0]+l);return{xPositions:i,width:o}}resetLinearGradient(){if(this.RelativeCoordinate)for(var e=this.shapes.length,t=this.setting.barLinearGradient,n=-1,r=0;r<e;r++){var i=this.shapes[r];if("SuperMap.LevelRenderer.Shape.SmicPolygon"===i.CLASS_NAME){var o=i.style,a=this.location[0]+o.pointList[0][0],s=this.location[0]+o.pointList[1][0];n++,n>=t.length&&(n%=t.length);var l=t[n][0],c=t[n][1],u=new Eo,d=u.getLinearGradient(a,0,s,0,[[0,l],[1,c]]);i.style.color=d}}}}o.Feature.Theme.Bar=pa;class ma extends ha{constructor(e,t,n,r,i){super(e,t,n,r,i),this.CLASS_NAME="SuperMap.Feature.Theme.Bar3D"}destroy(){super.destroy()}assembleShapes(){var e=this.setting;if(e.dataViewBoxParameter||("undefined"===typeof e.useAxis||e.useAxis?e.dataViewBoxParameter=[45,25,20,20]:e.dataViewBoxParameter=[5,5,5,5]),e.axisUseArrow="undefined"===typeof e.axisUseArrow||e.axisUseArrow,e.axisXLabelsOffset="undefined"!==typeof e.axisXLabelsOffset?e.axisXLabelsOffset:[-10,10],this.initBaseParameter()){var t=this.DVBCodomain;this.DVBUnitValue=(t[1]-t[0])/this.DVBHeight;var n=this.dataViewBox,r=this.dataValues;if(!(r.length<1)){for(let e=0,n=r.length;e<n;e++)if(r[e]<t[0]||r[e]>t[1])return;var i=this.calculateXShapeInfo();if(i){var o=i.xPositions,a=i.width;("undefined"===typeof e.useBackground||e.useBackground)&&this.shapes.push(da.Background(this.shapeFactory,this.chartBox,e)),(!e.axis3DParameter||isNaN(e.axis3DParameter)||e.axis3DParameter<15)&&(e.axis3DParameter=20),("undefined"===typeof e.useAxis||e.useAxis)&&(this.shapes=this.shapes.concat(da.GraphAxis(this.shapeFactory,n,e,i)));var s=e.bar3DParameter&&!isNaN(e.bar3DParameter)?e.bar3DParameter:10;for(let i=0;i<r.length;i++){var l=n[1]-(r[i]-t[0])/this.DVBUnitValue,c=o[i]-a/2,u=o[i]+a/2,d=[[c,l],[u,l],[u-s,l+s],[c-s,l+s]],f=[[u,l],[u-s,l+s],[u-s,n[1]+s],[u,n[1]]],h=[[c-s,n[1]+s],[u-s,n[1]+s],[u-s,l+s],[c-s,l+s]];s<=0&&(h=[[c,n[1]],[u,n[1]],[u,l],[c,l]]);var p=new Do(d),m=new Do(f),g=new Do(h);e.barSideStyle=e.barSideStyle?e.barSideStyle:e.barFaceStyle,e.barSideStyleByFields=e.barSideStyleByFields?e.barSideStyleByFields:e.barFaceStyleByFields,e.barSideStyleByCodomain=e.barSideStyleByCodomain?e.barSideStyleByCodomain:e.barFaceStyleByCodomain,e.barTopStyle=e.barTopStyle?e.barTopStyle:e.barFaceStyle,e.barTopStyleByFields=e.barTopStyleByFields?e.barTopStyleByFields:e.barFaceStyleByFields,e.barTopStyleByCodomain=e.barTopStyleByCodomain?e.barTopStyleByCodomain:e.barFaceStyleByCodomain,g.style=da.ShapeStyleTool({stroke:!0,strokeColor:"#ffffff",fillColor:"#ee9900"},e.barFaceStyle,e.barFaceStyleByFields,e.barFaceStyleByCodomain,i,r[i]),m.style=da.ShapeStyleTool({stroke:!0,strokeColor:"#ffffff",fillColor:"#ee9900"},e.barSideStyle,e.barSideStyleByFields,e.barSideStyleByCodomain,i,r[i]),p.style=da.ShapeStyleTool({stroke:!0,strokeColor:"#ffffff",fillColor:"#ee9900"},e.barTopStyle,e.barTopStyleByFields,e.barTopStyleByCodomain,i,r[i]),e.barSideHoverStyle=e.barSideHoverStyle?e.barSideHoverStyle:e.barFaceHoverStyle,e.barTopHoverStyle=e.barTopHoverStyle?e.barTopHoverStyle:e.barFaceHoverStyle,g.highlightStyle=da.ShapeStyleTool({stroke:!0},e.barFaceHoverStyle),m.highlightStyle=da.ShapeStyleTool({stroke:!0},e.barSideHoverStyle),p.highlightStyle=da.ShapeStyleTool({stroke:!0},e.barTopHoverStyle),p.refDataID=m.refDataID=g.refDataID=this.data.id,p.isHoverByRefDataID=m.isHoverByRefDataID=g.isHoverByRefDataID=!0,p.refDataHoverGroup=m.refDataHoverGroup=g.refDataHoverGroup=Y.createUniqueID("lr_shg"),p.dataInfo=m.dataInfo=g.dataInfo={field:this.fields[i],value:r[i]},"undefined"!==typeof e.barHoverAble&&(p.hoverable=m.hoverable=g.hoverable=e.barHoverAble),"undefined"!==typeof e.barClickAble&&(p.clickable=m.clickable=g.clickable=e.barClickAble),this.shapes.push(this.shapeFactory.createShape(m)),this.shapes.push(this.shapeFactory.createShape(p)),this.shapes.push(this.shapeFactory.createShape(g))}this.shapesConvertToRelativeCoordinate()}}}}calculateXShapeInfo(){var e,t=this.dataViewBox,n=this.setting,r=this.dataValues.length;if(r<1)return null;var i=[],o=0,a=this.DVBWidth;if(n.xShapeBlank&&n.xShapeBlank.length&&3==n.xShapeBlank.length){e=n.xShapeBlank;var s=a-(e[0]+e[2]+(r-1)*e[1]);if(s<=r)return null;o=s/r}else o=a/(2*r+1),e=[o,o,o];for(var l=0,c=0;c<r;c++)0==c?l=e[0]+o/2:l+=o+e[1],i.push(t[0]+l);return{xPositions:i,width:o}}}o.Feature.Theme.Bar3D=ma;class ga extends ha{constructor(e,t,n,r,i,o){super(e,t,n,r,i,o),this.setting=null,r&&r.codomain&&(this.setting=r,this.DVBCodomain=this.setting.codomain),this.CLASS_NAME="SuperMap.Feature.Theme.RankSymbol"}destroy(){this.setting=null,super.destroy()}initBaseParameter(){var e=!0;if(!this.setting)return!1;var t=this.setting;t.XOffset&&(this.XOffset=t.XOffset),t.YOffset&&(this.YOffset=t.YOffset),this.XOffset=t.XOffset?t.XOffset:0,this.YOffset=t.YOffset?t.YOffset:0,this.origonPoint=[],this.chartBox=[],this.dataViewBox=[],this.DVBParameter=t.dataViewBoxParameter?t.dataViewBoxParameter:[0,0,0,0],this.DVBOrigonPoint=[],this.DVBCenterPoint=[],this.origonPointOffset=[],this.resetLocation();var n=this.width,r=this.height,i=this.location;this.origonPoint=[i[0]-n/2,i[1]-r/2];var o=this.origonPoint;this.chartBox=[o[0],o[1]+r,o[0]+n,o[1]];var a=this.chartBox,s=this.DVBParameter;this.dataViewBox=[a[0]+s[0],a[1]-s[1],a[2]-s[2],a[3]+s[3]];var l=this.dataViewBox;return!(l[0]>=l[2]||l[1]<=l[3])&&(this.DVBOrigonPoint=[l[0],l[3]],this.DVBWidth=Math.abs(l[2]-l[0]),this.DVBHeight=Math.abs(l[1]-l[3]),this.DVBCenterPoint=[this.DVBOrigonPoint[0]+this.DVBWidth/2,this.DVBOrigonPoint[1]+this.DVBHeight/2],this.origonPointOffset=[this.DVBOrigonPoint[0]-o[0],this.DVBOrigonPoint[1]-o[1]],e)}}o.Feature.Theme.RankSymbol=ga;class va extends ga{constructor(e,t,n,r,i){super(e,t,n,r,i),this.CLASS_NAME="SuperMap.Feature.Theme.Circle"}destroy(){super.destroy()}assembleShapes(){var e="#ff9277";if(!this.setting)return!1;var t=this.setting;if(!t.codomain)return!1;var n="undefined"===typeof t.decimalNumber||isNaN(t.decimalNumber)?-1:t.decimalNumber,r=fa.getDataValues(this.data,this.fields,n);this.dataValues=r||[];var i=this.dataValues;t.maxR||(t.maxR=100),t.minR||(t.minR=0);var o=this.DVBCodomain;o&&o[1]-o[0]>0?this.DVBUnitValue=t.maxR/(o[1]-o[0]):this.DVBUnitValue=t.maxR;var a=this.DVBUnitValue,s=i[0]*a+t.minR;if(this.width=2*s,this.height=2*s,this.initBaseParameter()&&(!o||!(i[0]<o[0]||i[0]>o[1]))){var l=this.DVBCenterPoint,c=new zo(l[0],l[1],s);c.style=da.ShapeStyleTool(null,t.circleStyle,null,null,0),"undefined"!==typeof t.fillColor?c.style.fillColor=t.fillColor:c.style.fillColor=e,c.highlightStyle=da.ShapeStyleTool(null,t.circleHoverStyle),"undefined"!==typeof t.circleHoverAble&&(c.hoverable=t.circleHoverAble),"undefined"!==typeof t.circleClickAble&&(c.clickable=t.circleClickAble),c.refDataID=this.data.id,c.dataInfo={field:this.fields[0],r:s,value:i[0]},this.shapes.push(this.shapeFactory.createShape(c)),this.shapesConvertToRelativeCoordinate()}}}o.Feature.Theme.Circle=va;class ya extends ha{constructor(e,t,n,r,i,o){super(e,t,n,r,i,o),this.CLASS_NAME="SuperMap.Feature.Theme.Line"}destroy(){super.destroy()}assembleShapes(){var e=this.setting;if(e.dataViewBoxParameter||("undefined"===typeof e.useAxis||e.useAxis?e.dataViewBoxParameter=[45,15,15,15]:e.dataViewBoxParameter=[5,5,5,5]),this.initBaseParameter()){var t=this.dataViewBox,n=this.DVBCodomain;this.DVBUnitValue=(n[1]-n[0])/this.DVBHeight;var r=this.DVBUnitValue,i=this.dataValues;if(!(i.length<1)){var o=this.calculateXShapeInfo();if(o){var a,s,l=o.xPositions;("undefined"===typeof e.useBackground||e.useBackground)&&this.shapes.push(da.Background(this.shapeFactory,this.chartBox,e)),this.shapes=this.shapes.concat(da.GraphAxis(this.shapeFactory,t,e,o));for(var c=[],u=[],d=0,f=i.length;d<f;d++){if(i[d]<n[0]||i[d]>n[1])return null;a=l[d],s=t[1]-(i[d]-n[0])/r;var h=new No(a,s);h.style=da.ShapeStyleTool({fillColor:"#ee9900"},e.pointStyle,e.pointStyleByFields,e.pointStyleByCodomain,d,i[d]),h.highlightStyle=da.ShapeStyleTool(null,e.pointHoverStyle),"undefined"!==typeof e.pointHoverAble&&(h.hoverable=e.pointHoverAble),"undefined"!==typeof e.pointClickAble&&(h.clickable=e.pointClickAble),h.refDataID=this.data.id,h.dataInfo={field:this.fields[d],value:i[d]},u.push(this.shapeFactory.createShape(h));var p=[a,s];c.push(p)}var m=new Lo(c);m.style=da.ShapeStyleTool({strokeColor:"#ee9900"},e.lineStyle),m.clickable=!1,m.hoverable=!1;var g=this.shapeFactory.createShape(m);this.shapes.push(g),this.shapes=this.shapes.concat(u),this.shapesConvertToRelativeCoordinate()}}}}calculateXShapeInfo(){var e,t=this.dataViewBox,n=this.setting,r=this.dataValues.length;if(r<1)return null;var i=[],o=0,a=this.DVBWidth,s=0;if(n.xShapeBlank&&n.xShapeBlank.length&&2==n.xShapeBlank.length){e=n.xShapeBlank;var l=a-(e[0]+e[1]);if(l<=r)return null;s=l/(r-1)}else s=a/(r+1),e=[s,s,s];for(var c=0,u=0;u<r;u++)0==u?c=e[0]:c+=s,i.push(t[0]+c);return{xPositions:i,width:o}}}o.Feature.Theme.Line=ya;class ba extends ha{constructor(e,t,n,r,i){super(e,t,n,r,i),this.CLASS_NAME="SuperMap.Feature.Theme.Pie"}destroy(){super.destroy()}assembleShapes(){var e=this.setting,t=[{fillColor:"#ff9277"},{fillColor:"#dddd00"},{fillColor:"#ffc877"},{fillColor:"#bbe3ff"},{fillColor:"#d5ffbb"},{fillColor:"#bbbbff"},{fillColor:"#ddb000"},{fillColor:"#b0dd00"},{fillColor:"#e2bbff"},{fillColor:"#ffbbe3"},{fillColor:"#ff7777"},{fillColor:"#ff9900"},{fillColor:"#83dd00"},{fillColor:"#77e3ff"},{fillColor:"#778fff"},{fillColor:"#c877ff"},{fillColor:"#ff77ab"},{fillColor:"#ff6600"},{fillColor:"#aa8800"},{fillColor:"#77c7ff"},{fillColor:"#ad77ff"},{fillColor:"#ff77ff"},{fillColor:"#dd0083"},{fillColor:"#777700"},{fillColor:"#00aa00"},{fillColor:"#0088aa"},{fillColor:"#8400dd"},{fillColor:"#aa0088"},{fillColor:"#dd0000"},{fillColor:"#772e00"}];if(this.initBaseParameter()){e.useBackground&&this.shapes.push(da.Background(this.shapeFactory,this.chartBox,e));var n=this.dataValues;if(!(n.length<1)){var r=this.DVBCodomain;for(let e=0;e<n.length;e++)if(n[e]<r[0]||n[e]>r[1])return;var i=0;for(let e=0;e<n.length;e++)i+=Math.abs(n[e]);this.DVBUnitValue=360/i;for(var o=this.DVBUnitValue,a=this.DVBCenterPoint,s=0,l=0,c=s,u=this.DVBHeight<this.DVBWidth?this.DVBHeight/2:this.DVBWidth/2,d=0;d<n.length;d++){var f=Math.abs(n[d]);l=0===d?s+f*o:d===f.length-1?c:s+f*o,l-s>=360&&(l=359.9999999);var h=new Fo(a[0],a[1],u,s,l);if("undefined"===typeof e.sectorStyleByFields){var p=d%t.length;h.style=da.ShapeStyleTool(null,e.sectorStyle,t,null,p)}else h.style=da.ShapeStyleTool(null,e.sectorStyle,e.sectorStyleByFields,e.sectorStyleByCodomain,d,n[d]);h.highlightStyle=da.ShapeStyleTool(null,e.sectorHoverStyle),"undefined"!==typeof e.sectorHoverAble&&(h.hoverable=e.sectorHoverAble),"undefined"!==typeof e.sectorClickAble&&(h.clickable=e.sectorClickAble),h.refDataID=this.data.id,h.dataInfo={field:this.fields[d],value:n[d]},this.shapes.push(this.shapeFactory.createShape(h)),s=l}this.shapesConvertToRelativeCoordinate()}}}}o.Feature.Theme.Pie=ba;class _a extends ha{constructor(e,t,n,r,i,o){super(e,t,n,r,i,o),this.CLASS_NAME="SuperMap.Feature.Theme.Point"}destroy(){super.destroy()}assembleShapes(){var e=this.setting;if(e.dataViewBoxParameter||("undefined"===typeof e.useAxis||e.useAxis?e.dataViewBoxParameter=[45,15,15,15]:e.dataViewBoxParameter=[5,5,5,5]),this.initBaseParameter()){var t=this.dataViewBox,n=this.DVBCodomain;this.DVBUnitValue=(n[1]-n[0])/this.DVBHeight;var r=this.DVBUnitValue,i=this.dataValues,o=this.calculateXShapeInfo();if(o){var a,s,l=o.xPositions;("undefined"===typeof e.useBackground||e.useBackground)&&this.shapes.push(da.Background(this.shapeFactory,this.chartBox,e)),this.shapes=this.shapes.concat(da.GraphAxis(this.shapeFactory,t,e,o));for(var c=0,u=i.length;c<u;c++){if(i[c]<n[0]||i[c]>n[1])return null;a=l[c],s=t[1]-(i[c]-n[0])/r;var d=new No(a,s);d.style=da.ShapeStyleTool({fillColor:"#ee9900"},e.pointStyle,e.pointStyleByFields,e.pointStyleByCodomain,c,i[c]),d.highlightStyle=da.ShapeStyleTool(null,e.pointHoverStyle),"undefined"!==typeof e.pointHoverAble&&(d.hoverable=e.pointHoverAble),"undefined"!==typeof e.pointClickAble&&(d.clickable=e.pointClickAble),d.refDataID=this.data.id,d.dataInfo={field:this.fields[c],value:i[c]},this.shapes.push(this.shapeFactory.createShape(d))}this.shapesConvertToRelativeCoordinate()}}}calculateXShapeInfo(){var e,t=this.dataViewBox,n=this.setting,r=this.dataValues.length;if(r<1)return null;var i=[],o=0,a=this.DVBWidth,s=0;if(n.xShapeBlank&&n.xShapeBlank.length&&2==n.xShapeBlank.length){e=n.xShapeBlank;var l=a-(e[0]+e[1]);if(l<=r)return null;s=l/(r-1)}else s=a/(r+1),e=[s,s,s];for(var c=0,u=0;u<r;u++)0==u?c=e[0]:c+=s,i.push(t[0]+c);return{xPositions:i,width:o}}}o.Feature.Theme.Point=_a;class wa extends ha{constructor(e,t,n,r,i){super(e,t,n,r,i),this.CLASS_NAME="SuperMap.Feature.Theme.Ring"}destroy(){super.destroy()}assembleShapes(){if(this.initBaseParameter()){var e=[{fillColor:"#ff9277"},{fillColor:"#dddd00"},{fillColor:"#ffc877"},{fillColor:"#bbe3ff"},{fillColor:"#d5ffbb"},{fillColor:"#bbbbff"},{fillColor:"#ddb000"},{fillColor:"#b0dd00"},{fillColor:"#e2bbff"},{fillColor:"#ffbbe3"},{fillColor:"#ff7777"},{fillColor:"#ff9900"},{fillColor:"#83dd00"},{fillColor:"#77e3ff"},{fillColor:"#778fff"},{fillColor:"#c877ff"},{fillColor:"#ff77ab"},{fillColor:"#ff6600"},{fillColor:"#aa8800"},{fillColor:"#77c7ff"},{fillColor:"#ad77ff"},{fillColor:"#ff77ff"},{fillColor:"#dd0083"},{fillColor:"#777700"},{fillColor:"#00aa00"},{fillColor:"#0088aa"},{fillColor:"#8400dd"},{fillColor:"#aa0088"},{fillColor:"#dd0000"},{fillColor:"#772e00"}],t=this.setting;t.useBackground&&this.shapes.push(da.Background(this.shapeFactory,this.chartBox,t));var n=this.dataValues;if(!(n.length<1)){var r=this.DVBCodomain;for(let e=0;e<n.length;e++)if(n[e]<r[0]||n[e]>r[1])return;var i=0;for(let e=0;e<n.length;e++)i+=Math.abs(n[e]);this.DVBUnitValue=360/i;for(var o=this.DVBUnitValue,a=this.DVBCenterPoint,s=0,l=0,c=s,u=this.DVBHeight<this.DVBWidth?this.DVBHeight/2:this.DVBWidth/2,d=t.innerRingRadius>=0&&t.innerRingRadius<u,f="undefined"!==typeof t.innerRingRadius&&!isNaN(t.innerRingRadius)&&d?t.innerRingRadius:0,h=0;h<n.length;h++){var p=Math.abs(n[h]);l=0===h?s+p*o:h===p.length-1?c:s+p*o;var m=new Fo(a[0],a[1],u,s,l,f);if("undefined"===typeof t.sectorStyleByFields){var g=h%e.length;m.style=da.ShapeStyleTool(null,t.sectorStyle,e,null,g)}else m.style=da.ShapeStyleTool(null,t.sectorStyle,t.sectorStyleByFields,t.sectorStyleByCodomain,h,n[h]);m.highlightStyle=da.ShapeStyleTool(null,t.sectorHoverStyle),"undefined"!==typeof t.sectorHoverAble&&(m.hoverable=t.sectorHoverAble),"undefined"!==typeof t.sectorClickAble&&(m.clickable=t.sectorClickAble),m.refDataID=this.data.id,m.dataInfo={field:this.fields[h],value:n[h]},this.shapes.push(this.shapeFactory.createShape(m)),s=l}this.shapesConvertToRelativeCoordinate()}}}}o.Feature.Theme.Ring=wa;class xa extends fa{constructor(e,t,n,r,i){if(super(e,t),e.geometry&&e.geometry instanceof Z){this.dataBounds=e.geometry.getBounds(),this.nodesClipPixel=2,this.isHoverAble=!0,this.isMultiHover=!0,this.isClickAble=!0,this.highlightStyle=null,this.shapeOptions={},this.style=n||{},this.CLASS_NAME="SuperMap.Feature.Theme.Vector",this.style=n||{},r&&Y.copyAttributesWithClip(this,r,["shapeOptions","dataBounds"]),i&&Y.copyAttributesWithClip(this.shapeOptions,i);var o=e.geometry;this.lonlat=this.dataBounds.getCenterLonLat(),this.location=this.getLocalXY(this.lonlat),o instanceof ae||o instanceof ie?this.lineToTF(o):o instanceof ne||(o instanceof te?this.multiPointToTF(o):o instanceof se?this.multiLineStringToTF(o):o instanceof le?this.multiPolygonToTF(o):o instanceof ce?this.polygonToTF(o):o instanceof ee||(o instanceof re?this.pointToTF(o):o instanceof ue?this.rectangleToTF(o):o instanceof oe&&this.geoTextToTF(o)))}}destroy(){this.style=null,this.dataBounds=null,this.nodesClipPixel=null,this.isHoverAble=null,this.isMultiHover=null,this.isClickAble=null,this.highlightStyle=null,this.shapeOptions=null,super.destroy()}lineToTF(e){for(var t=e.components,n=[],r=[],i=this.location,o=[],a=this.nodesClipPixel,s=0;s<t.length;s++){var l=t[s];if(r=[],n=this.getLocalXY(l),r[0]=n[0]-i[0],r[1]=n[1]-i[1],o.length>0){var c=o[o.length-1];if(Math.abs(c[0]-r[0])<=a&&Math.abs(c[1]-r[1])<=a)continue}o.push(r)}if(o.length<2)return null;var u=new Object;u=Y.copyAttributesWithClip(u,this.style,["pointList"]),u.pointList=o;var d=new sa({style:u,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(d.highlightStyle=this.highlightStyle),d.refOriginalPosition=this.location,d.refDataID=this.data.id,d.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&Y.copyAttributesWithClip(d,this.shapeOptions),this.shapes.push(d)}multiPointToTF(e){for(var t=e.components,n=[],r=[],i=this.location,o=[],a=this.nodesClipPixel,s=0;s<t.length;s++){var l=t[s];if(r=[],n=this.getLocalXY(l),r[0]=n[0]-i[0],r[1]=n[1]-i[1],o.length>0){var c=o[o.length-1];if(Math.abs(c[0]-r[0])<=a&&Math.abs(c[1]-r[1])<=a)continue}o.push(r);var u=new Object;u.r=6,u=Y.copyAttributesWithClip(u,this.style),u.x=r[0],u.y=r[1];var d=new ra({style:u,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(d.highlightStyle=this.highlightStyle),d.refOriginalPosition=i,d.refDataID=this.data.id,d.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&Y.copyAttributesWithClip(d,this.shapeOptions),this.shapes.push(d)}}multiLineStringToTF(e){for(var t=e.components,n=0;n<t.length;n++){var r=t[n];this.lineToTF(r)}}multiPolygonToTF(e){for(var t=e.components,n=0;n<t.length;n++){var r=t[n];this.polygonToTF(r)}}pointToTF(e){var t=this.location,n=this.getLocalXY(e),r=new Object;r.r=6,r=Y.copyAttributesWithClip(r,this.style),r.x=n[0]-t[0],r.y=n[1]-t[1];var i=new ra({style:r,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(i.highlightStyle=this.highlightStyle),i.refOriginalPosition=t,i.refDataID=this.data.id,i.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&Y.copyAttributesWithClip(i,this.shapeOptions),this.shapes.push(i)}polygonToTF(e){for(var t=e.components,n=[],r=[],i=this.location,o=[],a=[],s=[],l=this.nodesClipPixel,c=0;c<t.length;c++){var u=t[c].components;if(0===c){o=[];for(var d=0;d<u.length;d++){if(r=[],n=this.getLocalXY(u[d]),r[0]=n[0]-i[0],r[1]=n[1]-i[1],o.length>0){var f=o[o.length-1];if(Math.abs(f[0]-r[0])<=l&&Math.abs(f[1]-r[1])<=l)continue}o.push(r)}}else{a=[];for(var h=0;h<u.length;h++){if(r=[],n=this.getLocalXY(u[h]),r[0]=n[0]-i[0],r[1]=n[1]-i[1],a.length>0){var p=a[a.length-1];if(Math.abs(p[0]-r[0])<=l&&Math.abs(p[1]-r[1])<=l)continue}a.push(r)}}a.length<2||s.push(a)}if(!(o.length<2)){var m={};m=Y.copyAttributesWithClip(m,this.style,["pointList"]),m.pointList=o;var g=new aa({style:m,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(g.highlightStyle=this.highlightStyle),g.refOriginalPosition=this.location,g.refDataID=this.data.id,g.isHoverByRefDataID=this.isMultiHover,s.length>0&&(g.holePolygonPointLists=s),this.shapeOptions&&Y.copyAttributesWithClip(g,this.shapeOptions),this.shapes.push(g)}}rectangleToTF(e){var t=this.location,n=new J(e.x,e.y),r=this.layer.map.getResolution(),i=this.getLocalXY(n),o=new Object;o.r=6,o=Y.copyAttributesWithClip(o,this.style),o.x=i[0]-t[0],o.y=i[1]-t[1]-2*e.width/r,o.width=e.width/r,o.height=e.height/r;var a=new ca({style:o,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(a.highlightStyle=this.highlightStyle),a.refOriginalPosition=t,a.refDataID=this.data.id,a.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&Y.copyAttributesWithClip(a,this.shapeOptions),this.shapes.push(a)}geoTextToTF(e){var t=this.location,n=this.getLocalXY(e),r=new Object;r.r=6,r=Y.copyAttributesWithClip(r,this.style,["x","y","text"]),r.x=n[0]-t[0],r.y=n[1]-t[1],r.text=e.text;var i=new ia({style:r,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(i.highlightStyle=this.highlightStyle),i.refOriginalPosition=t,i.refDataID=this.data.id,i.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&Y.copyAttributesWithClip(i,this.shapeOptions),this.shapes.push(i)}updateAndAddShapes(){var e=this.getLocalXY(this.lonlat);this.location=e;for(var t=this.layer.renderer,n=0,r=this.shapes.length;n<r;n++){var i=this.shapes[n];i.refOriginalPosition=e,t.addShape(i)}}getShapesCount(){return this.shapes.length}getLocalXY(e){return this.layer.getLocalXY(e)}}o.Feature.Theme.ThemeVector=xa;class Sa extends(o.mixin(Uo,ta)){constructor(e){super(e),e=e||{},this.id=null,this.type="group",this.clipShape=null,this._children=[],this._storage=null,this.__dirty=!0,this.ignore=!1,Y.extend(this,e),this.id=this.id||Y.createUniqueID("smShapeGroup_"),this.CLASS_NAME="SuperMap.LevelRenderer.Group"}destroy(){this.id=null,this.type=null,this.clipShape=null,this._children=null,this._storage=null,this.__dirty=null,this.ignore=null,super.destroy()}children(){return this._children.slice()}childAt(e){return this._children[e]}addChild(e){e!=this&&e.parent!=this&&(e.parent&&e.parent.removeChild(e),this._children.push(e),e.parent=this,this._storage&&this._storage!==e._storage&&(this._storage.addToMap(e),e instanceof Sa&&e.addChildrenToStorage(this._storage)))}removeChild(e){var t=Y.indexOf(this._children,e);this._children.splice(t,1),e.parent=null,this._storage&&(this._storage.delFromMap(e.id),e instanceof Sa&&e.delChildrenFromStorage(this._storage))}eachChild(e,t){for(var n=!!t,r=0;r<this._children.length;r++){var i=this._children[r];n?e.call(t,i):e(i)}}traverse(e,t){for(var n=!!t,r=0;r<this._children.length;r++){var i=this._children[r];n?e.call(t,i):e(i),"group"===i.type&&i.traverse(e,t)}}addChildrenToStorage(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToMap(n),"group"===n.type&&n.addChildrenToStorage(e)}}delChildrenFromStorage(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromMap(n.id),"group"===n.type&&n.delChildrenFromStorage(e)}}modSelf(){this.__dirty=!0}}class Ca{constructor(){this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],this._shapeListOffset=0,this.CLASS_NAME="SuperMap.LevelRenderer.Storage"}destroy(){this.dispose(),this._shapeList=null,this._shapeListOffset=null}iterShape(e,t){if(!t){var n={hover:!1,normal:"down",update:!1};t=n}if(t.hover)for(var r=0,i=this._hoverElements.length;r<i;r++){var o=this._hoverElements[r];if(o.updateTransform(),e(o))return this}switch(t.update&&this.updateShapeList(),t.normal){case"down":{let t=this._shapeList.length;while(t--)if(e(this._shapeList[t]))return this;break}default:for(let t=0,n=this._shapeList.length;t<n;t++)if(e(this._shapeList[t]))return this;break}return this}getHoverShapes(e){var t=[],n=this._hoverElements.length;for(let s=0;s<n;s++){t.push(this._hoverElements[s]);var r=this._hoverElements[s].hoverConnect;if(r){var i;r=r instanceof Array?r:[r];for(var o=0,a=r.length;o<a;o++)i=r[o].id?r[o]:this.get(r[o]),i&&t.push(i)}}if(t.sort(Ca.shapeCompareFunc),e)for(let s=0,l=t.length;s<l;s++)t[s].updateTransform();return t}getShapeList(e){return e&&this.updateShapeList(),this._shapeList}updateShapeList(){this._shapeListOffset=0;var e=this._roots.length;for(let n=0;n<e;n++){let e=this._roots[n];this._updateAndAddShape(e)}this._shapeList.length=this._shapeListOffset;var t=this._shapeList.length;for(let n=0;n<t;n++)this._shapeList[n].__renderidx=n;this._shapeList.sort(Ca.shapeCompareFunc)}_updateAndAddShape(e,t){if(!e.ignore)if(e.updateTransform(),"group"==e.type){e.clipShape&&(e.clipShape.parent=e,e.clipShape.updateTransform(),t?(t=t.slice(),t.push(e.clipShape)):t=[e.clipShape]);for(var n=0;n<e._children.length;n++){var r=e._children[n];r.__dirty=e.__dirty||r.__dirty,this._updateAndAddShape(r,t)}e.__dirty=!1}else e.__clipShapes=t,this._shapeList[this._shapeListOffset++]=e}mod(e,t){var n=this._elements[e];if(n&&(n.modSelf(),t))if(t.parent||t._storage||t.__startClip){var r={};for(var i in t)"parent"!=i&&"_storage"!=i&&"__startClip"!=i&&t.hasOwnProperty(i)&&(r[i]=t[i]);(new Co).merge(n,r,!0)}else(new Co).merge(n,t,!0);return this}drift(e,t,n){var r=this._elements[e];return r&&(r.needTransform=!0,"horizontal"===r.draggable?n=0:"vertical"===r.draggable&&(t=0),(!r.ondrift||r.ondrift&&!r.ondrift(t,n))&&r.drift(t,n)),this}addHover(e){return e.updateNeedTransform(),this._hoverElements.push(e),this}delHover(){return this._hoverElements=[],this}hasHoverShape(){return this._hoverElements.length>0}addRoot(e){e instanceof Sa&&e.addChildrenToStorage(this),this.addToMap(e),this._roots.push(e)}delRoot(e){if("undefined"==typeof e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof Sa&&n.delChildrenFromStorage(this)}return this._elements={},this._hoverElements=[],void(this._roots=[])}if(e instanceof Array){var r=e.length;for(let t=0;t<r;t++)this.delRoot(e[t])}else{var i;i="string"==typeof e?this._elements[e]:e;var o=(new Co).indexOf(this._roots,i);o>=0&&(this.delFromMap(i.id),this._roots.splice(o,1),i instanceof Sa&&i.delChildrenFromStorage(this))}}addToMap(e){return e instanceof Sa&&(e._storage=this),e.modSelf(),this._elements[e.id]=e,this}get(e){return this._elements[e]}delFromMap(e){var t=this._elements[e];return t&&(delete this._elements[e],t instanceof Sa&&(t._storage=null)),this}dispose(){this._elements=null,this._roots=null,this._hoverElements=null}static shapeCompareFunc(e,t){return e.zlevel==t.zlevel?e.z==t.z?e.__renderidx-t.__renderidx:e.z-t.z:e.zlevel-t.zlevel}}class Ea{constructor(e,t){this.root=e,this.storage=t,this._domRoot=null,this._layers={},this._zlevelList=[],this._layerConfig={},this._bgDom=null,this.shapeToImage=null,Ea.devicePixelRatio=Math.max(window.devicePixelRatio||1,1),this.CLASS_NAME="SuperMap.LevelRenderer.Painter",this.root.innerHTML="",this._width=this._getWidth(),this._height=this._getHeight();var n=document.createElement("div");this._domRoot=n,n.style.position="relative",n.style.overflow="hidden",n.style.width=this._width+"px",n.style.height=this._height+"px",this.root.appendChild(n),this.shapeToImage=this._createShapeToImageProcessor(),this._bgDom=Ea.createDom(Y.createUniqueID("SuperMap.Theme_background_"),"div",this),n.appendChild(this._bgDom),this._bgDom.onselectstart=o,this._bgDom.style["-webkit-user-select"]="none",this._bgDom.style["user-select"]="none",this._bgDom.style["-webkit-touch-callout"]="none";var r=new ka(Y.createUniqueID("_highLightLayer_"),this);this._layers["hover"]=r,n.appendChild(r.dom),r.initContext(),r.dom.onselectstart=o,r.dom.style["-webkit-user-select"]="none",r.dom.style["user-select"]="none",r.dom.style["-webkit-touch-callout"]="none";var i=this;function o(){return!1}this.updatePainter=function(e,t){i.refreshShapes(e,t)}}destroy(){this.dispose(),this._zlevelList=null,this._layerConfig=null,this._bgDom=null,this.shapeToImage=null}render(e){return this.refresh(e,!0),this}refresh(e,t){var n=this.storage.getShapeList(!0);return this._paintList(n,t),"function"==typeof e&&e(),this}_paintList(e,t){var n,r,i;for(var o in"undefined"==typeof t&&(t=!1),this._updateLayerStatus(e),this._layers)"hover"!==o&&(this._layers[o].unusedCount++,this._layers[o].updateTransform());for(var a=[],s=0,l=e.length;s<l;s++){var c=e[s];if(r!==c.zlevel&&(n&&n.needTransform&&i.restore(),n=this.getLayer(c.zlevel),i=n.ctx,r=c.zlevel,n.unusedCount=0,(n.dirty||t)&&n.clear(),n.needTransform&&(i.save(),n.setTransform(i))),i&&c.__startClip){var u=c.__startClip;if(i.save(),u.needTransform){let e=u.transform;ea.Util_matrix.invert(a,e),i.transform(e[0],e[1],e[2],e[3],e[4],e[5])}if(i.beginPath(),u.buildPath(i,u.style),i.clip(),u.needTransform){let e=a;i.transform(e[0],e[1],e[2],e[3],e[4],e[5])}}if((n&&n.dirty||t)&&!c.invisible&&(!c.onbrush||c.onbrush&&!c.onbrush(i,!1)))if(Yo.catchBrushException)try{c.brush(i,!1,this.updatePainter)}catch(f){ea.Util_log(f,"brush error of "+c.type,c)}else c.brush(i,!1,this.updatePainter);i&&c.__stopClip&&i.restore(),c.__dirty=!1}i&&n&&n.needTransform&&i.restore();for(let h in this._layers)if("hover"!==h){var d=this._layers[h];d.dirty=!1,1==d.unusedCount&&d.clear()}}getLayer(e){var t=this._layers[e];if(!t){var n=this._zlevelList.length,r=null,i=-1;if(n>0&&e>this._zlevelList[0]){for(i=0;i<n-1;i++)if(this._zlevelList[i]<e&&this._zlevelList[i+1]>e)break;r=this._layers[this._zlevelList[i]]}this._zlevelList.splice(i+1,0,e),t=new ka(Y.createUniqueID("_levelLayer_"+e),this);var o=r?r.dom:this._bgDom;o.nextSibling?o.parentNode.insertBefore(t.dom,o.nextSibling):o.parentNode.appendChild(t.dom),t.initContext(),this._layers[e]=t,this._layerConfig[e]&&(new Co).merge(t,this._layerConfig[e],!0),t.updateTransform()}return t}getLayers(){return this._layers}_updateLayerStatus(e){var t=this._layers,n={};for(let a in t)"hover"!==a&&(n[a]=t[a].elCount,t[a].elCount=0);for(let a=0;a<e.length;a++){var r=e[a],i=r.zlevel,o=t[i];if(o){if(o.elCount++,o.dirty)continue;o.dirty=r.__dirty}}for(let a in t)"hover"!==a&&n[a]!==t[a].elCount&&(t[a].dirty=!0)}refreshShapes(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];this.storage.mod(i.id)}return this.refresh(t),this}clear(){for(var e in this._layers)"hover"!=e&&this._layers[e].clear();return this}modLayer(e,t){if(t){this._layerConfig[e]?(new Co).merge(this._layerConfig[e],t,!0):this._layerConfig[e]=t;var n=this._layers[e];n&&(new Co).merge(n,this._layerConfig[e],!0)}}delLayer(e){var t=this._layers[e];t&&(this.modLayer(e,{position:t.position,rotation:t.rotation,scale:t.scale}),t.dom.parentNode.removeChild(t.dom),delete this._layers[e],this._zlevelList.splice((new Co).indexOf(this._zlevelList,e),1))}refreshHover(){this.clearHover();for(var e=this.storage.getHoverShapes(!0),t=0,n=e.length;t<n;t++)this._brushHover(e[t]);return this.storage.delHover(),this}clearHover(){var e=this._layers.hover;return e&&e.clear(),this}resize(){var e=this._domRoot;e.style.display="none";var t=this._getWidth(),n=this._getHeight();if(e.style.display="",this._width!=t||n!=this._height){for(var r in this._width=t,this._height=n,e.style.width=t+"px",e.style.height=n+"px",this._layers)this._layers[r].resize(t,n);this.refresh(null,!0)}return this}clearLayer(e){var t=this._layers[e];t&&t.clear()}dispose(){this.root.innerHTML="",this.root=null,this.storage=null,this._domRoot=null,this._layers=null}getDomHover(){return this._layers.hover.dom}toDataURL(e,t,n){var r=Ea.createDom(Y.createUniqueID("SuperMap.Theme.image_"),"canvas",this);this._bgDom.appendChild(r);var i=r.getContext("2d");1!=Ea.devicePixelRatio&&i.scale(Ea.devicePixelRatio,Ea.devicePixelRatio),i.fillStyle=t||"#fff",i.rect(0,0,this._width*Ea.devicePixelRatio,this._height*Ea.devicePixelRatio),i.fill();var o=this;this.storage.iterShape((function(e){if(!e.invisible&&(!e.onbrush||e.onbrush&&!e.onbrush(i,!1)))if(Yo.catchBrushException)try{e.brush(i,!1,o.updatePainter)}catch(t){ea.Util_log(t,"brush error of "+e.type,e)}else e.brush(i,!1,o.updatePainter)}),{normal:"up",update:!0});var a=r.toDataURL(e,n);return i=null,this._bgDom.removeChild(r),a}getWidth(){return this._width}getHeight(){return this._height}_getWidth(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10)).toFixed(0)-0}_getHeight(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)).toFixed(0)-0}_brushHover(e){var t=this._layers.hover.ctx;if(!e.onbrush||e.onbrush&&!e.onbrush(t,!0)){var n=this.getLayer(e.zlevel);if(n.needTransform&&(t.save(),n.setTransform(t)),Yo.catchBrushException)try{e.brush(t,!0,this.updatePainter)}catch(r){ea.Util_log(r,"hoverBrush error of "+e.type,e)}else e.brush(t,!0,this.updatePainter);n.needTransform&&t.restore()}}_shapeToImage(e,t,n,r,i){var o=document.createElement("canvas"),a=o.getContext("2d"),s=i||window.devicePixelRatio||1;o.style.width=n+"px",o.style.height=r+"px",o.setAttribute("width",n*s),o.setAttribute("height",r*s),a.clearRect(0,0,n*s,r*s);var l={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[0,0,0],t.rotation=0,t.scale=[1,1],t&&t.brush(a,!1);var c=new la({id:e,style:{x:0,y:0,image:o}});return null!=l.position&&(c.position=t.position=l.position),null!=l.rotation&&(c.rotation=t.rotation=l.rotation),null!=l.scale&&(c.scale=t.scale=l.scale),c}_createShapeToImageProcessor(){var e=this;return function(t,n,r,i){return e._shapeToImage(t,n,r,i,Ea.devicePixelRatio)}}updateHoverLayer(e){if(!(e instanceof Array))return this;this.clearHover(),this.storage.delHover();for(var t=0;t<e.length;t++)this.storage.addHover(e[t]),this._brushHover(e[t])}static createDom(e,t,n){var r=document.createElement(t),i=n._width,o=n._height;return r.style.position="absolute",r.style.left=0,r.style.top=0,r.style.width=i+"px",r.style.height=o+"px",r.setAttribute("width",i*Ea.devicePixelRatio),r.setAttribute("height",o*Ea.devicePixelRatio),r.setAttribute("id",e),r}}class ka extends ta{constructor(e,t){function n(){return!1}super(e,t),this.dom=null,this.domBack=null,this.ctxBack=null,this.painter=t,this.unusedCount=0,this.config=null,this.dirty=!0,this.elCount=0,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.zoomable=!1,this.panable=!1,this.maxZoom=1/0,this.minZoom=0,this.ctx=null,this.dom=Ea.createDom(Y.createUniqueID("SuperMap.Theme"+e),"canvas",t),this.dom.onselectstart=n,this.dom.style["-webkit-user-select"]="none",this.dom.style["user-select"]="none",this.dom.style["-webkit-touch-callout"]="none",this.CLASS_NAME="SuperMap.LevelRenderer.Painter.Layer"}destroy(){this.dom=null,this.domBack=null,this.ctxBack=null,this.painter=null,this.unusedCount=null,this.config=null,this.dirty=null,this.elCount=null,this.clearColor=null,this.motionBlur=null,this.lastFrameAlpha=null,this.zoomable=null,this.panable=null,this.maxZoom=null,this.minZoom=null,this.ctx=null,ta.destroy.apply(this,arguments)}initContext(){this.ctx=this.dom.getContext("2d"),1!=Ea.devicePixelRatio&&this.ctx.scale(Ea.devicePixelRatio,Ea.devicePixelRatio)}createBackBuffer(){this.domBack=Ea.createDom(Y.createUniqueID("SuperMap.Theme.back-"+this.id),"canvas",this.painter),this.ctxBack=this.domBack.getContext("2d"),1!=Ea.devicePixelRatio&&this.ctxBack.scale(Ea.devicePixelRatio,Ea.devicePixelRatio)}resize(e,t){this.dom.style.width=e+"px",this.dom.style.height=t+"px",this.dom.setAttribute("width",e*Ea.devicePixelRatio),this.dom.setAttribute("height",t*Ea.devicePixelRatio),1!=Ea.devicePixelRatio&&this.ctx.scale(Ea.devicePixelRatio,Ea.devicePixelRatio),this.domBack&&(this.domBack.setAttribute("width",e*Ea.devicePixelRatio),this.domBack.setAttribute("height",t*Ea.devicePixelRatio),1!=Ea.devicePixelRatio&&this.ctxBack.scale(Ea.devicePixelRatio,Ea.devicePixelRatio))}clear(){var e=this.dom,t=this.ctx,n=e.width,r=e.height,i=this.clearColor,o=this.motionBlur,a=this.lastFrameAlpha;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/Ea.devicePixelRatio,r/Ea.devicePixelRatio)),i?(t.save(),t.fillStyle=this.config.clearColor,t.fillRect(0,0,n/Ea.devicePixelRatio,r/Ea.devicePixelRatio),t.restore()):t.clearRect(0,0,n/Ea.devicePixelRatio,r/Ea.devicePixelRatio),o){var s=this.domBack;t.save(),t.globalAlpha=a,t.drawImage(s,0,0,n/Ea.devicePixelRatio,r/Ea.devicePixelRatio),t.restore()}}}class Oa extends Uo{constructor(e,t,n){super(e,t,n),this.root=e,this.storage=t,this.painter=n,this._lastX=0,this._lastY=0,this._mouseX=0,this._mouseY=0,this._findHover=null,this._domHover=null,this._findHover=o(s,this),this._domHover=n.getDomHover(),this.CLASS_NAME="SuperMap.LevelRenderer.Handler";var r={resize:function(e){e=e||window.event,this._lastHover=null,this._isMouseDown=0,this.dispatch(Yo.EVENT.RESIZE,e)},click:function(e){e=this._zrenderEventFixed(e);var t=this._lastHover;(t&&t.clickable||!t)&&this._clickThreshold<10&&this._dispatchAgency(t,Yo.EVENT.CLICK,e),this._mousemoveHandler(e)},dblclick:function(e){e=e||window.event,e=this._zrenderEventFixed(e);var t=this._lastHover;(t&&t.clickable||!t)&&this._clickThreshold<5&&this._dispatchAgency(t,Yo.EVENT.DBLCLICK,e),this._mousemoveHandler(e)},mousewheel:function(e){e=this._zrenderEventFixed(e);var t=e.wheelDelta||-e.detail,n=t>0?1.1:1/1.1,r=this.painter.getLayers(),i=!1;for(var o in r)if("hover"!==o){var a=r[o],s=a.position;if(a.zoomable){a.__zoom=a.__zoom||1;var l=a.__zoom;l*=n,l=Math.max(Math.min(a.maxZoom,l),a.minZoom),n=l/a.__zoom,a.__zoom=l,s[0]-=(this._mouseX-s[0])*(n-1),s[1]-=(this._mouseY-s[1])*(n-1),a.scale[0]*=n,a.scale[1]*=n,a.dirty=!0,i=!0}}i&&this.painter.refresh(),this._dispatchAgency(this._lastHover,Yo.EVENT.MOUSEWHEEL,e),this._mousemoveHandler(e)},mousemove:function(e){this._clickThreshold++,e=this._zrenderEventFixed(e),this._lastX=this._mouseX,this._lastY=this._mouseY,this._mouseX=ea.Util_event.getX(e),this._mouseY=ea.Util_event.getY(e);var t=this._mouseX-this._lastX,n=this._mouseY-this._lastY;this._processDragStart(e),this._hasfound=0,this._event=e,this._iterateAndFindHover(),this._hasfound||((!this._draggingTarget||this._lastHover&&this._lastHover!=this._draggingTarget)&&(this._processOutShape(e),this._processDragLeave(e)),this._lastHover=null,this.storage.delHover(),this.painter.clearHover());var r="";if(this._draggingTarget)this.storage.drift(this._draggingTarget.id,t,n),this._draggingTarget.modSelf(),this.storage.addHover(this._draggingTarget);else if(this._isMouseDown){var i=this.painter.getLayers(),o=!1;for(var a in i)if("hover"!==a){var s=i[a];s.panable&&(r="move",s.position[0]+=t,s.position[1]+=n,o=!0,s.dirty=!0)}o&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?r="move":this._hasfound&&this._lastHover.clickable&&(r="pointer"),this.root.style.cursor=r,this._dispatchAgency(this._lastHover,Yo.EVENT.MOUSEMOVE,e),(this._draggingTarget||this._hasfound||this.storage.hasHoverShape())&&this.painter.refreshHover()},mouseout:function(e){e=this._zrenderEventFixed(e);var t=e.toElement||e.relatedTarget;if(t!=this.root)while(t&&9!=t.nodeType){if(t==this.root)return void this._mousemoveHandler(e);t=t.parentNode}e.zrenderX=this._lastX,e.zrenderY=this._lastY,this.root.style.cursor="",this._isMouseDown=0,this._processOutShape(e),this._processDrop(e),this._processDragEnd(e),this.painter.refreshHover(),this.dispatch(Yo.EVENT.GLOBALOUT,e)},mousedown:function(e){if(this._clickThreshold=0,2==this._lastDownButton)return this._lastDownButton=e.button,void(this._mouseDownTarget=null);this._lastMouseDownMoment=new Date,e=this._zrenderEventFixed(e),this._isMouseDown=1,this._mouseDownTarget=this._lastHover,this._dispatchAgency(this._lastHover,Yo.EVENT.MOUSEDOWN,e),this._lastDownButton=e.button},mouseup:function(e){e=this._zrenderEventFixed(e),this.root.style.cursor="",this._isMouseDown=0,this._mouseDownTarget=null,this._dispatchAgency(this._lastHover,Yo.EVENT.MOUSEUP,e),this._processDrop(e),this._processDragEnd(e)},touchstart:function(e){e=this._zrenderEventFixed(e,!0),this._lastTouchMoment=new Date,this._mobildFindFixed(e),this._mousedownHandler(e)},touchmove:function(e){e=this._zrenderEventFixed(e,!0),this._mousemoveHandler(e),this._isDragging&&ea.Util_event.stop(e)},touchend:function(e){e=this._zrenderEventFixed(e,!0),this._mouseupHandler(e);var t=new Date;t-this._lastTouchMoment<Yo.EVENT.touchClickDelay&&(this._mobildFindFixed(e),this._clickHandler(e),t-this._lastClickMoment<Yo.EVENT.touchClickDelay/2&&(this._dblclickHandler(e),this._lastHover&&this._lastHover.clickable&&ea.Util_event.stop(e)),this._lastClickMoment=t),this.painter.clearHover()}};function i(e,t){return function(n){return e.call(t,n)}}function o(e,t){return function(n,r,i){return e.call(t,n,r,i)}}function a(e){var t=["resize","click","dblclick","mousewheel","mousemove","mouseout","mouseup","mousedown","touchstart","touchend","touchmove"],n=t.length;while(n--){var o=t[n];e["_"+o+"Handler"]=i(r[o],e)}}function s(e,t,n){var r=this;if(r._draggingTarget&&r._draggingTarget.id==e.id||e.isSilent())return!1;var i=r._event;if(e.isCover(t,n)){if(e.hoverable)if(e.isHoverByRefDataID&&!0===e.isHoverByRefDataID){if(e.refDataID){var o=e.refDataID,a=null;e.refDataHoverGroup&&(a=e.refDataHoverGroup);for(var s=r.storage._shapeList,l=0,c=s.length;l<c;l++){var u=s[l];u.refDataID&&o===u.refDataID&&(a?u.refDataHoverGroup&&a===u.refDataHoverGroup&&r.storage.addHover(u):r.storage.addHover(u))}}}else r.storage.addHover(e);var d=e.parent;while(d){if(d.clipShape&&!d.clipShape.isCover(r._mouseX,r._mouseY))return!1;d=d.parent}return r._lastHover!=e&&(r._processOutShape(i),r._processDragLeave(i),r._lastHover=e,r._processDragEnter(i)),r._processOverShape(i),r._processDragOver(i),r._hasfound=1,!0}return!1}a(this),window.addEventListener?(window.addEventListener("resize",this._resizeHandler),ea.Util_env.os.tablet||ea.Util_env.os.phone?(e.addEventListener("touchstart",this._touchstartHandler),e.addEventListener("touchmove",this._touchmoveHandler),e.addEventListener("touchend",this._touchendHandler)):(e.addEventListener("click",this._clickHandler),e.addEventListener("dblclick",this._dblclickHandler),e.addEventListener("mousewheel",this._mousewheelHandler),e.addEventListener("mousemove",this._mousemoveHandler),e.addEventListener("mousedown",this._mousedownHandler),e.addEventListener("mouseup",this._mouseupHandler)),e.addEventListener("DOMMouseScroll",this._mousewheelHandler),e.addEventListener("mouseout",this._mouseoutHandler)):(window.attachEvent("onresize",this._resizeHandler),e.attachEvent("onclick",this._clickHandler),e.ondblclick=this._dblclickHandler,e.attachEvent("onmousewheel",this._mousewheelHandler),e.attachEvent("onmousemove",this._mousemoveHandler),e.attachEvent("onmouseout",this._mouseoutHandler),e.attachEvent("onmousedown",this._mousedownHandler),e.attachEvent("onmouseup",this._mouseupHandler))}destroy(){this.dispose(),this._lastX=null,this._lastY=null,this._mouseX=null,this._mouseY=null,this._findHover=null,Uo.prototype.destroy.apply(this,arguments)}on(e,t){return this.bind(e,t),this}un(e,t){return this.unbind(e,t),this}trigger(e,t){var n=Yo.EVENT;switch(e){case n.RESIZE:case n.CLICK:case n.DBLCLICK:case n.MOUSEWHEEL:case n.MOUSEMOVE:case n.MOUSEDOWN:case n.MOUSEUP:case n.MOUSEOUT:this["_"+e+"Handler"](t);break}}dispose(){var e=this.root;window.removeEventListener?(window.removeEventListener("resize",this._resizeHandler),ea.Util_env.os.tablet||ea.Util_env.os.phone?(e.removeEventListener("touchstart",this._touchstartHandler),e.removeEventListener("touchmove",this._touchmoveHandler),e.removeEventListener("touchend",this._touchendHandler)):(e.removeEventListener("click",this._clickHandler),e.removeEventListener("dblclick",this._dblclickHandler),e.removeEventListener("mousewheel",this._mousewheelHandler),e.removeEventListener("mousemove",this._mousemoveHandler),e.removeEventListener("mousedown",this._mousedownHandler),e.removeEventListener("mouseup",this._mouseupHandler)),e.removeEventListener("DOMMouseScroll",this._mousewheelHandler),e.removeEventListener("mouseout",this._mouseoutHandler)):(window.detachEvent("onresize",this._resizeHandler),e.detachEvent("onclick",this._clickHandler),e.detachEvent("dblclick",this._dblclickHandler),e.detachEvent("onmousewheel",this._mousewheelHandler),e.detachEvent("onmousemove",this._mousemoveHandler),e.detachEvent("onmouseout",this._mouseoutHandler),e.detachEvent("onmousedown",this._mousedownHandler),e.detachEvent("onmouseup",this._mouseupHandler)),this.root=null,this._domHover=null,this.storage=null,this.painter=null,this.un()}_processDragStart(e){var t=this._lastHover;if(this._isMouseDown&&t&&t.draggable&&!this._draggingTarget&&this._mouseDownTarget==t){if(t.dragEnableTime&&new Date-this._lastMouseDownMoment<t.dragEnableTime)return;var n=t;this._draggingTarget=n,this._isDragging=1,n.invisible=!0,this.storage.mod(n.id),this._dispatchAgency(n,Yo.EVENT.DRAGSTART,e),this.painter.refresh()}}_processDragEnter(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,Yo.EVENT.DRAGENTER,e,this._draggingTarget)}_processDragOver(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,Yo.EVENT.DRAGOVER,e,this._draggingTarget)}_processDragLeave(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,Yo.EVENT.DRAGLEAVE,e,this._draggingTarget)}_processDrop(e){this._draggingTarget&&(this._draggingTarget.invisible=!1,this.storage.mod(this._draggingTarget.id),this.painter.refresh(),this._dispatchAgency(this._lastHover,Yo.EVENT.DROP,e,this._draggingTarget))}_processDragEnd(e){this._draggingTarget&&(this._dispatchAgency(this._draggingTarget,Yo.EVENT.DRAGEND,e),this._lastHover=null),this._isDragging=0,this._draggingTarget=null}_processOverShape(e){this._dispatchAgency(this._lastHover,Yo.EVENT.MOUSEOVER,e)}_processOutShape(e){this._dispatchAgency(this._lastHover,Yo.EVENT.MOUSEOUT,e)}_dispatchAgency(e,t,n,r){var i="on"+t,o={type:t,event:n,target:e,cancelBubble:!1},a=e;r&&(o.dragged=r);while(a)if(a[i]&&(o.cancelBubble=a[i](o)),a.dispatch(t,o),a=a.parent,o.cancelBubble)break;e?o.cancelBubble||this.dispatch(t,o):r||this.dispatch(t,{type:t,event:n})}_iterateAndFindHover(){for(var e,t,n=ea.Util_matrix.create(),r=this.storage.getShapeList(),i=[0,0],o=r.length-1;o>=0;o--){var a=r[o];if(e!==a.zlevel&&(t=this.painter.getLayer(a.zlevel,t),i[0]=this._mouseX,i[1]=this._mouseY,t.needTransform&&(ea.Util_matrix.invert(n,t.transform),ea.Util_vector.applyTransform(i,i,n))),this._findHover(a,i[0],i[1]))break}}_mobildFindFixed(e){var t=[{x:10},{x:-20},{x:10,y:10},{y:-20}];this._lastHover=null,this._mouseX=e.zrenderX,this._mouseY=e.zrenderY,this._event=e,this._iterateAndFindHover();for(var n=0;!this._lastHover&&n<t.length;n++){var r=t[n];r.x&&(this._mouseX+=r.x),r.y&&(this._mouseX+=r.y),this._iterateAndFindHover()}this._lastHover&&(e.zrenderX=this._mouseX,e.zrenderY=this._mouseY)}_zrenderEventFixed(e,t){if(e.zrenderFixed)return e;if(t){var n="touchend"!=e.type?e.targetTouches[0]:e.changedTouches[0];if(n){var r=this.root.getBoundingClientRect();e.zrenderX=n.clientX-r.left,e.zrenderY=n.clientY-r.top}}else{e=e||window.event;var i=e.toElement||e.relatedTarget||e.srcElement||e.target;i&&i!=this._domHover&&(e.zrenderX=("undefined"!=typeof e.offsetX?e.offsetX:e.layerX)+i.offsetLeft,e.zrenderY=("undefined"!=typeof e.offsetY?e.offsetY:e.layerY)+i.offsetTop)}return e.zrenderFixed=1,e}getLastHoverOne(){return this._lastHover?this._lastHover:null}}class Ta{constructor(){this.CLASS_NAME="SuperMap.LevelRenderer.Animation.easing"}destroy(){}Linear(e){return e}QuadraticIn(e){return e*e}QuadraticOut(e){return e*(2-e)}QuadraticInOut(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}CubicIn(e){return e*e*e}CubicOut(e){return--e*e*e+1}CubicInOut(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}QuarticIn(e){return e*e*e*e}QuarticOut(e){return 1- --e*e*e*e}QuarticInOut(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}QuinticIn(e){return e*e*e*e*e}QuinticOut(e){return--e*e*e*e*e+1}QuinticInOut(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}SinusoidalIn(e){return 1-Math.cos(e*Math.PI/2)}SinusoidalOut(e){return Math.sin(e*Math.PI/2)}SinusoidalInOut(e){return.5*(1-Math.cos(Math.PI*e))}ExponentialIn(e){return 0===e?0:Math.pow(1024,e-1)}ExponentialOut(e){return 1===e?1:1-Math.pow(2,-10*e)}ExponentialInOut(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}CircularIn(e){return 1-Math.sqrt(1-e*e)}CircularOut(e){return Math.sqrt(1- --e*e)}CircularInOut(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}ElasticIn(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))}ElasticOut(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)}ElasticInOut(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)}BackIn(e){var t=1.70158;return e*e*((t+1)*e-t)}BackOut(e){var t=1.70158;return--e*e*((t+1)*e+t)+1}BackInOut(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}BounceIn(e){return 1-this.BounceOut(1-e)}BounceOut(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}BounceInOut(e){return e<.5?.5*this.BounceIn(2*e):.5*this.BounceOut(2*e-1)+.5}}class Ia{constructor(e){this._targetPool=e.target||{},this._targetPool instanceof Array||(this._targetPool=[this._targetPool]),this._life=e.life||1e3,this._delay=e.delay||0,this._startTime=(new Date).getTime()+this._delay,this._endTime=this._startTime+1e3*this._life,this.loop="undefined"!=typeof e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this.CLASS_NAME="SuperMap.LevelRenderer.Animation.Clip"}destroy(){}step(e){var t=new Ta,n=(e-this._startTime)/this._life;if(!(n<0)){n=Math.min(n,1);var r="string"==typeof this.easing?t[this.easing]:this.easing,i="function"===typeof r?r(n):n;return this.fire("frame",i),1==n?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}}restart(){var e=(new Date).getTime(),t=(e-this._startTime)%this._life;this._startTime=(new Date).getTime()-t+this.gap}fire(e,t){for(var n=0,r=this._targetPool.length;n<r;n++)this["on"+e]&&this["on"+e](this._targetPool[n],t)}}class Aa extends Uo{constructor(e){super(e),e=e||{},this.stage={},this.onframe=function(){},this._clips=[],this._running=!1,this._time=0,Y.extend(this,e),this.CLASS_NAME="SuperMap.LevelRenderer.Animation"}add(e){this._clips.push(e)}remove(e){var t=(new Co).indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)}_update(){var e=(new Date).getTime(),t=e-this._time,n=this._clips,r=n.length,i=[],o=[];for(let l=0;l<r;l++){var a=n[l],s=a.step(e);s&&(i.push(s),o.push(a))}this.stage.update&&this.stage.update();for(let l=0;l<r;)n[l]._needsRemove?(n[l]=n[r-1],n.pop(),r--):l++;r=i.length;for(let l=0;l<r;l++)o[l].fire(i[l]);this._time=e,this.onframe(t),this.dispatch("frame",t)}start(){var e=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},t=this;function n(){t._running&&(t._update(),e(n))}this._running=!0,this._time=(new Date).getTime(),e(n)}stop(){this._running=!1}clear(){this._clips=[]}animate(e,t){t=t||{};var n=new Ra(e,t.loop,t.getter,t.setter);return n.animation=this,n}static _interpolateNumber(e,t,n){return(t-e)*n+e}static _interpolateArray(e,t,n,r,i){var o=e.length;if(1==i)for(let s=0;s<o;s++)r[s]=Aa._interpolateNumber(e[s],t[s],n);else{var a=e[0].length;for(let i=0;i<o;i++)for(let o=0;o<a;o++)r[i][o]=Aa._interpolateNumber(e[i][o],t[i][o],n)}}static _isArrayLike(e){switch(typeof e){case"undefined":case"string":return!1}return"undefined"!==typeof e.length}static _catmullRomInterpolateArray(e,t,n,r,i,o,a,s,l){var c=e.length;if(1==l)for(let f=0;f<c;f++)s[f]=Aa._catmullRomInterpolate(e[f],t[f],n[f],r[f],i,o,a);else{var u=e[0].length;for(let l=0;l<c;l++)for(var d=0;d<u;d++)s[l][d]=Aa._catmullRomInterpolate(e[l][d],t[l][d],n[l][d],r[l][d],i,o,a)}}static _catmullRomInterpolate(e,t,n,r,i,o,a){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*i+t}static _cloneValue(e){var t=Array.prototype.slice;if(Aa._isArrayLike(e)){var n=e.length;if(Aa._isArrayLike(e[0])){for(var r=[],i=0;i<n;i++)r.push(t.call(e[i]));return r}return t.call(e)}return e}static rgba2String(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}}class Ra{constructor(e,t,n,r){function i(e,t){return e[t]}function o(e,t,n){e[t]=n}this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||i,this._setter=r||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[],this.CLASS_NAME="SuperMap.LevelRenderer.Animation.Animator"}when(e,t){for(var n in t)this._tracks[n]||(this._tracks[n]=[],0!==e&&this._tracks[n].push({time:0,value:Aa._cloneValue(this._getter(this._target,n))})),this._tracks[n].push({time:parseInt(e,10),value:t[n]});return this}during(e){return this._onframeList.push(e),this}start(e){var t=this,n=this._setter,r=this._getter,i=t._onframeList.length,o="spline"===e,a=function(){if(t._clipCount--,0===t._clipCount){t._tracks={};for(var e=t._doneList.length,n=0;n<e;n++)t._doneList[n].call(t)}},s=function(s,l){var c=s.length;if(c){var u=s[0].value,d=Aa._isArrayLike(u),f=!1,h=d&&Aa._isArrayLike(u[0])?2:1;s.sort((function(e,t){return e.time-t.time}));var p=s[c-1].time,m=[],g=[];for(let e=0;e<c;e++){m.push(s[e].time/p);var v=s[e].value;"string"==typeof v&&(v=ea.Util_color.toArray(v),0===v.length&&(v[0]=v[1]=v[2]=0,v[3]=1),f=!0),g.push(v)}var y,b,_,w,x,S,C,E=0,k=0;if(f)var O=[0,0,0,0];var T=function(e,a){if(a<k){for(y=Math.min(E+1,c-1),b=y;b>=0;b--)if(m[b]<=a)break;b=Math.min(b,c-2)}else{for(b=E;b<c;b++)if(m[b]>a)break;b=Math.min(b-1,c-2)}E=b,k=a;var s=m[b+1]-m[b];if(0!==s){if(_=(a-m[b])/s,o)if(x=g[b],w=g[0===b?b:b-1],S=g[b>c-2?c-1:b+1],C=g[b>c-3?c-1:b+2],d)Aa._catmullRomInterpolateArray(w,x,S,C,_,_*_,_*_*_,r(e,l),h);else{let t;t=f?Aa.rgba2String(O):Aa._catmullRomInterpolate(w,x,S,C,_,_*_,_*_*_),n(e,l,t)}else if(d)Aa._interpolateArray(g[b],g[b+1],_,r(e,l),h);else{let t;f?(Aa._interpolateArray(g[b],g[b+1],_,O,1),t=Aa.rgba2String(O)):t=Aa._interpolateNumber(g[b],g[b+1],_),n(e,l,t)}for(b=0;b<i;b++)t._onframeList[b](e,a)}},I=new Ia({target:t._target,life:p,loop:t._loop,delay:t._delay,onframe:T,ondestroy:a});e&&"spline"!==e&&(I.easing=e),t._clipList.push(I),t._clipCount++,t.animation.add(I)}};for(var l in this._tracks)s(this._tracks[l],l);return this}stop(){for(var e=0;e<this._clipList.length;e++){var t=this._clipList[e];this.animation.remove(t)}this._clipList=[]}delay(e){return this._delay=e,this}done(e){return e&&this._doneList.push(e),this}}class Pa{constructor(e,t){this.id=e,this.storage=new Ca,this.painter=new Ea(t,this.storage),this.handler=new Oa(t,this.storage,this.painter),this.animatingElements=[],this.animation=new Aa({stage:{update:Pa.getFrameCallback(this)}}),this._needsRefreshNextFrame=!1,this.animation.start(),this.CLASS_NAME="SuperMap.LevelRenderer.Render"}destroy(){this.id=null,this.storage=null,this.painter=null,this.handler=null,this.animatingElements=null,this.animation=null,this._needsRefreshNextFrame=null}getId(){return this.id}addShape(e){return this.storage.addRoot(e),this}addGroup(e){return this.storage.addRoot(e),this}delShape(e){return this.storage.delRoot(e),this}delGroup(e){return this.storage.delRoot(e),this}modShape(e,t){return this.storage.mod(e,t),this}modGroup(e,t){return this.storage.mod(e,t),this}modLayer(e,t){return this.painter.modLayer(e,t),this}addHoverShape(e){return this.storage.addHover(e),this}render(e){return this.painter.render(e),this._needsRefreshNextFrame=!1,this}refresh(e){return this.painter.refresh(e),this._needsRefreshNextFrame=!1,this}refreshNextFrame(){return this._needsRefreshNextFrame=!0,this}refreshHover(e){return this.painter.refreshHover(e),this}refreshShapes(e,t){return this.painter.refreshShapes(e,t),this}resize(){return this.painter.resize(),this}animate(e,t,n){if("string"===typeof e&&(e=this.storage.get(e)),e){var r;if(t){for(var i=t.split("."),o=e,a=0,s=i.length;a<s;a++)o&&(o=o[i[a]]);o&&(r=o)}else r=e;if(!r)return void ea.Util_log('Property "'+t+'" is not existed in element '+e.id);var l=this.animatingElements;return"undefined"===typeof e.__aniCount&&(e.__aniCount=0),0===e.__aniCount&&l.push(e),e.__aniCount++,this.animation.animate(r,{loop:n}).done((function(){if(e.__aniCount--,0===e.__aniCount){var t=(new Co).indexOf(l,e);l.splice(t,1)}}))}ea.Util_log("Element not existed")}clearAnimation(){this.animation.clear()}getWidth(){return this.painter.getWidth()}getHeight(){return this.painter.getHeight()}toDataURL(e,t,n){return this.painter.toDataURL(e,t,n)}shapeToImage(e,t,n){var r=Y.createUniqueID("SuperMap.LevelRenderer.ToImage_");return this.painter.shapeToImage(r,e,t,n)}on(e,t){return this.handler.on(e,t),this}un(e,t){return this.handler.un(e,t),this}trigger(e,t){return this.handler.trigger(e,t),this.handler.dispatch(e,t),this}clear(){return this.storage.delRoot(),this.painter.clear(),this}dispose(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=null,this.animatingElements=null,this.storage=null,this.painter=null,this.handler=null}updateHoverShapes(e){return this.painter.updateHoverLayer(e),this}getAllShapes(){return this.storage._shapeList}clearAll(){return this.clear(),this.painter.clearHover(),this}getHoverOne(){return this.handler.getLastHoverOne()}static getFrameCallback(e){return function(){var t=e.animatingElements;if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)e.storage.mod(t[n].id);(t.length||e._needsRefreshNextFrame)&&e.refresh()}}}}class Ma{constructor(){Ma._instances={},Ma.Tool={},this.version="2.0.4",this.CLASS_NAME="SuperMap.LevelRenderer"}destroy(){this.dispose(),this.version=null}init(e){var t=new Pa(Y.createUniqueID("LRenderer_"),e);return Ma._instances[t.id]=t,t}dispose(e){if(e)e.dispose(),this.delInstance(e.id);else{for(var t in Ma._instances)Ma._instances[t].dispose();Ma._instances={}}return this}getInstance(e){return Ma._instances[e]}delInstance(e){return delete Ma._instances[e],this}}o.LevelRenderer=Ma;const Na={EXCEL:"EXCEL",CSV:"CSV",ISERVER:"ISERVER",GEOJSON:"GEOJSON",JSON:"JSON"};class La{constructor(){this._initView()}_initView(){const e=document.createElement("div");e.hidden=!0,e.setAttribute("class","component-messageboxcontainer component-border-bottom-orange");const t=document.createElement("div");t.setAttribute("class","icon"),this.icon=document.createElement("span"),this.icon.setAttribute("class","supermapol-icons-message-warning"),t.appendChild(this.icon),e.appendChild(t);const n=document.createElement("div");n.setAttribute("class","component-messagebox"),n.innerHTML="",e.appendChild(n),this.messageBox=n;const r=document.createElement("div");r.setAttribute("class","component-messagebox__cancelbtncontainer");const i=document.createElement("button");i.setAttribute("class","component-messagebox__cancelBtn"),i.innerHTML="x",i.onclick=this.closeView.bind(this),r.appendChild(i),e.appendChild(r),this.messageBoxContainer=e,document.body.appendChild(this.messageBoxContainer)}closeView(){this.messageBoxContainer.hidden=!0}showView(e,t="warring"){"success"===t?(this.icon.setAttribute("class","supermapol-icons-message-success"),this.messageBoxContainer.setAttribute("class","component-messageboxcontainer component-border-bottom-green")):"failure"===t?(this.icon.setAttribute("class","supermapol-icons-message-failure"),this.messageBoxContainer.setAttribute("class","component-messageboxcontainer component-border-bottom-red")):"warring"===t&&(this.icon.setAttribute("class","supermapol-icons-message-warning"),this.messageBoxContainer.setAttribute("class","component-messageboxcontainer component-border-bottom-orange")),this.messageBox.innerHTML=e,this.messageBoxContainer.hidden=!1}}o.Components.MessageBox=La;var Da=n("313e"),ja=n.n(Da);let Fa={code:null,defaultCode:"en-US",getCode:function(){return o.Lang.code||o.Lang.setCode(),o.Lang.code},setCode:function(){var e=this.getLanguageFromCookie();e||(e=o.Lang.defaultCode,e="Netscape"===navigator.appName?navigator.language:navigator.browserLanguage,0===e.indexOf("zh")&&(e="zh-CN"),0===e.indexOf("en")&&(e="en-US")),o.Lang.code=e},getLanguageFromCookie(){for(var e="language=",t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n];while(" "===r.charAt(0))r=r.substring(1);if(-1!==r.indexOf(e))return r.substring(e.length,r.length)}return""},i18n:function(e){var t=o.Lang[o.Lang.getCode()],n=t&&t[e];return n||(n=e),n}};o.Lang=Fa,o.i18n=o.Lang.i18n;var Ba=n("1146"),qa=n.n(Ba);let za={rABS:"undefined"!==typeof FileReader&&FileReader.prototype&&FileReader.prototype.readAsBinaryString,rABF:"undefined"!==typeof FileReader&&FileReader.prototype&&FileReader.prototype.readAsArrayBuffer,rAT:"undefined"!==typeof FileReader&&FileReader.prototype&&FileReader.prototype.readAsText,readFile(e,t,n,r,i){Na.JSON===e||Na.GEOJSON===e?this.readTextFile(t,n,r,i):Na.EXCEL!==e&&Na.CSV!==e||this.readXLSXFile(t,n,r,i)},readTextFile(e,t,n,r){let i=new FileReader;i.onloadend=function(e){t&&t.call(r,e.target.result)},i.onerror=function(e){n&&n.call(r,e)},this.rAT?i.readAsText(e.file,"utf-8"):i.readAsBinaryString(e.file)},readXLSXFile(e,t,n,r){let i=new FileReader;i.onloadend=function(e){let i=new Uint8Array(e.target.result),o=qa.a.read(i,{type:"array"});try{if(o&&o.SheetNames&&o.SheetNames.length>0){let e=o.SheetNames[0],n=qa.a.utils.sheet_to_csv(o.Sheets[e]);t&&t.call(r,n)}}catch(a){n&&n.call(r,a)}},i.onerror=function(e){n&&n.call(r,e)},this.rABF&&i.readAsArrayBuffer(e.file)},processDataToGeoJson(e,t,n,r,i){let o=null;if("EXCEL"===e||"CSV"===e)o=this.processExcelDataToGeoJson(t),n&&n.call(i,o);else if("JSON"===e||"GEOJSON"===e){let e=t;"string"===typeof e&&(e=JSON.parse(e)),"ISERVER"===e.type?o=e.data.recordsets[0].features:"FeatureCollection"===e.type?o=e:r&&r.call(i,Fa.i18n("msg_dataInWrongGeoJSONFormat")),n&&n.call(i,o)}else r&&r.call(i,Fa.i18n("msg_dataInWrongFormat"))},processExcelDataToGeoJson(e){let t=this.string2Csv(e),n=t.colTitles,r=-1,i=-1;for(let a=0,s=n.length;a<s;a++)this.isXField(n[a])&&(r=a),this.isYField(n[a])&&(i=a);let o=[];for(let a=0,s=t.rows.length;a<s;a++){let e=t.rows[a],n=Number(e[r]),s=Number(e[i]),l={};for(let r in t.colTitles){let e=t.colTitles[r];l[e]=t.rows[a][r]}let c={type:"Feature",geometry:{type:"Point",coordinates:[n,s]},properties:l};o.push(c)}return o},isXField(e){var t=e.toLowerCase();return"x"===t||"smx"===t||"jd"===t||"经度"===t||"东经"===t||"longitude"===t||"lot"===t||"lon"===t||"lng"===t||"x坐标"===t},isYField(e){var t=e.toLowerCase();return"y"===t||"smy"===t||"wd"===t||"纬度"===t||"北纬"===t||"latitude"===t||"lat"===t||"y坐标"===t},string2Csv(e,t){let n=e.split("\n"),r={};r["colTitles"]=t?[]:n[0].split(","),r["rows"]=[];for(let i=t?0:1;i<n.length;i++)n[i]&&r["rows"].push(n[i].split(","));return r}};o.Components.FileReaderUtil=za;class Ua{constructor(e){this.datasets=e,this.EVENT_TYPES=["getdatafailed"],this.events=new he(this,null,this.EVENT_TYPES)}getDatasetInfo(e){let t=this.datasets.url,n=this;Pe.get(t).then((function(e){return e.json()})).then((function(t){if(t.datasetInfo){let r=t.datasetInfo;n.datasetsInfo={dataSourceName:r.dataSourceName,datasetName:r.name,mapName:t.name},e({result:n.datasetsInfo})}})).catch((function(e){console.log(e),n._fireFailedEvent(e)}))}getDataFeatures(e,t){let n,r,i,a=e.result,s={name:a.datasetName+"@"+a.dataSourceName};Object.assign(s,this.datasets.queryInfo),n=new o.FilterParameter(s),r=new o.GetFeaturesBySQLParameters({queryParameter:n,datasetNames:[a.dataSourceName+":"+a.datasetName],fromIndex:0,toIndex:1e5}),i=new o.GetFeaturesBySQLService(a.dataUrl,{eventListeners:{processCompleted:t,processFailed:function(){}}}),i.processAsync(r)}getLayerFeatures(e,t){let n,r,i,a=e.result,s={name:a.mapName};Object.assign(s,this.datasets.queryInfo),n=new o.FilterParameter(s),r=new o.QueryBySQLParameters({queryParams:[n],expectCount:1e5}),i=new o.QueryBySQLService(a.dataUrl,{eventListeners:{processCompleted:t,processFailed:function(){}}}),i.processAsync(r)}getDataInfoByIptl(e){this.getServiceInfo(this.datasets.url,e)}getServiceInfo(e,t){let n=this;Pe.get(e,null,{withCredentials:this.datasets.withCredentials}).then(e=>e.json()).then(r=>{if(!1!==r.succeed)if(r.dataItemServices&&r.dataItemServices.length>0){let i,o=r.dataItemServices;o.forEach(r=>{if("RESTDATA"===r.serviceType&&"PUBLISHED"===r.serviceStatus)i=r;else{if("RESTMAP"!==r.serviceType||"PUBLISHED"!==r.serviceStatus)return void n.getDatafromContent(e,t);i=r}}),i&&n.getDatafromRest(i.serviceType,i.address,t)}else n.getDatafromContent(e,t);else n._fireFailedEvent(r)}).catch(e=>{console.log(e),n._fireFailedEvent(e)})}getDatafromContent(e,t){let n={result:{}},r=this;e+="/content.json?pageSize=9999999&currentPage=1",Pe.get(e,null,{withCredentials:this.datasets.withCredentials}).then(e=>e.json()).then(e=>{if(!1!==e.succeed){if(e.type){if("JSON"===e.type||"GEOJSON"===e.type){if(e.content=JSON.parse(e.content.trim()),!e.content.features)return void console.log(Fa.i18n("msg_jsonResolveFiled"));let t=this._formatGeoJSON(e.content);n.result.features={type:e.content.type,features:t}}else if("EXCEL"===e.type||"CSV"===e.type){let t=this._excelData2Feature(e.content);n.result.features={type:"FeatureCollection",features:t}}t(n,"content")}}else r._fireFailedEvent(e)},this).catch(e=>{console.log(e),r._fireFailedEvent(e)})}getDatafromRest(e,t,n){let r=this,i=this.datasets.withCredentials;if("RESTDATA"===e){let e,o,a=t+"/data/datasources";Pe.get(a,null,{withCredentials:i}).then(e=>e.json()).then(s=>{e=s.datasourceNames[0],a=`${t}/data/datasources/${e}/datasets`,Pe.get(a,null,{withCredentials:i}).then(e=>e.json()).then(i=>(o=i.datasetNames[0],r.getDatafromRestData(t+"/data",[e+":"+o],n),[e+":"+o])).catch((function(e){r._fireFailedEvent(e)}))}).catch((function(e){r._fireFailedEvent(e)}))}else{let e,o,a,s=t+"/maps";Pe.get(s,null,{withCredentials:i}).then(e=>e.json()).then(l=>{e=l[0].name,a=l[0].path,s=s=`${t}/maps/${e}/layers`,Pe.get(s,null,{withCredentials:i}).then(e=>e.json()).then(e=>(o=e[0].subLayers.layers[0].caption,r.getDatafromRestMap(o,a,n),o)).catch((function(e){r._fireFailedEvent(e)}))}).catch((function(e){r._fireFailedEvent(e)}))}}getDatafromRestData(e,t,n){let r=this;this.datasets.queryInfo.attributeFilter=this.datasets.queryInfo.attributeFilter||"SmID>0",this._getFeatureBySQL(e,t,this.datasets.queryInfo,e=>{n(e,"RESTDATA")},e=>{console.log(e),r._fireFailedEvent(e)})}getDatafromRestMap(e,t,n){let r=this;this.datasets.queryInfo.attributeFilter=this.datasets.queryInfo.attributeFilter||"smid=1",this._queryFeatureBySQL(t,e,this.datasets.queryInfo,null,null,e=>{n(e,"RESTMAP")},e=>{console.log(e),r._fireFailedEvent(e)})}_getFeatureBySQL(e,t,n,r,i){let o,a,s,l={name:t.join().replace(":","@")};Object.assign(l,n),o=new ht(l),s=new Wn({queryParameter:o,datasetNames:t,fromIndex:0,toIndex:1e5,returnContent:!0});let c={eventListeners:{processCompleted:e=>{r&&r(e)},processFailed:e=>{i&&i(e)}}};a=new Hn(e,c),a.processAsync(s)}_queryFeatureBySQL(e,t,n,r,i,o,a,s,l,u){var d,f,h={name:t};Object.assign(h,n),d=new ht(h),r&&(d.fields=r);var p={queryParams:[d]};u&&(p.queryOption=c.ATTRIBUTE),s&&(p.startRecord=s),l&&(p.expectCount=l),i&&(p.prjCoordSys={epsgCode:i}),f=new ni(p),this._queryBySQL(e,f,e=>{"processCompleted"===e.type?o(e):a(e)})}_queryBySQL(e,t,n,r){var i=this,o=new ri(e,{eventListeners:{scope:i,processCompleted:n,processFailed:n},format:i._processFormat(r)});o.processAsync(t)}_processFormat(e){return e||a.GEOJSON}_formatGeoJSON(e){let t=e.features;return t.forEach((e,t)=>{e.properties["index"]=t}),t}_excelData2Feature(e){let t=e.colTitles,n=-1,r=-1;for(let o=0,a=t.length;o<a;o++)za.isXField(t[o])&&(n=o),za.isYField(t[o])&&(r=o);let i=[];for(let o=0,a=e.rows.length;o<a;o++){let t=e.rows[o],a=Number(t[n]),s=Number(t[r]),l={};for(let n in e.colTitles){let t=e.colTitles[n];l[t]=e.rows[o][n]}l["index"]=o+"";let c={type:"Feature",geometry:{type:"Point",coordinates:[a,s]},properties:l};i.push(c)}return i}_fireFailedEvent(e){let t=e?{error:e,message:Fa.i18n("msg_getdatafailed")}:{message:Fa.i18n("msg_getdatafailed")};this.events.triggerEvent("getdatafailed",t)}}class Ga{constructor(e){this.datasets=e.datasets,this.xField=[],this.yField=[],this.grid={top:"50px",bottom:"50px",left:"50px",right:"60px"},this.chartType=e.type||"bar",this._initXYField(e.chartOptions),this.EVENT_TYPES=["getdatafailed"],this.events=new he(this,null,this.EVENT_TYPES)}_initXYField(e){let t=this;e&&e.length>0&&e.forEach((function(e){e.xAxis&&t.xField.push({field:e.xAxis.field,name:e.xAxis.name}),e.yAxis&&t.yField.push({field:e.yAxis.field,name:e.yAxis.name})}))}getDatasetInfo(e){this.createChart=e,this.datasets&&this._checkUrl(this.datasets.url)&&(this.chartModel=new Ua(this.datasets),"iServer"===this.datasets.type?this.chartModel.getDatasetInfo(this._getDatasetInfoSuccess.bind(this)):"iPortal"===this.datasets.type&&this.chartModel.getDataInfoByIptl(this._getDataInfoSuccess.bind(this)),this.chartModel.events.on({getdatafailed:e=>{this.events.triggerEvent("getdatafailed",e)}}))}_getDatasetInfoSuccess(e){let t=this.datasets.url,n=t.indexOf("rest");if(n>0){let r=t.indexOf("/",n+5),i=t.substring(n+5,r),o=t.substring(0,n+4)+"/data";if("maps"===i){let i=t.indexOf("/",r+1),a=t.substring(r+1,i);o=t.substring(0,n+4)+"/maps/"+a,e.result.dataUrl=o,this._getLayerFeatures(e)}else"data"===i&&(e.result.dataUrl=o,this._getDataFeatures(e))}}_getDataInfoSuccess(e,t){let n=this;"RESTMAP"===t?n._getChartDatasFromLayer(e):n._getChartDatas(e)}_getDataFeatures(e){this.chartModel.getDataFeatures(e,this._getChartDatas.bind(this))}_getLayerFeatures(e){this.chartModel.getLayerFeatures(e,this._getChartDatasFromLayer.bind(this))}_getChartDatas(e){if(e){this.features=e.result.features;let t=this.features.features,n={};if(t.length){let e=t[0],r=[],i=[];for(let t in e.properties)r.push(t),i.push(this._getDataType(e.properties[t]));n={features:t,fieldCaptions:r,fieldTypes:i,fieldValues:[]};for(let o in i){let e=[];for(let r in t){let i=t[r],a=n.fieldCaptions[o],s=i.properties[a];e.push(s)}n.fieldValues.push(e)}this.createChart(n)}}}_getChartDatasFromLayer(e){if(e.result.recordsets){let t=e.result.recordsets[0],n=t.features.features;this.features=t.features;let r={};if(n.length){r={features:t.features,fieldCaptions:t.fieldCaptions,fieldTypes:t.fieldTypes,fieldValues:[]};for(let e in r.fieldCaptions){let t=[];for(let i in n){let o=n[i],a=r.fieldCaptions[e],s=o.properties[a];t.push(s)}r.fieldValues.push(t)}this.createChart(r)}}}_createChartOptions(e){return this.calculatedData=this._createChartDatas(e),this.updateChartOptions(this.chartType)}changeType(e){if(e!==this.chartType)return this.chartType=e,this.updateChartOptions(this.chartType)}updateData(e,t,n){this.updateChart=n,this.xField=[],this.yField=[],this._initXYField(t),e.type=e.type||"iServer",e.withCredentials=e.withCredentials||!1,this.datasets=e,this.getDatasetInfo(this._updateDataSuccess.bind(this))}_updateDataSuccess(e){let t=this._createChartOptions(e);this.updateChart(t)}updateChartOptions(e,t){if(this.calculatedData){let n=this.grid,r=this._createChartSeries(this.calculatedData,e),i=[];for(let e in this.calculatedData.XData)i.push({value:this.calculatedData.XData[e].fieldsData});let o={type:"category",name:this.xField[0].name||"X",data:i,nameTextStyle:{color:"#fff",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#eee"}}},a={type:"value",name:this.yFieldName||"Y",data:{},nameTextStyle:{color:"#fff",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#eee"}}},s={formatter:"{b0}: {c0}"},l="#404a59";return t&&(t.grid&&(n=t.grid),t.tooltip&&(s=t.tooltip),t.backgroundColor&&(l=t.backgroundColor)),{backgroundColor:l,grid:n,series:r,xAxis:o,yAxis:a,tooltip:s}}}_createChartDatas(e){let t=0,n=[],r=e.fieldCaptions,i=this;r.forEach((function(e,n){i.xField[0]&&e===i.xField[0].field&&(t=n)})),this.yFieldName="",this.yField.forEach((function(e,t){0!==t&&(i.yFieldName=i.yFieldName+","),i.yFieldName=i.yFieldName+e.name,r.forEach((function(t,r){t===e.field&&n.push(r)}))}));let o=this._getAttrData(e,t),a=[];if(n.length>0)n.forEach((function(t){let n=[];for(let r in e.fieldValues[t])n.push({value:e.fieldValues[t][r]});a.push(n)}));else{let e=[],t=[],n=o.length;for(let r=0;r<n;r++){let n=!1;for(let i=0,a=t.length;i<a;i++)if(o[r].fieldsData===t[i].fieldsData){e[i].value++,t[i].recordIndexs.push(r),n=!0;break}n||o[r].fieldsData&&(t.push({fieldsData:o[r].fieldsData,recordIndexs:[r]}),e.push({value:1}))}o=t,a=[e]}return{XData:o,YData:a}}_getAttrData(e,t){0===t&&(this.xField=[{field:e.fieldCaptions[t],name:e.fieldCaptions[t]}]);let n=[];for(let r=0,i=e.fieldValues[t].length;r<i;r++){let i=e.fieldValues[t][r];n.push({recordIndexs:r,fieldsData:i})}return n}_createChartSeries(e,t){let n=[],r=e.YData;return r.forEach((function(e){let r=0,i=[];for(let t of e)r=t.value,i.push({value:r});let o={type:t,data:i,name:"y"};n.push(o)})),n}_isDate(e){let t=/((^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(10|12|0?[13578])([-\/\._])(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(11|0?[469])([-\/\._])(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(0?2)([-\/\._])(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([3579][26]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][13579][26])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][13579][26])([-\/\._])(0?2)([-\/\._])(29)$))/gi;return t.test(e)}_isNumber(e){let t=Number(e);return 0===t||!isNaN(t)}_getDataType(e){if(null!==e&&void 0!==e&&""!==e){if(this._isDate(e))return"DATE";if(this._isNumber(e))return"NUMBER"}return"STRING"}_checkUrl(e){let t;return t=!(""===e||!this._isMatchUrl(e))&&(!/^http[s]?:\/\/localhost/.test(e)&&!/^http[s]?:\/\/127.0.0.1/.test(e)),t}_isMatchUrl(e){var t=new RegExp("(https?|http|file|ftp)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]");return t.test(e)}getStyle(){let e={grid:this.grid,tooltip:this.tooltip,backgroundColor:this.backgroundColor};return e}getFeatures(){return this.features}setStyle(e){return this.updateChartOptions(this.chartType,e)}}o.Components.ChartViewModel=Ga;class Va{constructor(e,t){this.domID=e,this.chartType=t.type||"bar",t.datasets.type=t.datasets.type||"iServer",t.datasets.withCredentials=t.datasets.withCredentials||!1,this.viewModel=new Ga(t),this._fillDataToView()}onAdd(e){this.addChart=e}_fillDataToView(){let e=new La;this.viewModel.getDatasetInfo(this._createChart.bind(this)),this.viewModel.events.on({getdatafailed:t=>{e.showView(t.message)}})}getStyle(){return this.viewModel.getStyle()}getFeatures(){return this.viewModel.getFeatures()}setStyle(e){let t=this.viewModel.setStyle(e);this._updateChart(t)}changeType(e){if(this.chartType!==e){this.chartType=e;let t=this.viewModel.changeType(e);this._updateChart(t)}}updateData(e,t){let n=this;this.viewModel.updateData(e,t,(function(e){n._updateChart(e),n.addChart&&n.addChart()}))}_createChart(e){this.echart=ja.a.init(document.getElementById(this.domID),null,{renderer:"canvas"});let t=this.viewModel._createChartOptions(e);this.echart.setOption(t),this.addChart&&this.addChart()}_updateChart(e){this.echart&&(this.echart.clear(),this.echart.setOption(e))}}o.Components.Chart=Va;class Wa{constructor(e){e=e||{},this.id=e.id?e.id:null,this.rootContainer=null}getElement(){return this.id&&(this.rootContainer.id=this.id),this.rootContainer}_initView(){}showView(){this.rootContainer.hidden=!1}closeView(){this.rootContainer.hidden=!0}}o.Components.TemplateBase=Wa;class Ha extends Wa{constructor(e){super(e);let t=e.title?e.title:"";this._initView(t)}_initView(e){const t=document.createElement("div");t.setAttribute("class","component-container");const n=document.createElement("div");n.setAttribute("class","component-title");const r=document.createElement("div");r.innerHTML=e,n.appendChild(r),t.appendChild(n);const i=document.createElement("div");return i.setAttribute("class","component-content"),t.appendChild(i),this.content=i,this.rootContainer=t,t}getContentElement(){return this.content}appendContent(e){this.content.appendChild(e)}}o.Components.CommonContainer=Ha;class $a extends Wa{constructor(e){super(e),this._initView(e)}_initView(e){let t=this._createElement("div","component-selecttool");if(e.labelName){let n=this._createElement("label","component-selecttool__lable--describe",t);n.innerHTML=e.labelName}let n=this._createElement("div","component-selecttool--chart",t);n.setAttribute("tabindex","1");let r=this._createElement("div","component-selecttool__name",n);r.title=e.optionsArr[0],r.innerHTML=e.optionsArr[0];let i=this._createElement("div","component-selecttool__trianglebtn--chart",n),o=this._createElement("div","component-triangle-down-img",i),a=this._createElement("div","component-selecttool__content",n),s=this._createElement("div","component-selecttool__content--chart",a),l=this._createElement("div","component-selecttool__scrollarea__content",s);l.setAttribute("tabindex","1"),this.createOptions(l,e.optionsArr),this.optionClickEvent(l,r,e.optionsClickCb),this._selectClickEvent(n,a,o),this.rootContainer=t}createOptions(e,t){for(let n in t){let r=this._createElement("div","component-selecttool__option",e);r.title=t[n],r.innerHTML=t[n]}}_selectClickEvent(e,t,n){e.onclick=function(e){"block"===t.style.display?(t.style.display="none",n.className="component-triangle-down-img"):(t.style.display="block",n.className="triangle-up-img"),e.preventDefault(),e.stopPropagation()},e.onmousedown=function(e){e.target!==this&&(this.focus(),e.preventDefault(),e.stopPropagation())},e.onblur=function(){t.style.display="none",n.className="component-triangle-down-img"}}_createElement(e,t,n){let r=document.createElement(e||"div");return t&&(r.className=t),n&&n.appendChild(r),r}optionClickEvent(e,t,n){for(let r=0;r<e.children.length;r++){let i=e.children[r];i.onclick=function(){t.innerHTML=i.innerHTML,t.title=i.title,i.getAttribute("data-value")&&t.setAttribute("data-value",i.getAttribute("data-value")),n&&n(i)}}}}o.Components.Select=$a;class Ka extends Wa{constructor(e){super(e),this._initView(e)}_initView(e){let t=document.createElement("div");t.className="component-dropdownbox--container";let n=document.createElement("div");n.setAttribute("tabindex","1"),n.className="component-dropdownbox",t.appendChild(n);let r=document.createElement("div");n.appendChild(r),this._createDropDownOption(e[0],r);let i=document.createElement("div");i.className="component-dropdownbox__triangle-btn",n.appendChild(i);let o=document.createElement("div");o.className="component-triangle-down-img",i.appendChild(o);let a={parentEle:n,dropDownContent:["component-dropdownbox__content component-dropdownbox__content--chart","dropDownContent"],scrollareaContent:"component-selecttool__scrollarea__content",optionsArr:e,triangleBtn:o,dropDownTopContainer:r};this._createDropDownBox(a),this.rootContainer=t}_createDropDownBox(e){let t=e.parentEle,n=e.dropDownTopContainer,r=document.createElement("div");r.className=e.dropDownContent[0],t.appendChild(r);let i=document.createElement("div");i.className=e.scrollareaContent,r.appendChild(i);let o=e.optionsArr;for(let l=0;l<o.length;l++)this._createDropDownOption(o[l],i);let a=e.triangleBtn;this._dropDownClickEvent(t,r,a),this._eleOnblur(t,r,a);let s=i.children;for(let l=0;l<s.length;l++)s[l].onclick=function(){n.innerHTML=s[l].outerHTML}}_createDropDownOption(e,t){let n=document.createElement("div");n.className="component-dropdownbox__item";let r=e;r["dataValue"]&&n.setAttribute("data-value",r["dataValue"]),t.appendChild(n);let i=document.createElement("div");i.className="component-dropdownbox__item__img",n.appendChild(i);let o=document.createElement("div");r.icon.className&&(o.className=r.icon.className),r.icon.background&&(o.style.background=r.icon.background),i.appendChild(o);let a=document.createElement("div");a.className="component-dropdownbox__item__title",a.title=r.title,a.innerHTML=r.title,n.appendChild(a);let s=document.createElement("div");s.className="component-dropdownbox__item__remark",s.title=r.remark,s.innerHTML=r.remark,n.appendChild(s)}_dropDownClickEvent(e,t,n){e.onclick=function(e){"block"===t.style.display?(t.style.display="none",n.className="component-triangle-down-img"):(t.style.display="block",n.className="triangle-up-img"),e.preventDefault(),e.stopPropagation()},e.onmousedown=function(e){e.target!==this&&(this.focus(),e.preventDefault(),e.stopPropagation())}}_eleOnblur(e,t,n){e.onblur=function(){t.style.display="none",n.className="component-triangle-down-img"}}_createElement(e,t,n){let r=document.createElement(e||"div");return t&&(r.className=t),n&&n.appendChild(r),r}}o.Components.DropDownBox=Ka;class Xa extends Wa{constructor(e){e=e||{},super(e),e.title=e.title?e.title:"",this._initView(e.title)}_initView(e){const t=document.createElement("div");t.setAttribute("class","component-popcontainer");const n=document.createElement("div");n.setAttribute("class","component-popcontainer__header");const r=document.createElement("label");r.setAttribute("class","component-popcontainer__header__title"),r.innerHTML=e,n.appendChild(r);const i=document.createElement("span");i.setAttribute("class","supermapol-icons-clear component-popcontainer__header__close"),i.onclick=this.closeView.bind(this),t.appendChild(i),t.appendChild(n);const o=document.createElement("div");o.setAttribute("class","component-popcontainer__content"),this.content=o,t.appendChild(o),this.rootContainer=t}appendContent(e){this.content.appendChild(e)}}o.Components.PopContainer=Xa;class Ya extends Xa{constructor(e){e.title=e.title?e.title:"属性",super(e),this.rootContainer.firstChild.hidden=!0,e.attributes=e.attributes?e.attributes:[],this._createAttributesTable(e.attributes)}_createAttributesTable(e){const t=document.createElement("table");t.setAttribute("class","component-popcontainer__content__table");const n=document.createElement("tbody");let r=!0;for(let i in e){const t=document.createElement("tr");r&&t.setAttribute("class","component-popcontainer__content__td--color");const o=document.createElement("td"),a=document.createElement("Span");a.innerHTML=i,o.appendChild(a);const s=document.createElement("td");s.innerHTML=e[i],t.appendChild(o),t.appendChild(s),n.appendChild(t),r=!r}t.appendChild(n),this.appendContent(t)}}o.Components.AttributesPopContainer=Ya;class Ja extends Wa{constructor(e){super(e),this._initView()}_initView(){const e=document.createElement("div");e.setAttribute("class","component-tabpage");const t=document.createElement("ul");this.header=t;const n=document.createElement("div");n.setAttribute("class","component-tabpage__content"),this.content=n,e.appendChild(t),e.appendChild(n),this.rootContainer=e}setTabs(e){this.removeAllTabs(),this.appendTabs(e)}appendTabs(e){for(let t=0;t<e.length;t++){let n=document.createElement("span");n.index=t,n.appendChild(document.createTextNode(e[t].title)),n.onclick=this._changeTabsPage.bind(this);let r=e[t].content;r.index=t,r.hidden=!0,this.header.appendChild(n),this.content.appendChild(r)}this.header.firstChild.setAttribute("class","on"),this.content.firstChild.hidden=!1}removeTab(e){this.header.removeChild(this.header.children[e]),this.content.removeChild(this.content.children[e])}removeAllTabs(){for(let e=this.header.children.length;e>0;e--)this.header.removeChild(this.header.children[e]),this.content.removeChild(this.content.children[e])}_changeTabsPage(e){const t=e.target.index;for(let n=0;n<this.header.children.length;n++)this.header.children[n].setAttribute("class",""),this.content.children[n].hidden=!0,n===t&&(this.header.children[n].setAttribute("class","on"),this.content.children[n].hidden=!1)}}o.Components.IndexTabsPageContainer=Ja;class Qa extends Ja{constructor(e){super(e),this.rootContainer.classList.add("component-citytabpage--noneBoxShadow"),this.config=e.config,Y.isArray(this.config)?(this.header.hidden=!0,this._createCityItem("城市",this.config),this.content.style.border="none"):(this._createTabs(),this.header.onclick=e=>{for(let t=0;t<this.header.children.length;t++)this.header.children[t].setAttribute("class","");e.target.setAttribute("class","on"),this._createCityContent(e.target.innerHTML)})}_createTabs(){if(Y.isArray(this.config))for(let e=0;e<this.config.length;e++){let t="";for(const r in this.config[e])t+=r;let n=document.createElement("li");n.innerHTML=t,this.header.appendChild(n)}else for(const e in this.config){let t=document.createElement("li");t.innerHTML=e,this.header.appendChild(t)}this.header.firstChild.setAttribute("class","on"),this._createCityContent(this.header.firstChild.innerHTML)}_createCityContent(e){for(let n=this.content.children.length;n>0;n--)this.content.removeChild(this.content.children[n-1]);const t=this.config[e];for(let n in t)this._createCityItem(n,t[n])}_createCityItem(e,t){const n=document.createElement("div"),r=document.createElement("div");r.setAttribute("class","component-citytabpag__py-key"),r.innerHTML=e,n.appendChild(r);const i=document.createElement("div");i.setAttribute("class","component-citytabpag__content");for(let o=0;o<t.length;o++){let e=document.createElement("span");e.innerHTML=t[o],i.appendChild(e)}"HOT"===e&&(i.style.width="428px"),n.appendChild(i),this.content.appendChild(n)}}o.Components.CityTabsPage=Qa;class Za extends Wa{constructor(e){super(e),this.navTabsTitle=null,this.navTabsContent=null,e.tabs=e.tabs?e.tabs:[],this._initView(e.tabs)}_initView(e){const t=document.createElement("div");t.setAttribute("class","component-navtabspage");const n=document.createElement("span");n.setAttribute("class","supermapol-icons-close"),n.onclick=this.closeView.bind(this),t.appendChild(n);const r=document.createElement("div");this.navTabsTitle=r,r.setAttribute("class","component-navtabspage__title"),t.appendChild(r);const i=document.createElement("div");this.navTabsContent=i,i.setAttribute("class","component-navtabspage__content"),t.appendChild(i),e.length>0&&this.appendTabs(e),this.rootContainer=t}setTabs(e){this.removeAllTabs(),this.appendTabs(e)}appendTabs(e){for(let t=0;t<e.length;t++){let n=document.createElement("span");n.index=t,n.appendChild(document.createTextNode(e[t].title)),n.onclick=this._changeTabsPage.bind(this);let r=e[t].content;r.index=t,r.hidden=!0,this.navTabsTitle.appendChild(n),this.navTabsContent.appendChild(r)}this.navTabsTitle.firstChild.setAttribute("class","component-navtabspage__tabs--select"),this.navTabsContent.firstChild.hidden=!1}removeTab(e){this.navTabsTitle.removeChild(this.navTabsTitle.children[e]),this.navTabsContent.removeChild(this.navTabsContent.children[e])}removeAllTabs(){for(let e=this.navTabsTitle.children.length;e>0;e--)this.navTabsTitle.removeChild(this.navTabsTitle.children[e]),this.navTabsContent.removeChild(this.navTabsContent.children[e])}_changeTabsPage(e){const t=e.target.index;for(let n=0;n<this.navTabsTitle.children.length;n++)this.navTabsTitle.children[n].setAttribute("class",""),this.navTabsContent.children[n].hidden=!0,n===t&&(this.navTabsTitle.children[n].setAttribute("class","component-navtabspage__tabs--select"),this.navTabsContent.children[n].hidden=!1)}}o.Components.NavTabsPage=Za;class es extends Wa{constructor(e){e=e||{},super(e),this.currentPage=0,this.pageNumberLis=[],this.currentPageNumberLis=[],this.linkageEvent=null,e.contents=e.contents?e.contents:null,e.pageCounts=e.pageCounts?e.pageCounts:0,this._initView(e.contents,e.pageCounts)}setLinkageEvent(e){this.linkageEvent=e}_initView(e,t){const n=document.createElement("div");n.setAttribute("class","component-pagination");const r=document.createElement("div");r.setAttribute("class","component-pagination__content"),n.appendChild(r),this.content=r;const i=document.createElement("ul");i.setAttribute("class","component-pagination__link"),i.onclick=this._changePageEvent.bind(this),n.appendChild(i),this._createLink(i),this.link=i,e&&this.setContent(e),0!==t&&this.setPageLink(t),this.rootContainer=n}setContent(e){this.clearContent(),this.appendContent(e)}appendContent(e){this.content.appendChild(e)}clearContent(){for(let e=this.content.children.length-1;e>=0;e--)this.content.removeChild(this.content.children[e])}setPageLink(e){this.pageNumberLis=[],this.currentPageNumberLis=[],this.clearPageLink(),this._createPageLi(e),this._appendPageLink()}_createPageLi(e){for(let t=0;t<e;t++){const e=document.createElement("li");e.innerHTML=t+1,this.pageNumberLis.push(e)}if(this.pageNumberLis[0].setAttribute("class","active"),this.currentPage=1,e<5)this.currentPageNumberLis=this.pageNumberLis;else for(let t=0;t<5;t++)this.currentPageNumberLis.push(this.pageNumberLis[t])}_appendPageLink(){for(let e=0;e<this.currentPageNumberLis.length;e++)this.link.insertBefore(this.currentPageNumberLis[e],this.link.childNodes[this.link.children.length-2]);for(let e=0;e<this.currentPageNumberLis.length;e++)this.currentPageNumberLis[e].setAttribute("class",""),Number(this.currentPageNumberLis[e].innerHTML)===this.currentPage&&this.currentPageNumberLis[e].setAttribute("class","active");this._changeDisableState(),this.linkageEvent&&this.linkageEvent(this.currentPage)}clearPageLink(){for(let e=this.link.children.length-3;e>1;e--)this.link.removeChild(this.link.children[e])}_createLink(e){for(let t=0;t<4;t++){const n=document.createElement("li");n.setAttribute("class","disable");const r=document.createElement("span");n.appendChild(r),0===t?(r.id="first",r.setAttribute("class","supermapol-icons-first")):1===t?(r.id="prev",r.setAttribute("class","supermapol-icons-prev")):2===t?(r.id="next",r.setAttribute("class","supermapol-icons-next")):3===t&&(r.id="last",r.setAttribute("class","supermapol-icons-last")),e.appendChild(n)}}_changePageEvent(e){const t=e.target;if("disable"===t.parentElement.classList[0])return;let n;if(t.id)n=t.id;else{if(!Number(t.innerHTML))return;n=Number(t.innerHTML)}this._prePageNum(n),this.clearPageLink(),this._appendPageLink()}_changeDisableState(){this.link.children[0].setAttribute("class",""),this.link.children[1].setAttribute("class",""),this.link.children[this.link.children.length-1].setAttribute("class",""),this.link.children[this.link.children.length-2].setAttribute("class",""),1===this.currentPage&&(this.link.children[0].setAttribute("class","disable"),this.link.children[1].setAttribute("class","disable")),this.currentPage===this.pageNumberLis.length&&(this.link.children[this.link.children.length-1].setAttribute("class","disable"),this.link.children[this.link.children.length-2].setAttribute("class","disable"))}_prePageNum(e){const t=[];if(this.currentPage="first"===e?1:"last"===e?this.pageNumberLis.length:"prev"===e?this.currentPage-1:"next"===e?this.currentPage+1:e,this.pageNumberLis.length<=5)for(let n=0;n<this.pageNumberLis.length;n++)t.push(this.pageNumberLis[n]);else if(this.currentPage<=3)for(let n=0;n<5;n++)t.push(this.pageNumberLis[n]);else if(this.currentPage>=this.pageNumberLis.length-3)for(let n=this.pageNumberLis.length-5;n<this.pageNumberLis.length;n++)t.push(this.pageNumberLis[n]);else for(let n=this.currentPage-3;n<=this.currentPage+1;n++)t.push(this.pageNumberLis[n]);t.length>0&&(this.currentPageNumberLis=t)}}o.Components.PaginationContainer=es;let ts={title_dataFlowService:"Data Flow Service",title_distributedAnalysis:"Distributed Analysis",title_clientComputing:"Client Computing",title_dataServiceQuery:"Data Service Query",title_searchCity:"Search city",title_searchLayer:" Search layer",text_input_value_inputDataFlowUrl:"Please enter the data stream service address such as: ws://{serviceRoot}/{dataFlowName}/dataflow/subscribe",text_displayFeaturesInfo:"Display feature information",text_subscribe:"subscribe",text_cancelSubscribe:"unsubscribe",text_densityAnalysis:"Density Analysis",text_CalculateTheValuePerUnitArea:"Calculate the value per unit area within the neighborhood shape",text_option_selectDataset:"Please select a dataset",text_label_dataset:"Dataset",text_option_simplePointDensityAnalysis:"Simple point density analysis",text_option_nuclearDensityAnalysis:"Nuclear density analysis",text_label_analyticalMethod:"Analytical method",text_option_quadrilateral:"Quadrilateral",text_option_hexagon:"hexagon",text_label_meshType:"Mesh type",text_option_notSet:"Not set",text_label_weightField:"Weight field",text_label_gridSizeInMeters:"Grid size",text_label_searchRadius:"Search radius",text_label_queryRange:"Scope of analysis",text_label_areaUnit:"Area unit",text_option_equidistantSegmentation:"Equidistant segmentation",text_option_logarithm:"Logarithm",text_option_equalCountingSegment:"Equal counting segment",text_option_squareRootSegmentation:"Square root segmentation",text_label_thematicMapSegmentationMode:"Thematic map segmentation mode",text_label_thematicMapSegmentationParameters:"Thematic map segmentation parameters",text_option_greenOrangePurpleGradient:"Green orange purple gradient",text_option_greenOrangeRedGradient:"Green orange red gradient",text_option_rainbowGradient:"Rainbow gradient",text_option_spectralGradient:"Spectral gradient",text_option_terrainGradient:"Terrain gradient",text_label_thematicMapColorGradientMode:"Thematic map color gradient mode",text_label_resultLayerName:"Result layer name",text_chooseFile:"Open File",text_isoline:"Isoline",text_extractDiscreteValue:"Extract discrete value generation curve",text_buffer:"Buffer",text_specifyTheDistance:"Specify the distance to create the surrounding area",text_label_analysisLayer:"Analysis layer",text_label_extractField:"Extract field",text_label_extractedValue:"Extracted value",text_label_distanceAttenuation:"Distance attenuation",text_label_gridSize:"gridSize",text_label_bufferRadius:"Buffer radius",text_label_defaultkilometers:"Default 10 kilometers",text_label_kilometer:"kilometer",text_label_unit:"unit",text_retainOriginal:"Retain original object field",text_mergeBuffer:"Merge buffer",text_label_color:"Color",text_label_buffer:"[Buffer]",text_label_isolines:"[Isolines]",text_label_queryRangeTips:"The default is the full range of input data. Example: -74.050, 40.650, -73.850, 40.850",text_label_queryModel:"Query mode",text_label_IDArrayOfFeatures:"ID array of features",text_label_maxFeatures:"The maximum number of features that can be returned",text_label_bufferDistance:"Buffer distance",text_label_queryRange1:"Query range",text_label_spatialQueryMode:"Spatial query mode",text_label_featureFilter:"Feature filter",text_label_geometricObject:"Geometric object",text_label_queryMode:"Query mode",text_label_searchTips:"Search for city locations or layer features",text_label_chooseSearchLayers:"Select a query layer",text_loadSearchCriteria:"Load search criteria",text_saveSearchCriteria:"Save search criteria",btn_analyze:"Analyze",btn_analyzing:"Analyzing",btn_emptyTheAnalysisLayer:"Empty the analysis layer",btn_cancelAnalysis:"Cancel",btn_query:"Query",btn_querying:"Querying",btn_emptyTheRresultLayer:"Clear all result layers","msg_dataReturnedIsEmpty.":"The request is successful and the data returned by the query is empty.",msg_dataFlowServiceHasBeenSubscribed:"The data stream service has been subscribed to.",msg_inputDataFlowUrlFirst:"Please enter the data stream service address first.",msg_datasetOrMethodUnsupport:"This dataset does not support this analysis type. Please reselect the dataset.",msg_selectDataset:"Please select a data set!",msg_setTheWeightField:"Please set the weight field!",msg_theFieldNotSupportAnalysis:"The field you currently select does not support analysis!",msg_resultIsEmpty:"The result of the analysis is empty!",msg_openFileFail:"Failed to open file!",msg_fileTypeUnsupported:"File format is not supported!",msg_fileSizeExceeded:"File size exceeded! The file size should not exceed 10M!",msg_dataInWrongGeoJSONFormat:"Wrong data format! Non standard GEOJSON format data!",msg_dataInWrongFormat:"Wrong data format! Non standard EXCEL, CSV or GEOJSON format data!",msg_searchKeywords:"Search keywords cannot be empty. Please enter your search criteria.",msg_searchGeocodeField:"Did not match the address matching service data!",msg_cityGeocodeField:"The address matching service of the current city is not configured.",msg_getFeatureField:"No related vector features found!",msg_dataflowservicesubscribed:"The data stream service has been subscribed to.",msg_subscribesucceeded:"The data stream service subscription was successful.",msg_crsunsupport:"Does not support the coordinate system of the current map",msg_tilematrixsetunsupport:"Incoming TileMatrixSet is not supported",msg_jsonResolveFiled:"JSON format parsing failure!",msg_requestContentFiled:"Failed to request data through iportal!",msg_getdatafailed:"Failed to get data!"};o.Lang["en-US"]=ts;let ns={title_dataFlowService:"数据流服务",title_distributedAnalysis:"分布式分析",title_clientComputing:"客户端计算",title_dataServiceQuery:"数据服务查询",title_searchCity:"搜索城市",title_searchLayer:"搜索图层",text_input_value_inputDataFlowUrl:"请输入数据流服务地址如:ws://{serviceRoot}/{dataFlowName}/dataflow/subscribe",text_displayFeaturesInfo:"显示要素信息",text_subscribe:"订阅",text_cancelSubscribe:"取消订阅",text_densityAnalysis:"密度分析",text_CalculateTheValuePerUnitArea:"计算点指定邻域形状内的每单位面积量值",text_option_selectDataset:"请选择数据集",text_label_dataset:"数据集",text_option_simplePointDensityAnalysis:"简单点密度分析",text_option_nuclearDensityAnalysis:"核密度分析",text_label_analyticalMethod:"分析方法",text_option_quadrilateral:"四边形",text_option_hexagon:"六边形",text_label_meshType:"网格面类型",text_option_notSet:"未设置",text_label_weightField:"权重字段",text_label_gridSizeInMeters:"网格大小",text_label_searchRadius:"搜索半径",text_label_queryRange:"分析范围",text_label_areaUnit:"面积单位",text_option_equidistantSegmentation:"等距离分段",text_option_logarithm:"对数",text_option_equalCountingSegment:"等计数分段",text_option_squareRootSegmentation:"平方根分段",text_label_thematicMapSegmentationMode:"专题图分段模式",text_label_thematicMapSegmentationParameters:"专题图分段参数",text_option_greenOrangePurpleGradient:"绿橙紫渐变",text_option_greenOrangeRedGradient:"绿橙红渐变",text_option_rainbowGradient:"彩虹渐变",text_option_spectralGradient:"光谱渐变",text_option_terrainGradient:"地形渐变",text_label_thematicMapColorGradientMode:"专题图颜色渐变模式",text_label_resultLayerName:"结果图层名称",text_chooseFile:"选择文件",text_isoline:"等值线",text_extractDiscreteValue:"提取离散值生成曲线",text_buffer:"缓冲区",text_specifyTheDistance:"指定距离创建周边区域",text_label_analysisLayer:"分析图层",text_label_extractField:"提取字段",text_label_extractedValue:"提取值",text_label_distanceAttenuation:"距离衰减",text_label_gridSize:"栅格大小",text_label_bufferRadius:"缓冲半径",text_label_defaultkilometers:"默认10千米",text_option_kilometer:"千米",text_label_unit:"单位",text_retainOriginal:"保留原对象字段属性",text_mergeBuffer:"合并缓冲区",text_label_color:"颜色",text_label_buffer:"[缓冲区]",text_label_isolines:"[等值线]",text_label_queryRangeTips:"默认为输入数据的全幅范围。范例:-74.050,40.650,-73.850,40.850",text_label_IDArrayOfFeatures:"要素 ID 数组",text_label_maxFeatures:"最多可返回的要素数量",text_label_bufferDistance:"缓冲区距离",text_label_queryRange1:"查询范围",text_label_spatialQueryMode:"空间查询模式",text_label_featureFilter:"要素过滤器",text_label_geometricObject:"几何对象",text_label_queryMode:"查询模式",text_label_searchTips:"搜索城市地点或图层要素",text_label_chooseSearchLayers:"选择查询图层",text_loadSearchCriteria:"加载搜索条件",text_saveSearchCriteria:"保存搜索条件",btn_analyze:"分析",btn_analyzing:"分析中",btn_emptyTheAnalysisLayer:"清空分析图层",btn_cancelAnalysis:"取消",btn_query:"查询",btn_querying:"查询中",btn_emptyTheRresultLayer:"清除所有结果图层",msg_dataFlowServiceHasBeenSubscribed:"已订阅该数据流服务。",msg_inputDataFlowUrlFirst:"请先输入数据流服务地址。",msg_datasetOrMethodUnsupport:"该数据集不支持本分析类型,请重新选择数据集",msg_selectDataset:"请选择数据集!",msg_setTheWeightField:"请设置权重字段!",msg_theFieldNotSupportAnalysis:"您当前选择的字段不支持分析!",msg_resultIsEmpty:"分析的结果为空!",msg_dataReturnedIsEmpty:"请求成功,查询返回的数据为空。",msg_openFileFail:"打开文件失败!",msg_fileTypeUnsupported:"不支持该文件格式!",msg_fileSizeExceeded:"文件大小超限!文件大小不得超过 10M!",msg_dataInWrongGeoJSONFormat:"数据格式错误!非标准的 GEOJSON 格式数据!",msg_dataInWrongFormat:"数据格式错误!非标准的 EXCEL, CSV 或 GEOJSON 格式数据!",msg_searchKeywords:"搜索关键字不能为空,请输入搜索条件。",msg_searchGeocodeField:"未匹配到地址匹配服务数据!",msg_cityGeocodeField:"未配置当前城市的地址匹配服务。",msg_getFeatureField:"未查找到相关矢量要素!",msg_dataflowservicesubscribed:"已订阅该数据流服务。",msg_subscribesucceeded:"数据流服务订阅成功。",msg_crsunsupport:"不支持当前地图的坐标系",msg_tilematrixsetunsupport:"不支持传入的TileMatrixSet",msg_jsonResolveFiled:"json格式解析失败!",msg_requestContentFiled:"通过iportal请求数据失败!",msg_getdatafailed:"获取数据失败!"};o.Lang["zh-CN"]=ns;var rs=function(){function e(){this.disposed=!1}return e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},e.prototype.disposeInternal=function(){},e}(),is=rs,os=function(){function e(e){this.propagationStopped,this.type=e,this.target=null}return e.prototype.preventDefault=function(){this.propagationStopped=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();var as=os;function ss(e,t,n){var r,i,o=n||ls,a=0,s=e.length,l=!1;while(a<s)r=a+(s-a>>1),i=+o(e[r],t),i<0?a=r+1:(s=r,l=!i);return l?a:~a}function ls(e,t){return e>t?1:e<t?-1:0}function cs(e,t){return e.indexOf(t)>=0}function us(e,t,n){var r=e.length;if(e[0]<=t)return 0;if(t<=e[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(e[i]<t)return i-1}else if(n<0){for(i=1;i<r;++i)if(e[i]<=t)return i}else for(i=1;i<r;++i){if(e[i]==t)return i;if(e[i]<t)return e[i-1]-t<t-e[i]?i-1:i}return r-1}function ds(e,t,n){while(t<n){var r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function fs(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=0;i<r;i++)e[e.length]=n[i]}function hs(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ps(e,t,n){var r=t||ls;return e.every((function(t,i){if(0===i)return!0;var o=r(e[i-1],t);return!(o>0||n&&0===o)}))}function ms(){return!0}function gs(){return!1}function vs(){}function ys(e){var t,n,r,i=!1;return function(){var o=Array.prototype.slice.call(arguments);return i&&this===r&&hs(o,n)||(i=!0,r=this,n=o,t=e.apply(this,arguments)),t}}var bs="function"===typeof Object.assign?Object.assign:function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(void 0!==o&&null!==o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function _s(e){for(var t in e)delete e[t]}var ws="function"===typeof Object.values?Object.values:function(e){var t=[];for(var n in e)t.push(e[n]);return t};function xs(e){var t;for(t in e)return!1;return!t}var Ss=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cs=function(e){function t(t){var n=e.call(this)||this;return n.eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return Ss(t,e),t.prototype.addEventListener=function(e,t){if(e&&t){var n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);-1===r.indexOf(t)&&r.push(t)}},t.prototype.dispatchEvent=function(e){var t="string"===typeof e?new as(e):e,n=t.type;t.target||(t.target=this.eventTarget_||this);var r,i=this.listeners_&&this.listeners_[n];if(i){var o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});n in o||(o[n]=0,a[n]=0),++o[n];for(var s=0,l=i.length;s<l;++s)if(r="handleEvent"in i[s]?i[s].handleEvent(t):i[s].call(this,t),!1===r||t.propagationStopped){r=!1;break}if(--o[n],0===o[n]){var c=a[n];delete a[n];while(c--)this.removeEventListener(n,vs);delete o[n]}return r}},t.prototype.disposeInternal=function(){this.listeners_&&_s(this.listeners_)},t.prototype.getListeners=function(e){return this.listeners_&&this.listeners_[e]||void 0},t.prototype.hasListener=function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)},t.prototype.removeEventListener=function(e,t){var n=this.listeners_&&this.listeners_[e];if(n){var r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=vs,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}},t}(is),Es=Cs,ks={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Os(e,t,n,r,i){if(r&&r!==e&&(n=n.bind(r)),i){var o=n;n=function(){e.removeEventListener(t,n),o.apply(this,arguments)}}var a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function Ts(e,t,n,r){return Os(e,t,n,r,!0)}function Is(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),_s(e))}var As=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rs=function(e){function t(){var t=e.call(this)||this;return t.revision_=0,t}return As(t,e),t.prototype.changed=function(){++this.revision_,this.dispatchEvent(ks.CHANGE)},t.prototype.getRevision=function(){return this.revision_},t.prototype.on=function(e,t){if(Array.isArray(e)){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=Os(this,e[i],t);return r}return Os(this,e,t)},t.prototype.once=function(e,t){var n;if(Array.isArray(e)){var r=e.length;n=new Array(r);for(var i=0;i<r;++i)n[i]=Ts(this,e[i],t)}else n=Ts(this,e,t);return t.ol_key=n,n},t.prototype.un=function(e,t){var n=t.ol_key;if(n)Ps(n);else if(Array.isArray(e))for(var r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)},t}(Es);function Ps(e){if(Array.isArray(e))for(var t=0,n=e.length;t<n;++t)Is(e[t]);else Is(e)}var Ms=Rs;class Ns extends Ms{constructor(e,t){super(e,t),this.options=t||{},this.url=e,this.dispatchEvent({type:"initialized",value:this})}}var Ls={PROPERTYCHANGE:"propertychange"};function Ds(){return function(){throw new Error("Unimplemented abstract method.")}()}var js=0;function Fs(e){return e.ol_uid||(e.ol_uid=String(++js))}var Bs="6.4.3",qs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zs=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.key=n,i.oldValue=r,i}return qs(t,e),t}(as),Us=function(e){function t(t){var n=e.call(this)||this;return Fs(n),n.values_=null,void 0!==t&&n.setProperties(t),n}return qs(t,e),t.prototype.get=function(e){var t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},t.prototype.getProperties=function(){return this.values_&&bs({},this.values_)||{}},t.prototype.hasProperties=function(){return!!this.values_},t.prototype.notify=function(e,t){var n;n=Vs(e),this.dispatchEvent(new zs(n,e,t)),n=Ls.PROPERTYCHANGE,this.dispatchEvent(new zs(n,e,t))},t.prototype.set=function(e,t,n){var r=this.values_||(this.values_={});if(n)r[e]=t;else{var i=r[e];r[e]=t,i!==t&&this.notify(e,i)}},t.prototype.setProperties=function(e,t){for(var n in e)this.set(n,e[n],t)},t.prototype.unset=function(e,t){if(this.values_&&e in this.values_){var n=this.values_[e];delete this.values_[e],xs(this.values_)&&(this.values_=null),t||this.notify(e,n)}},t}(Ms),Gs={};function Vs(e){return Gs.hasOwnProperty(e)?Gs[e]:Gs[e]="change:"+e}var Ws=Us,Hs={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"},$s="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",Ks=-1!==$s.indexOf("firefox"),Xs=(-1!==$s.indexOf("safari")&&$s.indexOf("chrom"),-1!==$s.indexOf("webkit")&&-1==$s.indexOf("edge")),Ys=-1!==$s.indexOf("macintosh"),Js="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,Qs="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,Zs="undefined"!==typeof Image&&Image.prototype.decode,el=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(n){}return e}();function tl(e,t,n){var r=n&&n.length?n.shift():Qs?new OffscreenCanvas(e||300,t||300):document.createElement("canvas");return e&&(r.width=e),t&&(r.height=t),r.getContext("2d")}function nl(e,t){var n=t.parentNode;n&&n.replaceChild(e,t)}function rl(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function il(e){while(e.lastChild)e.removeChild(e.lastChild)}function ol(e,t){for(var n=e.childNodes,r=0;1;++r){var i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}var al=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sl=function(e){function t(t){var n=e.call(this)||this,r=t.element;return!r||t.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),n.element=r||null,n.target_=null,n.map_=null,n.listenerKeys=[],t.render&&(n.render=t.render),t.target&&n.setTarget(t.target),n}return al(t,e),t.prototype.disposeInternal=function(){rl(this.element),e.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&rl(this.element);for(var t=0,n=this.listenerKeys.length;t<n;++t)Is(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=e,this.map_){var r=this.target_?this.target_:e.getOverlayContainerStopEvent();r.appendChild(this.element),this.render!==vs&&this.listenerKeys.push(Os(e,Hs.POSTRENDER,this.render,this)),e.render()}},t.prototype.render=function(e){},t.prototype.setTarget=function(e){this.target_="string"===typeof e?document.getElementById(e):e},t}(Ws),ll=sl;var cl={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},ul={};ul[cl.DEGREES]=2*Math.PI*6370997/360,ul[cl.FEET]=.3048,ul[cl.METERS]=1,ul[cl.USFEET]=1200/3937;var dl=cl,fl="ol-hidden",hl="ol-unselectable",pl="ol-control",ml="ol-collapsed",gl=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),vl=["style","variant","weight","size","lineHeight","family"],yl=function(e){var t=e.match(gl);if(!t)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=vl.length;r<i;++r){var o=t[r+1];void 0!==o&&(n[vl[r]]=o)}return n.families=n.family.split(/,\s?/),n},bl=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||ul[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}(),_l=bl;function wl(e,t,n){return Math.min(Math.max(e,t),n)}var xl=function(){var e;return e="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},e}(),Sl=function(){var e;return e="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E},e}();function Cl(e,t,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return El(e,t,n,r)}function El(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o}function kl(e){for(var t=e.length,n=0;n<t;n++){for(var r=n,i=Math.abs(e[n][n]),o=n+1;o<t;o++){var a=Math.abs(e[o][n]);a>i&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l<t;l++)for(var c=-e[l][n]/e[n][n],u=n;u<t+1;u++)n==u?e[l][u]=0:e[l][u]+=c*e[n][u]}for(var d=new Array(t),f=t-1;f>=0;f--){d[f]=e[f][t]/e[f][f];for(var h=f-1;h>=0;h--)e[h][t]-=e[h][f]*d[f]}return d}function Ol(e){return e*Math.PI/180}function Tl(e,t){var n=e%t;return n*t<0?n+t:n}function Il(e,t,n){return e+n*(t-e)}var Al=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rl=6378137,Pl=Math.PI*Rl,Ml=[-Pl,-Pl,Pl,Pl],Nl=[-180,-85,180,85],Ll=function(e){function t(t){return e.call(this,{code:t,units:dl.METERS,extent:Ml,global:!0,worldExtent:Nl,getPointResolution:function(e,t){return e/xl(t[1]/Rl)}})||this}return Al(t,e),t}(_l),Dl=[new Ll("EPSG:3857"),new Ll("EPSG:102100"),new Ll("EPSG:102113"),new Ll("EPSG:900913"),new Ll("urn:ogc:def:crs:EPSG:6.18:3:3857"),new Ll("urn:ogc:def:crs:EPSG::3857"),new Ll("http://www.opengis.net/gml/srs/epsg.xml#3857")];function jl(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=Pl,s=0;s<r;s+=i){o[s]=a*e[s]/180;var l=Rl*Math.log(Math.tan(Math.PI*(+e[s+1]+90)/360));l>a?l=a:l<-a&&(l=-a),o[s+1]=l}return o}function Fl(e,t,n){var r=e.length,i=n>1?n:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(r));for(var a=0;a<r;a+=i)o[a]=180*e[a]/Pl,o[a+1]=360*Math.atan(Math.exp(e[a+1]/Rl))/Math.PI-90;return o}var Bl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ql=6378137,zl=[-180,-90,180,90],Ul=Math.PI*ql/180,Gl=function(e){function t(t,n){return e.call(this,{code:t,units:dl.DEGREES,extent:zl,axisOrientation:n,global:!0,metersPerUnit:Ul,worldExtent:zl})||this}return Bl(t,e),t}(_l),Vl=[new Gl("CRS:84"),new Gl("EPSG:4326","neu"),new Gl("urn:ogc:def:crs:EPSG::4326","neu"),new Gl("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Gl("urn:ogc:def:crs:OGC:1.3:CRS84"),new Gl("urn:ogc:def:crs:OGC:2:84"),new Gl("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Gl("urn:x-ogc:def:crs:EPSG:4326","neu")],Wl={};function Hl(e){return Wl[e]||null}function $l(e,t){Wl[e]=t}var Kl={};function Xl(e,t,n){var r=e.getCode(),i=t.getCode();r in Kl||(Kl[r]={}),Kl[r][i]=n}function Yl(e,t){var n;return e in Kl&&t in Kl[e]&&(n=Kl[e][t]),n}var Jl={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Ql={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16},Zl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ec=function(e){function t(t){var n=this,r="latest"===Bs?Bs:"v"+Bs.split("-")[0],i="Assertion failed. See https://openlayers.org/en/"+r+"/doc/errors/#"+t+" for details.";return n=e.call(this,i)||this,n.code=t,n.name="AssertionError",n.message=i,n}return Zl(t,e),t}(Error),tc=ec;function nc(e,t){if(!e)throw new tc(t)}function rc(e){for(var t=fc(),n=0,r=e.length;n<r;++n)wc(t,e[n]);return t}function ic(e,t,n){var r=Math.min.apply(null,e),i=Math.min.apply(null,t),o=Math.max.apply(null,e),a=Math.max.apply(null,t);return hc(r,i,o,a,n)}function oc(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function ac(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function sc(e,t,n){var r,i;return r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0,i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0,r*r+i*i}function lc(e,t){return uc(e,t[0],t[1])}function cc(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function uc(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function dc(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=t[0],s=t[1],l=Ql.UNKNOWN;return a<n?l|=Ql.LEFT:a>i&&(l|=Ql.RIGHT),s<r?l|=Ql.BELOW:s>o&&(l|=Ql.ABOVE),l===Ql.UNKNOWN&&(l=Ql.INTERSECTING),l}function fc(){return[1/0,1/0,-1/0,-1/0]}function hc(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function pc(e){return hc(1/0,1/0,-1/0,-1/0,e)}function mc(e,t){var n=e[0],r=e[1];return hc(n,r,n,r,t)}function gc(e,t){var n=pc(t);return xc(n,e)}function vc(e,t,n,r,i){var o=pc(i);return Sc(o,e,t,n,r)}function yc(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function bc(e,t,n){return Math.abs(e[0]-t[0])<n&&Math.abs(e[2]-t[2])<n&&Math.abs(e[1]-t[1])<n&&Math.abs(e[3]-t[3])<n}function _c(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function wc(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function xc(e,t){for(var n=0,r=t.length;n<r;++n)wc(e,t[n]);return e}function Sc(e,t,n,r,i){for(;n<r;n+=i)Cc(e,t[n],t[n+1]);return e}function Cc(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function Ec(e,t){var n;return n=t(Oc(e)),n||(n=t(Tc(e)),n||(n=t(Lc(e)),n||(n=t(Nc(e)),n||!1)))}function kc(e){var t=0;return Fc(e)||(t=Dc(e)*Pc(e)),t}function Oc(e){return[e[0],e[1]]}function Tc(e){return[e[2],e[1]]}function Ic(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function Ac(e,t){var n;return t===Jl.BOTTOM_LEFT?n=Oc(e):t===Jl.BOTTOM_RIGHT?n=Tc(e):t===Jl.TOP_LEFT?n=Nc(e):t===Jl.TOP_RIGHT?n=Lc(e):nc(!1,13),n}function Rc(e,t,n,r,i){var o=t*r[0]/2,a=t*r[1]/2,s=Math.cos(n),l=Math.sin(n),c=o*s,u=o*l,d=a*s,f=a*l,h=e[0],p=e[1],m=h-c+f,g=h-c-f,v=h+c-f,y=h+c+f,b=p-u-d,_=p-u+d,w=p+u+d,x=p+u-d;return hc(Math.min(m,g,v,y),Math.min(b,_,w,x),Math.max(m,g,v,y),Math.max(b,_,w,x),i)}function Pc(e){return e[3]-e[1]}function Mc(e,t,n){var r=n||fc();return jc(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):pc(r),r}function Nc(e){return[e[0],e[3]]}function Lc(e){return[e[2],e[3]]}function Dc(e){return e[2]-e[0]}function jc(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function Fc(e){return e[2]<e[0]||e[3]<e[1]}function Bc(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function qc(e,t){var n=(e[2]-e[0])/2*(t-1),r=(e[3]-e[1])/2*(t-1);e[0]-=n,e[2]+=n,e[1]-=r,e[3]+=r}function zc(e,t,n){var r=!1,i=dc(e,t),o=dc(e,n);if(i===Ql.INTERSECTING||o===Ql.INTERSECTING)r=!0;else{var a=e[0],s=e[1],l=e[2],c=e[3],u=t[0],d=t[1],f=n[0],h=n[1],p=(h-d)/(f-u),m=void 0,g=void 0;o&Ql.ABOVE&&!(i&Ql.ABOVE)&&(m=f-(h-c)/p,r=m>=a&&m<=l),r||!(o&Ql.RIGHT)||i&Ql.RIGHT||(g=h-(f-l)*p,r=g>=s&&g<=c),r||!(o&Ql.BELOW)||i&Ql.BELOW||(m=f-(h-s)/p,r=m>=a&&m<=l),r||!(o&Ql.LEFT)||i&Ql.LEFT||(g=h-(f-a)*p,r=g>=s&&g<=c)}return r}function Uc(e,t,n,r){var i=[];if(r>1)for(var o=e[2]-e[0],a=e[3]-e[1],s=0;s<r;++s)i.push(e[0]+o*s/r,e[1],e[2],e[1]+a*s/r,e[2]-o*s/r,e[3],e[0],e[3]-a*s/r);else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);for(var l=[],c=[],u=(s=0,i.length);s<u;s+=2)l.push(i[s]),c.push(i[s+1]);return ic(l,c,n)}function Gc(e,t){var n=t.getExtent(),r=Ic(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){var i=Dc(n),o=Math.floor((r[0]-n[0])/i),a=o*i;e[0]-=a,e[2]-=a}return e}var Vc={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},Wc=6371008.8;function Hc(e,t,n){var r=n||Wc,i=Ol(e[1]),o=Ol(t[1]),a=(o-i)/2,s=Ol(t[0]-e[0])/2,l=Math.sin(a)*Math.sin(a)+Math.sin(s)*Math.sin(s)*Math.cos(i)*Math.cos(o);return 2*r*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function $c(e,t,n){var r=void 0!==n?e.toFixed(n):""+e,i=r.indexOf(".");return i=-1===i?r.length:i,i>t?r:new Array(1+t-i).join("0")+r}function Kc(e,t){for(var n=(""+e).split("."),r=(""+t).split("."),i=0;i<Math.max(n.length,r.length);i++){var o=parseInt(n[i]||"0",10),a=parseInt(r[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}function Xc(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function Yc(e,t,n){var r=Tl(t+180,360)-180,i=Math.abs(3600*r),o=n||0,a=Math.pow(10,o),s=Math.floor(i/3600),l=Math.floor((i-3600*s)/60),c=i-3600*s-60*l;return c=Math.ceil(c*a)/a,c>=60&&(c=0,l+=1),l>=60&&(l=0,s+=1),s+"° "+$c(l,2)+"′ "+$c(c,2,o)+"″"+(0==r?"":" "+e.charAt(r<0?1:0))}function Jc(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function Qc(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function Zc(e,t){return e[0]*=t,e[1]*=t,e}function eu(e,t){if(t.canWrapX()){var n=Dc(t.getExtent()),r=tu(e,t,n);r&&(e[0]-=r*n)}return e}function tu(e,t,n){var r=t.getExtent(),i=0;if(t.canWrapX()&&(e[0]<r[0]||e[0]>r[2])){var o=n||Dc(r);i=Math.floor((e[0]-r[0])/o)}return i}function nu(e,t,n){var r;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];r=t}else r=e.slice();return r}function ru(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r<i;++r)t[r]=e[r];e=t}return e}function iu(e){$l(e.getCode(),e),Xl(e,e,nu)}function ou(e){e.forEach(iu)}function au(e){return"string"===typeof e?Hl(e):e||null}function su(e,t,n,r){var i;e=au(e);var o=e.getPointResolutionFunc();if(o){if(i=o(t,n),r&&r!==e.getUnits()){var a=e.getMetersPerUnit();a&&(i=i*a/ul[r])}}else{var s=e.getUnits();if(s==dl.DEGREES&&!r||r==dl.DEGREES)i=t;else{var l=pu(e,au("EPSG:4326")),c=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];c=l(c,c,2);var u=Hc(c.slice(0,2),c.slice(2,4)),d=Hc(c.slice(4,6),c.slice(6,8));i=(u+d)/2;a=r?ul[r]:e.getMetersPerUnit();void 0!==a&&(i/=a)}}return i}function lu(e){ou(e),e.forEach((function(t){e.forEach((function(e){t!==e&&Xl(t,e,nu)}))}))}function cu(e,t,n,r){e.forEach((function(e){t.forEach((function(t){Xl(e,t,n),Xl(t,e,r)}))}))}function uu(e,t){return e?"string"===typeof e?au(e):e:au(t)}function du(e){return function(t,n,r){for(var i=t.length,o=void 0!==r?r:2,a=void 0!==n?n:new Array(i),s=0;s<i;s+=o){var l=e([t[s],t[s+1]]);a[s]=l[0],a[s+1]=l[1];for(var c=o-1;c>=2;--c)a[s+c]=t[s+c]}return a}}function fu(e,t,n,r){var i=au(e),o=au(t);Xl(i,o,du(n)),Xl(o,i,du(r))}function hu(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();if(e.getCode()===t.getCode())return n;var r=pu(e,t);return r===nu&&n}function pu(e,t){var n=e.getCode(),r=t.getCode(),i=Yl(n,r);return i||(i=ru),i}function mu(e,t){var n=au(e),r=au(t);return pu(n,r)}function gu(e,t,n){var r=mu(t,n);return r(e,void 0,e.length)}function vu(e,t,n,r){var i=mu(t,n);return Uc(e,i,void 0,r)}var yu=null;function bu(){return yu}function _u(e,t){return yu?gu(e,t,yu):e}function wu(e,t){return yu?gu(e,yu,t):e}function xu(e,t){return yu?vu(e,t,yu):e}function Su(e,t){return yu?vu(e,yu,t):e}function Cu(e,t,n){return function(r){var i,o,a=r[0],s=r[1];if(e.canWrapX()){var l=e.getExtent(),c=Dc(l);o=tu(r,e,c),o&&(a-=o*c),a=wl(a,l[0],l[2]),s=wl(s,l[1],l[3]),i=n([a,s])}else i=n(r);return o&&t.canWrapX()&&(i[0]+=o*Dc(t.getExtent())),i}}function Eu(){lu(Dl),lu(Vl),cu(Vl,Dl,jl,Fl)}Eu();var ku=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ou="units",Tu={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},Iu=[1,2,5],Au=25.4/.28;(function(e){function t(t){var n=this,r=t||{},i=void 0!==r.className?r.className:r.bar?"ol-scale-bar":"ol-scale-line";return n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this,n.innerElement_=document.createElement("div"),n.innerElement_.className=i+"-inner",n.element.className=i+" "+hl,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==r.minWidth?r.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addEventListener(Vs(Ou),n.handleUnitsChanged_),n.setUnits(r.units||Tu.METRIC),n.scaleBar_=r.bar||!1,n.scaleBarSteps_=r.steps||4,n.scaleBarText_=r.text||!1,n.dpi_=r.dpi||void 0,n}ku(t,e),t.prototype.getUnits=function(){return this.get(Ou)},t.prototype.handleUnitsChanged_=function(){this.updateElement_()},t.prototype.setUnits=function(e){this.set(Ou,e)},t.prototype.setDpi=function(e){this.dpi_=e},t.prototype.updateElement_=function(){var e=this.viewState_;if(e){var t=e.center,n=e.projection,r=this.getUnits(),i=r==Tu.DEGREES?dl.DEGREES:dl.METERS,o=su(n,e.resolution,t,i),a=this.minWidth_*(this.dpi_||Au)/Au,s=a*o,l="";if(r==Tu.DEGREES){var c=ul[dl.DEGREES];s*=c,s<c/60?(l="″",o*=3600):s<c?(l="′",o*=60):l="°"}else r==Tu.IMPERIAL?s<.9144?(l="in",o/=.0254):s<1609.344?(l="ft",o/=.3048):(l="mi",o/=1609.344):r==Tu.NAUTICAL?(o/=1852,l="nm"):r==Tu.METRIC?s<.001?(l="μm",o*=1e6):s<1?(l="mm",o*=1e3):s<1e3?l="m":(l="km",o/=1e3):r==Tu.US?s<.9144?(l="in",o*=39.37):s<1609.344?(l="ft",o/=.30480061):(l="mi",o/=1609.3472):nc(!1,33);var u,d,f,h,p=3*Math.floor(Math.log(a*o)/Math.log(10));while(1){f=Math.floor(p/3);var m=Math.pow(10,f);if(u=Iu[(p%3+3)%3]*m,d=Math.round(u/o),isNaN(d))return this.element.style.display="none",void(this.renderedVisible_=!1);if(d>=a)break;++p}h=this.scaleBar_?this.createScaleBar(d,u,l):u.toFixed(f<0?-f:0)+" "+l,this.renderedHTML_!=h&&(this.innerElement_.innerHTML=h,this.renderedHTML_=h),this.renderedWidth_!=d&&(this.innerElement_.style.width=d+"px",this.renderedWidth_=d),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.createScaleBar=function(e,t,n){for(var r,i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],a=e/this.scaleBarSteps_,s="#ffffff",l=0;l<this.scaleBarSteps_;l++)0===l&&o.push(this.createMarker("absolute",l)),o.push('<div><div class="ol-scale-singlebar" style="width: '+a+"px;background-color: "+s+';"></div>'+this.createMarker("relative",l)+(l%2===0||2===this.scaleBarSteps_?this.createStepText(l,e,!1,t,n):"")+"</div>"),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,e,!0,t,n)),s="#ffffff"===s?"#000000":"#ffffff";r=this.scaleBarText_?'<div class="ol-scale-text" style="width: '+e+'px;">'+i+"</div>":"";var c='<div style="display: flex;">'+r+o.join("")+"</div>";return c},t.prototype.createMarker=function(e,t){var n="absolute"===e?3:-10;return'<div class="ol-scale-step-marker" style="position: '+e+";top: "+n+'px;"></div>'},t.prototype.createStepText=function(e,t,n,r,i){var o=0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100,a=o+(0===e?"":" "+i),s=0===e?-3:t/this.scaleBarSteps_*-1,l=0===e?0:t/this.scaleBarSteps_*2;return'<div class="ol-scale-step-text" style="margin-left: '+s+"px;text-align: "+(0===e?"left":"center")+"; min-width: "+l+"px;left: "+(n?t+"px":"unset")+';">'+a+"</div>"},t.prototype.getScaleForResolution=function(){var e=su(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center),t=this.dpi_||Au,n=this.viewState_.projection.getMetersPerUnit(),r=39.37;return parseFloat(e.toString())*n*r*t},t.prototype.render=function(e){var t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}})(ll);var Ru=new Array(6);function Pu(){return[1,0,0,1,0,0]}function Mu(e){return Lu(e,1,0,0,1,0,0)}function Nu(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=t[0],c=t[1],u=t[2],d=t[3],f=t[4],h=t[5];return e[0]=n*l+i*c,e[1]=r*l+o*c,e[2]=n*u+i*d,e[3]=r*u+o*d,e[4]=n*f+i*h+a,e[5]=r*f+o*h+s,e}function Lu(e,t,n,r,i,o,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e}function Du(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ju(e,t){var n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function Fu(e,t){var n=Math.cos(t),r=Math.sin(t);return Nu(e,Lu(Ru,n,r,-r,n,0,0))}function Bu(e,t,n){return Nu(e,Lu(Ru,t,0,0,n,0,0))}function qu(e,t,n){return Lu(e,t,0,0,n,0,0)}function zu(e,t,n){return Nu(e,Lu(Ru,1,0,0,1,t,n))}function Uu(e,t,n,r,i,o,a,s){var l=Math.sin(o),c=Math.cos(o);return e[0]=r*c,e[1]=i*l,e[2]=-r*l,e[3]=i*c,e[4]=a*r*c-s*r*l+t,e[5]=a*i*l+s*i*c+n,e}function Gu(e,t){var n=Vu(t);nc(0!==n,32);var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5];return e[0]=a/n,e[1]=-i/n,e[2]=-o/n,e[3]=r/n,e[4]=(o*l-a*s)/n,e[5]=-(r*l-i*s)/n,e}function Vu(e){return e[0]*e[3]-e[1]*e[2]}function Wu(e){return"matrix("+e.join(", ")+")"}function Hu(e,t,n,r,i,o){for(var a=o||[],s=0,l=t;l<n;l+=r){var c=e[l],u=e[l+1];a[s++]=i[0]*c+i[2]*u+i[4],a[s++]=i[1]*c+i[3]*u+i[5]}return o&&a.length!=s&&(a.length=s),a}function $u(e,t,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),c=Math.sin(i),u=o[0],d=o[1],f=0,h=t;h<n;h+=r){var p=e[h]-u,m=e[h+1]-d;s[f++]=u+p*l-m*c,s[f++]=d+p*c+m*l;for(var g=h+2;g<h+r;++g)s[f++]=e[g]}return a&&s.length!=f&&(s.length=f),s}function Ku(e,t,n,r,i,o,a,s){for(var l=s||[],c=a[0],u=a[1],d=0,f=t;f<n;f+=r){var h=e[f]-c,p=e[f+1]-u;l[d++]=c+i*h,l[d++]=u+o*p;for(var m=f+2;m<f+r;++m)l[d++]=e[m]}return s&&l.length!=d&&(l.length=d),l}function Xu(e,t,n,r,i,o,a){for(var s=a||[],l=0,c=t;c<n;c+=r){s[l++]=e[c]+i,s[l++]=e[c+1]+o;for(var u=c+2;u<c+r;++u)s[l++]=e[u]}return a&&s.length!=l&&(s.length=l),s}var Yu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ju=Pu(),Qu=function(e){function t(){var t=e.call(this)||this;return t.extent_=fc(),t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=ys((function(e,t,n){if(!n)return this.getSimplifiedGeometry(t);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)})),t}return Yu(t,e),t.prototype.simplifyTransformed=function(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)},t.prototype.clone=function(){return Ds()},t.prototype.closestPointXY=function(e,t,n,r){return Ds()},t.prototype.containsXY=function(e,t){var n=this.getClosestPoint([e,t]);return n[0]===e&&n[1]===t},t.prototype.getClosestPoint=function(e,t){var n=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],n,1/0),n},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return Ds()},t.prototype.getExtent=function(e){if(this.extentRevision_!=this.getRevision()){var t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&pc(t),this.extentRevision_=this.getRevision()}return Bc(this.extent_,e)},t.prototype.rotate=function(e,t){Ds()},t.prototype.scale=function(e,t,n){Ds()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return Ds()},t.prototype.getType=function(){return Ds()},t.prototype.applyTransform=function(e){Ds()},t.prototype.intersectsExtent=function(e){return Ds()},t.prototype.translate=function(e,t){Ds()},t.prototype.transform=function(e,t){var n=au(e),r=n.getUnits()==dl.TILE_PIXELS?function(e,r,i){var o=n.getExtent(),a=n.getWorldExtent(),s=Pc(a)/Pc(o);return Uu(Ju,a[0],a[3],s,-s,0,0,0),Hu(e,0,e.length,i,Ju,r),mu(n,t)(e,r,i)}:mu(n,t);return this.applyTransform(r),this},t}(Ws),Zu=Qu,ed={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"},td=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nd=function(e){function t(){var t=e.call(this)||this;return t.layout=ed.XY,t.stride=2,t.flatCoordinates=null,t}return td(t,e),t.prototype.computeExtent=function(e){return vc(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return Ds()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=this.getSimplifiedGeometryInternal(e),n=t.getFlatCoordinates();return n.length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=id(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){Ds()},t.prototype.setLayout=function(e,t,n){var r;if(e)r=id(e);else{for(var i=0;i<n;++i){if(0===t.length)return this.layout=ed.XY,void(this.stride=2);t=t[0]}r=t.length,e=rd(r)}this.layout=e,this.stride=r},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();$u(n,0,n.length,r,e,t,n),this.changed()}},t.prototype.scale=function(e,t,n){var r=t;void 0===r&&(r=e);var i=n;i||(i=Ic(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();Ku(o,0,o.length,a,e,r,i,o),this.changed()}},t.prototype.translate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Xu(n,0,n.length,r,e,t,n),this.changed()}},t}(Zu);function rd(e){var t;return 2==e?t=ed.XY:3==e?t=ed.XYZ:4==e&&(t=ed.XYZM),t}function id(e){var t;return e==ed.XY?t=2:e==ed.XYZ||e==ed.XYM?t=3:e==ed.XYZM&&(t=4),t}function od(e,t,n){var r=e.getFlatCoordinates();if(r){var i=e.getStride();return Hu(r,0,r.length,i,t,n)}return null}var ad=nd;function sd(e,t,n,r){for(var i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function ld(e,t,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)e[t++]=a[s];return t}function cd(e,t,n,r,i){for(var o=i||[],a=0,s=0,l=n.length;s<l;++s){var c=ld(e,t,n[s],r);o[a++]=c,t=c}return o.length=a,o}function ud(e,t,n,r,i){for(var o=i||[],a=0,s=0,l=n.length;s<l;++s){var c=cd(e,t,n[s],r,o[a]);o[a++]=c,t=c[c.length-1]}return o.length=a,o}var dd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fd=function(e){function t(t,n){var r=e.call(this)||this;return r.setCoordinates(t,n),r}return dd(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=El(e,t,i[0],i[1]);if(o<r){for(var a=this.stride,s=0;s<a;++s)n[s]=i[s];return n.length=a,o}return r},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return mc(this.flatCoordinates,e)},t.prototype.getType=function(){return Vc.POINT},t.prototype.intersectsExtent=function(e){return uc(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=sd(this.flatCoordinates,0,e,this.stride),this.changed()},t}(ad),hd=fd,pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),md=function(e){function t(t){var n=e.call(this)||this;if(n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addEventListener(Vs(n.geometryName_),n.handleGeometryChanged_),t)if("function"===typeof t.getSimplifiedGeometry){var r=t;n.setGeometry(r)}else{var i=t;n.setProperties(i)}return n}return pd(t,e),t.prototype.clone=function(){var e=new t(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&e.setGeometry(n.clone());var r=this.getStyle();return r&&e.setStyle(r),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Is(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=Os(e,ks.CHANGE,this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){this.style_=e,this.styleFunction_=e?gd(e):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){this.removeEventListener(Vs(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=e,this.addEventListener(Vs(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},t}(Ws);function gd(e){if("function"===typeof e)return e;var t;if(Array.isArray(e))t=e;else{nc("function"===typeof e.getZIndex,41);var n=e;t=[n]}return function(){return t}}var vd=md,yd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bd=function(e){function t(t){var n=e.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return yd(t,e),t.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(Is),this.changeEventsKeys_.length=0},t.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)this.changeEventsKeys_.push(Os(this.geometries_[e],ks.CHANGE,this.changed,this))},t.prototype.clone=function(){var e=new t(null);return e.setGeometries(this.geometries_),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<sc(this.getExtent(),e,t))return r;for(var i=this.geometries_,o=0,a=i.length;o<a;++o)r=i[o].closestPointXY(e,t,n,r);return r},t.prototype.containsXY=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1},t.prototype.computeExtent=function(e){pc(e);for(var t=this.geometries_,n=0,r=t.length;n<r;++n)_c(e,t[n].getExtent());return e},t.prototype.getGeometries=function(){return _d(this.geometries_)},t.prototype.getGeometriesArray=function(){return this.geometries_},t.prototype.getGeometriesArrayRecursive=function(){for(var e=[],t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],r=this.geometries_,i=!1,o=0,a=r.length;o<a;++o){var s=r[o],l=s.getSimplifiedGeometry(e);n.push(l),l!==s&&(i=!0)}if(i){var c=new t(null);return c.setGeometriesArray(n),c}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this},t.prototype.getType=function(){return Vc.GEOMETRY_COLLECTION},t.prototype.intersectsExtent=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1},t.prototype.isEmpty=function(){return 0===this.geometries_.length},t.prototype.rotate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()},t.prototype.scale=function(e,t,n){var r=n;r||(r=Ic(this.getExtent()));for(var i=this.geometries_,o=0,a=i.length;o<a;++o)i[o].scale(e,t,r);this.changed()},t.prototype.setGeometries=function(e){this.setGeometriesArray(_d(e))},t.prototype.setGeometriesArray=function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()},t.prototype.applyTransform=function(e){for(var t=this.geometries_,n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()},t.prototype.translate=function(e,t){for(var n=this.geometries_,r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()},t.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),e.prototype.disposeInternal.call(this)},t}(Zu);function _d(e){for(var t=[],n=0,r=e.length;n<r;++n)t.push(e[n].clone());return t}var wd=bd,xd=function(){function e(){this.dataProjection=null,this.defaultFeatureProjection=null}return e.prototype.getReadOptions=function(e,t){var n;if(t){var r=t.dataProjection?au(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()===dl.TILE_PIXELS&&(r=au(r),r.setWorldExtent(t.extent)),n={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(n)},e.prototype.adaptOptions=function(e){return bs({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)},e.prototype.getType=function(){return Ds()},e.prototype.readFeature=function(e,t){return Ds()},e.prototype.readFeatures=function(e,t){return Ds()},e.prototype.readGeometry=function(e,t){return Ds()},e.prototype.readProjection=function(e){return Ds()},e.prototype.writeFeature=function(e,t){return Ds()},e.prototype.writeFeatures=function(e,t){return Ds()},e.prototype.writeGeometry=function(e,t){return Ds()},e}(),Sd=xd;function Cd(e,t,n){var r,i=n?au(n.featureProjection):null,o=n?au(n.dataProjection):null;if(r=i&&o&&!hu(i,o)?(t?e.clone():e).transform(t?i:o,t?o:i):e,t&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals),s=function(e){for(var t=0,n=e.length;t<n;++t)e[t]=Math.round(e[t]*a)/a;return e};r===e&&(r=e.clone()),r.applyTransform(s)}return r}var Ed={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},kd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Od=function(e){function t(){return e.call(this)||this}return kd(t,e),t.prototype.getType=function(){return Ed.JSON},t.prototype.readFeature=function(e,t){return this.readFeatureFromObject(Td(e),this.getReadOptions(e,t))},t.prototype.readFeatures=function(e,t){return this.readFeaturesFromObject(Td(e),this.getReadOptions(e,t))},t.prototype.readFeatureFromObject=function(e,t){return Ds()},t.prototype.readFeaturesFromObject=function(e,t){return Ds()},t.prototype.readGeometry=function(e,t){return this.readGeometryFromObject(Td(e),this.getReadOptions(e,t))},t.prototype.readGeometryFromObject=function(e,t){return Ds()},t.prototype.readProjection=function(e){return this.readProjectionFromObject(Td(e))},t.prototype.readProjectionFromObject=function(e){return Ds()},t.prototype.writeFeature=function(e,t){return JSON.stringify(this.writeFeatureObject(e,t))},t.prototype.writeFeatureObject=function(e,t){return Ds()},t.prototype.writeFeatures=function(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))},t.prototype.writeFeaturesObject=function(e,t){return Ds()},t.prototype.writeGeometry=function(e,t){return JSON.stringify(this.writeGeometryObject(e,t))},t.prototype.writeGeometryObject=function(e,t){return Ds()},t}(Sd);function Td(e){if("string"===typeof e){var t=JSON.parse(e);return t||null}return null!==e?e:null}var Id=Od;function Ad(e,t,n,r,i,o,a){var s,l=e[t],c=e[t+1],u=e[n]-l,d=e[n+1]-c;if(0===u&&0===d)s=t;else{var f=((i-l)*u+(o-c)*d)/(u*u+d*d);if(f>1)s=n;else{if(f>0){for(var h=0;h<r;++h)a[h]=Il(e[t+h],e[n+h],f);return void(a.length=r)}s=t}}for(h=0;h<r;++h)a[h]=e[s+h];a.length=r}function Rd(e,t,n,r,i){var o=e[t],a=e[t+1];for(t+=r;t<n;t+=r){var s=e[t],l=e[t+1],c=El(o,a,s,l);c>i&&(i=c),o=s,a=l}return i}function Pd(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];i=Rd(e,t,s,r,i),t=s}return i}function Md(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];i=Pd(e,t,s,r,i),t=s[s.length-1]}return i}function Nd(e,t,n,r,i,o,a,s,l,c,u){if(t==n)return c;var d,f;if(0===i){if(f=El(a,s,e[t],e[t+1]),f<c){for(d=0;d<r;++d)l[d]=e[t+d];return l.length=r,f}return c}var h=u||[NaN,NaN],p=t+r;while(p<n)if(Ad(e,p-r,p,r,a,s,h),f=El(a,s,h[0],h[1]),f<c){for(c=f,d=0;d<r;++d)l[d]=h[d];l.length=r,p+=r}else p+=r*Math.max((Math.sqrt(f)-Math.sqrt(c))/i|0,1);if(o&&(Ad(e,n-r,t,r,a,s,h),f=El(a,s,h[0],h[1]),f<c)){for(c=f,d=0;d<r;++d)l[d]=h[d];l.length=r}return c}function Ld(e,t,n,r,i,o,a,s,l,c,u){for(var d=u||[NaN,NaN],f=0,h=n.length;f<h;++f){var p=n[f];c=Nd(e,t,p,r,i,o,a,s,l,c,d),t=p}return c}function Dd(e,t,n,r,i,o,a,s,l,c,u){for(var d=u||[NaN,NaN],f=0,h=n.length;f<h;++f){var p=n[f];c=Ld(e,t,p,r,i,o,a,s,l,c,d),t=p[p.length-1]}return c}function jd(e,t,n,r,i,o,a){var s=(n-t)/r;if(s<3){for(;t<n;t+=r)o[a++]=e[t],o[a++]=e[t+1];return a}var l=new Array(s);l[0]=1,l[s-1]=1;var c=[t,n-r],u=0;while(c.length>0){for(var d=c.pop(),f=c.pop(),h=0,p=e[f],m=e[f+1],g=e[d],v=e[d+1],y=f+r;y<d;y+=r){var b=e[y],_=e[y+1],w=Cl(b,_,p,m,g,v);w>h&&(u=y,h=w)}h>i&&(l[(u-t)/r]=1,f+r<u&&c.push(f,u),u+r<d&&c.push(u,d))}for(y=0;y<s;++y)l[y]&&(o[a++]=e[t+y*r],o[a++]=e[t+y*r+1]);return a}function Fd(e,t,n,r,i,o,a,s){for(var l=0,c=n.length;l<c;++l){var u=n[l];a=jd(e,t,u,r,i,o,a),s.push(a),t=u}return a}function Bd(e,t){return t*Math.round(e/t)}function qd(e,t,n,r,i,o,a){if(t==n)return a;var s,l,c=Bd(e[t],i),u=Bd(e[t+1],i);t+=r,o[a++]=c,o[a++]=u;do{if(s=Bd(e[t],i),l=Bd(e[t+1],i),t+=r,t==n)return o[a++]=s,o[a++]=l,a}while(s==c&&l==u);while(t<n){var d=Bd(e[t],i),f=Bd(e[t+1],i);if(t+=r,d!=s||f!=l){var h=s-c,p=l-u,m=d-c,g=f-u;h*g==p*m&&(h<0&&m<h||h==m||h>0&&m>h)&&(p<0&&g<p||p==g||p>0&&g>p)?(s=d,l=f):(o[a++]=s,o[a++]=l,c=s,u=l,s=d,l=f)}}return o[a++]=s,o[a++]=l,a}function zd(e,t,n,r,i,o,a,s){for(var l=0,c=n.length;l<c;++l){var u=n[l];a=qd(e,t,u,r,i,o,a),s.push(a),t=u}return a}function Ud(e,t,n,r,i,o,a,s){for(var l=0,c=n.length;l<c;++l){var u=n[l],d=[];a=zd(e,t,u,r,i,o,a,d),s.push(d),t=u[u.length-1]}return a}function Gd(e,t,n,r,i){for(var o,a=[e[t],e[t+1]],s=[];t+r<n;t+=r){if(s[0]=e[t+r],s[1]=e[t+r+1],o=i(a,s),o)return o;a[0]=s[0],a[1]=s[1]}return!1}function Vd(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=t;s<n;s+=r)o[a++]=e.slice(s,s+r);return o.length=a,o}function Wd(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=0,l=n.length;s<l;++s){var c=n[s];o[a++]=Vd(e,t,c,r,o[a]),t=c}return o.length=a,o}function Hd(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=0,l=n.length;s<l;++s){var c=n[s];o[a++]=Wd(e,t,c,r,o[a]),t=c[c.length-1]}return o.length=a,o}function $d(e,t,n,r,i,o,a){var s,l,c=(n-t)/r;if(1===c)s=t;else if(2===c)s=t,l=i;else if(0!==c){for(var u=e[t],d=e[t+1],f=0,h=[0],p=t+r;p<n;p+=r){var m=e[p],g=e[p+1];f+=Math.sqrt((m-u)*(m-u)+(g-d)*(g-d)),h.push(f),u=m,d=g}var v=i*f,y=ss(h,v);y<0?(l=(v-h[-y-2])/(h[-y-1]-h[-y-2]),s=t+(-y-2)*r):s=t+y*r}var b=a>1?a:2,_=o||new Array(b);for(p=0;p<b;++p)_[p]=void 0===s?NaN:void 0===l?e[s+p]:Il(e[s+p],e[s+r+p],l);return _}function Kd(e,t,n,r,i,o){if(n==t)return null;var a;if(i<e[t+r-1])return o?(a=e.slice(t,t+r),a[r-1]=i,a):null;if(e[n-1]<i)return o?(a=e.slice(n-r,n),a[r-1]=i,a):null;if(i==e[t+r-1])return e.slice(t,t+r);var s=t/r,l=n/r;while(s<l){var c=s+l>>1;i<e[(c+1)*r-1]?l=c:s=c+1}var u=e[s*r-1];if(i==u)return e.slice((s-1)*r,(s-1)*r+r);var d=e[(s+1)*r-1],f=(i-u)/(d-u);a=[];for(var h=0;h<r-1;++h)a.push(Il(e[(s-1)*r+h],e[s*r+h],f));return a.push(i),a}function Xd(e,t,n,r,i,o,a){if(a)return Kd(e,t,n[n.length-1],r,i,o);var s;if(i<e[r-1])return o?(s=e.slice(0,r),s[r-1]=i,s):null;if(e[e.length-1]<i)return o?(s=e.slice(e.length-r),s[r-1]=i,s):null;for(var l=0,c=n.length;l<c;++l){var u=n[l];if(t!=u){if(i<e[t+r-1])return null;if(i<=e[u-1])return Kd(e,t,u,r,i,!1);t=u}}return null}function Yd(e,t,n,r,i){var o=Ec(i,(function(i){return!Jd(e,t,n,r,i[0],i[1])}));return!o}function Jd(e,t,n,r,i,o){for(var a=0,s=e[n-r],l=e[n-r+1];t<n;t+=r){var c=e[t],u=e[t+1];l<=o?u>o&&(c-s)*(o-l)-(i-s)*(u-l)>0&&a++:u<=o&&(c-s)*(o-l)-(i-s)*(u-l)<0&&a--,s=c,l=u}return 0!==a}function Qd(e,t,n,r,i,o){if(0===n.length)return!1;if(!Jd(e,t,n[0],r,i,o))return!1;for(var a=1,s=n.length;a<s;++a)if(Jd(e,n[a-1],n[a],r,i,o))return!1;return!0}function Zd(e,t,n,r,i,o){if(0===n.length)return!1;for(var a=0,s=n.length;a<s;++a){var l=n[a];if(Qd(e,t,l,r,i,o))return!0;t=l[l.length-1]}return!1}function ef(e,t,n,r,i){var o=Sc(fc(),e,t,n,r);return!!jc(i,o)&&(!!cc(i,o)||(o[0]>=i[0]&&o[2]<=i[2]||(o[1]>=i[1]&&o[3]<=i[3]||Gd(e,t,n,r,(function(e,t){return zc(i,e,t)})))))}function tf(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){if(ef(e,t,n[o],r,i))return!0;t=n[o]}return!1}function nf(e,t,n,r,i){return!!ef(e,t,n,r,i)||(!!Jd(e,t,n,r,i[0],i[1])||(!!Jd(e,t,n,r,i[0],i[3])||(!!Jd(e,t,n,r,i[2],i[1])||!!Jd(e,t,n,r,i[2],i[3]))))}function rf(e,t,n,r,i){if(!nf(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(var o=1,a=n.length;o<a;++o)if(Yd(e,n[o-1],n[o],r,i)&&!ef(e,n[o-1],n[o],r,i))return!1;return!0}function of(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(rf(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}function af(e,t,n,r){for(var i=e[t],o=e[t+1],a=0,s=t+r;s<n;s+=r){var l=e[s],c=e[s+1];a+=Math.sqrt((l-i)*(l-i)+(c-o)*(c-o)),i=l,o=c}return a}var sf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lf=function(e){function t(t,n){var r=e.call(this)||this;return r.flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return sf(t,e),t.prototype.appendCoordinate=function(e){this.flatCoordinates?fs(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<sc(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Rd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Nd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.forEachSegment=function(e){return Gd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,t){if(this.layout!=ed.XYM&&this.layout!=ed.XYZM)return null;var n=void 0!==t&&t;return Kd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n)},t.prototype.getCoordinates=function(){return Vd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,t){return $d(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)},t.prototype.getLength=function(){return af(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=jd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,ed.XY)},t.prototype.getType=function(){return Vc.LINE_STRING},t.prototype.intersectsExtent=function(e){return ef(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=ld(this.flatCoordinates,0,e,this.stride),this.changed()},t}(ad),cf=lf,uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),df=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(t[0]))i.setCoordinates(t,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,t),i.ends_=r;else{for(var o=i.getLayout(),a=t,s=[],l=[],c=0,u=a.length;c<u;++c){var d=a[c];0===c&&(o=d.getLayout()),fs(s,d.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return uf(t,e),t.prototype.appendLineString=function(e){this.flatCoordinates?fs(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},t.prototype.closestPointXY=function(e,t,n,r){return r<sc(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Pd(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Ld(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.getCoordinateAtM=function(e,t,n){if(this.layout!=ed.XYM&&this.layout!=ed.XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==t&&t,i=void 0!==n&&n;return Xd(this.flatCoordinates,0,this.ends_,this.stride,e,r,i)},t.prototype.getCoordinates=function(){return Wd(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new cf(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[],i=0,o=0,a=t.length;o<a;++o){var s=t[o],l=new cf(e.slice(i,s),n);r.push(l),i=s}return r},t.prototype.getFlatMidpoints=function(){for(var e=[],t=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,a=r.length;o<a;++o){var s=r[o],l=$d(t,n,s,i,.5);fs(e,l),n=s}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Fd(this.flatCoordinates,0,this.ends_,this.stride,e,n,0,r),new t(n,ed.XY,r)},t.prototype.getType=function(){return Vc.MULTI_LINE_STRING},t.prototype.intersectsExtent=function(e){return tf(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=cd(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(ad),ff=df,hf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pf=function(e){function t(t,n){var r=e.call(this)||this;return n&&!Array.isArray(t[0])?r.setFlatCoordinates(n,t):r.setCoordinates(t,n),r}return hf(t,e),t.prototype.appendPoint=function(e){this.flatCoordinates?fs(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e},t.prototype.closestPointXY=function(e,t,n,r){if(r<sc(this.getExtent(),e,t))return r;for(var i=this.flatCoordinates,o=this.stride,a=0,s=i.length;a<s;a+=o){var l=El(e,t,i[a],i[a+1]);if(l<r){r=l;for(var c=0;c<o;++c)n[c]=i[a+c];n.length=o}}return r},t.prototype.getCoordinates=function(){return Vd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new hd(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,t=this.layout,n=this.stride,r=[],i=0,o=e.length;i<o;i+=n){var a=new hd(e.slice(i,i+n),t);r.push(a)}return r},t.prototype.getType=function(){return Vc.MULTI_POINT},t.prototype.intersectsExtent=function(e){for(var t=this.flatCoordinates,n=this.stride,r=0,i=t.length;r<i;r+=n){var o=t[r],a=t[r+1];if(uc(e,o,a))return!0}return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=ld(this.flatCoordinates,0,e,this.stride),this.changed()},t}(ad),mf=pf;function gf(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=a*s-o*l,o=s,a=l}return i/2}function vf(e,t,n,r){for(var i=0,o=0,a=n.length;o<a;++o){var s=n[o];i+=gf(e,t,s,r),t=s}return i}function yf(e,t,n,r){for(var i=0,o=0,a=n.length;o<a;++o){var s=n[o];i+=vf(e,t,s,r),t=s[s.length-1]}return i}var bf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_f=function(e){function t(t,n){var r=e.call(this)||this;return r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===n||Array.isArray(t[0])?r.setCoordinates(t,n):r.setFlatCoordinates(n,t),r}return bf(t,e),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,n,r){return r<sc(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Rd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Nd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.getArea=function(){return gf(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return Vd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[];return n.length=jd(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new t(n,ed.XY)},t.prototype.getType=function(){return Vc.LINEAR_RING},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=ld(this.flatCoordinates,0,e,this.stride),this.changed()},t}(ad),wf=_f;function xf(e,t,n,r,i,o,a){for(var s,l,c,u,d,f,h,p=i[o+1],m=[],g=0,v=n.length;g<v;++g){var y=n[g];for(u=e[y-r],f=e[y-r+1],s=t;s<y;s+=r)d=e[s],h=e[s+1],(p<=f&&h<=p||f<=p&&p<=h)&&(c=(p-f)/(h-f)*(d-u)+u,m.push(c)),u=d,f=h}var b=NaN,_=-1/0;for(m.sort(ls),u=m[0],s=1,l=m.length;s<l;++s){d=m[s];var w=Math.abs(d-u);w>_&&(c=(u+d)/2,Qd(e,t,n,r,c,p)&&(b=c,_=w)),u=d}return isNaN(b)&&(b=i[o]),a?(a.push(b,p,_),a):[b,p,_]}function Sf(e,t,n,r,i){for(var o=[],a=0,s=n.length;a<s;++a){var l=n[a];o=xf(e,t,l,r,i,2*a,o),t=l[l.length-1]}return o}function Cf(e,t,n,r){while(t<n-r){for(var i=0;i<r;++i){var o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function Ef(e,t,n,r){for(var i=!0,o=0;o<r;++o)if(e[t+o]!==e[n-r+o]){i=!1;break}i&&(n-=r);var a=kf(e,t,n,r),s=a-r;s<t&&(s=n-r);var l=a+r;l>=n&&(l=t);var c=e[s],u=e[s+1],d=e[a],f=e[a+1],h=e[l],p=e[l+1],m=d*p+c*f+u*h-(u*d+f*h+c*p);return m<0}function kf(e,t,n,r){for(var i=-1,o=1/0,a=1/0,s=t;s<n;s+=r){var l=e[s],c=e[s+1];c>o||(c==o&&l>=a||(i=s,o=c,a=l))}return i}function Of(e,t,n,r,i){for(var o=void 0!==i&&i,a=0,s=n.length;a<s;++a){var l=n[a],c=Ef(e,t,l,r);if(0===a){if(o&&c||!o&&!c)return!1}else if(o&&!c||!o&&c)return!1;t=l}return!0}function Tf(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(!Of(e,t,s,r,i))return!1;s.length&&(t=s[s.length-1])}return!0}function If(e,t,n,r,i){for(var o=void 0!==i&&i,a=0,s=n.length;a<s;++a){var l=n[a],c=Ef(e,t,l,r),u=0===a?o&&c||!o&&!c:o&&!c||!o&&c;u&&Cf(e,t,l,r),t=l}return t}function Af(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o)t=If(e,t,n[o],r,i);return t}var Rf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pf=function(e){function t(t,n,r){var i=e.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==n&&r?(i.setFlatCoordinates(n,t),i.ends_=r):i.setCoordinates(t,n),i}return Rf(t,e),t.prototype.appendLinearRing=function(e){this.flatCoordinates?fs(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},t.prototype.closestPointXY=function(e,t,n,r){return r<sc(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Pd(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Ld(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Qd(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)},t.prototype.getArea=function(){return vf(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),If(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,Wd(t,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=Ic(this.getExtent());this.flatInteriorPoint_=xf(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new hd(this.getFlatInteriorPoint(),ed.XYM)},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new wf(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new wf(t.slice(i,s),e);r.push(l),i=s}return r},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Of(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=If(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=zd(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new t(n,ed.XY,r)},t.prototype.getType=function(){return Vc.POLYGON},t.prototype.intersectsExtent=function(e){return rf(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=cd(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(ad),Mf=Pf;function Nf(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=[t,n,t,i,r,i,r,n,t,n];return new Pf(o,ed.XY,[o.length])}function Lf(e,t,n,r){for(var i=[],o=fc(),a=0,s=n.length;a<s;++a){var l=n[a];o=vc(e,t,l[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),t=l[l.length-1]}return i}var Df=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jf=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(t[0])){for(var o=i.getLayout(),a=t,s=[],l=[],c=0,u=a.length;c<u;++c){var d=a[c];0===c&&(o=d.getLayout());for(var f=s.length,h=d.getEnds(),p=0,m=h.length;p<m;++p)h[p]+=f;fs(s,d.getFlatCoordinates()),l.push(h)}n=o,t=s,r=l}return void 0!==n&&r?(i.setFlatCoordinates(n,t),i.endss_=r):i.setCoordinates(t,n),i}return Df(t,e),t.prototype.appendPolygon=function(e){var t;if(this.flatCoordinates){var n=this.flatCoordinates.length;fs(this.flatCoordinates,e.getFlatCoordinates()),t=e.getEnds().slice();for(var r=0,i=t.length;r<i;++r)t[r]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,n=new Array(e),r=0;r<e;++r)n[r]=this.endss_[r].slice();return new t(this.flatCoordinates.slice(),this.layout,n)},t.prototype.closestPointXY=function(e,t,n,r){return r<sc(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Md(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Dd(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Zd(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)},t.prototype.getArea=function(){return yf(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Af(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,Hd(t,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=Lf(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Sf(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new mf(this.getFlatInteriorPoints().slice(),ed.XYM)},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Tf(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Af(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Ud(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),n,0,r),new t(n,ed.XY,r)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var n=this.endss_[e-1];t=n[n.length-1]}var r=this.endss_[e].slice(),i=r[r.length-1];if(0!==t)for(var o=0,a=r.length;o<a;++o)r[o]-=t;return new Mf(this.flatCoordinates.slice(t,i),this.layout,r)},t.prototype.getPolygons=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o].slice(),l=s[s.length-1];if(0!==i)for(var c=0,u=s.length;c<u;++c)s[c]-=i;var d=new Mf(t.slice(i,l),e,s);r.push(d),i=l}return r},t.prototype.getType=function(){return Vc.MULTI_POLYGON},t.prototype.intersectsExtent=function(e){return of(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=ud(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},t}(ad),Ff=jf,Bf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qf=function(e){function t(t){var n=this,r=t||{};return n=e.call(this)||this,n.dataProjection=au(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(n.defaultFeatureProjection=au(r.featureProjection)),n.geometryName_=r.geometryName,n.extractGeometryName_=r.extractGeometryName,n}return Bf(t,e),t.prototype.readFeatureFromObject=function(e,t){var n=null;n="Feature"===e["type"]?e:{type:"Feature",geometry:e,properties:null};var r=zf(n["geometry"],t),i=new vd;return this.geometryName_?i.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&i.setGeometryName(n["geometry_name"]),i.setGeometry(r),"id"in n&&i.setId(n["id"]),n["properties"]&&i.setProperties(n["properties"],!0),i},t.prototype.readFeaturesFromObject=function(e,t){var n=e,r=null;if("FeatureCollection"===n["type"]){var i=e;r=[];for(var o=i["features"],a=0,s=o.length;a<s;++a)r.push(this.readFeatureFromObject(o[a],t))}else r=[this.readFeatureFromObject(e,t)];return r},t.prototype.readGeometryFromObject=function(e,t){return zf(e,t)},t.prototype.readProjectionFromObject=function(e){var t,n=e["crs"];return n?"name"==n["type"]?t=au(n["properties"]["name"]):"EPSG"===n["type"]?t=au("EPSG:"+n["properties"]["code"]):nc(!1,36):t=this.dataProjection,t},t.prototype.writeFeatureObject=function(e,t){t=this.adaptOptions(t);var n={type:"Feature",geometry:null,properties:null},r=e.getId();if(void 0!==r&&(n.id=r),!e.hasProperties())return n;var i=e.getProperties(),o=e.getGeometry();return o&&(n.geometry=Xf(o,t),delete i[e.getGeometryName()]),xs(i)||(n.properties=i),n},t.prototype.writeFeaturesObject=function(e,t){t=this.adaptOptions(t);for(var n=[],r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:"FeatureCollection",features:n}},t.prototype.writeGeometryObject=function(e,t){return Xf(e,this.adaptOptions(t))},t}(Id);function zf(e,t){if(!e)return null;var n;switch(e["type"]){case Vc.POINT:n=Gf(e);break;case Vc.LINE_STRING:n=Vf(e);break;case Vc.POLYGON:n=Kf(e);break;case Vc.MULTI_POINT:n=Hf(e);break;case Vc.MULTI_LINE_STRING:n=Wf(e);break;case Vc.MULTI_POLYGON:n=$f(e);break;case Vc.GEOMETRY_COLLECTION:n=Uf(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return Cd(n,!1,t)}function Uf(e,t){var n=e["geometries"].map((function(e){return zf(e,t)}));return new wd(n)}function Gf(e){return new hd(e["coordinates"])}function Vf(e){return new cf(e["coordinates"])}function Wf(e){return new ff(e["coordinates"])}function Hf(e){return new mf(e["coordinates"])}function $f(e){return new Ff(e["coordinates"])}function Kf(e){return new Mf(e["coordinates"])}function Xf(e,t){e=Cd(e,!0,t);var n,r=e.getType();switch(r){case Vc.POINT:n=th(e,t);break;case Vc.LINE_STRING:n=Jf(e,t);break;case Vc.POLYGON:n=nh(e,t);break;case Vc.MULTI_POINT:n=Zf(e,t);break;case Vc.MULTI_LINE_STRING:n=Qf(e,t);break;case Vc.MULTI_POLYGON:n=eh(e,t);break;case Vc.GEOMETRY_COLLECTION:n=Yf(e,t);break;case Vc.CIRCLE:n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+r)}return n}function Yf(e,t){var n=e.getGeometriesArray().map((function(e){var n=bs({},t);return delete n.featureProjection,Xf(e,n)}));return{type:"GeometryCollection",geometries:n}}function Jf(e,t){return{type:"LineString",coordinates:e.getCoordinates()}}function Qf(e,t){return{type:"MultiLineString",coordinates:e.getCoordinates()}}function Zf(e,t){return{type:"MultiPoint",coordinates:e.getCoordinates()}}function eh(e,t){var n;return t&&(n=t.rightHanded),{type:"MultiPolygon",coordinates:e.getCoordinates(n)}}function th(e,t){return{type:"Point",coordinates:e.getCoordinates()}}function nh(e,t){var n;return t&&(n=t.rightHanded),{type:"Polygon",coordinates:e.getCoordinates(n)}}var rh=qf;class ih extends Ns{constructor(e,t){super(e,t)}queryByBounds(e,t,n){var r=this,i=new Jr(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}queryByDistance(e,t,n){var r=this,i=new Zr(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}queryBySQL(e,t,n){var r=this,i=new ri(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}queryByGeometry(e,t,n){var r=this,i=new ti(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}_processParams(e){return e?(e.returnContent=null==e.returnContent||e.returnContent,e.queryParams&&!Vg.isArray(e.queryParams)&&(e.queryParams=[e.queryParams]),e.bounds&&(e.bounds=new Q(e.bounds[0],e.bounds[1],e.bounds[2],e.bounds[3])),e.geometry&&(e.geometry instanceof hd?e.geometry=new re(e.geometry.getCoordinates()[0],e.geometry.getCoordinates()[1]):e.geometry=Vg.toSuperMapGeometry(JSON.parse((new rh).writeGeometry(e.geometry)))),e):{}}_processFormat(e){return e||a.GEOJSON}}class oh extends Ns{constructor(e,t){super(e,t)}getFeaturesByIDs(e,t,n){var r=this,i=new Vn(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}getFeaturesByBounds(e,t,n){var r=this,i=new Fn(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}getFeaturesByBuffer(e,t,n){var r=this,i=new qn(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}getFeaturesBySQL(e,t,n){var r=this,i=new Hn(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}getFeaturesByGeometry(e,t,n){var r=this,i=new Un(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,headers:r.options.headers,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:r._processFormat(n)});i.processAsync(r._processParams(e))}editFeatures(e,t){if(e&&e.dataSourceName&&e.dataSetName){var n=this,r=n.url,i=e.dataSourceName,o=e.dataSetName;r=Y.urlPathAppend(r,"datasources/"+i+"/datasets/"+o);var a=new Kt(r,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,headers:n.options.headers,serverType:n.options.serverType,eventListeners:{processCompleted:t,processFailed:t}});a.processAsync(n._processParams(e))}}_processParams(e){if(!e)return{};var t=this;if(e.returnContent=null==e.returnContent||e.returnContent,e.fromIndex=e.fromIndex?e.fromIndex:0,e.toIndex=e.toIndex?e.toIndex:-1,e.bounds&&(e.bounds=Vg.toSuperMapBounds(e.bounds)),e.geometry&&(e.geometry=Vg.toSuperMapGeometry(JSON.parse((new rh).writeGeometry(e.geometry)))),e.editType&&(e.editType=e.editType.toLowerCase()),e.features){var n=[];Vg.isArray(e.features)?e.features.map((function(e){return n.push(t._createServerFeature(e)),e})):n.push(t._createServerFeature(e.features)),e.features=n}return e}_createServerFeature(e){var t={},n=[],r=[],i=e.getProperties();for(var o in i)o!==e.getGeometryName()&&(n.push(o),r.push(i[o]));return t.fieldNames=n,t.fieldValues=r,e.getId()&&(t.id=e.getId()),t.geometry=Vg.toSuperMapGeometry((new rh).writeFeatureObject(e)),t}_processFormat(e){return e||a.GEOJSON}}var ah=function(){function e(){}return e.prototype.drawCustom=function(e,t,n){},e.prototype.drawGeometry=function(e){},e.prototype.setStyle=function(e){},e.prototype.drawCircle=function(e,t){},e.prototype.drawFeature=function(e,t){},e.prototype.drawGeometryCollection=function(e,t){},e.prototype.drawLineString=function(e,t){},e.prototype.drawMultiLineString=function(e,t){},e.prototype.drawMultiPoint=function(e,t){},e.prototype.drawMultiPolygon=function(e,t){},e.prototype.drawPoint=function(e,t){},e.prototype.drawPolygon=function(e,t){},e.prototype.drawText=function(e,t){},e.prototype.setFillStrokeStyle=function(e,t){},e.prototype.setImageStyle=function(e,t){},e.prototype.setTextStyle=function(e,t){},e}(),sh=ah,lh=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,ch=/^([a-z]*)$|^hsla?\(.*\)$/i;function uh(e){return"string"===typeof e?e:gh(e)}function dh(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var n=getComputedStyle(t).color;return document.body.removeChild(t),n}return""}var fh=function(){var e=1024,t={},n=0;return function(r){var i;if(t.hasOwnProperty(r))i=t[r];else{if(n>=e){var o=0;for(var a in t)0===(3&o++)&&(delete t[a],--n)}i=ph(r),t[r]=i,++n}return i}}();function hh(e){return Array.isArray(e)?e:fh(e)}function ph(e){var t,n,r,i,o;if(ch.exec(e)&&(e=dh(e)),lh.exec(e)){var a=e.length-1,s=void 0;s=a<=4?1:2;var l=4===a||8===a;t=parseInt(e.substr(1+0*s,s),16),n=parseInt(e.substr(1+1*s,s),16),r=parseInt(e.substr(1+2*s,s),16),i=l?parseInt(e.substr(1+3*s,s),16):255,1==s&&(t=(t<<4)+t,n=(n<<4)+n,r=(r<<4)+r,l&&(i=(i<<4)+i)),o=[t,n,r,i/255]}else 0==e.indexOf("rgba(")?(o=e.slice(5,-1).split(",").map(Number),mh(o)):0==e.indexOf("rgb(")?(o=e.slice(4,-1).split(",").map(Number),o.push(1),mh(o)):nc(!1,14);return o}function mh(e){return e[0]=wl(e[0]+.5|0,0,255),e[1]=wl(e[1]+.5|0,0,255),e[2]=wl(e[2]+.5|0,0,255),e[3]=wl(e[3],0,1),e}function gh(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];r!=(0|r)&&(r=r+.5|0);var i=void 0===e[3]?1:e[3];return"rgba("+t+","+n+","+r+","+i+")"}function vh(e){return Array.isArray(e)?gh(e):e}var yh="10px sans-serif",bh="#000",_h="round",wh=[],xh=0,Sh="round",Ch=10,Eh="#000",kh="center",Oh="middle",Th=[0,0,0,0],Ih=1,Ah=new Ws,Rh=new Es;Rh.setSize=function(){console.warn("labelCache is deprecated.")};var Ph,Mh=null,Nh={},Lh=function(){var e,t,n=100,r="32px ",i=["monospace","serif"],o=i.length,a="wmytzilWMYTZIL@#/&?$%10";function s(e,n,s){for(var l=!0,c=0;c<o;++c){var u=i[c];if(t=Fh(e+" "+n+" "+r+u,a),s!=u){var d=Fh(e+" "+n+" "+r+s+","+u,a);l=l&&d!=t}}return!!l}function l(){for(var t=!0,r=Ah.getKeys(),i=0,o=r.length;i<o;++i){var a=r[i];Ah.get(a)<n&&(s.apply(this,a.split("\n"))?(_s(Nh),Mh=null,Ph=void 0,Ah.set(a,n)):(Ah.set(a,Ah.get(a)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var r=yl(t);if(r)for(var i=r.families,o=0,a=i.length;o<a;++o){var c=i[o],u=r.style+"\n"+r.weight+"\n"+c;void 0===Ah.get(u)&&(Ah.set(u,n,!0),s(r.style,r.weight,c)||(Ah.set(u,0,!0),void 0===e&&(e=setInterval(l,32))))}}}(),Dh=function(){var e,t=Nh;return function(n){var r=t[n];if(void 0==r)if(Qs){var i=yl(n),o=jh(n,"Žg"),a=isNaN(Number(i.lineHeight))?1.2:Number(i.lineHeight);Nh[n]=a*(o.actualBoundingBoxAscent+o.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.margin="0 !important",e.style.padding="0 !important",e.style.position="absolute !important",e.style.left="-99999px !important"),e.style.font=n,document.body.appendChild(e),r=e.offsetHeight,t[n]=r,document.body.removeChild(e);return r}}();function jh(e,t){return Mh||(Mh=tl(1,1)),e!=Ph&&(Mh.font=e,Ph=Mh.font),Mh.measureText(t)}function Fh(e,t){return jh(e,t).width}function Bh(e,t,n){if(t in n)return n[t];var r=Fh(e,t);return n[t]=r,r}function qh(e,t,n){for(var r=t.length,i=0,o=0;o<r;++o){var a=Fh(e,t[o]);i=Math.max(i,a),n.push(a)}return i}function zh(e,t,n,r){0!==t&&(e.translate(n,r),e.rotate(t),e.translate(-n,-r))}function Uh(e,t,n,r,i,o,a,s,l,c,u){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,c),e.scale(u[0],u[1]),Gh(r,e)):u[0]<0||u[1]<0?(e.translate(l,c),e.scale(u[0],u[1]),e.drawImage(r,i,o,a,s,0,0,a,s)):e.drawImage(r,i,o,a,s,l,c,a*u[0],s*u[1]),e.restore()}function Gh(e,t){for(var n=e.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}var Vh=null;function Wh(e){return Qs?Wu(e):(Vh||(Vh=tl(1,1).canvas),Vh.style.transform=Wu(e),Vh.style.transform)}var Hh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$h=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l.context_=t,l.pixelRatio_=n,l.extent_=r,l.transform_=i,l.viewRotation_=o,l.squaredTolerance_=a,l.userTransform_=s,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=Pu(),l}return Hh(t,e),t.prototype.drawImages_=function(e,t,n,r){if(this.image_){var i=Hu(e,t,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var c=0,u=i.length;c<u;c+=2){var d=i[c]-this.imageAnchorX_,f=i[c+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var h=d+this.imageAnchorX_,p=f+this.imageAnchorY_;Uu(a,h,p,1,1,l,-h,-p),o.setTransform.apply(o,a),o.translate(h,p),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,f,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=s)}},t.prototype.drawText_=function(e,t,n,r){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=Hu(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);t<n;t+=r){var s=i[t]+this.textOffsetX_,l=i[t+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var c=Uu(this.tmpLocalTransform_,s,l,1,1,a,-s,-l);o.setTransform.apply(o,c),o.translate(s,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}}},t.prototype.moveToLineTo_=function(e,t,n,r,i){var o=this.context_,a=Hu(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),n},t.prototype.drawRings_=function(e,t,n,r){for(var i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t},t.prototype.drawCircle=function(e){if(jc(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=od(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.setTransform=function(e){this.transform_=e},t.prototype.drawGeometry=function(e){var t=e.getType();switch(t){case Vc.POINT:this.drawPoint(e);break;case Vc.LINE_STRING:this.drawLineString(e);break;case Vc.POLYGON:this.drawPolygon(e);break;case Vc.MULTI_POINT:this.drawMultiPoint(e);break;case Vc.MULTI_LINE_STRING:this.drawMultiLineString(e);break;case Vc.MULTI_POLYGON:this.drawMultiPolygon(e);break;case Vc.GEOMETRY_COLLECTION:this.drawGeometryCollection(e);break;case Vc.CIRCLE:this.drawCircle(e);break;default:}},t.prototype.drawFeature=function(e,t){var n=t.getGeometryFunction()(e);n&&jc(this.extent_,n.getExtent())&&(this.setStyle(t),this.drawGeometry(n))},t.prototype.drawGeometryCollection=function(e){for(var t=e.getGeometriesArray(),n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])},t.prototype.drawPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawMultiPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)},t.prototype.drawLineString=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),jc(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var r=e.getFlatMidpoint();this.drawText_(r,0,2,2)}}},t.prototype.drawMultiLineString=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getExtent();if(jc(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,r=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(r,i,o[s],a,!1);n.stroke()}if(""!==this.text_){var c=e.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},t.prototype.drawPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),jc(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var n=e.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),jc(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,n=e.getOrientedFlatCoordinates(),r=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];r=this.drawRings_(n,r,l,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var c=e.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},t.prototype.setContextFillState_=function(e){var t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),t.setLineDash&&(hs(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset)),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:kh;n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,t){if(e){var n=e.getColor();this.fillState_={fillStyle:vh(n||bh)}}else this.fillState_=null;if(t){var r=t.getColor(),i=t.getLineCap(),o=t.getLineDash(),a=t.getLineDashOffset(),s=t.getLineJoin(),l=t.getWidth(),c=t.getMiterLimit();this.strokeState_={lineCap:void 0!==i?i:_h,lineDash:o||wh,lineDashOffset:a||xh,lineJoin:void 0!==s?s:Sh,lineWidth:this.pixelRatio_*(void 0!==l?l:Ih),miterLimit:void 0!==c?c:Ch,strokeStyle:vh(r||Eh)}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){if(e){var t=e.getSize();if(t){var n=e.getAnchor(),r=e.getImage(1),i=e.getOrigin(),o=e.getScaleArray();this.imageAnchorX_=n[0],this.imageAnchorY_=n[1],this.imageHeight_=t[1],this.image_=r,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=[this.pixelRatio_*o[0],this.pixelRatio_*o[1]],this.imageWidth_=t[0]}else this.image_=null}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var t=e.getFill();if(t){var n=t.getColor();this.textFillState_={fillStyle:vh(n||bh)}}else this.textFillState_=null;var r=e.getStroke();if(r){var i=r.getColor(),o=r.getLineCap(),a=r.getLineDash(),s=r.getLineDashOffset(),l=r.getLineJoin(),c=r.getWidth(),u=r.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:_h,lineDash:a||wh,lineDashOffset:s||xh,lineJoin:void 0!==l?l:Sh,lineWidth:void 0!==c?c:Ih,miterLimit:void 0!==u?u:Ch,strokeStyle:vh(i||Eh)}}else this.textStrokeState_=null;var d=e.getFont(),f=e.getOffsetX(),h=e.getOffsetY(),p=e.getRotateWithView(),m=e.getRotation(),g=e.getScaleArray(),v=e.getText(),y=e.getTextAlign(),b=e.getTextBaseline();this.textState_={font:void 0!==d?d:yh,textAlign:void 0!==y?y:kh,textBaseline:void 0!==b?b:Oh},this.text_=void 0!==v?v:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==h?this.pixelRatio_*h:0,this.textRotateWithView_=void 0!==p&&p,this.textRotation_=void 0!==m?m:0,this.textScale_=[this.pixelRatio_*g[0],this.pixelRatio_*g[1]]}else this.text_=""},t}(sh),Kh=$h,Xh={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"},Yh={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},Jh=.5,Qh={Point:up,LineString:sp,Polygon:fp,MultiPoint:dp,MultiLineString:lp,MultiPolygon:cp,GeometryCollection:ap,Circle:np};function Zh(e,t){return parseInt(Fs(e),10)-parseInt(Fs(t),10)}function ep(e,t){var n=tp(e,t);return n*n}function tp(e,t){return Jh*e/t}function np(e,t,n,r){var i=n.getFill(),o=n.getStroke();if(i||o){var a=e.getBuilder(n.getZIndex(),Xh.CIRCLE);a.setFillStrokeStyle(i,o),a.drawCircle(t,r)}var s=n.getText();if(s){var l=e.getBuilder(n.getZIndex(),Xh.TEXT);l.setTextStyle(s,e.addDeclutter(!1)),l.drawText(t,r)}}function rp(e,t,n,r,i,o){var a=!1,s=n.getImage();if(s){var l=s.getImageState();l==Yh.LOADED||l==Yh.ERROR?s.unlistenImageChange(i):(l==Yh.IDLE&&s.load(),l=s.getImageState(),s.listenImageChange(i),a=!0)}return ip(e,t,n,r,o),a}function ip(e,t,n,r,i){var o=n.getGeometryFunction()(t);if(o){var a=o.simplifyTransformed(r,i),s=n.getRenderer();if(s)op(e,a,n,t);else{var l=Qh[a.getType()];l(e,a,n,t)}}}function op(e,t,n,r){if(t.getType()!=Vc.GEOMETRY_COLLECTION){var i=e.getBuilder(n.getZIndex(),Xh.DEFAULT);i.drawCustom(t,r,n.getRenderer())}else for(var o=t.getGeometries(),a=0,s=o.length;a<s;++a)op(e,o[a],n,r)}function ap(e,t,n,r){var i,o,a=t.getGeometriesArray();for(i=0,o=a.length;i<o;++i){var s=Qh[a[i].getType()];s(e,a[i],n,r)}}function sp(e,t,n,r){var i=n.getStroke();if(i){var o=e.getBuilder(n.getZIndex(),Xh.LINE_STRING);o.setFillStrokeStyle(null,i),o.drawLineString(t,r)}var a=n.getText();if(a){var s=e.getBuilder(n.getZIndex(),Xh.TEXT);s.setTextStyle(a,e.addDeclutter(!1)),s.drawText(t,r)}}function lp(e,t,n,r){var i=n.getStroke();if(i){var o=e.getBuilder(n.getZIndex(),Xh.LINE_STRING);o.setFillStrokeStyle(null,i),o.drawMultiLineString(t,r)}var a=n.getText();if(a){var s=e.getBuilder(n.getZIndex(),Xh.TEXT);s.setTextStyle(a,e.addDeclutter(!1)),s.drawText(t,r)}}function cp(e,t,n,r){var i=n.getFill(),o=n.getStroke();if(o||i){var a=e.getBuilder(n.getZIndex(),Xh.POLYGON);a.setFillStrokeStyle(i,o),a.drawMultiPolygon(t,r)}var s=n.getText();if(s){var l=e.getBuilder(n.getZIndex(),Xh.TEXT);l.setTextStyle(s,e.addDeclutter(!1)),l.drawText(t,r)}}function up(e,t,n,r){var i=n.getImage();if(i){if(i.getImageState()!=Yh.LOADED)return;var o=e.getBuilder(n.getZIndex(),Xh.IMAGE);o.setImageStyle(i,e.addDeclutter(!1)),o.drawPoint(t,r)}var a=n.getText();if(a){var s=e.getBuilder(n.getZIndex(),Xh.TEXT);s.setTextStyle(a,e.addDeclutter(!!i)),s.drawText(t,r)}}function dp(e,t,n,r){var i=n.getImage();if(i){if(i.getImageState()!=Yh.LOADED)return;var o=e.getBuilder(n.getZIndex(),Xh.IMAGE);o.setImageStyle(i,e.addDeclutter(!1)),o.drawMultiPoint(t,r)}var a=n.getText();if(a){var s=e.getBuilder(n.getZIndex(),Xh.TEXT);s.setTextStyle(a,e.addDeclutter(!!i)),s.drawText(t,r)}}function fp(e,t,n,r){var i=n.getFill(),o=n.getStroke();if(i||o){var a=e.getBuilder(n.getZIndex(),Xh.POLYGON);a.setFillStrokeStyle(i,o),a.drawPolygon(t,r)}var s=n.getText();if(s){var l=e.getBuilder(n.getZIndex(),Xh.TEXT);l.setTextStyle(s,e.addDeclutter(!1)),l.drawText(t,r)}}function hp(e){var t,n=e.frameState,r=Nu(e.inversePixelTransform.slice(),n.coordinateToPixelTransform),i=ep(n.viewState.resolution,n.pixelRatio),o=bu();return o&&(t=pu(o,n.viewState.projection)),new Kh(e.context,n.pixelRatio,n.extent,r,n.viewState.rotation,i,t)}function pp(e,t){t&&t.clear();for(var n=e.declutterItems,r=n.length-1;r>=0;--r)for(var i=n[r],o=i.items,a=0,s=o.length;a<s;a+=3)t=o[a].renderDeclutter(o[a+1],o[a+2],i.opacity,t);return n.length=0,t}var mp={ADD:"add",REMOVE:"remove"},gp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vp={LENGTH:"length"},yp=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.index=r,i}return gp(t,e),t}(as),bp=function(e){function t(t,n){var r=e.call(this)||this,i=n||{};if(r.unique_=!!i.unique,r.array_=t||[],r.unique_)for(var o=0,a=r.array_.length;o<a;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return gp(t,e),t.prototype.clear=function(){while(this.getLength()>0)this.pop()},t.prototype.extend=function(e){for(var t=0,n=e.length;t<n;++t)this.push(e[t]);return this},t.prototype.forEach=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)e(t[n],n,t)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get(vp.LENGTH)},t.prototype.insertAt=function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new yp(mp.ADD,t,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()},t.prototype.remove=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)},t.prototype.removeAt=function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new yp(mp.REMOVE,t,e)),t},t.prototype.setAt=function(e,t){var n=this.getLength();if(e<n){this.unique_&&this.assertUnique_(t,e);var r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new yp(mp.REMOVE,r,e)),this.dispatchEvent(new yp(mp.ADD,t,e))}else{for(var i=n;i<e;++i)this.insertAt(i,void 0);this.insertAt(e,t)}},t.prototype.updateLength_=function(){this.set(vp.LENGTH,this.array_.length)},t.prototype.assertUnique_=function(e,t){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===e&&n!==t)throw new tc(58)},t}(Ws),_p=bp,wp=n("b55e"),xp=n.n(wp),Sp=function(){function e(e){this.rbush_=new xp.a(e),this.items_={}}return e.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Fs(t)]=n},e.prototype.load=function(e,t){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++){var o=e[r],a=t[r],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};n[r]=s,this.items_[Fs(a)]=s}this.rbush_.load(n)},e.prototype.remove=function(e){var t=Fs(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)},e.prototype.update=function(e,t){var n=this.items_[Fs(t)],r=[n.minX,n.minY,n.maxX,n.maxY];yc(r,e)||(this.remove(t),this.insert(e,t))},e.prototype.getAll=function(){var e=this.rbush_.all();return e.map((function(e){return e.value}))},e.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]},n=this.rbush_.search(t);return n.map((function(e){return e.value}))},e.prototype.forEach=function(e){return this.forEach_(this.getAll(),e)},e.prototype.forEachInExtent=function(e,t){return this.forEach_(this.getInExtent(e),t)},e.prototype.forEach_=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if(n=t(e[r]),n)return n;return n},e.prototype.isEmpty=function(){return xs(this.items_)},e.prototype.clear=function(){this.rbush_.clear(),this.items_={}},e.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return hc(t.minX,t.minY,t.maxX,t.maxY,e)},e.prototype.concat=function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]},e}(),Cp=Sp,Ep={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"},kp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Op=function(e){function t(t){var n=e.call(this)||this;return n.projection_=au(t.projection),n.attributions_=Tp(t.attributions),n.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,n.loading=!1,n.state_=void 0!==t.state?t.state:Ep.READY,n.wrapX_=void 0!==t.wrapX&&t.wrapX,n}return kp(t,e),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolutions=function(){return Ds()},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.getContextOptions=function(){},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=Tp(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(Ws);function Tp(e){return e?Array.isArray(e)?function(t){return e}:"function"===typeof e?e:function(t){return[e]}:null}var Ip=Op,Ap={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature"};function Rp(e,t){return[[-1/0,-1/0,1/0,1/0]]}var Pp=!1;function Mp(e,t,n,r){return function(i,o,a){var s=new XMLHttpRequest;s.open("GET","function"===typeof e?e(i,o,a):e,!0),t.getType()==Ed.ARRAY_BUFFER&&(s.responseType="arraybuffer"),s.withCredentials=Pp,s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){var o=t.getType(),l=void 0;o==Ed.JSON||o==Ed.TEXT?l=s.responseText:o==Ed.XML?(l=s.responseXML,l||(l=(new DOMParser).parseFromString(s.responseText,"application/xml"))):o==Ed.ARRAY_BUFFER&&(l=s.response),l?n.call(this,t.readFeatures(l,{extent:i,featureProjection:a}),t.readProjection(l)):r.call(this)}else r.call(this)}.bind(this),s.onerror=function(){r.call(this)}.bind(this),s.send()}}function Np(e,t){return Mp(e,t,(function(e,t){var n=this;"function"===typeof n.addFeatures&&n.addFeatures(e)}),vs)}var Lp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dp=function(e){function t(t,n){var r=e.call(this,t)||this;return r.feature=n,r}return Lp(t,e),t}(as),jp=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{attributions:r.attributions,projection:void 0,state:Ep.READY,wrapX:void 0===r.wrapX||r.wrapX})||this,n.loader_=vs,n.format_=r.format,n.overlaps_=void 0===r.overlaps||r.overlaps,n.url_=r.url,void 0!==r.loader?n.loader_=r.loader:void 0!==n.url_&&(nc(n.format_,7),n.loader_=Np(n.url_,n.format_)),n.strategy_=void 0!==r.strategy?r.strategy:Rp;var i,o,a=void 0===r.useSpatialIndex||r.useSpatialIndex;return n.featuresRtree_=a?new Cp:null,n.loadedExtentsRtree_=new Cp,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(r.features)?o=r.features:r.features&&(i=r.features,o=i.getArray()),a||void 0!==i||(i=new _p(o)),void 0!==o&&n.addFeaturesInternal(o),void 0!==i&&n.bindFeaturesCollection_(i),n}return Lp(t,e),t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var t=Fs(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new Dp(Ap.ADDFEATURE,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},t.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[Os(t,ks.CHANGE,this.handleFeatureChange_,this),Os(t,Ls.PROPERTYCHANGE,this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t),n&&(nc(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),n},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var t=[],n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=Fs(a);this.addToIndex_(s,a)&&n.push(a)}i=0;for(var l=n.length;i<l;i++){a=n[i],s=Fs(a);this.setupChangeEvents_(s,a);var c=a.getGeometry();if(c){var u=c.getExtent();t.push(u),r.push(a)}else this.nullGeometryFeatures_[s]=a}this.featuresRtree_&&this.featuresRtree_.load(t,r);i=0;for(var d=n.length;i<d;i++)this.dispatchEvent(new Dp(Ap.ADDFEATURE,n[i]))},t.prototype.bindFeaturesCollection_=function(e){var t=!1;this.addEventListener(Ap.ADDFEATURE,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),this.addEventListener(Ap.REMOVEFEATURE,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),e.addEventListener(mp.ADD,function(e){t||(t=!0,this.addFeature(e.element),t=!1)}.bind(this)),e.addEventListener(mp.REMOVE,function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var t in this.featureChangeKeys_){var n=this.featureChangeKeys_[t];n.forEach(Is)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var r in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new Dp(Ap.CLEAR);this.dispatchEvent(i),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,t){var n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){var r=n.getGeometry();return r.intersectsCoordinate(e)?t(n):void 0}))},t.prototype.forEachFeatureInExtent=function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},t.prototype.forEachFeatureIntersectingExtent=function(e,t){return this.forEachFeatureInExtent(e,(function(n){var r=n.getGeometry();if(r.intersectsExtent(e)){var i=t(n);if(i)return i}}))},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray():this.featuresRtree_&&(e=this.featuresRtree_.getAll(),xs(this.nullGeometryFeatures_)||fs(e,ws(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t},t.prototype.getFeaturesInExtent=function(e){return this.featuresRtree_?this.featuresRtree_.getInExtent(e):this.featuresCollection_?this.featuresCollection_.getArray():[]},t.prototype.getClosestFeatureToCoordinate=function(e,t){var n=e[0],r=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=t||ms;return this.featuresRtree_.forEachInExtent(s,(function(e){if(l(e)){var t=e.getGeometry(),c=a;if(a=t.closestPointXY(n,r,o,a),a<c){i=e;var u=Math.sqrt(a);s[0]=n-u,s[1]=r-u,s[2]=n+u,s[3]=r+u}}})),i},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getFeatureByUid=function(e){var t=this.uidIndex_[e];return void 0!==t?t:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var t=e.target,n=Fs(t),r=t.getGeometry();if(r){var i=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(i,t)):this.featuresRtree_&&this.featuresRtree_.update(i,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);var o=t.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[a]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new Dp(Ap.CHANGEFEATURE,t))},t.prototype.hasFeature=function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:Fs(e)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&xs(this.nullGeometryFeatures_)},t.prototype.loadFeatures=function(e,t,n){var r=this.loadedExtentsRtree_,i=this.strategy_(e,t);this.loading=!1;for(var o=function(e,o){var s=i[e],l=r.forEachInExtent(s,(function(e){return cc(e.extent,s)}));l||(a.loader_.call(a,s,t,n),r.insert(s,{extent:s.slice()}),a.loading=a.loader_!==vs)},a=this,s=0,l=i.length;s<l;++s)o(s,l)},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),e.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var t,n=this.loadedExtentsRtree_;n.forEachInExtent(e,(function(n){if(yc(n.extent,e))return t=n,!0})),t&&n.remove(t)},t.prototype.removeFeature=function(e){var t=Fs(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e),this.changed()},t.prototype.removeFeatureInternal=function(e){var t=Fs(e);this.featureChangeKeys_[t].forEach(Is),delete this.featureChangeKeys_[t];var n=e.getId();void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[t],this.dispatchEvent(new Dp(Ap.REMOVEFEATURE,e))},t.prototype.removeFromIdIndex_=function(e){var t=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===e){delete this.idIndex_[n],t=!0;break}return t},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.setUrl=function(e){nc(this.format_,7),this.setLoader(Np(e,this.format_))},t}(Ip),Fp=jp,Bp={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"},qp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zp=function(e){function t(t){var n=e.call(this)||this,r=bs({},t);return r[Bp.OPACITY]=void 0!==t.opacity?t.opacity:1,nc("number"===typeof r[Bp.OPACITY],64),r[Bp.VISIBLE]=void 0===t.visible||t.visible,r[Bp.Z_INDEX]=t.zIndex,r[Bp.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,r[Bp.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,r[Bp.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,r[Bp.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,n.className_=void 0!==r.className?t.className:"ol-layer",delete r.className,n.setProperties(r),n.state_=null,n}return qp(t,e),t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(e){var t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=wl(Math.round(100*this.getOpacity())/100,0,1),t.sourceState=this.getSourceState(),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n?n:!1===t.managed?1/0:0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t},t.prototype.getLayersArray=function(e){return Ds()},t.prototype.getLayerStatesArray=function(e){return Ds()},t.prototype.getExtent=function(){return this.get(Bp.EXTENT)},t.prototype.getMaxResolution=function(){return this.get(Bp.MAX_RESOLUTION)},t.prototype.getMinResolution=function(){return this.get(Bp.MIN_RESOLUTION)},t.prototype.getMinZoom=function(){return this.get(Bp.MIN_ZOOM)},t.prototype.getMaxZoom=function(){return this.get(Bp.MAX_ZOOM)},t.prototype.getOpacity=function(){return this.get(Bp.OPACITY)},t.prototype.getSourceState=function(){return Ds()},t.prototype.getVisible=function(){return this.get(Bp.VISIBLE)},t.prototype.getZIndex=function(){return this.get(Bp.Z_INDEX)},t.prototype.setExtent=function(e){this.set(Bp.EXTENT,e)},t.prototype.setMaxResolution=function(e){this.set(Bp.MAX_RESOLUTION,e)},t.prototype.setMinResolution=function(e){this.set(Bp.MIN_RESOLUTION,e)},t.prototype.setMaxZoom=function(e){this.set(Bp.MAX_ZOOM,e)},t.prototype.setMinZoom=function(e){this.set(Bp.MIN_ZOOM,e)},t.prototype.setOpacity=function(e){nc("number"===typeof e,64),this.set(Bp.OPACITY,e)},t.prototype.setVisible=function(e){this.set(Bp.VISIBLE,e)},t.prototype.setZIndex=function(e){this.set(Bp.Z_INDEX,e)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),e.prototype.disposeInternal.call(this)},t}(Ws),Up=zp,Gp={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Vp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wp=function(e){function t(t){var n=this,r=bs({},t);delete r.source,n=e.call(this,r)||this,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,t.render&&(n.render=t.render),t.map&&n.setMap(t.map),n.addEventListener(Vs(Bp.SOURCE),n.handleSourcePropertyChange_);var i=t.source?t.source:null;return n.setSource(i),n}return Vp(t,e),t.prototype.getLayersArray=function(e){var t=e||[];return t.push(this),t},t.prototype.getLayerStatesArray=function(e){var t=e||[];return t.push(this.getLayerState()),t},t.prototype.getSource=function(){return this.get(Bp.SOURCE)||null},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():Ep.UNDEFINED},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Is(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=Os(e,ks.CHANGE,this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(e){return this.renderer_.getFeatures(e)},t.prototype.render=function(e,t){var n=this.getRenderer();if(n.prepareFrame(e))return n.renderFrame(e,t)},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&(Is(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(Is(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=Os(e,Gp.PRECOMPOSE,(function(e){var t=e,n=t.frameState.layerStatesArray,r=this.getLayerState(!1);nc(!n.some((function(e){return e.layer===r.layer})),67),n.push(r)}),this),this.mapRenderKey_=Os(this,ks.CHANGE,e.render,e),this.changed())},t.prototype.setSource=function(e){this.set(Bp.SOURCE,e)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.setSource(null),e.prototype.disposeInternal.call(this)},t}(Up);function Hp(e,t){if(!e.visible)return!1;var n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;var r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}var $p=Wp;function Kp(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]+2*t,n[1]=e[1]+2*t,n}function Xp(e){return e[0]>0&&e[1]>0}function Yp(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}function Jp(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}var Qp=function(){function e(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Jp(e.scale),this.displacement_=e.displacement}return e.prototype.clone=function(){var t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},e.prototype.getOpacity=function(){return this.opacity_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getDisplacement=function(){return this.displacement_},e.prototype.getAnchor=function(){return Ds()},e.prototype.getImage=function(e){return Ds()},e.prototype.getHitDetectionImage=function(){return Ds()},e.prototype.getPixelRatio=function(e){return 1},e.prototype.getImageState=function(){return Ds()},e.prototype.getImageSize=function(){return Ds()},e.prototype.getHitDetectionImageSize=function(){return Ds()},e.prototype.getOrigin=function(){return Ds()},e.prototype.getSize=function(){return Ds()},e.prototype.setOpacity=function(e){this.opacity_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Jp(e)},e.prototype.listenImageChange=function(e){Ds()},e.prototype.load=function(){Ds()},e.prototype.unlistenImageChange=function(e){Ds()},e}(),Zp=Qp,em=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tm=function(e){function t(t){var n=this,r=void 0!==t.rotateWithView&&t.rotateWithView;return n=e.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==t.rotation?t.rotation:0,scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0]})||this,n.canvas_={},n.hitDetectionCanvas_=null,n.fill_=void 0!==t.fill?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=void 0!==t.radius?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=void 0!==t.angle?t.angle:0,n.stroke_=void 0!==t.stroke?t.stroke:null,n.anchor_=null,n.size_=null,n.imageSize_=null,n.hitDetectionImageSize_=null,n.render(),n}return em(t,e),t.prototype.clone=function(){var e=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return e.setOpacity(this.getOpacity()),e.setScale(this.getScale()),e},t.prototype.getAnchor=function(){return this.anchor_},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionCanvas_){var e=this.createRenderOptions();this.createHitDetectionCanvas_(e)}return this.hitDetectionCanvas_},t.prototype.getImage=function(e){if(!this.canvas_[e||1]){var t=this.createRenderOptions(),n=tl(t.size*e||1,t.size*e||1);this.draw_(t,n,0,0,e||1),this.canvas_[e||1]=n.canvas}return this.canvas_[e||1]},t.prototype.getPixelRatio=function(e){return e},t.prototype.getImageSize=function(){return this.imageSize_},t.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},t.prototype.getImageState=function(){return Yh.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.listenImageChange=function(e){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e){},t.prototype.createRenderOptions=function(){var e,t=_h,n=Sh,r=0,i=null,o=0,a=0;this.stroke_&&(e=this.stroke_.getColor(),null===e&&(e=Eh),e=vh(e),a=this.stroke_.getWidth(),void 0===a&&(a=Ih),i=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset(),n=this.stroke_.getLineJoin(),void 0===n&&(n=Sh),t=this.stroke_.getLineCap(),void 0===t&&(t=_h),r=this.stroke_.getMiterLimit(),void 0===r&&(r=Ch));var s=2*(this.radius_+a)+1;return{strokeStyle:e,strokeWidth:a,size:s,lineCap:t,lineDash:i,lineDashOffset:o,lineJoin:n,miterLimit:r}},t.prototype.render=function(){var e=this.createRenderOptions(),t=tl(e.size,e.size);this.draw_(e,t,0,0,1),this.canvas_[1]=t.canvas;var n=t.canvas.width,r=n,i=this.getDisplacement();this.hitDetectionImageSize_=[e.size,e.size],this.createHitDetectionCanvas_(e),this.anchor_=[n/2-i[0],n/2+i[1]],this.size_=[n,n],this.imageSize_=[r,r]},t.prototype.draw_=function(e,t,n,r,i){var o,a,s;t.setTransform(i,0,0,i,0,0),t.translate(n,r),t.beginPath();var l=this.points_;if(l===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var c=void 0!==this.radius2_?this.radius2_:this.radius_;for(c!==this.radius_&&(l*=2),o=0;o<=l;o++)a=2*o*Math.PI/l-Math.PI/2+this.angle_,s=o%2===0?this.radius_:c,t.lineTo(e.size/2+s*Math.cos(a),e.size/2+s*Math.sin(a))}if(this.fill_){var u=this.fill_.getColor();null===u&&(u=bh),t.fillStyle=vh(u),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,t.setLineDash&&e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke()),t.closePath()},t.prototype.createHitDetectionCanvas_=function(e){if(this.hitDetectionCanvas_=this.getImage(1),this.fill_){var t=this.fill_.getColor(),n=0;if("string"===typeof t&&(t=hh(t)),null===t?n=1:Array.isArray(t)&&(n=4===t.length?t[3]:1),0===n){var r=tl(e.size,e.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(e,r,0,0)}}},t.prototype.drawHitDetectionCanvas_=function(e,t,n,r){t.translate(n,r),t.beginPath();var i=this.points_;if(i===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var o=void 0!==this.radius2_?this.radius2_:this.radius_;o!==this.radius_&&(i*=2);var a=void 0,s=void 0,l=void 0;for(a=0;a<=i;a++)l=2*a*Math.PI/i-Math.PI/2+this.angle_,s=a%2===0?this.radius_:o,t.lineTo(e.size/2+s*Math.cos(l),e.size/2+s*Math.sin(l))}t.fillStyle=bh,t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.stroke()),t.closePath()},t}(Zp),nm=tm,rm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),im=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,displacement:void 0!==r.displacement?r.displacement:[0,0]})||this,n}return rm(t,e),t.prototype.clone=function(){var e=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),displacement:this.getDisplacement().slice()});return e.setOpacity(this.getOpacity()),e.setScale(this.getScale()),e},t.prototype.setRadius=function(e){this.radius_=e,this.render()},t}(nm),om=im,am=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})},e.prototype.getColor=function(){return this.color_},e.prototype.setColor=function(e){this.color_=e},e}(),sm=am,lm=function(){function e(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}return e.prototype.clone=function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},e.prototype.getColor=function(){return this.color_},e.prototype.getLineCap=function(){return this.lineCap_},e.prototype.getLineDash=function(){return this.lineDash_},e.prototype.getLineDashOffset=function(){return this.lineDashOffset_},e.prototype.getLineJoin=function(){return this.lineJoin_},e.prototype.getMiterLimit=function(){return this.miterLimit_},e.prototype.getWidth=function(){return this.width_},e.prototype.setColor=function(e){this.color_=e},e.prototype.setLineCap=function(e){this.lineCap_=e},e.prototype.setLineDash=function(e){this.lineDash_=e},e.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e},e.prototype.setLineJoin=function(e){this.lineJoin_=e},e.prototype.setMiterLimit=function(e){this.miterLimit_=e},e.prototype.setWidth=function(e){this.width_=e},e}(),cm=lm,um=function(){function e(e){var t=e||{};this.geometry_=null,this.geometryFunction_=pm,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}return e.prototype.clone=function(){var t=this.getGeometry();return t&&"object"===typeof t&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.setRenderer=function(e){this.renderer_=e},e.prototype.getGeometry=function(){return this.geometry_},e.prototype.getGeometryFunction=function(){return this.geometryFunction_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(e){this.fill_=e},e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(e){this.image_=e},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.getText=function(){return this.text_},e.prototype.setText=function(e){this.text_=e},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setGeometry=function(e){"function"===typeof e?this.geometryFunction_=e:"string"===typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=pm,this.geometry_=e},e.prototype.setZIndex=function(e){this.zIndex_=e},e}();function dm(e){var t;if("function"===typeof e)t=e;else{var n;if(Array.isArray(e))n=e;else{nc("function"===typeof e.getZIndex,41);var r=e;n=[r]}t=function(){return n}}return t}var fm=null;function hm(e,t){if(!fm){var n=new sm({color:"rgba(255,255,255,0.4)"}),r=new cm({color:"#3399CC",width:1.25});fm=[new um({image:new om({fill:n,stroke:r,radius:5}),fill:n,stroke:r})]}return fm}function pm(e){return e.getGeometry()}var mm=um,gm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vm={RENDER_ORDER:"renderOrder"},ym=function(e){function t(t){var n=this,r=t||{},i=bs({},r);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,n=e.call(this,i)||this,n.declutter_=void 0!==r.declutter&&r.declutter,n.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(r.style),n.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,n.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,n}return gm(t,e),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get(vm.RENDER_ORDER)},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.setRenderOrder=function(e){this.set(vm.RENDER_ORDER,e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:hm,this.styleFunction_=null===e?void 0:dm(this.style_),this.changed()},t}($p),bm=ym,_m={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},wm=[_m.FILL],xm=[_m.STROKE],Sm=[_m.BEGIN_PATH],Cm=[_m.CLOSE_PATH],Em=_m,km=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Om=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.tolerance=t,o.maxExtent=n,o.pixelRatio=i,o.maxLineWidth=0,o.resolution=r,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return km(t,e),t.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))},t.prototype.appendFlatCoordinates=function(e,t,n,r,i,o){var a=this.coordinates.length,s=this.getBufferedMaxExtent();o&&(t+=r);var l,c,u,d=e[t],f=e[t+1],h=this.tmpCoordinate_,p=!0;for(l=t+r;l<n;l+=r)h[0]=e[l],h[1]=e[l+1],u=dc(s,h),u!==c?(p&&(this.coordinates[a++]=d,this.coordinates[a++]=f),this.coordinates[a++]=h[0],this.coordinates[a++]=h[1],p=!1):u===Ql.INTERSECTING?(this.coordinates[a++]=h[0],this.coordinates[a++]=h[1],p=!1):p=!0,d=h[0],f=h[1],c=u;return(i&&p||l===t+r)&&(this.coordinates[a++]=d,this.coordinates[a++]=f),a},t.prototype.drawCustomCoordinates_=function(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatCoordinates(e,t,s,r,!1,!1);i.push(l),t=s}return t},t.prototype.drawCustom=function(e,t,n){this.beginGeometry(e,t);var r,i,o,a,s,l=e.getType(),c=e.getStride(),u=this.coordinates.length;if(l==Vc.MULTI_POLYGON){r=e.getOrientedFlatCoordinates(),a=[];var d=e.getEndss();s=0;for(var f=0,h=d.length;f<h;++f){var p=[];s=this.drawCustomCoordinates_(r,s,d[f],c,p),a.push(p)}this.instructions.push([Em.CUSTOM,u,a,e,n,Hd])}else l==Vc.POLYGON||l==Vc.MULTI_LINE_STRING?(o=[],r=l==Vc.POLYGON?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),s=this.drawCustomCoordinates_(r,0,e.getEnds(),c,o),this.instructions.push([Em.CUSTOM,u,o,e,n,Wd])):l==Vc.LINE_STRING||l==Vc.MULTI_POINT?(r=e.getFlatCoordinates(),i=this.appendFlatCoordinates(r,0,r.length,c,!1,!1),this.instructions.push([Em.CUSTOM,u,i,e,n,Vd])):l==Vc.POINT&&(r=e.getFlatCoordinates(),this.coordinates.push(r[0],r[1]),i=this.coordinates.length,this.instructions.push([Em.CUSTOM,u,i,e,n]));this.endGeometry(t)},t.prototype.beginGeometry=function(e,t){var n=e.getExtent();this.beginGeometryInstruction1_=[Em.BEGIN_GEOMETRY,t,0,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Em.BEGIN_GEOMETRY,t,0,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var e,t=this.hitDetectionInstructions;t.reverse();var n,r,i=t.length,o=-1;for(e=0;e<i;++e)n=t[e],r=n[0],r==Em.END_GEOMETRY?o=e:r==Em.BEGIN_GEOMETRY&&(n[2]=e,ds(this.hitDetectionInstructions,o,e),o=-1)},t.prototype.setFillStrokeStyle=function(e,t){var n=this.state;if(e){var r=e.getColor();n.fillStyle=vh(r||bh)}else n.fillStyle=void 0;if(t){var i=t.getColor();n.strokeStyle=vh(i||Eh);var o=t.getLineCap();n.lineCap=void 0!==o?o:_h;var a=t.getLineDash();n.lineDash=a?a.slice():wh;var s=t.getLineDashOffset();n.lineDashOffset=s||xh;var l=t.getLineJoin();n.lineJoin=void 0!==l?l:Sh;var c=t.getWidth();n.lineWidth=void 0!==c?c:Ih;var u=t.getMiterLimit();n.miterLimit=void 0!==u?u:Ch,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},t.prototype.createFill=function(e){var t=e.fillStyle,n=[Em.SET_FILL_STYLE,t];return"string"!==typeof t&&n.push(!0),n},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[Em.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,t){var n=e.fillStyle;"string"===typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)},t.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!hs(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=l)},t.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var t=[Em.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)},t.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=ac(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;oc(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t}(sh),Tm=Om,Im=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Am=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.declutterGroups_=null,o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o}return Im(t,e),t.prototype.drawCoordinates_=function(e,t,n,r){return this.appendFlatCoordinates(e,t,n,r,!1,!1)},t.prototype.drawPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,r);this.instructions.push([Em.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,this.declutterGroups_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_)]),this.hitDetectionInstructions.push([Em.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t)}},t.prototype.drawMultiPoint=function(e,t){if(this.image_){this.beginGeometry(e,t);var n=e.getFlatCoordinates(),r=e.getStride(),i=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,r);this.instructions.push([Em.DRAW_IMAGE,i,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,this.declutterGroups_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_)]),this.hitDetectionInstructions.push([Em.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,e.prototype.finish.call(this)},t.prototype.setImageStyle=function(e,t){var n=e.getAnchor(),r=e.getSize(),i=e.getHitDetectionImage(),o=e.getImage(this.pixelRatio),a=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroups_=t,this.hitDetectionImage_=i,this.image_=o,this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0]},t}(Tm),Rm=Am,Pm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mm=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return Pm(t,e),t.prototype.drawFlatCoordinates_=function(e,t,n,r){var i=this.coordinates.length,o=this.appendFlatCoordinates(e,t,n,r,!1,!1),a=[Em.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},t.prototype.drawLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([Em.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],Sm);var o=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(xm),this.endGeometry(t)}},t.prototype.drawMultiLineString=function(e,t){var n=this.state,r=n.strokeStyle,i=n.lineWidth;if(void 0!==r&&void 0!==i){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([Em.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],Sm);for(var o=e.getEnds(),a=e.getFlatCoordinates(),s=e.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinates_(a,l,o[c],s);this.hitDetectionInstructions.push(xm),this.endGeometry(t)}},t.prototype.finish=function(){var t=this.state;return void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(xm),this.reverseHitDetectionInstructions(),this.state=null,e.prototype.finish.call(this)},t.prototype.applyStroke=function(t){void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(xm),t.lastStroke=this.coordinates.length),t.lastStroke=0,e.prototype.applyStroke.call(this,t),this.instructions.push(Sm)},t}(Tm),Nm=Mm,Lm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dm=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return Lm(t,e),t.prototype.drawFlatCoordinatess_=function(e,t,n,r){var i=this.state,o=void 0!==i.fillStyle,a=void 0!==i.strokeStyle,s=n.length;this.instructions.push(Sm),this.hitDetectionInstructions.push(Sm);for(var l=0;l<s;++l){var c=n[l],u=this.coordinates.length,d=this.appendFlatCoordinates(e,t,c,r,!0,!a),f=[Em.MOVE_TO_LINE_TO,u,d];this.instructions.push(f),this.hitDetectionInstructions.push(f),a&&(this.instructions.push(Cm),this.hitDetectionInstructions.push(Cm)),t=c}return o&&(this.instructions.push(wm),this.hitDetectionInstructions.push(wm)),a&&(this.instructions.push(xm),this.hitDetectionInstructions.push(xm)),t},t.prototype.drawCircle=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([Em.SET_FILL_STYLE,bh]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([Em.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getFlatCoordinates(),a=e.getStride(),s=this.coordinates.length;this.appendFlatCoordinates(o,0,o.length,a,!1,!1);var l=[Em.CIRCLE,s];this.instructions.push(Sm,l),this.hitDetectionInstructions.push(Sm,l),void 0!==n.fillStyle&&(this.instructions.push(wm),this.hitDetectionInstructions.push(wm)),void 0!==n.strokeStyle&&(this.instructions.push(xm),this.hitDetectionInstructions.push(xm)),this.endGeometry(t)}},t.prototype.drawPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([Em.SET_FILL_STYLE,bh]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([Em.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=e.getEnds(),a=e.getOrientedFlatCoordinates(),s=e.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(t)}},t.prototype.drawMultiPolygon=function(e,t){var n=this.state,r=n.fillStyle,i=n.strokeStyle;if(void 0!==r||void 0!==i){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([Em.SET_FILL_STYLE,bh]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([Em.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=e.getEndss(),a=e.getOrientedFlatCoordinates(),s=e.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinatess_(a,l,o[c],s);this.endGeometry(t)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var n=this.coordinates,r=0,i=n.length;r<i;++r)n[r]=Bd(n[r],t);return e.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(){var e=this.state,t=e.fillStyle;void 0!==t&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(Tm),jm=Dm,Fm={POINT:"point",LINE:"line"};function Bm(e,t,n,r,i){var o,a,s,l,c,u,d,f,h,p,m=n,g=n,v=0,y=0,b=n;for(a=n;a<r;a+=i){var _=t[a],w=t[a+1];void 0!==c&&(h=_-c,p=w-u,l=Math.sqrt(h*h+p*p),void 0!==d&&(y+=s,o=Math.acos((d*h+f*p)/(s*l)),o>e&&(y>v&&(v=y,m=b,g=a),y=0,b=a-i)),s=l,d=h,f=p),c=_,u=w}return y+=l,y>v?[b,a]:[m,g]}var qm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zm={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Um=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.declutterGroups_,o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o}return qm(t,e),t.prototype.finish=function(){var t=e.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},t.prototype.drawText=function(e,t){var n=this.textFillState_,r=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(n||r)){var o,a,s=this.coordinates.length,l=e.getType(),c=null,u=2,d=e.getStride();if(i.placement===Fm.LINE){if(!jc(this.getBufferedMaxExtent(),e.getExtent()))return;var f=void 0;if(c=e.getFlatCoordinates(),l==Vc.LINE_STRING)f=[c.length];else if(l==Vc.MULTI_LINE_STRING)f=e.getEnds();else if(l==Vc.POLYGON)f=e.getEnds().slice(0,1);else if(l==Vc.MULTI_POLYGON){var h=e.getEndss();for(f=[],o=0,a=h.length;o<a;++o)f.push(h[o][0])}this.beginGeometry(e,t);for(var p=i.textAlign,m=0,g=void 0,v=0,y=f.length;v<y;++v){if(void 0==p){var b=Bm(i.maxAngle,c,m,f[v],d);m=b[0],g=b[1]}else g=f[v];for(o=m;o<g;o+=d)this.coordinates.push(c[o],c[o+1]);u=this.coordinates.length,m=f[v];var _=this.declutterGroups_?0===v?this.declutterGroups_[0]:[].concat(this.declutterGroups_[0]):null;this.drawChars_(s,u,_),s=u}this.endGeometry(t)}else{var w=null;switch(i.overflow||(w=[]),l){case Vc.POINT:case Vc.MULTI_POINT:c=e.getFlatCoordinates(),u=c.length;break;case Vc.LINE_STRING:c=e.getFlatMidpoint();break;case Vc.CIRCLE:c=e.getCenter();break;case Vc.MULTI_LINE_STRING:c=e.getFlatMidpoints(),d=2,u=c.length;break;case Vc.POLYGON:c=e.getFlatInteriorPoint(),i.overflow||w.push(c[2]/this.resolution),d=3;break;case Vc.MULTI_POLYGON:var x=e.getFlatInteriorPoints();for(c=[],o=0,a=x.length;o<a;o+=3)i.overflow||w.push(x[o+2]/this.resolution),c.push(x[o],x[o+1]);if(d=2,u=c.length,0==u)return;break;default:}u=this.appendFlatCoordinates(c,0,u,d,!1,!1),this.saveTextStates_(),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);var S=i.padding;if(S!=Th&&(i.scale[0]<0||i.scale[1]<0)){var C=i.padding[0],E=i.padding[1],k=i.padding[2],O=i.padding[3];i.scale[0]<0&&(E=-E,O=-O),i.scale[1]<0&&(C=-C,k=-k),S=[C,E,k,O]}var T=this.pixelRatio;this.instructions.push([Em.DRAW_IMAGE,s,u,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,S==Th?Th:S.map((function(e){return e*T})),!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,w]);var I=1/T;this.hitDetectionInstructions.push([Em.DRAW_IMAGE,s,u,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[I,I],NaN,S,!!i.backgroundFill,!!i.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,w]),this.endGeometry(t)}}},t.prototype.saveTextStates_=function(){var e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||kh,textBaseline:t.textBaseline||Oh,scale:t.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},t.prototype.drawChars_=function(e,t,n){var r=this.textStrokeState_,i=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,c=zm[i.textBaseline],u=this.textOffsetY_*l,d=this.text_,f=r?r.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([Em.DRAW_CHARS,e,t,c,n,i.overflow,s,i.maxAngle,l,u,o,f*l,d,a,1]),this.hitDetectionInstructions.push([Em.DRAW_CHARS,e,t,c,n,i.overflow,s,i.maxAngle,1,u,o,f,d,a,1/l])},t.prototype.setTextStyle=function(e,t){var n,r,i;if(e){this.declutterGroups_=t;var o=e.getFill();o?(r=this.textFillState_,r||(r={},this.textFillState_=r),r.fillStyle=vh(o.getColor()||bh)):(r=null,this.textFillState_=r);var a=e.getStroke();if(a){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);var s=a.getLineDash(),l=a.getLineDashOffset(),c=a.getWidth(),u=a.getMiterLimit();i.lineCap=a.getLineCap()||_h,i.lineDash=s?s.slice():wh,i.lineDashOffset=void 0===l?xh:l,i.lineJoin=a.getLineJoin()||Sh,i.lineWidth=void 0===c?Ih:c,i.miterLimit=void 0===u?Ch:u,i.strokeStyle=vh(a.getColor()||Eh)}else i=null,this.textStrokeState_=i;n=this.textState_;var d=e.getFont()||yh;Lh(d);var f=e.getScaleArray();n.overflow=e.getOverflow(),n.font=d,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.textBaseline=e.getTextBaseline()||Oh,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||Th,n.scale=void 0===f?[1,1]:f;var h=e.getOffsetX(),p=e.getOffsetY(),m=e.getRotateWithView(),g=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===h?0:h,this.textOffsetY_=void 0===p?0:p,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===g?0:g,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Fs(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.textBaseline||"?"),this.fillKey_=r?"string"==typeof r.fillStyle?r.fillStyle:"|"+Fs(r.fillStyle):""}else this.text_=""},t}(Tm),Gm=Um,Vm={Circle:jm,Default:Tm,Image:Rm,LineString:Nm,Polygon:jm,Text:Gm},Wm=function(){function e(e,t,n,r,i){this.declutter_=i,this.declutterGroups_=null,this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}return e.prototype.addDeclutter=function(e){var t=null;return this.declutter_&&(e?(t=this.declutterGroups_,t[0][0]++):(t=[[1]],this.declutterGroups_=t)),t},e.prototype.finish=function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var n=this.buildersByZIndex_[t];for(var r in n){var i=n[r].finish();e[t][r]=i}}return e},e.prototype.getBuilder=function(e,t){var n=void 0!==e?e.toString():"0",r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);var i=r[t];if(void 0===i){var o=Vm[t];i=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i}return i},e}(),Hm=Wm,$m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Km=function(e){function t(t){var n=e.call(this)||this;return n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=t,n}return $m(t,e),t.prototype.getFeatures=function(e){return Ds()},t.prototype.prepareFrame=function(e){return Ds()},t.prototype.renderFrame=function(e,t){return Ds()},t.prototype.loadedTileCallback=function(e,t,n){e[t]||(e[t]={}),e[t][n.tileCoord.toString()]=n},t.prototype.createLoadedTileFinder=function(e,t,n){return function(r,i){var o=this.loadedTileCallback.bind(this,n,r);return e.forEachLoadedTile(t,r,i,o)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){},t.prototype.getDataAtPixel=function(e,t,n){return Ds()},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(e){var t=e.target;t.getState()===Yh.LOADED&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(e){var t=e.getState();return t!=Yh.LOADED&&t!=Yh.ERROR&&e.addEventListener(ks.CHANGE,this.boundHandleImageChange_),t==Yh.IDLE&&(e.load(),t=e.getState()),t==Yh.LOADED},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e.getVisible()&&e.getSourceState()==Ep.READY&&e.changed()},t}(Ms),Xm=Km,Ym=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=r,o.context=i,o}return Ym(t,e),t}(as),Qm=Jm,Zm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eg=function(e){function t(t){var n=e.call(this,t)||this;return n.container=null,n.renderedResolution,n.tempTransform=Pu(),n.pixelTransform=Pu(),n.inversePixelTransform=Pu(),n.context=null,n.containerReused=!1,n}return Zm(t,e),t.prototype.useContainer=function(e,t,n){var r,i,o=this.getLayer().getClassName();if(e&&""===e.style.opacity&&e.className===o){var a=e.firstElementChild;a instanceof HTMLCanvasElement&&(i=a.getContext("2d"))}if(!i||0!==i.canvas.width&&i.canvas.style.transform!==t?this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1):(this.container=e,this.context=i,this.containerReused=!0),!this.container){r=document.createElement("div"),r.className=o;var s=r.style;s.position="absolute",s.width="100%",s.height="100%",i=tl();a=i.canvas;r.appendChild(a),s=a.style,s.position="absolute",s.left="0",s.transformOrigin="top left",this.container=r,this.context=i}},t.prototype.clip=function(e,t,n){var r=t.pixelRatio,i=t.size[0]*r/2,o=t.size[1]*r/2,a=t.viewState.rotation,s=Nc(n),l=Lc(n),c=Tc(n),u=Oc(n);ju(t.coordinateToPixelTransform,s),ju(t.coordinateToPixelTransform,l),ju(t.coordinateToPixelTransform,c),ju(t.coordinateToPixelTransform,u),e.save(),zh(e,-a,i,o),e.beginPath(),e.moveTo(s[0]*r,s[1]*r),e.lineTo(l[0]*r,l[1]*r),e.lineTo(c[0]*r,c[1]*r),e.lineTo(u[0]*r,u[1]*r),e.clip(),zh(e,a,i,o)},t.prototype.clipUnrotated=function(e,t,n){var r=Nc(n),i=Lc(n),o=Tc(n),a=Oc(n);ju(t.coordinateToPixelTransform,r),ju(t.coordinateToPixelTransform,i),ju(t.coordinateToPixelTransform,o),ju(t.coordinateToPixelTransform,a);var s=this.inversePixelTransform;ju(s,r),ju(s,i),ju(s,o),ju(s,a),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()},t.prototype.dispatchRenderEvent_=function(e,t,n){var r=this.getLayer();if(r.hasListener(e)){var i=new Qm(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}},t.prototype.preRender=function(e,t){this.dispatchRenderEvent_(Gp.PRERENDER,e,t)},t.prototype.postRender=function(e,t){this.dispatchRenderEvent_(Gp.POSTRENDER,e,t)},t.prototype.getRenderTransform=function(e,t,n,r,i,o,a){var s=i/2,l=o/2,c=r/t,u=-c,d=-e[0]+a,f=-e[1];return Uu(this.tempTransform,s,l,c,u,-n,d,f)},t.prototype.getDataAtPixel=function(e,t,n){var r,i=ju(this.inversePixelTransform,e.slice()),o=this.context;try{var a=Math.round(i[0]),s=Math.round(i[1]),l=document.createElement("canvas"),c=l.getContext("2d");l.width=1,l.height=1,c.clearRect(0,0,1,1),c.drawImage(o.canvas,a,s,1,1,0,0,1,1),r=c.getImageData(0,0,1,1).data}catch(u){return"SecurityError"===u.name?new Uint8Array:r}return 0===r[3]?null:r},t}(Xm),tg=eg;function ng(e,t,n,r,i,o,a,s,l,c,u,d){var f,h=[];if(d){var p=$u(e,t,n,r,d,[e[t],e[t+1]]);f=p[0]>p[p.length-r]}else f=e[t]>e[n-r];var m=i.length,g=e[t],v=e[t+1];t+=r;for(var y,b,_=e[t],w=e[t+1],x=0,S=Math.sqrt(Math.pow(_-g,2)+Math.pow(w-v,2)),C=!1,E=0;E<m;++E){y=f?m-E-1:E;var k=i[y],O=s*l(c,k,u),T=o+O/2;while(t<n-r&&x+S<T)g=_,v=w,t+=r,_=e[t],w=e[t+1],x+=S,S=Math.sqrt(Math.pow(_-g,2)+Math.pow(w-v,2));var I=T-x,A=Math.atan2(w-v,_-g);if(f&&(A+=A>0?-Math.PI:Math.PI),void 0!==b){var R=A-b;if(C=C||0!==R,R+=R>Math.PI?-2*Math.PI:R<-Math.PI?2*Math.PI:0,Math.abs(R)>a)return null}b=A;var P=I/S,M=Il(g,_,P),N=Il(v,w,P);h[y]=[M,N,O/2,A,k],o+=O}return C?h:[[h[0][0],h[0][1],h[0][2],h[0][3],i]]}var rg=fc(),ig=Pu(),og=[],ag=[],sg=[],lg=[],cg=function(){function e(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.declutterItems=[],this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderBuffer_=i,this.renderedTransform_=Pu(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(e,t,n,r){var i=e+t+n+r;if(this.labels_[i])return this.labels_[i];var o=r?this.strokeStates[r]:null,a=n?this.fillStates[n]:null,s=this.textStates[t],l=this.pixelRatio,c=[s.scale[0]*l,s.scale[1]*l],u=zm[s.textAlign||kh],d=r&&o.lineWidth?o.lineWidth:0,f=e.split("\n"),h=f.length,p=[],m=qh(s.font,f,p),g=Dh(s.font),v=g*h,y=m+d,b=[],_=(y+2)*c[0],w=(v+d)*c[1],x={width:_<0?Math.floor(_):Math.ceil(_),height:w<0?Math.floor(w):Math.ceil(w),contextInstructions:b};if(1==c[0]&&1==c[1]||b.push("scale",c),b.push("font",s.font),r){b.push("strokeStyle",o.strokeStyle),b.push("lineWidth",d),b.push("lineCap",o.lineCap),b.push("lineJoin",o.lineJoin),b.push("miterLimit",o.miterLimit);var S=Qs?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;S.prototype.setLineDash&&(b.push("setLineDash",[o.lineDash]),b.push("lineDashOffset",o.lineDashOffset))}n&&b.push("fillStyle",a.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");var C,E=.5-u,k=u*y+E*d;if(r)for(C=0;C<h;++C)b.push("strokeText",[f[C],k+E*p[C],.5*(d+g)+C*g]);if(n)for(C=0;C<h;++C)b.push("fillText",[f[C],k+E*p[C],.5*(d+g)+C*g]);return this.labels_[i]=x,x},e.prototype.replayTextBackground_=function(e,t,n,r,i,o,a,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],s&&(e.fillStyle=o[1]),this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())},e.prototype.replayImageOrLabel_=function(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,m,g,v,y){var b=v||y;o*=h[0],a*=h[1],n-=o,r-=a;var _=m+u>i.width?i.width-u:m,w=l+d>i.height?i.height-d:l,x=g[3]+_*h[0]+g[1],S=g[0]+w*h[1]+g[2],C=n-g[3],E=r-g[0];(b||0!==f)&&(og[0]=C,lg[0]=C,og[1]=E,ag[1]=E,ag[0]=C+x,sg[0]=ag[0],sg[1]=E+S,lg[1]=sg[1]);var k=null;if(0!==f){var O=n+o,T=r+a;k=Uu(ig,O,T,1,1,f,-O,-T),ju(ig,og),ju(ig,ag),ju(ig,sg),ju(ig,lg),hc(Math.min(og[0],ag[0],sg[0],lg[0]),Math.min(og[1],ag[1],sg[1],lg[1]),Math.max(og[0],ag[0],sg[0],lg[0]),Math.max(og[1],ag[1],sg[1],lg[1]),rg)}else hc(C,E,C+x,E+S,rg);var I=0,A=0;if(s){var R=this.renderBuffer_;R[0]=Math.max(R[0],Dc(rg)),I=R[0],R[1]=Math.max(R[1],Pc(rg)),A=R[1]}var P=e.canvas,M=y?y[2]*h[0]/2:0,N=rg[0]-M<=(P.width+I)/t&&rg[2]+M>=-I/t&&rg[1]-M<=(P.height+A)/t&&rg[3]+M>=-A/t;if(p&&(n=Math.round(n),r=Math.round(r)),s){if(!N&&1==s[0])return!1;var L=N?[e,k?k.slice(0):null,c,i,u,d,_,w,n,r,h,rg.slice()]:null;L&&(b&&L.push(v,y,og.slice(0),ag.slice(0),sg.slice(0),lg.slice(0)),s.push(L))}else N&&(b&&this.replayTextBackground_(e,og,ag,sg,lg,v,y,!1),Uh(e,k,c,i,u,d,_,w,n,r,h));return!0},e.prototype.fill_=function(e){if(this.alignFill_){var t=ju(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},e.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},e.prototype.renderDeclutter=function(e,t,n,r){for(var i=[],o=1,a=e.length;o<a;++o){var s=e[o],l=s[11];i.push({minX:l[0],minY:l[1],maxX:l[2],maxY:l[3],value:t})}r||(r=new xp.a(9));var c=!1;for(o=0,a=i.length;o<a;++o)if(r.collides(i[o])){c=!0;break}if(!c){r.load(i);for(var u=1,d=e.length;u<d;++u){s=e[u];var f=s[0],h=f.globalAlpha;h!==n&&(f.globalAlpha=n),s.length>12&&this.replayTextBackground_(s[0],s[14],s[15],s[16],s[17],s[12],s[13],!0),Uh.apply(void 0,s),h!==n&&(f.globalAlpha=h)}}return e.length=1,r},e.prototype.drawLabelWithPointPlacement_=function(e,t,n,r){var i=this.textStates[t],o=this.createLabel(e,t,r,n),a=this.strokeStates[n],s=this.pixelRatio,l=zm[i.textAlign||kh],c=zm[i.textBaseline||Oh],u=a&&a.lineWidth?a.lineWidth:0,d=o.width/s-2*i.scale[0],f=l*d+2*(.5-l)*u,h=c*o.height/s+2*(.5-c)*u;return{label:o,anchorX:f,anchorY:h}},e.prototype.execute_=function(e,t,n,r,i,o,a){var s;this.declutterItems.length=0,this.pixelCoordinates_&&hs(n,this.renderedTransform_)?s=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),s=Hu(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Du(this.renderedTransform_,n));var l,c,u,d,f,h,p,m,g,v,y,b,_,w,x,S,C,E=0,k=r.length,O=0,T=0,I=0,A=null,R=null,P=this.coordinateCache_,M=this.viewRotation_,N=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,L={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:M},D=this.instructions!=r||this.overlaps?0:200;while(E<k){var j=r[E],F=j[0];switch(F){case Em.BEGIN_GEOMETRY:x=j[1],x.getGeometry()?void 0===a||jc(a,j[3])?++E:E=j[2]+1:E=j[2];break;case Em.BEGIN_PATH:T>D&&(this.fill_(e),T=0),I>D&&(e.stroke(),I=0),T||I||(e.beginPath(),d=NaN,f=NaN),++E;break;case Em.CIRCLE:O=j[1];var B=s[O],q=s[O+1],z=s[O+2],U=s[O+3],G=z-B,V=U-q,W=Math.sqrt(G*G+V*V);e.moveTo(B+W,q),e.arc(B,q,W,0,2*Math.PI,!0),++E;break;case Em.CLOSE_PATH:e.closePath(),++E;break;case Em.CUSTOM:O=j[1],l=j[2];var H=j[3],$=j[4],K=6==j.length?j[5]:void 0;L.geometry=H,L.feature=x,E in P||(P[E]=[]);var X=P[E];K?K(s,O,l,2,X):(X[0]=s[O],X[1]=s[O+1],X.length=2),$(X,L),++E;break;case Em.DRAW_IMAGE:O=j[1],l=j[2],v=j[3],c=j[4],u=j[5],g=o?null:j[6];var Y=j[7],J=j[8],Q=j[9],Z=j[10],ee=j[11],te=j[12],ne=j[13],re=j[14];if(!v&&j.length>=19){y=j[18],b=j[19],_=j[20],w=j[21];var ie=this.drawLabelWithPointPlacement_(y,b,_,w);v=ie.label,j[3]=v;var oe=j[22];c=(ie.anchorX-oe)*this.pixelRatio,j[4]=c;var ae=j[23];u=(ie.anchorY-ae)*this.pixelRatio,j[5]=u,Y=v.height,j[7]=Y,re=v.width,j[14]=re}var se=void 0;j.length>24&&(se=j[24]);var le=void 0,ce=void 0,ue=void 0;j.length>16?(le=j[15],ce=j[16],ue=j[17]):(le=Th,ce=!1,ue=!1),ee&&N?te+=M:ee||N||(te-=M);for(var de=0,fe=0;O<l;O+=2)if(!(se&&se[de++]<re/this.pixelRatio)){if(g){var he=Math.floor(fe);m=g.length<he+1?[g[0][0]]:g[he]}var pe=this.replayImageOrLabel_(e,t,s[O],s[O+1],v,c,u,m,Y,J,Q,Z,te,ne,i,re,le,ce?A:null,ue?R:null);pe&&m&&g[g.length-1]!==m&&g.push(m),m&&(m.length-1===m[0]&&this.declutterItems.push(this,m,x),fe+=1/m[0])}++E;break;case Em.DRAW_CHARS:var me=j[1],ge=j[2],ve=j[3];m=o?null:j[4];var ye=j[5];w=j[6];var be=j[7],_e=j[8],we=j[9];_=j[10];var xe=j[11];y=j[12],b=j[13];var Se=[j[14],j[14]],Ce=this.textStates[b],Ee=Ce.font,ke=[Ce.scale[0]*_e,Ce.scale[1]*_e],Oe=void 0;Ee in this.widths_?Oe=this.widths_[Ee]:(Oe={},this.widths_[Ee]=Oe);var Te=af(s,me,ge,2),Ie=Math.abs(ke[0])*Bh(Ee,y,Oe);if(ye||Ie<=Te){var Ae=this.textStates[b].textAlign,Re=(Te-Ie)*zm[Ae],Pe=ng(s,me,ge,2,y,Re,be,Math.abs(ke[0]),Bh,Ee,Oe,N?0:this.viewRotation_);if(Pe){pe=!1;var Me=void 0,Ne=void 0,Le=void 0,De=void 0,je=void 0;if(_)for(Me=0,Ne=Pe.length;Me<Ne;++Me)je=Pe[Me],Le=je[4],De=this.createLabel(Le,b,"",_),c=je[2]+xe,u=ve*De.height+2*(.5-ve)*xe*ke[1]/ke[0]-we,pe=this.replayImageOrLabel_(e,t,je[0],je[1],De,c,u,m,De.height,1,0,0,je[3],Se,!1,De.width,Th,null,null)||pe;if(w)for(Me=0,Ne=Pe.length;Me<Ne;++Me)je=Pe[Me],Le=je[4],De=this.createLabel(Le,b,w,""),c=je[2],u=ve*De.height-we,pe=this.replayImageOrLabel_(e,t,je[0],je[1],De,c,u,m,De.height,1,0,0,je[3],Se,!1,De.width,Th,null,null)||pe;pe&&this.declutterItems.push(this,m,x)}}++E;break;case Em.END_GEOMETRY:if(void 0!==o){x=j[1];var Fe=o(x);if(Fe)return Fe}++E;break;case Em.FILL:D?T++:this.fill_(e),++E;break;case Em.MOVE_TO_LINE_TO:for(O=j[1],l=j[2],S=s[O],C=s[O+1],h=S+.5|0,p=C+.5|0,h===d&&p===f||(e.moveTo(S,C),d=h,f=p),O+=2;O<l;O+=2)S=s[O],C=s[O+1],h=S+.5|0,p=C+.5|0,O!=l-2&&h===d&&p===f||(e.lineTo(S,C),d=h,f=p);++E;break;case Em.SET_FILL_STYLE:A=j,this.alignFill_=j[2],T&&(this.fill_(e),T=0,I&&(e.stroke(),I=0)),e.fillStyle=j[1],++E;break;case Em.SET_STROKE_STYLE:R=j,I&&(e.stroke(),I=0),this.setStrokeStyle_(e,j),++E;break;case Em.STROKE:D?I++:e.stroke(),++E;break;default:++E;break}}T&&this.fill_(e),I&&e.stroke()},e.prototype.execute=function(e,t,n,r,i){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0)},e.prototype.executeHitDetection=function(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,1,t,this.hitDetectionInstructions,!0,r,i)},e}(),ug=cg,dg=[Xh.POLYGON,Xh.CIRCLE,Xh.LINE_STRING,Xh.IMAGE,Xh.TEXT,Xh.DEFAULT],fg=function(){function e(e,t,n,r,i,o){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Pu(),this.createExecutors_(i)}return e.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},e.prototype.createExecutors_=function(e){for(var t in e){var n=this.executorsByZIndex_[t];void 0===n&&(n={},this.executorsByZIndex_[t]=n);var r=e[t],i=[this.renderBuffer_||0,this.renderBuffer_||0];for(var o in r){var a=r[o];n[o]=new ug(this.resolution_,this.pixelRatio_,this.overlaps_,a,i)}}},e.prototype.hasExecutors=function(e){for(var t in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[t],r=0,i=e.length;r<i;++r)if(e[r]in n)return!0;return!1},e.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o){r=Math.round(r);var a=2*r+1,s=Uu(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]);this.hitDetectionContext_||(this.hitDetectionContext_=tl(a,a));var l,c=this.hitDetectionContext_;c.canvas.width!==a||c.canvas.height!==a?(c.canvas.width=a,c.canvas.height=a):c.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(l=fc(),wc(l,e),oc(l,t*(this.renderBuffer_+r),l));var u,d=mg(r);function f(e){for(var t=c.getImageData(0,0,a,a).data,n=0;n<a;n++)for(var r=0;r<a;r++)if(d[n][r]&&t[4*(r*a+n)+3]>0){var s=void 0;return(!o||u!=Xh.IMAGE&&u!=Xh.TEXT||-1!==o.indexOf(e))&&(s=i(e)),s||void c.clearRect(0,0,a,a)}}var h,p,m,g,v,y=Object.keys(this.executorsByZIndex_).map(Number);for(y.sort(ls),h=y.length-1;h>=0;--h){var b=y[h].toString();for(m=this.executorsByZIndex_[b],p=dg.length-1;p>=0;--p)if(u=dg[p],g=m[u],void 0!==g&&(v=g.executeHitDetection(c,s,n,f,l),v))return v}},e.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],r=t[1],i=t[2],o=t[3],a=[n,r,n,o,i,o,i,r];return Hu(a,0,8,2,e,a),a},e.prototype.isEmpty=function(){return xs(this.executorsByZIndex_)},e.prototype.execute=function(e,t,n,r,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(ls),this.maxExtent_&&(e.save(),this.clip(e,n));var l,c,u,d,f,h,p=o||dg;for(l=0,c=s.length;l<c;++l){var m=s[l].toString();for(f=this.executorsByZIndex_[m],u=0,d=p.length;u<d;++u){var g=p[u];if(h=f[g],void 0!==h)if(!a||g!=Xh.IMAGE&&g!=Xh.TEXT)h.execute(e,t,n,r,i);else{var v=a[m];v?v.push(h,n.slice(0)):a[m]=[h,n.slice(0)]}}}this.maxExtent_&&e.restore()},e}(),hg={0:[[!0]]};function pg(e,t,n){var r,i=Math.floor(e.length/2);if(t>=i)for(r=i;r<t;r++)e[r][n]=!0;else if(t<i)for(r=t+1;r<i;r++)e[r][n]=!0}function mg(e){if(void 0!==hg[e])return hg[e];for(var t=2*e+1,n=new Array(t),r=0;r<t;r++)n[r]=new Array(t);var i=e,o=0,a=0;while(i>=o)pg(n,e+i,e+o),pg(n,e+o,e+i),pg(n,e-o,e+i),pg(n,e-i,e+o),pg(n,e-i,e-o),pg(n,e-o,e-i),pg(n,e+o,e-i),pg(n,e+i,e-o),o++,a+=1+2*o,2*(a-i)+1>0&&(i-=1,a+=1-2*i);return hg[e]=n,n}function gg(e,t,n,r,i,o){for(var a=Object.keys(e).map(Number).sort(ls),s=0,l=a.length;s<l;++s)for(var c=e[a[s].toString()],u=void 0,d=0,f=c.length;d<f;){var h=c[d++],p=c[d++];h.execute(t,1,p,n,i),h!==u&&h.declutterItems.length>0&&(u=h,o.push({items:h.declutterItems,opacity:r}))}}var vg=fg,yg={ANIMATING:0,INTERACTING:1},bg={FRACTION:"fraction",PIXELS:"pixels"},_g={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},wg=function(){function e(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return e.prototype.clear=function(){this.cache_={},this.cacheSize_=0},e.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];0!==(3&e++)||n.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(e,t,n){var r=xg(e,t,n);return r in this.cache_?this.cache_[r]:null},e.prototype.set=function(e,t,n,r){var i=xg(e,t,n);this.cache_[i]=r,++this.cacheSize_},e.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},e}();function xg(e,t,n){var r=n?uh(n):"null";return t+":"+e+":"+r}var Sg=new wg,Cg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eg=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.extent=t,o.pixelRatio_=r,o.resolution=n,o.state=i,o}return Cg(t,e),t.prototype.changed=function(){this.dispatchEvent(ks.CHANGE)},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return Ds()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){Ds()},t}(Es),kg=Eg,Og=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,Yh.IDLE)||this;return s.src_=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=Yh.IDLE,s.imageLoadFunction_=a,s}Og(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=Yh.ERROR,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Pc(this.extent)/this.image_.height),this.state=Yh.LOADED,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state!=Yh.IDLE&&this.state!=Yh.ERROR||(this.state=Yh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Tg(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(e){this.image_=e},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}})(kg);function Tg(e,t,n){var r=e;if(r.src&&Zs){var i=r.decode(),o=!0,a=function(){o=!1};return i.then((function(){o&&t()})).catch((function(e){o&&("EncodingError"===e.name&&"Invalid image type."===e.message?t():n())})),a}var s=[Ts(r,ks.LOAD,t),Ts(r,ks.ERROR,n)];return function(){s.forEach(Is)}}var Ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ag=null,Rg=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.hitDetectionImage_=null,s.image_=t||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=r,s.src_=n,s.tainted_,s}return Ig(t,e),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===Yh.LOADED){Ag||(Ag=tl(1,1)),Ag.drawImage(this.image_,0,0);try{Ag.getImageData(0,0,1,1),this.tainted_=!1}catch(e){Ag=null,this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(ks.CHANGE)},t.prototype.handleImageError_=function(){this.imageState_=Yh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=Yh.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_},t.prototype.getPixelRatio=function(e){return this.replaceColor_(e),this.canvas_[e]?e:1},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],t=this.size_[1],n=tl(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(this.imageState_==Yh.IDLE){this.imageState_=Yh.LOADING;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=Tg(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(e){if(this.color_&&!this.canvas_[e]){var t=document.createElement("canvas");this.canvas_[e]=t,t.width=Math.ceil(this.image_.width*e),t.height=Math.ceil(this.image_.height*e);var n=t.getContext("2d");if(n.scale(e,e),n.drawImage(this.image_,0,0),this.isTainted_()){var r=this.color_;return n.globalCompositeOperation="multiply",n.fillStyle="rgb("+r[0]+","+r[1]+","+r[2]+")",n.fillRect(0,0,t.width,t.height),n.globalCompositeOperation="destination-in",void n.drawImage(this.image_,0,0)}for(var i=n.getImageData(0,0,t.width,t.height),o=i.data,a=this.color_[0]/255,s=this.color_[1]/255,l=this.color_[2]/255,c=0,u=o.length;c<u;c+=4)o[c]*=a,o[c+1]*=s,o[c+2]*=l;n.putImageData(i,0,0)}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(Es);function Pg(e,t,n,r,i,o){var a=Sg.get(t,r,o);return a||(a=new Rg(e,t,n,r,i,o),Sg.set(t,r,o,a)),a}var Mg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ng=function(e){function t(t){var n=this,r=t||{},i=void 0!==r.opacity?r.opacity:1,o=void 0!==r.rotation?r.rotation:0,a=void 0!==r.scale?r.scale:1,s=void 0!==r.rotateWithView&&r.rotateWithView;n=e.call(this,{opacity:i,rotation:o,scale:a,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:s})||this,n.anchor_=void 0!==r.anchor?r.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:_g.TOP_LEFT,n.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:bg.FRACTION,n.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:bg.FRACTION,n.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var l=void 0!==r.img?r.img:null,c=void 0!==r.imgSize?r.imgSize:null,u=r.src;nc(!(void 0!==u&&l),4),nc(!l||l&&c,5),void 0!==u&&0!==u.length||!l||(u=l.src||Fs(l)),nc(void 0!==u&&u.length>0,6);var d=void 0!==r.src?Yh.IDLE:Yh.LOADED;return n.color_=void 0!==r.color?hh(r.color):null,n.iconImage_=Pg(l,u,c,n.crossOrigin_,d,n.color_),n.offset_=void 0!==r.offset?r.offset:[0,0],n.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:_g.TOP_LEFT,n.origin_=null,n.size_=void 0!==r.size?r.size:null,n}return Mg(t,e),t.prototype.clone=function(){var e=this.getScale();return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},t.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var e=this.anchor_,t=this.getSize();if(this.anchorXUnits_==bg.FRACTION||this.anchorYUnits_==bg.FRACTION){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==bg.FRACTION&&(e[0]*=t[0]),this.anchorYUnits_==bg.FRACTION&&(e[1]*=t[1])}if(this.anchorOrigin_!=_g.TOP_LEFT){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=_g.TOP_RIGHT&&this.anchorOrigin_!=_g.BOTTOM_RIGHT||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=_g.BOTTOM_LEFT&&this.anchorOrigin_!=_g.BOTTOM_RIGHT||(e[1]=-e[1]+t[1])}return this.normalizedAnchor_=e,this.normalizedAnchor_},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getPixelRatio=function(e){return this.iconImage_.getPixelRatio(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_,t=this.getDisplacement();if(this.offsetOrigin_!=_g.TOP_LEFT){var n=this.getSize(),r=this.iconImage_.getSize();if(!n||!r)return null;e=e.slice(),this.offsetOrigin_!=_g.TOP_RIGHT&&this.offsetOrigin_!=_g.BOTTOM_RIGHT||(e[0]=r[0]-n[0]-e[0]),this.offsetOrigin_!=_g.BOTTOM_LEFT&&this.offsetOrigin_!=_g.BOTTOM_RIGHT||(e[1]=r[1]-n[1]-e[1])}return e[0]+=t[0],e[1]+=t[1],this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e){this.iconImage_.addEventListener(ks.CHANGE,e)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e){this.iconImage_.removeEventListener(ks.CHANGE,e)},t}(Zp),Lg=Ng;function Dg(e,t,n,r,i,o,a){var s=e[0]/2,l=e[1]/2,c=tl(s,l);c.imageSmoothingEnabled=!1;for(var u=c.canvas,d=new Kh(c,.5,i,null,a),f=n.length,h=Math.floor(16777215/f),p={},m=1;m<=f;++m){var g=n[m-1],v=g.getStyleFunction()||r;if(r){var y=v(g,o);if(y){Array.isArray(y)||(y=[y]);for(var b=m*h,_="#"+("000000"+b.toString(16)).slice(-6),w=0,x=y.length;w<x;++w){var S=y[w],C=S.clone(),E=C.getFill();E&&E.setColor(_);var k=C.getStroke();k&&k.setColor(_),C.setText(void 0);var O=S.getImage();if(O){var T=O.getImageSize();if(!T)continue;var I=document.createElement("canvas");I.width=T[0],I.height=T[1];var A=I.getContext("2d",{alpha:!1});A.fillStyle=_;var R=A.canvas;A.fillRect(0,0,R.width,R.height);var P=T?T[0]:R.width,M=T?T[1]:R.height,N=tl(P,M);N.drawImage(R,0,0),C.setImage(new Lg({img:R,imgSize:T,anchor:O.getAnchor(),anchorXUnits:bg.PIXELS,anchorYUnits:bg.PIXELS,offset:O.getOrigin(),size:O.getSize(),opacity:O.getOpacity(),scale:O.getScale(),rotation:O.getRotation(),rotateWithView:O.getRotateWithView()}))}var L=Number(C.getZIndex()),D=p[L];D||(D={},p[L]=D,D[Vc.POLYGON]=[],D[Vc.CIRCLE]=[],D[Vc.LINE_STRING]=[],D[Vc.POINT]=[]);var j=C.getGeometryFunction()(g);j&&jc(i,j.getExtent())&&D[j.getType().replace("Multi","")].push(j,C)}}}}for(var F=Object.keys(p).map(Number).sort(ls),B=(m=0,F.length);m<B;++m){D=p[F[m]];for(var q in D){var z=D[q];for(w=0,x=z.length;w<x;w+=2){d.setStyle(z[w+1]);for(var U=0,G=t.length;U<G;++U)d.setTransform(t[U]),d.drawGeometry(z[w])}}}return c.getImageData(0,0,u.width,u.height)}function jg(e,t,n){var r=[];if(n){var i=4*(Math.round(e[0]/2)+Math.round(e[1]/2)*n.width),o=n.data[i],a=n.data[i+1],s=n.data[i+2],l=s+256*(a+256*o),c=Math.floor(16777215/t.length);l&&l%c===0&&r.push(t[l/c-1])}return r}var Fg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bg=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.dirty_=!1,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=fc(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.clipping=!0,n}return Fg(t,e),t.prototype.useContainer=function(t,n,r){r<1&&(t=null),e.prototype.useContainer.call(this,t,n,r)},t.prototype.renderFrame=function(e,t){var n=e.pixelRatio,r=e.layerStatesArray[e.layerIndex];qu(this.pixelTransform,1/n,1/n),Gu(this.inversePixelTransform,this.pixelTransform);var i=Wu(this.pixelTransform);this.useContainer(t,i,r.opacity);var o=this.context,a=o.canvas,s=this.replayGroup_;if(!s||s.isEmpty())return!this.containerReused&&a.width>0&&(a.width=0),this.container;var l=Math.round(e.size[0]*n),c=Math.round(e.size[1]*n);a.width!=l||a.height!=c?(a.width=l,a.height=c,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,l,c),this.preRender(o,e);var u=e.extent,d=e.viewState,f=d.center,h=d.resolution,p=d.projection,m=d.rotation,g=p.getExtent(),v=this.getLayer().getSource(),y=!1;if(r.extent&&this.clipping){var b=Su(r.extent,p);y=!cc(b,e.extent)&&jc(b,e.extent),y&&this.clipUnrotated(o,e,b)}var _=e.viewHints,w=!(_[yg.ANIMATING]||_[yg.INTERACTING]),x=this.getRenderTransform(f,h,m,n,l,c,0),S=this.getLayer().getDeclutter()?{}:null;if(s.execute(o,1,x,m,w,void 0,S),v.getWrapX()&&p.canWrapX()&&!cc(g,u)){var C=u[0],E=Dc(g),k=0,O=void 0;while(C<g[0]){--k,O=E*k;var T=this.getRenderTransform(f,h,m,n,l,c,O);s.execute(o,1,T,m,w,void 0,S),C+=E}k=0,C=u[2];while(C>g[2]){++k,O=E*k;var I=this.getRenderTransform(f,h,m,n,l,c,O);s.execute(o,1,I,m,w,void 0,S),C-=E}}if(S){var A=e.viewHints,R=!(A[yg.ANIMATING]||A[yg.INTERACTING]);gg(S,o,m,1,R,e.declutterItems)}y&&o.restore(),this.postRender(o,e);var P=r.opacity,M=this.container;return P!==parseFloat(M.style.opacity)&&(M.style.opacity=1===P?"":String(P)),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container},t.prototype.getFeatures=function(e){return new Promise(function(t,n){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var r=[this.context.canvas.width,this.context.canvas.height];ju(this.pixelTransform,r);var i=this.renderedCenter_,o=this.renderedResolution_,a=this.renderedRotation_,s=this.renderedProjection_,l=this.renderedExtent_,c=this.getLayer(),u=[],d=r[0]/2,f=r[1]/2;u.push(this.getRenderTransform(i,o,a,.5,d,f,0).slice());var h=c.getSource(),p=s.getExtent();if(h.getWrapX()&&s.canWrapX()&&!cc(p,l)){var m=l[0],g=Dc(p),v=0,y=void 0;while(m<p[0])--v,y=g*v,u.push(this.getRenderTransform(i,o,a,.5,d,f,y).slice()),m+=g;v=0,m=l[2];while(m>p[2])++v,y=g*v,u.push(this.getRenderTransform(i,o,a,.5,d,f,y).slice()),m-=g}this.hitDetectionImageData_=Dg(r,u,this.renderedFeatures_,c.getStyleFunction(),l,o,a)}t(jg(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){if(this.replayGroup_){var o=t.viewState.resolution,a=t.viewState.rotation,s=this.getLayer(),l={},c=this.replayGroup_.forEachFeatureAtCoordinate(e,o,a,n,(function(e){var t=Fs(e);if(!(t in l))return l[t]=!0,r(e,s)}),s.getDeclutter()?i:null);return c}},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e){var t=this.getLayer(),n=t.getSource();if(!n)return!1;var r=e.viewHints[yg.ANIMATING],i=e.viewHints[yg.INTERACTING],o=t.getUpdateWhileAnimating(),a=t.getUpdateWhileInteracting();if(!this.dirty_&&!o&&r||!a&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=e.extent,l=e.viewState,c=l.projection,u=l.resolution,d=e.pixelRatio,f=t.getRevision(),h=t.getRenderBuffer(),p=t.getRenderOrder();void 0===p&&(p=Zh);var m=l.center.slice(),g=oc(s,h*u),v=[g.slice()],y=c.getExtent();if(n.getWrapX()&&c.canWrapX()&&!cc(y,e.extent)){var b=Dc(y),_=Math.max(Dc(g)/2,b);g[0]=y[0]-_,g[2]=y[2]+_,eu(m,c);var w=Gc(v[0],c);w[0]<y[0]&&w[2]<y[2]?v.push([w[0]+b,w[1],w[2]+b,w[3]]):w[0]>y[0]&&w[2]>y[2]&&v.push([w[0]-b,w[1],w[2]-b,w[3]])}if(!this.dirty_&&this.renderedResolution_==u&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&cc(this.renderedExtent_,g))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var x,S=new Hm(tp(u,d),g,u,d,t.getDeclutter()),C=bu();if(C){for(var E=0,k=v.length;E<k;++E)n.loadFeatures(xu(v[E],c),u,C);x=pu(C,c)}else for(E=0,k=v.length;E<k;++E)n.loadFeatures(v[E],u,c);var O=ep(u,d),T=function(e){var n,r=e.getStyleFunction()||t.getStyleFunction();if(r&&(n=r(e,u)),n){var i=this.renderFeature(e,O,n,S,x);this.dirty_=this.dirty_||i}}.bind(this),I=xu(g,c),A=n.getFeaturesInExtent(I);p&&A.sort(p);for(E=0,k=A.length;E<k;++E)T(A[E]);this.renderedFeatures_=A;var R=S.finish(),P=new vg(g,u,d,n.getOverlaps(),R,t.getRenderBuffer());return this.renderedResolution_=u,this.renderedRevision_=f,this.renderedRenderOrder_=p,this.renderedExtent_=g,this.renderedCenter_=m,this.renderedProjection_=c,this.replayGroup_=P,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,t,n,r,i){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=0,s=n.length;a<s;++a)o=rp(r,e,n[a],t,this.boundHandleStyleImageChange_,i)||o;else o=rp(r,e,n,t,this.boundHandleStyleImageChange_,i);return o},t}(tg),qg=Bg,zg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ug=function(e){function t(t){return e.call(this,t)||this}return zg(t,e),t.prototype.createRenderer=function(){return new qg(this)},t}(bm),Gg=Ug;class Vg{constructor(){}static getOlVersion(){if(r&&Bs)return Bs.split(".")[0];if(window&&window.ol){if(window.ol.util)return"6";if(window.ol.WebGLMap)return"5"}return"4"}static toGeoJSON(e){return e?(new Se).toGeoJSON(e):null}static toSuperMapGeometry(e){if(!e||!e.type)return null;const t=(new Se).read(e,"FeatureCollection");return t[0].geometry}static resolutionToScale(e,t,n){const r=1/.0254,i=this.getMeterPerMapUnit(n),o=1/(e*t*r*i);return o}static toSuperMapBounds(e){return new Q(e[0],e[1],e[2],e[3])}static toProcessingParam(e){if(e.length<1)return"";const t={},n=[];for(let r=0;r<e.length;r++){const t={x:e[r][0],y:e[r][1]};n.push(t)}return n.push(n[0]),t.type="REGION",t.points=n,t}static scaleToResolution(e,t,n){const r=1/.0254,i=this.getMeterPerMapUnit(n),o=1/(e*t*r*i);return o}static getMeterPerMapUnit(e){const t=6378137;let n;if(e===f.METER)n=1;else if(e===f.DEGREE)n=2*Math.PI*t/360;else if(e===f.KILOMETER)n=.001;else if(e===f.INCH)n=1/.025399999918;else{if(e!==f.FOOT)return n;n=.3048}return n}static isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}static Csv2GeoJSON(e,t){const n={titles:["lon","lat"],latitudeTitle:"lat",longitudeTitle:"lon",fieldSeparator:",",lineSeparator:"\n",deleteDoubleQuotes:!0,firstLineTitles:!1};t=t||n;const r=[];if("string"===typeof e){let n=t.titles;if(t.firstLineTitles){if(e=e.split(t.lineSeparator),e.length<2)return;n=e[0],e.splice(0,1),e=e.join(t.lineSeparator),n=n.trim().split(t.fieldSeparator);for(let e=0;e<n.length;e++)n[e]=i(n[e]);t.titles=n}for(let e=0;e<n.length;e++){let t=n[e].toLowerCase().replace(/[^\w ]+/g,"").replace(/ +/g,"_");""!==t&&"_"!==t||(t="prop-"+e),r[e]=t}e=o(e)}return e;function i(e){return t.deleteDoubleQuotes&&(e=e.trim().replace(/^"/,"").replace(/"$/,"")),e}function o(e){const n={type:"FeatureCollection",features:[]},o=t.titles;e=e.split(t.lineSeparator);for(let a=0;a<e.length;a++){const s=e[a].trim().split(t.fieldSeparator),l=parseFloat(s[o.indexOf(t.longitudeTitle)]),c=parseFloat(s[o.indexOf(t.latitudeTitle)]),u=l<180&&l>-180&&c<90&&c>-90;if(s.length!==o.length||!u)continue;const d={type:"Feature",geometry:{},properties:{}};d["geometry"]["type"]="Point",d["geometry"]["coordinates"]=[l,c];for(let e=0;e<o.length;e++)o[e]!==t.latitudeTitle&&o[e]!==t.longitudeTitle&&(d["properties"][r[e]]=i(s[e]));n["features"].push(d)}return n}}static createCanvasContext2D(e,t){const n=document.createElement("CANVAS");return e&&(n.width=e),t&&(n.height=t),n.getContext("2d")}static supportWebGL2(){const e=document.createElement("canvas");return Boolean(e&&e.getContext("webgl2"))}static isString(e){return"string"===typeof e&&e.constructor===String}static isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}static trim(e=""){return e.replace(/(^\s*)|(\s*$)/g,"")}static newGuid(e){let t=e||32,n="";for(let r=1;r<t;r++){let e=Math.floor(16*Math.random()).toString(16);n+=e}return n}static isNumber(e){if(""===e)return!1;let t=Number(e);return 0===t||!isNaN(t)}static getFeatureBySQL(e,t,n,r,i,o){let a=new ht({name:t.join().replace(":","@")}),s=new Wn({queryParameter:a,datasetNames:t,fromIndex:0,toIndex:1e5,maxFeatures:1e5,returnContent:!0,targetEpsgCode:o}),l=e=>{"processCompleted"===e.type?r&&r(e):i&&i(e)};new oh(e,n).getFeaturesBySQL(s,l)}static queryFeatureBySQL(e,t,n,r,i,o,a,s,l,u){const d=new ht({name:t,attributeFilter:n});r&&(d.fields=r);const f={queryParams:[d]};u&&(f.queryOption=c.ATTRIBUTE),s&&(f.startRecord=s),l&&(f.expectCount=l),i&&(f.prjCoordSys={epsgCode:i});const h=new ni(f),p=new ih(e);p.queryBySQL(h,(function(e){"processCompleted"===e.type?o(e):a(e)}))}static getFeatureProperties(e){let t=[];return Vg.isArray(e)&&e.length&&e.forEach(e=>{let n=e.get("attributes");n&&t.push(n)}),t}static isMatchAdministrativeName(e,t){if(Vg.isString(t)){let n=e.substr(0,2);return"张家"===n&&(n=e.substr(0,3)),!!t.match(new RegExp(n))}return!1}static getHighestMatchAdministration(e,t){let n=e.filter(e=>Vg.isMatchAdministrativeName(e.properties.Name,t)),r=0,i=null;return n.forEach(e=>{let n=0;Array.from(new Set(e.properties.Name.split(""))).forEach(e=>{t.includes(e)&&n++}),n>r&&(r=n,i=e)}),i}static setMask(e,t){if(!t)return;const n=t instanceof vd?t.getGeometry():t;if(!(n instanceof Zu)&&["MultiPolygon","Polygon"].indexOf(t.getType())<0)return;const r=t instanceof vd?t:new vd(t),i=new mm({fill:new sm({color:"black"})}),o=new Gg({source:new Fp({features:[r],wrapX:!1})}),a=function(e){const t=hp(e);e.context.globalCompositeOperation="destination-in",o.getSource().forEachFeature((function(n){t.drawFeature(n,i),e.context.globalCompositeOperation="source-over"}))},s=Array.isArray(e)?e:[e];Vg.unsetMask(s),s.forEach(e=>{e.classNameBak_=e.className_,e.className_="ol_mask_layer_"+e.ol_uid,e.clipRender=a,e.extentBak_=e.getExtent(),e.setExtent(o.getSource().getExtent()),e.on("postrender",a),e.changed()})}static unsetMask(e){const t=Array.isArray(e)?e:[e];for(let n=0;n<t.length;n++){const e=t[n];e.clipRender&&(e.un("postrender",e.clipRender),e.className_=e.classNameBak_,e.setExtent(e.extentBak),delete e.classNameBak_,delete e.clipRender,delete e.extentBak_,e.changed())}}}n("0d73");var Wg="#333",Hg=function(){function e(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Jp(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new sm({color:Wg}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:Fm.POINT,this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}return e.prototype.clone=function(){var t=this.getScale();return new e({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})},e.prototype.getOverflow=function(){return this.overflow_},e.prototype.getFont=function(){return this.font_},e.prototype.getMaxAngle=function(){return this.maxAngle_},e.prototype.getPlacement=function(){return this.placement_},e.prototype.getOffsetX=function(){return this.offsetX_},e.prototype.getOffsetY=function(){return this.offsetY_},e.prototype.getFill=function(){return this.fill_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.getText=function(){return this.text_},e.prototype.getTextAlign=function(){return this.textAlign_},e.prototype.getTextBaseline=function(){return this.textBaseline_},e.prototype.getBackgroundFill=function(){return this.backgroundFill_},e.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},e.prototype.getPadding=function(){return this.padding_},e.prototype.setOverflow=function(e){this.overflow_=e},e.prototype.setFont=function(e){this.font_=e},e.prototype.setMaxAngle=function(e){this.maxAngle_=e},e.prototype.setOffsetX=function(e){this.offsetX_=e},e.prototype.setOffsetY=function(e){this.offsetY_=e},e.prototype.setPlacement=function(e){this.placement_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setFill=function(e){this.fill_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Jp(void 0!==e?e:1)},e.prototype.setStroke=function(e){this.stroke_=e},e.prototype.setText=function(e){this.text_=e},e.prototype.setTextAlign=function(e){this.textAlign_=e},e.prototype.setTextBaseline=function(e){this.textBaseline_=e},e.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},e.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},e.prototype.setPadding=function(e){this.padding_=e},e}(),$g=Hg;var Kg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xg=function(e){function t(t){var n=e.call(this)||this;return n.map_=t,n.declutterTree_=null,n}return Kg(t,e),t.prototype.dispatchRenderEvent=function(e,t){Ds()},t.prototype.calculateMatrices2D=function(e){var t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;Uu(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),Gu(r,n)},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i,o,a,s){var l,c=t.viewState;function u(e,t,n){return i.call(o,t,e?n:null)}var d=c.projection,f=eu(e.slice(),d),h=[[0,0]];if(d.canWrapX()&&r){var p=d.getExtent(),m=Dc(p);h.push([-m,0],[m,0])}var g,v=t.layerStatesArray,y=v.length;this.declutterTree_&&(g=this.declutterTree_.all().map((function(e){return e.value})));for(var b=[],_=0;_<h.length;_++)for(var w=y-1;w>=0;--w){var x=v[w],S=x.layer;if(S.hasRenderer()&&Hp(x,c)&&a.call(s,S)){var C=S.getRenderer(),E=S.getSource();if(C&&E){var k=E.getWrapX()?f:e,O=u.bind(null,x.managed);b[0]=k[0]+h[_][0],b[1]=k[1]+h[_][1],l=C.forEachFeatureAtCoordinate(b,t,n,O,g)}if(l)return l}}},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){return Ds()},t.prototype.hasFeatureAtCoordinate=function(e,t,n,r,i,o){var a=this.forEachFeatureAtCoordinate(e,t,n,r,ms,this,i,o);return void 0!==a},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(e){this.declutterTree_=pp(e,this.declutterTree_)},t.prototype.scheduleExpireIconCache=function(e){Sg.canExpireCache()&&e.postRenderFunctions.push(Yg)},t}(is);function Yg(e,t){Sg.expire()}var Jg=Xg,Qg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zg=function(e){function t(t){var n=e.call(this,t)||this;n.fontChangeListenerKey_=Os(Ah,Ls.PROPERTYCHANGE,t.redrawText.bind(t)),n.element_=document.createElement("div");var r=n.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",n.element_.className=hl+" ol-layers";var i=t.getViewport();return i.insertBefore(n.element_,i.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return Qg(t,e),t.prototype.dispatchRenderEvent=function(e,t){var n=this.getMap();if(n.hasListener(e)){var r=new Qm(e,void 0,t);n.dispatchEvent(r)}},t.prototype.disposeInternal=function(){Is(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(Gp.PRECOMPOSE,t);var n=t.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),r=t.viewState;this.children_.length=0;for(var i=null,o=0,a=n.length;o<a;++o){var s=n[o];if(t.layerIndex=o,Hp(s,r)&&(s.sourceState==Ep.READY||s.sourceState==Ep.UNDEFINED)){var l=s.layer,c=l.render(t,i);c&&c!==i&&(this.children_.push(c),i=c)}}e.prototype.renderFrame.call(this,t),ol(this.element_,this.children_),this.dispatchRenderEvent(Gp.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,t,n,r,i){for(var o=t.viewState,a=t.layerStatesArray,s=a.length,l=s-1;l>=0;--l){var c=a[l],u=c.layer;if(u.hasRenderer()&&Hp(c,o)&&i(u)){var d=u.getRenderer(),f=d.getDataAtPixel(e,t,n);if(f){var h=r(u,f);if(h)return h}}}},t}(Jg),ev=Zg,tv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nv={LAYERS:"layers"},rv=function(e){function t(t){var n=this,r=t||{},i=bs({},r);delete i.layers;var o=r.layers;return n=e.call(this,i)||this,n.layersListenerKeys_=[],n.listenerKeys_={},n.addEventListener(Vs(nv.LAYERS),n.handleLayersChanged_),o?Array.isArray(o)?o=new _p(o.slice(),{unique:!0}):nc("function"===typeof o.getArray,43):o=new _p(void 0,{unique:!0}),n.setLayers(o),n}return tv(t,e),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(Is),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push(Os(e,mp.ADD,this.handleLayersAdd_,this),Os(e,mp.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(Is);_s(this.listenerKeys_);for(var n=e.getArray(),r=0,i=n.length;r<i;r++){var o=n[r];this.listenerKeys_[Fs(o)]=[Os(o,Ls.PROPERTYCHANGE,this.handleLayerChange_,this),Os(o,ks.CHANGE,this.handleLayerChange_,this)]}this.changed()},t.prototype.handleLayersAdd_=function(e){var t=e.element;this.listenerKeys_[Fs(t)]=[Os(t,Ls.PROPERTYCHANGE,this.handleLayerChange_,this),Os(t,ks.CHANGE,this.handleLayerChange_,this)],this.changed()},t.prototype.handleLayersRemove_=function(e){var t=e.element,n=Fs(t);this.listenerKeys_[n].forEach(Is),delete this.listenerKeys_[n],this.changed()},t.prototype.getLayers=function(){return this.get(nv.LAYERS)},t.prototype.setLayers=function(e){this.set(nv.LAYERS,e)},t.prototype.getLayersArray=function(e){var t=void 0!==e?e:[];return this.getLayers().forEach((function(e){e.getLayersArray(t)})),t},t.prototype.getLayerStatesArray=function(e){var t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));for(var r=this.getLayerState(),i=n,o=t.length;i<o;i++){var a=t[i];a.opacity*=r.opacity,a.visible=a.visible&&r.visible,a.maxResolution=Math.min(a.maxResolution,r.maxResolution),a.minResolution=Math.max(a.minResolution,r.minResolution),a.minZoom=Math.max(a.minZoom,r.minZoom),a.maxZoom=Math.min(a.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==a.extent?a.extent=Mc(a.extent,r.extent):a.extent=r.extent)}return t},t.prototype.getSourceState=function(){return Ep.READY},t}(Up),iv=rv,ov=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),av=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.map=n,i.frameState=void 0!==r?r:null,i}return ov(t,e),t}(as),sv=av,lv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cv=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,o)||this;return a.originalEvent=r,a.pixel_=null,a.coordinate_=null,a.dragging=void 0!==i&&i,a}return lv(t,e),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){e.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){e.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},t}(sv),uv=cv,dv={SINGLECLICK:"singleclick",CLICK:ks.CLICK,DBLCLICK:ks.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},fv={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},hv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pv=function(e){function t(t,n){var r=e.call(this,t)||this;r.map_=t,r.clickTimeoutId_,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=n?n*Js:Js,r.down_=null;var i=r.map_.getViewport();return r.activePointers_=0,r.trackedTouches_={},r.element_=i,r.pointerdownListenerKey_=Os(i,fv.POINTERDOWN,r.handlePointerDown_,r),r.originalPointerMoveEvent_,r.relayedListenerKey_=Os(i,fv.POINTERMOVE,r.relayEvent_,r),r.boundHandleTouchMove_=r.handleTouchMove_.bind(r),r.element_.addEventListener(ks.TOUCHMOVE,r.boundHandleTouchMove_,!!el&&{passive:!1}),r}return hv(t,e),t.prototype.emulateClick_=function(e){var t=new uv(dv.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new uv(dv.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new uv(dv.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var t=e;t.type==dv.POINTERUP||t.type==dv.POINTERCANCEL?delete this.trackedTouches_[t.pointerId]:t.type==dv.POINTERDOWN&&(this.trackedTouches_[t.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var t=new uv(dv.POINTERUP,this.map_,e);this.dispatchEvent(t),t.propagationStopped||this.dragging_||!this.isMouseActionButton_(e)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(Is),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.updateActivePointers_(e);var t=new uv(dv.POINTERDOWN,this.map_,e);this.dispatchEvent(t),this.down_=e,0===this.dragListenerKeys_.length&&(this.dragListenerKeys_.push(Os(document,dv.POINTERMOVE,this.handlePointerMove_,this),Os(document,dv.POINTERUP,this.handlePointerUp_,this),Os(this.element_,dv.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==document&&this.dragListenerKeys_.push(Os(this.element_.getRootNode(),dv.POINTERUP,this.handlePointerUp_,this)))},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.dragging_=!0;var t=new uv(dv.POINTERDRAG,this.map_,e,this.dragging_);this.dispatchEvent(t)}},t.prototype.relayEvent_=function(e){this.originalPointerMoveEvent_=e;var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new uv(e.type,this.map_,e,t))},t.prototype.handleTouchMove_=function(e){this.originalPointerMoveEvent_&&!this.originalPointerMoveEvent_.defaultPrevented||e.preventDefault()},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Is(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ks.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Is(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Is),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},t}(Es),mv=pv,gv={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},vv=1/0,yv=function(){function e(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return e.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,_s(this.queuedElements_)},e.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var r=this.keyFunction_(n);return delete this.queuedElements_[r],n},e.prototype.enqueue=function(e){nc(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=vv&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},e.prototype.getCount=function(){return this.elements_.length},e.prototype.getLeftChildIndex_=function(e){return 2*e+1},e.prototype.getRightChildIndex_=function(e){return 2*e+2},e.prototype.getParentIndex_=function(e){return e-1>>1},e.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},e.prototype.isEmpty=function(){return 0===this.elements_.length},e.prototype.isKeyQueued=function(e){return e in this.queuedElements_},e.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},e.prototype.siftUp_=function(e){var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;while(e<r>>1){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),c=l<r&&n[l]<n[s]?l:s;t[e]=t[c],n[e]=n[c],e=c}t[e]=i,n[e]=o,this.siftDown_(a,e)},e.prototype.siftDown_=function(e,t){var n=this.elements_,r=this.priorities_,i=n[t],o=r[t];while(t>e){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},e.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(t=0;t<s;++t)e=i[t],n=r(e),n==vv?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=n,i[a++]=e);i.length=a,o.length=a,this.heapify_()},e}(),bv=yv,_v={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},wv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xv=function(e){function t(t,n){var r=e.call(this,(function(e){return t.apply(null,e)}),(function(e){return e[0].getKey()}))||this;return r.boundHandleTileChange_=r.handleTileChange.bind(r),r.tileChangeCallback_=n,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return wv(t,e),t.prototype.enqueue=function(t){var n=e.prototype.enqueue.call(this,t);if(n){var r=t[0];r.addEventListener(ks.CHANGE,this.boundHandleTileChange_)}return n},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var t=e.target,n=t.getState();if(t.hifi&&n===_v.LOADED||n===_v.ERROR||n===_v.EMPTY){t.removeEventListener(ks.CHANGE,this.boundHandleTileChange_);var r=t.getKey();r in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[r],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,t){var n,r,i,o=0;while(this.tilesLoading_<e&&o<t&&this.getCount()>0)r=this.dequeue()[0],i=r.getKey(),n=r.getState(),n!==_v.IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,r.load())},t}(bv),Sv=xv;function Cv(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return vv;if(!e.wantedTiles[n][t.getKey()])return vv;var o=e.viewState.center,a=r[0]-o[0],s=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+s*s)/i}var Ev={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},kv=42,Ov=256;function Tv(e,t,n){return function(r,i,o,a){if(r){var s=t?0:o[0]*i,l=t?0:o[1]*i,c=e[0]+s/2,u=e[2]-s/2,d=e[1]+l/2,f=e[3]-l/2;c>u&&(c=(u+c)/2,u=c),d>f&&(d=(f+d)/2,f=d);var h=wl(r[0],c,u),p=wl(r[1],d,f),m=30*i;return a&&n&&(h+=-m*Math.log(1+Math.max(0,c-r[0])/m)+m*Math.log(1+Math.max(0,r[0]-u)/m),p+=-m*Math.log(1+Math.max(0,d-r[1])/m)+m*Math.log(1+Math.max(0,r[1]-f)/m)),[h,p]}}}function Iv(e){return e}function Av(e,t,n,r){var i=Dc(t)/n[0],o=Pc(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function Rv(e,t,n){var r=Math.min(e,t),i=50;return r*=Math.log(1+i*Math.max(0,e/t-1))/i+1,n&&(r=Math.max(r,n),r/=Math.log(1+i*Math.max(0,n/e-1))/i+1),wl(r,n/2,2*t)}function Pv(e,t,n,r){return function(i,o,a,s){if(void 0!==i){var l=e[0],c=e[e.length-1],u=n?Av(l,n,a,r):l;if(s){var d=void 0===t||t;return d?Rv(i,u,c):wl(i,c,u)}var f=Math.min(u,i),h=Math.floor(us(e,f,o));return e[h]>u&&h<e.length-1?e[h+1]:e[h]}}}function Mv(e,t,n,r,i,o){return function(a,s,l,c){if(void 0!==a){var u=i?Av(t,i,l,o):t,d=void 0!==n?n:0;if(c){var f=void 0===r||r;return f?Rv(a,u,d):wl(a,d,u)}var h=1e-9,p=Math.ceil(Math.log(t/u)/Math.log(e)-h),m=-s*(.5-h)+.5,g=Math.min(u,a),v=Math.floor(Math.log(t/g)/Math.log(e)+m),y=Math.max(p,v),b=t/Math.pow(e,y);return wl(b,d,u)}}}function Nv(e,t,n,r,i){return function(o,a,s,l){if(void 0!==o){var c=r?Av(e,r,s,i):e,u=void 0===n||n;return u&&l?Rv(o,c,t):wl(o,t,c)}}}function Lv(e){return void 0!==e?0:void 0}function Dv(e){return void 0!==e?e:void 0}function jv(e){var t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?(e=Math.floor(e/t+.5)*t,e):void 0}}function Fv(e){var t=e||Ol(5);return function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}function Bv(e){return Math.pow(e,3)}function qv(e){return 1-Bv(1-e)}function zv(e){return 3*e*e-2*e*e*e}function Uv(e){return e}var Gv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vv=0,Wv=function(e){function t(t){var n=e.call(this)||this,r=bs({},t);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=uu(r.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.cancelAnchor_=void 0,r.center&&(r.center=wu(r.center,n.projection_)),r.extent&&(r.extent=Su(r.extent,n.projection_)),n.applyOptions_(r),n}return Gv(t,e),t.prototype.applyOptions_=function(e){var t={},n=Kv(e);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=e.resolutions,this.minZoom_=n.minZoom;var r=$v(e),i=n.constraint,o=Xv(e);this.constraints_={center:r,resolution:i,rotation:o},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom),this.setProperties(t),this.options_=e},t.prototype.getUpdatedOptions_=function(e){var t=bs({},this.options_);return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),bs({},t,e)},t.prototype.animate=function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var t=new Array(arguments.length),n=0;n<t.length;++n){var r=arguments[n];r.center&&(r=bs({},r),r.center=wu(r.center,this.getProjection())),r.anchor&&(r=bs({},r),r.anchor=wu(r.anchor,this.getProjection())),t[n]=r}this.animateInternal.apply(this,t)},t.prototype.animateInternal=function(e){var t,n=arguments.length;if(n>1&&"function"===typeof arguments[n-1]&&(t=arguments[n-1],--n),!this.isDef()){var r=arguments[n-1];return r.center&&this.setCenterInternal(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(t&&Hv(t,!0))}for(var i=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,s=this.targetRotation_,l=[],c=0;c<n;++c){var u=arguments[c],d={start:i,complete:!1,anchor:u.anchor,duration:void 0!==u.duration?u.duration:1e3,easing:u.easing||zv,callback:t};if(u.center&&(d.sourceCenter=o,d.targetCenter=u.center.slice(),o=d.targetCenter),void 0!==u.zoom?(d.sourceResolution=a,d.targetResolution=this.getResolutionForZoom(u.zoom),a=d.targetResolution):u.resolution&&(d.sourceResolution=a,d.targetResolution=u.resolution,a=d.targetResolution),void 0!==u.rotation){d.sourceRotation=s;var f=Tl(u.rotation-s+Math.PI,2*Math.PI)-Math.PI;d.targetRotation=s+f,s=d.targetRotation}Yv(d)?d.complete=!0:i+=d.duration,l.push(d)}this.animations_.push(l),this.setHint(yg.ANIMATING,1),this.updateAnimations_()},t.prototype.getAnimating=function(){return this.hints_[yg.ANIMATING]>0},t.prototype.getInteracting=function(){return this.hints_[yg.INTERACTING]>0},t.prototype.cancelAnimations=function(){var e;this.setHint(yg.ANIMATING,-this.hints_[yg.ANIMATING]);for(var t=0,n=this.animations_.length;t<n;++t){var r=this.animations_[t];if(r[0].callback&&Hv(r[0].callback,!1),!e)for(var i=0,o=r.length;i<o;++i){var a=r[i];if(!a.complete){e=a.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,o=0,a=r.length;o<a;++o){var s=r[o];if(!s.complete){var l=e-s.start,c=s.duration>0?l/s.duration:1;c>=1?(s.complete=!0,c=1):i=!1;var u=s.easing(c);if(s.sourceCenter){var d=s.sourceCenter[0],f=s.sourceCenter[1],h=s.targetCenter[0],p=s.targetCenter[1],m=d+u*(h-d),g=f+u*(p-f);this.targetCenter_=[m,g]}if(s.sourceResolution&&s.targetResolution){var v=1===u?s.targetResolution:s.sourceResolution+u*(s.targetResolution-s.sourceResolution);if(s.anchor){var y=this.getViewportSize_(this.getRotation()),b=this.constraints_.resolution(v,0,y,!0);this.targetCenter_=this.calculateCenterZoom(b,s.anchor)}this.targetResolution_=v,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){var _=1===u?Tl(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+u*(s.targetRotation-s.sourceRotation);if(s.anchor){var w=this.constraints_.rotation(_,!0);this.targetCenter_=this.calculateCenterRotate(w,s.anchor)}this.targetRotation_=_}if(this.applyTargetState_(!0),t=!0,!s.complete)break}}if(i){this.animations_[n]=null,this.setHint(yg.ANIMATING,-1);var x=r[0].callback;x&&Hv(x,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(e,t){var n,r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],Qc(n,e-this.getRotation()),Xc(n,t)),n},t.prototype.calculateCenterZoom=function(e,t){var n,r=this.getCenterInternal(),i=this.getResolution();if(void 0!==r&&void 0!==i){var o=t[0]-e*(t[0]-r[0])/i,a=t[1]-e*(t[1]-r[1])/i;n=[o,a]}return n},t.prototype.getViewportSize_=function(e){var t=this.viewportSize_;if(e){var n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t},t.prototype.setViewportSize=function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},t.prototype.getCenter=function(){var e=this.getCenterInternal();return e?_u(e,this.getProjection()):e},t.prototype.getCenterInternal=function(){return this.get(Ev.CENTER)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){var t=this.calculateExtentInternal(e);return xu(t,this.getProjection())},t.prototype.calculateExtentInternal=function(e){var t=e||this.getViewportSize_(),n=this.getCenterInternal();nc(n,1);var r=this.getResolution();nc(void 0!==r,2);var i=this.getRotation();return nc(void 0!==i,3),Rc(n,r,i,t)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.setConstrainResolution=function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(Ev.RESOLUTION)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,t){return this.getResolutionForExtentInternal(Su(e,this.getProjection()),t)},t.prototype.getResolutionForExtentInternal=function(e,t){var n=t||this.getViewportSize_(),r=Dc(e)/n[0],i=Pc(e)/n[1];return Math.max(r,i)},t.prototype.getResolutionForValueFunction=function(e){var t=e||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){var r=n/Math.pow(t,e*i);return r}},t.prototype.getRotation=function(){return this.get(Ev.ROTATION)},t.prototype.getValueForResolutionFunction=function(e){var t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){var r=Math.log(n/e)/t/i;return r}},t.prototype.getState=function(){var e=this.getCenterInternal(),t=this.getProjection(),n=this.getResolution(),r=this.getRotation();return{center:e.slice(0),projection:void 0!==t?t:null,resolution:n,rotation:r,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e},t.prototype.getZoomForResolution=function(e){var t,n,r=this.minZoom_||0;if(this.resolutions_){var i=us(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)},t.prototype.getResolutionForZoom=function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var t=wl(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,wl(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)},t.prototype.fit=function(e,t){var n,r=bs({size:this.getViewportSize_()},t||{});if(nc(Array.isArray(e)||"function"===typeof e.getSimplifiedGeometry,24),Array.isArray(e)){nc(!Fc(e),25);var i=Su(e,this.getProjection());n=Nf(i)}else if(e.getType()===Vc.CIRCLE){i=Su(e.getExtent(),this.getProjection());n=Nf(i),n.rotate(this.getRotation(),Ic(i))}else{var o=bu();n=o?e.clone().transform(o,this.getProjection()):e}this.fitInternal(n,r)},t.prototype.fitInternal=function(e,t){var n=t||{},r=n.size;r||(r=this.getViewportSize_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;for(var s=e.getFlatCoordinates(),l=this.getRotation(),c=Math.cos(-l),u=Math.sin(-l),d=1/0,f=1/0,h=-1/0,p=-1/0,m=e.getStride(),g=0,v=s.length;g<v;g+=m){var y=s[g]*c-s[g+1]*u,b=s[g]*u+s[g+1]*c;d=Math.min(d,y),f=Math.min(f,b),h=Math.max(h,y),p=Math.max(p,b)}var _=this.getResolutionForExtentInternal([d,f,h,p],[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);_=isNaN(_)?i:Math.max(_,i),_=this.getConstrainedResolution(_,a?0:1),u=-u;var w=(d+h)/2,x=(f+p)/2;w+=(o[1]-o[3])/2*_,x+=(o[0]-o[2])/2*_;var S=w*c-x*u,C=x*c+w*u,E=[S,C],k=n.callback?n.callback:vs;void 0!==n.duration?this.animateInternal({resolution:_,center:this.getConstrainedCenter(E,_),duration:n.duration,easing:n.easing},k):(this.targetResolution_=_,this.targetCenter_=E,this.applyTargetState_(!1,!0),Hv(k,!0))},t.prototype.centerOn=function(e,t,n){this.centerOnInternal(wu(e,this.getProjection()),t,n)},t.prototype.centerOnInternal=function(e,t,n){var r=this.getRotation(),i=Math.cos(-r),o=Math.sin(-r),a=e[0]*i-e[1]*o,s=e[1]*i+e[0]*o,l=this.getResolution();a+=(t[0]/2-n[0])*l,s+=(n[1]-t[1]/2)*l,o=-o;var c=a*i-s*o,u=s*i+a*o;this.setCenterInternal([c,u])},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(e){var t=_u(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustCenterInternal=function(e){var t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustResolution=function(e,t){var n=t&&wu(t,this.getProjection());this.adjustResolutionInternal(e,n)},t.prototype.adjustResolutionInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()},t.prototype.adjustZoom=function(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)},t.prototype.adjustRotation=function(e,t){t&&(t=wu(t,this.getProjection())),this.adjustRotationInternal(e,t)},t.prototype.adjustRotationInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()},t.prototype.setCenter=function(e){this.setCenterInternal(wu(e,this.getProjection()))},t.prototype.setCenterInternal=function(e){this.targetCenter_=e,this.applyTargetState_()},t.prototype.setHint=function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.targetResolution_=e,this.applyTargetState_()},t.prototype.setRotation=function(e){this.targetRotation_=e,this.applyTargetState_()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t.prototype.applyTargetState_=function(e,t){var n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),a=this.constraints_.center(this.targetCenter_,o,i,n);this.get(Ev.ROTATION)!==r&&this.set(Ev.ROTATION,r),this.get(Ev.RESOLUTION)!==o&&this.set(Ev.RESOLUTION,o),this.get(Ev.CENTER)&&Jc(this.get(Ev.CENTER),a)||this.set(Ev.CENTER,a),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0},t.prototype.resolveConstraints=function(e,t,n){var r=void 0!==e?e:200,i=t||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a);if(0===r&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var c=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Jc(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:r,easing:qv,anchor:c}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(yg.INTERACTING,1)},t.prototype.endInteraction=function(e,t,n){var r=n&&wu(n,this.getProjection());this.endInteractionInternal(e,t,r)},t.prototype.endInteractionInternal=function(e,t,n){this.setHint(yg.INTERACTING,-1),this.resolveConstraints(e,t,n)},t.prototype.getConstrainedCenter=function(e,t){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)},t.prototype.getConstrainedZoom=function(e,t){var n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))},t.prototype.getConstrainedResolution=function(e,t){var n=t||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,n,r)},t}(Ws);function Hv(e,t){setTimeout((function(){e(t)}),0)}function $v(e){if(void 0!==e.extent){var t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return Tv(e.extent,e.constrainOnlyCenter,t)}var n=uu(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,Tv(r,!1,!1)}return Iv}function Kv(e){var t,n,r,i=28,o=2,a=void 0!==e.minZoom?e.minZoom:Vv,s=void 0!==e.maxZoom?e.maxZoom:i,l=void 0!==e.zoomFactor?e.zoomFactor:o,c=void 0!==e.multiWorld&&e.multiWorld,u=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,d=void 0!==e.showFullExtent&&e.showFullExtent,f=uu(e.projection,"EPSG:3857"),h=f.getExtent(),p=e.constrainOnlyCenter,m=e.extent;if(c||m||!f.isGlobal()||(p=!1,m=h),void 0!==e.resolutions){var g=e.resolutions;n=g[a],r=void 0!==g[s]?g[s]:g[g.length-1],t=e.constrainResolution?Pv(g,u,!p&&m,d):Nv(n,r,u,!p&&m,d)}else{var v=h?Math.max(Dc(h),Pc(h)):360*ul[dl.DEGREES]/f.getMetersPerUnit(),y=v/Ov/Math.pow(o,Vv),b=y/Math.pow(o,i-Vv);n=e.maxResolution,void 0!==n?a=0:n=y/Math.pow(l,a),r=e.minResolution,void 0===r&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(l,s):y/Math.pow(l,s):b),s=a+Math.floor(Math.log(n/r)/Math.log(l)),r=n/Math.pow(l,s-a),t=e.constrainResolution?Mv(l,n,r,u,!p&&m,d):Nv(n,r,u,!p&&m,d)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:a,zoomFactor:l}}function Xv(e){var t=void 0===e.enableRotation||e.enableRotation;if(t){var n=e.constrainRotation;return void 0===n||!0===n?Fv():!1===n?Dv:"number"===typeof n?jv(n):Dv}return Lv}function Yv(e){return!(e.sourceCenter&&e.targetCenter&&!Jc(e.sourceCenter,e.targetCenter))&&(e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation)}var Jv=Wv,Qv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zv=function(e){function t(t){var n=e.call(this)||this,r=ey(t);return n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,n.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:Js,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Pu(),n.pixelToCoordinateTransform_=Pu(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=t.moveTolerance,n.keyboardEventTarget_=r.keyboardEventTarget,n.keyHandlerKeys_=null,n.controls=r.controls||new _p,n.interactions=r.interactions||new _p,n.overlays_=r.overlays,n.overlayIdIndex_={},n.renderer_=null,n.handleResize_,n.postRenderFunctions_=[],n.tileQueue_=new Sv(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addEventListener(Vs(gv.LAYERGROUP),n.handleLayerGroupChanged_),n.addEventListener(Vs(gv.VIEW),n.handleViewChanged_),n.addEventListener(Vs(gv.SIZE),n.handleSizeChanged_),n.addEventListener(Vs(gv.TARGET),n.handleTargetChanged_),n.setProperties(r.values),n.controls.forEach(function(e){e.setMap(this)}.bind(n)),n.controls.addEventListener(mp.ADD,function(e){e.element.setMap(this)}.bind(n)),n.controls.addEventListener(mp.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.interactions.forEach(function(e){e.setMap(this)}.bind(n)),n.interactions.addEventListener(mp.ADD,function(e){e.element.setMap(this)}.bind(n)),n.interactions.addEventListener(mp.REMOVE,function(e){e.element.setMap(null)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n.overlays_.addEventListener(mp.ADD,function(e){this.addOverlayInternal_(e.element)}.bind(n)),n.overlays_.addEventListener(mp.REMOVE,function(e){var t=e.element,n=t.getId();void 0!==n&&delete this.overlayIdIndex_[n.toString()],e.element.setMap(null)}.bind(n)),n}return Qv(t,e),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){var t=this.getLayerGroup().getLayers();t.push(e)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.setTarget(null),e.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,t,n){if(this.frameState_){var r=this.getCoordinateFromPixelInternal(e);n=void 0!==n?n:{};var i=void 0!==n.hitTolerance?n.hitTolerance*this.frameState_.pixelRatio:0,o=void 0!==n.layerFilter?n.layerFilter:ms,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,a,t,null,o,null)}},t.prototype.getFeaturesAtPixel=function(e,t){var n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n},t.prototype.forEachLayerAtPixel=function(e,t,n){if(this.frameState_){var r=n||{},i=void 0!==r.hitTolerance?r.hitTolerance*this.frameState_.pixelRatio:0,o=r.layerFilter||ms;return this.renderer_.forEachLayerAtPixel(e,this.frameState_,i,t,o)}},t.prototype.hasFeatureAtPixel=function(e,t){if(!this.frameState_)return!1;var n=this.getCoordinateFromPixelInternal(e);t=void 0!==t?t:{};var r=void 0!==t.layerFilter?t.layerFilter:ms,i=void 0!==t.hitTolerance?t.hitTolerance*this.frameState_.pixelRatio:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventCoordinateInternal=function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var t=this.viewport_.getBoundingClientRect(),n="changedTouches"in e?e.changedTouches[0]:e;return[n.clientX-t.left,n.clientY-t.top]},t.prototype.getTarget=function(){return this.get(gv.TARGET)},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"===typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){return _u(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(e){var t=this.frameState_;return t?ju(t.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get(gv.LAYERGROUP)},t.prototype.getLayers=function(){var e=this.getLayerGroup().getLayers();return e},t.prototype.getLoading=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer,i=r.getSource();if(i&&i.loading)return!0}return!1},t.prototype.getPixelFromCoordinate=function(e){var t=wu(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)},t.prototype.getPixelFromCoordinateInternal=function(e){var t=this.frameState_;return t?ju(t.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get(gv.SIZE)},t.prototype.getView=function(){return this.get(gv.VIEW)},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getTilePriority=function(e,t,n,r){return Cv(this.frameState_,e,t,n,r)},t.prototype.handleBrowserEvent=function(e,t){var n=t||e.type,r=new uv(n,this,e);this.handleMapBrowserEvent(r)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){var t=e.originalEvent,n=t.type;if(n===fv.POINTERDOWN||n===ks.WHEEL||n===ks.KEYDOWN){var r=this.viewport_.getRootNode?this.viewport_.getRootNode():document,i=r===document?t.target:r.elementFromPoint(t.clientX,t.clientY);if(this.overlayContainerStopEvent_.contains(i)||!(r===document?document.documentElement:r).contains(i))return}e.frameState=this.frameState_;var o=this.getInteractions().getArray();if(!1!==this.dispatchEvent(e))for(var a=o.length-1;a>=0;a--){var s=o[a];if(s.getActive()){var l=s.handleEvent(e);if(!l)break}}}},t.prototype.handlePostRender=function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var n=this.maxTilesLoading_,r=n;if(e){var i=e.viewHints;if(i[yg.ANIMATING]||i[yg.INTERACTING]){var o=!Zs&&Date.now()-e.time>8;n=o?0:8,r=o?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}!e||!this.hasListener(Gp.RENDERCOMPLETE)||e.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(Gp.RENDERCOMPLETE,e);for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,e);a.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){var e;if(this.getTarget()&&(e=this.getTargetElement()),this.mapBrowserEventHandler_){for(var t=0,n=this.keyHandlerKeys_.length;t<n;++t)Is(this.keyHandlerKeys_[t]);this.keyHandlerKeys_=null,this.viewport_.removeEventListener(ks.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(ks.WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(ks.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,rl(this.viewport_)}if(e){for(var r in e.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new mv(this,this.moveTolerance_),dv)this.mapBrowserEventHandler_.addEventListener(dv[r],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(ks.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(ks.WHEEL,this.boundHandleBrowserEvent_,!!el&&{passive:!1});var i=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.keyHandlerKeys_=[Os(i,ks.KEYDOWN,this.handleBrowserEvent,this),Os(i,ks.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(ks.RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Is(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Is(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Os(e,Ls.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Os(e,ks.CHANGE,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(Is),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.layerGroupPropertyListenerKeys_=[Os(e,Ls.PROPERTYCHANGE,this.render,this),Os(e,ks.CHANGE,this.render,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,n=e.length;t<n;++t){var r=e[t].layer;r.hasRenderer()&&r.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){var t=this.getLayerGroup().getLayers();return t.remove(e)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var t=this.getSize(),n=this.getView(),r=this.frameState_,i=null;if(void 0!==t&&Xp(t)&&n&&n.isDef()){var o=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),a=n.getState();i={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterItems:r?r.declutterItems:[],extent:Rc(a.center,a.resolution,a.rotation,t),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:t,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:a,viewHints:o,wantedTiles:{}}}if(this.frameState_=i,this.renderer_.renderFrame(i),i){if(i.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,i.postRenderFunctions),r){var s=!this.previousExtent_||!Fc(this.previousExtent_)&&!yc(i.extent,this.previousExtent_);s&&(this.dispatchEvent(new sv(Hs.MOVESTART,this,r)),this.previousExtent_=pc(this.previousExtent_))}var l=this.previousExtent_&&!i.viewHints[yg.ANIMATING]&&!i.viewHints[yg.INTERACTING]&&!yc(i.extent,this.previousExtent_);l&&(this.dispatchEvent(new sv(Hs.MOVEEND,this,i)),ac(i.extent,this.previousExtent_))}this.dispatchEvent(new sv(Hs.POSTRENDER,this,i)),this.postRenderTimeoutHandle_=setTimeout(this.handlePostRender.bind(this),0)},t.prototype.setLayerGroup=function(e){this.set(gv.LAYERGROUP,e)},t.prototype.setSize=function(e){this.set(gv.SIZE,e)},t.prototype.setTarget=function(e){this.set(gv.TARGET,e)},t.prototype.setView=function(e){this.set(gv.VIEW,e)},t.prototype.updateSize=function(){var e=this.getTargetElement();if(e){var t=getComputedStyle(e);this.setSize([e.offsetWidth-parseFloat(t["borderLeftWidth"])-parseFloat(t["paddingLeft"])-parseFloat(t["paddingRight"])-parseFloat(t["borderRightWidth"]),e.offsetHeight-parseFloat(t["borderTopWidth"])-parseFloat(t["paddingTop"])-parseFloat(t["paddingBottom"])-parseFloat(t["borderBottomWidth"])])}else this.setSize(void 0);this.updateViewportSize_()},t.prototype.updateViewportSize_=function(){var e=this.getView();if(e){var t=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(t=[parseInt(n.width,10),parseInt(n.height,10)]),e.setViewportSize(t)}},t}(Ws);function ey(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"===typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var n,r,i,o={},a=e.layers&&"function"===typeof e.layers.getLayers?e.layers:new iv({layers:e.layers});return o[gv.LAYERGROUP]=a,o[gv.TARGET]=e.target,o[gv.VIEW]=void 0!==e.view?e.view:new Jv,void 0!==e.controls&&(Array.isArray(e.controls)?n=new _p(e.controls.slice()):(nc("function"===typeof e.controls.getArray,47),n=e.controls)),void 0!==e.interactions&&(Array.isArray(e.interactions)?r=new _p(e.interactions.slice()):(nc("function"===typeof e.interactions.getArray,48),r=e.interactions)),void 0!==e.overlays?Array.isArray(e.overlays)?i=new _p(e.overlays.slice()):(nc("function"===typeof e.overlays.getArray,49),i=e.overlays):i=new _p,{controls:n,interactions:r,keyboardEventTarget:t,overlays:i,values:o}}var ty=Zv,ny=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ry=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this,n.ulElement_=document.createElement("ul"),n.collapsed_=void 0===r.collapsed||r.collapsed,n.overrideCollapsible_=void 0!==r.collapsible,n.collapsible_=void 0===r.collapsible||r.collapsible,n.collapsible_||(n.collapsed_=!1);var i=void 0!==r.className?r.className:"ol-attribution",o=void 0!==r.tipLabel?r.tipLabel:"Attributions",a=void 0!==r.collapseLabel?r.collapseLabel:"»";"string"===typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a):n.collapseLabel_=a;var s=void 0!==r.label?r.label:"i";"string"===typeof s?(n.label_=document.createElement("span"),n.label_.textContent=s):n.label_=s;var l=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=o,c.appendChild(l),c.addEventListener(ks.CLICK,n.handleClick_.bind(n),!1);var u=i+" "+hl+" "+pl+(n.collapsed_&&n.collapsible_?" "+ml:"")+(n.collapsible_?"":" ol-uncollapsible"),d=n.element;return d.className=u,d.appendChild(n.ulElement_),d.appendChild(c),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return ny(t,e),t.prototype.collectSourceAttributions_=function(e){for(var t={},n=[],r=e.layerStatesArray,i=0,o=r.length;i<o;++i){var a=r[i];if(Hp(a,e.viewState)){var s=a.layer.getSource();if(s){var l=s.getAttributions();if(l){var c=l(e);if(c)if(this.overrideCollapsible_||!1!==s.getAttributionsCollapsible()||this.setCollapsible(!1),Array.isArray(c))for(var u=0,d=c.length;u<d;++u)c[u]in t||(n.push(c[u]),t[c[u]]=!0);else c in t||(n.push(c),t[c]=!0)}}}}return n},t.prototype.updateElement_=function(e){if(e){var t=this.collectSourceAttributions_(e),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!hs(t,this.renderedAttributions_)){il(this.ulElement_);for(var r=0,i=t.length;r<i;++r){var o=document.createElement("li");o.innerHTML=t[r],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle(ml),this.collapsed_?nl(this.collapseLabel_,this.label_):nl(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.render=function(e){this.updateElement_(e.frameState)},t}(ll),iy=ry,oy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ay=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),render:r.render,target:r.target})||this;var i=void 0!==r.className?r.className:"ol-rotate",o=void 0!==r.label?r.label:"⇧";n.label_=null,"string"===typeof o?(n.label_=document.createElement("span"),n.label_.className="ol-compass",n.label_.textContent=o):(n.label_=o,n.label_.classList.add("ol-compass"));var a=r.tipLabel?r.tipLabel:"Reset rotation",s=document.createElement("button");s.className=i+"-reset",s.setAttribute("type","button"),s.title=a,s.appendChild(n.label_),s.addEventListener(ks.CLICK,n.handleClick_.bind(n),!1);var l=i+" "+hl+" "+pl,c=n.element;return c.className=l,c.appendChild(s),n.callResetNorth_=r.resetNorth?r.resetNorth:void 0,n.duration_=void 0!==r.duration?r.duration:250,n.autoHide_=void 0===r.autoHide||r.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(fl),n}return oy(t,e),t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var e=this.getMap(),t=e.getView();if(t){var n=t.getRotation();void 0!==n&&(this.duration_>0&&n%(2*Math.PI)!==0?t.animate({rotation:0,duration:this.duration_,easing:qv}):t.setRotation(0))}},t.prototype.render=function(e){var t=e.frameState;if(t){var n=t.viewState.rotation;if(n!=this.rotation_){var r="rotate("+n+"rad)";if(this.autoHide_){var i=this.element.classList.contains(fl);i||0!==n?i&&0!==n&&this.element.classList.remove(fl):this.element.classList.add(fl)}this.label_.style.transform=r}this.rotation_=n}},t}(ll),sy=ay,ly=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cy=function(e){function t(t){var n=this,r=t||{};n=e.call(this,{element:document.createElement("div"),target:r.target})||this;var i=void 0!==r.className?r.className:"ol-zoom",o=void 0!==r.delta?r.delta:1,a=void 0!==r.zoomInLabel?r.zoomInLabel:"+",s=void 0!==r.zoomOutLabel?r.zoomOutLabel:"−",l=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",c=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=i+"-in",u.setAttribute("type","button"),u.title=l,u.appendChild("string"===typeof a?document.createTextNode(a):a),u.addEventListener(ks.CLICK,n.handleClick_.bind(n,o),!1);var d=document.createElement("button");d.className=i+"-out",d.setAttribute("type","button"),d.title=c,d.appendChild("string"===typeof s?document.createTextNode(s):s),d.addEventListener(ks.CLICK,n.handleClick_.bind(n,-o),!1);var f=i+" "+hl+" "+pl,h=n.element;return h.className=f,h.appendChild(u),h.appendChild(d),n.duration_=void 0!==r.duration?r.duration:250,n}return ly(t,e),t.prototype.handleClick_=function(e,t){t.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var t=this.getMap(),n=t.getView();if(n){var r=n.getZoom();if(void 0!==r){var i=n.getConstrainedZoom(r+e);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:i,duration:this.duration_,easing:qv})):n.setZoom(i)}}},t}(ll),uy=cy;function dy(e){var t=e||{},n=new _p,r=void 0===t.zoom||t.zoom;r&&n.push(new uy(t.zoomOptions));var i=void 0===t.rotate||t.rotate;i&&n.push(new sy(t.rotateOptions));var o=void 0===t.attribution||t.attribution;return o&&n.push(new iy(t.attributionOptions)),n}var fy={ACTIVE:"active"},hy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),py=function(e){function t(t){var n=e.call(this)||this;return t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return hy(t,e),t.prototype.getActive=function(){return this.get(fy.ACTIVE)},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set(fy.ACTIVE,e)},t.prototype.setMap=function(e){this.map_=e},t}(Ws);function my(e,t,n){var r=e.getCenterInternal();if(r){var i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:Uv,center:e.getConstrainedCenter(i)})}}function gy(e,t,n,r){var i=e.getZoom();if(void 0!==i){var o=e.getConstrainedZoom(i+t),a=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:a,anchor:n,duration:void 0!==r?r:250,easing:qv})}}var vy=py,yy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),by=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:250,n}return yy(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==dv.DBLCLICK){var n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_,a=r.getView();gy(a,o,i,this.duration_),e.preventDefault(),t=!0}return!t},t}(vy),_y=by,wy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xy=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,r)||this,r.handleDownEvent&&(n.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(n.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(n.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(n.handleUpEvent=r.handleUpEvent),r.stopDown&&(n.stopDown=r.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return wy(t,e),t.prototype.getPointerCount=function(){return this.targetPointers.length},t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.originalEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==dv.POINTERDRAG)this.handleDragEvent(e),e.preventDefault();else if(e.type==dv.POINTERUP){var n=this.handleUpEvent(e);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(e.type==dv.POINTERDOWN){var r=this.handleDownEvent(e);this.handlingDownUpSequence=r,t=this.stopDown(r)}else e.type==dv.POINTERMOVE&&this.handleMoveEvent(e);return!t},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){if(Cy(e)){var t=e.originalEvent,n=t.pointerId.toString();e.type==dv.POINTERUP?delete this.trackedPointers_[n]:(e.type==dv.POINTERDOWN||n in this.trackedPointers_)&&(this.trackedPointers_[n]=t),this.targetPointers=ws(this.trackedPointers_)}},t}(vy);function Sy(e){for(var t=e.length,n=0,r=0,i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return[n/t,r/t]}function Cy(e){var t=e.type;return t===dv.POINTERDOWN||t===dv.POINTERDRAG||t===dv.POINTERUP}var Ey=xy;function ky(e){var t=arguments;return function(e){for(var n=!0,r=0,i=t.length;r<i;++r)if(n=n&&t[r](e),!n)break;return n}}var Oy=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},Ty=function(e){return e.target.getTargetElement().contains(document.activeElement)},Iy=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||Ty(e)},Ay=ms,Ry=function(e){var t=e.originalEvent;return 0==t.button&&!(Xs&&Ys&&t.ctrlKey)},Py=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},My=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},Ny=function(e){var t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n},Ly=function(e){var t=e.originalEvent;return nc(void 0!==t,56),"mouse"==t.pointerType},Dy=function(e){var t=e.originalEvent;return nc(void 0!==t,56),t.isPrimary&&0===t.button},jy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fy=function(e){function t(t){var n=e.call(this,{stopDown:gs})||this,r=t||{};n.kinetic_=r.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var i=r.condition?r.condition:ky(Py,Dy);return n.condition_=r.onFocusOnly?ky(Iy,i):i,n.noKinetic_=!1,n}return jy(t,e),t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var t=this.targetPointers,n=Sy(t);if(t.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=e.map,o=i.getView();Zc(r,o.getResolution()),Qc(r,o.getRotation()),o.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=t.length,e.originalEvent.preventDefault()},t.prototype.handleUpEvent=function(e){var t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var r=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=t.getPixelFromCoordinateInternal(o),s=t.getCoordinateFromPixelInternal([a[0]-r*Math.cos(i),a[1]-r*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:qv})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map,n=t.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(Ey),By=Fy,qy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zy=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,{stopDown:gs})||this,n.condition_=r.condition?r.condition:Oy,n.lastAngle_=void 0,n.duration_=void 0!==r.duration?r.duration:250,n}return qy(t,e),t.prototype.handleDragEvent=function(e){if(Ly(e)){var t=e.map,n=t.getView();if(n.getConstraints().rotation!==Lv){var r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},t.prototype.handleUpEvent=function(e){if(!Ly(e))return!0;var t=e.map,n=t.getView();return n.endInteraction(this.duration_),!1},t.prototype.handleDownEvent=function(e){if(!Ly(e))return!1;if(Ry(e)&&this.condition_(e)){var t=e.map;return t.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},t}(Ey),Uy=zy,Gy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vy=function(e){function t(t){var n=e.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return Gy(t,e),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]],r=n.map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new Mf([r])},t.prototype.getGeometry=function(){return this.geometry_},t}(is),Wy=Vy,Hy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$y={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend"},Ky=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.coordinate=n,i.mapBrowserEvent=r,i}return Hy(t,e),t}(as),Xy=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.box_=new Wy(r.className||"ol-dragbox"),n.minArea_=void 0!==r.minArea?r.minArea:64,r.onBoxEnd&&(n.onBoxEnd=r.onBoxEnd),n.startPixel_=null,n.condition_=r.condition?r.condition:Ry,n.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:n.defaultBoxEndCondition,n}return Hy(t,e),t.prototype.defaultBoxEndCondition=function(e,t,n){var r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new Ky($y.BOXDRAG,e.coordinate,e))},t.prototype.handleUpEvent=function(e){return this.box_.setMap(null),this.boxEndCondition_(e,this.startPixel_,e.pixel)&&(this.onBoxEnd(e),this.dispatchEvent(new Ky($y.BOXEND,e.coordinate,e))),!1},t.prototype.handleDownEvent=function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Ky($y.BOXSTART,e.coordinate,e)),!0)},t.prototype.onBoxEnd=function(e){},t}(Ey),Yy=Xy,Jy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qy=function(e){function t(t){var n=this,r=t||{},i=r.condition?r.condition:My;return n=e.call(this,{condition:i,className:r.className||"ol-dragzoom",minArea:r.minArea})||this,n.duration_=void 0!==r.duration?r.duration:200,n.out_=void 0!==r.out&&r.out,n}return Jy(t,e),t.prototype.onBoxEnd=function(e){var t=this.getMap(),n=t.getView(),r=t.getSize(),i=this.getGeometry().getExtent();if(this.out_){var o=n.calculateExtentInternal(r),a=gc([t.getPixelFromCoordinateInternal(Oc(i)),t.getPixelFromCoordinateInternal(Lc(i))]),s=n.getResolutionForExtentInternal(a,r);qc(o,1/s),i=o}var l=n.getConstrainedResolution(n.getResolutionForExtentInternal(i,r)),c=n.getConstrainedCenter(Ic(i),l);n.animateInternal({resolution:l,center:c,duration:this.duration_,easing:qv})},t}(Yy),Zy=Qy,eb={LEFT:37,UP:38,RIGHT:39,DOWN:40},tb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nb=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.defaultCondition_=function(e){return Py(e)&&Ny(e)},n.condition_=void 0!==r.condition?r.condition:n.defaultCondition_,n.duration_=void 0!==r.duration?r.duration:100,n.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,n}return tb(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==ks.KEYDOWN){var n=e.originalEvent,r=n.keyCode;if(this.condition_(e)&&(r==eb.DOWN||r==eb.LEFT||r==eb.RIGHT||r==eb.UP)){var i=e.map,o=i.getView(),a=o.getResolution()*this.pixelDelta_,s=0,l=0;r==eb.DOWN?l=-a:r==eb.LEFT?s=-a:r==eb.RIGHT?s=a:l=a;var c=[s,l];Qc(c,o.getRotation()),my(o,c,this.duration_),e.preventDefault(),t=!0}}return!t},t}(vy),rb=nb,ib=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ob=function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.condition_=r.condition?r.condition:Ny,n.delta_=r.delta?r.delta:1,n.duration_=void 0!==r.duration?r.duration:100,n}return ib(t,e),t.prototype.handleEvent=function(e){var t=!1;if(e.type==ks.KEYDOWN||e.type==ks.KEYPRESS){var n=e.originalEvent,r=n.charCode;if(this.condition_(e)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var i=e.map,o=r=="+".charCodeAt(0)?this.delta_:-this.delta_,a=i.getView();gy(a,o,void 0,this.duration_),e.preventDefault(),t=!0}}return!t},t}(vy),ab=ob,sb=function(){function e(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return e.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},e.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},e.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;var n=t-3;while(n>0&&this.points_[n+2]>e)n-=3;var r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;var i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_},e.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},e.prototype.getAngle=function(){return this.angle_},e}(),lb=sb,cb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ub={TRACKPAD:"trackpad",WHEEL:"wheel"},db=function(e){function t(t){var n=this,r=t||{};n=e.call(this,r)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,n.duration_=void 0!==r.duration?r.duration:250,n.timeout_=void 0!==r.timeout?r.timeout:80,n.useAnchor_=void 0===r.useAnchor||r.useAnchor,n.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var i=r.condition?r.condition:Ay;return n.condition_=r.onFocusOnly?ky(Iy,i):i,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return cb(t,e),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var e=this.getMap().getView();e.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;var t=e.type;if(t!==ks.WHEEL)return!0;e.preventDefault();var n,r=e.map,i=e.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==ks.WHEEL&&(n=i.deltaY,Ks&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=Js),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?ub.TRACKPAD:ub.WHEEL);var a=r.getView();if(this.mode_===ub.TRACKPAD&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=n;var s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),s),!1},t.prototype.handleWheelZoom_=function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var n=-wl(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),gy(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(vy),fb=db,hb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pb=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=gs),n=e.call(this,i)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==r.threshold?r.threshold:.3,n.duration_=void 0!==r.duration?r.duration:250,n}return hb(t,e),t.prototype.handleDragEvent=function(e){var t=0,n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==Lv){var l=a.getViewport().getBoundingClientRect(),c=Sy(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(c),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_))}},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map,n=t.getView();return n.endInteraction(this.duration_),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(Ey),mb=pb,gb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vb=function(e){function t(t){var n=this,r=t||{},i=r;return i.stopDown||(i.stopDown=gs),n=e.call(this,i)||this,n.anchor_=null,n.duration_=void 0!==r.duration?r.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return gb(t,e),t.prototype.handleDragEvent=function(e){var t=1,n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/a),this.lastDistance_=a;var s=e.map,l=s.getView();1!=t&&(this.lastScaleDelta_=t);var c=s.getViewport().getBoundingClientRect(),u=Sy(this.targetPointers);u[0]-=c.left,u[1]-=c.top,this.anchor_=s.getCoordinateFromPixelInternal(u),s.render(),l.adjustResolutionInternal(t,this.anchor_)},t.prototype.handleUpEvent=function(e){if(this.targetPointers.length<2){var t=e.map,n=t.getView(),r=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,r),!1}return!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1},t}(Ey),yb=vb;function bb(e){var t=e||{},n=new _p,r=new lb(-.005,.05,100),i=void 0===t.altShiftDragRotate||t.altShiftDragRotate;i&&n.push(new Uy);var o=void 0===t.doubleClickZoom||t.doubleClickZoom;o&&n.push(new _y({delta:t.zoomDelta,duration:t.zoomDuration}));var a=void 0===t.dragPan||t.dragPan;a&&n.push(new By({onFocusOnly:t.onFocusOnly,kinetic:r}));var s=void 0===t.pinchRotate||t.pinchRotate;s&&n.push(new mb);var l=void 0===t.pinchZoom||t.pinchZoom;l&&n.push(new yb({duration:t.zoomDuration}));var c=void 0===t.keyboard||t.keyboard;c&&(n.push(new rb),n.push(new ab({delta:t.zoomDelta,duration:t.zoomDuration})));var u=void 0===t.mouseWheelZoom||t.mouseWheelZoom;u&&n.push(new fb({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration}));var d=void 0===t.shiftDragZoom||t.shiftDragZoom;return d&&n.push(new Zy({duration:t.zoomDuration})),n}var _b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wb=function(e){function t(t){var n=this;return t=bs({},t),t.controls||(t.controls=dy()),t.interactions||(t.interactions=bb({onFocusOnly:!0})),n=e.call(this,t)||this,n}return _b(t,e),t.prototype.createRenderer=function(){return new ev(this)},t}(ty),xb=wb,Sb=(function(){const e=function(t,n,r,i,o,a){t instanceof iv?t.getLayers().forEach((function(t){e(t,n,r,i,o,a)})):t.getSource()._forEachFeatureAtCoordinate&&t.getSource()._forEachFeatureAtCoordinate(n,r,e=>{i(e,t)},o,a)};xb.prototype.forEachFeatureAtPixelDefault=xb.prototype.forEachFeatureAtPixel,xb.prototype.forEachFeatureAtPixel=xb.prototype.Tc=function(t,n,r,i){const o=r&&r.layerFilter?r.layerFilter:()=>!0,a=this.getLayers().getArray(),s=this.getView().getResolution(),l=this.getCoordinateFromPixel(t);for(let c=0;c<a.length;c++){const r=a[c];r.getVisible()&&o.call(null,r)&&e(r,l,s,n,t,i)}return this.forEachFeatureAtPixelDefault(t,n,r)}}(),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Cb=function(e){function t(t,n,r){var i=e.call(this)||this,o=r||{};return i.tileCoord=t,i.state=n,i.interimTile=null,i.hifi=!0,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i}return Sb(t,e),t.prototype.changed=function(){this.dispatchEvent(ks.CHANGE)},t.prototype.release=function(){},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(e.getState()==_v.LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(e.getState()==_v.LOADED){e.interimTile=null;break}e.getState()==_v.LOADING?t=e:e.getState()==_v.IDLE?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){if(this.state!==_v.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()},t.prototype.load=function(){Ds()},t.prototype.getAlpha=function(e,t){if(!this.transition_)return 1;var n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;var r=t-n+1e3/60;return r>=this.transition_?1:Bv(r/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(Es),Eb=Cb,kb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ob=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.crossOrigin_=i,s.src_=r,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return kb(t,e),t.prototype.getImage=function(){return this.image_},t.prototype.getKey=function(){return this.src_},t.prototype.handleImageError_=function(){this.state=_v.ERROR,this.unlistenImage_(),this.image_=Tb(),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=_v.LOADED:this.state=_v.EMPTY,this.unlistenImage_(),this.changed()},t.prototype.load=function(){this.state==_v.ERROR&&(this.state=_v.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==_v.IDLE&&(this.state=_v.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Tg(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(Eb);function Tb(){var e=tl(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}var Ib,Ab=Ob,Rb=.5,Pb=!0,Mb=10,Nb=.25,Lb=function(){function e(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;var a={},s=mu(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return a[t]||(a[t]=s(e)),a[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&Dc(r)==Dc(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Dc(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Dc(this.targetProj_.getExtent()):null;var l=Nc(n),c=Lc(n),u=Tc(n),d=Oc(n),f=this.transformInv_(l),h=this.transformInv_(c),p=this.transformInv_(u),m=this.transformInv_(d),g=Mb+(o?Math.max(0,Math.ceil(Sl(kc(n)/(o*o*256*256)))):0);if(this.addQuad_(l,c,u,d,f,h,p,m,g),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach((function(e,t,n){v=Math.min(v,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-v>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-v>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-v>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-v>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var n=Math.min(t[0][0],t[1][0],t[2][0]),r=Math.max(t[0][0],t[1][0],t[2][0]);r-n<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}a={}}return e.prototype.addTriangle_=function(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})},e.prototype.addQuad_=function(e,t,n,r,i,o,a,s,l){var c=rc([i,o,a,s]),u=this.sourceWorldWidth_?Dc(c)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&u>.5&&u<1,h=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var p=rc([e,t,n,r]),m=Dc(p)/this.targetWorldWidth_;h=m>Nb||h}!f&&this.sourceProj_.isGlobal()&&u&&(h=u>Nb||h)}if(!(!h&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3]))||jc(c,this.maxSourceExtent_)){var g=0;if(!h&&(!isFinite(i[0])||!isFinite(i[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(s[0])||!isFinite(s[1])))if(l>0)h=!0;else if(g=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1),1!=g&&2!=g&&4!=g&&8!=g)return;if(l>0){if(!h){var v=[(e[0]+n[0])/2,(e[1]+n[1])/2],y=this.transformInv_(v),b=void 0;if(f){var _=(Tl(i[0],d)+Tl(a[0],d))/2;b=_-Tl(y[0],d)}else b=(i[0]+a[0])/2-y[0];var w=(i[1]+a[1])/2-y[1],x=b*b+w*w;h=x>this.errorThresholdSquared_}if(h){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var S=[(t[0]+n[0])/2,(t[1]+n[1])/2],C=this.transformInv_(S),E=[(r[0]+e[0])/2,(r[1]+e[1])/2],k=this.transformInv_(E);this.addQuad_(e,t,S,E,i,o,C,k,l-1),this.addQuad_(E,S,n,r,k,C,a,s,l-1)}else{var O=[(e[0]+t[0])/2,(e[1]+t[1])/2],T=this.transformInv_(O),I=[(n[0]+r[0])/2,(n[1]+r[1])/2],A=this.transformInv_(I);this.addQuad_(e,O,I,r,i,T,A,s,l-1),this.addQuad_(O,t,n,I,T,o,a,A,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&g)&&this.addTriangle_(e,n,r,i,a,s),0==(14&g)&&this.addTriangle_(e,n,t,i,a,o),g&&(0==(13&g)&&this.addTriangle_(t,r,e,o,s,i),0==(7&g)&&this.addTriangle_(t,r,n,o,s,a))}},e.prototype.calculateSourceExtent=function(){var e=fc();return this.triangles_.forEach((function(t,n,r){var i=t.source;wc(e,i[0]),wc(e,i[1]),wc(e,i[2])})),e},e.prototype.getTriangles=function(){return this.triangles_},e}(),Db=Lb,jb="1.3.0",Fb={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1};function Bb(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function qb(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function zb(){if(void 0===Ib){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",Bb(e,4,5,4,0),Bb(e,4,5,0,5);var t=e.getImageData(0,0,3,3).data;Ib=qb(t,0)||qb(t,4)||qb(t,8)}return Ib}function Ub(e,t,n,r){var i=gu(n,t,e),o=su(t,r,n),a=t.getMetersPerUnit();void 0!==a&&(o*=a);var s=e.getMetersPerUnit();void 0!==s&&(o/=s);var l=e.getExtent();if(!l||lc(l,i)){var c=su(e,o,i)/o;isFinite(c)&&c>0&&(o/=c)}return o}function Gb(e,t,n,r){var i=Ic(n),o=Ub(e,t,i,r);return(!isFinite(o)||o<=0)&&Ec(n,(function(n){return o=Ub(e,t,n,r),isFinite(o)&&o>0})),o}function Vb(e,t,n,r,i,o,a,s,l,c,u,d){var f=tl(Math.round(n*e),Math.round(n*t));if(bs(f,d),0===l.length)return f.canvas;function h(e){return Math.round(e*n)/n}f.scale(n,n),f.globalCompositeOperation="lighter";var p=fc();l.forEach((function(e,t,n){_c(p,e.extent)}));var m=Dc(p),g=Pc(p),v=tl(Math.round(n*m/r),Math.round(n*g/r));bs(v,d);var y=n/r;l.forEach((function(e,t,n){var r=e.extent[0]-p[0],i=-(e.extent[3]-p[3]),o=Dc(e.extent),a=Pc(e.extent);e.image.width>0&&e.image.height>0&&v.drawImage(e.image,c,c,e.image.width-2*c,e.image.height-2*c,r*y,i*y,o*y,a*y)}));var b=Nc(a);return s.getTriangles().forEach((function(e,t,i){var a=e.source,s=e.target,l=a[0][0],c=a[0][1],u=a[1][0],m=a[1][1],g=a[2][0],y=a[2][1],_=h((s[0][0]-b[0])/o),w=h(-(s[0][1]-b[1])/o),x=h((s[1][0]-b[0])/o),S=h(-(s[1][1]-b[1])/o),C=h((s[2][0]-b[0])/o),E=h(-(s[2][1]-b[1])/o),k=l,O=c;l=0,c=0,u-=k,m-=O,g-=k,y-=O;var T=[[u,m,0,0,x-_],[g,y,0,0,C-_],[0,0,u,m,S-w],[0,0,g,y,E-w]],I=kl(T);if(I){if(f.save(),f.beginPath(),zb()||d===Fb){f.moveTo(x,S);for(var A=4,R=_-x,P=w-S,M=0;M<A;M++)f.lineTo(x+h((M+1)*R/A),S+h(M*P/(A-1))),M!=A-1&&f.lineTo(x+h((M+1)*R/A),S+h((M+1)*P/(A-1)));f.lineTo(C,E)}else f.moveTo(x,S),f.lineTo(_,w),f.lineTo(C,E);f.clip(),f.transform(I[0],I[2],I[1],I[3],_,w),f.translate(p[0]-k,p[3]-O),f.scale(r/n,-r/n),f.drawImage(v.canvas,0,0),f.restore()}})),u&&(f.save(),f.globalCompositeOperation="source-over",f.strokeStyle="black",f.lineWidth=1,s.getTriangles().forEach((function(e,t,n){var r=e.target,i=(r[0][0]-b[0])/o,a=-(r[0][1]-b[1])/o,s=(r[1][0]-b[0])/o,l=-(r[1][1]-b[1])/o,c=(r[2][0]-b[0])/o,u=-(r[2][1]-b[1])/o;f.beginPath(),f.moveTo(s,l),f.lineTo(i,a),f.lineTo(c,u),f.closePath(),f.stroke()})),f.restore()),f.canvas}var Wb=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hb=function(e){function t(t,n,r,i,o,a,s,l,c,u,d,f){var h=e.call(this,o,_v.IDLE)||this;h.renderEdges_=void 0!==d&&d,h.contextOptions_=f,h.pixelRatio_=s,h.gutter_=l,h.canvas_=null,h.sourceTileGrid_=n,h.targetTileGrid_=i,h.wrappedTileCoord_=a||o,h.sourceTiles_=[],h.sourcesListenerKeys_=null,h.sourceZ_=0;var p=i.getTileCoordExtent(h.wrappedTileCoord_),m=h.targetTileGrid_.getExtent(),g=h.sourceTileGrid_.getExtent(),v=m?Mc(p,m):p;if(0===kc(v))return h.state=_v.EMPTY,h;var y=t.getExtent();y&&(g=g?Mc(g,y):y);var b=i.getResolution(h.wrappedTileCoord_[0]),_=Gb(t,r,v,b);if(!isFinite(_)||_<=0)return h.state=_v.EMPTY,h;var w=void 0!==u?u:Rb;if(h.triangulation_=new Db(t,r,v,g,_*w,b),0===h.triangulation_.getTriangles().length)return h.state=_v.EMPTY,h;h.sourceZ_=n.getZForResolution(_);var x=h.triangulation_.calculateSourceExtent();if(g&&(t.canWrapX()?(x[1]=wl(x[1],g[1],g[3]),x[3]=wl(x[3],g[1],g[3])):x=Mc(x,g)),kc(x)){for(var S=n.getTileRangeForExtentAndZ(x,h.sourceZ_),C=S.minX;C<=S.maxX;C++)for(var E=S.minY;E<=S.maxY;E++){var k=c(h.sourceZ_,C,E,s);k&&h.sourceTiles_.push(k)}0===h.sourceTiles_.length&&(h.state=_v.EMPTY)}else h.state=_v.EMPTY;return h}return Wb(t,e),t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(t,n,r){t&&t.getState()==_v.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=_v.ERROR;else{var t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"===typeof n?n:n[0],i="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Vb(r,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,s,this.triangulation_,e,this.gutter_,this.renderEdges_,this.contextOptions_),this.state=_v.LOADED}this.changed()},t.prototype.load=function(){if(this.state==_v.IDLE){this.state=_v.LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,n,r){var i=t.getState();if(i==_v.IDLE||i==_v.LOADING){e++;var o=Os(t,ks.CHANGE,(function(n){var r=t.getState();r!=_v.LOADED&&r!=_v.ERROR&&r!=_v.EMPTY||(Is(o),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach((function(e,t,n){var r=e.getState();r==_v.IDLE&&e.load()})),0===e&&setTimeout(this.reproject_.bind(this),0)}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Is),this.sourcesListenerKeys_=null},t}(Eb),$b=Hb,Kb=function(){function e(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},e.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},e.prototype.forEach=function(e){var t=this.oldest_;while(t)e(t.value_,t.key_,this),t=t.newer},e.prototype.get=function(e,t){var n=this.entries_[e];return nc(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},e.prototype.remove=function(e){var t=this.entries_[e];return nc(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},e.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},e.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},e.prototype.set=function(e,t){nc(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},e.prototype.setSize=function(e){this.highWaterMark=e},e}(),Xb=Kb;function Yb(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function Jb(e,t,n){return e+"/"+t+"/"+n}function Qb(e){return Jb(e[0],e[1],e[2])}function Zb(e){return e.split("/").map(Number)}function e_(e){return(e[1]<<e[0])+e[2]}function t_(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o,a=t.getExtent();return o=a?t.getTileRangeForExtentAndZ(a,n):t.getFullTileRange(n),!o||o.containsXY(r,i)}var n_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n_(t,e),t.prototype.expireCache=function(e){while(this.canExpireCache()){var t=this.peekLast();if(t.getKey()in e)break;this.pop().release()}},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var e=this.peekFirstKey(),t=Zb(e),n=t[0];this.forEach(function(e){e.tileCoord[0]!==n&&(this.remove(Qb(e.tileCoord)),e.release())}.bind(this))}},t}(Xb),i_=r_,o_={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},a_=function(){function e(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}return e.prototype.contains=function(e){return this.containsXY(e[1],e[2])},e.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},e.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},e.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},e.prototype.extend=function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)},e.prototype.getHeight=function(){return this.maxY-this.minY+1},e.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},e.prototype.getWidth=function(){return this.maxX-this.minX+1},e.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},e}();function s_(e,t,n,r,i){return void 0!==i?(i.minX=e,i.maxX=t,i.minY=n,i.maxY=r,i):new a_(e,t,n,r)}var l_=a_,c_=[0,0,0],u_=function(){function e(e){var t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,nc(ps(this.resolutions_,(function(e,t){return t-e}),!0),17),!e.origins)for(var n=0,r=this.resolutions_.length-1;n<r;++n)if(t){if(this.resolutions_[n]/this.resolutions_[n+1]!==t){t=void 0;break}}else t=this.resolutions_[n]/this.resolutions_[n+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,nc(this.origins_.length==this.resolutions_.length,20));var i=e.extent;void 0===i||this.origin_||this.origins_||(this.origin_=Nc(i)),nc(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,nc(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:Ov,nc(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map((function(e,t){var n=new l_(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));return n}),this):i&&this.calculateTileRanges_(i)}return e.prototype.forEachTileCoord=function(e,t,n){for(var r=this.getTileRangeForExtentAndZ(e,t),i=r.minX,o=r.maxX;i<=o;++i)for(var a=r.minY,s=r.maxY;a<=s;++a)n([t,i,a])},e.prototype.forEachTileCoordParentTileRange=function(e,t,n,r){var i,o,a,s=null,l=e[0]-1;2===this.zoomFactor_?(o=e[1],a=e[2]):s=this.getTileCoordExtent(e,r);while(l>=this.minZoom){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),i=s_(o,o,a,a,n)):i=this.getTileRangeForExtentAndZ(s,l,n),t(l,i))return!0;--l}return!1},e.prototype.getExtent=function(){return this.extent_},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.getMinZoom=function(){return this.minZoom},e.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},e.prototype.getResolution=function(e){return this.resolutions_[e]},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var r=2*e[1],i=2*e[2];return s_(r,r+1,i,i+1,t)}var o=this.getTileCoordExtent(e,n);return this.getTileRangeForExtentAndZ(o,e[0]+1,t)}return null},e.prototype.getTileRangeExtent=function(e,t,n){var r=this.getOrigin(e),i=this.getResolution(e),o=Jp(this.getTileSize(e),this.tmpSize_),a=r[0]+t.minX*o[0]*i,s=r[0]+(t.maxX+1)*o[0]*i,l=r[1]+t.minY*o[1]*i,c=r[1]+(t.maxY+1)*o[1]*i;return hc(a,l,s,c,n)},e.prototype.getTileRangeForExtentAndZ=function(e,t,n){var r=c_;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,r);var i=r[1],o=r[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,r),s_(i,r[1],o,r[2],n)},e.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=Jp(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]},e.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=Jp(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,a=n[1]-(e[2]+1)*i[1]*r,s=o+i[0]*r,l=a+i[1]*r;return hc(o,a,s,l,t)},e.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordForXYAndResolution_=function(e,t,n,r,i){var o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=Jp(this.getTileSize(o),this.tmpSize_),c=r?.5:0,u=r?.5:0,d=Math.floor((e-s[0])/n+c),f=Math.floor((s[1]-t)/n+u),h=a*d/l[0],p=a*f/l[1];return r?(h=Math.ceil(h)-1,p=Math.ceil(p)-1):(h=Math.floor(h),p=Math.floor(p)),Yb(o,h,p,i)},e.prototype.getTileCoordForXYAndZ_=function(e,t,n,r,i){var o=this.getOrigin(n),a=this.getResolution(n),s=Jp(this.getTileSize(n),this.tmpSize_),l=r?.5:0,c=r?.5:0,u=Math.floor((e-o[0])/a+l),d=Math.floor((o[1]-t)/a+c),f=u/s[0],h=d/s[1];return r?(f=Math.ceil(f)-1,h=Math.ceil(h)-1):(f=Math.floor(f),h=Math.floor(h)),Yb(n,f,h,i)},e.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},e.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},e.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},e.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:null},e.prototype.getZForResolution=function(e,t){var n=us(this.resolutions_,e,t||0);return wl(n,this.minZoom,this.maxZoom)},e.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n},e}(),d_=u_;function f_(e){var t=e.getDefaultTileGrid();return t||(t=v_(e),e.setDefaultTileGrid(t)),t}function h_(e,t,n){var r=t[0],i=e.getTileCoordCenter(t),o=y_(n);if(lc(o,i))return t;var a=Dc(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,e.getTileCoordForCoordAndZ(i,r)}function p_(e,t,n,r){var i=void 0!==r?r:Jl.TOP_LEFT,o=g_(e,t,n);return new d_({extent:e,origin:Ac(e,i),resolutions:o,tileSize:n})}function m_(e){var t=e||{},n=t.extent||au("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:g_(n,t.maxZoom,t.tileSize,t.maxResolution)};return new d_(r)}function g_(e,t,n,r){for(var i=void 0!==t?t:kv,o=Pc(e),a=Dc(e),s=Jp(void 0!==n?n:Ov),l=r>0?r:Math.max(a/s[0],o/s[1]),c=i+1,u=new Array(c),d=0;d<c;++d)u[d]=l/Math.pow(2,d);return u}function v_(e,t,n,r){var i=y_(e);return p_(i,t,n,r)}function y_(e){e=au(e);var t=e.getExtent();if(!t){var n=180*ul[dl.DEGREES]/e.getMetersPerUnit();t=hc(-n,-n,n,n)}return t}var b_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX})||this;n.opaque_=void 0!==t.opaque&&t.opaque,n.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,n.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;var r=[256,256],i=t.tileGrid;return i&&Jp(i.getTileSize(i.getMinZoom()),r),n.tileCache=new i_(t.cacheSize||0),n.tmpSize=[0,0],n.key_=t.key||"",n.tileOptions={transition:t.transition},n.zDirection=t.zDirection?t.zDirection:0,n}return b_(t,e),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,t){var n=this.getTileCacheForProjection(e);n&&n.expireCache(t)},t.prototype.forEachLoadedTile=function(e,t,n,r){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var o,a,s,l=!0,c=n.minX;c<=n.maxX;++c)for(var u=n.minY;u<=n.maxY;++u)a=Jb(t,c,u),s=!1,i.containsKey(a)&&(o=i.get(a),s=o.getState()===_v.LOADED,s&&(s=!1!==r(o))),s||(l=!1);return l},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},t.prototype.getTile=function(e,t,n,r,i){return Ds()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:f_(e)},t.prototype.getTileCacheForProjection=function(e){var t=this.getProjection();return t&&!hu(t,e)?null:this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=Jp(r.getTileSize(e),this.tmpSize);return 1==i?o:Yp(o,i,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,t){var n=void 0!==t?t:this.getProjection(),r=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=h_(r,e,n)),t_(e,r)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),e.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,t){var n=this.getTileCacheForProjection(t);e>n.highWaterMark&&(n.highWaterMark=e)},t.prototype.useTile=function(e,t,n,r){},t}(Ip),w_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.tile=n,r}return b_(t,e),t}(as),x_=__;function S_(e,t){var n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?e.replace(n,a[0].toString()).replace(r,a[1].toString()).replace(i,a[2].toString()).replace(o,(function(){var e=a[0],n=t.getFullTileRange(e);nc(n,55);var r=n.getHeight()-a[2]-1;return r.toString()})):void 0}}function C_(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=S_(e[i],t);return E_(r)}function E_(e){return 1===e.length?e[0]:function(t,n,r){if(t){var i=e_(t),o=Tl(i,e.length);return e[o](t,n,r)}}}function k_(e){var t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){var r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e),n){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)t.push(e.replace(n[0],s.toString()));return t}return t.push(e),t}var O_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T_=function(e){function t(n){var r=e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(r.tileUrlFunction=n.tileUrlFunction.bind(r)),r.urls=null,n.urls?r.setUrls(n.urls):n.url&&r.setUrl(n.url),r.tileLoadingKeys_={},r}return O_(t,e),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var t,n=e.target,r=Fs(n),i=n.getState();i==_v.LOADING?(this.tileLoadingKeys_[r]=!0,t=o_.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],t=i==_v.ERROR?o_.TILELOADERROR:i==_v.LOADED?o_.TILELOADEND:void 0),void 0!=t&&this.dispatchEvent(new w_(t,n))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof t?this.setKey(t):this.changed()},t.prototype.setUrl=function(e){var t=k_(e);this.urls=t,this.setUrls(t)},t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(C_(e,this.tileGrid),t):this.setKey(t)},t.prototype.tileUrlFunction=function(e,t,n){},t.prototype.useTile=function(e,t,n){var r=Jb(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)},t}(x_),I_=T_,A_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R_=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:P_,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this;return n.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,n.tileClass=void 0!==t.tileClass?t.tileClass:Ab,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,n.contextOptions_=!1===t.imageSmoothing?Fb:void 0,n.renderReprojectionEdges_=!1,n}return A_(t,e),t.prototype.canExpireCache=function(){if(!Pb)return e.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},t.prototype.expireCache=function(t,n){if(Pb){var r=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==r?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==r?n:{})}}else e.prototype.expireCache.call(this,t,n)},t.prototype.getContextOptions=function(){return this.contextOptions_},t.prototype.getGutterForProjection=function(e){return Pb&&this.getProjection()&&e&&!hu(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){return e.prototype.getKey.call(this)+(this.contextOptions_?"\n"+JSON.stringify(this.contextOptions_):"")},t.prototype.getOpaque=function(t){return!(Pb&&this.getProjection()&&t&&!hu(this.getProjection(),t))&&e.prototype.getOpaque.call(this,t)},t.prototype.getTileGridForProjection=function(t){if(!Pb)return e.prototype.getTileGridForProjection.call(this,t);var n=this.getProjection();if(!this.tileGrid||n&&!hu(n,t)){var r=Fs(t);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=f_(t)),this.tileGridForProjection[r]}return this.tileGrid},t.prototype.getTileCacheForProjection=function(t){if(!Pb)return e.prototype.getTileCacheForProjection.call(this,t);var n=this.getProjection();if(!n||hu(n,t))return this.tileCache;var r=Fs(t);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new i_(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},t.prototype.createTile_=function(e,t,n,r,i,o){var a=[e,t,n],s=this.getTileCoordForTileUrlFunction(a,i),l=s?this.tileUrlFunction(s,r,i):void 0,c=new this.tileClass(a,void 0!==l?_v.IDLE:_v.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=o,c.addEventListener(ks.CHANGE,this.handleTileChange.bind(this)),c},t.prototype.getTile=function(e,t,n,r,i){var o=this.getProjection();if(Pb&&o&&i&&!hu(o,i)){var a=this.getTileCacheForProjection(i),s=[e,t,n],l=void 0,c=Qb(s);a.containsKey(c)&&(l=a.get(c));var u=this.getKey();if(l&&l.key==u)return l;var d=this.getTileGridForProjection(o),f=this.getTileGridForProjection(i),h=this.getTileCoordForTileUrlFunction(s,i),p=new $b(o,d,i,f,s,h,this.getTilePixelRatio(r),this.getGutter(),function(e,t,n,r){return this.getTileInternal(e,t,n,r,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.contextOptions_);return p.key=u,l?(p.interimTile=l,p.refreshInterimChain(),a.replace(c,p)):a.set(c,p),p}return this.getTileInternal(e,t,n,r,o||i)},t.prototype.getTileInternal=function(e,t,n,r,i){var o=null,a=Jb(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=s){var l=o;o=this.createTile_(e,t,n,r,i,s),l.getState()==_v.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,n,r,i,s),this.tileCache.set(a,o);return o},t.prototype.setRenderReprojectionEdges=function(e){if(Pb&&this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,t){if(Pb){var n=au(e);if(n){var r=Fs(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}},t}(I_);function P_(e,t){e.getImage().src=t}var M_=R_;var N_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){var n=this,r=t||{},i=void 0!==r.projection?r.projection:"EPSG:3857",o=void 0!==r.tileGrid?r.tileGrid:m_({extent:y_(i),maxResolution:r.maxResolution,maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});return n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,imageSmoothing:r.imageSmoothing,opaque:r.opaque,projection:i,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this,n}N_(t,e)})(M_);var L_={KVP:"KVP",REST:"REST"};function D_(e,t){var n=[];Object.keys(t).forEach((function(e){null!==t[e]&&void 0!==t[e]&&n.push(e+"="+encodeURIComponent(t[e]))}));var r=n.join("&");return e=e.replace(/[?&]$/,""),e=-1===e.indexOf("?")?e+"?":e+"&",e+r}var j_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){var n=e.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return n.matrixIds_=t.matrixIds,n}j_(t,e),t.prototype.getMatrixId=function(e){return this.matrixIds_[e]},t.prototype.getMatrixIds=function(){return this.matrixIds_}})(d_);var F_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){var n=this,r=void 0!==t.requestEncoding?t.requestEncoding:L_.KVP,i=t.tileGrid,o=t.urls;return void 0===o&&void 0!==t.url&&(o=k_(t.url)),n=e.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,imageSmoothing:t.imageSmoothing,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:o,wrapX:void 0!==t.wrapX&&t.wrapX,transition:t.transition})||this,n.version_=void 0!==t.version?t.version:"1.0.0",n.format_=void 0!==t.format?t.format:"image/jpeg",n.dimensions_=void 0!==t.dimensions?t.dimensions:{},n.layer_=t.layer,n.matrixSet_=t.matrixSet,n.style_=t.style,n.requestEncoding_=r,n.setKey(n.getKeyForDimensions_()),o&&o.length>0&&(n.tileUrlFunction=E_(o.map(n.createFromWMTSTemplate.bind(n)))),n}F_(t,e),t.prototype.setUrls=function(e){this.urls=e;var t=e.join("\n");this.setTileUrlFunction(E_(e.map(this.createFromWMTSTemplate.bind(this))),t)},t.prototype.getDimensions=function(){return this.dimensions_},t.prototype.getFormat=function(){return this.format_},t.prototype.getLayer=function(){return this.layer_},t.prototype.getMatrixSet=function(){return this.matrixSet_},t.prototype.getRequestEncoding=function(){return this.requestEncoding_},t.prototype.getStyle=function(){return this.style_},t.prototype.getVersion=function(){return this.version_},t.prototype.getKeyForDimensions_=function(){var e=0,t=[];for(var n in this.dimensions_)t[e++]=n+"-"+this.dimensions_[n];return t.join("/")},t.prototype.updateDimensions=function(e){bs(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())},t.prototype.createFromWMTSTemplate=function(e){var t=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};t==L_.KVP&&bs(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=t==L_.KVP?D_(e,n):e.replace(/\{(\w+?)\}/g,(function(e,t){return t.toLowerCase()in n?n[t.toLowerCase()]:e}));var r=this.tileGrid,i=this.dimensions_;return function(n,o,a){if(n){var s={TileMatrix:r.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};bs(s,i);var l=e;return l=t==L_.KVP?D_(l,s):l.replace(/\{(\w+?)\}/g,(function(e,t){return s[t]})),l}}}})(M_);class B_ extends M_{constructor(e){if(e=e||{},void 0!==e.url){e.attributions=e.attributions||"Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a></span>",e.format=e.format?e.format:"png",e.serverType=e.serverType||s.ISERVER,super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,logo:"4"===Vg.getOlVersion()?e.logo:null,opaque:e.opaque,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:e.state,tileClass:e.tileClass,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:l,wrapX:void 0!==e.wrapX&&e.wrapX,cacheEnabled:e.cacheEnabled,layersID:e.layersID}),e.tileProxy&&(this.tileProxy=e.tileProxy),this.options=e,this._url=e.url,this.tileSetsIndex=-1,this.tempIndex=-1,this.dpi=this.options.dpi||96;var t=this,n=Y.urlPathAppend(e.url,"tileImage."+e.format)}function r(e,n){var r,i,o=e;switch(n){case s.IPORTAL:i=Me.getToken(t._url),r=i?new de(i,"token"):null,r||(i=Me.getKey(t._url),r=i?new de(i,"key"):null);break;case s.ONLINE:i=Me.getKey(t._url),r=i?new de(i,"key"):null;break;default:i=Me.getToken(t._url),r=i?new de(i,"token"):null;break}return r&&(o=Y.urlAppend(o,r.getUrlParameters())),o}function i(){var t=this,n={};return n["redirect"]=void 0!==e.redirect&&e.redirect,n["transparent"]=void 0===e.transparent||e.transparent,n["cacheEnabled"]=!(!1===e.cacheEnabled),t.cacheEnabled=n["cacheEnabled"],n["_cache"]=n["cacheEnabled"],this.origin&&(n["origin"]=JSON.stringify({x:this.origin[0],y:this.origin[1]})),e.prjCoordSys&&(n["prjCoordSys"]=JSON.stringify(e.prjCoordSys)),e.layersID&&(n["layersID"]=e.layersID.toString()),e.clipRegion instanceof Zu&&(e.clipRegionEnabled=!0,e.clipRegion=Vg.toSuperMapGeometry((new rh).writeGeometryObject(e.clipRegion)),e.clipRegion=Y.toJSON(xe.fromGeometry(e.clipRegion)),n["clipRegionEnabled"]=e.clipRegionEnabled,n["clipRegion"]=JSON.stringify(e.clipRegion)),e.overlapDisplayed?n["overlapDisplayed"]=!0:(n["overlapDisplayed"]=!1,e.overlapDisplayedOptions&&(n["overlapDisplayedOptions"]=t.overlapDisplayedOptions.toString())),n.cacheEnabled&&e.tileversion&&(n["tileversion"]=e.tileversion.toString()),e.rasterfunction&&(n["rasterfunction"]=JSON.stringify(e.rasterfunction)),n}function o(){return this._paramsChanged&&(this._layerUrl=a.call(this),this._paramsChanged=!1),this._layerUrl||a.call(this)}function a(){return this.requestParams=this.requestParams||i.call(this),this._layerUrl=Y.urlAppend(n,Y.getParameterString(this.requestParams)),this._layerUrl=r(this._layerUrl,e.serverType),this._layerUrl}function l(n,r,i){t.tileGrid||(e.extent?(t.tileGrid=B_.createTileGrid(e.extent),t.resolutions&&(t.tileGrid.resolutions=t.resolutions)):("EPSG:3857"===i.getCode()&&(t.tileGrid=B_.createTileGrid([-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892]),t.extent=[-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892]),"EPSG:4326"===i.getCode()&&(t.tileGrid=B_.createTileGrid([-180,-90,180,90]),t.extent=[-180,-90,180,90]))),t.origin=t.tileGrid.getOrigin(0);var a=n[0],s=n[1],l=["4","5"].indexOf(Vg.getOlVersion())>-1?-n[2]-1:n[2],c=t.tileGrid.getResolution(a),u=t.dpi||96,d=i.getUnits()||f.DEGREE;"degrees"!==d&&"degree"!==d||(d=f.DEGREE),"m"!==d&&"meter"!==d||(d=f.METER);var h=Vg.resolutionToScale(c,u,d),p=Jp(t.tileGrid.getTileSize(a,t.tmpSize)),m=o.call(t),g=m+encodeURI("&x="+s+"&y="+l+"&width="+p[0]+"&height="+p[1]+"&scale="+h);return t.tileProxy&&(g=t.tileProxy+encodeURIComponent(g)),t.cacheEnabled||(g+="&_t="+(new Date).getTime()),g}}setTileSetsInfo(e){this.tileSets=e,Vg.isArray(this.tileSets)&&(this.tileSets=e[0]),this.tileSets&&(this.dispatchEvent({type:"tilesetsinfoloaded",value:{tileVersions:this.tileSets.tileVersions}}),this.changeTilesVersion())}lastTilesVersion(){this.tempIndex=this.tileSetsIndex-1,this.changeTilesVersion()}nextTilesVersion(){this.tempIndex=this.tileSetsIndex+1,this.changeTilesVersion()}changeTilesVersion(){var e=this;if(null!=e.tileSets&&!(e.tempIndex===e.tileSetsIndex||this.tempIndex<0)){var t=e.tileSets.tileVersions;if(t&&e.tempIndex<t.length&&e.tempIndex>=0){var n=t[e.tempIndex].name,r=e.mergeTileVersionParam(n);r&&(e.tileSetsIndex=e.tempIndex,e.dispatchEvent({type:"tileversionschanged",value:{tileVersion:t[e.tempIndex]}}))}}}updateCurrentTileSetsIndex(e){this.tempIndex=e}mergeTileVersionParam(e){return!!e&&(this.requestParams["tileversion"]=e,this._paramsChanged=!0,this.refresh(),!0)}static optionsFromMapJSON(e,t){var n={};n.url=e,n.crossOrigin="anonymous";var r=[t.bounds.left,t.bounds.bottom,t.bounds.right,t.bounds.top],i=o();function o(){var e,n=22,i=96,o=r[2]-r[0],a=r[3]-r[1],s=o>=a?o:a;e=s===o?s/t.viewer.width:s/t.viewer.height;var l=[],c=f.METER;if(t.coordUnit===f.DEGREE&&(c=f.DEGREE),t.visibleScalesEnabled&&t.visibleScales&&t.visibleScales.length>0)for(let r=0;r<t.visibleScales.length;r++)l.push(Vg.scaleToResolution(t.visibleScales[r],i,c));else for(let t=0;t<n;t++)l.push(e/Math.pow(2,t));function u(e,t){return t-e}return l.sort(u)}return n.tileGrid=new d_({extent:r,resolutions:i}),n}static createTileGrid(e,t,n,r,i){var o=m_({extent:e,maxZoom:t,minZoom:n,tileSize:r});return new d_({extent:e,minZoom:n,origin:i,resolutions:o.getResolutions(),tileSize:o.getTileSize()})}}var q_=function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]},z_=1,U_=2,G_=4,V_=5,W_=484813681109536e-20,H_=Math.PI/2,$_=.16666666666666666,K_=.04722222222222222,X_=.022156084656084655,Y_=1e-10,J_=.017453292519943295,Q_=57.29577951308232,Z_=Math.PI/4,ew=2*Math.PI,tw=3.14159265359,nw={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},rw={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},iw=/[\s_\-\/\(\)]/g;function ow(e,t){if(e[t])return e[t];var n,r,i=Object.keys(e),o=t.toLowerCase().replace(iw,""),a=-1;while(++a<i.length)if(n=i[a],r=n.toLowerCase().replace(iw,""),r===o)return e[n]}var aw=function(e){var t,n,r,i={},o=e.split("+").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n=t.split("=");return n.push(!0),e[n[0].toLowerCase()]=n[1],e}),{}),a={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*J_},lat_1:function(e){i.lat1=e*J_},lat_2:function(e){i.lat2=e*J_},lat_ts:function(e){i.lat_ts=e*J_},lon_0:function(e){i.long0=e*J_},lon_1:function(e){i.long1=e*J_},lon_2:function(e){i.long2=e*J_},alpha:function(e){i.alpha=parseFloat(e)*J_},lonc:function(e){i.longc=e*J_},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map((function(e){return parseFloat(e)}))},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=ow(rw,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*J_},pm:function(e){var t=ow(nw,e);i.from_greenwich=(t||parseFloat(e))*J_},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){var t="ewnsud";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(i.axis=e)}};for(t in o)n=o[t],t in a?(r=a[t],"function"===typeof r?r(n):i[r]=n):i[t]=n;return"string"===typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i},sw=_w,lw=1,cw=2,uw=3,dw=4,fw=5,hw=-1,pw=/\s/,mw=/[A-Za-z]/,gw=/[A-Za-z84]/,vw=/[,\]]/,yw=/[\d\.E\-\+]/;function bw(e){if("string"!==typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=lw}function _w(e){var t=new bw(e);return t.output()}function ww(e,t,n){Array.isArray(t)&&(n.unshift(t),t=null);var r=t?{}:e,i=n.reduce((function(e,t){return xw(t,e),e}),r);t&&(e[t]=i)}function xw(e,t){if(Array.isArray(e)){var n=e.shift();if("PARAMETER"===n&&(n=e.shift()),1===e.length)return Array.isArray(e[0])?(t[n]={},void xw(e[0],t[n])):void(t[n]=e[0]);if(e.length)if("TOWGS84"!==n){if("AXIS"===n)return n in t||(t[n]=[]),void t[n].push(e);var r;switch(Array.isArray(n)||(t[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[n]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&xw(e[2],t[n]));case"SPHEROID":case"ELLIPSOID":return t[n]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&xw(e[3],t[n]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return e[0]=["name",e[0]],void ww(t,n,e);default:r=-1;while(++r<e.length)if(!Array.isArray(e[r]))return xw(e,t[n]);return ww(t,n,e)}}else t[n]=e;else t[n]=!0}else t[e]=!0}bw.prototype.readCharicter=function(){var e=this.text[this.place++];if(this.state!==dw)while(pw.test(e)){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case lw:return this.neutral(e);case cw:return this.keyword(e);case dw:return this.quoted(e);case fw:return this.afterquote(e);case uw:return this.number(e);case hw:return}},bw.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=dw);if(vw.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},bw.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=lw)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=lw,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=hw))):void 0},bw.prototype.number=function(e){if(!yw.test(e)){if(vw.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},bw.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=fw},bw.prototype.keyword=function(e){if(gw.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=lw)}if(!vw.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},bw.prototype.neutral=function(e){if(mw.test(e))return this.word=e,void(this.state=cw);if('"'===e)return this.word="",void(this.state=dw);if(yw.test(e))return this.word=e,void(this.state=uw);if(!vw.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},bw.prototype.output=function(){while(this.place<this.text.length)this.readCharicter();if(this.state===hw)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var Sw=.017453292519943295;function Cw(e,t){var n=t[0],r=t[1];!(n in e)&&r in e&&(e[n]=e[r],3===t.length&&(e[n]=t[2](e[n])))}function Ew(e){return e*Sw}function kw(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"===typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",n=0,r=e.AXIS.length;n<r;++n){var i=e.AXIS[n],o=i[0].toLowerCase();-1!==o.indexOf("north")?t+="n":-1!==o.indexOf("south")?t+="s":-1!==o.indexOf("east")?t+="e":-1!==o.indexOf("west")&&(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;function s(t){var n=e.to_meter||1;return t*n}"GEOGCS"===e.type&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a);var l=function(t){return Cw(e,t)},c=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",Ew],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",Ew],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",Ew],["lat0","latitude_of_origin",Ew],["lat0","standard_parallel_1",Ew],["lat1","standard_parallel_1",Ew],["lat2","standard_parallel_2",Ew],["azimuth","Azimuth"],["alpha","azimuth",Ew],["srsCode","name"]];c.forEach(l),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=Ew(e.lat1>0?90:-90),e.lat_ts=e.lat1)}var Ow=function(e){var t=sw(e),n=t.shift(),r=t.shift();t.unshift(["name",r]),t.unshift(["type",n]);var i={};return xw(t,i),kw(i),i};function Tw(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"===typeof n?"+"===n.charAt(0)?Tw[e]=aw(arguments[1]):Tw[e]=Ow(arguments[1]):Tw[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?Tw.apply(t,e):Tw(e)}));if("string"===typeof e){if(e in Tw)return Tw[e]}else"EPSG"in e?Tw["EPSG:"+e.EPSG]=e:"ESRI"in e?Tw["ESRI:"+e.ESRI]=e:"IAU2000"in e?Tw["IAU2000:"+e.IAU2000]=e:console.log(e);return}}q_(Tw);var Iw=Tw;function Aw(e){return"string"===typeof e}function Rw(e){return e in Iw}var Pw=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function Mw(e){return Pw.some((function(t){return e.indexOf(t)>-1}))}var Nw=["3857","900913","3785","102113"];function Lw(e){var t=ow(e,"authority");if(t){var n=ow(t,"epsg");return n&&Nw.indexOf(n)>-1}}function Dw(e){var t=ow(e,"extension");if(t)return ow(t,"proj4")}function jw(e){return"+"===e[0]}function Fw(e){if(!Aw(e))return e;if(Rw(e))return Iw[e];if(Mw(e)){var t=Ow(e);if(Lw(t))return Iw["EPSG:3857"];var n=Dw(t);return n?aw(n):t}return jw(e)?aw(e):void 0}var Bw=Fw,qw=function(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)n=t[r],void 0!==n&&(e[r]=n);return e},zw=function(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)},Uw=function(e){return e<0?-1:1},Gw=function(e){return Math.abs(e)<=tw?e:e-Uw(e)*ew},Vw=function(e,t,n){var r=e*n,i=.5*e;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(H_-t))/r},Ww=function(e,t){for(var n,r,i=.5*e,o=H_-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(o),r=H_-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-o,o+=r,Math.abs(r)<=1e-10)return o;return-9999};function Hw(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=zw(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function $w(e){var t,n,r=e.x,i=e.y;if(i*Q_>90&&i*Q_<-90&&r*Q_>180&&r*Q_<-180)return null;if(Math.abs(Math.abs(i)-H_)<=Y_)return null;if(this.sphere)t=this.x0+this.a*this.k0*Gw(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(Z_+.5*i));else{var o=Math.sin(i),a=Vw(this.e,i,o);t=this.x0+this.a*this.k0*Gw(r-this.long0),n=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=n,e}function Kw(e){var t,n,r=e.x-this.x0,i=e.y-this.y0;if(this.sphere)n=H_-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(n=Ww(this.e,o),-9999===n)return null}return t=Gw(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e}var Xw=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],Yw={init:Hw,forward:$w,inverse:Kw,names:Xw};function Jw(){}function Qw(e){return e}var Zw=["longlat","identity"],ex={init:Jw,forward:Qw,inverse:Qw,names:Zw},tx=[Yw,ex],nx={},rx=[];function ix(e,t){var n=rx.length;return e.names?(rx[n]=e,e.names.forEach((function(e){nx[e.toLowerCase()]=n})),this):(console.log(t),!0)}function ox(e){if(!e)return!1;var t=e.toLowerCase();return"undefined"!==typeof nx[t]&&rx[nx[t]]?rx[nx[t]]:void 0}function ax(){tx.forEach(ix)}var sx={start:ax,add:ix,get:ox},lx={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},cx=lx.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function ux(e,t,n,r){var i=e*e,o=t*t,a=(i-o)/i,s=0;r?(e*=1-a*($_+a*(K_+a*X_)),i=e*e,a=0):s=Math.sqrt(a);var l=(i-o)/o;return{es:a,e:s,ep2:l}}function dx(e,t,n,r,i){if(!e){var o=ow(lx,r);o||(o=cx),e=o.a,t=o.b,n=o.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<Y_)&&(i=!0,t=e),{a:e,b:t,rf:n,sphere:i}}lx.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var fx={};function hx(e,t,n,r,i,o){var a={};return a.datum_type=void 0===e||"none"===e?V_:G_,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=z_),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=U_,a.datum_params[3]*=W_,a.datum_params[4]*=W_,a.datum_params[5]*=W_,a.datum_params[6]=a.datum_params[6]/1e6+1))),a.a=n,a.b=r,a.es=i,a.ep2=o,a}fx.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},fx.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},fx.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},fx.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},fx.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},fx.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},fx.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},fx.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},fx.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},fx.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},fx.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},fx.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},fx.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},fx.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},fx.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},fx.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},fx.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var px=hx;function mx(e,t){if(!(this instanceof mx))return new mx(e);t=t||function(e){if(e)throw e};var n=Bw(e);if("object"===typeof n){var r=mx.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var i=ow(fx,n.datumCode);i&&(n.datum_params=i.towgs84?i.towgs84.split(","):null,n.ellps=i.ellipse,n.datumName=i.datumName?i.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84";var o=dx(n.a,n.b,n.rf,n.ellps,n.sphere),a=ux(o.a,o.b,o.rf,n.R_A),s=n.datum||px(n.datumCode,n.datum_params,o.a,o.b,a.es,a.ep2);qw(this,n),qw(this,r),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=s,this.init(),t(null,this)}else t(e)}else t(e)}mx.projections=sx,mx.projections.start();var gx=mx;function vx(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===z_?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==U_||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}function yx(e,t,n){var r,i,o,a,s=e.x,l=e.y,c=e.z?e.z:0;if(l<-H_&&l>-1.001*H_)l=-H_;else if(l>H_&&l<1.001*H_)l=H_;else{if(l<-H_)return{x:-1/0,y:-1/0,z:e.z};if(l>H_)return{x:1/0,y:1/0,z:e.z}}return s>Math.PI&&(s-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,r=n/Math.sqrt(1-t*o),{x:(r+c)*a*Math.cos(s),y:(r+c)*a*Math.sin(s),z:(r*(1-t)+c)*i}}function bx(e,t,n,r){var i,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b,_=1e-12,w=_*_,x=30,S=e.x,C=e.y,E=e.z?e.z:0;if(i=Math.sqrt(S*S+C*C),o=Math.sqrt(S*S+C*C+E*E),i/n<_){if(v=0,o/n<_)return y=H_,b=-r,{x:e.x,y:e.y,z:e.z}}else v=Math.atan2(C,S);a=E/o,s=i/o,l=1/Math.sqrt(1-t*(2-t)*s*s),d=s*(1-t)*l,f=a*l,g=0;do{g++,u=n/Math.sqrt(1-t*f*f),b=i*d+E*f-u*(1-t*f*f),c=t*u/(u+b),l=1/Math.sqrt(1-c*(2-c)*s*s),h=s*(1-c)*l,p=a*l,m=p*d-h*f,d=h,f=p}while(m*m>w&&g<x);return y=Math.atan(p/Math.abs(h)),{x:v,y:y,z:b}}function _x(e,t,n){if(t===z_)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(t===U_){var r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=n[6];return{x:c*(e.x-l*e.y+s*e.z)+r,y:c*(l*e.x+e.y-a*e.z)+i,z:c*(-s*e.x+a*e.y+e.z)+o}}}function wx(e,t,n){if(t===z_)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(t===U_){var r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=(e.x-r)/c,d=(e.y-i)/c,f=(e.z-o)/c;return{x:u+l*d-s*f,y:-l*u+d+a*f,z:s*u-a*d+f}}}function xx(e){return e===z_||e===U_}var Sx=function(e,t,n){return vx(e,t)||e.datum_type===V_||t.datum_type===V_?n:e.es!==t.es||e.a!==t.a||xx(e.datum_type)||xx(t.datum_type)?(n=yx(n,e.es,e.a),xx(e.datum_type)&&(n=_x(n,e.datum_type,e.datum_params)),xx(t.datum_type)&&(n=wx(n,t.datum_type,t.datum_params)),bx(n,t.es,t.a,t.b)):n},Cx=function(e,t,n){var r,i,o,a=n.x,s=n.y,l=n.z||0,c={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(r=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(r=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(r=l,i="z"),e.axis[o]){case"e":case"w":case"n":case"s":c[i]=r;break;case"u":void 0!==n[i]&&(c.z=r);break;case"d":void 0!==n[i]&&(c.z=-r);break;default:return null}return c},Ex=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t},kx=function(e){Ox(e.x),Ox(e.y)};function Ox(e){if("function"===typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof e||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function Tx(e,t){return(e.datum.datum_type===z_||e.datum.datum_type===U_)&&"WGS84"!==t.datumCode||(t.datum.datum_type===z_||t.datum.datum_type===U_)&&"WGS84"!==e.datumCode}function Ix(e,t,n){var r;if(Array.isArray(n)&&(n=Ex(n)),kx(n),e.datum&&t.datum&&Tx(e,t)&&(r=new gx("WGS84"),n=Ix(e,r,n),e=r),"enu"!==e.axis&&(n=Cx(e,!1,n)),"longlat"===e.projName)n={x:n.x*J_,y:n.y*J_,z:n.z||0};else if(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter,z:n.z||0}),n=e.inverse(n),!n)return;return e.from_greenwich&&(n.x+=e.from_greenwich),n=Sx(e.datum,t.datum,n),t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y,z:n.z||0}),"longlat"===t.projName?n={x:n.x*Q_,y:n.y*Q_,z:n.z||0}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter,z:n.z||0})),"enu"!==t.axis?Cx(t,!0,n):n}var Ax=gx("WGS84");function Rx(e,t,n){var r,i,o;return Array.isArray(n)?(r=Ix(e,t,n)||{x:NaN,y:NaN},n.length>2?"undefined"!==typeof e.name&&"geocent"===e.name||"undefined"!==typeof t.name&&"geocent"===t.name?"number"===typeof r.z?[r.x,r.y,r.z].concat(n.splice(3)):[r.x,r.y,n[2]].concat(n.splice(3)):[r.x,r.y].concat(n.splice(2)):[r.x,r.y]):(i=Ix(e,t,n),o=Object.keys(n),2===o.length||o.forEach((function(r){if("undefined"!==typeof e.name&&"geocent"===e.name||"undefined"!==typeof t.name&&"geocent"===t.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;i[r]=n[r]})),i)}function Px(e){return e instanceof gx?e:e.oProj?e.oProj:gx(e)}function Mx(e,t,n){e=Px(e);var r,i=!1;return"undefined"===typeof t?(t=e,e=Ax,i=!0):("undefined"!==typeof t.x||Array.isArray(t))&&(n=t,t=e,e=Ax,i=!0),t=Px(t),n?Rx(e,t,n):(r={forward:function(n){return Rx(e,t,n)},inverse:function(n){return Rx(t,e,n)}},i&&(r.oProj=t),r)}var Nx=Mx,Lx=6,Dx="AJSAJS",jx="AFAFAF",Fx=65,Bx=73,qx=79,zx=86,Ux=90,Gx={forward:Vx,inverse:Wx,toPoint:Hx};function Vx(e,t){return t=t||5,Qx(Xx({lat:e[1],lon:e[0]}),t)}function Wx(e){var t=Yx(nS(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function Hx(e){var t=Yx(nS(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function $x(e){return e*(Math.PI/180)}function Kx(e){return e/Math.PI*180}function Xx(e){var t,n,r,i,o,a,s,l,c,u=e.lat,d=e.lon,f=6378137,h=.00669438,p=.9996,m=$x(u),g=$x(d);c=Math.floor((d+180)/6)+1,180===d&&(c=60),u>=56&&u<64&&d>=3&&d<12&&(c=32),u>=72&&u<84&&(d>=0&&d<9?c=31:d>=9&&d<21?c=33:d>=21&&d<33?c=35:d>=33&&d<42&&(c=37)),t=6*(c-1)-180+3,l=$x(t),n=h/(1-h),r=f/Math.sqrt(1-h*Math.sin(m)*Math.sin(m)),i=Math.tan(m)*Math.tan(m),o=n*Math.cos(m)*Math.cos(m),a=Math.cos(m)*(g-l),s=f*((1-h/4-3*h*h/64-5*h*h*h/256)*m-(3*h/8+3*h*h/32+45*h*h*h/1024)*Math.sin(2*m)+(15*h*h/256+45*h*h*h/1024)*Math.sin(4*m)-35*h*h*h/3072*Math.sin(6*m));var v=p*r*(a+(1-i+o)*a*a*a/6+(5-18*i+i*i+72*o-58*n)*a*a*a*a*a/120)+5e5,y=p*(s+r*Math.tan(m)*(a*a/2+(5-i+9*o+4*o*o)*a*a*a*a/24+(61-58*i+i*i+600*o-330*n)*a*a*a*a*a*a/720));return u<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:c,zoneLetter:Jx(u)}}function Yx(e){var t=e.northing,n=e.easting,r=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,l,c,u,d,f,h,p,m=.9996,g=6378137,v=.00669438,y=(1-Math.sqrt(1-v))/(1+Math.sqrt(1-v)),b=n-5e5,_=t;r<"N"&&(_-=1e7),f=6*(i-1)-180+3,o=v/(1-v),d=_/m,h=d/(g*(1-v/4-3*v*v/64-5*v*v*v/256)),p=h+(3*y/2-27*y*y*y/32)*Math.sin(2*h)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*h)+151*y*y*y/96*Math.sin(6*h),a=g/Math.sqrt(1-v*Math.sin(p)*Math.sin(p)),s=Math.tan(p)*Math.tan(p),l=o*Math.cos(p)*Math.cos(p),c=g*(1-v)/Math.pow(1-v*Math.sin(p)*Math.sin(p),1.5),u=b/(a*m);var w=p-a*Math.tan(p)/c*(u*u/2-(5+3*s+10*l-4*l*l-9*o)*u*u*u*u/24+(61+90*s+298*l+45*s*s-252*o-3*l*l)*u*u*u*u*u*u/720);w=Kx(w);var x,S=(u-(1+2*s+l)*u*u*u/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*u*u*u*u*u/120)/Math.cos(p);if(S=f+Kx(S),e.accuracy){var C=Yx({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});x={top:C.lat,right:C.lon,bottom:w,left:S}}else x={lat:w,lon:S};return x}function Jx(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function Qx(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+Zx(e.easting,e.northing,e.zoneNumber)+n.substr(n.length-5,t)+r.substr(r.length-5,t)}function Zx(e,t,n){var r=eS(n),i=Math.floor(e/1e5),o=Math.floor(t/1e5)%20;return tS(i,o,r)}function eS(e){var t=e%Lx;return 0===t&&(t=Lx),t}function tS(e,t,n){var r=n-1,i=Dx.charCodeAt(r),o=jx.charCodeAt(r),a=i+e-1,s=o+t,l=!1;a>Ux&&(a=a-Ux+Fx-1,l=!0),(a===Bx||i<Bx&&a>Bx||(a>Bx||i<Bx)&&l)&&a++,(a===qx||i<qx&&a>qx||(a>qx||i<qx)&&l)&&(a++,a===Bx&&a++),a>Ux&&(a=a-Ux+Fx-1),s>zx?(s=s-zx+Fx-1,l=!0):l=!1,(s===Bx||o<Bx&&s>Bx||(s>Bx||o<Bx)&&l)&&s++,(s===qx||o<qx&&s>qx||(s>qx||o<qx)&&l)&&(s++,s===Bx&&s++),s>zx&&(s=s-zx+Fx-1);var c=String.fromCharCode(a)+String.fromCharCode(s);return c}function nS(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";var t,n=e.length,r=null,i="",o=0;while(!/[A-Z]/.test(t=e.charAt(o))){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;r=e.substring(o,o+=2);var l=eS(a),c=rS(r.charAt(0),l),u=iS(r.charAt(1),l);while(u<oS(s))u+=2e6;var d=n-o;if(d%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var f,h,p,m,g,v=d/2,y=0,b=0;return v>0&&(f=1e5/Math.pow(10,v),h=e.substring(o,o+v),y=parseFloat(h)*f,p=e.substring(o+v),b=parseFloat(p)*f),m=y+c,g=b+u,{easting:m,northing:g,zoneLetter:s,zoneNumber:a,accuracy:f}}function rS(e,t){var n=Dx.charCodeAt(t-1),r=1e5,i=!1;while(n!==e.charCodeAt(0)){if(n++,n===Bx&&n++,n===qx&&n++,n>Ux){if(i)throw"Bad character: "+e;n=Fx,i=!0}r+=1e5}return r}function iS(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n=jx.charCodeAt(t-1),r=0,i=!1;while(n!==e.charCodeAt(0)){if(n++,n===Bx&&n++,n===qx&&n++,n>zx){if(i)throw"Bad character: "+e;n=Fx,i=!0}r+=1e5}return r}function oS(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function aS(e,t,n){if(!(this instanceof aS))return new aS(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"===typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"===typeof e&&"undefined"===typeof t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}aS.fromMGRS=function(e){return new aS(Hx(e))},aS.prototype.toMGRS=function(e){return Vx([this.x,this.y],e)};var sS=aS,lS=1,cS=.25,uS=.046875,dS=.01953125,fS=.01068115234375,hS=.75,pS=.46875,mS=.013020833333333334,gS=.007120768229166667,vS=.3645833333333333,yS=.005696614583333333,bS=.3076171875,_S=function(e){var t=[];t[0]=lS-e*(cS+e*(uS+e*(dS+e*fS))),t[1]=e*(hS-e*(uS+e*(dS+e*fS)));var n=e*e;return t[2]=n*(pS-e*(mS+e*gS)),n*=e,t[3]=n*(vS-e*yS),t[4]=n*e*bS,t},wS=function(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))},xS=20,SS=function(e,t,n){for(var r=1/(1-t),i=e,o=xS;o;--o){var a=Math.sin(i),s=1-t*a*a;if(s=(wS(i,a,Math.cos(i),n)-e)*(s*Math.sqrt(s))*r,i-=s,Math.abs(s)<Y_)return i}return i};function CS(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=_S(this.es),this.ml0=wS(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function ES(e){var t,n,r,i=e.x,o=e.y,a=Gw(i-this.long0),s=Math.sin(o),l=Math.cos(o);if(this.es){var c=l*a,u=Math.pow(c,2),d=this.ep2*Math.pow(l,2),f=Math.pow(d,2),h=Math.abs(l)>Y_?Math.tan(o):0,p=Math.pow(h,2),m=Math.pow(p,2);t=1-this.es*Math.pow(s,2),c/=Math.sqrt(t);var g=wS(o,s,l,this.en);n=this.a*(this.k0*c*(1+u/6*(1-p+d+u/20*(5-18*p+m+14*d-58*p*d+u/42*(61+179*m-m*p-479*p)))))+this.x0,r=this.a*(this.k0*(g-this.ml0+s*a*c/2*(1+u/12*(5-p+9*d+4*f+u/30*(61+m-58*p+270*d-330*p*d+u/56*(1385+543*m-m*p-3111*p))))))+this.y0}else{var v=l*Math.sin(a);if(Math.abs(Math.abs(v)-1)<Y_)return 93;if(n=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,r=l*Math.cos(a)/Math.sqrt(1-Math.pow(v,2)),v=Math.abs(r),v>=1){if(v-1>Y_)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e}function kS(e){var t,n,r,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,n=SS(t,this.es,this.en),Math.abs(n)<H_){var s=Math.sin(n),l=Math.cos(n),c=Math.abs(l)>Y_?Math.tan(n):0,u=this.ep2*Math.pow(l,2),d=Math.pow(u,2),f=Math.pow(c,2),h=Math.pow(f,2);t=1-this.es*Math.pow(s,2);var p=o*Math.sqrt(t)/this.k0,m=Math.pow(p,2);t*=c,r=n-t*m/(1-this.es)*.5*(1-m/12*(5+3*f-9*u*f+u-4*d-m/30*(61+90*f-252*u*f+45*h+46*u-m/56*(1385+3633*f+4095*h+1574*h*f)))),i=Gw(this.long0+p*(1-m/6*(1+2*f+u-m/20*(5+28*f+24*h+8*u*f+6*u-m/42*(61+662*f+1320*h+720*h*f))))/l)}else r=H_*Uw(a),i=0;else{var g=Math.exp(o/this.k0),v=.5*(g-1/g),y=this.lat0+a/this.k0,b=Math.cos(y);t=Math.sqrt((1-Math.pow(b,2))/(1+Math.pow(v,2))),r=Math.asin(t),a<0&&(r=-r),i=0===v&&0===b?0:Gw(Math.atan2(v,b)+this.long0)}return e.x=i,e.y=r,e}var OS=["Transverse_Mercator","Transverse Mercator","tmerc"],TS={init:CS,forward:ES,inverse:kS,names:OS},IS=function(e){var t=Math.exp(e);return t=(t-1/t)/2,t},AS=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))},RS=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n},PS=function(e){var t=Math.abs(e);return t=RS(t*(1+t/(AS(1,t)+1))),e<0?-t:t},MS=function(e,t){var n,r=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;while(--i>=0)n=r*o-a+e[i],a=o,o=n;return t+n*Math.sin(2*t)},NS=function(e,t){var n,r=2*Math.cos(t),i=e.length-1,o=e[i],a=0;while(--i>=0)n=r*o-a+e[i],a=o,o=n;return Math.sin(t)*n},LS=function(e){var t=Math.exp(e);return t=(t+1/t)/2,t},DS=function(e,t,n){var r,i,o=Math.sin(t),a=Math.cos(t),s=IS(n),l=LS(n),c=2*a*l,u=-2*o*s,d=e.length-1,f=e[d],h=0,p=0,m=0;while(--d>=0)r=p,i=h,p=f,h=m,f=c*p-r-u*h+e[d],m=u*p-i+c*h;return c=o*l,u=a*s,[c*f-u*m,c*m+u*f]};function jS(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=MS(this.cbg,this.lat0);this.Zb=-this.Qn*(r+NS(this.gtu,2*r))}function FS(e){var t=Gw(e.x-this.long0),n=e.y;n=MS(this.cbg,n);var r=Math.sin(n),i=Math.cos(n),o=Math.sin(t),a=Math.cos(t);n=Math.atan2(r,a*i),t=Math.atan2(o*i,AS(r,i*a)),t=PS(Math.tan(t));var s,l,c=DS(this.gtu,2*n,2*t);return n+=c[0],t+=c[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(s=1/0,l=1/0),e.x=s,e.y=l,e}function BS(e){var t,n,r=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var o=DS(this.utg,2*i,2*r);i+=o[0],r+=o[1],r=Math.atan(IS(r));var a=Math.sin(i),s=Math.cos(i),l=Math.sin(r),c=Math.cos(r);i=Math.atan2(a*c,AS(l,c*s)),r=Math.atan2(l,c*s),t=Gw(r+this.long0),n=MS(this.cgb,i)}else t=1/0,n=1/0;return e.x=t,e.y=n,e}var qS=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"],zS={init:jS,forward:FS,inverse:BS,names:qS},US=function(e,t){if(void 0===e){if(e=Math.floor(30*(Gw(t)+Math.PI)/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e},GS="etmerc";function VS(){var e=US(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*J_,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,zS.init.apply(this),this.forward=zS.forward,this.inverse=zS.inverse}var WS=["Universal Transverse Mercator System","utm"],HS={init:VS,names:WS,dependsOn:GS},$S=function(e,t){return Math.pow((1-e)/(1+e),t)},KS=20;function XS(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Z_)/(Math.pow(Math.tan(.5*this.lat0+Z_),this.C)*$S(this.e*e,this.ratexp))}function YS(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+Z_),this.C)*$S(this.e*Math.sin(n),this.ratexp))-H_,e.x=this.C*t,e}function JS(e){for(var t=1e-14,n=e.x/this.C,r=e.y,i=Math.pow(Math.tan(.5*r+Z_)/this.K,1/this.C),o=KS;o>0;--o){if(r=2*Math.atan(i*$S(this.e*Math.sin(e.y),-.5*this.e))-H_,Math.abs(r-e.y)<t)break;e.y=r}return o?(e.x=n,e.y=r,e):null}var QS=["gauss"],ZS={init:XS,forward:YS,inverse:JS,names:QS};function eC(){ZS.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function tC(e){var t,n,r,i;return e.x=Gw(e.x-this.long0),ZS.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=i*n*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function nC(e){var t,n,r,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),n=Math.cos(a),i=Math.asin(n*this.sinc0+e.y*t*this.cosc0/o),r=Math.atan2(e.x*t,o*this.cosc0*n-e.y*this.sinc0*t)}else i=this.phic0,r=0;return e.x=r,e.y=i,ZS.inverse.apply(this,[e]),e.x=Gw(e.x+this.long0),e}var rC=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],iC={init:eC,forward:tC,inverse:nC,names:rC};function oC(e,t,n){return t*=n,Math.tan(.5*(H_+e))*Math.pow((1-t)/(1+t),.5*n)}function aC(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Y_&&(this.k0=.5*(1+Uw(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=Y_&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=Y_&&(this.k0=.5*this.cons*zw(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Vw(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=zw(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-H_,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function sC(e){var t,n,r,i,o,a,s=e.x,l=e.y,c=Math.sin(l),u=Math.cos(l),d=Gw(s-this.long0);return Math.abs(Math.abs(s-this.long0)-Math.PI)<=Y_&&Math.abs(l+this.lat0)<=Y_?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*u*Math.cos(d)),e.x=this.a*t*u*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*u*Math.cos(d))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,c,this.e))-H_,i=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=Y_?(o=Vw(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(s-this.long0),e.y=this.y0-this.con*a*Math.cos(s-this.long0),e):(Math.abs(this.sinlat0)<Y_?(t=2*this.a*this.k0/(1+i*Math.cos(d)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*i*Math.cos(d))),e.y=t*(this.cosX0*r-this.sinX0*i*Math.cos(d))+this.y0),e.x=t*i*Math.sin(d)+this.x0,e))}function lC(e){var t,n,r,i,o;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var s=2*Math.atan(a/(2*this.a*this.k0));return t=this.long0,n=this.lat0,a<=Y_?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(s)*this.sinlat0+e.y*Math.sin(s)*this.coslat0/a),t=Math.abs(this.coslat0)<Y_?this.lat0>0?Gw(this.long0+Math.atan2(e.x,-1*e.y)):Gw(this.long0+Math.atan2(e.x,e.y)):Gw(this.long0+Math.atan2(e.x*Math.sin(s),a*this.coslat0*Math.cos(s)-e.y*this.sinlat0*Math.sin(s))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=Y_){if(a<=Y_)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*Ww(this.e,r),t=this.con*Gw(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=Y_?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=Gw(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),n=-1*Ww(this.e,Math.tan(.5*(H_+o)));return e.x=t,e.y=n,e}var cC=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],uC={init:aC,forward:sC,inverse:lC,names:cC,ssfn_:oC};function dC(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=this.rf,i=1/r,o=2*i-Math.pow(i,2),a=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+e/2)),c=Math.log((1+a*t)/(1-a*t));this.K=s-this.alpha*l+this.alpha*a/2*c}function fC(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e}function hC(e){var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,i=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),a=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,l=0,c=o,u=-1e3,d=0;while(Math.abs(c-u)>1e-7){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=c,e}var pC=["somerc"],mC={init:dC,forward:fC,inverse:hC,names:pC};function gC(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),n=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-n*n);var r,i,o=Vw(this.e,this.lat0,e),a=this.bl/t*Math.sqrt((1-this.es)/(1-n*n));if(a*a<1&&(a=1),isNaN(this.longc)){var s=Vw(this.e,this.lat1,Math.sin(this.lat1)),l=Vw(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(a+Math.sqrt(a*a-1))*Math.pow(o,this.bl):this.el=(a-Math.sqrt(a*a-1))*Math.pow(o,this.bl);var c=Math.pow(s,this.bl),u=Math.pow(l,this.bl);r=this.el/c,i=.5*(r-1/r);var d=(this.el*this.el-u*c)/(this.el*this.el+u*c),f=(u-c)/(u+c),h=Gw(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(d*Math.tan(.5*this.bl*h)/f)/this.bl,this.long0=Gw(this.long0);var p=Gw(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*p)/i),this.alpha=Math.asin(a*Math.sin(this.gamma0))}else r=this.lat0>=0?a+Math.sqrt(a*a-1):a-Math.sqrt(a*a-1),this.el=r*Math.pow(o,this.bl),i=.5*(r-1/r),this.gamma0=Math.asin(Math.sin(this.alpha)/a),this.long0=this.longc-Math.asin(i*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha))}function vC(e){var t,n,r,i=e.x,o=e.y,a=Gw(i-this.long0);if(Math.abs(Math.abs(o)-H_)<=Y_)r=o>0?-1:1,n=this.al/this.bl*Math.log(Math.tan(Z_+r*this.gamma0*.5)),t=-1*r*H_*this.al/this.bl;else{var s=Vw(this.e,o,Math.sin(o)),l=this.el/Math.pow(s,this.bl),c=.5*(l-1/l),u=.5*(l+1/l),d=Math.sin(this.bl*a),f=(c*Math.sin(this.gamma0)-d*Math.cos(this.gamma0))/u;n=Math.abs(Math.abs(f)-1)<=Y_?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-f)/(1+f))/this.bl,t=Math.abs(Math.cos(this.bl*a))<=Y_?this.al*this.bl*a:this.al*Math.atan2(c*Math.cos(this.gamma0)+d*Math.sin(this.gamma0),Math.cos(this.bl*a))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+n):(t-=this.uc,e.x=this.x0+n*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-n*Math.sin(this.alpha)),e}function yC(e){var t,n;this.no_rot?(n=e.y-this.y0,t=e.x-this.x0):(n=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var r=Math.exp(-1*this.bl*n/this.al),i=.5*(r-1/r),o=.5*(r+1/r),a=Math.sin(this.bl*t/this.al),s=(a*Math.cos(this.gamma0)+i*Math.sin(this.gamma0))/o,l=Math.pow(this.el/Math.sqrt((1+s)/(1-s)),1/this.bl);return Math.abs(s-1)<Y_?(e.x=this.long0,e.y=H_):Math.abs(s+1)<Y_?(e.x=this.long0,e.y=-1*H_):(e.y=Ww(this.e,l),e.x=Gw(this.long0-Math.atan2(i*Math.cos(this.gamma0)-a*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e}var bC=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"],_C={init:gC,forward:vC,inverse:yC,names:bC};function wC(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<Y_)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=zw(this.e,t,n),i=Vw(this.e,this.lat1,t),o=Math.sin(this.lat2),a=Math.cos(this.lat2),s=zw(this.e,o,a),l=Vw(this.e,this.lat2,o),c=Vw(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>Y_?this.ns=Math.log(r/s)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function xC(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=Y_&&(n=Uw(n)*(H_-2*Y_));var r,i,o=Math.abs(Math.abs(n)-H_);if(o>Y_)r=Vw(this.e,n,Math.sin(n)),i=this.a*this.f0*Math.pow(r,this.ns);else{if(o=n*this.ns,o<=0)return null;i=0}var a=this.ns*Gw(t-this.long0);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e}function SC(e){var t,n,r,i,o,a=(e.x-this.x0)/this.k0,s=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+s*s),n=1):(t=-Math.sqrt(a*a+s*s),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*a,n*s)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),i=Ww(this.e,r),-9999===i)return null}else i=-H_;return o=Gw(l/this.ns+this.long0),e.x=o,e.y=i,e}var CC=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"],EC={init:wC,forward:xC,inverse:SC,names:CC};function kC(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function OC(e){var t,n,r,i,o,a,s,l=e.x,c=e.y,u=Gw(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),r=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e}function TC(e){var t,n,r,i,o,a,s,l,c=e.x;e.x=e.y,e.y=c,this.czech||(e.y*=-1,e.x*=-1),a=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x),i=o/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),n=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(t)),e.x=this.long0-n/this.alfa,s=t,l=0;var u=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-e.y)<1e-10&&(l=1),s=e.y,u+=1}while(0===l&&u<15);return u>=15?null:e}var IC=["Krovak","krovak"],AC={init:kC,forward:OC,inverse:TC,names:IC},RC=function(e,t,n,r,i){return e*i-t*Math.sin(2*i)+n*Math.sin(4*i)-r*Math.sin(6*i)},PC=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},MC=function(e){return.375*e*(1+.25*e*(1+.46875*e))},NC=function(e){return.05859375*e*e*(1+.75*e)},LC=function(e){return e*e*e*(35/3072)},DC=function(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)},jC=function(e){return Math.abs(e)<H_?e:e-Uw(e)*Math.PI},FC=function(e,t,n,r,i){var o,a;o=e/t;for(var s=0;s<15;s++)if(a=(e-(t*o-n*Math.sin(2*o)+r*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*n*Math.cos(2*o)+4*r*Math.cos(4*o)-6*i*Math.cos(6*o)),o+=a,Math.abs(a)<=1e-10)return o;return NaN};function BC(){this.sphere||(this.e0=PC(this.es),this.e1=MC(this.es),this.e2=NC(this.es),this.e3=LC(this.es),this.ml0=this.a*RC(this.e0,this.e1,this.e2,this.e3,this.lat0))}function qC(e){var t,n,r=e.x,i=e.y;if(r=Gw(r-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(i),Math.cos(r))-this.lat0);else{var o=Math.sin(i),a=Math.cos(i),s=DC(this.a,this.e,o),l=Math.tan(i)*Math.tan(i),c=r*Math.cos(i),u=c*c,d=this.es*a*a/(1-this.es),f=this.a*RC(this.e0,this.e1,this.e2,this.e3,i);t=s*c*(1-u*l*(1/6-(8-l+8*d)*u/120)),n=f-this.ml0+s*o/a*u*(.5+(5-l+6*d)*u/24)}return e.x=t+this.x0,e.y=n+this.y0,e}function zC(e){e.x-=this.x0,e.y-=this.y0;var t,n,r=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(r)),n=Math.atan2(Math.tan(r),Math.cos(o))}else{var a=this.ml0/this.a+i,s=FC(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-H_)<=Y_)return e.x=this.long0,e.y=H_,i<0&&(e.y*=-1),e;var l=DC(this.a,this.e,Math.sin(s)),c=l*l*l/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(s),2),d=r*this.a/l,f=d*d;t=s-l*Math.tan(s)/c*d*d*(.5-(1+3*u)*d*d/24),n=d*(1-f*(u/3+(1+3*u)*u*f/15))/Math.cos(s)}return e.x=Gw(n+this.long0),e.y=jC(t),e}var UC=["Cassini","Cassini_Soldner","cass"],GC={init:BC,forward:qC,inverse:zC,names:UC},VC=function(e,t){var n;return e>1e-7?(n=e*t,(1-e*e)*(t/(1-n*n)-.5/e*Math.log((1-n)/(1+n)))):2*t},WC=1,HC=2,$C=3,KC=4;function XC(){var e,t=Math.abs(this.lat0);if(Math.abs(t-H_)<Y_?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<Y_?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=VC(this.e,1),this.mmf=.5/(1-this.es),this.apa=iE(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=VC(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function YC(e){var t,n,r,i,o,a,s,l,c,u,d=e.x,f=e.y;if(d=Gw(d-this.long0),this.sphere){if(o=Math.sin(f),u=Math.cos(f),r=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+u*r:1+this.sinph0*o+this.cosph0*u*r,n<=Y_)return null;n=Math.sqrt(2/n),t=n*u*Math.sin(d),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*u*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(f+this.lat0)<Y_)return null;n=Z_-.5*f,n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)),t=n*Math.sin(d),n*=r}}else{switch(s=0,l=0,c=0,r=Math.cos(d),i=Math.sin(d),o=Math.sin(f),a=VC(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(s=a/this.qp,l=Math.sqrt(1-s*s)),this.mode){case this.OBLIQ:c=1+this.sinb1*s+this.cosb1*l*r;break;case this.EQUIT:c=1+l*r;break;case this.N_POLE:c=H_+f,a=this.qp-a;break;case this.S_POLE:c=f-H_,a=this.qp+a;break}if(Math.abs(c)<Y_)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),n=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*s-this.sinb1*l*r):(c=Math.sqrt(2/(1+l*r)))*s*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:a>=0?(t=(c=Math.sqrt(a))*i,n=r*(this.mode===this.S_POLE?c:-c)):t=n=0;break}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e}function JC(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,i,o,a,s,l=e.x/this.a,c=e.y/this.a;if(this.sphere){var u,d=0,f=0;if(u=Math.sqrt(l*l+c*c),n=.5*u,n>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(f=Math.sin(n),d=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=Y_?0:Math.asin(c*f/u),l*=f,c=d*u;break;case this.OBLIQ:n=Math.abs(u)<=Y_?this.lat0:Math.asin(d*this.sinph0+c*f*this.cosph0/u),l*=f*this.cosph0,c=(d-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:c=-c,n=H_-n;break;case this.S_POLE:n-=H_;break}t=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(s=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,a=Math.sqrt(l*l+c*c),a<Y_)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*a/this.rq),r=Math.cos(i),l*=i=Math.sin(i),this.mode===this.OBLIQ?(s=r*this.sinb1+c*i*this.cosb1/a,o=this.qp*s,c=a*this.cosb1*r-c*this.sinb1*i):(s=c*i/a,o=this.qp*s,c=a*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),o=l*l+c*c,!o)return e.x=this.long0,e.y=this.lat0,e;s=1-o/this.qp,this.mode===this.S_POLE&&(s=-s)}t=Math.atan2(l,c),n=oE(Math.asin(s),this.apa)}return e.x=Gw(this.long0+t),e.y=n,e}var QC=.3333333333333333,ZC=.17222222222222222,eE=.10257936507936508,tE=.06388888888888888,nE=.0664021164021164,rE=.016415012942191543;function iE(e){var t,n=[];return n[0]=e*QC,t=e*e,n[0]+=t*ZC,n[1]=t*tE,t*=e,n[0]+=t*eE,n[1]+=t*nE,n[2]=t*rE,n}function oE(e,t){var n=e+e;return e+t[0]*Math.sin(n)+t[1]*Math.sin(n+n)+t[2]*Math.sin(n+n+n)}var aE=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],sE={init:XC,forward:YC,inverse:JC,names:aE,S_POLE:WC,N_POLE:HC,EQUIT:$C,OBLIQ:KC},lE=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)};function cE(){Math.abs(this.lat1+this.lat2)<Y_||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=zw(this.e3,this.sin_po,this.cos_po),this.qs1=VC(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=zw(this.e3,this.sin_po,this.cos_po),this.qs2=VC(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=VC(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>Y_?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function uE(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=VC(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*Gw(t-this.long0),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e}function dE(e){var t,n,r,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),i=0,0!==t&&(i=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,a=this.phi1z(this.e3,n)),o=Gw(i/this.ns0+this.long0),e.x=o,e.y=a,e}function fE(e,t){var n,r,i,o,a,s=lE(.5*t);if(e<Y_)return s;for(var l=e*e,c=1;c<=25;c++)if(n=Math.sin(s),r=Math.cos(s),i=e*n,o=1-i*i,a=.5*o*o/r*(t/(1-l)-n/o+.5/e*Math.log((1-i)/(1+i))),s+=a,Math.abs(a)<=1e-7)return s;return null}var hE=["Albers_Conic_Equal_Area","Albers","aea"],pE={init:cE,forward:uE,inverse:dE,names:hE,phi1z:fE};function mE(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function gE(e){var t,n,r,i,o,a,s,l,c=e.x,u=e.y;return r=Gw(c-this.long0),t=Math.sin(u),n=Math.cos(u),i=Math.cos(r),a=this.sin_p14*t+this.cos_p14*n*i,o=1,a>0||Math.abs(a)<=Y_?(s=this.x0+this.a*o*n*Math.sin(r)/a,l=this.y0+this.a*o*(this.cos_p14*t-this.sin_p14*n*i)/a):(s=this.x0+this.infinity_dist*n*Math.sin(r),l=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*i)),e.x=s,e.y=l,e}function vE(e){var t,n,r,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),n=Math.sin(i),r=Math.cos(i),a=lE(r*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),o=Gw(this.long0+o)):(a=this.phic0,o=0),e.x=o,e.y=a,e}var yE=["gnom"],bE={init:mE,forward:gE,inverse:vE,names:yE},_E=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*H_:H_;for(var r,i,o,a,s=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(s),o=Math.cos(s),a=e*i,r=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),s+=r,Math.abs(r)<=1e-10)return s;return NaN};function wE(){this.sphere||(this.k0=zw(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function xE(e){var t,n,r=e.x,i=e.y,o=Gw(r-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=VC(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=n,e}function SE(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=Gw(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=_E(this.e,2*e.y*this.k0/this.a),t=Gw(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e}var CE=["cea"],EE={init:wE,forward:xE,inverse:SE,names:CE};function kE(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function OE(e){var t=e.x,n=e.y,r=Gw(t-this.long0),i=jC(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*i,e}function TE(e){var t=e.x,n=e.y;return e.x=Gw(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=jC(this.lat0+(n-this.y0)/this.a),e}var IE=["Equirectangular","Equidistant_Cylindrical","eqc"],AE={init:kE,forward:OE,inverse:TE,names:IE},RE=20;function PE(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=PC(this.es),this.e1=MC(this.es),this.e2=NC(this.es),this.e3=LC(this.es),this.ml0=this.a*RC(this.e0,this.e1,this.e2,this.e3,this.lat0)}function ME(e){var t,n,r,i=e.x,o=e.y,a=Gw(i-this.long0);if(r=a*Math.sin(o),this.sphere)Math.abs(o)<=Y_?(t=this.a*a,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(o),n=this.a*(jC(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=Y_)t=this.a*a,n=-1*this.ml0;else{var s=DC(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(r),n=this.a*RC(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e}function NE(e){var t,n,r,i,o,a,s,l,c;if(r=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=Y_)t=Gw(r/this.a+this.long0),n=0;else{var u;for(a=this.lat0+i/this.a,s=r*r/this.a/this.a+a*a,l=a,o=RE;o;--o)if(u=Math.tan(l),c=-1*(a*(l*u+1)-l-.5*(l*l+s)*u)/((l-a)/u-1),l+=c,Math.abs(c)<=Y_){n=l;break}t=Gw(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(i+this.ml0)<=Y_)n=0,t=Gw(this.long0+r/this.a);else{var d,f,h,p,m;for(a=(this.ml0+i)/this.a,s=r*r/this.a/this.a+a*a,l=a,o=RE;o;--o)if(m=this.e*Math.sin(l),d=Math.sqrt(1-m*m)*Math.tan(l),f=this.a*RC(this.e0,this.e1,this.e2,this.e3,l),h=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),p=f/this.a,c=(a*(d*p+1)-p-.5*d*(p*p+s))/(this.es*Math.sin(2*l)*(p*p+s-2*a*p)/(4*d)+(a-p)*(d*h-2/Math.sin(2*l))-h),l-=c,Math.abs(c)<=Y_){n=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=Gw(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e}var LE=["Polyconic","poly"],DE={init:PE,forward:ME,inverse:NE,names:LE};function jE(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function FE(e){var t,n=e.x,r=e.y,i=r-this.lat0,o=n-this.long0,a=i/W_*1e-5,s=o,l=1,c=0;for(t=1;t<=10;t++)l*=a,c+=this.A[t]*l;var u,d,f=c,h=s,p=1,m=0,g=0,v=0;for(t=1;t<=6;t++)u=p*f-m*h,d=m*f+p*h,p=u,m=d,g=g+this.B_re[t]*p-this.B_im[t]*m,v=v+this.B_im[t]*p+this.B_re[t]*m;return e.x=v*this.a+this.x0,e.y=g*this.a+this.y0,e}function BE(e){var t,n,r,i=e.x,o=e.y,a=i-this.x0,s=o-this.y0,l=s/this.a,c=a/this.a,u=1,d=0,f=0,h=0;for(t=1;t<=6;t++)n=u*l-d*c,r=d*l+u*c,u=n,d=r,f=f+this.C_re[t]*u-this.C_im[t]*d,h=h+this.C_im[t]*u+this.C_re[t]*d;for(var p=0;p<this.iterations;p++){var m,g,v=f,y=h,b=l,_=c;for(t=2;t<=6;t++)m=v*f-y*h,g=y*f+v*h,v=m,y=g,b+=(t-1)*(this.B_re[t]*v-this.B_im[t]*y),_+=(t-1)*(this.B_im[t]*v+this.B_re[t]*y);v=1,y=0;var w=this.B_re[1],x=this.B_im[1];for(t=2;t<=6;t++)m=v*f-y*h,g=y*f+v*h,v=m,y=g,w+=t*(this.B_re[t]*v-this.B_im[t]*y),x+=t*(this.B_im[t]*v+this.B_re[t]*y);var S=w*w+x*x;f=(b*w+_*x)/S,h=(_*w-b*x)/S}var C=f,E=h,k=1,O=0;for(t=1;t<=9;t++)k*=C,O+=this.D[t]*k;var T=this.lat0+O*W_*1e5,I=this.long0+E;return e.x=I,e.y=T,e}var qE=["New_Zealand_Map_Grid","nzmg"],zE={init:jE,forward:FE,inverse:BE,names:qE};function UE(){}function GE(e){var t=e.x,n=e.y,r=Gw(t-this.long0),i=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return e.x=i,e.y=o,e}function VE(e){e.x-=this.x0,e.y-=this.y0;var t=Gw(this.long0+e.x/this.a),n=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=n,e}var WE=["Miller_Cylindrical","mill"],HE={init:UE,forward:GE,inverse:VE,names:WE},$E=20;function KE(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=_S(this.es)}function XE(e){var t,n,r=e.x,i=e.y;if(r=Gw(r-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),a=$E;a;--a){var s=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<Y_)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*r*(this.m+Math.cos(i)),n=this.a*this.C_y*i}else{var l=Math.sin(i),c=Math.cos(i);n=this.a*wS(i,l,c,this.en),t=this.a*r*c/Math.sqrt(1-this.es*l*l)}return e.x=t,e.y=n,e}function YE(e){var t,n,r,i;return e.x-=this.x0,r=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,r/=this.C_x*(this.m+Math.cos(t)),this.m?t=lE((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=lE(Math.sin(t)/this.n)),r=Gw(r+this.long0),t=jC(t)):(t=SS(e.y/this.a,this.es,this.en),i=Math.abs(t),i<H_?(i=Math.sin(t),n=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),r=Gw(n)):i-Y_<H_&&(r=this.long0)),e.x=r,e.y=t,e}var JE=["Sinusoidal","sinu"],QE={init:KE,forward:XE,inverse:YE,names:JE};function ZE(){}function ek(e){var t=e.x,n=e.y,r=Gw(t-this.long0),i=n,o=Math.PI*Math.sin(n);while(1){var a=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=a,Math.abs(a)<Y_)break}i/=2,Math.PI/2-Math.abs(n)<Y_&&(r=0);var s=.900316316158*this.a*r*Math.cos(i)+this.x0,l=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=l,e}function tk(e){var t,n;e.x-=this.x0,e.y-=this.y0,n=e.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),t=Math.asin(n);var r=Gw(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var i=Math.asin(n);return e.x=r,e.y=i,e}var nk=["Mollweide","moll"],rk={init:ZE,forward:ek,inverse:tk,names:nk};function ik(){Math.abs(this.lat1+this.lat2)<Y_||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=PC(this.es),this.e1=MC(this.es),this.e2=NC(this.es),this.e3=LC(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=zw(this.e,this.sinphi,this.cosphi),this.ml1=RC(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<Y_?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=zw(this.e,this.sinphi,this.cosphi),this.ml2=RC(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=RC(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function ok(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var i=RC(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-i)}var o=this.ns*Gw(n-this.long0),a=this.x0+t*Math.sin(o),s=this.y0+this.rh-t*Math.cos(o);return e.x=a,e.y=s,e}function ak(e){var t,n,r,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;if(0!==n&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=Gw(this.long0+o/this.ns),r=jC(this.g-n/this.a),e.x=i,e.y=r,e;var a=this.g-n/this.a;return r=FC(a,this.e0,this.e1,this.e2,this.e3),i=Gw(this.long0+o/this.ns),e.x=i,e.y=r,e}var sk=["Equidistant_Conic","eqdc"],lk={init:ik,forward:ok,inverse:ak,names:sk};function ck(){this.R=this.a}function uk(e){var t,n,r=e.x,i=e.y,o=Gw(r-this.long0);Math.abs(i)<=Y_&&(t=this.x0+this.R*o,n=this.y0);var a=lE(2*Math.abs(i/Math.PI));(Math.abs(o)<=Y_||Math.abs(Math.abs(i)-H_)<=Y_)&&(t=this.x0,n=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var s=.5*Math.abs(Math.PI/o-o/Math.PI),l=s*s,c=Math.sin(a),u=Math.cos(a),d=u/(c+u-1),f=d*d,h=d*(2/c-1),p=h*h,m=Math.PI*this.R*(s*(d-p)+Math.sqrt(l*(d-p)*(d-p)-(p+l)*(f-p)))/(p+l);o<0&&(m=-m),t=this.x0+m;var g=l+d;return m=Math.PI*this.R*(h*g-s*Math.sqrt((p+l)*(l+1)-g*g))/(p+l),n=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=n,e}function dk(e){var t,n,r,i,o,a,s,l,c,u,d,f,h;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,r=e.x/d,i=e.y/d,o=r*r+i*i,a=-Math.abs(i)*(1+o),s=a-2*i*i+r*r,l=-2*a+1+2*i*i+o*o,h=i*i/l+(2*s*s*s/l/l/l-9*a*s/l/l)/27,c=(a-s*s/3/l)/l,u=2*Math.sqrt(-c/3),d=3*h/c/u,Math.abs(d)>1&&(d=d>=0?1:-1),f=Math.acos(d)/3,n=e.y>=0?(-u*Math.cos(f+Math.PI/3)-s/3/l)*Math.PI:-(-u*Math.cos(f+Math.PI/3)-s/3/l)*Math.PI,t=Math.abs(r)<Y_?this.long0:Gw(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(r*r-i*i)+o*o))/2/r),e.x=t,e.y=n,e}var fk=["Van_der_Grinten_I","VanDerGrinten","vandg"],hk={init:ck,forward:uk,inverse:dk,names:fk};function pk(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function mk(e){var t,n,r,i,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b,_,w,x,S,C=e.x,E=e.y,k=Math.sin(e.y),O=Math.cos(e.y),T=Gw(C-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=Y_?(e.x=this.x0+this.a*(H_-E)*Math.sin(T),e.y=this.y0-this.a*(H_-E)*Math.cos(T),e):Math.abs(this.sin_p12+1)<=Y_?(e.x=this.x0+this.a*(H_+E)*Math.sin(T),e.y=this.y0+this.a*(H_+E)*Math.cos(T),e):(y=this.sin_p12*k+this.cos_p12*O*Math.cos(T),g=Math.acos(y),v=g?g/Math.sin(g):1,e.x=this.x0+this.a*v*O*Math.sin(T),e.y=this.y0+this.a*v*(this.cos_p12*k-this.sin_p12*O*Math.cos(T)),e):(t=PC(this.es),n=MC(this.es),r=NC(this.es),i=LC(this.es),Math.abs(this.sin_p12-1)<=Y_?(o=this.a*RC(t,n,r,i,H_),a=this.a*RC(t,n,r,i,E),e.x=this.x0+(o-a)*Math.sin(T),e.y=this.y0-(o-a)*Math.cos(T),e):Math.abs(this.sin_p12+1)<=Y_?(o=this.a*RC(t,n,r,i,H_),a=this.a*RC(t,n,r,i,E),e.x=this.x0+(o+a)*Math.sin(T),e.y=this.y0+(o+a)*Math.cos(T),e):(s=k/O,l=DC(this.a,this.e,this.sin_p12),c=DC(this.a,this.e,k),u=Math.atan((1-this.es)*s+this.es*l*this.sin_p12/(c*O)),d=Math.atan2(Math.sin(T),this.cos_p12*Math.tan(u)-this.sin_p12*Math.cos(T)),b=0===d?Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.abs(Math.abs(d)-Math.PI)<=Y_?-Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.asin(Math.sin(T)*Math.cos(u)/Math.sin(d)),f=this.e*this.sin_p12/Math.sqrt(1-this.es),h=this.e*this.cos_p12*Math.cos(d)/Math.sqrt(1-this.es),p=f*h,m=h*h,_=b*b,w=_*b,x=w*b,S=x*b,g=l*b*(1-_*m*(1-m)/6+w/8*p*(1-2*m)+x/120*(m*(4-7*m)-3*f*f*(1-7*m))-S/48*p),e.x=this.x0+g*Math.sin(d),e.y=this.y0+g*Math.cos(d),e))}function gk(e){var t,n,r,i,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b,_,w,x,S,C;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if(t=Math.sqrt(e.x*e.x+e.y*e.y),t>2*H_*this.a)return;return n=t/this.a,r=Math.sin(n),i=Math.cos(n),o=this.long0,Math.abs(t)<=Y_?a=this.lat0:(a=lE(i*this.sin_p12+e.y*r*this.cos_p12/t),s=Math.abs(this.lat0)-H_,o=Math.abs(s)<=Y_?this.lat0>=0?Gw(this.long0+Math.atan2(e.x,-e.y)):Gw(this.long0-Math.atan2(-e.x,e.y)):Gw(this.long0+Math.atan2(e.x*r,t*this.cos_p12*i-e.y*this.sin_p12*r))),e.x=o,e.y=a,e}return l=PC(this.es),c=MC(this.es),u=NC(this.es),d=LC(this.es),Math.abs(this.sin_p12-1)<=Y_?(f=this.a*RC(l,c,u,d,H_),t=Math.sqrt(e.x*e.x+e.y*e.y),h=f-t,a=FC(h/this.a,l,c,u,d),o=Gw(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=Y_?(f=this.a*RC(l,c,u,d,H_),t=Math.sqrt(e.x*e.x+e.y*e.y),h=t-f,a=FC(h/this.a,l,c,u,d),o=Gw(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),g=Math.atan2(e.x,e.y),p=DC(this.a,this.e,this.sin_p12),v=Math.cos(g),y=this.e*this.cos_p12*v,b=-y*y/(1-this.es),_=3*this.es*(1-b)*this.sin_p12*this.cos_p12*v/(1-this.es),w=t/p,x=w-b*(1+b)*Math.pow(w,3)/6-_*(1+3*b)*Math.pow(w,4)/24,S=1-b*x*x/2-w*x*x*x/6,m=Math.asin(this.sin_p12*Math.cos(x)+this.cos_p12*Math.sin(x)*v),o=Gw(this.long0+Math.asin(Math.sin(g)*Math.sin(x)/Math.cos(m))),C=Math.sin(m),a=Math.atan2((C-this.es*S*this.sin_p12)*Math.tan(m),C*(1-this.es)),e.x=o,e.y=a,e)}var vk=["Azimuthal_Equidistant","aeqd"],yk={init:pk,forward:mk,inverse:gk,names:vk};function bk(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function _k(e){var t,n,r,i,o,a,s,l,c=e.x,u=e.y;return r=Gw(c-this.long0),t=Math.sin(u),n=Math.cos(u),i=Math.cos(r),a=this.sin_p14*t+this.cos_p14*n*i,o=1,(a>0||Math.abs(a)<=Y_)&&(s=this.a*o*n*Math.sin(r),l=this.y0+this.a*o*(this.cos_p14*t-this.sin_p14*n*i)),e.x=s,e.y=l,e}function wk(e){var t,n,r,i,o,a,s;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),n=lE(t/this.a),r=Math.sin(n),i=Math.cos(n),a=this.long0,Math.abs(t)<=Y_?(s=this.lat0,e.x=a,e.y=s,e):(s=lE(i*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.abs(this.lat0)-H_,Math.abs(o)<=Y_?(a=this.lat0>=0?Gw(this.long0+Math.atan2(e.x,-e.y)):Gw(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=s,e):(a=Gw(this.long0+Math.atan2(e.x*r,t*this.cos_p14*i-e.y*this.sin_p14*r)),e.x=a,e.y=s,e))}var xk=["ortho"],Sk={init:bk,forward:_k,inverse:wk,names:xk},Ck={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Ek={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function kk(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=H_-Z_/2?this.face=Ck.TOP:this.lat0<=-(H_-Z_/2)?this.face=Ck.BOTTOM:Math.abs(this.long0)<=Z_?this.face=Ck.FRONT:Math.abs(this.long0)<=H_+Z_?this.face=this.long0>0?Ck.RIGHT:Ck.LEFT:this.face=Ck.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Ok(e){var t,n,r,i,o,a,s={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===Ck.TOP)i=H_-t,n>=Z_&&n<=H_+Z_?(l.value=Ek.AREA_0,r=n-H_):n>H_+Z_||n<=-(H_+Z_)?(l.value=Ek.AREA_1,r=n>0?n-tw:n+tw):n>-(H_+Z_)&&n<=-Z_?(l.value=Ek.AREA_2,r=n+H_):(l.value=Ek.AREA_3,r=n);else if(this.face===Ck.BOTTOM)i=H_+t,n>=Z_&&n<=H_+Z_?(l.value=Ek.AREA_0,r=-n+H_):n<Z_&&n>=-Z_?(l.value=Ek.AREA_1,r=-n):n<-Z_&&n>=-(H_+Z_)?(l.value=Ek.AREA_2,r=-n-H_):(l.value=Ek.AREA_3,r=n>0?-n+tw:-n-tw);else{var c,u,d,f,h,p,m;this.face===Ck.RIGHT?n=Ak(n,+H_):this.face===Ck.BACK?n=Ak(n,+tw):this.face===Ck.LEFT&&(n=Ak(n,-H_)),f=Math.sin(t),h=Math.cos(t),p=Math.sin(n),m=Math.cos(n),c=h*m,u=h*p,d=f,this.face===Ck.FRONT?(i=Math.acos(c),r=Ik(i,d,u,l)):this.face===Ck.RIGHT?(i=Math.acos(u),r=Ik(i,d,-c,l)):this.face===Ck.BACK?(i=Math.acos(-c),r=Ik(i,d,-u,l)):this.face===Ck.LEFT?(i=Math.acos(-u),r=Ik(i,d,c,l)):(i=r=0,l.value=Ek.AREA_0)}return a=Math.atan(12/tw*(r+Math.acos(Math.sin(r)*Math.cos(Z_))-H_)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(r))))),l.value===Ek.AREA_1?a+=H_:l.value===Ek.AREA_2?a+=tw:l.value===Ek.AREA_3&&(a+=1.5*tw),s.x=o*Math.cos(a),s.y=o*Math.sin(a),s.x=s.x*this.a+this.x0,s.y=s.y*this.a+this.y0,e.x=s.x,e.y=s.y,e}function Tk(e){var t,n,r,i,o,a,s,l,c,u,d,f,h={lam:0,phi:0},p={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?p.value=Ek.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(p.value=Ek.AREA_1,t-=H_):e.x<0&&-e.x>=Math.abs(e.y)?(p.value=Ek.AREA_2,t=t<0?t+tw:t-tw):(p.value=Ek.AREA_3,t+=H_),c=tw/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),r=Math.cos(t),i=Math.tan(n),s=1-r*r*i*i*(1-Math.cos(Math.atan(1/Math.cos(a)))),s<-1?s=-1:s>1&&(s=1),this.face===Ck.TOP)l=Math.acos(s),h.phi=H_-l,p.value===Ek.AREA_0?h.lam=a+H_:p.value===Ek.AREA_1?h.lam=a<0?a+tw:a-tw:p.value===Ek.AREA_2?h.lam=a-H_:h.lam=a;else if(this.face===Ck.BOTTOM)l=Math.acos(s),h.phi=l-H_,p.value===Ek.AREA_0?h.lam=-a+H_:p.value===Ek.AREA_1?h.lam=-a:p.value===Ek.AREA_2?h.lam=-a-H_:h.lam=a<0?-a-tw:-a+tw;else{var m,g,v;m=s,c=m*m,v=c>=1?0:Math.sqrt(1-c)*Math.sin(a),c+=v*v,g=c>=1?0:Math.sqrt(1-c),p.value===Ek.AREA_1?(c=g,g=-v,v=c):p.value===Ek.AREA_2?(g=-g,v=-v):p.value===Ek.AREA_3&&(c=g,g=v,v=-c),this.face===Ck.RIGHT?(c=m,m=-g,g=c):this.face===Ck.BACK?(m=-m,g=-g):this.face===Ck.LEFT&&(c=m,m=g,g=-c),h.phi=Math.acos(-v)-H_,h.lam=Math.atan2(g,m),this.face===Ck.RIGHT?h.lam=Ak(h.lam,-H_):this.face===Ck.BACK?h.lam=Ak(h.lam,-tw):this.face===Ck.LEFT&&(h.lam=Ak(h.lam,+H_))}0!==this.es&&(u=h.phi<0?1:0,d=Math.tan(h.phi),f=this.b/Math.sqrt(d*d+this.one_minus_f_squared),h.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),u&&(h.phi=-h.phi));return h.lam+=this.long0,e.x=h.lam,e.y=h.phi,e}function Ik(e,t,n,r){var i;return e<Y_?(r.value=Ek.AREA_0,i=0):(i=Math.atan2(t,n),Math.abs(i)<=Z_?r.value=Ek.AREA_0:i>Z_&&i<=H_+Z_?(r.value=Ek.AREA_1,i-=H_):i>H_+Z_||i<=-(H_+Z_)?(r.value=Ek.AREA_2,i=i>=0?i-tw:i+tw):(r.value=Ek.AREA_3,i+=H_)),i}function Ak(e,t){var n=e+t;return n<-tw?n+=ew:n>+tw&&(n-=ew),n}var Rk=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],Pk={init:kk,forward:Ok,inverse:Tk,names:Rk},Mk=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Nk=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Lk=.8487,Dk=1.3523,jk=Q_/5,Fk=1/jk,Bk=18,qk=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},zk=function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])};function Uk(e,t,n,r){for(var i=t;r;--r){var o=e(i);if(i-=o,Math.abs(o)<n)break}return i}function Gk(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function Vk(e){var t=Gw(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*jk);r<0?r=0:r>=Bk&&(r=Bk-1),n=Q_*(n-Fk*r);var i={x:qk(Mk[r],n)*t,y:qk(Nk[r],n)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*Lk+this.x0,i.y=i.y*this.a*Dk+this.y0,i}function Wk(e){var t={x:(e.x-this.x0)/(this.a*Lk),y:Math.abs(e.y-this.y0)/(this.a*Dk)};if(t.y>=1)t.x/=Mk[Bk][0],t.y=e.y<0?-H_:H_;else{var n=Math.floor(t.y*Bk);for(n<0?n=0:n>=Bk&&(n=Bk-1);;)if(Nk[n][0]>t.y)--n;else{if(!(Nk[n+1][0]<=t.y))break;++n}var r=Nk[n],i=5*(t.y-r[0])/(Nk[n+1][0]-r[0]);i=Uk((function(e){return(qk(r,e)-t.y)/zk(r,e)}),i,Y_,100),t.x/=qk(Mk[n],i),t.y=(5*n+i)*J_,e.y<0&&(t.y=-t.y)}return t.x=Gw(t.x+this.long0),t}var Hk=["Robinson","robin"],$k={init:Gk,forward:Vk,inverse:Wk,names:Hk};function Kk(){this.name="geocent"}function Xk(e){var t=yx(e,this.es,this.a);return t}function Yk(e){var t=bx(e,this.es,this.a,this.b);return t}var Jk=["Geocentric","geocentric","geocent","Geocent"],Qk={init:Kk,forward:Xk,inverse:Yk,names:Jk},Zk=function(e){e.Proj.projections.add(TS),e.Proj.projections.add(zS),e.Proj.projections.add(HS),e.Proj.projections.add(iC),e.Proj.projections.add(uC),e.Proj.projections.add(mC),e.Proj.projections.add(_C),e.Proj.projections.add(EC),e.Proj.projections.add(AC),e.Proj.projections.add(GC),e.Proj.projections.add(sE),e.Proj.projections.add(pE),e.Proj.projections.add(bE),e.Proj.projections.add(EE),e.Proj.projections.add(AE),e.Proj.projections.add(DE),e.Proj.projections.add(zE),e.Proj.projections.add(HE),e.Proj.projections.add(QE),e.Proj.projections.add(rk),e.Proj.projections.add(lk),e.Proj.projections.add(hk),e.Proj.projections.add(yk),e.Proj.projections.add(Sk),e.Proj.projections.add(Pk),e.Proj.projections.add($k),e.Proj.projections.add(Qk)};Nx.defaultDatum="WGS84",Nx.Proj=gx,Nx.WGS84=new Nx.Proj("WGS84"),Nx.Point=sS,Nx.toPoint=Ex,Nx.defs=Iw,Nx.transform=Ix,Nx.mgrs=Gx,Nx.version="__VERSION__",Zk(Nx);var eO=Nx;var tO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nO=function(e){function t(t,n,r,i,o){var a=this,s=void 0!==o?Yh.IDLE:Yh.LOADED;return a=e.call(this,t,n,r,s)||this,a.loader_=void 0!==o?o:null,a.canvas_=i,a.error_=null,a}return tO(t,e),t.prototype.getError=function(){return this.error_},t.prototype.handleLoad_=function(e){e?(this.error_=e,this.state=Yh.ERROR):this.state=Yh.LOADED,this.changed()},t.prototype.load=function(){this.state==Yh.IDLE&&(this.state=Yh.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},t.prototype.getImage=function(){return this.canvas_},t}(kg),rO=nO,iO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oO=function(e){function t(t,n,r,i,o,a,s){var l=this,c=t.getExtent(),u=n.getExtent(),d=u?Mc(r,u):r,f=Ic(d),h=Ub(t,n,f,i),p=Rb,m=new Db(t,n,d,c,h*p,i),g=m.calculateSourceExtent(),v=a(g,h,o),y=v?Yh.IDLE:Yh.EMPTY,b=v?v.getPixelRatio():1;return l=e.call(this,r,i,b,y)||this,l.targetProj_=n,l.maxSourceExtent_=c,l.triangulation_=m,l.targetResolution_=i,l.targetExtent_=r,l.sourceImage_=v,l.sourcePixelRatio_=b,l.contextOptions_=s,l.canvas_=null,l.sourceListenerKey_=null,l}return iO(t,e),t.prototype.disposeInternal=function(){this.state==Yh.LOADING&&this.unlistenSource_(),e.prototype.disposeInternal.call(this)},t.prototype.getImage=function(){return this.canvas_},t.prototype.getProjection=function(){return this.targetProj_},t.prototype.reproject_=function(){var e=this.sourceImage_.getState();if(e==Yh.LOADED){var t=Dc(this.targetExtent_)/this.targetResolution_,n=Pc(this.targetExtent_)/this.targetResolution_;this.canvas_=Vb(t,n,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.contextOptions_)}this.state=e,this.changed()},t.prototype.load=function(){if(this.state==Yh.IDLE){this.state=Yh.LOADING,this.changed();var e=this.sourceImage_.getState();e==Yh.LOADED||e==Yh.ERROR?this.reproject_():(this.sourceListenerKey_=Os(this.sourceImage_,ks.CHANGE,(function(e){var t=this.sourceImage_.getState();t!=Yh.LOADED&&t!=Yh.ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},t.prototype.unlistenSource_=function(){Is(this.sourceListenerKey_),this.sourceListenerKey_=null},t}(kg),aO=oO,sO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lO={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},cO=function(e){function t(t,n){var r=e.call(this,t)||this;return r.image=n,r}return sO(t,e),t}(as),uO=function(e){function t(t){var n=e.call(this,{attributions:t.attributions,projection:t.projection,state:t.state})||this;return n.resolutions_=void 0!==t.resolutions?t.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n.contextOptions_=!1===t.imageSmoothing?Fb:void 0,n}return sO(t,e),t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getContextOptions=function(){return this.contextOptions_},t.prototype.findNearestResolution=function(e){if(this.resolutions_){var t=us(this.resolutions_,e,0);e=this.resolutions_[t]}return e},t.prototype.getImage=function(e,t,n,r){var i=this.getProjection();if(Pb&&i&&r&&!hu(i,r)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&hu(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==t&&yc(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new aO(i,r,e,t,n,function(e,t,n){return this.getImageInternal(e,t,n,i)}.bind(this),this.contextOptions_),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return i&&(r=i),this.getImageInternal(e,t,n,r)},t.prototype.getImageInternal=function(e,t,n,r){return Ds()},t.prototype.handleImageChange=function(e){var t=e.target;switch(t.getState()){case Yh.LOADING:this.loading=!0,this.dispatchEvent(new cO(lO.IMAGELOADSTART,t));break;case Yh.LOADED:this.loading=!1,this.dispatchEvent(new cO(lO.IMAGELOADEND,t));break;case Yh.ERROR:this.loading=!1,this.dispatchEvent(new cO(lO.IMAGELOADERROR,t));break;default:}},t}(Ip);var dO=uO,fO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){var n=this,r=t||{};return n=e.call(this,{attributions:r.attributions,imageSmoothing:r.imageSmoothing,projection:r.projection,resolutions:r.resolutions,state:r.state})||this,n.canvasFunction_=r.canvasFunction,n.canvas_=null,n.renderedRevision_=0,n.ratio_=void 0!==r.ratio?r.ratio:1.5,n}fO(t,e),t.prototype.getImageInternal=function(e,t,n,r){t=this.findNearestResolution(t);var i=this.canvas_;if(i&&this.renderedRevision_==this.getRevision()&&i.getResolution()==t&&i.getPixelRatio()==n&&cc(i.getExtent(),e))return i;e=e.slice(),qc(e,this.ratio_);var o=Dc(e)/t,a=Pc(e)/t,s=[o*n,a*n],l=this.canvasFunction_.call(this,e,t,n,s,r);return l&&(i=new rO(e,t,n,l)),this.canvas_=i,this.renderedRevision_=this.getRevision(),i}})(dO);(function(){let e=document.createElement("div"),t=["transform","WebkitTransform","MozTransform","OTransform","msTransform"];for(let n=0;n<t.length;n++){let r=t[n];if(void 0!==e.style[r])return r}t[0]})();var hO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pO=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,r)||this,n}return hO(t,e),t}($p),mO=pO,gO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vO=function(e){function t(t){var n=e.call(this,t)||this;return n.image_=null,n}return gO(t,e),t.prototype.getImage=function(){return this.image_?this.image_.getImage():null},t.prototype.prepareFrame=function(e){var t=e.layerStatesArray[e.layerIndex],n=e.pixelRatio,r=e.viewState,i=r.resolution,o=this.getLayer().getSource(),a=e.viewHints,s=e.extent;if(void 0!==t.extent&&(s=Mc(s,Su(t.extent,r.projection))),!a[yg.ANIMATING]&&!a[yg.INTERACTING]&&!Fc(s))if(o){var l=r.projection;if(!Pb){var c=o.getProjection();c&&(l=c)}var u=o.getImage(s,i,n,l);u&&this.loadImage(u)&&(this.image_=u)}else this.image_=null;return!!this.image_},t.prototype.renderFrame=function(e,t){var n=this.image_,r=n.getExtent(),i=n.getResolution(),o=n.getPixelRatio(),a=e.layerStatesArray[e.layerIndex],s=e.pixelRatio,l=e.viewState,c=l.center,u=l.resolution,d=e.size,f=s*i/(u*o),h=Math.round(d[0]*s),p=Math.round(d[1]*s),m=l.rotation;if(m){var g=Math.round(Math.sqrt(h*h+p*p));h=g,p=g}Uu(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/s,1/s,m,-h/2,-p/2),Gu(this.inversePixelTransform,this.pixelTransform);var v=Wh(this.pixelTransform);this.useContainer(t,v,a.opacity);var y=this.context,b=y.canvas;b.width!=h||b.height!=p?(b.width=h,b.height=p):this.containerReused||y.clearRect(0,0,h,p);var _=!1;if(a.extent){var w=Su(a.extent,l.projection);_=!cc(w,e.extent)&&jc(w,e.extent),_&&this.clipUnrotated(y,e,w)}var x=n.getImage(),S=Uu(this.tempTransform,h/2,p/2,f,f,0,o*(r[0]-c[0])/i,o*(c[1]-r[3])/i);this.renderedResolution=i*s/o;var C=S[4],E=S[5],k=x.width*S[0],O=x.height*S[3];if(bs(y,this.getLayer().getSource().getContextOptions()),this.preRender(y,e),k>=.5&&O>=.5){var T=a.opacity,I=void 0;1!==T&&(I=this.context.globalAlpha,this.context.globalAlpha=T),this.context.drawImage(x,0,0,+x.width,+x.height,Math.round(C),Math.round(E),Math.round(k),Math.round(O)),1!==T&&(this.context.globalAlpha=I)}return this.postRender(y,e),_&&y.restore(),v!==b.style.transform&&(b.style.transform=v),this.container},t}(tg),yO=vO,bO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){return e.call(this,t)||this}bO(t,e),t.prototype.createRenderer=function(){return new yO(this)}})(mO);Number.MAX_SAFE_INTEGER;var _O=n("fdf9");_O["baiduMapLayer"]&&_O["baiduMapLayer"].__proto__;n("595b");var wO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xO=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=r,s}return wO(t,e),t.prototype.getFormat=function(){return this.format_},t.prototype.getFeatures=function(){return this.features_},t.prototype.getKey=function(){return this.url_},t.prototype.load=function(){this.state==_v.IDLE&&(this.setState(_v.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},t.prototype.onLoad=function(e,t){this.setFeatures(e)},t.prototype.onError=function(){this.setState(_v.ERROR)},t.prototype.setFeatures=function(e){this.features_=e,this.setState(_v.LOADED)},t.prototype.setLoader=function(e){this.loader_=e},t}(Eb),SO=xO,CO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),EO=[],kO=function(e){function t(t,n,r,i){var o=e.call(this,t,n,{transition:0})||this;return o.context_={},o.executorGroups={},o.loadingSourceTiles=0,o.errorSourceTileKeys={},o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=null,o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.sourceZ=-1,o.hifi=!1,o.wrappedTileCoord=r,o}return CO(t,e),t.prototype.getContext=function(e){var t=Fs(e);return t in this.context_||(this.context_[t]=tl(1,1,EO)),this.context_[t]},t.prototype.hasContext=function(e){return Fs(e)in this.context_},t.prototype.getImage=function(e){return this.hasContext(e)?this.getContext(e).canvas:null},t.prototype.getReplayState=function(e){var t=Fs(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedZ:-1,renderedTileZ:-1}),this.replayState_[t]},t.prototype.load=function(){this.getSourceTiles()},t.prototype.release=function(){for(var t in this.context_)EO.push(this.context_[t].canvas);e.prototype.release.call(this)},t}(Eb),OO=kO,TO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){var n=this,r=t.projection||"EPSG:3857",i=t.extent||y_(r),o=t.tileGrid||m_({extent:i,maxResolution:t.maxResolution,maxZoom:void 0!==t.maxZoom?t.maxZoom:22,minZoom:t.minZoom,tileSize:t.tileSize||512});return n=e.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,opaque:!1,projection:r,state:t.state,tileGrid:o,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:IO,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:void 0===t.zDirection?1:t.zDirection})||this,n.format_=t.format?t.format:null,n.loadingTiles_={},n.sourceTileCache=new i_(n.tileCache.highWaterMark),n.overlaps_=void 0==t.overlaps||t.overlaps,n.tileClass=t.tileClass?t.tileClass:SO,n.tileGrids_={},n}TO(t,e),t.prototype.getFeaturesInExtent=function(e){var t=[],n=this.tileCache;if(0===n.getCount())return t;var r=Zb(n.peekFirstKey())[0],i=this.tileGrid;return n.forEach((function(n){if(n.tileCoord[0]===r&&n.getState()===_v.LOADED)for(var o=n.getSourceTiles(),a=0,s=o.length;a<s;++a){var l=o[a],c=l.tileCoord;if(jc(e,i.getTileCoordExtent(c))){var u=l.getFeatures();if(u)for(var d=0,f=u.length;d<f;++d){var h=u[d],p=h.getGeometry();jc(e,p.getExtent())&&t.push(h)}}}})),t},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},t.prototype.expireCache=function(t,n){e.prototype.expireCache.call(this,t,n),this.sourceTileCache.expireCache({})},t.prototype.getSourceTiles=function(e,t,n){var r=n.wrappedTileCoord,i=this.getTileGridForProjection(t),o=i.getTileCoordExtent(r),a=r[0],s=i.getResolution(a);oc(o,-s,o);var l=this.tileGrid,c=l.getExtent();c&&Mc(o,c,o);var u,d,f,h=l.getZForResolution(s,1),p=l.getMinZoom(),m=n.sourceTiles;if(m&&m.length>0&&m[0].tileCoord[0]===h)u=m,d=!0,f=h;else{u=[],f=h+1;do{--f,d=!0,l.forEachTileCoord(o,f,function(r){var i,o=this.tileUrlFunction(r,e,t);if(void 0!==o)if(this.sourceTileCache.containsKey(o)){i=this.sourceTileCache.get(o);var a=i.getState();if(a===_v.LOADED||a===_v.ERROR||a===_v.EMPTY)return void u.push(i)}else f===h&&(i=new this.tileClass(r,_v.IDLE,o,this.format_,this.tileLoadFunction),i.extent=l.getTileCoordExtent(r),i.projection=t,i.resolution=l.getResolution(r[0]),this.sourceTileCache.set(o,i),i.addEventListener(ks.CHANGE,this.handleTileChange.bind(this)),i.load());d=d&&i&&i.getState()===_v.LOADED,i&&i.getState()!==_v.EMPTY&&n.getState()===_v.IDLE&&(n.loadingSourceTiles++,i.addEventListener(ks.CHANGE,(function e(){var t=i.getState(),r=i.getKey();if(t===_v.LOADED||t===_v.ERROR){t===_v.LOADED?(i.removeEventListener(ks.CHANGE,e),n.loadingSourceTiles--,delete n.errorSourceTileKeys[r]):t===_v.ERROR&&(n.errorSourceTileKeys[r]=!0);var o=Object.keys(n.errorSourceTileKeys).length;n.loadingSourceTiles-o===0&&(n.hifi=0===o,n.sourceZ=h,n.setState(_v.LOADED))}})))}.bind(this)),d||(u.length=0)}while(!d&&f>p)}return n.getState()===_v.IDLE&&n.setState(_v.LOADING),d&&(n.hifi=h===f,n.sourceZ=f,n.getState()<_v.LOADED?n.setState(_v.LOADED):m&&hs(u,m)||(n.sourceTiles=u)),u},t.prototype.getTile=function(e,t,n,r,i){var o,a=Jb(e,t,n),s=this.getKey();if(this.tileCache.containsKey(a)&&(o=this.tileCache.get(a),o.key===s))return o;var l=[e,t,n],c=this.getTileCoordForTileUrlFunction(l,i),u=this.getTileGrid().getExtent(),d=this.getTileGridForProjection(i);if(c&&u){var f=d.getTileCoordExtent(c);oc(f,-d.getResolution(e),f),jc(u,f)||(c=null)}var h=!0;if(null!==c){var p=this.tileGrid,m=d.getResolution(e),g=p.getZForResolution(m,1),v=d.getTileCoordExtent(c);oc(v,-m,v),p.forEachTileCoord(v,g,function(e){h=h&&!this.tileUrlFunction(e,r,i)}.bind(this))}var y=new OO(l,h?_v.EMPTY:_v.IDLE,c,this.getSourceTiles.bind(this,r,i));return y.key=s,o?(y.interimTile=o,y.refreshInterimChain(),this.tileCache.replace(a,y)):this.tileCache.set(a,y),y},t.prototype.getTileGridForProjection=function(e){var t=e.getCode(),n=this.tileGrids_[t];if(!n){var r=this.tileGrid;n=v_(e,void 0,r?r.getTileSize(r.getMinZoom()):void 0),this.tileGrids_[t]=n}return n},t.prototype.getTilePixelRatio=function(e){return e},t.prototype.getTilePixelSize=function(e,t,n){var r=this.getTileGridForProjection(n),i=Jp(r.getTileSize(e),this.tmpSize);return[Math.round(i[0]*t),Math.round(i[1]*t)]},t.prototype.updateCacheSize=function(t,n){e.prototype.updateCacheSize.call(this,2*t,n)}})(I_);function IO(e,t){var n=Mp(t,e.getFormat(),e.onLoad.bind(e),e.onError.bind(e));e.setLoader(n)}var AO=n("7915"),RO=n.n(AO),PO=Pu(),MO=function(){function e(e,t,n,r,i){this.extent_,this.id_=i,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=r}return e.prototype.get=function(e){return this.properties_[e]},e.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===Vc.POINT?mc(this.flatCoordinates_):vc(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},e.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var e=Ic(this.getExtent());this.flatInteriorPoints_=xf(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_},e.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var e=Lf(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Sf(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_},e.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=$d(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},e.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var e=this.flatCoordinates_,t=0,n=this.ends_,r=0,i=n.length;r<i;++r){var o=n[r],a=$d(e,t,o,2,.5);fs(this.flatMidpoints_,a),t=o}}return this.flatMidpoints_},e.prototype.getId=function(){return this.id_},e.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},e.prototype.getGeometry=function(){return this},e.prototype.getSimplifiedGeometry=function(e){return this},e.prototype.simplifyTransformed=function(e,t){return this},e.prototype.getProperties=function(){return this.properties_},e.prototype.getStride=function(){return 2},e.prototype.getStyleFunction=function(){},e.prototype.getType=function(){return this.type_},e.prototype.transform=function(e,t){e=au(e);var n=e.getExtent(),r=e.getWorldExtent(),i=Pc(r)/Pc(n);Uu(PO,r[0],r[3],i,-i,0,0,0),Hu(this.flatCoordinates_,0,this.flatCoordinates_.length,2,PO,this.flatCoordinates_)},e.prototype.getEnds=function(){return this.ends_},e}();MO.prototype.getEndss=MO.prototype.getEnds,MO.prototype.getFlatCoordinates=MO.prototype.getOrientedFlatCoordinates;var NO=MO,LO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){var n=e.call(this)||this,r=t||{};return n.dataProjection=new _l({code:"",units:dl.TILE_PIXELS}),n.featureClass_=r.featureClass?r.featureClass:NO,n.geometryName_=r.geometryName,n.layerName_=r.layerName?r.layerName:"layer",n.layers_=r.layers?r.layers:null,n.idProperty_=r.idProperty,n}LO(t,e),t.prototype.readRawGeometry_=function(e,t,n,r){e.pos=t.geometry;var i=e.readVarint()+e.pos,o=1,a=0,s=0,l=0,c=0,u=0;while(e.pos<i){if(!a){var d=e.readVarint();o=7&d,a=d>>3}a--,1===o||2===o?(s+=e.readSVarint(),l+=e.readSVarint(),1===o&&c>u&&(r.push(c),u=c),n.push(s,l),c+=2):7===o?c>u&&(n.push(n[u],n[u+1]),c+=2):nc(!1,59)}c>u&&(r.push(c),u=c)},t.prototype.createFeature_=function(e,t,n){var r,i=t.type;if(0===i)return null;var o,a=t.properties;this.idProperty_?(o=a[this.idProperty_],delete a[this.idProperty_]):o=t.id,a[this.layerName_]=t.layer.name;var s=[],l=[];this.readRawGeometry_(e,t,s,l);var c=qO(i,l.length);if(this.featureClass_===NO)r=new this.featureClass_(c,s,l,a,o),r.transform(n.dataProjection,n.featureProjection);else{var u=void 0;if(c==Vc.POLYGON){for(var d=[],f=0,h=0,p=0,m=l.length;p<m;++p){var g=l[p];if(Ef(s,f,g,2)){if(0===d.length)continue;d[d.length-1].push(l[h])}else d.push(l.slice(h,p+1));h=p+1,f=g}u=d.length>1?new Ff(s,ed.XY,d):new Mf(s,ed.XY,l)}else u=c===Vc.POINT?new hd(s,ed.XY):c===Vc.LINE_STRING?new cf(s,ed.XY):c===Vc.POLYGON?new Mf(s,ed.XY,l):c===Vc.MULTI_POINT?new mf(s,ed.XY):c===Vc.MULTI_LINE_STRING?new ff(s,ed.XY,l):null;var v=this.featureClass_;r=new v,this.geometryName_&&r.setGeometryName(this.geometryName_);var y=Cd(u,!1,n);r.setGeometry(y),r.setId(o),r.setProperties(a,!0)}return r},t.prototype.getType=function(){return Ed.ARRAY_BUFFER},t.prototype.readFeatures=function(e,t){var n=this.layers_,r=this.adaptOptions(t),i=au(r.dataProjection);i.setWorldExtent(r.extent),r.dataProjection=i;var o=new RO.a(e),a=o.readFields(DO,{}),s=[];for(var l in a)if(!n||-1!=n.indexOf(l)){var c=a[l],u=c?[0,0,c.extent,c.extent]:null;i.setExtent(u);for(var d=0,f=c.length;d<f;++d){var h=BO(o,c,d);s.push(this.createFeature_(o,h,r))}}return s},t.prototype.readProjection=function(e){return this.dataProjection},t.prototype.setLayers=function(e){this.layers_=e}})(Sd);function DO(e,t,n){if(3===e){var r={keys:[],values:[],features:[]},i=n.readVarint()+n.pos;n.readFields(jO,r,i),r.length=r.features.length,r.length&&(t[r.name]=r)}}function jO(e,t,n){if(15===e)t.version=n.readVarint();else if(1===e)t.name=n.readString();else if(5===e)t.extent=n.readVarint();else if(2===e)t.features.push(n.pos);else if(3===e)t.keys.push(n.readString());else if(4===e){var r=null,i=n.readVarint()+n.pos;while(n.pos<i)e=n.readVarint()>>3,r=1===e?n.readString():2===e?n.readFloat():3===e?n.readDouble():4===e?n.readVarint64():5===e?n.readVarint():6===e?n.readSVarint():7===e?n.readBoolean():null;t.values.push(r)}}function FO(e,t,n){if(1==e)t.id=n.readVarint();else if(2==e){var r=n.readVarint()+n.pos;while(n.pos<r){var i=t.layer.keys[n.readVarint()],o=t.layer.values[n.readVarint()];t.properties[i]=o}}else 3==e?t.type=n.readVarint():4==e&&(t.geometry=n.pos)}function BO(e,t,n){e.pos=t.features[n];var r=e.readVarint()+e.pos,i={layer:t,type:0,properties:{}};return e.readFields(FO,i,r),i}function qO(e,t){var n;return 1===e?n=1===t?Vc.POINT:Vc.MULTI_POINT:2===e?n=1===t?Vc.LINE_STRING:Vc.MULTI_LINE_STRING:3===e&&(n=Vc.POLYGON),n}var zO=function(e){if(cf.prototype.getFlatMidpoint||(cf.prototype.getFlatMidpoint=function(){return this.getCoordinateAt(.5)}),"4"===Vg.getOlVersion()&&window&&window.ol&&window.ol.geom.flat){window.targetMapCache=e;let t=window.ol;t.format.MVT.prototype.readProjection=function(e){return new t.proj.Projection({code:"",units:t.proj.Units.TILE_PIXELS})},t.format.MVT.prototype.readProjection=function(e){return new t.proj.Projection({code:"",units:t.proj.Units.TILE_PIXELS})},t.render.canvas.Replay.prototype.applyFill=function(e,n){var r=e.fillStyle,i=[t.render.canvas.Instruction.SET_FILL_STYLE,r];if("string"!==typeof r){var o=window.targetMapCache.getView().getProjection().getExtent();i.push([o[0],o[3]])}this.instructions.push(i)},t.render.canvas.Replay.prototype.applyFill=function(e,n){var r=e.fillStyle,i=[t.render.canvas.Instruction.SET_FILL_STYLE,r];if("string"!==typeof r){var o=window.targetMapCache.getView().getProjection().getExtent();i.push([o[0],o[3]])}this.instructions.push(i)},t.format.MVT.prototype.createFeature_=function(e,n,r){var i,o=n.type;if(0===o)return null;var a=n.id,s=n.properties;s[this.layerName_]=n.layer.name;var l=[],c=[];t.format.MVT.readRawGeometry_(e,n,l,c);var u=t.format.MVT.getGeometryType_(o,c.length);if(this.featureClass_===t.render.Feature)i=new this.featureClass_(u,l,c,s,a);else{var d;if(u==t.geom.GeometryType.POLYGON){for(var f=[],h=0,p=0,m=0,g=c.length;m<g;++m){var v=c[m];t.geom.flat.orient.linearRingIsClockwise(l,h,v,2)||(f.push(c.slice(p,m+1)),p=m+1),h=v}f.length>1?(c=f,d=new t.geom.MultiPolygon(null)):d=new t.geom.Polygon(null)}else d=u===t.geom.GeometryType.POINT?new t.geom.Point(null):u===t.geom.GeometryType.LINE_STRING?new t.geom.LineString(null):u===t.geom.GeometryType.POLYGON?new t.geom.Polygon(null):u===t.geom.GeometryType.MULTI_POINT?new t.geom.MultiPoint(null):u===t.geom.GeometryType.MULTI_LINE_STRING?new t.geom.MultiLineString(null):null;if(d){d.setFlatCoordinates(t.geom.GeometryLayout.XY,l,c),i=new this.featureClass_,this.geometryName_&&i.setGeometryName(this.geometryName_);var y=t.format.Feature.transformWithOptions(d,!1,this.adaptOptions(r));i.setGeometry(y),i.setId(a),i.setProperties(s)}}return i},t.geom.flat.textpath.lineString=function(e,n,r,i,o,a,s,l){var c=[],u=Math.atan2(e[r-i+1]-e[n+1],e[r-i]-e[n]),d=u<-.785||u>2.356,f=u<-.785&&u>-2.356||u>.785&&u<2.356,h=o.length,p=e[n],m=e[n+1];n+=i;var g=e[n],v=e[n+1],y=0,b=Math.sqrt(Math.pow(g-p,2)+Math.pow(v-m,2));while(n<r-i&&y+b<s)p=g,m=v,n+=i,g=e[n],v=e[n+1],y+=b,b=Math.sqrt(Math.pow(g-p,2)+Math.pow(v-m,2));for(var _,w,x,S,C=(s-y)/b,E=t.math.lerp(p,g,C),k=t.math.lerp(m,v,C),O="",T=0,I=0;I<h;++I){w=d?h-I-1:I;var A=o.charAt(w),R=A.charCodeAt(0),P=R>=19968&&R<=40907;O=d?A+O:O+A;var M=a(O)-T;T+=M;while(n<r-i&&Math.sqrt(Math.pow(g-E,2)+Math.pow(v-k,2))<M/2)p=g,m=v,n+=i,g=e[n],v=e[n+1];var N=Math.pow(g-p,2)+Math.pow(v-m,2),L=2*(g-p)*(p-E)+2*(v-m)*(m-k),D=Math.pow(p-E,2)+Math.pow(m-k,2)-Math.pow(M/2,2),j=(-L+Math.sqrt(L*L-4*N*D))/(2*N),F=(-L-Math.sqrt(L*L-4*N*D))/(2*N);C=j<0||j>1?F:F<0||F>1?j:j<F?F:j;var B=t.math.lerp(p,g,C),q=t.math.lerp(m,v,C);while(n<r-i&&Math.sqrt(Math.pow(g-B,2)+Math.pow(v-q,2))<M/2)p=g,m=v,n+=i,g=e[n],v=e[n+1];N=Math.pow(g-p,2)+Math.pow(v-m,2),L=2*(g-p)*(p-B)+2*(v-m)*(m-q),D=Math.pow(p-B,2)+Math.pow(m-q,2)-Math.pow(M/2,2),j=(-L+Math.sqrt(L*L-4*N*D))/(2*N),F=(-L-Math.sqrt(L*L-4*N*D))/(2*N),C=j<0||j>1?F:F<0||F>1?j:j<F?F:j;var z=t.math.lerp(p,g,C),U=t.math.lerp(m,v,C),G=Math.atan2(U-k,z-E);if(d&&(G+=G>0?-Math.PI:Math.PI),P&&f&&(G+=G>0?-Math.PI/2:Math.PI/2),void 0!==x){var V=G-x;if(V+=V>Math.PI?-2*Math.PI:V<-Math.PI?2*Math.PI:0,P===S?Math.abs(V)>l:Math.abs(V)>l+Math.PI/2)return null}x!=G||f?(O=A,T=M,_=[B,q,M/2,G,O],d?c.unshift(_):c.push(_),x=G,S=P):(d&&(_[0]=B,_[1]=q,_[2]=M/2),_[4]=O),E=z,k=U,s+=M}return c},t.layer.VectorTile.prototype.setFastRender=function(e){return this.fastRender=e},t.renderer.canvas.VectorTileLayer.prototype.postCompose=function(e,n,r){var i,o,a=this.getLayer(),s=a.getDeclutter()?{}:null,l=a.getSource(),c=a.getRenderMode(),u=t.renderer.canvas.VectorTileLayer.VECTOR_REPLAYS[c],d=n.pixelRatio,f=n.viewState.rotation,h=n.size;f&&(i=Math.round(d*h[0]/2),o=Math.round(d*h[1]/2),t.render.canvas.rotateAtOffset(e,-f,i,o)),s&&this.declutterTree_.clear();for(var p=this.renderedTiles,m=l.getTileGridForProjection(n.viewState.projection),g=[],v=[],y=p.length-1;y>=0;--y){var b=p[y];if(b.getState()!=t.TileState.ABORT)for(var _=b.tileCoord,w=m.getTileCoordExtent(_)[0]-m.getTileCoordExtent(b.wrappedTileCoord)[0],x=void 0,S=0,C=b.tileKeys.length;S<C;++S){var E=b.getTile(b.tileKeys[S]);if(E.getState()!=t.TileState.ERROR){var k=E.getReplayGroup(a,_.toString());if(c==t.layer.VectorTileRenderType.VECTOR||k&&k.hasReplays(u)){x||(x=this.getTransform(n,w));var O=E.tileCoord[0],T=k.getClipCoords(x);e.save(),e.globalAlpha=r.opacity;for(var I=0,A=g.length;I<A;++I){var R=g[I];O<v[I]&&(e.beginPath(),e.moveTo(T[0],T[1]),e.lineTo(T[2],T[3]),e.lineTo(T[4],T[5]),e.lineTo(T[6],T[7]),e.moveTo(R[6],R[7]),e.lineTo(R[4],R[5]),e.lineTo(R[2],R[3]),e.lineTo(R[0],R[1]),e.clip())}k.replay(e,x,f,{},u,s),e.restore(),g.push(T),v.push(O)}else!0===a.fastRender&&(E.replayGroups_={},E.features_=[])}}}s&&t.render.canvas.ReplayGroup.replayDeclutter(s,e,f),f&&t.render.canvas.rotateAtOffset(e,f,i,o),t.renderer.canvas.TileLayer.prototype.postCompose.apply(this,arguments)}}};window.olExtends=zO;n("1eb0");n("ce9a"),n("58f7e"),n("add3");function UO(e){var t,n,r=Object.keys(e.defs),i=r.length;for(t=0;t<i;++t){var o=r[t];if(!au(o)){var a=e.defs(o);iu(new _l({code:o,axisOrientation:a.axis,metersPerUnit:a.to_meter,units:a.units}))}}for(t=0;t<i;++t){var s=r[t],l=au(s);for(n=0;n<i;++n){var c=r[n],u=au(c);if(!Yl(s,c)){var d=e.defs(s),f=e.defs(c);if(d===f)lu([l,u]);else{var h=e(bs({},d,{axis:void 0}),bs({},f,{axis:void 0}));fu(l,u,Cu(l,u,h.forward),Cu(u,l,h.inverse))}}}}}var GO={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},VO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WO=function(e){function t(t){var n=this,r=t||{},i=bs({},r);return delete i.preload,delete i.useInterimTilesOnError,n=e.call(this,i)||this,n.setPreload(void 0!==r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}return VO(t,e),t.prototype.getPreload=function(){return this.get(GO.PRELOAD)},t.prototype.setPreload=function(e){this.set(GO.PRELOAD,e)},t.prototype.getUseInterimTilesOnError=function(){return this.get(GO.USE_INTERIM_TILES_ON_ERROR)},t.prototype.setUseInterimTilesOnError=function(e){this.set(GO.USE_INTERIM_TILES_ON_ERROR,e)},t}($p),HO=WO,$O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KO=function(e){function t(t){var n=e.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=fc(),n.tmpTileRange_=new l_(0,0,0,0),n}return $O(t,e),t.prototype.isDrawableTile=function(e){var t=this.getLayer(),n=e.getState(),r=t.getUseInterimTilesOnError();return n==_v.LOADED||n==_v.EMPTY||n==_v.ERROR&&!r},t.prototype.getTile=function(e,t,n,r){var i=r.pixelRatio,o=r.viewState.projection,a=this.getLayer(),s=a.getSource(),l=s.getTile(e,t,n,i,o);return l.getState()==_v.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):l.setState(_v.LOADED)),this.isDrawableTile(l)||(l=l.getInterimTile()),l},t.prototype.loadedTileCallback=function(t,n,r){return!!this.isDrawableTile(r)&&e.prototype.loadedTileCallback.call(this,t,n,r)},t.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(e,t){var n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,a=r.center,s=r.rotation,l=e.pixelRatio,c=this.getLayer(),u=c.getSource(),d=u.getRevision(),f=u.getTileGridForProjection(i),h=f.getZForResolution(o,u.zDirection),p=f.getResolution(h),m=e.extent,g=n.extent&&Su(n.extent,i);g&&(m=Mc(m,Su(n.extent,i)));var v=u.getTilePixelRatio(l),y=Math.round(e.size[0]*v),b=Math.round(e.size[1]*v);if(s){var _=Math.round(Math.sqrt(y*y+b*b));y=_,b=_}var w=p*y/2/v,x=p*b/2/v,S=[a[0]-w,a[1]-x,a[0]+w,a[1]+x],C=f.getTileRangeForExtentAndZ(m,h),E={};E[h]={};var k=this.createLoadedTileFinder(u,i,E),O=this.tmpExtent,T=this.tmpTileRange_;this.newTiles_=!1;for(var I=C.minX;I<=C.maxX;++I)for(var A=C.minY;A<=C.maxY;++A){var R=this.getTile(h,I,A,e);if(this.isDrawableTile(R)){var P=Fs(this);if(R.getState()==_v.LOADED){E[h][R.tileCoord.toString()]=R;var M=R.inTransition(P);this.newTiles_||!M&&-1!==this.renderedTiles.indexOf(R)||(this.newTiles_=!0)}if(1===R.getAlpha(P,e.time))continue}var N=f.getTileCoordChildTileRange(R.tileCoord,T,O),L=!1;N&&(L=k(h+1,N)),L||f.forEachTileCoordParentTileRange(R.tileCoord,k,T,O)}var D=p/o;Uu(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/v,1/v,s,-y/2,-b/2);var j=Wh(this.pixelTransform);this.useContainer(t,j,n.opacity);var F=this.context,B=F.canvas;Gu(this.inversePixelTransform,this.pixelTransform),Uu(this.tempTransform,y/2,b/2,D,D,0,-y/2,-b/2),B.width!=y||B.height!=b?(B.width=y,B.height=b):this.containerReused||F.clearRect(0,0,y,b),g&&this.clipUnrotated(F,e,g),bs(F,u.getContextOptions()),this.preRender(F,e),this.renderedTiles.length=0;var q,z,U,G=Object.keys(E).map(Number);G.sort(ls),1!==n.opacity||this.containerReused&&!u.getOpaque(e.viewState.projection)?(q=[],z=[]):G=G.reverse();for(var V=G.length-1;V>=0;--V){var W=G[V],H=u.getTilePixelSize(W,l,i),$=f.getResolution(W),K=$/p,X=H[0]*K*D,Y=H[1]*K*D,J=f.getTileCoordForCoordAndZ(Nc(S),W),Q=f.getTileCoordExtent(J),Z=ju(this.tempTransform,[v*(Q[0]-S[0])/p,v*(S[3]-Q[3])/p]),ee=v*u.getGutterForProjection(i),te=E[W];for(var ne in te){R=te[ne];var re=R.tileCoord,ie=Z[0]-(J[1]-re[1])*X,oe=Math.round(ie+X),ae=Z[1]-(J[2]-re[2])*Y,se=Math.round(ae+Y),le=(I=Math.round(ie),A=Math.round(ae),oe-I),ce=se-A,ue=h===W;M=ue&&1!==R.getAlpha(Fs(this),e.time);if(!M)if(q){F.save(),U=[I,A,I+le,A,I+le,A+ce,I,A+ce];for(var de=0,fe=q.length;de<fe;++de)if(h!==W&&W<z[de]){var he=q[de];F.beginPath(),F.moveTo(U[0],U[1]),F.lineTo(U[2],U[3]),F.lineTo(U[4],U[5]),F.lineTo(U[6],U[7]),F.moveTo(he[6],he[7]),F.lineTo(he[4],he[5]),F.lineTo(he[2],he[3]),F.lineTo(he[0],he[1]),F.clip()}q.push(U),z.push(W)}else F.clearRect(I,A,le,ce);this.drawTileImage(R,e,I,A,le,ce,ee,ue,n.opacity),q&&!M&&F.restore(),this.renderedTiles.push(R),this.updateUsedTiles(e.usedTiles,u,R)}}return this.renderedRevision=d,this.renderedResolution=p,this.extentChanged=!this.renderedExtent_||!yc(this.renderedExtent_,S),this.renderedExtent_=S,this.renderedPixelRatio=l,this.renderedProjection=i,this.manageTilePyramid(e,u,f,l,i,m,h,c.getPreload()),this.scheduleExpireCache(e,u),this.postRender(F,e),n.extent&&F.restore(),j!==B.style.transform&&(B.style.transform=j),this.container},t.prototype.drawTileImage=function(e,t,n,r,i,o,a,s,l){var c=this.getTileImage(e);if(c){var u=Fs(this),d=s?e.getAlpha(u,t.time):1,f=l*d,h=f!==this.context.globalAlpha;h&&(this.context.save(),this.context.globalAlpha=f),this.context.drawImage(c,a,a,c.width-2*a,c.height-2*a,n,r,i,o),h&&this.context.restore(),1!==d?t.animate=!0:s&&e.endTransition(u)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getTileImage=function(e){return e.getImage()},t.prototype.scheduleExpireCache=function(e,t){if(t.canExpireCache()){var n=function(e,t,n){var r=Fs(e);r in n.usedTiles&&e.expireCache(n.viewState.projection,n.usedTiles[r])}.bind(null,t);e.postRenderFunctions.push(n)}},t.prototype.updateUsedTiles=function(e,t,n){var r=Fs(t);r in e||(e[r]={}),e[r][n.getKey()]=!0},t.prototype.manageTilePyramid=function(e,t,n,r,i,o,a,s,l){var c=Fs(t);c in e.wantedTiles||(e.wantedTiles[c]={});var u,d,f,h,p,m,g=e.wantedTiles[c],v=e.tileQueue,y=n.getMinZoom(),b=0;for(m=y;m<=a;++m)for(d=n.getTileRangeForExtentAndZ(o,m,d),f=n.getResolution(m),h=d.minX;h<=d.maxX;++h)for(p=d.minY;p<=d.maxY;++p)a-m<=s?(++b,u=t.getTile(m,h,p,r,i),u.getState()==_v.IDLE&&(g[u.getKey()]=!0,v.isKeyQueued(u.getKey())||v.enqueue([u,c,n.getTileCoordCenter(u.tileCoord),f])),void 0!==l&&l(u)):t.useTile(m,h,p,i);t.updateCacheSize(b,i)},t}(tg);KO.prototype.getLayer;var XO,YO=KO,JO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QO=(function(e){function t(t){return e.call(this,t)||this}JO(t,e),t.prototype.createRenderer=function(){return new YO(this)}}(HO),{IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"}),ZO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eT={image:[Xh.POLYGON,Xh.CIRCLE,Xh.LINE_STRING,Xh.IMAGE,Xh.TEXT],hybrid:[Xh.POLYGON,Xh.LINE_STRING],vector:[]},tT={image:[Xh.DEFAULT],hybrid:[Xh.IMAGE,Xh.TEXT,Xh.DEFAULT],vector:[Xh.POLYGON,Xh.CIRCLE,Xh.LINE_STRING,Xh.IMAGE,Xh.TEXT,Xh.DEFAULT]},nT=function(e){function t(t){var n=e.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.dirty_=!1,n.renderedLayerRevision_,n.renderedPixelToCoordinateTransform_=null,n.renderedRotation_,n.renderTileImageQueue_={},n.tileListenerKeys_={},n.tmpTransform_=Pu(),n}return ZO(t,e),t.prototype.prepareTile=function(e,t,n,r){var i,o=Fs(e),a=e.getState();return(a===_v.LOADED&&e.hifi||a===_v.ERROR)&&o in this.tileListenerKeys_&&(Is(this.tileListenerKeys_[o]),delete this.tileListenerKeys_[o]),a!==_v.LOADED&&a!==_v.ERROR||(this.updateExecutorGroup_(e,t,n),this.tileImageNeedsRender_(e,t,n)&&(i=!0,r&&(this.renderTileImageQueue_[o]=e))),i},t.prototype.getTile=function(t,n,r,i){var o=i.pixelRatio,a=i.viewState,s=a.resolution,l=a.projection,c=this.getLayer(),u=c.getSource().getTile(t,n,r,o,l);if(u.getState()<_v.LOADED){u.wantedResolution=s;var d=Fs(u);if(!(d in this.tileListenerKeys_)){var f=Os(u,ks.CHANGE,this.prepareTile.bind(this,u,o,l,!0));this.tileListenerKeys_[d]=f}}else{var h=i.viewHints,p=!(h[yg.ANIMATING]||h[yg.INTERACTING]);!p&&u.wantedResolution||(u.wantedResolution=s);var m=this.prepareTile(u,o,l,!1);m&&c.getRenderMode()!==QO.VECTOR&&this.renderTileImage_(u,i)}return e.prototype.getTile.call(this,t,n,r,i)},t.prototype.isDrawableTile=function(t){var n=this.getLayer();return e.prototype.isDrawableTile.call(this,t)&&(n.getRenderMode()===QO.VECTOR?Fs(n)in t.executorGroups:t.hasContext(n))},t.prototype.getTileImage=function(e){return e.getImage(this.getLayer())},t.prototype.prepareFrame=function(t){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!=n&&(this.renderedTiles.length=0),this.renderedLayerRevision_=n,e.prototype.prepareFrame.call(this,t)},t.prototype.updateExecutorGroup_=function(e,t,n){var r=this.getLayer(),i=r.getRevision(),o=r.getRenderOrder()||null,a=e.wantedResolution,s=e.getReplayState(r);if(s.dirty||s.renderedResolution!==a||s.renderedRevision!=i||s.renderedRenderOrder!=o||s.renderedZ!==e.sourceZ){var l=r.getSource(),c=l.getTileGrid(),u=l.getTileGridForProjection(n),d=u.getTileCoordExtent(e.wrappedTileCoord),f=l.getSourceTiles(t,n,e),h=Fs(r);delete e.hitDetectionImageData[h],e.executorGroups[h]=[];for(var p=function(n,i){var u=f[n];if(u.getState()!=_v.LOADED)return"continue";var p=u.tileCoord,g=c.getTileCoordExtent(p),v=Mc(d,g),y=yc(g,v)?null:oc(v,r.getRenderBuffer()*a,m.tmpExtent);s.dirty=!1;var b=new Hm(0,v,a,t,r.getDeclutter()),_=ep(a,t),w=function(e){var t,n=e.getStyleFunction()||r.getStyleFunction();if(n&&(t=n(e,a)),t){var i=this.renderFeature(e,_,t,b);this.dirty_=this.dirty_||i,s.dirty=s.dirty||i}},x=u.getFeatures();o&&o!==s.renderedRenderOrder&&x.sort(o);for(var S=0,C=x.length;S<C;++S){var E=x[S];y&&!jc(y,E.getGeometry().getExtent())||w.call(m,E)}var k=b.finish(),O=r.getRenderMode()!==QO.VECTOR&&r.getDeclutter()&&1===f.length?null:v,T=new vg(O,a,t,l.getOverlaps(),k,r.getRenderBuffer());e.executorGroups[h].push(T)},m=this,g=0,v=f.length;g<v;++g)p(g,v);s.renderedRevision=i,s.renderedZ=e.sourceZ,s.renderedRenderOrder=o,s.renderedResolution=a}},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){var o=t.viewState.resolution,a=t.viewState.rotation;n=void 0==n?0:n;var s,l,c,u=this.getLayer(),d=u.getDeclutter(),f=u.getSource(),h=f.getTileGridForProjection(t.viewState.projection),p={},m=this.renderedTiles,g=function(){var t=m[l],c=h.getTileCoordExtent(t.wrappedTileCoord),f=lc(c,e);if(!d&&!f)return"continue";for(var g=t.executorGroups[Fs(u)],v=0,y=g.length;v<y;++v){var b=g[v];s=s||b.forEachFeatureAtCoordinate(e,o,a,n,(function(e){if(f||i&&-1!==i.indexOf(e)){var t=e.getId();if(void 0===t&&(t=Fs(e)),!(t in p))return p[t]=!0,r(e,u)}}),u.getDeclutter()?i:null)}};for(l=0,c=m.length;l<c;++l)g();return s},t.prototype.getFeatures=function(e){return new Promise(function(t,n){for(var r,i=this.getLayer(),o=Fs(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),c=this.renderedResolution,u=a.getTileGridForProjection(s),d=ju(this.renderedPixelToCoordinateTransform_,e.slice()),f=u.getTileCoordForCoordAndResolution(d,c),h=0,p=this.renderedTiles.length;h<p;++h)if(f.toString()===this.renderedTiles[h].tileCoord.toString()){if(r=this.renderedTiles[h],r.getState()===_v.LOADED&&r.hifi){var m=u.getTileCoordExtent(r.tileCoord);a.getWrapX()&&s.canWrapX()&&!cc(l,m)&&eu(d,s);break}r=void 0}if(!r||r.loadingSourceTiles>0)t([]);else{var g=u.getTileCoordExtent(r.wrappedTileCoord),v=Nc(g),y=[(d[0]-v[0])/c,(v[1]-d[1])/c],b=r.getSourceTiles().reduce((function(e,t){return e.concat(t.getFeatures())}),[]),_=r.hitDetectionImageData[o];if(!_&&!this.animatingOrInteracting_){var w=Jp(u.getTileSize(u.getZForResolution(c))),x=[w[0]/2,w[1]/2],S=this.renderedRotation_,C=[this.getRenderTransform(u.getTileCoordCenter(r.wrappedTileCoord),c,0,.5,x[0],x[1],0)];_=Dg(w,C,b,i.getStyleFunction(),u.getTileCoordExtent(r.wrappedTileCoord),r.getReplayState(i).renderedResolution,S),r.hitDetectionImageData[o]=_}t(jg(y,b,_))}}.bind(this))},t.prototype.handleFontsChanged=function(){_s(this.renderTileImageQueue_);var e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.renderFrame=function(t,n){var r=t.viewHints,i=!(r[yg.ANIMATING]||r[yg.INTERACTING]);this.renderQueuedTileImages_(i,t),e.prototype.renderFrame.call(this,t,n),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var o=this.getLayer(),a=o.getRenderMode();if(a===QO.IMAGE)return this.container;var s=o.getSource(),l=t.usedTiles[Fs(s)];for(var c in this.renderTileImageQueue_)l&&c in l||delete this.renderTileImageQueue_[c];for(var u=this.context,d=o.getDeclutter()?{}:null,f=tT[a],h=t.pixelRatio,p=t.viewState,m=p.center,g=p.resolution,v=p.rotation,y=t.size,b=Math.round(y[0]*h),_=Math.round(y[1]*h),w=this.renderedTiles,x=s.getTileGridForProjection(t.viewState.projection),S=[],C=[],E=w.length-1;E>=0;--E)for(var k=w[E],O=k.tileCoord,T=x.getTileCoordExtent(k.wrappedTileCoord),I=x.getTileCoordExtent(O,this.tmpExtent)[0]-T[0],A=Nu(Bu(this.inversePixelTransform.slice(),1/h,1/h),this.getRenderTransform(m,g,v,h,b,_,I)),R=k.executorGroups[Fs(o)],P=!1,M=0,N=R.length;M<N;++M){var L=R[M];if(L.hasExecutors(f)){var D=k.tileCoord[0],j=void 0;if(!d&&!P){j=L.getClipCoords(A),u.save();for(var F=0,B=S.length;F<B;++F){var q=S[F];D<C[F]&&(u.beginPath(),u.moveTo(j[0],j[1]),u.lineTo(j[2],j[3]),u.lineTo(j[4],j[5]),u.lineTo(j[6],j[7]),u.moveTo(q[6],q[7]),u.lineTo(q[4],q[5]),u.lineTo(q[2],q[3]),u.lineTo(q[0],q[1]),u.clip())}}L.execute(u,1,A,v,i,f,d),d||P||(u.restore(),S.push(j),C.push(D),P=!0)}}if(d){var z=t.layerStatesArray[t.layerIndex];gg(d,u,v,z.opacity,i,t.declutterItems)}return this.container},t.prototype.renderQueuedTileImages_=function(e,t){for(var n in this.renderTileImageQueue_){if(!e&&Date.now()-t.time>8){t.animate=!0;break}var r=this.renderTileImageQueue_[n];delete this.renderTileImageQueue_[n],this.renderTileImage_(r,t)}},t.prototype.renderFeature=function(e,t,n,r){if(!n)return!1;var i=!1;if(Array.isArray(n))for(var o=0,a=n.length;o<a;++o)i=rp(r,e,n[o],t,this.boundHandleStyleImageChange_)||i;else i=rp(r,e,n,t,this.boundHandleStyleImageChange_);return i},t.prototype.tileImageNeedsRender_=function(e,t,n){var r=this.getLayer(),i=e.getReplayState(r),o=r.getRevision(),a=e.sourceZ,s=e.wantedResolution;return i.renderedTileResolution!==s||i.renderedTileRevision!==o||i.renderedTileZ!==a},t.prototype.renderTileImage_=function(e,t){var n=this.getLayer(),r=e.getReplayState(n),i=n.getRevision(),o=e.executorGroups[Fs(n)];r.renderedTileRevision=i,r.renderedTileZ=e.sourceZ;var a=e.wrappedTileCoord,s=a[0],l=n.getSource(),c=t.pixelRatio,u=t.viewState,d=u.projection,f=l.getTileGridForProjection(d),h=f.getResolution(e.tileCoord[0]),p=t.pixelRatio/e.wantedResolution*h,m=f.getResolution(s),g=e.getContext(n);c=Math.max(c,p/c);var v=l.getTilePixelSize(s,c,d);g.canvas.width=v[0],g.canvas.height=v[1];var y=c/p;if(1!==y){var b=Mu(this.tmpTransform_);Bu(b,y,y),g.setTransform.apply(g,b)}var _=f.getTileCoordExtent(a,this.tmpExtent),w=p/m,x=Mu(this.tmpTransform_);Bu(x,w,-w),zu(x,-_[0],-_[3]);for(var S=0,C=o.length;S<C;++S){var E=o[S];E.execute(g,y,x,0,!0,eT[n.getRenderMode()])}r.renderedTileResolution=e.wantedResolution},t}(YO),rT=nT,iT=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oT=(function(e){function t(t){var n=this,r=t||{},i=bs({},r);delete i.preload,delete i.useInterimTilesOnError,n=e.call(this,i)||this;var o=r.renderMode||QO.HYBRID;return nc(void 0==o||o==QO.IMAGE||o==QO.HYBRID||o==QO.VECTOR,28),n.renderMode_=o,n.setPreload(r.preload?r.preload:0),n.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),n}iT(t,e),t.prototype.createRenderer=function(){return new rT(this)},t.prototype.getFeatures=function(t){return e.prototype.getFeatures.call(this,t)},t.prototype.getRenderMode=function(){return this.renderMode_},t.prototype.getPreload=function(){return this.get(GO.PRELOAD)},t.prototype.getUseInterimTilesOnError=function(){return this.get(GO.USE_INTERIM_TILES_ON_ERROR)},t.prototype.setPreload=function(e){this.set(GO.PRELOAD,e)},t.prototype.setUseInterimTilesOnError=function(e){this.set(GO.USE_INTERIM_TILES_ON_ERROR,e)}}(bm),34962),aT=34963,sT=35040,lT=35044,cT=35048,uT=5121,dT=5123,fT=5125,hT=5126,pT=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function mT(e,t){for(var n=pT.length,r=0;r<n;++r)try{var i=e.getContext(pT[r],t);if(i)return i}catch(o){}return null}function gT(){if(!XO){var e=document.createElement("canvas"),t=mT(e);t&&(XO=t.getSupportedExtensions())}return XO}var vT={STATIC_DRAW:lT,STREAM_DRAW:sT,DYNAMIC_DRAW:cT},yT=function(){function e(e,t){this.array=null,this.type=e,nc(e===oT||e===aT,62),this.usage=void 0!==t?t:vT.STATIC_DRAW}return e.prototype.ofSize=function(e){this.array=new(bT(this.type))(e)},e.prototype.fromArray=function(e){this.array=bT(this.type).from(e)},e.prototype.fromArrayBuffer=function(e){this.array=new(bT(this.type))(e)},e.prototype.getType=function(){return this.type},e.prototype.getArray=function(){return this.array},e.prototype.getUsage=function(){return this.usage},e.prototype.getSize=function(){return this.array?this.array.length:0},e}();function bT(e){switch(e){case oT:return Float32Array;case aT:return Uint32Array;default:return Float32Array}}var _T=yT,wT={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},xT="\n  precision mediump float;\n  \n  attribute vec2 a_position;\n  varying vec2 v_texCoord;\n  varying vec2 v_screenCoord;\n  \n  uniform vec2 u_screenSize;\n   \n  void main() {\n    v_texCoord = a_position * 0.5 + 0.5;\n    v_screenCoord = v_texCoord * u_screenSize;\n    gl_Position = vec4(a_position, 0.0, 1.0);\n  }\n",ST="\n  precision mediump float;\n   \n  uniform sampler2D u_image;\n   \n  varying vec2 v_texCoord;\n   \n  void main() {\n    gl_FragColor = texture2D(u_image, v_texCoord);\n  }\n",CT=function(){function e(e){this.gl_=e.webGlContext;var t=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=t.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=t.createFramebuffer();var n=t.createShader(t.VERTEX_SHADER);t.shaderSource(n,e.vertexShader||xT),t.compileShader(n);var r=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(r,e.fragmentShader||ST),t.compileShader(r),this.renderTargetProgram_=t.createProgram(),t.attachShader(this.renderTargetProgram_,n),t.attachShader(this.renderTargetProgram_,r),t.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=t.createBuffer();var i=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];t.bindBuffer(t.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),t.bufferData(t.ARRAY_BUFFER,new Float32Array(i),t.STATIC_DRAW),this.renderTargetAttribLocation_=t.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetTextureLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],e.uniforms&&Object.keys(e.uniforms).forEach(function(n){this.uniforms_.push({value:e.uniforms[n],location:t.getUniformLocation(this.renderTargetProgram_,n)})}.bind(this))}return e.prototype.getGL=function(){return this.gl_},e.prototype.init=function(e){var t=this.getGL(),n=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;var r=0,i=t.RGBA,o=0,a=t.RGBA,s=t.UNSIGNED_BYTE,l=null;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,r,i,n[0],n[1],o,a,s,l),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.renderTargetTexture_,0)}},e.prototype.apply=function(e,t){var n=this.getGL(),r=e.size;n.bindFramebuffer(n.FRAMEBUFFER,t?t.getFrameBuffer():null),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,this.renderTargetTexture_),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,n.ONE_MINUS_SRC_ALPHA),n.viewport(0,0,n.drawingBufferWidth,n.drawingBufferHeight),n.bindBuffer(n.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),n.useProgram(this.renderTargetProgram_),n.enableVertexAttribArray(this.renderTargetAttribLocation_),n.vertexAttribPointer(this.renderTargetAttribLocation_,2,n.FLOAT,!1,0,0),n.uniform2f(this.renderTargetUniformLocation_,r[0],r[1]),n.uniform1i(this.renderTargetTextureLocation_,0),this.applyUniforms(e),n.drawArrays(n.TRIANGLES,0,6)},e.prototype.getFrameBuffer=function(){return this.frameBuffer_},e.prototype.applyUniforms=function(e){var t,n=this.getGL(),r=1;this.uniforms_.forEach((function(i){if(t="function"===typeof i.value?i.value(e):i.value,t instanceof HTMLCanvasElement||t instanceof ImageData)i.texture||(i.texture=n.createTexture()),n.activeTexture(n["TEXTURE"+r]),n.bindTexture(n.TEXTURE_2D,i.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),t instanceof ImageData?n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,t.width,t.height,0,n.UNSIGNED_BYTE,new Uint8Array(t.data)):n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),n.uniform1i(i.location,r++);else if(Array.isArray(t))switch(t.length){case 2:return void n.uniform2f(i.location,t[0],t[1]);case 3:return void n.uniform3f(i.location,t[0],t[1],t[2]);case 4:return void n.uniform4f(i.location,t[0],t[1],t[2],t[3]);default:return}else"number"===typeof t&&n.uniform1f(i.location,t)}))},e}(),ET=CT;function kT(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function OT(e,t){return e[0]=t[0],e[1]=t[1],e[4]=t[2],e[5]=t[3],e[12]=t[4],e[13]=t[5],e}var TT=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),IT={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},AT={UNSIGNED_BYTE:uT,UNSIGNED_SHORT:dT,UNSIGNED_INT:fT,FLOAT:hT},RT=function(e){function t(t){var n=e.call(this)||this,r=t||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvas_=document.createElement("canvas"),n.canvas_.style.position="absolute",n.canvas_.style.left="0",n.gl_=mT(n.canvas_);var i=n.getGL();if(n.bufferCache_={},n.currentProgram_=null,nc(cs(gT(),"OES_element_index_uint"),63),i.getExtension("OES_element_index_uint"),n.canvas_.addEventListener(wT.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(wT.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=Pu(),n.offsetScaleMatrix_=Pu(),n.tmpMat4_=kT(),n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],r.uniforms)for(var o in r.uniforms)n.uniforms_.push({name:o,value:r.uniforms[o]});return n.postProcessPasses_=r.postProcesses?r.postProcesses.map((function(e){return new ET({webGlContext:i,scaleRatio:e.scaleRatio,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms})})):[new ET({webGlContext:i})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return TT(t,e),t.prototype.bindBuffer=function(e){var t=this.getGL(),n=Fs(e),r=this.bufferCache_[n];if(!r){var i=t.createBuffer();r={buffer:e,webGlBuffer:i},this.bufferCache_[n]=r}t.bindBuffer(e.getType(),r.webGlBuffer)},t.prototype.flushBufferData=function(e){var t=this.getGL();this.bindBuffer(e),t.bufferData(e.getType(),e.getArray(),e.getUsage())},t.prototype.deleteBuffer=function(e){var t=this.getGL(),n=Fs(e),r=this.bufferCache_[n];t.isContextLost()||t.deleteBuffer(r.buffer),delete this.bufferCache_[n]},t.prototype.disposeInternal=function(){this.canvas_.removeEventListener(wT.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(wT.RESTORED,this.boundHandleWebGLContextRestored_)},t.prototype.prepareDraw=function(e){var t=this.getGL(),n=this.getCanvas(),r=e.size,i=e.pixelRatio;n.width=r[0]*i,n.height=r[1]*i,n.style.width=r[0]+"px",n.style.height=r[1]+"px",t.useProgram(this.currentProgram_);for(var o=this.postProcessPasses_.length-1;o>=0;o--)this.postProcessPasses_[o].init(e);t.bindTexture(t.TEXTURE_2D,null),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)},t.prototype.prepareDrawToRenderTarget=function(e,t,n){var r=this.getGL(),i=t.getSize();r.bindFramebuffer(r.FRAMEBUFFER,t.getFramebuffer()),r.viewport(0,0,i[0],i[1]),r.bindTexture(r.TEXTURE_2D,t.getTexture()),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,n?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)},t.prototype.drawElements=function(e,t){var n=this.getGL(),r=n.UNSIGNED_INT,i=4,o=t-e,a=e*i;n.drawElements(n.TRIANGLES,o,r,a)},t.prototype.finalizeDraw=function(e){for(var t=0;t<this.postProcessPasses_.length;t++)this.postProcessPasses_[t].apply(e,this.postProcessPasses_[t+1]||null)},t.prototype.getCanvas=function(){return this.canvas_},t.prototype.getGL=function(){return this.gl_},t.prototype.applyFrameState=function(e){var t=e.size,n=e.viewState.rotation,r=Mu(this.offsetScaleMatrix_);Bu(r,2/t[0],2/t[1]);var i=Mu(this.offsetRotateMatrix_);0!==n&&Fu(i,-n),this.setUniformMatrixValue(IT.OFFSET_SCALE_MATRIX,OT(this.tmpMat4_,r)),this.setUniformMatrixValue(IT.OFFSET_ROTATION_MATRIX,OT(this.tmpMat4_,i)),this.setUniformFloatValue(IT.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(IT.ZOOM,e.viewState.zoom),this.setUniformFloatValue(IT.RESOLUTION,e.viewState.resolution)},t.prototype.applyUniforms=function(e){var t,n=this.getGL(),r=0;this.uniforms_.forEach(function(i){if(t="function"===typeof i.value?i.value(e):i.value,t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof ImageData){i.texture||(i.prevValue=void 0,i.texture=n.createTexture()),n.activeTexture(n["TEXTURE"+r]),n.bindTexture(n.TEXTURE_2D,i.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE);var o=!(t instanceof HTMLImageElement)||t.complete;o&&i.prevValue!==t&&(i.prevValue=t,n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t)),n.uniform1i(this.getUniformLocation(i.name),r++)}else if(Array.isArray(t)&&6===t.length)this.setUniformMatrixValue(i.name,OT(this.tmpMat4_,t));else if(Array.isArray(t)&&t.length<=4)switch(t.length){case 2:return void n.uniform2f(this.getUniformLocation(i.name),t[0],t[1]);case 3:return void n.uniform3f(this.getUniformLocation(i.name),t[0],t[1],t[2]);case 4:return void n.uniform4f(this.getUniformLocation(i.name),t[0],t[1],t[2],t[3]);default:return}else"number"===typeof t&&n.uniform1f(this.getUniformLocation(i.name),t)}.bind(this))},t.prototype.useProgram=function(e){if(e==this.currentProgram_)return!1;var t=this.getGL();return t.useProgram(e),this.currentProgram_=e,this.uniformLocations_={},this.attribLocations_={},!0},t.prototype.compileShader=function(e,t){var n=this.getGL(),r=n.createShader(t);return n.shaderSource(r,e),n.compileShader(r),r},t.prototype.getProgram=function(e,t){var n=this.getGL(),r=this.compileShader(e,n.FRAGMENT_SHADER),i=this.compileShader(t,n.VERTEX_SHADER);this.shaderCompileErrors_=null,n.getShaderInfoLog(r)&&(this.shaderCompileErrors_="Fragment shader compilation failed:\n"+n.getShaderInfoLog(r)),n.getShaderInfoLog(i)&&(this.shaderCompileErrors_=(this.shaderCompileErrors_||"")+"Vertex shader compilation failed:\n"+n.getShaderInfoLog(i));var o=n.createProgram();return n.attachShader(o,r),n.attachShader(o,i),n.linkProgram(o),o},t.prototype.getShaderCompileErrors=function(){return this.shaderCompileErrors_},t.prototype.getUniformLocation=function(e){return void 0===this.uniformLocations_[e]&&(this.uniformLocations_[e]=this.getGL().getUniformLocation(this.currentProgram_,e)),this.uniformLocations_[e]},t.prototype.getAttributeLocation=function(e){return void 0===this.attribLocations_[e]&&(this.attribLocations_[e]=this.getGL().getAttribLocation(this.currentProgram_,e)),this.attribLocations_[e]},t.prototype.makeProjectionTransform=function(e,t){var n=e.size,r=e.viewState.rotation,i=e.viewState.resolution,o=e.viewState.center;return Mu(t),Uu(t,0,0,2/(i*n[0]),2/(i*n[1]),-r,-o[0],-o[1]),t},t.prototype.setUniformFloatValue=function(e,t){this.getGL().uniform1f(this.getUniformLocation(e),t)},t.prototype.setUniformMatrixValue=function(e,t){this.getGL().uniformMatrix4fv(this.getUniformLocation(e),!1,t)},t.prototype.enableAttributeArray_=function(e,t,n,r,i){var o=this.getAttributeLocation(e);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,t,n,!1,r,i))},t.prototype.enableAttributes=function(e){for(var t=PT(e),n=0,r=0;r<e.length;r++){var i=e[r];this.enableAttributeArray_(i.name,i.size,i.type||hT,t,n),n+=i.size*MT(i.type)}},t.prototype.handleWebGLContextLost=function(){_s(this.bufferCache_),this.currentProgram_=null},t.prototype.handleWebGLContextRestored=function(){},t.prototype.createTexture=function(e,t,n){var r=this.getGL(),i=n||r.createTexture(),o=0,a=r.RGBA,s=0,l=r.RGBA,c=r.UNSIGNED_BYTE;return r.bindTexture(r.TEXTURE_2D,i),t?r.texImage2D(r.TEXTURE_2D,o,a,l,c,t):r.texImage2D(r.TEXTURE_2D,o,a,e[0],e[1],s,l,c,null),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),i},t}(is);function PT(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.size*MT(r.type)}return t}function MT(e){switch(e){case AT.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case AT.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case AT.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case AT.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var NT=RT,LT=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DT={GENERATE_BUFFERS:"GENERATE_BUFFERS"},jT=function(e){function t(t,n){var r=e.call(this,t)||this,i=n||{};return r.helper=new NT({postProcesses:i.postProcesses,uniforms:i.uniforms}),r}return LT(t,e),t.prototype.disposeInternal=function(){this.helper.dispose(),e.prototype.disposeInternal.call(this)},t.prototype.getShaderCompileErrors=function(){return this.helper.getShaderCompileErrors()},t}(Xm);function FT(e,t){var n=t||[],r=256,i=r-1;return n[0]=Math.floor(e/r/r/r)/i,n[1]=Math.floor(e/r/r)%r/i,n[2]=Math.floor(e/r)%r/i,n[3]=e%r/i,n}function BT(e){var t=0,n=256,r=n-1;return t+=Math.round(e[0]*n*n*n*r),t+=Math.round(e[1]*n*n*r),t+=Math.round(e[2]*n*r),t+=Math.round(e[3]*r),t}var qT=jT,zT=new Uint8Array(4),UT=function(){function e(e,t){this.helper_=e;var n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return e.prototype.setSize=function(e){hs(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())},e.prototype.getSize=function(){return this.size_},e.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},e.prototype.readAll=function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},e.prototype.readPixel=function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return zT[0]=0,zT[1]=0,zT[2]=0,zT[3]=0,zT;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return zT[0]=this.data_[4*n],zT[1]=this.data_[4*n+1],zT[2]=this.data_[4*n+2],zT[3]=this.data_[4*n+3],zT},e.prototype.getTexture=function(){return this.texture_},e.prototype.getFramebuffer=function(){return this.framebuffer_},e.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},e}(),GT=UT,VT='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r<o;++r){var i=arguments[r];if(null!=i)for(var f in i)i.hasOwnProperty(f)&&(t[f]=i[f])}return t},n="GENERATE_BUFFERS",t=[],r={vertexPosition:0,indexPosition:0};function o(e,n,t,r,o){e[n+0]=t,e[n+1]=r,e[n+2]=o}function i(e,n,i,f,s,u){var a=3+s,l=e[n+0],v=e[n+1],c=t;c.length=s;for(var g=0;g<c.length;g++)c[g]=e[n+2+g];var b=u?u.vertexPosition:0,h=u?u.indexPosition:0,d=b/a;return o(i,b,l,v,0),c.length&&i.set(c,b+3),o(i,b+=a,l,v,1),c.length&&i.set(c,b+3),o(i,b+=a,l,v,2),c.length&&i.set(c,b+3),o(i,b+=a,l,v,3),c.length&&i.set(c,b+3),b+=a,f[h++]=d,f[h++]=d+1,f[h++]=d+3,f[h++]=d+1,f[h++]=d+2,f[h++]=d+3,r.vertexPosition=b,r.indexPosition=h,r}var f=self;f.onmessage=function(t){var r=t.data;if(r.type===n){for(var o=r.customAttributesCount,s=2+o,u=new Float32Array(r.renderInstructions),a=u.length/s,l=4*a*(o+3),v=new Uint32Array(6*a),c=new Float32Array(l),g=null,b=0;b<u.length;b+=s)g=i(u,b,c,v,o,g);var h=e({vertexBuffer:c.buffer,indexBuffer:v.buffer,renderInstructions:u.buffer},r);f.postMessage(h,[c.buffer,v.buffer,u.buffer])}};',WT=new Blob([VT],{type:"application/javascript"}),HT=URL.createObjectURL(WT);function $T(){return new Worker(HT)}var KT=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),XT=function(e){function t(t,n){var r=this,i=n.uniforms||{},o=Pu();i[IT.PROJECTION_MATRIX]=o,r=e.call(this,t,{uniforms:i,postProcesses:n.postProcesses})||this,r.sourceRevision_=-1,r.verticesBuffer_=new _T(oT,cT),r.hitVerticesBuffer_=new _T(oT,cT),r.indicesBuffer_=new _T(aT,cT),r.program_=r.helper.getProgram(n.fragmentShader,n.vertexShader),r.hitDetectionEnabled_=!(!n.hitFragmentShader||!n.hitVertexShader),r.hitProgram_=r.hitDetectionEnabled_&&r.helper.getProgram(n.hitFragmentShader,n.hitVertexShader);var a=n.attributes?n.attributes.map((function(e){return{name:"a_"+e.name,size:1,type:AT.FLOAT}})):[];r.attributes=[{name:"a_position",size:2,type:AT.FLOAT},{name:"a_index",size:1,type:AT.FLOAT}].concat(a),r.hitDetectionAttributes=[{name:"a_position",size:2,type:AT.FLOAT},{name:"a_index",size:1,type:AT.FLOAT},{name:"a_hitColor",size:4,type:AT.FLOAT},{name:"a_featureUid",size:1,type:AT.FLOAT}].concat(a),r.customAttributes=n.attributes?n.attributes:[],r.previousExtent_=fc(),r.currentTransform_=o,r.renderTransform_=Pu(),r.invertRenderTransform_=Pu(),r.renderInstructions_=new Float32Array(0),r.hitRenderInstructions_=new Float32Array(0),r.hitRenderTarget_=r.hitDetectionEnabled_&&new GT(r.helper),r.worker_=$T(),r.worker_.addEventListener("message",function(e){var t=e.data;if(t.type===DT.GENERATE_BUFFERS){var n=t.projectionTransform;t.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(t.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(t.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(t.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=n,Gu(this.invertRenderTransform_,this.renderTransform_),t.hitDetection?this.hitRenderInstructions_=new Float32Array(e.data.renderInstructions):this.renderInstructions_=new Float32Array(e.data.renderInstructions),this.getLayer().changed()}}.bind(r)),r.featureCache_={},r.featureCount_=0;var s=r.getLayer().getSource();return r.sourceListenKeys_=[Os(s,Ap.ADDFEATURE,r.handleSourceFeatureAdded_,r),Os(s,Ap.CHANGEFEATURE,r.handleSourceFeatureChanged_,r),Os(s,Ap.REMOVEFEATURE,r.handleSourceFeatureDelete_,r),Os(s,Ap.CLEAR,r.handleSourceFeatureClear_,r)],s.forEachFeature(function(e){this.featureCache_[Fs(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++}.bind(r)),r}return KT(t,e),t.prototype.handleSourceFeatureAdded_=function(e){var t=e.feature;this.featureCache_[Fs(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++},t.prototype.handleSourceFeatureChanged_=function(e){var t=e.feature;this.featureCache_[Fs(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()}},t.prototype.handleSourceFeatureDelete_=function(e){var t=e.feature;delete this.featureCache_[Fs(t)],this.featureCount_--},t.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},t.prototype.renderFrame=function(e){var t=this.indicesBuffer_.getSize();this.helper.drawElements(0,t),this.helper.finalizeDraw(e);var n=this.helper.getCanvas(),r=e.layerStatesArray[e.layerIndex],i=r.opacity;return i!==parseFloat(n.style.opacity)&&(n.style.opacity=String(i)),this.hitDetectionEnabled_&&(this.renderHitDetection(e),this.hitRenderTarget_.clearCachedData()),n},t.prototype.prepareFrame=function(e){var t=this.getLayer(),n=t.getSource(),r=e.viewState,i=!e.viewHints[yg.ANIMATING]&&!e.viewHints[yg.INTERACTING],o=!yc(this.previousExtent_,e.extent),a=this.sourceRevision_<n.getRevision();if(a&&(this.sourceRevision_=n.getRevision()),i&&(o||a)){var s=r.projection,l=r.resolution,c=t instanceof bm?t.getRenderBuffer():0,u=oc(e.extent,c*l);n.loadFeatures(u,l,s),this.rebuildBuffers_(e),this.previousExtent_=e.extent.slice()}return this.helper.makeProjectionTransform(e,this.currentTransform_),Nu(this.currentTransform_,this.invertRenderTransform_),this.helper.useProgram(this.program_),this.helper.prepareDraw(e),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},t.prototype.rebuildBuffers_=function(e){var t=Pu();this.helper.makeProjectionTransform(e,t);var n,r,i=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var o=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===o||(this.hitRenderInstructions_=new Float32Array(o))}var a,s=[],l=[],c=0,u=0;for(var d in this.featureCache_)if(n=this.featureCache_[d],r=n.geometry,r&&r.getType()===Vc.POINT){s[0]=r.getFlatCoordinates()[0],s[1]=r.getFlatCoordinates()[1],ju(t,s),a=FT(u+6,l),this.renderInstructions_[c++]=s[0],this.renderInstructions_[c++]=s[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[u++]=s[0],this.hitRenderInstructions_[u++]=s[1],this.hitRenderInstructions_[u++]=a[0],this.hitRenderInstructions_[u++]=a[1],this.hitRenderInstructions_[u++]=a[2],this.hitRenderInstructions_[u++]=a[3],this.hitRenderInstructions_[u++]=Number(d));for(var f=void 0,h=0;h<this.customAttributes.length;h++)f=this.customAttributes[h].callback(n.feature,n.properties),this.renderInstructions_[c++]=f,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[u++]=f)}var p={type:DT.GENERATE_BUFFERS,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(p["projectionTransform"]=t,this.worker_.postMessage(p,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var m={type:DT.GENERATE_BUFFERS,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};m["projectionTransform"]=t,m["hitDetection"]=!0,this.worker_.postMessage(m,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},t.prototype.forEachFeatureAtCoordinate=function(e,t,n,r,i){if(nc(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=ju(t.coordinateToPixelTransform,e.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=[a[0]/255,a[1]/255,a[2]/255,a[3]/255],l=BT(s),c=this.hitRenderInstructions_[l],u=Math.floor(c).toString(),d=this.getLayer().getSource(),f=d.getFeatureByUid(u);return f?r(f,this.getLayer()):void 0}},t.prototype.renderHitDetection=function(e){if(this.hitVerticesBuffer_.getSize()){this.hitRenderTarget_.setSize([Math.floor(e.size[0]/2),Math.floor(e.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(e,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);var t=this.indicesBuffer_.getSize();this.helper.drawElements(0,t)}},t.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(e){Is(e)})),this.sourceListenKeys_=null,e.prototype.disposeInternal.call(this)},t}(qT),YT=XT,JT=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QT={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},ZT=["#00f","#0ff","#0f0","#ff0","#f00"];(function(e){function t(t){var n=this,r=t||{},i=bs({},r);delete i.gradient,delete i.radius,delete i.blur,delete i.weight,n=e.call(this,i)||this,n.gradient_=null,n.addEventListener(Vs(QT.GRADIENT),n.handleGradientChanged_),n.setGradient(r.gradient?r.gradient:ZT),n.setBlur(void 0!==r.blur?r.blur:15),n.setRadius(void 0!==r.radius?r.radius:8);var o=r.weight?r.weight:"weight";return n.weightFunction_="string"===typeof o?function(e){return e.get(o)}:o,n.setRenderOrder(null),n}JT(t,e),t.prototype.getBlur=function(){return this.get(QT.BLUR)},t.prototype.getGradient=function(){return this.get(QT.GRADIENT)},t.prototype.getRadius=function(){return this.get(QT.RADIUS)},t.prototype.handleGradientChanged_=function(){this.gradient_=eI(this.getGradient())},t.prototype.setBlur=function(e){this.set(QT.BLUR,e)},t.prototype.setGradient=function(e){this.set(QT.GRADIENT,e)},t.prototype.setRadius=function(e){this.set(QT.RADIUS,e)},t.prototype.createRenderer=function(){return new YT(this,{attributes:[{name:"weight",callback:function(e){var t=this.weightFunction_(e);return void 0!==t?wl(t,0,1):1}.bind(this)}],vertexShader:"\n        precision mediump float;\n        uniform mat4 u_projectionMatrix;\n        uniform mat4 u_offsetScaleMatrix;\n        uniform float u_size;\n        attribute vec2 a_position;\n        attribute float a_index;\n        attribute float a_weight;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n\n        void main(void) {\n          mat4 offsetMatrix = u_offsetScaleMatrix;\n          float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n          float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n          vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n          gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n          float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n          float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n          v_texCoord = vec2(u, v);\n          v_weight = a_weight;\n        }",fragmentShader:"\n        precision mediump float;\n        uniform float u_blurSlope;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n\n        void main(void) {\n          vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n          float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n          float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n          float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n          gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n        }",hitVertexShader:"\n        precision mediump float;\n        uniform mat4 u_projectionMatrix;\n        uniform mat4 u_offsetScaleMatrix;\n        uniform float u_size;\n        attribute vec2 a_position;\n        attribute float a_index;\n        attribute float a_weight;\n        attribute vec4 a_hitColor;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n        varying vec4 v_hitColor;\n\n        void main(void) {\n          mat4 offsetMatrix = u_offsetScaleMatrix;\n          float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n          float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n          vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n          gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n          float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n          float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n          v_texCoord = vec2(u, v);\n          v_hitColor = a_hitColor;\n          v_weight = a_weight;\n        }",hitFragmentShader:"\n        precision mediump float;\n        uniform float u_blurSlope;\n\n        varying vec2 v_texCoord;\n        varying float v_weight;\n        varying vec4 v_hitColor;\n\n        void main(void) {\n          vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n          float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n          float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n          float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n          if (alpha < 0.05) {\n            discard;\n          }\n\n          gl_FragColor = v_hitColor;\n        }",uniforms:{u_size:function(){return 2*(this.get(QT.RADIUS)+this.get(QT.BLUR))}.bind(this),u_blurSlope:function(){return this.get(QT.RADIUS)/Math.max(1,this.get(QT.BLUR))}.bind(this)},postProcesses:[{fragmentShader:"\n            precision mediump float;\n\n            uniform sampler2D u_image;\n            uniform sampler2D u_gradientTexture;\n\n            varying vec2 v_texCoord;\n\n            void main() {\n              vec4 color = texture2D(u_image, v_texCoord);\n              gl_FragColor.a = color.a;\n              gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n              gl_FragColor.rgb *= gl_FragColor.a;\n            }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this)}}]})}})(Gg);function eI(e){for(var t=1,n=256,r=tl(t,n),i=r.createLinearGradient(0,0,t,n),o=1/(e.length-1),a=0,s=e.length;a<s;++a)i.addColorStop(a*o,e[a]);return r.fillStyle=i,r.fillRect(0,0,t,n),r.canvas}function tI(e,t,n){var r,i,o,a,s,l,c=[],u=e(0),d=e(1),f=t(u),h=t(d),p=[d,u],m=[h,f],g=[1,0],v={},y=1e5;while(--y>0&&g.length>0)o=g.pop(),u=p.pop(),f=m.pop(),l=o.toString(),l in v||(c.push(f[0],f[1]),v[l]=!0),a=g.pop(),d=p.pop(),h=m.pop(),s=(o+a)/2,r=e(s),i=t(r),Cl(i[0],i[1],f[0],f[1],h[0],h[1])<n?(c.push(h[0],h[1]),l=a.toString(),v[l]=!0):(g.push(a,s,s,o),m.push(h,i,i,f),p.push(d,r,r,u));return c}function nI(e,t,n,r,i){var o=au("EPSG:4326");return tI((function(r){return[e,t+(n-t)*r]}),mu(o,r),i)}function rI(e,t,n,r,i){var o=au("EPSG:4326");return tI((function(r){return[t+(n-t)*r,e]}),mu(o,r),i)}var iI=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oI=new cm({color:"rgba(0,0,0,0.2)"}),aI=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];(function(e){function t(t){var n=this,r=t||{},i=bs({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},r);return delete i.maxLines,delete i.strokeStyle,delete i.targetSize,delete i.showLabels,delete i.lonLabelFormatter,delete i.latLabelFormatter,delete i.lonLabelPosition,delete i.latLabelPosition,delete i.lonLabelStyle,delete i.latLabelStyle,delete i.intervals,n=e.call(this,i)||this,n.projection_=null,n.maxLat_=1/0,n.maxLon_=1/0,n.minLat_=-1/0,n.minLon_=-1/0,n.maxX_=1/0,n.maxY_=1/0,n.minX_=-1/0,n.minY_=-1/0,n.targetSize_=void 0!==r.targetSize?r.targetSize:100,n.maxLines_=void 0!==r.maxLines?r.maxLines:100,n.meridians_=[],n.parallels_=[],n.strokeStyle_=void 0!==r.strokeStyle?r.strokeStyle:oI,n.fromLonLatTransform_=void 0,n.toLonLatTransform_=void 0,n.projectionCenterLonLat_=null,n.bottomLeft_=null,n.bottomRight_=null,n.topLeft_=null,n.topRight_=null,n.meridiansLabels_=null,n.parallelsLabels_=null,r.showLabels&&(n.lonLabelFormatter_=void 0==r.lonLabelFormatter?Yc.bind(n,"EW"):r.lonLabelFormatter,n.latLabelFormatter_=void 0==r.latLabelFormatter?Yc.bind(n,"NS"):r.latLabelFormatter,n.lonLabelPosition_=void 0==r.lonLabelPosition?0:r.lonLabelPosition,n.latLabelPosition_=void 0==r.latLabelPosition?1:r.latLabelPosition,n.lonLabelStyleBase_=new mm({text:void 0!==r.lonLabelStyle?r.lonLabelStyle.clone():new $g({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new sm({color:"rgba(0,0,0,1)"}),stroke:new cm({color:"rgba(255,255,255,1)",width:3})})}),n.lonLabelStyle_=function(e){var t=e.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(t),this.lonLabelStyleBase_}.bind(n),n.latLabelStyleBase_=new mm({text:void 0!==r.latLabelStyle?r.latLabelStyle.clone():new $g({font:"12px Calibri,sans-serif",textAlign:"right",fill:new sm({color:"rgba(0,0,0,1)"}),stroke:new cm({color:"rgba(255,255,255,1)",width:3})})}),n.latLabelStyle_=function(e){var t=e.get("graticule_label");return this.latLabelStyleBase_.getText().setText(t),this.latLabelStyleBase_}.bind(n),n.meridiansLabels_=[],n.parallelsLabels_=[],n.addEventListener(Gp.POSTRENDER,n.drawLabels_.bind(n))),n.intervals_=void 0!==r.intervals?r.intervals:aI,n.setSource(new Fp({loader:n.loaderFunction.bind(n),strategy:n.strategyFunction.bind(n),features:new _p,overlaps:!1,useSpatialIndex:!1,wrapX:r.wrapX})),n.featurePool_=[],n.lineStyle_=new mm({stroke:n.strokeStyle_}),n.loadedExtent_=null,n.renderedExtent_=null,n.setRenderOrder(null),n}iI(t,e),t.prototype.strategyFunction=function(e,t){var n=e.slice();return this.projection_&&this.getSource().getWrapX()&&Gc(n,this.projection_),this.loadedExtent_&&(bc(this.loadedExtent_,n,t)?n=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[n]},t.prototype.loaderFunction=function(e,t,n){this.loadedExtent_=e;var r=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=Mc(i,e);if((!this.renderedExtent_||!yc(this.renderedExtent_,o))&&(this.renderedExtent_=o,!Fc(o))){var a=Ic(o),s=t*t/4,l=!this.projection_||!hu(this.projection_,n);l&&this.updateProjectionInfo_(n),this.createGraticule_(o,a,t,s);var c,u=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(u+=this.meridians_.length),this.parallelsLabels_&&(u+=this.parallels_.length);while(u>this.featurePool_.length)c=new vd,this.featurePool_.push(c);var d=r.getFeaturesCollection();d.clear();var f,h,p=0;for(f=0,h=this.meridians_.length;f<h;++f)c=this.featurePool_[p++],c.setGeometry(this.meridians_[f]),c.setStyle(this.lineStyle_),d.push(c);for(f=0,h=this.parallels_.length;f<h;++f)c=this.featurePool_[p++],c.setGeometry(this.parallels_[f]),c.setStyle(this.lineStyle_),d.push(c)}},t.prototype.addMeridian_=function(e,t,n,r,i,o){var a=this.getMeridian_(e,t,n,r,o);if(jc(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(e);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new hd([]),text:s}}this.meridians_[o++]=a}return o},t.prototype.addParallel_=function(e,t,n,r,i,o){var a=this.getParallel_(e,t,n,r,o);if(jc(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(e);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new hd([]),text:s}}this.parallels_[o++]=a}return o},t.prototype.drawLabels_=function(e){var t=e.frameState.viewState.rotation,n=e.frameState.extent,r=Ic(n),i=n;if(t){var o=Dc(n),a=Pc(n),s=Math.abs(Math.cos(t)),l=Math.abs(Math.sin(t)),c=(l*a-s*o)/(l*l-s*s),u=(l*o-s*a)/(l*l-s*s);i=[r[0]-c/2,r[1]-u/2,r[0]+c/2,r[1]+u/2]}var d=0,f=0,h=this.latLabelPosition_<.5,p=this.projection_.getExtent(),m=Dc(p);if(this.getSource().getWrapX()&&this.projection_.canWrapX()&&!cc(p,n)){d=Math.floor((n[0]-p[0])/m),f=Math.ceil((n[2]-p[2])/m);var g=Math.abs(t)>Math.PI/2;h=h!==g}for(var v=hp(e),y=d;y<=f;++y){var b=this.meridians_.length+this.parallels_.length,_=void 0,w=void 0,x=void 0,S=void 0;if(this.meridiansLabels_)for(w=0,x=this.meridiansLabels_.length;w<x;++w){var C=this.meridians_[w];if(t||0!==y){var E=C.clone();E.translate(y*m,0),E.rotate(-t,r),S=this.getMeridianPoint_(E,i,w),S.rotate(t,r)}else S=this.getMeridianPoint_(C,n,w);_=this.featurePool_[b++],_.setGeometry(S),_.set("graticule_label",this.meridiansLabels_[w].text),v.drawFeature(_,this.lonLabelStyle_(_))}if(this.parallelsLabels_&&(y===d&&h||y===f&&!h))for(w=0,x=this.parallels_.length;w<x;++w){C=this.parallels_[w];if(t||0!==y){E=C.clone();E.translate(y*m,0),E.rotate(-t,r),S=this.getParallelPoint_(E,i,w),S.rotate(t,r)}else S=this.getParallelPoint_(C,n,w);_=this.featurePool_[b++],_.setGeometry(S),_.set("graticule_label",this.parallelsLabels_[w].text),v.drawFeature(_,this.latLabelStyle_(_))}}},t.prototype.createGraticule_=function(e,t,n,r){var i=this.getInterval_(n);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=Dc(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!cc(a,e)&&(Dc(e)>=s?(e[0]=a[0],e[2]=a[2]):o=!0);var l=[wl(t[0],this.minX_,this.maxX_),wl(t[1],this.minY_,this.maxY_)],c=this.toLonLatTransform_(l);isNaN(c[1])&&(c[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var u,d,f,h,p=wl(c[0],this.minLon_,this.maxLon_),m=wl(c[1],this.minLat_,this.maxLat_),g=this.maxLines_,v=e;o||(v=[wl(e[0],this.minX_,this.maxX_),wl(e[1],this.minY_,this.maxY_),wl(e[2],this.minX_,this.maxX_),wl(e[3],this.minY_,this.maxY_)]);var y=Uc(v,this.toLonLatTransform_,void 0,8),b=y[3],_=y[2],w=y[1],x=y[0];if(o||(lc(v,this.bottomLeft_)&&(x=this.minLon_,w=this.minLat_),lc(v,this.bottomRight_)&&(_=this.maxLon_,w=this.minLat_),lc(v,this.topLeft_)&&(x=this.minLon_,b=this.maxLat_),lc(v,this.topRight_)&&(_=this.maxLon_,b=this.maxLat_),b=wl(b,m,this.maxLat_),_=wl(_,p,this.maxLon_),w=wl(w,this.minLat_,m),x=wl(x,this.minLon_,p)),p=Math.floor(p/i)*i,h=wl(p,this.minLon_,this.maxLon_),d=this.addMeridian_(h,w,b,r,e,0),u=0,o)while((h-=i)>=x&&u++<g)d=this.addMeridian_(h,w,b,r,e,d);else while(h!=this.minLon_&&u++<g)h=Math.max(h-i,this.minLon_),d=this.addMeridian_(h,w,b,r,e,d);if(h=wl(p,this.minLon_,this.maxLon_),u=0,o)while((h+=i)<=_&&u++<g)d=this.addMeridian_(h,w,b,r,e,d);else while(h!=this.maxLon_&&u++<g)h=Math.min(h+i,this.maxLon_),d=this.addMeridian_(h,w,b,r,e,d);this.meridians_.length=d,this.meridiansLabels_&&(this.meridiansLabels_.length=d),m=Math.floor(m/i)*i,f=wl(m,this.minLat_,this.maxLat_),d=this.addParallel_(f,x,_,r,e,0),u=0;while(f!=this.minLat_&&u++<g)f=Math.max(f-i,this.minLat_),d=this.addParallel_(f,x,_,r,e,d);f=wl(m,this.minLat_,this.maxLat_),u=0;while(f!=this.maxLat_&&u++<g)f=Math.min(f+i,this.maxLat_),d=this.addParallel_(f,x,_,r,e,d);this.parallels_.length=d,this.parallelsLabels_&&(this.parallelsLabels_.length=d)},t.prototype.getInterval_=function(e){for(var t=this.projectionCenterLonLat_[0],n=this.projectionCenterLonLat_[1],r=-1,i=Math.pow(this.targetSize_*e,2),o=[],a=[],s=0,l=this.intervals_.length;s<l;++s){var c=wl(this.intervals_[s]/2,0,90),u=wl(n,-90+c,90-c);o[0]=t-c,o[1]=u-c,a[0]=t+c,a[1]=u+c,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a);var d=Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2);if(d<=i)break;r=this.intervals_[s]}return r},t.prototype.getMeridian_=function(e,t,n,r,i){var o=nI(e,t,n,this.projection_,r),a=this.meridians_[i];return a?(a.setFlatCoordinates(ed.XY,o),a.changed()):(a=new cf(o,ed.XY),this.meridians_[i]=a),a},t.prototype.getMeridianPoint_=function(e,t,n){var r=e.getFlatCoordinates(),i=1,o=r.length-1;r[i]>r[o]&&(i=o,o=1);var a=Math.max(t[1],r[i]),s=Math.min(t[3],r[o]),l=wl(t[1]+Math.abs(t[1]-t[3])*this.lonLabelPosition_,a,s),c=r[i-1]+(r[o-1]-r[i-1])*(l-r[i])/(r[o]-r[i]),u=[c,l],d=this.meridiansLabels_[n].geom;return d.setCoordinates(u),d},t.prototype.getMeridians=function(){return this.meridians_},t.prototype.getParallel_=function(e,t,n,r,i){var o=rI(e,t,n,this.projection_,r),a=this.parallels_[i];return a?(a.setFlatCoordinates(ed.XY,o),a.changed()):a=new cf(o,ed.XY),a},t.prototype.getParallelPoint_=function(e,t,n){var r=e.getFlatCoordinates(),i=0,o=r.length-2;r[i]>r[o]&&(i=o,o=0);var a=Math.max(t[0],r[i]),s=Math.min(t[2],r[o]),l=wl(t[0]+Math.abs(t[0]-t[2])*this.latLabelPosition_,a,s),c=r[i+1]+(r[o+1]-r[i+1])*(l-r[i])/(r[o]-r[i]),u=[l,c],d=this.parallelsLabels_[n].geom;return d.setCoordinates(u),d},t.prototype.getParallels=function(){return this.parallels_},t.prototype.updateProjectionInfo_=function(e){var t=au("EPSG:4326"),n=e.getWorldExtent();this.maxLat_=n[3],this.maxLon_=n[2],this.minLat_=n[1],this.minLon_=n[0];var r=mu(e,t);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=r;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(e,t,n){for(var o=n||2,a=r(e,t,o),s=0,l=a.length;s<l;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=mu(t,e);var o=Uc([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_(Ic(e.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=e}})(Gg);function sI(e,t){return _I().createElementNS(e,t)}function lI(e,t){return cI(e,t,[]).join("")}function cI(e,t,n){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)t?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{var r=void 0;for(r=e.firstChild;r;r=r.nextSibling)cI(r,t,n)}return n}function uI(e){return"documentElement"in e}function dI(e){return(new DOMParser).parseFromString(e,"application/xml")}function fI(e,t){return function(n,r){var i=e.call(void 0!==t?t:this,n,r);if(void 0!==i){var o=r[r.length-1];o.push(i)}}}function hI(e,t,n){return function(r,i){var o=e.call(void 0!==n?n:this,r,i);if(void 0!==o){var a=i[i.length-1],s=void 0!==t?t:r.localName,l=void 0;s in a?l=a[s]:(l=[],a[s]=l),l.push(o)}}}function pI(e,t,n){return function(r,i){var o=e.call(void 0!==n?n:this,r,i);if(void 0!==o){var a=i[i.length-1],s=void 0!==t?t:r.localName;a[s]=o}}}function mI(e,t){var n=e;return function(e,r,i){var o=r[r.length-1],a=o.node,s=n;void 0===s&&(s=i);var l=void 0!==t?t:a.namespaceURI;return sI(l,s)}}mI();function gI(e,t,n){var r,i,o=void 0!==n?n:{};for(r=0,i=e.length;r<i;++r)o[e[r]]=t;return o}function vI(e,t,n,r){var i;for(i=t.firstElementChild;i;i=i.nextElementSibling){var o=e[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(r,i,n)}}}function yI(e,t,n,r,i){return r.push(e),vI(t,n,r,i),r.pop()}var bI=void 0;function _I(){return void 0===bI&&"undefined"!==typeof document&&(bI=document.implementation.createDocument("","",null)),bI}var wI=function(){function e(){}return e.prototype.read=function(e){if(e){if("string"===typeof e){var t=dI(e);return this.readFromDocument(t)}return uI(e)?this.readFromDocument(e):this.readFromNode(e)}return null},e.prototype.readFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readFromNode(t);return null},e.prototype.readFromNode=function(e){},e}(),xI=wI,SI="http://www.w3.org/1999/xlink";function CI(e){return e.getAttributeNS(SI,"href")}function EI(e){var t=lI(e,!1);return kI(t)}function kI(e){var t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);return t?parseFloat(t[1]):void 0}function OI(e){var t=lI(e,!1);return TI(t)}function TI(e){var t=/^\s*(\d+)\s*$/.exec(e);return t?parseInt(t[1],10):void 0}function II(e){return lI(e,!1).trim()}var AI=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RI=[null,"http://www.opengis.net/ows/1.1"],PI=gI(RI,{ServiceIdentification:pI(rA),ServiceProvider:pI(oA),OperationsMetadata:pI(tA)}),MI=function(e){function t(){return e.call(this)||this}return AI(t,e),t.prototype.readFromNode=function(e){var t=yI({},PI,e,[]);return t||null},t}(xI),NI=gI(RI,{DeliveryPoint:pI(II),City:pI(II),AdministrativeArea:pI(II),PostalCode:pI(II),Country:pI(II),ElectronicMailAddress:pI(II)}),LI=gI(RI,{Value:hI(aA)}),DI=gI(RI,{AllowedValues:pI(KI)}),jI=gI(RI,{Phone:pI(nA),Address:pI($I)}),FI=gI(RI,{HTTP:pI(ZI)}),BI=gI(RI,{Get:hI(QI),Post:void 0}),qI=gI(RI,{DCP:pI(JI)}),zI=gI(RI,{Operation:eA}),UI=gI(RI,{Voice:pI(II),Facsimile:pI(II)}),GI=gI(RI,{Constraint:hI(XI)}),VI=gI(RI,{IndividualName:pI(II),PositionName:pI(II),ContactInfo:pI(YI)}),WI=gI(RI,{Abstract:pI(II),AccessConstraints:pI(II),Fees:pI(II),Title:pI(II),ServiceTypeVersion:pI(II),ServiceType:pI(II)}),HI=gI(RI,{ProviderName:pI(II),ProviderSite:pI(CI),ServiceContact:pI(iA)});function $I(e,t){return yI({},NI,e,t)}function KI(e,t){return yI({},LI,e,t)}function XI(e,t){var n=e.getAttribute("name");if(n)return yI({name:n},DI,e,t)}function YI(e,t){return yI({},jI,e,t)}function JI(e,t){return yI({},FI,e,t)}function QI(e,t){var n=CI(e);if(n)return yI({href:n},GI,e,t)}function ZI(e,t){return yI({},BI,e,t)}function eA(e,t){var n=e.getAttribute("name"),r=yI({},qI,e,t);if(r){var i=t[t.length-1];i[n]=r}}function tA(e,t){return yI({},zI,e,t)}function nA(e,t){return yI({},UI,e,t)}function rA(e,t){return yI({},WI,e,t)}function iA(e,t){return yI({},VI,e,t)}function oA(e,t){return yI({},HI,e,t)}function aA(e,t){return II(e)}var sA=MI,lA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cA=[null,"http://www.opengis.net/wmts/1.0"],uA=[null,"http://www.opengis.net/ows/1.1"],dA=gI(cA,{Contents:pI(xA)}),fA=(function(e){function t(){var t=e.call(this)||this;return t.owsParser_=new sA,t}lA(t,e),t.prototype.readFromNode=function(e){var t=e.getAttribute("version");t&&(t=t.trim());var n=this.owsParser_.readFromNode(e);return n?(n["version"]=t,n=yI(n,dA,e,[]),n||null):null}}(xI),gI(cA,{Layer:hI(SA),TileMatrixSet:hI(CA)})),hA=gI(cA,{Style:hI(EA),Format:hI(II),TileMatrixSetLink:hI(kA),Dimension:hI(OA),ResourceURL:hI(TA)},gI(uA,{Title:pI(II),Abstract:pI(II),WGS84BoundingBox:pI(IA),Identifier:pI(II)})),pA=gI(cA,{LegendURL:hI(AA)},gI(uA,{Title:pI(II),Identifier:pI(II)})),mA=gI(cA,{TileMatrixSet:pI(II),TileMatrixSetLimits:pI(MA)}),gA=gI(cA,{TileMatrixLimits:fI(NA)}),vA=gI(cA,{TileMatrix:pI(II),MinTileRow:pI(OI),MaxTileRow:pI(OI),MinTileCol:pI(OI),MaxTileCol:pI(OI)}),yA=gI(cA,{Default:pI(II),Value:hI(II)},gI(uA,{Identifier:pI(II)})),bA=gI(uA,{LowerCorner:fI(RA),UpperCorner:fI(RA)}),_A=gI(cA,{WellKnownScaleSet:pI(II),TileMatrix:hI(PA)},gI(uA,{SupportedCRS:pI(II),Identifier:pI(II)})),wA=gI(cA,{TopLeftCorner:pI(RA),ScaleDenominator:pI(EI),TileWidth:pI(OI),TileHeight:pI(OI),MatrixWidth:pI(OI),MatrixHeight:pI(OI)},gI(uA,{Identifier:pI(II)}));function xA(e,t){return yI({},fA,e,t)}function SA(e,t){return yI({},hA,e,t)}function CA(e,t){return yI({},_A,e,t)}function EA(e,t){var n=yI({},pA,e,t);if(n){var r="true"===e.getAttribute("isDefault");return n["isDefault"]=r,n}}function kA(e,t){return yI({},mA,e,t)}function OA(e,t){return yI({},yA,e,t)}function TA(e,t){var n=e.getAttribute("format"),r=e.getAttribute("template"),i=e.getAttribute("resourceType"),o={};return n&&(o["format"]=n),r&&(o["template"]=r),i&&(o["resourceType"]=i),o}function IA(e,t){var n=yI([],bA,e,t);if(2==n.length)return rc(n)}function AA(e,t){var n={};return n["format"]=e.getAttribute("format"),n["href"]=CI(e),n}function RA(e,t){var n=II(e).split(/\s+/);if(n&&2==n.length){var r=+n[0],i=+n[1];if(!isNaN(r)&&!isNaN(i))return[r,i]}}function PA(e,t){return yI({},wA,e,t)}function MA(e,t){return yI([],gA,e,t)}function NA(e,t){return yI({},vA,e,t)}var LA={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},DA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){function t(t){var n=this,r=t||{},i=r.params||{},o=!("TRANSPARENT"in i)||i["TRANSPARENT"];return n=e.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,imageSmoothing:r.imageSmoothing,opaque:!o,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileClass:r.tileClass,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition})||this,n.gutter_=void 0!==r.gutter?r.gutter:0,n.params_=i,n.v13_=!0,n.serverType_=r.serverType,n.hidpi_=void 0===r.hidpi||r.hidpi,n.tmpExtent_=fc(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}DA(t,e),t.prototype.getFeatureInfoUrl=function(e,t,n,r){var i=au(n),o=this.getProjection(),a=this.getTileGrid();a||(a=this.getTileGridForProjection(i));var s=a.getZForResolution(t,this.zDirection),l=a.getTileCoordForCoordAndZ(e,s);if(!(a.getResolutions().length<=l[0])){var c=a.getResolution(l[0]),u=a.getTileCoordExtent(l,this.tmpExtent_),d=Jp(a.getTileSize(l[0]),this.tmpSize),f=this.gutter_;0!==f&&(d=Kp(d,f,this.tmpSize),u=oc(u,c*f,u)),o&&o!==i&&(c=Ub(o,i,e,c),u=vu(u,i,o),e=gu(e,i,o));var h={SERVICE:"WMS",VERSION:jb,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_["LAYERS"]};bs(h,this.params_,r);var p=Math.floor((e[0]-u[0])/c),m=Math.floor((u[3]-e[1])/c);return h[this.v13_?"I":"X"]=p,h[this.v13_?"J":"Y"]=m,this.getRequestUrl_(l,d,u,1,o||i,h)}},t.prototype.getLegendUrl=function(e,t){if(void 0!==this.urls[0]){var n={SERVICE:"WMS",VERSION:jb,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===t||void 0===t["LAYER"]){var r=this.params_.LAYERS,i=!Array.isArray(r)||1===r.length;if(!i)return;n["LAYER"]=r}if(void 0!==e){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1,a=25.4/.28,s=39.37;n["SCALE"]=e*o*s*a}return bs(n,t),D_(this.urls[0],n)}},t.prototype.getGutter=function(){return this.gutter_},t.prototype.getParams=function(){return this.params_},t.prototype.getRequestUrl_=function(e,t,n,r,i,o){var a=this.urls;if(a){if(o["WIDTH"]=t[0],o["HEIGHT"]=t[1],o[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(o["STYLES"]=""),1!=r)switch(this.serverType_){case LA.GEOSERVER:var s=90*r+.5|0;"FORMAT_OPTIONS"in o?o["FORMAT_OPTIONS"]+=";dpi:"+s:o["FORMAT_OPTIONS"]="dpi:"+s;break;case LA.MAPSERVER:o["MAP_RESOLUTION"]=90*r;break;case LA.CARMENTA_SERVER:case LA.QGIS:o["DPI"]=90*r;break;default:nc(!1,52);break}var l,c=i.getAxisOrientation(),u=n;if(this.v13_&&"ne"==c.substr(0,2)){var d=void 0;d=n[0],u[0]=n[1],u[1]=d,d=n[2],u[2]=n[3],u[3]=d}if(o["BBOX"]=u.join(","),1==a.length)l=a[0];else{var f=Tl(e_(e),a.length);l=a[f]}return D_(l,o)}},t.prototype.getTilePixelRatio=function(e){return this.hidpi_&&void 0!==this.serverType_?e:1},t.prototype.getKeyForParams_=function(){var e=0,t=[];for(var n in this.params_)t[e++]=n+"-"+this.params_[n];return t.join("/")},t.prototype.updateParams=function(e){bs(this.params_,e),this.updateV13_(),this.setKey(this.getKeyForParams_())},t.prototype.updateV13_=function(){var e=this.params_["VERSION"]||jb;this.v13_=Kc(e,"1.3")>=0},t.prototype.tileUrlFunction=function(e,t,n){var r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(n)),!(r.getResolutions().length<=e[0])){1==t||this.hidpi_&&void 0!==this.serverType_||(t=1);var i=r.getResolution(e[0]),o=r.getTileCoordExtent(e,this.tmpExtent_),a=Jp(r.getTileSize(e[0]),this.tmpSize),s=this.gutter_;0!==s&&(a=Kp(a,s,this.tmpSize),o=oc(o,i*s,o)),1!=t&&(a=Yp(a,t,this.tmpSize));var l={SERVICE:"WMS",VERSION:jb,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return bs(l,this.params_),this.getRequestUrl_(e,a,o,t,n,l)}}})(M_);window.proj4=eO,window.Proj4js=eO;new rh,Math.PI,Math.PI},"985c":function(e,t,n){},9866:function(e,t,n){var r=n("791c"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},"98ff":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-upload",{attrs:{name:"file",multiple:!0,fileList:e.fileList,"before-upload":e.beforeUpload,remove:e.handleRemove},on:{change:e.handleUpload}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v(" 上传文件 ")],1)],1)},i=[],o=n("2909"),a=n("0fea"),s={props:{fileList:[]},data:function(){return{}},methods:{beforeUpload:function(e){return this.fileStatus=!0,!1},handleUpload:function(e){var t=this;if(this.fileStatus){var n=Object(o["a"])(e.fileList),r=new FormData;r.append("file",n[n.length-1].originFileObj),Object(a["i"])("/template/template/fileup",r,"post").then((function(e){console.log(e),e.result.uid=e.result.filePath,e.result.url1=e.result.filePath,e.result.name=e.result.fileName,delete e.result.fileName,delete e.result.filePath,t.fileList.push(e.result),t.$message.success("上传成功")}))}},handleRemove:function(e){for(var t=this,n=function(n){t.fileList[n].uid==e.url1&&Object(a["i"])("/template/template/filedel",{fileUrl:e.url1},"post").then((function(e){t.fileList.splice(n,1),t.$emit("submit","-1")}))},r=0;r<this.fileList.length;r++)n(r)}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},9937:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{height:"100%"},attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[e.queryInfo&&e.queryInfo.length>0?n("a-row",{attrs:{gutter:24}},[e._l(e.queryInfo,(function(t,r){return["1"===t.hidden?["datetime"==t.view?n("a-col",{directives:[{name:"show",rawName:"v-show",value:e.toggleSearchStatus,expression:"toggleSearchStatus"}],key:"query"+r,attrs:{md:12,sm:16}},[n("online-query-form-item",{attrs:{queryParam:e.queryParam,item:t,dictOptions:e.dictOptions}})],1):n("a-col",{directives:[{name:"show",rawName:"v-show",value:e.toggleSearchStatus,expression:"toggleSearchStatus"}],key:"query"+r,attrs:{md:6,sm:8}},[n("online-query-form-item",{attrs:{queryParam:e.queryParam,item:t,dictOptions:e.dictOptions}})],1)]:["datetime"==t.view?n("a-col",{key:"query"+r,attrs:{md:12,sm:16}},[n("online-query-form-item",{attrs:{queryParam:e.queryParam,item:t,dictOptions:e.dictOptions}})],1):n("a-col",{key:"query"+r,attrs:{md:6,sm:8}},[n("online-query-form-item",{attrs:{queryParam:e.queryParam,item:t,dictOptions:e.dictOptions}})],1)]]})),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchByquery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],2):e._e()],1)],1),n("div",{staticClass:"table-operator"},[e.buttonSwitch.add?n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]):e._e(),e.buttonSwitch.import?n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"upload"},on:{click:e.handleImportXls}},[e._v("导入")]):e._e(),e.buttonSwitch.export?n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")]):e._e(),e._l(e.cgButtonList,(function(t,r){return e.cgButtonList&&e.cgButtonList.length>0?["js"==t.optType?n("a-button",{key:"cgbtn"+r,staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:t.buttonIcon},on:{click:function(n){return e.cgButtonJsHandler(t.buttonCode)}}},[e._v("\n        "+e._s(t.buttonName)+"\n      ")]):"action"==t.optType?n("a-button",{key:"cgbtn"+r,staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:t.buttonIcon},on:{click:function(n){return e.cgButtonActionHandler(t.buttonCode)}}},[e._v("\n        "+e._s(t.buttonName)+"\n      ")]):e._e()]:e._e()})),e.buttonSwitch.batch_delete?n("a-button",{directives:[{name:"show",rawName:"v-show",value:e.table.selectedRowKeys.length>0,expression:"table.selectedRowKeys.length > 0"}],staticStyle:{"margin-left":"8px"},attrs:{ghost:"",type:"primary",icon:"delete"},on:{click:e.handleDelBatch}},[e._v("批量删除")]):e._e()],2),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("\n      已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.table.selectedRowKeys.length))]),e._v("项  \n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"cgformAutoList",staticStyle:{"min-height":"300px"},attrs:{bordered:"",size:"middle",rowKey:"id",columns:e.table.columns,dataSource:e.table.dataSource,pagination:e.table.pagination,loading:e.table.loading,rowSelection:{selectedRowKeys:e.table.selectedRowKeys,onChange:e.handleChangeInTableSelect}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"dateSlot",fn:function(t){return[n("span",[e._v(e._s(e.getFormatDate(t)))])]}},{key:"htmlSlot",fn:function(t){return[n("div",{domProps:{innerHTML:e._s(t)}})]}},{key:"imgSlot",fn:function(t){return[t?n("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:e.getImgView(t),height:"25px",alt:"图片不存在"}}):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此图片")])]}},{key:"fileSlot",fn:function(t){return[t?n("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(n){return e.uploadFile(t)}}},[e._v("\n          下载\n        ")]):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此文件")])]}},{key:"action",fn:function(t,r){return n("span",{},[e.hasBpmStatus?["1"==r.bpm_status||""==r.bpm_status||null==r.bpm_status?[e.buttonSwitch.update?[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}})]:e._e()]:e._e()]:[e.buttonSwitch.update?[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}})]:e._e()],n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),e.hasBpmStatus?void 0:[e.buttonSwitch.delete?n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteOne(r)}}},[n("a",[e._v("删除")])])],1):e._e()],e._l(e.cgButtonLinkList,(function(t,i){return e.cgButtonLinkList&&e.cgButtonLinkList.length>0?[n("a-menu-item",{key:"cgbtnLink"+i},[n("a",{attrs:{href:"javascript:void(0);"},on:{click:function(n){return e.cgButtonLinkHandler(r,t.buttonCode,t.optType)}}},[t.buttonIcon?n("a-icon",{attrs:{type:t.buttonIcon}}):e._e(),e._v("\n                  "+e._s(t.buttonName)+"\n                ")],1)])]:e._e()}))],2)],1)],2)}}])}),n("OnlCgformAutoModal",{ref:"modal",attrs:{code:e.code},on:{success:e.handleFormSuccess}}),n("j-import-modal",{ref:"importModal",attrs:{url:e.getImportUrl()},on:{ok:e.importOk}})],1)])},i=[],o=n("f914"),a=o["a"],s=(n("a6c7"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},"99ca":function(e,t,n){var r=n("8e4c");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"99d7":function(e,t,n){},"99dc":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("1630").left,o=n("4042"),a=n("68d2"),s=n("2062"),l=o("reduce"),c=!s&&a>79&&a<83;r({target:"Array",proto:!0,forced:!l||c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"99ee":function(e,t,n){var r=n("2ace"),i=n("4b0b"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},"9abc":function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var r=n("e269"),i=n("fced"),o=n("1300"),a=n("a896"),s=n("0af5"),l=n("256f"),c=n("57cb"),u=n("bef8"),d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=Object(a["c"])(),h=function(e){function t(){var t=e.call(this)||this;return t.extent_=Object(s["j"])(),t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=Object(c["d"])((function(e,t,n){if(!n)return this.getSimplifiedGeometry(t);var r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)})),t}return d(t,e),t.prototype.simplifyTransformed=function(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)},t.prototype.clone=function(){return Object(o["b"])()},t.prototype.closestPointXY=function(e,t,n,r){return Object(o["b"])()},t.prototype.containsXY=function(e,t){var n=this.getClosestPoint([e,t]);return n[0]===e&&n[1]===t},t.prototype.getClosestPoint=function(e,t){var n=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],n,1/0),n},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return Object(o["b"])()},t.prototype.getExtent=function(e){if(this.extentRevision_!=this.getRevision()){var t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&Object(s["l"])(t),this.extentRevision_=this.getRevision()}return Object(s["I"])(this.extent_,e)},t.prototype.rotate=function(e,t){Object(o["b"])()},t.prototype.scale=function(e,t,n){Object(o["b"])()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return Object(o["b"])()},t.prototype.getType=function(){return Object(o["b"])()},t.prototype.applyTransform=function(e){Object(o["b"])()},t.prototype.intersectsExtent=function(e){return Object(o["b"])()},t.prototype.translate=function(e,t){Object(o["b"])()},t.prototype.transform=function(e,t){var n=Object(l["f"])(e),r=n.getUnits()==i["b"].TILE_PIXELS?function(e,r,i){var o=n.getExtent(),c=n.getWorldExtent(),d=Object(s["A"])(c)/Object(s["A"])(o);return Object(a["b"])(f,c[0],c[3],d,-d,0,0,0),Object(u["c"])(e,0,e.length,i,f,r),Object(l["h"])(n,t)(e,r,i)}:Object(l["h"])(n,t);return this.applyTransform(r),this},t}(r["a"]),p=h,m=n("521b"),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(e){function t(){var t=e.call(this)||this;return t.layout=m["a"].XY,t.stride=2,t.flatCoordinates=null,t}return g(t,e),t.prototype.computeExtent=function(e){return Object(s["o"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return Object(o["b"])()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=this.getSimplifiedGeometryInternal(e),n=t.getFlatCoordinates();return n.length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=b(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){Object(o["b"])()},t.prototype.setLayout=function(e,t,n){var r;if(e)r=b(e);else{for(var i=0;i<n;++i){if(0===t.length)return this.layout=m["a"].XY,void(this.stride=2);t=t[0]}r=t.length,e=y(r)}this.layout=e,this.stride=r},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(u["a"])(n,0,n.length,r,e,t,n),this.changed()}},t.prototype.scale=function(e,t,n){var r=t;void 0===r&&(r=e);var i=n;i||(i=Object(s["x"])(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();Object(u["b"])(o,0,o.length,a,e,r,i,o),this.changed()}},t.prototype.translate=function(e,t){var n=this.getFlatCoordinates();if(n){var r=this.getStride();Object(u["d"])(n,0,n.length,r,e,t,n),this.changed()}},t}(p);function y(e){var t;return 2==e?t=m["a"].XY:3==e?t=m["a"].XYZ:4==e&&(t=m["a"].XYZM),t}function b(e){var t;return e==m["a"].XY?t=2:e==m["a"].XYZ||e==m["a"].XYM?t=3:e==m["a"].XYZM&&(t=4),t}function _(e,t,n){var r=e.getFlatCoordinates();if(r){var i=e.getStride();return Object(u["c"])(r,0,r.length,i,t,n)}return null}t["a"]=v},"9acd":function(e,t,n){var r=n("4b0b");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"9af6":function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"9b15":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单号"}},[n("a-input",{attrs:{placeholder:"请输入订单号"},model:{value:e.queryParam.orderCode,callback:function(t){e.$set(e.queryParam,"orderCode",t)},expression:"queryParam.orderCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单类型"}},[n("a-select",{attrs:{placeholder:"请输入订单类型"},model:{value:e.queryParam.ctype,callback:function(t){e.$set(e.queryParam,"ctype",t)},expression:"queryParam.ctype"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),n("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("一对多示例")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("jeecgOrderMain-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("8a45"),a=n("b65a"),s={name:"JeecgOrderMainList",mixins:[a["a"]],components:{JeecgOrderMainModal:o["default"]},data:function(){return{description:"订单管理页面",importExcelUrl:"".concat(window._CONFIG["domianURL"],"/test/jeecgOrderMain/importExcel"),columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"订单号",align:"center",dataIndex:"orderCode"},{title:"订单类型",align:"center",dataIndex:"ctype",customRender:function(e,t,n){var r="";return"1"===e?r="国内订单":"2"===e&&(r="国际订单"),r}},{title:"订单日期",align:"center",dataIndex:"orderDate"},{title:"订单金额",align:"center",dataIndex:"orderMoney"},{title:"订单备注",align:"center",dataIndex:"content"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/test/jeecgOrderMain/list",delete:"/test/jeecgOrderMain/delete",deleteBatch:"/test/jeecgOrderMain/deleteBatch",exportXlsUrl:"/test/jeecgOrderMain/exportXls"}}},methods:{}},l=s,c=(n("1bc32"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"1f16717b",null);t["default"]=u.exports},"9b7d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备id"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["deviceId",e.validatorRules.deviceId],expression:"['deviceId', validatorRules.deviceId ]"}],attrs:{placeholder:"请输入设备id"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["deviceName",{}],expression:"['deviceName', {}]"}],attrs:{placeholder:"请输入设备名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备完整区域路径"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["path",{}],expression:"['path', {}]"}],attrs:{placeholder:"请输入设备完整区域路径"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["addr",{}],expression:"['addr', {}]"}],attrs:{placeholder:"请输入设备地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"安装地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["location",{}],expression:"['location', {}]"}],attrs:{placeholder:"请输入安装地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"经度"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pointX",{}],expression:"['pointX', {}]"}],attrs:{placeholder:"请输入经度"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"纬度"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pointY",{}],expression:"['pointY', {}]"}],attrs:{placeholder:"请输入纬度"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"districtCode"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",{}],expression:"['districtCode', {}]"}],attrs:{placeholder:"请输入districtCode"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"streetCode"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",{}],expression:"['streetCode', {}]"}],attrs:{placeholder:"请输入streetCode"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备状态"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["deviceState",{}],expression:"['deviceState', {}]"}],attrs:{placeholder:"请输入设备状态"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"最高告警等级:0为正常,其他值都为告警"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alarmState",{}],expression:"['alarmState', {}]"}],attrs:{placeholder:"请输入最高告警等级:0为正常,其他值都为告警"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"所属单位id"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["coId",{}],expression:"['coId', {}]"}],attrs:{placeholder:"请输入所属单位id"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"所属单位名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["coName",{}],expression:"['coName', {}]"}],attrs:{placeholder:"请输入所属单位名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"是否失联"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["lost",{}],expression:"['lost', {}]"}],attrs:{placeholder:"请输入是否失联"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"烟感编号"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smokeNo",e.validatorRules.smokeNo],expression:"['smokeNo', validatorRules.smokeNo ]"}],attrs:{placeholder:"请输入烟感编号"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"第一联系人"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["property",{}],expression:"['property', {}]"}],attrs:{placeholder:"请输入第一联系人"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"烟感图片-全景图"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["picsPanorama",{}],expression:"['picsPanorama', {}]"}],attrs:{placeholder:"请输入烟感图片-全景图"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"烟感图片-烟感图"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["picsSmoke",{}],expression:"['picsSmoke', {}]"}],attrs:{placeholder:"请输入烟感图片-烟感图"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"烟感图片-安装图"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["picsInstall",{}],expression:"['picsInstall', {}]"}],attrs:{placeholder:"请输入烟感图片-安装图"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"本地更新时间"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["localupdatetime",{}],expression:"['localupdatetime', {}]"}],attrs:{placeholder:"请输入本地更新时间"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"SmokeDeviceModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{deviceId:{rules:[{required:!0,message:"请输入设备id!"}]},smokeNo:{rules:[{required:!0,message:"请输入烟感编号!"}]}},url:{add:"/emergency.base.support.biz.smoke/smokeDevice/add",edit:"/emergency.base.support.biz.smoke/smokeDevice/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"deviceId","deviceName","path","addr","location","pointX","pointY","districtCode","streetCode","deviceState","alarmState","coId","coName","lost","smokeNo","property","picsPanorama","picsSmoke","picsInstall","localupdatetime"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"1b58f698",null);t["default"]=d.exports},"9ba1":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"9ba5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("j-editable-table",{attrs:{columns:e.columns,dataSource:e.dataSource,rowNumber:!0,rowSelection:!0,maxHeight:400,disabled:!0}})},i=[],o=n("e2e0"),a=n("7550"),s={name:"ReadOnlyTable",components:{JEditableTable:a["default"]},data:function(){return{columns:[{title:"输入框",key:"input",type:o["a"].input,placeholder:"清输入"},{title:"下拉框",key:"select",type:o["a"].select,options:[{title:"String",value:"string"},{title:"Integer",value:"int"},{title:"Double",value:"double"},{title:"Boolean",value:"boolean"}],placeholder:"请选择"},{title:"多选框",key:"checkbox",type:o["a"].checkbox,customValue:[!0,!1]},{title:"日期",key:"datetime",type:o["a"].datetime}],dataSource:[{input:"hello",select:"int",checkbox:!0,datetime:"2019-6-17 14:50:48"},{input:"world",select:"string",checkbox:!1,datetime:"2019-6-16 14:50:48"},{input:"one",select:"double",checkbox:!0,datetime:"2019-6-17 15:50:48"},{input:"two",select:"boolean",checkbox:!1,datetime:"2019-6-14 14:50:48"},{input:"three",select:"",checkbox:!1,datetime:"2019-6-13 14:50:48"}]}},mounted:function(){}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"967c037a",null);t["default"]=u.exports},"9bde":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"['name', validatorRules.name ]"}],attrs:{placeholder:"请输入名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"区县"}},[n("a-input",{attrs:{placeholder:"请输入区县",disabled:""},model:{value:e.district,callback:function(t){e.district=t},expression:"district"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"DutyArrangeCustomizedModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{name:{rules:[{required:!0,message:"请输入名称!"}]},dbName:{rules:[{required:!0,message:"请输入数据库表名!"}]},key:{rules:[{required:!0,message:"请输入数据库表主键!"}]}},url:{add:"/dutyArrangeCustomized/dutyArrangeCustomized/add",edit:"/dutyArrangeCustomized/dutyArrangeCustomized/edit"},district:"",districtCode:""}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"name"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this;if(null!=this.districtCode&&""!=this.districtCode){var t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);s["districtCode"]=e.districtCode,Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))}else t.$message.warning("请选择区县")},handleCancel:function(){this.close()}}}),c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"4b4d37fd",null);t["default"]=d.exports},"9c04":function(e,t,n){var r=n("2ace"),i=n("f0e0");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},"9c0a":function(e,t,n){},"9c2cc":function(e,t,n){var r=n("2ace"),i=n("7caa").f,o=n("f0e0"),a=n("5ab0"),s=n("9c04"),l=n("4ed9"),c=n("9866");e.exports=function(e,t){var n,u,d,f,h,p,m=e.target,g=e.global,v=e.stat;if(u=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(d in t){if(h=t[d],e.noTargetGet?(p=i(u,d),f=p&&p.value):f=u[d],n=c(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;l(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(u,d,h,e)}}},"9c41":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"beijinga1"},[n("div",{staticClass:"leftmya1"},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:6}},[n("a-form-item",{attrs:{label:"地区"}},[n("city_child",{attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon},model:{value:e.queryParam.village,callback:function(t){e.$set(e.queryParam,"village",t)},expression:"queryParam.village"}})],1)],1),n("a-col",{attrs:{md:6,sm:6}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.myQueryParam.name,callback:function(t){e.$set(e.myQueryParam,"name",t)},expression:"myQueryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入名称",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:6}},[n("a-form-item",{attrs:{label:"区县"}},[n("a-input",{attrs:{placeholder:"请输入区县"},model:{value:e.queryParam.district,callback:function(t){e.$set(e.queryParam,"district",t)},expression:"queryParam.district"}})],1)],1),n("a-col",{attrs:{md:6,sm:6}},[n("div",{staticClass:"spc-search"},[n("a-button",{staticClass:"anniu1",attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticClass:"anniu2",attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[e.verify?e._e():n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")]),e.verify?e._e():n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXlsTemplate}},[e._v("导出模板")]),e.verify?e._e():n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.url.importExcelUrl,accept:".xls,.xlsx"},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0&&e.unVerify?n("a-dropdown",[1==e.verify&&0==e.cxsp?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangok()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("审核通过")],1),n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangnook()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("审核不通过")],1)],1):e._e(),e.cxsp?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangrepass()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("重新审批")],1),n("a-menu-item",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.piliangdelete()}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("删除")],1)],1):e._e(),e.verify?n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1):e._e()],1):e._e()],1),n("mapTable",{ref:"mapTable",attrs:{dataSource:e.dataSource,dataSourcegd:e.dataSourcegd,loading:e.loading,columns:e.columns,verify:e.verify,unVerify:e.unVerify,selectedRowKeys:e.selectedRowKeys,onSelectChange:e.onSelectChange,cxsp:e.cxsp,dataSource3:e.dataSource3},on:{handleRePassForm:function(t){return e.handleRePassForm(t)},handleDeleteFormDB2:function(t){return e.handleDeleteFormDB2(t)},rowClicknew:function(t){return e.rowClicknew(t)},handleEdit:function(t){return e.handleEdit(t)},handleDeleteForm:function(t){return e.handleDeleteForm(t)},handlePassForm:function(t){return e.handlePassForm(t)},handleNoPassForm:function(t){return e.handleNoPassForm(t)},onClearSelected:function(t){return e.onClearSelected(t)},batchDel:function(t){return e.batchDel(t)}}})],1)]),n("div",{staticStyle:{position:"absolute","z-index":"-100"}},[n("TemplateModal",{ref:"TemplateModal",attrs:{url:e.url},on:{ok:e.modalFormOk,dataSource3ziduan:function(t){return e.dataSource3ziduan(t)}}})],1)])},i=[],o=n("d9be"),a=n("657b"),s=n("d8bd"),l=n("9df0"),c={name:"DykeList",mixins:[a["JeecgListMixin"]],components:{city_child:o["default"],mapTable:s["default"],TemplateModal:l["default"]},data:function(){return{description:"通用页面",iconurl:"",columns:[{title:"区县",align:"center",width:"20%",dataIndex:"district"},{title:"名称",align:"center",width:"50%",dataIndex:"name"},{title:"操作",dataIndex:"action",width:"30%",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/templatety/templatety/list/",nopass:"/templatety/templatety/nopass/",repass:"/templatety/templatety/repass/",pass:"/templatety/templatety/pass/",delete:"/templatety/templatety/delete/",deleteBatch:"/templatety/templatety/deleteBatch/",vertifyBatch:"/columnInfo/vertify/",exportXlsUrl:"/templatety/templatety/exportXls/",importExcelUrl:"/templatety/templatety/importExcel/",exportXlsTemplateUrl:"/templatety/templatety/exportXlsTemplate/",latubiao:"/templatety/templatety/latubiao/",biaoheyan:"/templatety/templatety/biaoheyan/",add:"/templatety/templatety/add/",edit:"/templatety/templatety/edit/",notes:"/templatety/templatety/modalziduan/",weiwanshan:"/templatety/templatety/weiwanshan/"},yemian:"单表",dictOptions:{verifyStatus:[]},myQueryParam:{name:""},showDefaultParams:[]}}},u=c,d=(n("d13a"),n("1f3f"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"fbded2ec",null);t["default"]=f.exports},"9ca7":function(e,t,n){"use strict";var r=n("43a2"),i=n("0bb4");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"9caf":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:"用户列表",width:1e3,visible:e.visible,confirmLoading:e.confirmLoading},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[n("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}}})],1)},i=[],o=n("4ec3"),a=n("b65a"),s={name:"SelectUserListModal",mixins:[a["a"]],data:function(){return{title:"操作",visible:!1,model:{},confirmLoading:!1,url:{add:"/act/model/create",list:"/sys/user/list"},columns:[{title:"用户账号",align:"center",dataIndex:"username",fixed:"left",width:200},{title:"用户真实姓名",align:"center",dataIndex:"realname"},{title:"性别",align:"center",dataIndex:"sex_dictText"},{title:"手机号码",align:"center",dataIndex:"phone"},{title:"邮箱",align:"center",dataIndex:"email"},{title:"状态",align:"center",dataIndex:"status_dictText"}]}},created:function(){var e=this;Object(o["E"])().then((function(t){t.success&&(e.dataSource=t.result.records,e.ipagination.total=t.result.total)}))},methods:{open:function(){this.visible=!0,this.selectedRowKeys=[],this.selectedRows=[]},close:function(){this.$emit("close"),this.visible=!1},handleChange:function(e){var t=e.file;t.response.success?(this.$message.success(t.response.message),this.$emit("ok"),this.close()):(this.$message.warn(t.response.message),this.close())},handleCancel:function(){this.close()},handleSubmit:function(){this.$emit("ok",this.selectionRows),this.close()}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"9cbf":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"search-content"},[n("router-view")],1)},i=[],o={name:"SearchLayout",data:function(){var e=this;return{tabs:{items:[{key:"1",title:"文章"},{key:"2",title:"项目"},{key:"3",title:"应用"}],active:function(){switch(e.$route.path){case"/list/search/article":return"1";case"/list/search/project":return"2";case"/list/search/application":return"3";default:return"1"}},callback:function(t){switch(t){case"1":e.$router.push("/list/search/article");break;case"2":e.$router.push("/list/search/project");break;case"3":e.$router.push("/list/search/application");break;default:e.$router.push("/workplace")}}},search:!0}},computed:{},methods:{}},a=o,s=(n("d841"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"58ecbe9c",null);t["default"]=l.exports},"9cc3":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",[n("div",{staticClass:"clearfix"},[n("a-upload",{attrs:{action:e.url.uploadAction,"list-type":"picture-card","file-list":e.fileList},on:{change:e.handleChange}},[e.fileList.length<1e3?n("div",[n("a-icon",{attrs:{type:"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v("\n          Upload\n        ")])],1):e._e()]),n("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.handleCancel}},[n("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)])},i=[],o=(n("96cf"),n("1da1")),a=n("0fea"),s={name:"IndexIconWarehouse",mixins:[],components:{},mounted:function(){},created:function(){this.loadchooseData()},data:function(){return{url:{list:"/sys/indexIcon/getIconWarehouse/index_icon_warehouse",uploadAction:"/sys/indexIcon/upload/index_icon_warehouse",delete:"/sys/indexIcon/deleleIconWarehouse/index_icon_warehouse"},uploadLoading:!1,previewVisible:!1,previewImage:"",fileList:[]}},computed:{},methods:{loadchooseData:function(){var e=this;Object(a["d"])(this.url.list,{}).then((function(t){console.log(t),t.success?e.fileList=t.result:that.$message.warning(t.message)})).catch((function(t){e.$message.error("获取HTTP信息失败")}))},handleCancel:function(){this.previewVisible=!1},handleChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(t),this.icon="","uploading"===t.file.status&&(this.uploadLoading=!0),"done"===t.file.status&&(n=t.file.response,this.uploadLoading=!1,n.success?this.model.icon=n.message:this.$message.warning(n.message)),"removed"===t.file.status&&Object(a["d"])(this.url.delete,{id:t.file.id}).then((function(e){})).catch((function(e){r.$message.error("获取HTTP信息失败")})),setTimeout((function(){r.loadchooseData()}),1e3);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{}},l=s,c=(n("a357"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"294a31e1",null);t["default"]=u.exports},"9cc8":function(e,t,n){"use strict";n("e0b0")},"9cde":function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"9cea":function(e,t,n){"use strict";n("699e")},"9df0":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-row",{attrs:{span:"24"}},e._l(e.notes,(function(t,r){return n("a-col",{attrs:{span:"24"}},["city"==t.zd?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("city_child",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{params:e.showDefaultParams,isVerifyPass:e.isVerifyPass},on:{func:e.getMsgFormSon}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{placeholder:"请输入市",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cityCode",e.validatorRules.cityCode],expression:"[ 'cityCode', validatorRules.cityCode]"}],attrs:{placeholder:"请输入市代码",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",e.validatorRules.district],expression:"[ 'district', validatorRules.district]"}],attrs:{placeholder:"请输入区县",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",e.validatorRules.districtCode],expression:"[ 'districtCode', validatorRules.districtCode]"}],attrs:{placeholder:"请输入区县代码",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",e.validatorRules.street],expression:"[ 'street', validatorRules.street]"}],attrs:{placeholder:"请输入乡镇街道",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",e.validatorRules.streetCode],expression:"[ 'streetCode', validatorRules.streetCode]"}],attrs:{placeholder:"请输入乡镇街道代码",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["village",e.validatorRules.village],expression:"[ 'village', validatorRules.village]"}],attrs:{placeholder:"请输入村社区",hidden:""}}),n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["villageCode",e.validatorRules.villageCode],expression:"[ 'villageCode', validatorRules.villageCode]"}],attrs:{placeholder:"请输入村社区代码",hidden:""}})],1)]:["1"==t.sfbt?["1"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.btint],expression:"[item.zd, validatorRules.btint]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:e._e()]:["1"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:e._e()]]],2)})),1)],1)],1)],1)},i=[],o=(n("28a5"),n("aef6"),n("0fea")),a=n("d9be"),s={name:"DykeModal",props:{url:""},components:{city_child:a["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:860,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},notes:[],qx:"",qxmc:"",showDefaultParams:[],pointKey:"longitudeLatitude",maskClosable:!1,isVerifyPass:!1,confirmLoading:!1,validatorRules:{city:{rules:[{required:!0,message:"请选择地区"}]},bt:{rules:[{required:!0,message:"请输入必填字段"}]},btint:{rules:[{required:!0,message:"请输入必填字段,必须为数字"}]}}}},mounted:function(){this.getquxian()},methods:{fuzhi:function(){this.form.setFieldsValue(this.model)},initParams:function(){null==this.model.cityCode?"3303"==this.qx?(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.form.setFieldsValue({city:"温州市",cityCode:"3303"})):(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.showDefaultParams.push(this.qx),this.form.setFieldsValue({city:"温州市",cityCode:"3303",district:this.qxmc,districtCode:this.qx})):(this.showDefaultParams.length=0,this.showDefaultParams.push(this.model.cityCode),this.showDefaultParams.push(this.model.districtCode),this.showDefaultParams.push(this.model.streetCode),this.showDefaultParams.push(this.model.villageCode))},getMsgFormSon:function(e){console.log(e),this.form.setFieldsValue({city:e.city,cityCode:e.cityCode,district:e.district,districtCode:e.districtCode,street:e.street,streetCode:e.streetCode,village:e.village,villageCode:e.villageCode})},dongtaibianji:function(){var e=this;Object(o["i"])(this.url.notes,{},"get").then((function(t){t.success&&(console.log("动态编辑字段add:"+t.result.notes),e.notes=t.result.notes)}))},bianjipd:function(e){this.isVerifyPass,1==e.verifyStatus||1==e.verify_status?this.isVerifyPass=!0:this.isVerifyPass=!1},add:function(e){var t=this;this.dongtaibianji();var n=this,r=e.smid;null==r?(this.isVerifyPass=!1,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.fuzhi(),t.initParams()}))):(e.longitudeLatitude=e.longitude+","+e.latitude,1==this.isVerifyPass||1==e.verifyStatus?this.isVerifyPass=!0:this.isVerifyPass=!1,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!1,this.$nextTick((function(){t.fuzhi(),t.initParams(),n.handleOk()})))},edit:function(e){var t=this;Object(o["i"])(this.url.notes,{},"get").then((function(n){n.success&&(console.log("动态编辑字段edit:"),console.log(n.result.notes),t.notes=n.result.notes,t.bianjipd(e),t.form.resetFields(),t.model=Object.assign({},e),t.visible=!0,t.$nextTick((function(){t.fuzhi(),t.initParams()})))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this;if(this.isVerifyPass)alert("审核流程已结束,无法编辑数据");else{var t=this;this.form.validateFields((function(n,r){if(e.model.longitudeLatitude=e.model.longitude+","+e.model.latitude,!n){t.confirmLoading=!0;var i="",a="";e.model.smid?(i+=e.url.edit,a="put",e.$route.path.endsWith("emergency_risk_index")||e.$route.path.endsWith("emergency_resource_index")?i+="/emergency":i+="/shenheku"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("表单提交数据",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.$emit("handleOktshide"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))}},handleCancel:function(){this.close()},popupCallback:function(e){this.fuzhi()},getquxian:function(){var e=this;Object(o["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(",");e.qxmc=r[0],e.qx=r[1]}else e.$message.warning(t.message)}))},weiwanshan:function(){var e=this;Object(o["i"])(this.url.weiwanshan,{},"get").then((function(t){t.success&&e.dataSource3ziduan(t.result.notes)}))},dataSource3ziduan:function(e){this.$emit("dataSource3ziduan",e)}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"9e85":function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"9eab":function(e,t,n){(function(t,r){var i=n("2ef0"),o=n("c68e"),a={};function s(e,t,n){return function(r){for(var i,o,a,s,l=0,c=[],u="";l<r.length;l++)i=r.charCodeAt(l),o=r.charAt(l),s=i>=97&&i<=122||i>=48&&i<=57,a=i>=65&&i<=90,!a&&s||(u.length&&c.push(u),u=""),(a||s)&&(s&&u.length?u+=o:u=!c.length&&e||c.length&&t?o.toUpperCase():o.toLowerCase());return u.length&&c.push(u),c.length&&"_"===r.charAt(0)&&(c[0]="_"+c[0]),c.join(n)}}a.inherits=o.inherits,a.isArrayOfStrings=function(e){return i.isArray(e)&&i.every(e.slice(0,10),i.isString)},a.ucfirst=function(e){return e[0].toUpperCase()+e.substring(1).toLowerCase()},a.studlyCase=s(!0,!0,""),a.camelCase=s(!1,!0,""),a.snakeCase=s(!1,!1,"_"),a.toUpperString=function(e){return e?"string"!==typeof e&&(e=e.toString()):e="",e.toUpperCase()},a.isNumeric=function(e){return"object"!==typeof e&&e-parseFloat(e)>=0};var l=/^(\d+(?:\.\d+)?)(M|w|d|h|m|s|y|ms)$/;a.isInterval=function(e){return!(!e.match||!e.match(l))},a.repeat=function(e,t){return new Array(t+1).join(e)},a.applyArgs=function(e,t,n,r){switch(r=r||0,n.length-r){case 0:return e.call(t);case 1:return e.call(t,n[0+r]);case 2:return e.call(t,n[0+r],n[1+r]);case 3:return e.call(t,n[0+r],n[1+r],n[2+r]);case 4:return e.call(t,n[0+r],n[1+r],n[2+r],n[3+r]);case 5:return e.call(t,n[0+r],n[1+r],n[2+r],n[3+r],n[4+r]);default:return e.apply(t,Array.prototype.slice.call(n,r))}},a.nextTick=function(e){t.nextTick(i.bindKey(a,"applyArgs",e,null,arguments,1))},a.handler=function(e){return e._provideBound=!0,e},a.makeBoundMethods=function(e){for(var t in e.bound={},e)"function"===typeof e[t]&&!0===e[t]._provideBound&&(e.bound[t]=i.bind(e[t],e))},a.funcEnum=function(e,t,n,r){var o=e[t];switch(typeof o){case"undefined":return n[r];case"function":return o;case"string":if(n.hasOwnProperty(o))return n[o];default:var a="Invalid "+t+' "'+o+'", expected a function';switch(i.size(n)){case 0:break;case 1:a+=" or "+i.keys(n)[0];break;default:a+=" or one of "+i.keys(n).join(", ");break}throw new TypeError(a)}},a.createArray=function(e,t){t="function"===typeof t?t:i.identity;var n,r,o=[];for(i.isArray(e)||(e=[e]),r=0;r<e.length;r++){if(n=t(e[r]),void 0===n)return!1;o.push(n)}return o},a.getUnwrittenFromStream=function(e){var t=a.getStreamWriteBuffer(e);if(t){var n="";return t.length?(i.each(t,(function(e){if(e.chunk)n+=""+e.chunk;else{if(!i.isArray(e)||"string"!==typeof e[0]&&!r.isBuffer(e[0]))return!1;n+=""+e[0]}})),n):n}},a.getStreamWriteBuffer=function(e){if(e&&e._writableState){var t=e._writableState;return t.getBuffer?t.getBuffer():t.buffer?t.buffer:void 0}},a.clearWriteStreamBuffer=function(e){var t=a.getStreamWriteBuffer(e);return t&&t.splice(0)},a.now=function(){return"function"===typeof Date.now?Date.now():(new Date).getTime()},e.exports=a}).call(this,n("f28c"),n("b639").Buffer)},"9eb9":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}))},"9ef1":function(e,t,n){var r=n("5b1a"),i=n("de7d"),o=n("7373"),a=n("99ca"),s=n("96d9"),l=n("8818"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,f,h,p,m,g,v=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=a(t,v,1+y+_),x=function(e){return u&&l(u),new c(!0,e)},S=function(e){return y?(r(e),_?w(e[0],e[1],x):w(e[0],e[1])):_?w(e,x):w(e)};if(b)u=e;else{if(d=s(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(i(d)){for(f=0,h=o(e.length);h>f;f++)if(p=S(e[f]),p&&p instanceof c)return p;return new c(!1)}u=d.call(e)}m=u.next;while(!(g=m.call(u)).done){try{p=S(g.value)}catch(C){throw l(u),C}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},"9f5e":function(e,t,n){"use strict";function r(e,t,n){var r,o,a=n||i,s=0,l=e.length,c=!1;while(s<l)r=s+(l-s>>1),o=+a(e[r],t),o<0?s=r+1:(l=r,c=!o);return c?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t){return e.indexOf(t)>=0}function a(e,t,n){var r=e.length;if(e[0]<=t)return 0;if(t<=e[r-1])return r-1;var i=void 0;if(n>0){for(i=1;i<r;++i)if(e[i]<t)return i-1}else if(n<0){for(i=1;i<r;++i)if(e[i]<=t)return i}else for(i=1;i<r;++i){if(e[i]==t)return i;if(e[i]<t)return e[i-1]-t<t-e[i]?i-1:i}return r-1}function s(e,t,n){while(t<n){var r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function l(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=0;i<r;i++)e[e.length]=n[i]}function c(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function u(e,t,n){var r=t||i;return e.every((function(t,i){if(0===i)return!0;var o=r(e[i-1],t);return!(o>0||n&&0===o)}))}n.d(t,"a",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return u}))},"9f90":function(e,t,n){"use strict";var r=n("9c2cc"),i=n("e1bd").some,o=n("4042"),a=o("some");r({target:"Array",proto:!0,forced:!a},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"9fa4":function(e,t,n){var r=n("af98"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},a024:function(e,t,n){},a027:function(e,t,n){"use strict";n("55ea")},a031:function(e,t,n){"use strict";n("9474")},a056:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticStyle:{width:"496px"}},[n("a-table",{ref:"table1",staticClass:"table1",attrs:{customRow:e.rowClick,scroll:{y:240},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!1,rowClassName:e.setRowClassName}})],1)])},i=[],o=n("487a"),a=n.n(o),s={name:"mapTable",props:{dataSource:"",dataSourcegd:"",loading:"",columns:"",selectedRowKeys:"",onSelectChange:""},directives:{infiniteScroll:a.a},data:function(){return{count:0,data:[],busy:!1,columnWidthz:10,paginationz:{total:0,pageSize:10,showTotal:function(e){return"共有 ".concat(e," 条数据")}}}},mounted:function(){},methods:{rowClick:function(e){var t=this;return{on:{click:function(){t.$emit("rowClicknew",e)}}}},handleEdit:function(e){this.$emit("handleEdit",e)},handleDeleteForm:function(e){this.$emit("handleDeleteForm",e)},handleDeleteFormDB2:function(e){this.$emit("handleDeleteFormDB2",e)},handlePassForm:function(e){this.$emit("handlePassForm",e)},handleNoPassForm:function(e){this.$emit("handleNoPassForm",e)},handleRePassForm:function(e){this.$emit("handleRePassForm",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},batchDel:function(e){this.$emit("batchDel",e)},setRowClassName:function(e){return console.log(e),"rowcolor"}}},l=s,c=(n("7f9b"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},a061:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tinymce-editor"},[n("editor",{attrs:{init:e.init,disabled:e.disabled},on:{onClick:e.onClick},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}})],1)},i=[],o=n("e562"),a=n.n(o),s=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],l=function(e){return-1!==s.indexOf(e)},c=function(e,t,n){Object.keys(t).filter(l).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},u=function(e,t){var n,r=e.$props.modelEvents?e.$props.modelEvents:null,i=Array.isArray(r)?r.join(" "):r;e.$watch("value",(function(e,r){t&&"string"===typeof e&&e!==n&&e!==r&&(t.setContent(e),n=e)})),t.on(i||"change keyup undo redo",(function(){n=t.getContent(),e.$emit("input",n)}))},d=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||i),t.$listeners.input&&u(t,n),c(e,t.$listeners,n)},f=0,h=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return f++,e+"_"+n+f+String(t)},p=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},m=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},g=function(e,t){return m(e).concat(m(t))},v=function(e,t,n,r){var i=t.createElement("script");i.type="application/javascript",i.id=e,i.addEventListener("load",r),i.src=n,t.head&&t.head.appendChild(i)},y=function(){return{listeners:[],scriptId:h("tiny-script"),scriptLoaded:!1}},b=function(e,t,n,r){e.scriptLoaded?r():(e.listeners.push(r),t.getElementById(e.scriptId)||v(e.scriptId,t,n,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},_=n("1f38"),w={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean},x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x.apply(this,arguments)},S=y(),C=function(e,t,n){return e(n||"div",{attrs:{id:t}})},E=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},k=function(e){return function(){var t=x({},e.$props.init,{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:g(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return d(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});p(e.element)&&(e.element.style.visibility=""),Object(_["a"])().init(t)}},O={props:w,created:function(){this.elementId=this.$props.id||h("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(_["a"])())k(this)();else if(this.element&&this.element.ownerDocument){var e=this.element.ownerDocument,t=this.$props.cloudChannel?this.$props.cloudChannel:"5",n=this.$props.apiKey?this.$props.apiKey:"no-api-key";b(S,e,"https://cdn.tiny.cloud/1/"+n+"/tinymce/"+t+"/tinymce.min.js",k(this))}},beforeDestroy:function(){null!==Object(_["a"])()&&Object(_["a"])().remove(this.editor)},render:function(e){return this.inlineEditor?C(e,this.elementId,this.$props.tagName):E(e,this.elementId)}},T=O,I=(n("030f"),n("4ea8"),n("3aea"),n("07d1"),n("84ec8"),n("f557"),n("9434"),n("2d33"),n("34de"),n("3154"),{components:{Editor:T},props:{value:{type:String,required:!1},triggerChange:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1},plugins:{type:[String,Array],default:"lists image media table textcolor wordcount contextmenu fullscreen"},toolbar:{type:[String,Array],default:"undo redo |  formatselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | lists image media table | removeformat | fullscreen"}},data:function(){return{init:{language_url:"/tinymce/langs/zh_CN.js",language:"zh_CN",skin_url:"/tinymce/skins/lightgray",height:300,plugins:this.plugins,toolbar:this.toolbar,branding:!1,menubar:!1,images_upload_handler:function(e,t){var n="data:image/jpeg;base64,"+e.base64();t(n)}},myValue:this.value}},mounted:function(){a.a.init({})},methods:{onClick:function(e){this.$emit("onClick",e,a.a)},clear:function(){this.myValue=""}},watch:{value:function(e){this.myValue=null==e?"":e},myValue:function(e){console.log(e),this.triggerChange?(console.log(1),this.$emit("change",e)):(console.log(2),this.$emit("input",e))}}}),A=I,R=n("2877"),P=Object(R["a"])(A,r,i,!1,null,"3fcf7ca2",null);t["default"]=P.exports},a0bd:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.defineMode("coffeescript",(function(e,t){var n="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,o=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,a=/^[_A-Za-z$][_A-Za-z$0-9]*/,s=/^@[_A-Za-z$][_A-Za-z$0-9]*/,l=r(["and","or","not","is","isnt","in","instanceof","typeof"]),c=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],u=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],d=r(c.concat(u));c=r(c);var f=/^('{3}|\"{3}|['\"])/,h=/^(\/{3}|\/)/,p=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],m=r(p);function g(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var r=t.scope.offset;if(e.eatSpace()){var c=e.indentation();return c>r&&"coffee"==t.scope.type?"indent":c<r?"dedent":null}r>0&&_(e,t)}if(e.eatSpace())return null;var u=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=y,t.tokenize(e,t);if("#"===u)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var p=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(p=!0),e.match(/^-?\d+\.\d*/)&&(p=!0),e.match(/^-?\.\d+/)&&(p=!0),p)return"."==e.peek()&&e.backUp(1),"number";var g=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(g=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(g=!0),e.match(/^-?0(?![\dx])/i)&&(g=!0),g)return"number"}if(e.match(f))return t.tokenize=v(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(h)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=v(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(i)||e.match(l)?"operator":e.match(o)?"punctuation":e.match(m)?"atom":e.match(s)||t.prop&&e.match(a)?"property":e.match(d)?"keyword":e.match(a)?"variable":(e.next(),n)}function v(e,r,i){return function(o,a){while(!o.eol())if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return a.tokenize=g,i;o.eat(/['"\/]/)}return r&&(t.singleLineStringErrors?i=n:a.tokenize=g),i}}function y(e,t){while(!e.eol()){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=g;break}e.eatWhile("#")}return"comment"}function b(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function _(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;while(t.scope.prev&&t.scope.offset!==n)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}function w(e,t){var r=t.tokenize(e,t),i=e.current();"return"===i&&(t.dedent=!0),(("->"===i||"=>"===i)&&e.eol()||"indent"===r)&&b(e,t);var o="[({".indexOf(i);if(-1!==o&&b(e,t,"])}".slice(o,o+1)),c.exec(i)&&b(e,t),"then"==i&&_(e,t),"dedent"===r&&_(e,t))return n;if(o="])}".indexOf(i),-1!==o){while("coffee"==t.scope.type&&t.scope.prev)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}var x={startState:function(e){return{tokenize:g,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var r=w(e,t);return r&&"comment"!=r&&(n&&(n.align=!0),t.prop="punctuation"==r&&"."==e.current()),r},indent:function(e,t){if(e.tokenize!=g)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)while("coffee"==n.type&&n.prev)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:"#",fold:"indent"};return x})),e.defineMIME("application/vnd.coffeescript","coffeescript"),e.defineMIME("text/x-coffeescript","coffeescript"),e.defineMIME("text/coffeescript","coffeescript")}))},a11e:function(e,t,n){var r=n("fbee"),i=n("16546"),o=n("5b1a"),a=n("022d");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},a16a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-row",{attrs:{gutter:10}},[n("a-col",{attrs:{md:12,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("div",{staticStyle:{background:"#fff","padding-left":"16px",height:"100%","margin-top":"5px"}},[n("a-col",{attrs:{md:10,sm:24}},[[n("a-dropdown",{attrs:{trigger:[this.dropTrigger]}},[n("span",{staticStyle:{"user-select":"none"}},[n("a-tree",{attrs:{checkable:"",selectedKeys:e.selectedKeys,treeData:e.treeData},on:{select:e.onSelect}})],1)])]],2)],1)])],1),n("a-col",{attrs:{md:12,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"街道名称"}},[n("a-input",{attrs:{disabled:""},model:{value:e.street,callback:function(t){e.street=t},expression:"street"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"街道编码"}},[n("a-input",{attrs:{disabled:""},model:{value:e.street_code,callback:function(t){e.street_code=t},expression:"street_code"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"电话"}},[n("a-input",{attrs:{placeholder:"电话"},model:{value:e.mobile,callback:function(t){e.mobile=t},expression:"mobile"}})],1)],1),n("div",{staticClass:"anty-form-btn"},[n("a-button",{attrs:{type:"primary",htmlType:"button",icon:"form"},on:{click:e.save}},[e._v("修改并保存")])],1)],1)],1)],1)},i=[],o=(n("88bc"),n("4ec3")),a=n("0fea"),s=n("b65a"),l={name:"DepartList",mixins:[s["a"]],components:{},data:function(){return{loading:!1,disable:!0,treeData:[],selectedKeys:[],visible:!1,hiding:!0,model:{},dropTrigger:"",currSelected:{},form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},street:"",street_code:"",mobile:""}},methods:{loadData:function(){var e=this;Object(o["u"])().then((function(t){t.success&&(e.treeData=t.result)}))},onSelect:function(e,t){var n=this;this.street="",this.street_code="",this.mobile="";var r=t.node.dataRef;this.selectedKeys=[r.key],this.street=r.title,this.street_code=r.key,Object(o["J"])({code:r.key}).then((function(e){e.success&&null!=e.result&&null!=e.result.mobile&&""!=e.result.mobile&&(n.mobile=e.result.mobile)}))},save:function(){var e=this;""!=this.street&&""!=this.street_code?""!=this.mobile?Object(a["i"])("/sys_street/sysStreet/save",{streetCode:this.street_code,street:this.street,mobile:this.mobile},"post").then((function(t){t.success?e.$message.success(t.message):e.$message.warning(t.message)})):this.$message.warning("请选填写电话!"):this.$message.warning("请选择街道!")}},created:function(){}},c=l,u=(n("27b4"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"3c1de21e",null);t["default"]=d.exports},a1ab:function(e,t,n){"use strict";var r=n("9acd"),i=n("16546"),o=n("e2e1");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},a1af:function(e,t,n){},a1c8:function(e,t,n){e.exports=n("33a0")},a1ee:function(e,t,n){"use strict";n("c01e")},a209:function(e,t,n){},a217:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{staticStyle:{width:"400px"},attrs:{label:"区县",labelCol:{span:5},wrapperCol:{span:18,offset:1}}},[n("a-select",{attrs:{placeholder:"请选择区县"},model:{value:e.queryParam.district,callback:function(t){e.$set(e.queryParam,"district",t)},expression:"queryParam.district"}},[n("a-select-option",{attrs:{value:"3303"}},[e._v("温州市")]),n("a-select-option",{attrs:{value:"330302"}},[e._v("鹿城区")]),n("a-select-option",{attrs:{value:"330382"}},[e._v("乐清市")]),n("a-select-option",{attrs:{value:"330381"}},[e._v("瑞安市")]),n("a-select-option",{attrs:{value:"330324"}},[e._v("永嘉县")]),n("a-select-option",{attrs:{value:"330328"}},[e._v("文成县")]),n("a-select-option",{attrs:{value:"330326"}},[e._v("平阳县")]),n("a-select-option",{attrs:{value:"330329"}},[e._v("泰顺县")]),n("a-select-option",{attrs:{value:"330303"}},[e._v("龙湾区")]),n("a-select-option",{attrs:{value:"330305"}},[e._v("洞头区")]),n("a-select-option",{attrs:{value:"330327"}},[e._v("苍南县")]),n("a-select-option",{attrs:{value:"330372"}},[e._v("瓯江口")]),n("a-select-option",{attrs:{value:"330304"}},[e._v("瓯海区")]),n("a-select-option",{attrs:{value:"330383"}},[e._v("龙港市")]),n("a-select-option",{attrs:{value:"330371"}},[e._v("经开区")])],1)],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1),n("div",{staticClass:"spc-search"})],1)],1)],1)]),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n        "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",e._b({ref:"table",attrs:{size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,expandedRowKeys:e.expandedRowKeys},on:{change:e.handleTableChange,expand:e.handleExpand},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},["1"!=r.hasChild?n("a",{on:{click:function(t){return e.ShouQuan(r)}}},[e._v("授权")]):e._e(),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])},"a-table",e.tableProps,!1))],1),n("wlgzVideoDictionary-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("category-district-modal",{ref:"modalCategoryDistrict"}),n("Select-WlVideo-Modal",{ref:"selectWlVideoModal",attrs:{record_p:e.recordId,selectedRowKeys_p:e.videoIds,selectedRows_p:e.selectedRows},on:{selectFinished:e.selectOK}})],1)},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("96cf"),n("1da1")),a=n("2909"),s=(n("c5f6"),n("7f7f"),n("4ec3")),l=n("0fea"),c=n("b65a"),u=n("5ea7"),d=n("f1e3"),f=n("4488"),h=n("4a0f"),p={name:"SysCategoryList",mixins:[c["a"]],components:{WlgzVideoDictionaryModal:u["default"],CategoryDistrictModal:d["default"],RemarkModal:f["default"],SelectWlVideoModal:h["default"],queVedioIds:s["G"]},data:function(){return{description:"分类字典管理页面",videoIds:[],videoNames:[],selectedRows:[],queryParam:{district:""},recordId:"",columns:[{title:"名称",align:"left",dataIndex:"name"},{title:"编码",align:"left",dataIndex:"code"},{title:"排序",align:"left",dataIndex:"orderNum"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/sys/wlgzvideodictionary/rootList",childList:"/sys/wlgzvideodictionary/childList",delete:"/sys/wlgzvideodictionary/delete"},expandedRowKeys:[],hasChildrenField:"hasChild",pidField:"pid",dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)},tableProps:function(){var e=this;return{rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:function(t){return e.selectedRowKeys=t}}}}},methods:{ShouQuan:function(e){var t=this;this.recordId=e.id,Object(s["G"])(e).then((function(e){t.videoIds=e.result})),this.$refs.selectWlVideoModal.visible=!0},selectOK:function(e){this.videoIds=[],this.videoNames=[];for(var t=0;t<e.length;t++)this.videoNames.push(e[t].name),this.videoIds.push(parseInt(e[t].smid))},refresh:function(){Object(l["d"])("/otherUtil/otherUtil",null).then((function(e){alert(e.result)}))},handleDetailRemark:function(e){this.$refs.remarkmodal.show(e)},handleGrant:function(e){this.$refs.modalCategoryDistrict.show(e.id)},loadData:function(e){var t=this;1==e&&(this.ipagination.current=1),this.loading=!0,this.expandedRowKeys=[];var n=this.getQueryParams();return new Promise((function(e){Object(l["d"])(t.url.list,n).then((function(n){if(n.success){var r=n.result;Number(r.total)>0?(t.ipagination.total=Number(r.total),t.dataSource=t.getDataByResult(n.result.records),e()):(t.ipagination.total=0,t.dataSource=[])}else t.$message.warning(n.message);t.loading=!1}))}))},getDataByResult:function(e){var t=this;return e.map((function(e){if("1"==e[t.hasChildrenField]){var n={id:e.id+"_loadChild",name:"loading...",isLoading:!0};e.children=[n]}return e}))},handleExpand:function(e,t){var n=this;if(console.log(t),e){if(this.expandedRowKeys.push(t.id),t.children.length>0&&!0===t.children[0].isLoading){var r=this.getQueryParams();r[this.pidField]=t.id,Object(l["d"])(this.url.childList,r).then((function(e){e.success?e.result&&e.result.length>0?(t.children=n.getDataByResult(e.result),n.dataSource=Object(a["a"])(n.dataSource)):(t.children="",t.hasChildrenField="0"):n.$message.warning(e.message)}))}}else{var i=this.expandedRowKeys.indexOf(t.id);i>=0&&this.expandedRowKeys.splice(i,1)}},initDictConfig:function(){},modalFormOk:function(e,t){e.id?(this.editOk(e,this.dataSource),this.dataSource=Object(a["a"])(this.dataSource)):this.addOk(e,t)},editOk:function(e,t){if(t&&t.length>0)for(var n=0;n<t.length;n++){if(t[n].id==e.id){t[n]=e;break}this.editOk(e,t[n].children)}},addOk:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t[this.pidField]){e.next=4;break}this.loadData(),e.next=32;break;case 4:this.expandedRowKeys=[],console.log("22222",n),r=!0,i=!1,o=void 0,e.prev=9,a=n[Symbol.iterator]();case 11:if(r=(s=a.next()).done){e.next=18;break}return l=s.value,e.next=15,this.expandTreeNode(l);case 15:r=!0,e.next=11;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e["catch"](9),i=!0,o=e.t0;case 24:e.prev=24,e.prev=25,r||null==a.return||a.return();case 27:if(e.prev=27,!i){e.next=30;break}throw o;case 30:return e.finish(27);case 31:return e.finish(24);case 32:case"end":return e.stop()}}),e,this,[[9,20,24,32],[25,,27,31]])})));function t(t,n){return e.apply(this,arguments)}return t}(),expandTreeNode:function(e){var t=this;return new Promise((function(n,r){t.getFormDataById(e,t.dataSource);var i=t.parentFormData;t.expandedRowKeys.push(e);var o=t.getQueryParams();o[t.pidField]=e,Object(l["d"])(t.url.childList,o).then((function(e){console.log("11111",e),e.success&&e.result&&e.result.length>0?(i.children=t.getDataByResult(e.result),t.dataSource=Object(a["a"])(t.dataSource),n()):r()}))}))},getFormDataById:function(e,t){if(t&&t.length>0)for(var n=0;n<t.length;n++)t[n].id==e?this.parentFormData=t[n]:this.getFormDataById(e,t[n].children)}}},m=p,g=(n("6668"),n("2877")),v=Object(g["a"])(m,r,i,!1,null,"b6ce383c",null);t["default"]=v.exports},a26d:function(e,t,n){},a29b:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"视频监测地点名称"}},[n("a-input",{attrs:{placeholder:"请输入视频监测地点名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"关联的表"}},[n("a-input",{attrs:{placeholder:"请输入关联的表"},model:{value:e.queryParam.engname,callback:function(t){e.$set(e.queryParam,"engname",t)},expression:"queryParam.engname"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),n("a",{staticStyle:{"margin-left":"8px"},on:{click:e.handleToggleSearch}},[e._v("\n              "+e._s(e.toggleSearchStatus?"收起":"展开")+"\n              "),n("a-icon",{attrs:{type:e.toggleSearchStatus?"up":"down"}})],1)],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("视频列表")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("companyVideo-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("f4bf"),a=n("b65a"),s={name:"CompanyVideoList",mixins:[a["a"]],components:{CompanyVideoModal:o["default"]},data:function(){return{description:"视频列表管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"视频监测地点名称",align:"center",dataIndex:"name"},{title:"视频地址",align:"center",dataIndex:"videoUrl"},{title:"关联字段guid",align:"center",dataIndex:"guid"},{title:"关联的表",align:"center",dataIndex:"engname"},{title:"视频类型",align:"center",dataIndex:"datatype"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/video/companyVideo/list",delete:"/video/companyVideo/delete",deleteBatch:"/video/companyVideo/deleteBatch",exportXlsUrl:"video/companyVideo/exportXls",importExcelUrl:"video/companyVideo/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},l=s,c=(n("e384"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"15abee4a",null);t["default"]=u.exports},a2c7:function(e,t,n){"use strict";var r=n("e269"),i=n("f623"),o=n("fced"),a=n("496f"),s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},l=n("0414"),c=n("256f"),u=n("57cb"),d=n("a568"),f=n("92fa5"),h=n("38f3"),p=n("7fc9");function m(e,t,n){return function(r,i,o,a,s){if(r){var l=t?0:o[0]*i,c=t?0:o[1]*i,u=s?s[0]:0,d=s?s[1]:0,f=e[0]+l/2+u,h=e[2]-l/2+u,m=e[1]+c/2+d,g=e[3]-c/2+d;f>h&&(f=(h+f)/2,h=f),m>g&&(m=(g+m)/2,g=m);var v=Object(p["a"])(r[0],f,h),y=Object(p["a"])(r[1],m,g),b=30*i;return a&&n&&(v+=-b*Math.log(1+Math.max(0,f-r[0])/b)+b*Math.log(1+Math.max(0,r[0]-h)/b),y+=-b*Math.log(1+Math.max(0,m-r[1])/b)+b*Math.log(1+Math.max(0,r[1]-g)/b)),[v,y]}}}function g(e){return e}var v=n("0af5"),y=n("9f5e");function b(e,t,n,r){var i=Object(v["E"])(t)/n[0],o=Object(v["A"])(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function _(e,t,n){var r=Math.min(e,t),i=50;return r*=Math.log(1+i*Math.max(0,e/t-1))/i+1,n&&(r=Math.max(r,n),r/=Math.log(1+i*Math.max(0,n/e-1))/i+1),Object(p["a"])(r,n/2,2*t)}function w(e,t,n,r){return function(i,o,a,s){if(void 0!==i){var l=e[0],c=e[e.length-1],u=n?b(l,n,a,r):l;if(s){var d=void 0===t||t;return d?_(i,u,c):Object(p["a"])(i,c,u)}var f=Math.min(u,i),h=Math.floor(Object(y["f"])(e,f,o));return e[h]>u&&h<e.length-1?e[h+1]:e[h]}}}function x(e,t,n,r,i,o){return function(a,s,l,c){if(void 0!==a){var u=i?b(t,i,l,o):t,d=void 0!==n?n:0;if(c){var f=void 0===r||r;return f?_(a,u,d):Object(p["a"])(a,d,u)}var h=1e-9,m=Math.ceil(Math.log(t/u)/Math.log(e)-h),g=-s*(.5-h)+.5,v=Math.min(u,a),y=Math.floor(Math.log(t/v)/Math.log(e)+g),w=Math.max(m,y),x=t/Math.pow(e,w);return Object(p["a"])(x,d,u)}}}function S(e,t,n,r,i){return function(o,a,s,l){if(void 0!==o){var c=r?b(e,r,s,i):e,u=void 0===n||n;return u&&l?_(o,c,t):Object(p["a"])(o,t,c)}}}var C=n("8cc5"),E=n("ca42"),k=n("5bc3"),O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=0,I=function(e){function t(t){var n=e.call(this)||this,r=Object(h["a"])({},t);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(c["b"])(r.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.cancelAnchor_=void 0,r.center&&(r.center=Object(c["d"])(r.center,n.projection_)),r.extent&&(r.extent=Object(c["e"])(r.extent,n.projection_)),n.applyOptions_(r),n}return O(t,e),t.prototype.applyOptions_=function(e){var t={},n=P(e);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=e.resolutions,this.padding=e.padding,this.minZoom_=n.minZoom;var r=R(e),i=n.constraint,o=M(e);this.constraints_={center:r,resolution:i,rotation:o},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom),this.setProperties(t),this.options_=e},t.prototype.getUpdatedOptions_=function(e){var t=Object(h["a"])({},this.options_);return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),Object(h["a"])({},t,e)},t.prototype.animate=function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var t=new Array(arguments.length),n=0;n<t.length;++n){var r=arguments[n];r.center&&(r=Object(h["a"])({},r),r.center=Object(c["d"])(r.center,this.getProjection())),r.anchor&&(r=Object(h["a"])({},r),r.anchor=Object(c["d"])(r.anchor,this.getProjection())),t[n]=r}this.animateInternal.apply(this,t)},t.prototype.animateInternal=function(e){var t,n=arguments.length;if(n>1&&"function"===typeof arguments[n-1]&&(t=arguments[n-1],--n),!this.isDef()){var r=arguments[n-1];return r.center&&this.setCenterInternal(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(t&&A(t,!0))}for(var i=Date.now(),o=this.targetCenter_.slice(),s=this.targetResolution_,l=this.targetRotation_,c=[],u=0;u<n;++u){var d=arguments[u],f={start:i,complete:!1,anchor:d.anchor,duration:void 0!==d.duration?d.duration:1e3,easing:d.easing||E["c"],callback:t};if(d.center&&(f.sourceCenter=o,f.targetCenter=d.center.slice(),o=f.targetCenter),void 0!==d.zoom?(f.sourceResolution=s,f.targetResolution=this.getResolutionForZoom(d.zoom),s=f.targetResolution):d.resolution&&(f.sourceResolution=s,f.targetResolution=d.resolution,s=f.targetResolution),void 0!==d.rotation){f.sourceRotation=l;var h=Object(p["e"])(d.rotation-l+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=l+h,l=f.targetRotation}N(f)?f.complete=!0:i+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(a["a"].ANIMATING,1),this.updateAnimations_()},t.prototype.getAnimating=function(){return this.hints_[a["a"].ANIMATING]>0},t.prototype.getInteracting=function(){return this.hints_[a["a"].INTERACTING]>0},t.prototype.cancelAnimations=function(){var e;this.setHint(a["a"].ANIMATING,-this.hints_[a["a"].ANIMATING]);for(var t=0,n=this.animations_.length;t<n;++t){var r=this.animations_[t];if(r[0].callback&&A(r[0].callback,!1),!e)for(var i=0,o=r.length;i<o;++i){var s=r[i];if(!s.complete){e=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,n=this.animations_.length-1;n>=0;--n){for(var r=this.animations_[n],i=!0,o=0,s=r.length;o<s;++o){var l=r[o];if(!l.complete){var c=e-l.start,u=l.duration>0?c/l.duration:1;u>=1?(l.complete=!0,u=1):i=!1;var d=l.easing(u);if(l.sourceCenter){var f=l.sourceCenter[0],h=l.sourceCenter[1],m=l.targetCenter[0],g=l.targetCenter[1],v=f+d*(m-f),y=h+d*(g-h);this.targetCenter_=[v,y]}if(l.sourceResolution&&l.targetResolution){var b=1===d?l.targetResolution:l.sourceResolution+d*(l.targetResolution-l.sourceResolution);if(l.anchor){var _=this.getViewportSize_(this.getRotation()),w=this.constraints_.resolution(b,0,_,!0);this.targetCenter_=this.calculateCenterZoom(w,l.anchor)}this.targetResolution_=b,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===d?Object(p["e"])(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+d*(l.targetRotation-l.sourceRotation);if(l.anchor){var S=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(S,l.anchor)}this.targetRotation_=x}if(this.applyTargetState_(!0),t=!0,!l.complete)break}}if(i){this.animations_[n]=null,this.setHint(a["a"].ANIMATING,-1);var C=r[0].callback;C&&A(C,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(e,t){var n,r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],Object(d["h"])(n,e-this.getRotation()),Object(d["a"])(n,t)),n},t.prototype.calculateCenterZoom=function(e,t){var n,r=this.getCenterInternal(),i=this.getResolution();if(void 0!==r&&void 0!==i){var o=t[0]-e*(t[0]-r[0])/i,a=t[1]-e*(t[1]-r[1])/i;n=[o,a]}return n},t.prototype.getViewportSize_=function(e){var t=this.viewportSize_;if(e){var n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t},t.prototype.setViewportSize=function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},t.prototype.getCenter=function(){var e=this.getCenterInternal();return e?Object(c["l"])(e,this.getProjection()):e},t.prototype.getCenterInternal=function(){return this.get(s.CENTER)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){var t=this.calculateExtentInternal(e);return Object(c["m"])(t,this.getProjection())},t.prototype.calculateExtentInternal=function(e){var t=e||this.getViewportSize_(),n=this.getCenterInternal();Object(f["a"])(n,1);var r=this.getResolution();Object(f["a"])(void 0!==r,2);var i=this.getRotation();return Object(f["a"])(void 0!==i,3),Object(v["z"])(n,r,i,t)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.setConstrainResolution=function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(s.RESOLUTION)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,t){return this.getResolutionForExtentInternal(Object(c["e"])(e,this.getProjection()),t)},t.prototype.getResolutionForExtentInternal=function(e,t){var n=t||this.getViewportSize_(),r=Object(v["E"])(e)/n[0],i=Object(v["A"])(e)/n[1];return Math.max(r,i)},t.prototype.getResolutionForValueFunction=function(e){var t=e||2,n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(t);return function(e){var r=n/Math.pow(t,e*i);return r}},t.prototype.getRotation=function(){return this.get(s.ROTATION)},t.prototype.getValueForResolutionFunction=function(e){var t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){var r=Math.log(n/e)/t/i;return r}},t.prototype.getViewportSizeMinusPadding_=function(e){var t=this.getViewportSize_(e),n=this.padding;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t},t.prototype.getState=function(){var e=this.getProjection(),t=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding;if(i){var o=this.getViewportSizeMinusPadding_();r=L(r,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,rotation:n,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e},t.prototype.getZoomForResolution=function(e){var t,n,r=this.minZoom_||0;if(this.resolutions_){var i=Object(y["f"])(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)},t.prototype.getResolutionForZoom=function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var t=Object(p["a"])(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,Object(p["a"])(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)},t.prototype.fit=function(e,t){var n;if(Object(f["a"])(Array.isArray(e)||"function"===typeof e.getSimplifiedGeometry,24),Array.isArray(e)){Object(f["a"])(!Object(v["H"])(e),25);var r=Object(c["e"])(e,this.getProjection());n=Object(k["c"])(r)}else if(e.getType()===i["a"].CIRCLE){r=Object(c["e"])(e.getExtent(),this.getProjection());n=Object(k["c"])(r),n.rotate(this.getRotation(),Object(v["x"])(r))}else{var o=Object(c["j"])();n=o?e.clone().transform(o,this.getProjection()):e}this.fitInternal(n,t)},t.prototype.fitInternal=function(e,t){var n=t||{},r=n.size;r||(r=this.getViewportSizeMinusPadding_());var i,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;i=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;for(var s=e.getFlatCoordinates(),l=this.getRotation(),c=Math.cos(-l),d=Math.sin(-l),f=1/0,h=1/0,p=-1/0,m=-1/0,g=e.getStride(),v=0,y=s.length;v<y;v+=g){var b=s[v]*c-s[v+1]*d,_=s[v]*d+s[v+1]*c;f=Math.min(f,b),h=Math.min(h,_),p=Math.max(p,b),m=Math.max(m,_)}var w=this.getResolutionForExtentInternal([f,h,p,m],[r[0]-o[1]-o[3],r[1]-o[0]-o[2]]);w=isNaN(w)?i:Math.max(w,i),w=this.getConstrainedResolution(w,a?0:1),d=-d;var x=(f+p)/2,S=(h+m)/2;x+=(o[1]-o[3])/2*w,S+=(o[0]-o[2])/2*w;var C=x*c-S*d,E=S*c+x*d,k=this.getConstrainedCenter([C,E],w),O=n.callback?n.callback:u["c"];void 0!==n.duration?this.animateInternal({resolution:w,center:k,duration:n.duration,easing:n.easing},O):(this.targetResolution_=w,this.targetCenter_=k,this.applyTargetState_(!1,!0),A(O,!0))},t.prototype.centerOn=function(e,t,n){this.centerOnInternal(Object(c["d"])(e,this.getProjection()),t,n)},t.prototype.centerOnInternal=function(e,t,n){this.setCenterInternal(L(e,t,n,this.getResolution(),this.getRotation()))},t.prototype.calculateCenterShift=function(e,t,n,r){var i,o=this.padding;if(o&&e){var a=this.getViewportSizeMinusPadding_(-n),s=L(e,r,[a[0]/2+o[3],a[1]/2+o[0]],t,n);i=[e[0]-s[0],e[1]-s[1]]}return i},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(e){var t=Object(c["l"])(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustCenterInternal=function(e){var t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])},t.prototype.adjustResolution=function(e,t){var n=t&&Object(c["d"])(t,this.getProjection());this.adjustResolutionInternal(e,n)},t.prototype.adjustResolutionInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()},t.prototype.adjustZoom=function(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)},t.prototype.adjustRotation=function(e,t){t&&(t=Object(c["d"])(t,this.getProjection())),this.adjustRotationInternal(e,t)},t.prototype.adjustRotationInternal=function(e,t){var n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()},t.prototype.setCenter=function(e){this.setCenterInternal(Object(c["d"])(e,this.getProjection()))},t.prototype.setCenterInternal=function(e){this.targetCenter_=e,this.applyTargetState_()},t.prototype.setHint=function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.targetResolution_=e,this.applyTargetState_()},t.prototype.setRotation=function(e){this.targetRotation_=e,this.applyTargetState_()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t.prototype.applyTargetState_=function(e,t){var n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),a=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(s.ROTATION)!==r&&this.set(s.ROTATION,r),this.get(s.RESOLUTION)!==o&&this.set(s.RESOLUTION,o),this.get(s.CENTER)&&Object(d["e"])(this.get(s.CENTER),a)||this.set(s.CENTER,a),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0},t.prototype.resolveConstraints=function(e,t,n){var r=void 0!==e?e:200,i=t||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===r&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var c=n||(0===r?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(d["e"])(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:r,easing:E["b"],anchor:c}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(a["a"].INTERACTING,1)},t.prototype.endInteraction=function(e,t,n){var r=n&&Object(c["d"])(n,this.getProjection());this.endInteractionInternal(e,t,r)},t.prototype.endInteractionInternal=function(e,t,n){this.setHint(a["a"].INTERACTING,-1),this.resolveConstraints(e,t,n)},t.prototype.getConstrainedCenter=function(e,t){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)},t.prototype.getConstrainedZoom=function(e,t){var n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))},t.prototype.getConstrainedResolution=function(e,t){var n=t||0,r=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,n,r)},t}(r["a"]);function A(e,t){setTimeout((function(){e(t)}),0)}function R(e){if(void 0!==e.extent){var t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return m(e.extent,e.constrainOnlyCenter,t)}var n=Object(c["b"])(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&n.isGlobal()){var r=n.getExtent().slice();return r[0]=-1/0,r[2]=1/0,m(r,!1,!1)}return g}function P(e){var t,n,r,i=28,a=2,s=void 0!==e.minZoom?e.minZoom:T,u=void 0!==e.maxZoom?e.maxZoom:i,d=void 0!==e.zoomFactor?e.zoomFactor:a,f=void 0!==e.multiWorld&&e.multiWorld,h=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,p=void 0!==e.showFullExtent&&e.showFullExtent,m=Object(c["b"])(e.projection,"EPSG:3857"),g=m.getExtent(),y=e.constrainOnlyCenter,b=e.extent;if(f||b||!m.isGlobal()||(y=!1,b=g),void 0!==e.resolutions){var _=e.resolutions;n=_[s],r=void 0!==_[u]?_[u]:_[_.length-1],t=e.constrainResolution?w(_,h,!y&&b,p):S(n,r,h,!y&&b,p)}else{var C=g?Math.max(Object(v["E"])(g),Object(v["A"])(g)):360*c["a"][o["b"].DEGREES]/m.getMetersPerUnit(),E=C/l["b"]/Math.pow(a,T),k=E/Math.pow(a,i-T);n=e.maxResolution,void 0!==n?s=0:n=E/Math.pow(d,s),r=e.minResolution,void 0===r&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(d,u):E/Math.pow(d,u):k),u=s+Math.floor(Math.log(n/r)/Math.log(d)),r=n/Math.pow(d,u-s),t=e.constrainResolution?x(d,n,r,h,!y&&b,p):S(n,r,h,!y&&b,p)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:s,zoomFactor:d}}function M(e){var t=void 0===e.enableRotation||e.enableRotation;if(t){var n=e.constrainRotation;return void 0===n||!0===n?Object(C["b"])():!1===n?C["d"]:"number"===typeof n?Object(C["a"])(n):C["d"]}return C["c"]}function N(e){return!(e.sourceCenter&&e.targetCenter&&!Object(d["e"])(e.sourceCenter,e.targetCenter))&&(e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation)}function L(e,t,n,r,i){var o=Math.cos(-i),a=Math.sin(-i),s=e[0]*o-e[1]*a,l=e[1]*o+e[0]*a;s+=(t[0]/2-n[0])*r,l+=(n[1]-t[1]/2)*r,a=-a;var c=s*o-l*a,u=l*o+s*a;return[c,u]}t["a"]=I},a357:function(e,t,n){"use strict";n("e789")},a3fd:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{title:"磁盘监控"}},[n("a-row",[e.diskInfo&&e.diskInfo.length>0?e._l(e.diskInfo,(function(e,t){return n("a-col",{key:"diskInfo"+t,attrs:{span:8}},[n("dash-chart-demo",{attrs:{title:e.name,datasource:e.restPPT}})],1)})):e._e()],2)],1)},i=[],o=n("0fea"),a=n("972f"),s=n("290c"),l={name:"DiskMonitoring",components:{ARow:s["a"],DashChartDemo:a["default"]},data:function(){return{description:"磁盘监控",diskInfo:[],url:{queryDiskInfo:"actuator/redis/queryDiskInfo"}}},created:function(){var e=this;Object(o["d"])(this.url.queryDiskInfo).then((function(t){if(t.success){for(var n=0;n<t.result.length;n++)t.result[n].restPPT=t.result[n].restPPT/10;e.diskInfo=t.result}}))}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"0b779f37",null);t["default"]=d.exports},a42e:function(module,__webpack_exports__,__webpack_require__){"use strict";for(var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c5f6"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__),_components_ChartCard__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("05ed"),ant_design_vue_es_grid_Col__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("da05"),ant_design_vue_es_tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("3896"),_components_chart_MiniArea__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("1d43"),_components_chart_MiniBar__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("942d"),_components_chart_LineChartMultid__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("4ec6"),_components_chart_AreaChartTy__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("f552"),_components_chart_DashChartDemo__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("972f"),_components_chart_BarMultid__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("8191"),_components_chart_MiniProgress__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("bf13"),_components_chart_RankList__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("0923"),_components_chart_Bar__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("edd9"),_components_Trend__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("611e"),_api_manage__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("0fea"),_utils_util__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("ca00"),dayjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("5a0c"),dayjs__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_17__),rankList=[],i=0;i<7;i++)rankList.push({name:"白鹭岛 "+(i+1)+" 号店",total:1234.56-100*i});var dataCol1=[{title:"业务号",align:"center",dataIndex:"reBizCode"},{title:"权利类型",align:"center",dataIndex:"droitType"},{title:"登记类型",align:"center",dataIndex:"registeType"},{title:"座落",align:"center",dataIndex:"beLocated"},{title:"权利人",align:"center",dataIndex:"qlr"},{title:"义务人",align:"center",dataIndex:"ywr"},{title:"受理人",align:"center",dataIndex:"acceptBy"},{title:"受理时间",align:"center",dataIndex:"acceptDate"},{title:"当前节点",align:"center",dataIndex:"curNode"},{title:"办理进度",align:"center",dataIndex:"flowRate",scopedSlots:{customRender:"flowRate"}}],dataCol2=[{title:"业务号",align:"center",dataIndex:"reBizCode"},{title:"权利类型",align:"center",dataIndex:"droitType"},{title:"登记类型",align:"center",dataIndex:"registeType"},{title:"座落",align:"center",dataIndex:"beLocated"},{title:"权利人",align:"center",dataIndex:"qlr"},{title:"义务人",align:"center",dataIndex:"ywr"},{title:"受理人",align:"center",dataIndex:"acceptBy"},{title:"发起时间",align:"center",dataIndex:"acceptDate"},{title:"当前节点",align:"center",dataIndex:"curNode"},{title:"超时时间",align:"center",dataIndex:"flowRate",scopedSlots:{customRender:"flowRate"}}],jhjgData=[{type:"房管","一月":900,"二月":1120,"三月":1380,"四月":1480,"五月":1450,"六月":1100,"七月":1300,"八月":900,"九月":1e3,"十月":1200,"十一月":600,"十二月":900},{type:"税务","一月":1200,"二月":1500,"三月":1980,"四月":2e3,"五月":1e3,"六月":600,"七月":900,"八月":1100,"九月":1300,"十月":2e3,"十一月":900,"十二月":1100},{type:"不动产","一月":2e3,"二月":1430,"三月":1300,"四月":1400,"五月":900,"六月":500,"七月":600,"八月":1e3,"九月":600,"十月":1e3,"十一月":1500,"十二月":1200}],jhjgFields=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],xljgData=[{type:"一月","房管":1.12,"税务":1.55,"不动产":1.2},{type:"二月","房管":1.65,"税务":1.32,"不动产":1.42},{type:"三月","房管":1.85,"税务":1.1,"不动产":1.5},{type:"四月","房管":1.33,"税务":1.63,"不动产":1.4},{type:"五月","房管":1.63,"税务":1.8,"不动产":1.7},{type:"六月","房管":1.85,"税务":1.98,"不动产":1.8},{type:"七月","房管":1.98,"税务":1.5,"不动产":1.76},{type:"八月","房管":1.48,"税务":1.2,"不动产":1.3},{type:"九月","房管":1.41,"税务":1.9,"不动产":1.6},{type:"十月","房管":1.1,"税务":1.1,"不动产":1.4},{type:"十一月","房管":1.85,"税务":1.6,"不动产":1.5},{type:"十二月","房管":1.5,"税务":1.4,"不动产":1.3}],xljgFields=["房管","税务","不动产"];__webpack_exports__["a"]={name:"Analysis",components:{ATooltip:ant_design_vue_es_tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_4__["a"],ACol:ant_design_vue_es_grid_Col__WEBPACK_IMPORTED_MODULE_3__["b"],ChartCard:_components_ChartCard__WEBPACK_IMPORTED_MODULE_2__["default"],MiniArea:_components_chart_MiniArea__WEBPACK_IMPORTED_MODULE_5__["default"],MiniBar:_components_chart_MiniBar__WEBPACK_IMPORTED_MODULE_6__["default"],MiniProgress:_components_chart_MiniProgress__WEBPACK_IMPORTED_MODULE_11__["default"],RankList:_components_chart_RankList__WEBPACK_IMPORTED_MODULE_12__["default"],Bar:_components_chart_Bar__WEBPACK_IMPORTED_MODULE_13__["default"],Trend:_components_Trend__WEBPACK_IMPORTED_MODULE_14__["a"],LineChartMultid:_components_chart_LineChartMultid__WEBPACK_IMPORTED_MODULE_7__["default"],AreaChartTy:_components_chart_AreaChartTy__WEBPACK_IMPORTED_MODULE_8__["default"],DashChartDemo:_components_chart_DashChartDemo__WEBPACK_IMPORTED_MODULE_9__["default"],BarMultid:_components_chart_BarMultid__WEBPACK_IMPORTED_MODULE_10__["default"]},data:function(){return{xljgData:xljgData,xljgFields:xljgFields,jhjgData:jhjgData,jhjgFields:jhjgFields,loading:!0,rankList:rankList,zsll:0,zbjl:0,todaySll:0,todayBjl:0,todayISll:0,todayIBjl:0,registerTypeList:[{text:"业务受理"},{text:"业务管理"},{text:"文件管理"},{text:"信息查询"}],ipagination:{current:1,pageSize:5,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},dataSource:[],dataSource1:[],dataSource2:[],url:{analysis:"/sps/register/analysis",list:"sps/register/virtualList",countSll:"sps/register/sllTenDaysCount",countBjl:"sps/register/bjlTenDaysCount",countISll:"sps/register/ISllTenDaysCount",countIBjl:"sps/register/IBjlTenDaysCount",queryDiskInfo:"api/queryDiskInfo"},chartData:{sll:[],bjl:[],isll:[],ibjl:[]},cardCount:{sll:0,bjl:0,isll:0,ibjl:0},columns:dataCol1,columns2:dataCol2,diskInfo:[]}},methods:{goPage:function(e){0==e?this.$router.push({path:"/isps/registerStepForm",name:"isps-registerStepForm"}):1==e?this.$router.push({path:"/isps/registerList",name:"isps-registerList"}):2==e?this.$router.push({path:"/isps/fileManage",name:"isps-fileManage"}):3==e&&this.$router.push({path:"/isps/infoSearch",name:"isps-infoSearch"})},loadList:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(_api_manage__WEBPACK_IMPORTED_MODULE_15__["d"])(this.url.list,n).then((function(e){console.log("dsdsd",e.result),t.dataSource1=e.result.data1,t.dataSource2=e.result.data2,t.ipagination.total=5}))},getQueryParams:function(){var e={flowStatus:"-3"};return e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(_utils_util__WEBPACK_IMPORTED_MODULE_16__["b"])(e)},formatRespectiveHoldCert:function formatRespectiveHoldCert(value){return"1"==value||eval(value)?"是":"否"},formatCertFormat:function(e){return"1"==e?"单一版":"2"==e?"集成版":e},getFlowRateNumber:function(e){return Number(e)},getFlowPercent:function(e){return"3"==e.flowStatus?100:"0"==e.flowStatus?0:e.flowRate},getFlowStatus:function(e){return"4"==e?"exception":"0"==e?"normal":"3"==e?"success":"active"},queryCount:function(){var e=this;Object(_api_manage__WEBPACK_IMPORTED_MODULE_15__["d"])(this.url.analysis).then((function(t){t.success&&(e.cardCount=t.result),console.log(t)}))},loadDiskInfo:function(){var e=this;Object(_api_manage__WEBPACK_IMPORTED_MODULE_15__["d"])(this.url.queryDiskInfo).then((function(t){if(t.success){console.log(t.result);var n=0,r="";for(var i in t.result){var o=Number(t.result[i].max);o>n&&(n=o,r=t.result[i].name)}var a=t.result.filter((function(e){return e.name==r}))[0];if(a.restPPT=a.restPPT/10,e.diskInfo.push(a),t.result.length>1){var s=0,l="";for(var c in t.result)if(t.result[c].name!=r){var u=Number(t.result[c].max);u>s&&(s=u,l=t.result[c].name)}var d=t.result.filter((function(e){return e.name==l}))[0];d.restPPT=d.restPPT/10,e.diskInfo.push(d)}}else console.log(t.message)}))},loadChartData:function(){var e=this;Object(_api_manage__WEBPACK_IMPORTED_MODULE_15__["d"])(this.url.countSll).then((function(t){if(t.success){var n=t.result;for(var r in n){var i=r,o=n[r],a=dayjs__WEBPACK_IMPORTED_MODULE_17___default()(new Date).format("YYYY-MM-DD");i==a&&(e.todaySll=n[a]),e.chartData.sll.push({x:i,y:o})}}})),Object(_api_manage__WEBPACK_IMPORTED_MODULE_15__["d"])(this.url.countBjl).then((function(t){if(t.success){var n=t.result;for(var r in n){var i=r,o=n[r],a=dayjs__WEBPACK_IMPORTED_MODULE_17___default()(new Date).format("YYYY-MM-DD");i==a&&(e.todayBjl=n[a]),e.chartData.bjl.push({x:i,y:o})}}})),Object(_api_manage__WEBPACK_IMPORTED_MODULE_15__["d"])(this.url.countISll).then((function(t){if(t.success){var n=t.result;for(var r in n){var i=r,o=n[r],a=dayjs__WEBPACK_IMPORTED_MODULE_17___default()(new Date).format("YYYY-MM-DD");i==a&&(e.todayISll=n[a]),e.chartData.isll.push({x:r,y:o})}}})),Object(_api_manage__WEBPACK_IMPORTED_MODULE_15__["d"])(this.url.countIBjl).then((function(t){if(t.success){var n=t.result;for(var r in n){var i=r,o=n[r],a=dayjs__WEBPACK_IMPORTED_MODULE_17___default()(new Date).format("YYYY-MM-DD");i==a&&(e.todayIBjl=n[a]),e.chartData.ibjl.push({x:r,y:o})}}}))}},created:function(){var e=this;this.loadDiskInfo(),this.queryCount(),this.loadChartData(),this.loadList(1),setTimeout((function(){e.loading=!e.loading}),1e3)}}},a43f:function(e,t,n){"use strict";t["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},a462:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-form",{staticStyle:{margin:"40px auto 0"}},[n("result",{attrs:{title:"操作成功","is-success":!0,description:"预计两小时内到账"}},[n("div",{staticClass:"information"},[n("a-row",[n("a-col",{attrs:{sm:8,xs:24}},[e._v("付款账户:")]),n("a-col",{attrs:{sm:16,xs:24}},[e._v("ant-design@alipay.com")])],1),n("a-row",[n("a-col",{attrs:{sm:8,xs:24}},[e._v("收款账户:")]),n("a-col",{attrs:{sm:16,xs:24}},[e._v("test@example.com")])],1),n("a-row",[n("a-col",{attrs:{sm:8,xs:24}},[e._v("收款人姓名:")]),n("a-col",{attrs:{sm:16,xs:24}},[e._v("辉夜")])],1),n("a-row",[n("a-col",{attrs:{sm:8,xs:24}},[e._v("转账金额:")]),n("a-col",{attrs:{sm:16,xs:24}},[n("span",{staticClass:"money"},[e._v("500")]),e._v(" 元")])],1)],1),n("div",{attrs:{slot:"action"},slot:"action"},[n("a-button",{attrs:{type:"primary"},on:{click:e.finish}},[e._v("再转一笔")]),n("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.toOrderList}},[e._v("查看账单")])],1)])],1)],1)},i=[],o=n("9a3d"),a={name:"Step3",components:{Result:o["default"]},data:function(){return{loading:!1}},methods:{finish:function(){this.$emit("finish")},toOrderList:function(){this.$router.push("/list/query-list")}}},s=a,l=(n("a1ee"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"db5dd8b4",null);t["default"]=c.exports},a468:function(e,t,n){"use strict";n("09a7")},a505:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{"margin-top":"-70px"},attrs:{width:e.modalWidth,visible:e.visible,title:e.title,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleSubmit,cancel:e.close}},[n("a-row",{staticStyle:{"background-color":"#ececec",padding:"10px",margin:"-10px"},attrs:{gutter:10}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("a-directory-tree",{attrs:{selectable:"",selectedKeys:e.selectedKeys,checkStrictly:!0,dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.departTree},on:{select:this.onSelect}})],1)],1),n("a-col",{attrs:{md:18,sm:24}},[n("a-card",{attrs:{bordered:!1}},[e._v("\n        用户账号:\n        "),n("a-input",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入用户账号"},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}}),e._v("\n        真实姓名:\n        "),n("a-input",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入真实姓名"},model:{value:e.queryParam.realname,callback:function(t){e.$set(e.queryParam,"realname",t)},expression:"queryParam.realname"}}),n("a-button",{staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.onSearch()}}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{icon:"redo"},on:{click:function(t){return e.searchReset(1)}}},[e._v("重置")]),n("a-table",{ref:"table",attrs:{scroll:e.scrollTrigger,size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)],1)],1)],1)},i=[],o=(n("6b54"),n("ac6a"),n("456d"),n("ca00")),a=n("4ec3"),s={name:"JSelectUserByDepModal",components:{},props:["modalWidth"],data:function(){return{queryParam:{username:""},columns:[{title:"用户账号",align:"center",dataIndex:"username"},{title:"真实姓名",align:"center",dataIndex:"realname"},{title:"角色名称",align:"center",dataIndex:"roleName"},{title:"性别",align:"center",dataIndex:"sex",customRender:function(e){return 1===e?"男":2===e?"女":e}},{title:"手机号码",align:"center",dataIndex:"phone"},{title:"邮箱",align:"center",dataIndex:"email"}],scrollTrigger:{},dataSource:[],selectedKeys:[],userNameArr:[],departName:"",userRolesMap:{},title:"根据部门选择用户",ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},selectedRowKeys:[],selectedRows:[],departTree:[],visible:!1,form:this.$form.createForm(this)}},created:function(){this.resetScreenSize(),this.queryUserRoleMap()},methods:{loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["E"])(n).then((function(e){e.success&&(t.dataSource=e.result.records,t.assignRoleName(t.dataSource),t.ipagination.total=e.result.total)}))},queryUserRoleMap:function(){var e=this;Object(a["cb"])().then((function(t){t.success&&(e.userRolesMap=t.result,e.loadData())}))},resetScreenSize:function(){var e=document.body.clientWidth;this.scrollTrigger=e<500?{x:800}:{}},showModal:function(){this.visible=!0,this.assignRoleName(this.dataSource),this.queryDepartTree(),this.form.resetFields()},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return null!=e.username&&""!=e.username&&(e.username="*"+e.username+"*"),null!=e.realname&&""!=e.realname&&(e.realname="*"+e.realname+"*"),e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},searchReset:function(e){var t=this;0!==e&&(t.queryParam={},t.loadData(1)),t.selectedRowKeys=[],t.userNameArr=[],t.selectedKeys=[]},close:function(){this.searchReset(0),this.visible=!1},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"===n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleSubmit:function(){for(var e=this,t=0,n=this.selectedRowKeys.length;t<n;t++)this.getUserNames(this.selectedRowKeys[t]);e.$emit("ok",e.userNameArr.join(",")),e.close()},getUserNames:function(e){for(var t=this.dataSource,n=0,r=t.length;n<r;n++)e===t[n].id&&this.userNameArr.push(t[n].realname)},onSelect:function(e){null!=e[0]&&(this.queryUserByDepId(e),this.selectedKeys[0]!==e[0]&&(this.selectedKeys=[e[0]]))},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onSearch:function(){this.loadData(1)},queryUserByDepId:function(e){var t=this;Object(a["Z"])({id:e.toString()}).then((function(e){e.success&&(t.dataSource=e.result,t.ipagination.total=e.result.length,t.assignRoleName(t.dataSource))}))},queryUserRole:function(e){var t=this.userRolesMap,n=[];for(var r in t)e===r&&n.push(t[r]);return n.join(",")},queryDepartTree:function(){var e=this;Object(a["L"])().then((function(t){t.success&&(e.departTree=t.result)}))},assignRoleName:function(e){for(var t="",n="",r=0,i=e.length;r<i;r++)t=this.dataSource[r].id,n=this.queryUserRole(t),this.dataSource[r].roleName=n},modalFormOk:function(){this.loadData()}}},l=s,c=(n("ed50"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"34b2dd73",null);t["default"]=u.exports},a550:function(e,t,n){var r=n("fbee"),i=n("791c"),o=n("99ee");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},a568:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return p})),n.d(t,"g",(function(){return m}));var r=n("0af5");n("7fc9");function i(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function o(e,t){var n=t.getRadius(),r=t.getCenter(),i=r[0],o=r[1],a=e[0],s=e[1],l=a-i,c=s-o;0===l&&0===c&&(l=1);var u=Math.sqrt(l*l+c*c),d=i+n*l/u,f=o+n*c/u;return[d,f]}function a(e,t){var n,r,i=e[0],o=e[1],a=t[0],s=t[1],l=a[0],c=a[1],u=s[0],d=s[1],f=u-l,h=d-c,p=0===f&&0===h?0:(f*(i-l)+h*(o-c))/(f*f+h*h||0);return p<=0?(n=l,r=c):p>=1?(n=u,r=d):(n=l+p*f,r=c+p*h),[n,r]}function s(e,t,n){return e?t.replace("{x}",e[0].toFixed(n)).replace("{y}",e[1].toFixed(n)):""}function l(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function c(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function u(e,t){return e[0]*=t,e[1]*=t,e}function d(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function f(e,t){return Math.sqrt(d(e,t))}function h(e,t){return d(e,a(e,t))}function p(e,t){if(t.canWrapX()){var n=Object(r["E"])(t.getExtent()),i=m(e,t,n);i&&(e[0]-=i*n)}return e}function m(e,t,n){var i=t.getExtent(),o=0;if(t.canWrapX()&&(e[0]<i[0]||e[0]>i[2])){var a=n||Object(r["E"])(i);o=Math.floor((e[0]-i[0])/a)}return o}},a5b0:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("8544"),a={name:"aqsc_xwy_source",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("2522"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"2d21bd44",null);t["default"]=c.exports},a5f0:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper",staticStyle:{height:"25px"}},[n("a-collapse",{model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-collapse-panel",{key:"1",attrs:{header:""}},[n("div",{staticStyle:{height:"782px","overflow-y":"scroll","background-color":"#fff"}},[n("div",{staticStyle:{"background-color":"#fff",padding:"4px 0px"}},[n("a-input-search",{attrs:{placeholder:"请输入菜单名称"},on:{search:e.getOptionByMess},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1),n("div",{staticStyle:{"background-color":"#fff","margin-left":"0px"}},[n("div",{staticStyle:{float:"left",width:"50%"}},[n("a-button",{directives:[{name:"has",rawName:"v-has",value:"user:tree",expression:"'user:tree'"}],class:e.classificationClass,on:{click:function(t){return e.getOption()}}},[e._v("\n          按分类\n        ")])],1),n("div",{staticStyle:{float:"left",width:"50%"}},[n("a-button",{directives:[{name:"has",rawName:"v-has",value:"user:tree",expression:"'user:tree'"}],class:e.departClass,on:{click:function(t){return e.getOptionByDept()}}},[e._v("\n          按部门\n        ")])],1)]),n("a-tree",{staticClass:"tree",staticStyle:{display:"inline-block",width:"222px","background-color":"#fff","margin-right":"10px","margin-left":"0px"},attrs:{expandedKeys:e.expandedKeys,treeData:e.treeData},on:{expand:e.onExpand,select:e.onSelect},scopedSlots:e._u([{key:"custom",fn:function(t){return[t.is_expire?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.title))]):n("span",[e._v(e._s(t.title))]),t.is_expire?n("a-button",{on:{click:function(n){return n.stopPropagation(),e.updateExpireTime(t)}}},[e._v("更新")]):e._e()]}}])})],1)])],1),n("div",{staticStyle:{width:"100%"}},[n(e.currentTabComponent,{tag:"component",staticClass:"componentMain"})],1)],1)},i=[],o=(n("4917"),n("28a5"),n("a481"),n("0fea")),a=[],s={data:function(){return{expandedKeys:[],autoExpandParent:!0,checkedKeys:["0-0-0"],selectedKeys:[],treeData:a,url:{getByDept:"/sys/category/getTreeByDept",get:"/sys/category/getTree"},currentTabComponent:{},componentName:"",message:"",isDepartment:!1,classificationClass:"btn_choose_class",departClass:"btn_nochoose_class",activeKey:["1"]}},beforeMount:function(){this.getOption()},watch:{checkedKeys:function(e){console.log("onCheck",e)}},methods:{getListWithDLR:function(e){var t=JSON.parse(JSON.stringify(e));function n(e){if(e&&(e.scopedSlots={title:"custom"},e.children)){for(var t in e.children)n(e.children[t]);n(e.children)}}for(var r in t)n(t[r]);return t},updateExpireTime:function(e){Object(o["d"])("/sys/categoryExpireUpdate/add",{categoryId:e.key}).then((function(t){t.success&&(e.is_expire=!1,e.title=e.title.replace("(已过期)",""))}))},getOptionByMess:function(){this.isDepartment?this.getOptionByDept():this.getOption()},initFirst:function(e){for(var t=0;t<e.length;t++)if(null!=e[t].slots.title&&""!=e[t].slots.title){var n={};return n.url=e[t].slots.title,n.title=e[t].title,n}return this.initFirst(e[0].children)},getOptionByDept:function(){var e=this;this.classificationClass="btn_nochoose_class",this.departClass="btn_choose_class";var t={param:"89a6ffecbfb10ead346d709dbf65e96b",mess:this.message};this.isDepartment=!0,Object(o["d"])(this.url.getByDept,t).then((function(t){if(0!=t.data.length){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);Object.assign(e.$data,t.data),e.treeData=e.getListWithDLR(t.data);var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))},e.componentName=i.title}else e.$message.warning("未检索到该菜单")}))},getOption:function(){var e=this;this.classificationClass="btn_choose_class",this.departClass="btn_nochoose_class";var t={param:"89a6ffecbfb10ead346d709dbf65e96b",mess:this.message};this.isDepartment=!1,Object(o["d"])(this.url.get,t).then((function(t){if(console.log(JSON.stringify(t)),0!=t.data.length){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);e.treeData=e.getListWithDLR(t.data);var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))},e.componentName=i.title}else e.$message.warning("未检索到该菜单")}))},onExpand:function(e){console.log("onExpand",e),this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){console.log("onCheck",e),this.checkedKeys=e},onSelect:function(e,t){var r=t.selectedNodes[0].data.props.dataRef.slots.title,i=r.split("@"),o=i[0],a=i[1];if(void 0==a)this.$store.commit("settemplatetable",a);else{var s=a.match(/^.*[A-Z]+.*$/);null==s?this.$store.commit("settemplatetable",a):this.$store.commit("settemplatetable",'"'+a+'"')}var l=t.selectedNodes[0].data.props.dataRef.slots.sql;this.$store.commit("templatesql",l),this.selectedKeys=e;var c=t.selectedNodes[0].data.props.title;null!=o&&void 0!=o&&""!=o&&(this.componentName=c,this.currentTabComponent=function(){return n("2a68")("./views"+o)})}}},l=s,c=(n("3de1"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},a653:function(e,t,n){var r=n("2062"),i=n("68d2"),o=n("791c");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(r?38===i:i>37&&i<41)}))},a6c7:function(e,t,n){"use strict";n("8f2d")},a6d5:function(e,t,n){},a726:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-checkbox-group",{attrs:{options:e.options,value:e.checkboxArray},on:{change:e.onChange}})},i=[],o=(n("28a5"),{name:"JCheckbox",props:{value:{type:String,required:!1},options:{type:Array,required:!0}},data:function(){return{checkboxArray:this.value?this.value.split(","):[]}},watch:{value:function(e){this.checkboxArray=e?this.value.split(","):[]}},methods:{onChange:function(e){this.$emit("change",e.join(","))}},model:{prop:"value",event:"change"}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},a743:function(e,t,n){},a793:function(e,t,n){var r=n("791c"),i=n("6daf"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},a7be:function(e,t,n){},a876:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._b({},"div",e.fullScreenParentProps,!1),[e.fullScreen?n("a-icon",{staticClass:"full-screen-icon",attrs:{type:"fullscreen"},on:{click:function(){return e.fullCoder=!e.fullCoder}}}):e._e(),n("div",{staticClass:"code-editor-cust full-screen-child"},[n("textarea",{ref:"textarea"}),n("span",{staticClass:"null-tip",class:{"null-tip-hidden":e.hasCode},style:e.nullTipStyle,on:{click:e.nullTipClick}},[e._v(e._s(e.placeholderShow))]),e.languageChange?[n("a-select",{staticClass:"code-mode-select",attrs:{size:"small",placeholder:"请选择主题"},on:{change:e.changeMode},model:{value:e.mode,callback:function(t){e.mode=t},expression:"mode"}},e._l(e.modes,(function(t){return n("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v("\n          "+e._s(t.label)+"\n        ")])})),1)]:e._e()],2)],1)},i=[],o=(n("7514"),n("c5f6"),n("56b3")),a=n.n(o),s=(n("a7be"),n("fade"),n("f6b6"),n("f9d4"),n("7b00"),n("d5e0"),n("4ba6"),n("959b"),n("db91"),n("903e"),n("02f0"),n("ffda"),n("c0e2"),n("693d"),window.CodeMirror||a.a),l={name:"JCodeEditor",props:{value:{type:String,default:""},language:{type:String,default:null},languageChange:{type:Boolean,default:!1,required:!1},placeholder:{type:String,default:null},lineNumbers:{type:Boolean,default:!0},fullScreen:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:999}},data:function(){return{code:"",hasCode:!1,mode:"javascript",coder:null,options:{tabSize:2,theme:"panda-syntax",line:!0,hintOptions:{tables:{users:["name","score","birthDate"],countries:["name","population","size"]}}},modes:[{value:"css",label:"CSS"},{value:"javascript",label:"Javascript"},{value:"html",label:"XML/HTML"},{value:"x-java",label:"Java"},{value:"x-objectivec",label:"Objective-C"},{value:"x-python",label:"Python"},{value:"x-rsrc",label:"R"},{value:"x-sh",label:"Shell"},{value:"x-sql",label:"SQL"},{value:"x-swift",label:"Swift"},{value:"x-vue",label:"Vue"},{value:"markdown",label:"Markdown"}],fullCoder:!1}},watch:{language:{immediate:!0,handler:function(e){var t=this;this._getCoder().then((function(){if(e){var n=t._getLanguage(e);n&&(t.mode=n.label,t.coder.setOption("mode","text/".concat(n.value)))}}))}}},computed:{placeholderShow:function(){return null==this.placeholder?"请在此输入".concat(this.language,"代码"):this.placeholder},nullTipStyle:function(){return this.lineNumbers?{left:"36px"}:{left:"12px"}},coderOptions:function(){return{tabSize:this.options.tabSize,theme:this.options.theme,lineNumbers:this.lineNumbers,line:!0,hintOptions:this.options.hintOptions}},fullScreenParentProps:function(){var e={class:["full-screen-parent",this.fullCoder?"full-screen":""],style:{}};return this.fullCoder&&(e.style["z-index"]=this.zIndex),e}},mounted:function(){this._initialize()},methods:{_initialize:function(){var e=this;this.coder=s.fromTextArea(this.$refs.textarea,this.coderOptions),this.coder.setValue(this.value||this.code),this.value||this.code?this.hasCode=!0:this.hasCode=!1,this.coder.on("change",(function(t){e.code=t.getValue(),e.code?e.hasCode=!0:e.hasCode=!1,e.$emit&&e.$emit("input",e.code)})),this.coder.on("focus",(function(){e.hasCode=!0})),this.coder.on("blur",(function(){e.code?e.hasCode=!0:e.hasCode=!1}))},getCodeContent:function(){return this.code},setCodeContent:function(e){this.coder.setValue(e)},_getLanguage:function(e){return this.modes.find((function(t){var n=e.toLowerCase(),r=t.label.toLowerCase(),i=t.value.toLowerCase();return r===n||i===n}))},_getCoder:function(){var e=this;return new Promise((function(t){(function n(){e.coder?t(e.coder):setTimeout(n,10)})()}))},changeMode:function(e){this.coder.setOption("mode","text/".concat(e));var t=this._getLanguage(e).label.toLowerCase();this.$emit("language-change",t)},nullTipClick:function(){this.coder.focus()}}},c=l,u=(n("480d"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},a896:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"g",(function(){return f}));var r=n("92fa5");new Array(6);function i(){return[1,0,0,1,0,0]}function o(e,t,n,r,i,o,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function s(e,t){var n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function l(e,t,n){return o(e,t,0,0,n,0,0)}function c(e,t,n,r,i,o,a,s){var l=Math.sin(o),c=Math.cos(o);return e[0]=r*c,e[1]=i*l,e[2]=-r*l,e[3]=i*c,e[4]=a*r*c-s*r*l+t,e[5]=a*i*l+s*i*c+n,e}function u(e,t){var n=d(t);Object(r["a"])(0!==n,32);var i=t[0],o=t[1],a=t[2],s=t[3],l=t[4],c=t[5];return e[0]=s/n,e[1]=-o/n,e[2]=-a/n,e[3]=i/n,e[4]=(a*c-s*l)/n,e[5]=-(i*c-o*l)/n,e}function d(e){return e[0]*e[3]-e[1]*e[2]}function f(e){return"matrix("+e.join(", ")+")"}},a89b:function(e,t,n){var r=n("2ace"),i=n("10d8"),o=n("2e5b"),a=n("f0e0"),s=n("d75c"),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in i){var f=r[d],h=f&&f.prototype;if(h){if(h[l]!==u)try{a(h,l,u)}catch(m){h[l]=u}if(h[c]||a(h,c,d),i[d])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(m){h[p]=o[p]}}}},a8c0:function(e,t,n){},a99f:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},a9a9:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-list",{attrs:{itemLayout:"horizontal",dataSource:e.data},scopedSlots:e._u([{key:"renderItem",fn:function(t,r){return n("a-list-item",{key:r},[n("a-list-item-meta",[n("a",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.title))]),n("span",{attrs:{slot:"description"},slot:"description"},[n("span",{staticClass:"security-list-description"},[e._v(e._s(t.description))]),t.value?n("span",[e._v(" : ")]):e._e(),n("span",{staticClass:"security-list-value"},[e._v(e._s(t.value))])])]),t.actions?[n("a",{attrs:{slot:"actions"},on:{click:t.actions.callback},slot:"actions"},[e._v(e._s(t.actions.title))])]:e._e()],2)}}])})},i=[],o={data:function(){var e=this;return{data:[{title:"账户密码",description:"当前密码强度",value:"强",actions:{title:"修改",callback:function(){e.$message.info("This is a normal message")}}},{title:"密保手机",description:"已绑定手机",value:"138****8293",actions:{title:"修改",callback:function(){e.$message.success("This is a message of success")}}},{title:"密保问题",description:"未设置密保问题,密保问题可有效保护账户安全",value:"",actions:{title:"设置",callback:function(){e.$message.error("This is a message of error")}}},{title:"备用邮箱",description:"已绑定邮箱",value:"ant***sign.com",actions:{title:"修改",callback:function(){e.$message.warning("This is message of warning")}}},{title:"MFA 设备",description:"未绑定 MFA 设备,绑定后,可以进行二次确认",value:"",actions:{title:"绑定",callback:function(){e.$message.info("This is a normal message")}}}]}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"9a371cb2",null);t["default"]=l.exports},a9b2:function(e,t,n){"use strict";n("057b")},a9c6:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"菜单隐藏权限配置"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.slotTitle;return n("span",{},[e._v("\n          "+e._s(r)+"\n        ")])}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("4ec3"),s={name:"MenuHideModal",components:{},data:function(){return{userId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"菜单隐藏权限配置",visible:!1,loading:!1}},methods:{onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.userId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={userId:e.userId,permissionIds:e.checkedKeys.join(","),lastpermissionIds:e.defaultCheckedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["ib"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["S"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["Q"])({userId:e.userId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},l=s,c=(n("9cea"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"05e682b4",null);t["default"]=u.exports},aa31:function(e,t,n){"use strict";var r,i,o,a=n("791c"),s=n("58b2"),l=n("f0e0"),c=n("9ba1"),u=n("d75c"),d=n("8f26"),f=u("iterator"),h=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(r=i)):h=!0);var m=void 0==r||a((function(){var e={};return r[f].call(e)!==e}));m&&(r={}),d&&!m||c(r,f)||l(r,f,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},aa84:function(e,t,n){var r=n("9c2cc"),i=n("791c"),o=n("be46"),a=n("7caa").f,s=n("fbee"),l=i((function(){a(1)})),c=!s||l;r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},aa8e:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,okButtonProps:{props:{disabled:e.disableSubmit}},confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"航班号",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ticketCode",{rules:[{required:!0,message:"请输入航班号!"}]}],expression:"['ticketCode', {rules:[{ required: true,message: '请输入航班号!'}]}]"}],attrs:{placeholder:"请输入航班号",readOnly:e.disableSubmit}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"航班时间",hasFeedback:""}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:["tickectDate",{trigger:"input",rules:[{required:!0,message:"请输入航班号!"}]}],expression:"['tickectDate',{trigger:'input',rules:[{ required: true,message: '请输入航班号!'}]}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单号码",hidden:e.hiding,hasFeedback:""},model:{value:this.orderId,callback:function(t){e.$set(this,"orderId",t)},expression:"this.orderId"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderId",{}],expression:"[ 'orderId', {}]"}],attrs:{disabled:"disabled"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"创建人",hidden:e.hiding,hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["createBy",{}],expression:"[ 'createBy', {}]"}],attrs:{readOnly:e.disableSubmit}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"创建时间",hidden:e.hiding,hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["createTime",{}],expression:"[ 'createTime', {}]"}],attrs:{readOnly:e.disableSubmit}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("c1df"),c=n.n(l),u=n("2dab"),d={components:{JDate:u["default"]},name:"JeecgOrderTicketModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},moment:c.a,format:"YYYY-MM-DD HH:mm:ss",disableSubmit:!1,orderId:"",hiding:!1,confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/test/order/addTicket",edit:"/test/order/editTicket"}}},created:function(){},methods:{add:function(e){e?this.edit({orderId:e},""):this.$message.warning("请选择一条航班数据")},detail:function(e){this.edit(e,"d")},edit:function(e,t){var n=this;"e"==t?(this.hiding=!1,this.disableSubmit=!1):"d"==t?(this.hiding=!1,this.disableSubmit=!0):(this.hiding=!0,this.disableSubmit=!1),this.form.resetFields(),this.orderId=e.orderId,this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){n.form.setFieldsValue(s()(n.model,"ticketCode","tickectDate","orderId","createBy","createTime","updateBy","updateTime"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);s.mainId=e.orderId,Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},f=d,h=n("2877"),p=Object(h["a"])(f,r,i,!1,null,"2627f568",null);t["default"]=p.exports},ab35:function(e,t,n){"use strict";var r=n("1300"),i=n("345d"),o=function(){function e(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Object(i["c"])(e.scale),this.displacement_=e.displacement}return e.prototype.clone=function(){var t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},e.prototype.getOpacity=function(){return this.opacity_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getDisplacement=function(){return this.displacement_},e.prototype.getAnchor=function(){return Object(r["b"])()},e.prototype.getImage=function(e){return Object(r["b"])()},e.prototype.getHitDetectionImage=function(){return Object(r["b"])()},e.prototype.getPixelRatio=function(e){return 1},e.prototype.getImageState=function(){return Object(r["b"])()},e.prototype.getImageSize=function(){return Object(r["b"])()},e.prototype.getHitDetectionImageSize=function(){return Object(r["b"])()},e.prototype.getOrigin=function(){return Object(r["b"])()},e.prototype.getSize=function(){return Object(r["b"])()},e.prototype.setOpacity=function(e){this.opacity_=e},e.prototype.setRotateWithView=function(e){this.rotateWithView_=e},e.prototype.setRotation=function(e){this.rotation_=e},e.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Object(i["c"])(e)},e.prototype.listenImageChange=function(e){Object(r["b"])()},e.prototype.load=function(){Object(r["b"])()},e.prototype.unlistenImageChange=function(e){Object(r["b"])()},e}();t["a"]=o},ab53:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"记录id"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recId",e.validatorRules.recId],expression:"['recId', validatorRules.recId ]"}],attrs:{placeholder:"请输入记录id"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警业务ID"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alarmBizId",{}],expression:"['alarmBizId', {}]"}],attrs:{placeholder:"请输入告警业务ID"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警业务名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alarmBizName",{}],expression:"['alarmBizName', {}]"}],attrs:{placeholder:"请输入告警业务名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警触发值"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["value",{}],expression:"['value', {}]"}],attrs:{placeholder:"请输入告警触发值"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警等级"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["grade",{}],expression:"['grade', {}]"}],attrs:{placeholder:"请输入告警等级"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"告警开始时间"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["startTime",{}],expression:"['startTime', {}]"}],attrs:{placeholder:"请输入告警开始时间"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"烟感编号"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smokeNo",e.validatorRules.smokeNo],expression:"['smokeNo', validatorRules.smokeNo ]"}],attrs:{placeholder:"请输入烟感编号"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["deviceName",{}],expression:"['deviceName', {}]"}],attrs:{placeholder:"请输入设备名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"pointX"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pointX",{}],expression:"['pointX', {}]"}],attrs:{placeholder:"请输入pointX"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"pointY"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pointY",{}],expression:"['pointY', {}]"}],attrs:{placeholder:"请输入pointY"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"最高告警等级:0为正常,其他值都为告警"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alarmState",{}],expression:"['alarmState', {}]"}],attrs:{placeholder:"请输入最高告警等级:0为正常,其他值都为告警"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"第一联系人"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["property",{}],expression:"['property', {}]"}],attrs:{placeholder:"请输入第一联系人"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"设备地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["addr",{}],expression:"['addr', {}]"}],attrs:{placeholder:"请输入设备地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"examineState"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["examineState",{}],expression:"['examineState', {}]"}],attrs:{placeholder:"请输入examineState"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"enableTime"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["enableTime",{}],expression:"['enableTime', {}]"}],attrs:{placeholder:"请输入enableTime"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"本地最近一次更新时间"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["localupdatetime",{}],expression:"['localupdatetime', {}]"}],attrs:{placeholder:"请输入本地最近一次更新时间"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"SmokeAlarmDeviceModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{recId:{rules:[{required:!0,message:"请输入记录id!"}]},smokeNo:{rules:[{required:!0,message:"请输入烟感编号!"}]}},url:{add:"/emergency.base.support.biz.smoke/smokeAlarmDevice/add",edit:"/emergency.base.support.biz.smoke/smokeAlarmDevice/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"recId","alarmBizId","alarmBizName","value","grade","startTime","smokeNo","deviceName","pointX","pointY","alarmState","property","addr","examineState","enableTime","localupdatetime"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"447c6dde",null);t["default"]=d.exports},ab7a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper leftmywidth"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"地区"}},[n("city_child",{attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon},model:{value:e.queryParam.village,callback:function(t){e.$set(e.queryParam,"village",t)},expression:"queryParam.village"}})],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.myQueryParam.name,callback:function(t){e.$set(e.myQueryParam,"name",t)},expression:"myQueryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入名称",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1)],1),n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"区县"}},[n("a-input",{attrs:{placeholder:"请输入区县"},model:{value:e.queryParam.district,callback:function(t){e.$set(e.queryParam,"district",t)},expression:"queryParam.district"}})],1)],1),n("div",{staticClass:"spc-search"},[n("a-button",{staticClass:"anniu1",attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticClass:"anniu2",attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("地图点线面demo")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl,accept:".xls,.xlsx"},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"imgSlot",fn:function(t){return[t?n("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:e.getImgView(t),height:"25px",alt:"图片不存在"}}):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此图片")])]}},{key:"fileSlot",fn:function(t){return[t?n("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(n){return e.uploadFile(t)}}},[e._v("\n          下载\n        ")]):n("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无此文件")])]}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),e.unVerify?n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1):e._e()],1)}}])})],1),n("mapPointQuartLine-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("b65a"),a=n("7f04"),s={name:"MapPointQuartLineList",mixins:[o["a"]],components:{MapPointQuartLineModal:a["default"]},data:function(){return{description:"地图点线面demo管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"点",align:"center",dataIndex:"point"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/map_point_quart_line/mapPointQuartLine/list",delete:"/map_point_quart_line/mapPointQuartLine/delete",deleteBatch:"/map_point_quart_line/mapPointQuartLine/deleteBatch",exportXlsUrl:"/map_point_quart_line/mapPointQuartLine/exportXls",importExcelUrl:"map_point_quart_line/mapPointQuartLine/importExcel"},dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{initDictConfig:function(){}}},l=s,c=(n("ac35"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"a414fff0",null);t["default"]=u.exports},ab8b:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-upload",{attrs:{name:"file",multiple:!0,fileList:e.fileList,"before-upload":e.beforeUpload,remove:e.handleRemove},on:{change:e.handleUpload}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v(" 上传文件 ")],1)],1)},i=[],o=n("2909"),a=n("0fea"),s={props:{fileList:[]},data:function(){return{}},methods:{beforeUpload:function(e){return this.fileStatus=!0,!1},handleUpload:function(e){var t=this;if(this.fileStatus){var n=Object(o["a"])(e.fileList),r=new FormData;r.append("file",n[n.length-1].originFileObj),Object(a["i"])("/template/template/fileup",r,"post").then((function(e){console.log(e),e.result.uid=e.result.filePath,e.result.url1=e.result.filePath,e.result.name=e.result.fileName,delete e.result.fileName,delete e.result.filePath,t.fileList.push(e.result),t.$message.success("上传成功")}))}},handleRemove:function(e){for(var t=this,n=function(n){t.fileList[n].uid==e.url1&&Object(a["i"])("/template/template/filedel",{fileUrl:e.url1},"post").then((function(e){t.fileList.splice(n,1),t.$emit("submit","-1")}))},r=0;r<this.fileList.length;r++)n(r)}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},abb4:function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},abb7:function(e,t,n){"use strict";function r(e,t,n,r){for(var i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function i(e,t,n,r){for(var i=0,o=n.length;i<o;++i)for(var a=n[i],s=0;s<r;++s)e[t++]=a[s];return t}function o(e,t,n,r,o){for(var a=o||[],s=0,l=0,c=n.length;l<c;++l){var u=i(e,t,n[l],r);a[s++]=u,t=u}return a.length=s,a}function a(e,t,n,r,i){for(var a=i||[],s=0,l=0,c=n.length;l<c;++l){var u=o(e,t,n[l],r,a[s]);a[s++]=u,t=u[u.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},abfb:function(e,t,n){"use strict";n("a024")},ac12:function(e,t,n){"use strict";n("2042")},ac29:function(e,t,n){"use strict";var r=n("f623"),i=n("9abc"),o=n("0af5"),a=n("abb7"),s=n("bef8"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(t,n,r){var i=e.call(this)||this;if(void 0!==r&&void 0===n)i.setFlatCoordinates(r,t);else{var o=n||0;i.setCenterAndRadius(t,o,r)}return i}return l(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=e-i[0],a=t-i[1],s=o*o+a*a;if(s<r){if(0===s)for(var l=0;l<this.stride;++l)n[l]=i[l];else{var c=this.getRadius()/Math.sqrt(s);n[0]=i[0]+c*o,n[1]=i[1]+c*a;for(l=2;l<this.stride;++l)n[l]=i[l]}return n.length=this.stride,s}return r},t.prototype.containsXY=function(e,t){var n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(e){var t=this.flatCoordinates,n=t[this.stride]-t[0];return Object(o["k"])(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t},t.prototype.getType=function(){return r["a"].CIRCLE},t.prototype.intersectsExtent=function(e){var t=this.getExtent();if(Object(o["F"])(e,t)){var n=this.getCenter();return e[0]<=n[0]&&e[2]>=n[0]||(e[1]<=n[1]&&e[3]>=n[1]||Object(o["t"])(e,this.intersectsCoordinate.bind(this)))}return!1},t.prototype.setCenter=function(e){var t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(var i=1;i<t;++i)r[t+i]=e[i];this.setFlatCoordinates(this.layout,r),this.changed()},t.prototype.setCenterAndRadius=function(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var r=this.flatCoordinates,i=Object(a["a"])(r,0,e,this.stride);r[i++]=r[0]+t;for(var o=1,s=this.stride;o<s;++o)r[i++]=r[o];r.length=i,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(e,t){},t.prototype.setRadius=function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()},t.prototype.rotate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(s["a"])(n,0,n.length,r,e,t,n)),this.changed()},t.prototype.translate=function(e,t){var n=this.getCenter(),r=this.getStride();this.setCenter(Object(s["d"])(n,0,n.length,r,e,t,n)),this.changed()},t}(i["a"]);c.prototype.transform;var u=c,d=n("cef7"),f=n("01d4"),h=n("4cdf"),p=n("bf62"),m=n("7a09"),g=n("509b"),v=n("0b2d"),y=n("521b"),b=n("9769"),_=n("1c48"),w=n("9f5e"),x=n("bb6c"),S=n("b1a2"),C=n("c560"),E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(t[0]))i.setCoordinates(t,n);else if(void 0!==n&&r)i.setFlatCoordinates(n,t),i.ends_=r;else{for(var o=i.getLayout(),a=t,s=[],l=[],c=0,u=a.length;c<u;++c){var d=a[c];0===c&&(o=d.getLayout()),Object(w["c"])(s,d.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return E(t,e),t.prototype.appendLineString=function(e){this.flatCoordinates?Object(w["c"])(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(o["e"])(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(b["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(b["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))},t.prototype.getCoordinateAtM=function(e,t,n){if(this.layout!=y["a"].XYM&&this.layout!=y["a"].XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==t&&t,i=void 0!==n&&n;return Object(S["c"])(this.flatCoordinates,0,this.ends_,this.stride,e,r,i)},t.prototype.getCoordinates=function(){return Object(x["b"])(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new m["a"](this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[],i=0,o=0,a=t.length;o<a;++o){var s=t[o],l=new m["a"](e.slice(i,s),n);r.push(l),i=s}return r},t.prototype.getFlatMidpoints=function(){for(var e=[],t=this.flatCoordinates,n=0,r=this.ends_,i=this.stride,o=0,a=r.length;o<a;++o){var s=r[o],l=Object(S["a"])(t,n,s,i,.5);Object(w["c"])(e,l),n=s}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(_["b"])(this.flatCoordinates,0,this.ends_,this.stride,e,n,0,r),new t(n,y["a"].XY,r)},t.prototype.getType=function(){return r["a"].MULTI_LINE_STRING},t.prototype.intersectsExtent=function(e){return Object(C["b"])(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(a["c"])(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},t}(i["a"]),O=k,T=n("f403"),I=n("7fc9"),A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(e){function t(t,n){var r=e.call(this)||this;return n&&!Array.isArray(t[0])?r.setFlatCoordinates(n,t):r.setCoordinates(t,n),r}return A(t,e),t.prototype.appendPoint=function(e){this.flatCoordinates?Object(w["c"])(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){if(r<Object(o["e"])(this.getExtent(),e,t))return r;for(var i=this.flatCoordinates,a=this.stride,s=0,l=i.length;s<l;s+=a){var c=Object(I["g"])(e,t,i[s],i[s+1]);if(c<r){r=c;for(var u=0;u<a;++u)n[u]=i[s+u];n.length=a}}return r},t.prototype.getCoordinates=function(){return Object(x["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new T["a"](this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,t=this.layout,n=this.stride,r=[],i=0,o=e.length;i<o;i+=n){var a=new T["a"](e.slice(i,i+n),t);r.push(a)}return r},t.prototype.getType=function(){return r["a"].MULTI_POINT},t.prototype.intersectsExtent=function(e){for(var t=this.flatCoordinates,n=this.stride,r=0,i=t.length;r<i;r+=n){var a=t[r],s=t[r+1];if(Object(o["h"])(e,a,s))return!0}return!1},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,e,this.stride),this.changed()},t}(i["a"]),P=R,M=n("5bc3"),N=n("0a9d"),L=n("4d98"),D=n("b589");function j(e,t,n,r){for(var i=[],a=Object(o["j"])(),s=0,l=n.length;s<l;++s){var c=n[s];a=Object(o["o"])(e,t,c[0],r),i.push((a[0]+a[2])/2,(a[1]+a[3])/2),t=c[c.length-1]}return i}var F=n("25f1"),B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!r&&!Array.isArray(t[0])){for(var o=i.getLayout(),a=t,s=[],l=[],c=0,u=a.length;c<u;++c){var d=a[c];0===c&&(o=d.getLayout());for(var f=s.length,h=d.getEnds(),p=0,m=h.length;p<m;++p)h[p]+=f;Object(w["c"])(s,d.getFlatCoordinates()),l.push(h)}n=o,t=s,r=l}return void 0!==n&&r?(i.setFlatCoordinates(n,t),i.endss_=r):i.setCoordinates(t,n),i}return B(t,e),t.prototype.appendPolygon=function(e){var t;if(this.flatCoordinates){var n=this.flatCoordinates.length;Object(w["c"])(this.flatCoordinates,e.getFlatCoordinates()),t=e.getEnds().slice();for(var r=0,i=t.length;r<i;++r)t[r]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,n=new Array(e),r=0;r<e;++r)n[r]=this.endss_[r].slice();var i=new t(this.flatCoordinates.slice(),this.layout,n);return i.applyProperties(this),i},t.prototype.closestPointXY=function(e,t,n,r){return r<Object(o["e"])(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(b["f"])(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(b["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,n,r))},t.prototype.containsXY=function(e,t){return Object(F["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)},t.prototype.getArea=function(){return Object(D["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),Object(L["d"])(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,Object(x["c"])(t,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=j(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(N["b"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new P(this.getFlatInteriorPoints().slice(),y["a"].XYM)},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;Object(L["b"])(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Object(L["d"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var n=[],r=[];return n.length=Object(_["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),n,0,r),new t(n,y["a"].XY,r)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var n=this.endss_[e-1];t=n[n.length-1]}var r=this.endss_[e].slice(),i=r[r.length-1];if(0!==t)for(var o=0,a=r.length;o<a;++o)r[o]-=t;return new M["a"](this.flatCoordinates.slice(t,i),this.layout,r)},t.prototype.getPolygons=function(){for(var e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[],i=0,o=0,a=n.length;o<a;++o){var s=n[o].slice(),l=s[s.length-1];if(0!==i)for(var c=0,u=s.length;c<u;++c)s[c]-=i;var d=new M["a"](t.slice(i,l),e,s);r.push(d),i=l}return r},t.prototype.getType=function(){return r["a"].MULTI_POLYGON},t.prototype.intersectsExtent=function(e){return Object(C["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var n=Object(a["d"])(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var r=n[n.length-1];this.flatCoordinates.length=0===r.length?0:r[r.length-1]}this.changed()},t}(i["a"]),z=q,U=n("4105"),G=n("3e6b"),V=n("58315"),W=n("57cb"),H=n("06f8"),$=n("6c77"),K=n("256f"),X=n("e269"),Y=n("a568"),J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},Z={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.feature=n,r}return J(t,e),t}(d["a"]),te=function(e){function t(t){var n=this,r=t;r.stopDown||(r.stopDown=W["a"]),n=e.call(this,r)||this,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=re(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===Q.POLYGON?3:2,n.maxPoints_=n.mode_===Q.CIRCLE?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:W["b"];var i=t.geometryFunction;if(!i){var o,a=n.mode_;if(a===Q.CIRCLE)i=function(e,t,n){var r=t||new u([NaN,NaN]),i=Object(K["d"])(e[0],n),o=Object(Y["j"])(i,Object(K["d"])(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o));var a=Object(K["j"])();return a&&r.transform(n,a),r};else a===Q.POINT?o=T["a"]:a===Q.LINE_STRING?o=m["a"]:a===Q.POLYGON&&(o=M["a"]),i=function(e,t,n){return t?a===Q.POLYGON?e[0].length?t.setCoordinates([e[0].concat([e[0][0]])]):t.setCoordinates([]):t.setCoordinates(e):t=new o(e),t}}return n.geometryFunction_=i,n.dragVertexDelay_=void 0!==t.dragVertexDelay?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new G["a"]({source:new V["a"]({useSpatialIndex:!1,wrapX:!!t.wrapX&&t.wrapX}),style:t.style?t.style:ne(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:H["i"],n.freehandCondition_,t.freehand?n.freehandCondition_=H["d"]:n.freehandCondition_=t.freehandCondition?t.freehandCondition:H["k"],n.addEventListener(Object(X["b"])(p["a"].ACTIVE),n.updateState_),n}return J(t,e),t.prototype.setMap=function(t){e.prototype.setMap.call(this,t),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(t){t.originalEvent.type===f["a"].CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==Q.POINT&&this.freehandCondition_(t);var n=t.type===v["a"].POINTERMOVE,r=!0;if(!this.freehand_&&this.lastDragTime_&&t.type===v["a"].POINTERDRAG){var i=Date.now();i-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===v["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t.coordinate),r=!1):this.freehand_&&t.type===v["a"].POINTERDOWN?r=!1:n&&this.getPointerCount()<2?(r=t.type===v["a"].POINTERMOVE,r&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):("mouse"===t.originalEvent.pointerType||t.type===v["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t)):t.type===v["a"].DBLCLICK&&(r=!1),e.prototype.handleEvent.call(this,t)&&r},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new g["a"](v["a"].POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)},t.prototype.handleUpEvent=function(e){var t=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){switch(!0){case!this.finishCoordinate_:if(this.startDrawing_(e.coordinate),this.mode_!==Q.POINT)break;case this.freehand_||this.atFinish_(e.pixel)&&this.finishCondition_(e):this.finishDrawing();break;case!this.freehand_:this.addToDrawing_(e.coordinate);break;default:break}t=!1}else this.freehand_&&this.abortDrawing();return!t&&this.stopClick_&&e.originalEvent.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e)},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,r=[this.finishCoordinate_],i=this.mode_;if(i===Q.POINT)t=!0;else if(i===Q.CIRCLE)t=2===this.sketchCoords_.length;else if(i===Q.LINE_STRING)n=this.sketchCoords_.length>this.minPoints_;else if(i===Q.POLYGON){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,r=[o[0][0],o[0][o[0].length-2]]}if(n)for(var a=this.getMap(),s=0,l=r.length;s<l;s++){var c=r[s],u=a.getPixelFromCoordinate(c),d=e[0]-u[0],f=e[1]-u[1],h=this.freehand_?1:this.snapTolerance_;if(t=Math.sqrt(d*d+f*f)<=h,t){this.finishCoordinate_=c;break}}}return t},t.prototype.createOrUpdateSketchPoint_=function(e){var t=e.coordinate.slice();if(this.sketchPoint_){var n=this.sketchPoint_.getGeometry();n.setCoordinates(t)}else this.sketchPoint_=new h["a"](new T["a"](t)),this.updateSketchFeatures_()},t.prototype.createOrUpdateCustomSketchLine_=function(e){this.sketchLine_||(this.sketchLine_=new h["a"]);var t=e.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new m["a"](t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))},t.prototype.startDrawing_=function(e){var t=this.getMap().getView().getProjection();this.finishCoordinate_=e,this.mode_===Q.POINT?this.sketchCoords_=e.slice():this.mode_===Q.POLYGON?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new h["a"](new m["a"](this.sketchLineCoords_)));var n=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new h["a"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(n),this.updateSketchFeatures_(),this.dispatchEvent(new ee(Z.DRAWSTART,this.sketchFeature_))},t.prototype.modifyDrawing_=function(e){var t,n,i=this.getMap(),o=this.sketchFeature_.getGeometry(),a=i.getView().getProjection();if(this.mode_===Q.POINT?n=this.sketchCoords_:this.mode_===Q.POLYGON?(t=this.sketchCoords_[0],n=t[t.length-1],this.atFinish_(i.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):(t=this.sketchCoords_,n=t[t.length-1]),n[0]=e[0],n[1]=e[1],this.geometryFunction_(this.sketchCoords_,o,a),this.sketchPoint_){var s=this.sketchPoint_.getGeometry();s.setCoordinates(e)}if(o.getType()===r["a"].POLYGON&&this.mode_!==Q.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var l=this.sketchLine_.getGeometry();l.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(e){var t,n,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===Q.LINE_STRING||o===Q.CIRCLE?(this.finishCoordinate_=e.slice(),n=this.sketchCoords_,n.length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),this.geometryFunction_(n,r,i)):o===Q.POLYGON&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(e.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i=this.mode_;if(i===Q.LINE_STRING||i===Q.CIRCLE){if(e=this.sketchCoords_,e.splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();var o=this.finishCoordinate_.slice();e[e.length-1]=o,this.sketchPoint_.setGeometry(new T["a"](o))}this.geometryFunction_(e,t,n),t.getType()===r["a"].POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(i===Q.POLYGON){e=this.sketchCoords_[0],e.splice(-2,1);var a=this.sketchLine_.getGeometry();if(e.length>=2){o=e[e.length-2].slice();e[e.length-1]=o,this.sketchPoint_.setGeometry(new T["a"](o))}a.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}1===e.length&&this.abortDrawing(),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry(),i=this.getMap().getView().getProjection();this.mode_===Q.LINE_STRING?(t.pop(),this.geometryFunction_(t,n,i)):this.mode_===Q.POLYGON&&(t[0].pop(),this.geometryFunction_(t,n,i),t=n.getCoordinates()),this.type_===r["a"].MULTI_POINT?e.setGeometry(new P([t])):this.type_===r["a"].MULTI_LINE_STRING?e.setGeometry(new O([t])):this.type_===r["a"].MULTI_POLYGON&&e.setGeometry(new z([t])),this.dispatchEvent(new ee(Z.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e},t.prototype.abortDrawing=function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new ee(Z.DRAWABORT,e))},t.prototype.appendCoordinates=function(e){var t,n=this.mode_,r=!this.sketchFeature_;if(r&&this.startDrawing_(e[0]),n===Q.LINE_STRING||n===Q.CIRCLE)t=this.sketchCoords_;else{if(n!==Q.POLYGON)return;t=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}r&&t.shift(),t.pop();for(var i=0;i<e.length;i++)this.addToDrawing_(e[i]);var o=e[e.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},t.prototype.extend=function(e){var t=e.getGeometry(),n=t;this.sketchFeature_=e,this.sketchCoords_=n.getCoordinates();var r=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=r.slice(),this.sketchCoords_.push(r.slice()),this.sketchPoint_=new h["a"](new T["a"](r)),this.updateSketchFeatures_(),this.dispatchEvent(new ee(Z.DRAWSTART,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)},t}(U["b"]);function ne(){var e=Object($["b"])();return function(t,n){return e[t.getGeometry().getType()]}}function re(e){var t;return e===r["a"].POINT||e===r["a"].MULTI_POINT?t=Q.POINT:e===r["a"].LINE_STRING||e===r["a"].MULTI_LINE_STRING?t=Q.LINE_STRING:e===r["a"].POLYGON||e===r["a"].MULTI_POLYGON?t=Q.POLYGON:e===r["a"].CIRCLE&&(t=Q.CIRCLE),t}t["a"]=te},ac35:function(e,t,n){"use strict";n("89b7")},acab:function(e,t,n){"use strict";n("ad26")},acc1:function(e,t,n){"use strict";t["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},acfa:function(e,t,n){var r=n("9c2cc"),i=n("4587"),o=n("8e4c"),a=n("5b1a"),s=n("4b0b"),l=n("5c5b"),c=n("50ec"),u=n("791c"),d=i("Reflect","construct"),f=u((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),h=!u((function(){d((function(){}))})),p=f||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!f)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var i=n.prototype,u=l(s(i)?i:Object.prototype),p=Function.apply.call(e,u,t);return s(p)?p:u}})},ad26:function(e,t,n){},ad79:function(e,t,n){},add3:function(e){e.exports=JSON.parse('[{"id":"SalesJan2009","fileName":"SalesJan2009","xField":"Longitude","yField":"Latitude","type":"POINT"},{"id":"Sacramentorealestatetransactions","fileName":"Ealestate transactions","xField":"longitude","yField":"latitude","type":"POINT"},{"id":"BeijingResidentialDistrict","fileName":"北京市住宅小区","xField":"SmX","yField":"SmY","type":"POINT"},{"id":"GlobalRecordOfOver7Earthquakes","fileName":"全球历史7级以上地震记录","xField":"经度","yField":"纬度","type":"POINT"},{"id":"ChinaRecordOfOver6Earthquakes","fileName":"中国历史6级以上地震记录","xField":"经度","yField":"纬度","type":"POINT"},{"id":"ChinaMeteorologicalObservationStation","fileName":"中国气象观测站","xField":"经度","yField":"纬度","type":"POINT"},{"id":"BeijingSubwayLine","fileName":"北京市地铁交通线路","type":"LINE"},{"id":"ChinaEarthquakeIntensityZone","fileName":"中国地震烈度区划面","type":"POLYGON"}]')},ae14:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"dragDiv",staticClass:"drag"},[n("div",{staticClass:"drag_bg"}),n("div",{staticClass:"drag_text"},[e._v(e._s(e.confirmWords))]),n("div",{ref:"moveDiv",staticClass:"handler handler_bg",class:{handler_ok_bg:e.confirmSuccess},staticStyle:{border:"0.5px solid #fff",height:"34px",position:"absolute",top:"0px",left:"0px"},on:{mousedown:function(t){return e.mousedownFn(t)}}})])},i=[],o={name:"JSlider",data:function(){return{beginClientX:0,mouseMoveStata:!1,maxwidth:"",confirmWords:"拖动滑块验证",confirmSuccess:!1}},methods:{isSuccess:function(){return this.confirmSuccess},mousedownFn:function(e){this.confirmSuccess||(e.preventDefault&&e.preventDefault(),this.mouseMoveStata=!0,this.beginClientX=e.clientX)},successFunction:function(){this.confirmSuccess=!0,this.confirmWords="验证通过",window.addEventListener?(document.getElementsByTagName("html")[0].removeEventListener("mousemove",this.mouseMoveFn),document.getElementsByTagName("html")[0].removeEventListener("mouseup",this.moseUpFn)):document.getElementsByTagName("html")[0].removeEventListener("mouseup",(function(){})),document.getElementsByClassName("drag_text")[0].style.color="#fff",document.getElementsByClassName("handler")[0].style.left=this.maxwidth+"px",document.getElementsByClassName("drag_bg")[0].style.width=this.maxwidth+"px",this.$emit("onSuccess",!0)},mouseMoveFn:function(e){if(this.mouseMoveStata){var t=e.clientX-this.beginClientX;t>0&&t<=this.maxwidth?(document.getElementsByClassName("handler")[0].style.left=t+"px",document.getElementsByClassName("drag_bg")[0].style.width=t+"px"):t>this.maxwidth&&this.successFunction()}},moseUpFn:function(e){this.mouseMoveStata=!1;var t=e.clientX-this.beginClientX;t<this.maxwidth&&(document.getElementsByClassName("handler")[0].style.left="0px",document.getElementsByClassName("drag_bg")[0].style.width="0px")}},mounted:function(){this.maxwidth=this.$refs.dragDiv.clientWidth-this.$refs.moveDiv.clientWidth,document.getElementsByTagName("html")[0].addEventListener("mousemove",this.mouseMoveFn),document.getElementsByTagName("html")[0].addEventListener("mouseup",this.moseUpFn)}},a=o,s=(n("0d7e"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"fe7c1600",null);t["default"]=l.exports},ae57:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"类型"}},[n("a-input",{attrs:{placeholder:"请输入类型"},model:{value:e.queryParam.datatype,callback:function(t){e.$set(e.queryParam,"datatype",t)},expression:"queryParam.datatype"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"地区"}},[n("city_child",{attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon},model:{value:e.queryParam.village,callback:function(t){e.$set(e.queryParam,"village",t)},expression:"queryParam.village"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")])],1)])],1)],1)],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.author(r)}}},[e._v("授权")])],1)}}])})],1),n("wlgzVideo-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("video-menu",{ref:"videoForm",on:{ok:e.modalFormOk}})],1)},i=[],o=(n("28a5"),n("db99")),a=n("b65a"),s=n("d9be"),l=n("c0fa"),c=n("0fea"),u={name:"WlgzVideoList",mixins:[a["a"]],components:{WlgzVideoModal:o["default"],city_child:s["default"],VideoMenu:l["default"]},data:function(){return{description:"视频监控管理页面",isorter:{column:"smid",order:"desc"},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"名称",align:"center",dataIndex:"name"},{title:"类型",align:"center",dataIndex:"datatype"},{title:"父名称",align:"center",dataIndex:"parentsName"},{title:"更新人",align:"center",dataIndex:"username"},{title:"更新时间",align:"center",dataIndex:"updatatime"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],showDefaultParams:[],url:{list:"/wlgz_video/wlgzVideo/list"},treeData:[]}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},created:function(){var e=this;Object(c["d"])("/wlgz_video/wlgzVideo/getWlgzVideoTree",{}).then((function(t){t.success&&(e.treeData=t.result)}))},methods:{getMsgFormSon:function(e){this.queryParam.village=e.village,this.queryParam.city=e.city,this.queryParam.street=e.street,this.queryParam.district=e.district},author:function(e){this.$refs.videoForm.label=e.lable,this.$refs.videoForm.wlgzId=e.smid,this.$refs.videoForm.treeData=this.treeData,""!=this.label&&(this.$refs.videoForm.checkedKeys=e.lable.split(",")),this.$refs.videoForm.open()}},watch:{"queryParam.village":{handler:function(e,t){void 0==e&&(this.showDefaultParams=[])},deep:!0}}},d=u,f=(n("2710"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"51934f74",null);t["default"]=h.exports},aef6:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="endsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),l=void 0===n?r:Math.min(i(n),r),c=String(e);return s?s.call(t,c,l):t.slice(l-c.length,l)===c}})},af5c:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{"margin-top":"-70px"},attrs:{width:e.modalWidth,visible:e.visible,title:e.title,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleSubmit,cancel:e.close}},[n("a-row",{staticStyle:{"background-color":"#ececec",padding:"10px",margin:"-10px"},attrs:{gutter:10}},[n("a-col",{attrs:{md:24,sm:30}},[n("a-card",{attrs:{bordered:!1}},[e._v("\n        值班人员名称:\n        "),n("a-input",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入值班人员名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}}),n("a-button",{staticStyle:{"margin-left":"20px"},on:{click:function(t){return e.onSearch()}}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{icon:"redo"},on:{click:function(t){return e.searchReset(1)}}},[e._v("重置")]),n("a-table",{ref:"table",attrs:{scroll:e.scrollTrigger,size:"middle",rowKey:"id",bordered:"",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,selectable:!1,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:"radio"}},on:{change:e.handleTableChange}})],1)],1)],1)],1)},i=[],o=(n("ac6a"),n("456d"),n("7f7f"),n("ca00")),a=n("4ec3"),s=n("89f2"),l=(n("b65a"),n("0fea"),{name:"JSelectDutySingleModel",components:{},props:["modalWidth"],data:function(){var e=this;return{queryParam:{username:""},columns:[{title:"",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"姓名",align:"center",dataIndex:"name"},{title:"人员类型",align:"center",dataIndex:"dutyType",customRender:function(t){return Object(s["b"])(e.dictOptions["dutyType"],t+"")}},{title:"职务",align:"center",dataIndex:"post"}],scrollTrigger:{},dataSource:[],selectedKeys:[],userNameArr:[],departName:"",userRolesMap:{},title:"选择值班值守人员",ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},selectedRowKeys:[],selectedRows:[],departTree:[],visible:!1,form:this.$form.createForm(this),dictOptions:{}}},created:function(){this.resetScreenSize(),this.loadData(1),this.initDictConfig()},methods:{initDictConfig:function(){var e=this;Object(s["c"])("duty_type").then((function(t){t.success&&e.$set(e.dictOptions,"dutyType",t.result)}))},loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["eb"])(n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total)}))},resetScreenSize:function(){var e=document.body.clientWidth;this.scrollTrigger=e<500?{x:800}:{}},showModal:function(){this.visible=!0,this.form.resetFields()},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return null!=e.name&&""!=e.name&&(e.name=e.name+"*"),e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},searchReset:function(e){var t=this;0!==e&&(t.queryParam={},t.loadData(1)),t.selectedRowKeys=[],t.userNameArr=[],t.selectedKeys=[]},close:function(){this.searchReset(0),this.visible=!1},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"===n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleSubmit:function(){for(var e=this,t=0,n=this.selectedRowKeys.length;t<n;t++)this.getUserNames(this.selectedRowKeys[t]);e.$emit("ok",e.userNameArr[0]),e.close()},getUserNames:function(e){for(var t=this.dataSource,n=0,r=t.length;n<r;n++)e===t[n].id&&this.userNameArr.push(t[n].name+"|"+e)},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onSearch:function(){this.loadData(1)},modalFormOk:function(){this.loadData()}}}),c=l,u=(n("eaba"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"a325f076",null);t["default"]=d.exports},af98:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},b020:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-tabs",[n("a-tab-pane",{key:"1",attrs:{tab:"普通列表"}},[n("default-table")],1),n("a-tab-pane",{key:"2",attrs:{tab:"只读列表"}},[n("read-only-table")],1),n("a-tab-pane",{key:"3",attrs:{tab:"三级联动"}},[n("three-linkage")],1)],1)],1)},i=[],o=n("ff3c"),a=n("9ba5"),s=n("01fe"),l={name:"JeecgEditableTableExample",components:{DefaultTable:o["default"],ReadOnlyTable:a["default"],ThreeLinkage:s["default"]},data:function(){return{}},methods:{}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"7e88b5ec",null);t["default"]=d.exports},b02a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[e._v("Redis终端")])])}],o={name:"RedisTerminal"},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},b046:function(e,t,n){"use strict";n("1424")},b098:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tree-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",labelInValue:"",disabled:e.disabled,dropdownStyle:{maxHeight:"400px",overflow:"auto"},placeholder:e.placeholder,loadData:e.asyncLoadTreeData,value:e.treeValue,treeData:e.treeData},on:{change:e.onChange,search:e.onSearch}})},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("2909")),a=(n("28a5"),n("0fea")),s={name:"JTreeSelect",props:{value:{type:String,required:!1},placeholder:{type:String,default:"请选择",required:!1},dict:{type:String,default:"",required:!1},pidField:{type:String,default:"pid",required:!1},pidValue:{type:String,default:"0",required:!1},disabled:{type:Boolean,default:!1,required:!1},hasChildField:{type:String,default:"",required:!1}},data:function(){return{treeValue:"",treeData:[],url:"/sys/dict/loadTreeData",view:"/sys/dict/loadDictItem/",tableName:"",text:"",code:""}},watch:{value:function(){this.loadItemByCode()},dict:function(){this.initDictInfo(),this.loadRoot()}},created:function(){this.initDictInfo(),this.loadRoot(),this.loadItemByCode()},methods:{loadItemByCode:function(){var e=this;this.value&&"0"!=this.value?Object(a["d"])("".concat(this.view).concat(this.dict),{key:this.value}).then((function(t){t.success&&(e.treeValue={key:e.value,value:e.value,label:t.result})})):this.treeValue=""},initDictInfo:function(){var e=this.dict.split(",");this.tableName=e[0],this.text=e[1],this.code=e[2]},asyncLoadTreeData:function(e){var t=this;return new Promise((function(n){if(e.$vnode.children)n();else{var r=e.$vnode.key,i={pid:r,tableName:t.tableName,text:t.text,code:t.code,pidField:t.pidField,hasChildField:t.hasChildField};Object(a["d"])(t.url,i).then((function(e){if(e.success){var i=!0,a=!1,s=void 0;try{for(var l,c=e.result[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;u.value=u.key,0==u.leaf?u.isLeaf=!1:1==u.leaf&&(u.isLeaf=!0)}}catch(d){a=!0,s=d}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}t.addChildren(r,e.result,t.treeData),t.treeData=Object(o["a"])(t.treeData)}n()}))}}))},addChildren:function(e,t,n){if(n&&n.length>0){var r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.key==e){t&&0!=t.length?l.children=t:l.isLeaf=!0;break}this.addChildren(e,t,l.children)}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}},loadRoot:function(){var e=this,t={pid:this.pidValue,tableName:this.tableName,text:this.text,code:this.code,pidField:this.pidField,hasChildField:this.hasChildField};Object(a["d"])(this.url,t).then((function(t){if(t.success&&t.result){var n=!0,r=!1,i=void 0;try{for(var a,s=t.result[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;l.value=l.key,0==l.leaf?l.isLeaf=!1:1==l.leaf&&(l.isLeaf=!0)}}catch(c){r=!0,i=c}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}e.treeData=Object(o["a"])(t.result)}else console.log("数根节点查询结果-else",t)}))},onChange:function(e){e?(this.$emit("change",e.value),this.treeValue=e):(this.$emit("change",""),this.treeValue="")},onSearch:function(e){console.log(e)},getCurrTreeData:function(){return this.treeData}},model:{prop:"value",event:"change"}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},b0cd:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:"选择部门",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[n("a-spin",{attrs:{tip:"Loading...",spinning:!1}},[n("a-input-search",{staticStyle:{"margin-bottom":"1px"},attrs:{placeholder:"请输入部门名称按回车进行搜索"},on:{search:e.onSearch}}),n("a-tree",{attrs:{checkable:"",treeData:e.treeData,checkStrictly:!0,autoExpandParent:e.autoExpandParent,expandedKeys:e.expandedKeys,checkedKeys:e.checkedKeys},on:{check:e.onCheck,select:e.onSelect,expand:e.onExpand},scopedSlots:e._u([{key:"title",fn:function(t){var r=t.title;return[r.indexOf(e.searchValue)>-1?n("span",[e._v("\n          "+e._s(r.substr(0,r.indexOf(e.searchValue)))+"\n          "),n("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.searchValue))]),e._v("\n          "+e._s(r.substr(r.indexOf(e.searchValue)+e.searchValue.length))+"\n        ")]):n("span",[e._v(e._s(r))])]}}])})],1)],1)},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("2909")),a=(n("28a5"),n("4ec3")),s={name:"JSelectDepartModal",props:["modalWidth","multi","rootOpened","departId"],data:function(){return{visible:!1,confirmLoading:!1,treeData:[],autoExpandParent:!0,expandedKeys:[],dataList:[],checkedKeys:[],checkedRows:[],searchValue:""}},created:function(){this.loadDepart()},watch:{departId:function(){this.initDepartComponent()},visible:{handler:function(){this.departId?(this.checkedKeys=this.departId.split(","),console.log("this.departId",this.departId)):this.checkedKeys=[]}}},methods:{show:function(){this.visible=!0,this.checkedRows=[],this.checkedKeys=[],console.log("this.multi",this.multi)},loadDepart:function(){var e=this;Object(a["L"])().then((function(t){if(t.success){var n=Object(o["a"])(t.result);e.reWriterWithSlot(n),e.treeData=n,e.initDepartComponent(),e.rootOpened&&e.initExpandedKeys(t.result)}}))},initDepartComponent:function(){var e="";if(this.departId){var t=this.departId,n=!0,r=!1,i=void 0;try{for(var o,a=this.dataList[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.indexOf(s.key)>=0&&(e+=","+s.title)}}catch(l){r=!0,i=l}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}e&&(e=e.substring(1))}this.$emit("initComp",e)},reWriterWithSlot:function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(a.children&&a.children.length>0){this.reWriterWithSlot(a.children);var s=Object.assign({},a);s.children={},this.dataList.push(s)}else this.dataList.push(a),a.scopedSlots={title:"title"}}}catch(l){n=!0,r=l}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}},initExpandedKeys:function(e){if(e&&e.length>0){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;s.children&&s.children.length>0&&t.push(s.id)}}catch(l){r=!0,i=l}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}this.expandedKeys=[].concat(t)}else this.expandedKeys=[]},onCheck:function(e,t){var n=this;if(this.multi)this.checkedKeys=e.checked,this.checkedRows.push(t.node.dataRef);else{var r=e.checked.filter((function(e){return n.checkedKeys.indexOf(e)<0}));this.checkedKeys=Object(o["a"])(r),this.checkedRows=[t.node.dataRef]}},onSelect:function(e,t){console.log(e);var n=[];if(n.push(e[0]),this.checkedKeys&&0!=this.checkedKeys.length&&this.multi){var r,i=t.node.dataRef.key;if(this.checkedKeys.indexOf(i)>=0)this.checkedKeys=this.checkedKeys.filter((function(e){return e!=i})),this.checkedRows=this.checkedRows.filter((function(e){return e.key!=i}));else this.checkedRows.push(t.node.dataRef),(r=this.checkedKeys).push.apply(r,n)}else this.checkedKeys=[].concat(n),this.checkedRows=[t.node.dataRef]},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},handleSubmit:function(){this.checkedKeys&&0!=this.checkedKeys.length?this.$emit("ok",this.checkedRows,this.checkedKeys.join(",")):this.$emit("ok",""),this.handleClear()},handleCancel:function(){this.handleClear()},handleClear:function(){this.visible=!1,this.checkedKeys=[]},getParentKey:function(e,t){for(var n,r=0;r<t.length;r++){var i=t[r];i.children&&(i.children.some((function(t){return t.key===e}))?n=i.key:this.getParentKey(e,i.children)&&(n=this.getParentKey(e,i.children)))}return n},onSearch:function(e){var t=this,n=this.dataList.map((function(n){return n.title.indexOf(e)>-1?t.getParentKey(n.key,t.treeData):null})).filter((function(e,t,n){return e&&n.indexOf(e)===t}));Object.assign(this,{expandedKeys:n,searchValue:e,autoExpandParent:!0})}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"9b701606",null);t["default"]=u.exports},b0d2:function(e,t,n){var r=n("e207"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},b177:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree",{staticStyle:{display:"inline-block",width:"15%","background-color":"#fff","margin-right":"10px"},attrs:{treeData:e.treeData,expandedKeys:e.expandedKeys},on:{expand:e.onExpand,select:e.onSelect}},[n("a-icon",{attrs:{slot:"meh",type:"smile-o"},slot:"meh"})],1),n("div",{staticStyle:{width:"100%"}},[n("div",{staticClass:"componentName",attrs:{id:"componentName"}},[e._v(e._s(e.componentName))]),n(e.currentTabComponent,{tag:"component",staticClass:"componentMain"})],1)],1)},i=[],o=n("0fea"),a=[],s={data:function(){return{expandedKeys:[],autoExpandParent:!0,checkedKeys:["0-0-0"],selectedKeys:[],treeData:a,url:{get:"/sys/category/getTreeByDept"},currentTabComponent:{},componentName:""}},beforeMount:function(){this.getOption()},watch:{checkedKeys:function(e){console.log("onCheck",e)}},methods:{initFirst:function(e){for(var t=0;t<e.length;t++)if(null!=e[t].slots.title&&""!=e[t].slots.title){var n={};return n.url=e[t].slots.title,n.title=e[t].title,n}return this.initFirst(e[0].children)},getOption:function(){var e=this,t={param:"安全风险源"};Object(o["d"])(this.url.get,t).then((function(t){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);e.treeData=t.data;var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return n("2a68")("./views"+i.url)},e.componentName=i.title}))},onExpand:function(e){console.log("onExpand",e),this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){console.log("onCheck",e),this.checkedKeys=e},onSelect:function(e,t){this.selectedKeys=e;var r=t.selectedNodes[0].data.props.dataRef.slots.title,i=t.selectedNodes[0].data.props.title;null!=r&&void 0!=r&&""!=r&&(this.componentName=i,this.currentTabComponent=function(){return n("2a68")("./views"+r)})}}},l=s,c=(n("347c"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},b1a2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n("9f5e"),i=n("7fc9");function o(e,t,n,o,a,s,l){var c,u,d=(n-t)/o;if(1===d)c=t;else if(2===d)c=t,u=a;else if(0!==d){for(var f=e[t],h=e[t+1],p=0,m=[0],g=t+o;g<n;g+=o){var v=e[g],y=e[g+1];p+=Math.sqrt((v-f)*(v-f)+(y-h)*(y-h)),m.push(p),f=v,h=y}var b=a*p,_=Object(r["a"])(m,b);_<0?(u=(b-m[-_-2])/(m[-_-1]-m[-_-2]),c=t+(-_-2)*o):c=t+_*o}var w=l>1?l:2,x=s||new Array(w);for(g=0;g<w;++g)x[g]=void 0===c?NaN:void 0===u?e[c+g]:Object(i["c"])(e[c+g],e[c+o+g],u);return x}function a(e,t,n,r,o,a){if(n==t)return null;var s;if(o<e[t+r-1])return a?(s=e.slice(t,t+r),s[r-1]=o,s):null;if(e[n-1]<o)return a?(s=e.slice(n-r,n),s[r-1]=o,s):null;if(o==e[t+r-1])return e.slice(t,t+r);var l=t/r,c=n/r;while(l<c){var u=l+c>>1;o<e[(u+1)*r-1]?c=u:l=u+1}var d=e[l*r-1];if(o==d)return e.slice((l-1)*r,(l-1)*r+r);var f=e[(l+1)*r-1],h=(o-d)/(f-d);s=[];for(var p=0;p<r-1;++p)s.push(Object(i["c"])(e[(l-1)*r+p],e[l*r+p],h));return s.push(o),s}function s(e,t,n,r,i,o,s){if(s)return a(e,t,n[n.length-1],r,i,o);var l;if(i<e[r-1])return o?(l=e.slice(0,r),l[r-1]=i,l):null;if(e[e.length-1]<i)return o?(l=e.slice(e.length-r),l[r-1]=i,l):null;for(var c=0,u=n.length;c<u;++c){var d=n[c];if(t!=d){if(i<e[t+r-1])return null;if(i<=e[d-1])return a(e,t,d,r,i,!1);t=d}}return null}},b228:function(e,t,n){"use strict";var r=n("fbee"),i=n("2ace"),o=n("9866"),a=n("5ab0"),s=n("9ba1"),l=n("6daf"),c=n("022a"),u=n("9acd"),d=n("791c"),f=n("5c5b"),h=n("42b3").f,p=n("7caa").f,m=n("16546").f,g=n("4578").trim,v="Number",y=i[v],b=y.prototype,_=l(f(b))==v,w=function(e){var t,n,r,i,o,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=g(c),t=c.charCodeAt(0),43===t||45===t){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=c.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>i)return NaN;return parseInt(o,r)}return+c};if(o(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(_?d((function(){b.valueOf.call(n)})):l(n)!=v)?c(new y(w(t)),n,S):w(t)},C=r?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),E=0;C.length>E;E++)s(y,x=C[E])&&!s(S,x)&&m(S,x,p(y,x));S.prototype=b,b.constructor=S,a(i,v,S)}},b2b7:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{height:"100%"},attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline",form:e.form}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"性别"}},[n("j-dict-select-tag",{attrs:{title:"性别",dictCode:"sex"},model:{value:e.formData.sex,callback:function(t){e.$set(e.formData,"sex",t)},expression:"formData.sex"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.sex))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"字典表下拉"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择用户",dictCode:"sys_user,realname,id"},model:{value:e.formData.user,callback:function(t){e.$set(e.formData,"user",t)},expression:"formData.user"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.user))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"字典表下拉(带条件)"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择用户",dictCode:"sys_user,realname,id,username!='admin' order by create_time"},model:{value:e.formData.user2,callback:function(t){e.$set(e.formData,"user2",t)},expression:"formData.user2"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.user2))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择部门"}},[n("j-select-depart",{directives:[{name:"decorator",rawName:"v-decorator",value:["departId"],expression:"['departId']"}],attrs:{"trigger-change":!0}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的部门ID(v-decorator):"+e._s(e.getDepartIdValue()))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择部门"}},[n("j-select-depart",{attrs:{multi:!0},model:{value:e.departId,callback:function(t){e.departId=t},expression:"departId"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的部门ID(v-model):"+e._s(e.departId))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择用户"}},[n("j-select-user-by-dep",{model:{value:e.userRealName,callback:function(t){e.userRealName=t},expression:"userRealName"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的用户(v-model):"+e._s(e.userRealName))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择用户"}},[n("j-select-multi-user",{model:{value:e.multiUser,callback:function(t){e.multiUser=t},expression:"multiUser"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的用户(v-model):"+e._s(e.multiUser))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"多选组合"}},[n("j-checkbox",{attrs:{options:e.jcheckbox.options},model:{value:e.jcheckbox.values,callback:function(t){e.$set(e.jcheckbox,"values",t)},expression:"jcheckbox.values"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("多选组合(v-model):"+e._s(e.jcheckbox.values))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{staticStyle:{"min-height":"120px"},attrs:{label:"代码输入框"}},[n("j-code-editor",{staticStyle:{"min-height":"100px"},attrs:{language:"javascript",fullScreen:!0},model:{value:e.jcodedditor.value,callback:function(t){e.$set(e.jcodedditor,"value",t)},expression:"jcodedditor.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("代码输入框(v-model):"+e._s(e.jcodedditor.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"日期选择框"}},[n("j-date",{attrs:{showTime:!0,dateFormat:"YYYY-MM-DD HH:mm:ss"},model:{value:e.jdate.value,callback:function(t){e.$set(e.jdate,"value",t)},expression:"jdate.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("日期选择框(v-model):"+e._s(e.jdate.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{staticStyle:{"min-height":"300px"},attrs:{label:"富文本编辑器"}},[n("j-editor",{model:{value:e.jeditor.value,callback:function(t){e.$set(e.jeditor,"value",t)},expression:"jeditor.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("富文本编辑器(v-model):"+e._s(e.jeditor.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"过长剪切"}},[n("j-ellipsis",{attrs:{value:e.jellipsis.value,length:30}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("过长剪切:"+e._s(e.jellipsis.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"验证码"}},[n("j-graphic-code",{on:{success:e.generateCode}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("验证码:"+e._s(e.jgraphicCode.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"滑块验证码"}},[n("j-slider",{on:{onSuccess:e.handleJSliderSuccess}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("滑块验证码验证通过:"+e._s(e.jslider.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"多选下拉框"}},[n("j-select-multiple",{attrs:{options:e.jselectMultiple.options},model:{value:e.jselectMultiple.value,callback:function(t){e.$set(e.jselectMultiple,"value",t)},expression:"jselectMultiple.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("多选下拉框(v-model):"+e._s(e.jselectMultiple.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",[n("a-form-item",{attrs:{label:"最大化弹窗"}},[n("a-button",{on:{click:function(){return e.modal.visible=!0}}},[e._v("最大化弹窗")])],1),n("a-modal",{style:e.modal.style,attrs:{visible:e.modal.visible,width:e.modal.width},on:{ok:function(){return e.modal.visible=!1},cancel:function(){return e.modal.visible=!1}}},[n("template",{slot:"title"},[n("div",{staticStyle:{width:"100%",height:"20px","padding-right":"32px"}},[n("div",{staticStyle:{float:"left"}},[e._v(e._s(e.modal.title))]),n("div",{staticStyle:{float:"right"}},[n("a-button",{staticStyle:{width:"56px",height:"100%",border:"0"},attrs:{icon:"fullscreen"},on:{click:e.handleClickToggleFullScreen}})],1)])]),e._l(30,(function(t,r){return[n("p",{key:r},[e._v("这是主体内容,高度是自适应的")])]}))],2)],1)],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"树字典"}},[n("j-tree-dict",{attrs:{parentCode:"B01"}})],1)],1),n("a-col",{attrs:{span:12}})],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"cron表达式"}},[n("j-cron",{directives:[{name:"decorator",rawName:"v-decorator",value:["cronExpression",{initialValue:"0/1 * * * * ?"}],expression:"['cronExpression', {'initialValue':'0/1 * * * * ?'}]"}],ref:"innerVueCron",on:{change:e.setCorn}})],1)],1)],1)],1)],1)])},i=[],o=(n("7f7f"),n("7b16")),a=n("fe54"),s=n("c14a"),l=n("0f9d"),c=n("a726"),u=n("a876"),d=n("2dab"),f=n("a061"),h=n("d579"),p=n("4201"),m=n("ae14"),g=n("13d2"),v=n("4165"),y=n("1e29"),b={name:"SelectDemo",components:{JTreeDict:v["default"],JDictSelectTag:o["default"],JSelectDepart:a["default"],JSelectUserByDep:s["default"],JSelectMultiUser:l["default"],JCheckbox:c["default"],JCodeEditor:u["default"],JDate:d["default"],JEditor:f["default"],JEllipsis:h["default"],JGraphicCode:p["default"],JSlider:m["default"],JSelectMultiple:g["default"],JCron:y["default"]},data:function(){return{selectList:[],selectedDepUsers:"",formData:{},form:this.$form.createForm(this),departId:"4f1765520d6346f9bd9c79e2479e5b12,57197590443c44f083d42ae24ef26a2c",userRealName:"",multiUser:"",jcheckbox:{values:"spring,jeecgboot",options:[{label:"Jeecg",value:"jeecg"},{label:"Jeecg-Boot",value:"jeecgboot"},{label:"Spring",value:"spring",disabled:!0},{label:"MyBaits",value:"mybatis"}]},jcodedditor:{value:"function sayHi(word) {\n  alert(word)\n}\nsayHi('hello, world!')"},jdate:{value:"2019-5-10 15:33:06"},jeditor:{value:'<h2 style="text-align: center;">富文本编辑器</h2> <p>这里是富文本编辑器。</p>'},jellipsis:{value:"这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。"},jgraphicCode:{value:""},jslider:{value:!1},jselectMultiple:{options:[{text:"字符串",value:"String"},{text:"整数型",value:"Integer"},{text:"浮点型",value:"Double"},{text:"布尔型",value:"Boolean"}],value:"Integer,Boolean"},modal:{title:"这里是标题",visible:!1,width:"100%",style:{top:"20px"},fullScreen:!0},cron:""}},computed:{nameList:function(){for(var e=[],t=0;t<this.selectList.length;t++)e.push(this.selectList[t].name);return e}},methods:{handleChange:function(){},getDepartIdValue:function(){return this.form.getFieldValue("departId")},selectOK:function(e){this.selectList=e},handleSelect:function(){this.$refs.selectDemoModal.add()},selectReset:function(){this.selectList=[]},onSearchDepUser:function(){this.$refs.JSearchUserByDep.showModal(),this.selectedDepUsers="",this.$refs.JSearchUserByDep.title="根据部门查询用户"},onSearchDepUserCallBack:function(e){this.selectedDepUsers=e},generateCode:function(e){this.jgraphicCode.value=e.toLowerCase()},handleJSliderSuccess:function(e){this.jslider.value=e},handleClickToggleFullScreen:function(){var e=!this.modal.fullScreen;e?(this.modal.width="100%",this.modal.style.top="20px"):(this.modal.width="1200px",this.modal.style.top="50px"),this.modal.fullScreen=e},setCorn:function(e){var t=this;this.$nextTick((function(){t.form.cronExpression=e}))}}},_=b,w=(n("293b"),n("2877")),x=Object(w["a"])(_,r,i,!1,null,"44e42664",null);t["default"]=x.exports},b2da:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单号"}},[n("a-input",{attrs:{placeholder:"请输入订单号"},model:{value:e.queryParam.orderCode,callback:function(t){e.$set(e.queryParam,"orderCode",t)},expression:"queryParam.orderCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"订单类型"}},[n("a-select",{attrs:{placeholder:"请输入订单类型"},model:{value:e.queryParam.ctype,callback:function(t){e.$set(e.queryParam,"ctype",t)},expression:"queryParam.ctype"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),n("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),n("span",[e._v("已选择")]),n("a",{staticStyle:{"font-weight":"600"}},[e._v("\n        "+e._s(e.selectedRowKeys.length)+"\n      ")]),n("span",[e._v("项")]),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("jeecg-order-modal-for-j-editable-table",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("b65a"),a=n("b8ad3"),s={name:"JeecgOrderMainListForJEditableTable",mixins:[o["a"]],components:{JeecgOrderModalForJEditableTable:a["default"]},data:function(){return{description:"订单管理页面",url:{list:"/test/jeecgOrderMain/list",delete:"/test/jeecgOrderMain/delete",deleteBatch:"/test/jeecgOrderMain/deleteBatch"},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"订单号",align:"center",dataIndex:"orderCode"},{title:"订单类型",align:"center",dataIndex:"ctype",customRender:function(e){var t="";return"1"===e?t="国内订单":"2"===e&&(t="国际订单"),t}},{title:"订单日期",align:"center",dataIndex:"orderDate"},{title:"订单金额",align:"center",dataIndex:"orderMoney"},{title:"订单备注",align:"center",dataIndex:"content"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}]}},methods:{initDictConfig:function(){}}},l=s,c=(n("e31a"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"1c6adbea",null);t["default"]=u.exports},b2fc:function(e,t,n){"use strict";var r=n("183a"),i=n("01d4"),o=n("f623"),a=n("4105"),s=n("4a7d"),l=n("a43f"),c=n("57cb"),u=n("0af5"),d=n("a568"),f=n("5bc3"),h=n("256f"),p=n("1300"),m=n("38f3"),g=n("1e8d"),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function y(e){return e.feature?e.feature:e.element?e.element:void 0}var b=[],_=function(e){function t(t){var n=this,r=t||{},i=r;return i.handleDownEvent||(i.handleDownEvent=c["b"]),i.stopDown||(i.stopDown=c["a"]),n=e.call(this,i)||this,n.source_=r.source?r.source:null,n.vertex_=void 0===r.vertex||r.vertex,n.edge_=void 0===r.edge||r.edge,n.features_=r.features?r.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=void 0!==r.pixelTolerance?r.pixelTolerance:10,n.rBush_=new s["a"],n.SEGMENT_WRITERS_={Point:n.writePointGeometry_.bind(n),LineString:n.writeLineStringGeometry_.bind(n),LinearRing:n.writeLineStringGeometry_.bind(n),Polygon:n.writePolygonGeometry_.bind(n),MultiPoint:n.writeMultiPointGeometry_.bind(n),MultiLineString:n.writeMultiLineStringGeometry_.bind(n),MultiPolygon:n.writeMultiPolygonGeometry_.bind(n),GeometryCollection:n.writeGeometryCollectionGeometry_.bind(n),Circle:n.writeCircleGeometry_.bind(n)},n}return v(t,e),t.prototype.addFeature=function(e,t){var n=void 0===t||t,r=Object(p["c"])(e),o=e.getGeometry();if(o){var a=this.SEGMENT_WRITERS_[o.getType()];a&&(this.indexedFeaturesExtents_[r]=o.getExtent(Object(u["j"])()),a(e,o))}n&&(this.featureChangeListenerKeys_[r]=Object(g["a"])(e,i["a"].CHANGE,this.handleFeatureChange_,this))},t.prototype.forEachFeatureAdd_=function(e){this.addFeature(e)},t.prototype.forEachFeatureRemove_=function(e){this.removeFeature(e)},t.prototype.getFeatures_=function(){var e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e},t.prototype.handleEvent=function(t){var n=this.snapTo(t.pixel,t.coordinate,t.map);return n.snapped&&(t.coordinate=n.vertex.slice(0,2),t.pixel=n.vertexPixel),e.prototype.handleEvent.call(this,t)},t.prototype.handleFeatureAdd_=function(e){var t=y(e);this.addFeature(t)},t.prototype.handleFeatureRemove_=function(e){var t=y(e);this.removeFeature(t)},t.prototype.handleFeatureChange_=function(e){var t=e.target;if(this.handlingDownUpSequence){var n=Object(p["c"])(t);n in this.pendingFeatures_||(this.pendingFeatures_[n]=t)}else this.updateFeature_(t)},t.prototype.handleUpEvent=function(e){var t=Object(m["c"])(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},t.prototype.removeFeature=function(e,t){var n=void 0===t||t,r=Object(p["c"])(e),i=this.indexedFeaturesExtents_[r];if(i){var o=this.rBush_,a=[];o.forEachInExtent(i,(function(t){e===t.feature&&a.push(t)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}n&&(Object(g["c"])(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])},t.prototype.setMap=function(t){var n=this.getMap(),i=this.featuresListenerKeys_,o=this.getFeatures_();n&&(i.forEach(g["c"]),i.length=0,o.forEach(this.forEachFeatureRemove_.bind(this))),e.prototype.setMap.call(this,t),t&&(this.features_?i.push(Object(g["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(g["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(Object(g["a"])(this.source_,l["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(g["a"])(this.source_,l["a"].REMOVEFEATURE,this.handleFeatureRemove_,this)),o.forEach(this.forEachFeatureAdd_.bind(this)))},t.prototype.snapTo=function(e,t,n){var r=n.getCoordinateFromPixel([e[0]-this.pixelTolerance_,e[1]+this.pixelTolerance_]),i=n.getCoordinateFromPixel([e[0]+this.pixelTolerance_,e[1]-this.pixelTolerance_]),a=Object(u["b"])([r,i]),s=this.rBush_.getInExtent(a);this.vertex_&&!this.edge_&&(s=s.filter((function(e){return e.feature.getGeometry().getType()!==o["a"].CIRCLE})));var l=!1,c=null,f=null;if(0===s.length)return{snapped:l,vertex:c,vertexPixel:f};for(var p,m=n.getView().getProjection(),g=Object(h["d"])(t,m),v=1/0,y=0;y<s.length;++y){var _=s[y];b[0]=Object(h["d"])(_.segment[0],m),b[1]=Object(h["d"])(_.segment[1],m);var w=Object(d["k"])(g,b);w<v&&(p=_,v=w)}var x=p.segment;if(this.vertex_&&!this.edge_){var S=n.getPixelFromCoordinate(x[0]),C=n.getPixelFromCoordinate(x[1]),E=Object(d["j"])(e,S),k=Object(d["j"])(e,C),O=Math.sqrt(Math.min(E,k));O<=this.pixelTolerance_&&(l=!0,c=E>k?x[1]:x[0],f=n.getPixelFromCoordinate(c))}else if(this.edge_){var T=p.feature.getGeometry().getType()===o["a"].CIRCLE;if(T){var I=p.feature.getGeometry(),A=Object(h["j"])();A&&(I=I.clone().transform(A,m)),c=Object(h["l"])(Object(d["b"])(g,I),m)}else b[0]=Object(h["d"])(x[0],m),b[1]=Object(h["d"])(x[1],m),c=Object(h["l"])(Object(d["c"])(g,b),m);if(f=n.getPixelFromCoordinate(c),Object(d["d"])(e,f)<=this.pixelTolerance_&&(l=!0,this.vertex_&&!T)){S=n.getPixelFromCoordinate(x[0]),C=n.getPixelFromCoordinate(x[1]),E=Object(d["j"])(f,S),k=Object(d["j"])(f,C),O=Math.sqrt(Math.min(E,k));O<=this.pixelTolerance_&&(c=E>k?x[1]:x[0],f=n.getPixelFromCoordinate(c))}}return l&&(f=[Math.round(f[0]),Math.round(f[1])]),{snapped:l,vertex:c,vertexPixel:f}},t.prototype.updateFeature_=function(e){this.removeFeature(e,!1),this.addFeature(e,!1)},t.prototype.writeCircleGeometry_=function(e,t){var n=this.getMap().getView().getProjection(),r=t,i=Object(h["j"])();i&&(r=r.clone().transform(i,n));var o=Object(f["b"])(r);i&&o.transform(n,i);for(var a=o.getCoordinates()[0],s=0,l=a.length-1;s<l;++s){var c=a.slice(s,s+2),d={feature:e,segment:c};this.rBush_.insert(Object(u["b"])(c),d)}},t.prototype.writeGeometryCollectionGeometry_=function(e,t){for(var n=t.getGeometriesArray(),r=0;r<n.length;++r){var i=this.SEGMENT_WRITERS_[n[r].getType()];i&&i(e,n[r])}},t.prototype.writeLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length-1;r<i;++r){var o=n.slice(r,r+2),a={feature:e,segment:o};this.rBush_.insert(Object(u["b"])(o),a)}},t.prototype.writeMultiLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:e,segment:l};this.rBush_.insert(Object(u["b"])(l),c)}},t.prototype.writeMultiPointGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r){var o=n[r],a={feature:e,segment:[o,o]};this.rBush_.insert(t.getExtent(),a)}},t.prototype.writeMultiPolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length;a<s;++a)for(var l=o[a],c=0,d=l.length-1;c<d;++c){var f=l.slice(c,c+2),h={feature:e,segment:f};this.rBush_.insert(Object(u["b"])(f),h)}},t.prototype.writePointGeometry_=function(e,t){var n=t.getCoordinates(),r={feature:e,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)},t.prototype.writePolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:e,segment:l};this.rBush_.insert(Object(u["b"])(l),c)}},t}(a["b"]);t["a"]=_},b311:function(e,t,n){
/*!
 * clipboard.js v2.0.6
 * https://clipboardjs.com/
 * 
 * Licensed MIT © Zeno Rocha
 */
(function(t,n){e.exports=n()})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(3),i=n(4);function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return a(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return l(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function l(e,t,n){return i(document.body,e,t,n)}e.exports=o},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},function(e,t,n){var r=n(5);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function o(e,t,n,r,o){return"function"===typeof e.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=o},function(e,t){var n=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}function i(e,t){while(e&&e.nodeType!==n){if("function"===typeof e.matches&&e.matches(t))return e;e=e.parentNode}}e.exports=i},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(t){s(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==("undefined"===typeof e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),c=l,u=n(1),d=n.n(u),f=n(2),h=n.n(f),p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function y(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=function(e){function t(e,n){g(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return y(t,e),m(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===p(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=h()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return _("action",e)}},{key:"defaultTarget",value:function(e){var t=_("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return _("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(d.a);function _(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t["default"]=b}])["default"]}))},b334:function(e,t,n){"use strict";n("2d66")},b376:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"mengceng"},on:{ok:e.handleOk,cancel:e.handleCancel}},[r("a-spin",{attrs:{spinning:e.confirmLoading}},[r("a-form",{attrs:{form:e.form}},[r("a-row",{attrs:{span:"24"}},[r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"地区",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("city_child",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{params:e.showDefaultParams,isVerifyPass:e.isVerifyPass},on:{func:e.getMsgFormSon}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{placeholder:"请输入市",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cityCode",e.validatorRules.cityCode],expression:"[ 'cityCode', validatorRules.cityCode]"}],attrs:{placeholder:"请输入市代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",e.validatorRules.district],expression:"[ 'district', validatorRules.district]"}],attrs:{placeholder:"请输入区县",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",e.validatorRules.districtCode],expression:"[ 'districtCode', validatorRules.districtCode]"}],attrs:{placeholder:"请输入区县代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",e.validatorRules.street],expression:"[ 'street', validatorRules.street]"}],attrs:{placeholder:"请输入乡镇街道",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",e.validatorRules.streetCode],expression:"[ 'streetCode', validatorRules.streetCode]"}],attrs:{placeholder:"请输入乡镇街道代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["village",e.validatorRules.village],expression:"[ 'village', validatorRules.village]"}],attrs:{placeholder:"请输入村社区",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["villageCode",e.validatorRules.villageCode],expression:"[ 'villageCode', validatorRules.villageCode]"}],attrs:{placeholder:"请输入村社区代码",hidden:""}})],1)],1),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.bt],expression:"[ 'name', validatorRules.bt]"}],attrs:{placeholder:"请输入名称",disabled:e.isVerifyPass}})],1)],1),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"经度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["longitude",e.validatorRules.bt],expression:"[ 'longitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入经度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1)],1),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"纬度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["latitude",e.validatorRules.bt],expression:"[ 'latitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入纬度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1)],1),e._l(e.notes,(function(t,n){return r("a-col",{attrs:{span:"24"}},["city"==t.zd||"name"==t.zd||"longitude"==t.zd||"latitude"==t.zd?void 0:["1"==t.sfbt?["1"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.btint],expression:"[item.zd, validatorRules.btint]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:e._e()]:["1"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:"4"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol,disabled:e.isVerifyPass}},[r("Fileup",{ref:"Fileup",refInFor:!0,attrs:{fileList:e.fileList}})],1)]:e._e()]]],2)}))],2)],1),r("BackMap",{ref:"backMap",attrs:{model:e.model,pointKey:e.pointKey},on:{lonlatChanged:function(t){return e.lonlatChanged(t)}}})],1)],1)},i=[],o=(n("a481"),n("aef6"),n("28a5"),n("0fea")),a=n("88bc"),s=n.n(a),l=n("2dab"),c=n("fe54"),u=n("c14a"),d=n("d9be"),f=n("de10"),h=n("7b16"),p=n("ba3b"),m=n("98ff"),g={name:"DykeModal",props:{url:"",templatesql:""},components:{JDate:l["default"],JSelectDepart:c["default"],JSelectUserByDep:u["default"],city_child:d["default"],mapChoosePoint:f["default"],JDictSelectTag:h["default"],BackMap:p["default"],Fileup:m["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},notes:[],qx:"",qxmc:"",showDefaultParams:[],pointKey:"longitudeLatitude",maskClosable:!1,isVerifyPass:!1,confirmLoading:!1,validatorRules:{city:{rules:[{required:!0,message:"请选择地区"}]},bt:{rules:[{required:!0,message:"请输入必填字段"}]},btint:{rules:[{required:!0,message:"请输入必填字段,必须为数字"}]}},fileList:[]}},mounted:function(){this.getquxian(),this.weiwanshan()},methods:{fuzhi:function(){if(this.form.setFieldsValue(this.model),this.fileList=[],null!=this.model.files)for(var e=JSON.parse(this.model.files),t=0;t<e.length;t++)this.fileList.push(e[t])},handleMapView:function(){this.$refs.backMap.visible=!0,this.$refs.backMap.isVerifyPass=this.isVerifyPass,this.$refs.backMap.disableSubmit=!1},handleMapViewFace:function(){this.$refs.backMapArea.visible=!0,this.$refs.backMapArea.isVerifyPass=this.isVerifyPass,this.$refs.backMapArea.disableSubmit=!1},initParams:function(){null==this.model.cityCode?"3303"==this.qx?(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.form.setFieldsValue({city:"温州市",cityCode:"3303"})):(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.showDefaultParams.push(this.qx),this.form.setFieldsValue({city:"温州市",cityCode:"3303",district:this.qxmc,districtCode:this.qx})):(this.showDefaultParams.length=0,this.showDefaultParams.push(this.model.cityCode),this.showDefaultParams.push(this.model.districtCode),this.showDefaultParams.push(this.model.streetCode),this.showDefaultParams.push(this.model.villageCode))},getMsgFormSon:function(e){console.log(e),this.form.setFieldsValue({city:e.city,cityCode:e.cityCode,district:e.district,districtCode:e.districtCode,street:e.street,streetCode:e.streetCode,village:e.village,villageCode:e.villageCode})},checkChanged:function(e){var t=this;this.model[this.checkedKey]=e,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,t.checkedKey))}))},lonlatChanged:function(e){var t=this;this.model[this.pointKey]=e;var n=e.split(",");this.model.longitude=n[0],this.model.latitude=n[1],console.log(this.model.longitude),console.log(this.model.latitude),this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,t.pointKey,"longitude","latitude"))}))},validateTemplateCode:function(e,t,n){if(console.log(e),console.log(t),!t)return n(new Error("请输入电话号码"));var r=/^\d{11}$/;if(console.log(r.test(t)),!r.test(t))return n(new Error("电话号码格式不正确"));n()},dongtaibianji:function(){var e=this;Object(o["i"])(this.url.notes,{},"get").then((function(t){t.success&&(console.log("动态编辑字段add:"+t.result.notes),e.notes=t.result.notes)}))},bianjipd:function(e){this.isVerifyPass,1==e.verifyStatus||1==e.verify_status?this.isVerifyPass=!0:this.isVerifyPass=!1},add:function(e){var t=this;this.dongtaibianji();var n=this,r=e.smid;null==r?(this.isVerifyPass=!1,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.fuzhi(),t.initParams()})),this.$emit("yincangzuoce")):(e.longitudeLatitude=e.longitude+","+e.latitude,1==this.isVerifyPass||1==e.verifyStatus?this.isVerifyPass=!0:this.isVerifyPass=!1,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!1,this.$nextTick((function(){t.fuzhi(),t.initParams(),n.handleOk()})))},edit:function(e){var t=this;Object(o["i"])(this.url.notes,{},"get").then((function(n){n.success&&(console.log("动态编辑字段edit:"),console.log(n.result.notes),t.notes=n.result.notes,t.bianjipd(e),t.form.resetFields(),t.model=Object.assign({},e),t.visible=!0,t.$nextTick((function(){t.fuzhi(),t.initParams()})),t.$emit("yincangzuoce"))}))},close:function(){this.$emit("close"),this.visible=!1,this.$emit("xianshizuoce")},handleOk:function(){var e=this;if(this.isVerifyPass)alert("审核流程已结束,无法编辑数据");else{var t=this;this.form.validateFields((function(n,r){if(e.model.longitudeLatitude=e.model.longitude+","+e.model.latitude,!n){t.confirmLoading=!0;var i="",a="";if(e.model.smid?(i+=e.url.edit,a="put",e.$route.path.endsWith("emergency_risk_index")||e.$route.path.endsWith("emergency_resource_index")?i+="/emergency":i+="/shenheku"):(i+=e.url.add,a="post"),null!=e.model.files&&(r.files=JSON.stringify(t.fileList)),"undefined"!=typeof e.templatesql){var s=e.templatesql.replace("DATATYPE",""),l=s.replace("datatype",""),c=l.replace(/=/g,""),u=c.replace(/ /g,""),d=u.replace(/'/g,"");""!=d&&" "!=d&&(r.datatype=d)}var f=Object.assign(e.model,r);console.log("表单提交数据",f),Object(o["i"])(i,f,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.$emit("handleOktshide"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))}},handleCancel:function(){this.close()},popupCallback:function(e){this.fuzhi()},getquxian:function(){var e=this;Object(o["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(",");e.qxmc=r[0],e.qx=r[1]}else e.$message.warning(t.message)}))},weiwanshan:function(){var e=this;Object(o["i"])(this.url.weiwanshan,{},"get").then((function(t){t.success&&e.dataSource3ziduan(t.result.notes)}))},dataSource3ziduan:function(e){this.$emit("dataSource3ziduan",e)}}},v=g,y=n("2877"),b=Object(y["a"])(v,r,i,!1,null,null,null);t["default"]=b.exports},b383:function(e,t,n){"use strict";t.decode=t.parse=n("91dd"),t.encode=t.stringify=n("e099")},b39a:function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b3c4:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{centered:"",title:e.title,width:1e3,visible:e.visible,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:10}},[n("a-form-item",{attrs:{label:"姓名"}},[n("a-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}})],1)],1),n("a-col",{attrs:{span:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",[n("a-table",{attrs:{size:"small",bordered:"",rowKey:"id",columns:e.columns1,dataSource:e.dataSource1,pagination:e.ipagination,loading:e.loading,scroll:{y:240},rowSelection:{selectedRowKeys:e.selectedRowKeys,onSelectAll:e.onSelectAll,onSelect:e.onSelect,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)])],1)},i=[],o=(n("ac6a"),n("456d"),n("ca00")),a=n("0fea"),s={name:"SelectUserModal",data:function(){return{title:"添加已有用户",names:[],visible:!1,placement:"right",description:"",queryParam:{},columns1:[{title:"#",dataIndex:"",key:"rowIndex",width:50,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"用户账号",align:"center",width:113,dataIndex:"username"},{title:"用户名称",align:"center",width:100,dataIndex:"realname"},{title:"状态",align:"center",width:100,dataIndex:"status"}],columns2:[{title:"用户账号",align:"center",dataIndex:"username"},{title:"用户名称",align:"center",dataIndex:"realname"},{title:"操作",dataIndex:"action",align:"center",width:100,scopedSlots:{customRender:"action"}}],dataSource1:[],dataSource2:[],ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},loading:!1,selectedRowKeys:[],selectedRows:[],url:{list:"/sys/user/list"}}},created:function(){this.loadData()},methods:{searchQuery:function(){this.loadData(1)},searchReset:function(){this.queryParam={},this.loadData(1)},handleCancel:function(){this.visible=!1},handleOk:function(){this.dataSource2=this.selectedRowKeys,console.log("data:"+this.dataSource2),this.$emit("selectFinished",this.dataSource2),this.visible=!1},add:function(){this.visible=!0},loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource1=e.result.records,t.ipagination.total=e.result.total)}))},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){},onSelectAll:function(e,t,n){if(!0===e)for(var r=0;r<n.length;r++)this.dataSource2.push(n[r]);else for(var i=0;i<n.length;i++)this.dataSource2.splice(this.dataSource2.indexOf(n[i]),1)},onSelect:function(e,t){if(!0===t)this.dataSource2.push(e);else{var n=this.dataSource2.indexOf(e);n>=0&&this.dataSource2.splice(this.dataSource2.indexOf(e),1)}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},handleDelete:function(e){this.dataSource2.splice(this.dataSource2.indexOf(e),1)},handleTableChange:function(e,t,n){console.log(n),Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()}}},l=s,c=(n("e3b5"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"81b16eaa",null);t["default"]=u.exports},b43b:function(e,t,n){var r=n("25a1");function i(t,n,o){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get,e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},e.exports["default"]=e.exports,e.exports.__esModule=!0),i(t,n,o||t)}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},b4690:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{width:e.modalWidth,visible:e.visible,title:"数据对比窗口",confirmLoading:e.confirmLoading,cancelText:"取消"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{staticClass:"form",attrs:{form:e.form},on:{submit:e.handleSubmit}},[n("a-row",{staticClass:"form-row",attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:8}},[n("a-form-item",{attrs:{label:"数据库表名","label-col":{span:6},"wrapper-col":{span:15}}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataTale",{}],expression:"[ 'dataTale', {}]"}],attrs:{placeholder:"请输入数据库表名",disabled:""},on:{blur:e.handleTableBlur}})],1)],1),n("a-col",{attrs:{md:12,sm:8}},[n("a-form-item",{attrs:{label:"数据ID","label-col":{span:5},"wrapper-col":{span:15}}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataId",{}],expression:"[ 'dataId', {}]"}],attrs:{placeholder:"请输入数据ID",disabled:""},on:{blur:e.handleIdBlur}})],1)],1)],1),n("a-row",{staticClass:"form-row",attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:8}},[n("a-form-item",{attrs:{label:"版本号1","label-col":{span:6},"wrapper-col":{span:15}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataVersion1",{}],expression:"[ 'dataVersion1', {}]"}],attrs:{placeholder:"请选择版本号"},on:{change:e.handleChange1}},e._l(e.DataVersionList,(function(t,r){return n("a-select-option",{key:r.toString(),attrs:{value:t.id}},[e._v("\n                  "+e._s(t.dataVersion)+"\n                ")])})),1)],1)],1),n("a-col",{attrs:{md:12,sm:8}},[n("a-form-item",{attrs:{label:"版本号2","label-col":{span:5},"wrapper-col":{span:15}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataVersion2",{}],expression:"[ 'dataVersion2', {}]"}],attrs:{placeholder:"请选择版本号"},on:{change:e.handleChange2}},e._l(e.DataVersionList,(function(t,r){return n("a-select-option",{key:r.toString(),attrs:{value:t.id}},[e._v("\n                  "+e._s(t.dataVersion)+"\n                ")])})),1)],1)],1)],1)],1)],1),n("data-log-compare-modal",{ref:"modal",on:{ok:e.modalFormOk}})],1)],1)},i=[],o=n("0fea"),a=n("fcbc"),s={name:"DataLogModal",components:{DataLogCompareModal:a["default"]},dataId1:"",dataId2:"",dataTable1:"",dataID3:"",data:function(){return{modalWidth:700,modaltoggleFlag:!0,confirmDirty:!1,title:"操作",visible:!1,model:{},confirmLoading:!1,headers:{},form:this.$form.createForm(this),url:{queryDataVerListUrl:"/sys/dataLog/queryDataVerList"},DataVersionList:[]}},created:function(){},methods:{addModal:function(e){var t=this,n=e[0].dataTable,r=e[0].dataId,i=e[0].dataVersion,o=e[1].dataVersion;this.dataId1=e[0].id,this.dataId2=e[1].id,this.dataTable1=e[0].dataTable,this.dataID3=e[0].dataId,this.initDataVersionList(),this.form.resetFields(),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue({dataTale:n,dataId:r,dataVersion1:i,dataVersion2:o})}))},handleOk:function(){this.close(),this.$refs.modal.compareModal(this.dataId1,this.dataId2),this.$refs.modal.title="数据比较"},handleCancel:function(){this.close()},handleSubmit:function(){},close:function(){this.$emit("close"),this.visible=!1,this.disableSubmit=!1},modalFormOk:function(){},initDataVersionList:function(){var e=this,t=this;Object(o["d"])(t.url.queryDataVerListUrl,{dataTable:this.dataTable1,dataId:this.dataID3}).then((function(t){t.success?e.DataVersionList=t.result:(e.DataVersionList=[],e.dataId1="",e.dataId2="",console.log(t.message))}))},handleChange1:function(e){this.dataId1=e},handleChange2:function(e){this.dataId2=e},handleTableBlur:function(e){this.dataTable1=e.target.value,this.initDataVersionList()},handleIdBlur:function(e){this.dataID3=e.target.value,this.initDataVersionList()}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"499ee242",null);t["default"]=u.exports},b4e3:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{md:7,sm:8}},[n("a-form-item",{attrs:{label:"字典名称",labelCol:{span:6},wrapperCol:{span:14,offset:1}}},[n("a-input",{attrs:{placeholder:"请输入字典名称"},model:{value:e.queryParam.dictName,callback:function(t){e.$set(e.queryParam,"dictName",t)},expression:"queryParam.dictName"}})],1)],1),n("a-col",{attrs:{md:7,sm:8}},[n("a-form-item",{attrs:{label:"字典编号",labelCol:{span:6},wrapperCol:{span:14,offset:1}}},[n("a-input",{attrs:{placeholder:"请输入字典编号"},model:{value:e.queryParam.dictCode,callback:function(t){e.$set(e.queryParam,"dictCode",t)},expression:"queryParam.dictCode"}})],1)],1),n("a-col",{attrs:{md:7,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1),n("div",{staticClass:"table-operator",staticStyle:{"border-top":"5px"}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("添加")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("字典信息")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1)],1),n("a-table",{ref:"table",attrs:{rowKey:"id",size:"middle",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[n("a-icon",{attrs:{type:"edit"}}),e._v("\n          编辑\n        ")],1),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.editDictItem(r)}}},[n("a-icon",{attrs:{type:"setting"}}),e._v(" 字典配置")],1),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])})],1),n("dict-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("dict-item-list",{ref:"dictItemList"})],1)},i=[],o=n("ca00"),a=n("b65a"),s=n("57ed"),l=n("59a0"),c={name:"DictList",mixins:[a["a"]],components:{DictModal:s["default"],DictItemList:l["default"]},data:function(){return{description:"这是数据字典页面",visible:!1,queryParam:{dictCode:"",dictName:""},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:120,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"字典名称",align:"left",dataIndex:"dictName"},{title:"字典编号",align:"left",dataIndex:"dictCode"},{title:"描述",align:"left",dataIndex:"description"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],dict:"",labelCol:{xs:{span:8},sm:{span:5}},wrapperCol:{xs:{span:16},sm:{span:19}},url:{list:"/sys/dict/list",delete:"/sys/dict/delete",exportXlsUrl:"sys/dict/exportXls",importExcelUrl:"sys/dict/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},cancelDict:function(){this.dict="",this.visible=!1,this.loadData()},editDictItem:function(e){this.$refs.dictItemList.edit(e)},searchReset:function(){var e=this;e.queryParam.dictName="",e.queryParam.dictCode="",e.loadData(this.ipagination.current)}},watch:{openKeys:function(e){console.log("openKeys",e)}}},u=c,d=(n("507c"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"ecd6e416",null);t["default"]=f.exports},b55e:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,n,i,o,a){t(e,n,i||0,o||e.length-1,a||r)}function t(e,r,i,o,a){while(o>i){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),f=Math.max(i,Math.floor(r-l*u/s+d)),h=Math.min(o,Math.floor(r+(s-l)*u/s+d));t(e,r,f,h,a)}var p=e[r],m=i,g=o;n(e,i,r),a(e[o],p)>0&&n(e,i,o);while(m<g){n(e,m,g),m++,g--;while(a(e[m],p)<0)m++;while(a(e[g],p)>0)g--}0===a(e[i],p)?n(e,i,g):(g++,n(e,g,o)),g<=r&&(i=g+1),r<=g&&(o=g-1)}}function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t){return e<t?-1:e>t?1:0}var i=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){s(e,0,e.children.length,t,e)}function s(e,t,n,r,i){i||(i=v(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];l(i,e.leaf?r(a):a)}return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function m(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,n,r,i,o){var a=[n,r];while(a.length)if(r=a.pop(),n=a.pop(),!(r-n<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(e){var t=this.data,n=[];if(!g(e,t))return n;var r=this.toBBox,i=[];while(t){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;g(e,s)&&(t.leaf?n.push(a):m(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},i.prototype.collides=function(e){var t=this.data;if(!g(e,t))return!1;var n=[];while(t){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(g(e,o)){if(t.leaf||m(e,o))return!0;n.push(i)}}t=n.pop()}return!1},i.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},i.prototype.clear=function(){return this.data=v([]),this},i.prototype.remove=function(e,t){if(!e)return this;var n,r,i,a=this.data,s=this.toBBox(e),l=[],c=[];while(a||l.length){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),i=!0),a.leaf){var u=o(e,a.children,t);if(-1!==u)return a.children.splice(u,1),l.push(a),this._condense(l),this}i||a.leaf||!m(a,s)?r?(n++,a=r.children[n],i=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},i.prototype.toBBox=function(e){return e},i.prototype.compareMinX=function(e,t){return e.minX-t.minX},i.prototype.compareMinY=function(e,t){return e.minY-t.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(e){return this.data=e,this},i.prototype._all=function(e,t){var n=[];while(e)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},i.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return i=v(e.slice(t,n+1)),a(i,this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),i=v([]),i.leaf=!1,i.height=r;var l=Math.ceil(o/s),c=l*Math.ceil(Math.sqrt(s));y(e,t,n,c,this.compareMinX);for(var u=t;u<=n;u+=c){var d=Math.min(u+c-1,n);y(e,u,d,l,this.compareMinY);for(var f=u;f<=d;f+=l){var h=Math.min(f+l-1,d);i.children.push(this._build(e,f,h,r-1))}}return a(i,this.toBBox),i},i.prototype._chooseSubtree=function(e,t,n,r){while(1){if(r.push(t),t.leaf||r.length-1===n)break;for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],c=d(l),u=h(e,l)-c;u<o?(o=u,i=c<i?c:i,a=l):u===o&&c<i&&(i=c,a=l)}t=a||t.children[0]}return t},i.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);o.children.push(e),l(o,r);while(t>=0){if(!(i[t].children.length>this._maxEntries))break;this._split(i,t),t--}this._adjustParentBBoxes(r,i,t)},i.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=v(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(e,t){this.data=v([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(e,t,n){for(var r,i=1/0,o=1/0,a=t;a<=n-t;a++){var l=s(e,0,a,this.toBBox),c=s(e,a,n,this.toBBox),u=p(l,c),f=d(l)+d(c);u<i?(i=u,r=a,o=f<o?f:o):u===i&&f<o&&(o=f,r=a)}return r||n-t},i.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:u,o=this._allDistMargin(e,t,n,r),a=this._allDistMargin(e,t,n,i);o<a&&e.children.sort(r)},i.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=s(e,0,t,i),a=s(e,n-t,n,i),c=f(o)+f(a),u=t;u<n-t;u++){var d=e.children[u];l(o,e.leaf?i(d):d),c+=f(o)}for(var h=n-t-1;h>=t;h--){var p=e.children[h];l(a,e.leaf?i(p):p),c+=f(a)}return c},i.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},i.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():a(e[t],this.toBBox)},i}))},b589:function(e,t,n){"use strict";function r(e,t,n,r){for(var i=0,o=e[n-r],a=e[n-r+1];t<n;t+=r){var s=e[t],l=e[t+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(e,t,n,i){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=r(e,t,l,i),t=l}return o}function o(e,t,n,r){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=i(e,t,l,r),t=l[l.length-1]}return o}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},b639:function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var r=n("1fb5"),i=n("9152"),o=n("2335");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,r):"string"===typeof t?p(e,t,n):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t,n,r){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}function h(e,t){if(d(t),e=l(e,t<0?0:0|y(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(t,n);e=l(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function m(e,t){var n=t.length<0?0:0|y(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function g(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=m(e,t),e}function v(e,t){if(c.isBuffer(t)){var n=0|y(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):m(e,t);if("Buffer"===t.type&&o(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){d=!1;break}if(d)return o}return-1}function E(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function k(e,t,n,r){return ee(Y(t,e.length-n),e,n,r)}function O(e,t,n,r){return ee(J(t),e,n,r)}function T(e,t,n,r){return O(e,t,n,r)}function I(e,t,n,r){return ee(Z(t),e,n,r)}function A(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function R(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return N(r)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return f(null,e,t,n)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function N(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function j(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=X(e[o]);return i}function F(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function B(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function G(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,o){return o||G(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,o){return o||G(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;q(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;q(this,e,t,n,i,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);q(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);q(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||q(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:Y(new c(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function $(e){if(e=K(e).replace(H,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function X(e){return e<16?"0"+e.toString(16):e.toString(16)}function Y(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Q(e,t){for(var n,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Z(e){return r.toByteArray($(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b642:function(e,t,n){var r=n("58ab"),i=n("466d"),o=n("8e6b"),a=n("d6a26");function s(e,t){return r(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports["default"]=e.exports,e.exports.__esModule=!0},b644:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("page-layout",{attrs:{title:"单号:234231029431",logo:"https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png"}},[r("detail-list",{staticClass:"detail-layout",attrs:{slot:"headerContent",size:"small",col:2},slot:"headerContent"},[r("detail-list-item",{attrs:{term:"创建人"}},[t._v("曲丽丽")]),r("detail-list-item",{attrs:{term:"订购产品"}},[t._v("XX服务")]),r("detail-list-item",{attrs:{term:"创建时间"}},[t._v("2018-08-07")]),r("detail-list-item",{attrs:{term:"关联单据"}},[r("a",[t._v("12421")])]),r("detail-list-item",{attrs:{term:"生效日期"}},[t._v("2018-08-07 ~ 2018-12-11")]),r("detail-list-item",{attrs:{term:"备注"}},[t._v("请于两个工作日内确认")])],1),r("a-row",{staticClass:"status-list",attrs:{slot:"extra"},slot:"extra"},[r("a-col",{attrs:{xs:12,sm:12}},[r("div",{staticClass:"text"},[t._v("状态")]),r("div",{staticClass:"heading"},[t._v("待审批")])]),r("a-col",{attrs:{xs:12,sm:12}},[r("div",{staticClass:"text"},[t._v("订单金额")]),r("div",{staticClass:"heading"},[t._v("¥ 568.08")])])],1),r("template",{slot:"action"},[r("a-button-group",{staticStyle:{"margin-right":"4px"}},[r("a-button",[t._v("操作")]),r("a-button",[t._v("操作")]),r("a-button",[r("a-icon",{attrs:{type:"ellipsis"}})],1)],1),r("a-button",{attrs:{type:"primary"}},[t._v("主操作")])],1),r("a-card",{attrs:{bordered:!1,title:"流程进度"}},[r("a-steps",{attrs:{direction:t.isMobile()?"vertical":"horizontal",current:1,progressDot:""}},[r("a-step",{attrs:{title:"创建项目"}}),r("a-step",{attrs:{title:"部门初审"}}),r("a-step",{attrs:{title:"财务复核"}}),r("a-step",{attrs:{title:"完成"}})],1)],1),r("a-card",{staticStyle:{"margin-top":"24px"},attrs:{bordered:!1,title:"用户信息"}},[r("detail-list",[r("detail-list-item",{attrs:{term:"用户姓名"}},[t._v("付晓晓")]),r("detail-list-item",{attrs:{term:"会员卡号"}},[t._v("32943898021309809423")]),r("detail-list-item",{attrs:{term:"身份证"}},[t._v("3321944288191034921")]),r("detail-list-item",{attrs:{term:"联系方式"}},[t._v("18112345678")]),r("detail-list-item",{attrs:{term:"联系地址"}},[t._v("浙江省杭州市西湖区黄姑山路工专路交叉路口")])],1),r("detail-list",{attrs:{title:"信息组"}},[r("detail-list-item",{attrs:{term:"某某数据"}},[t._v("725")]),r("detail-list-item",{attrs:{term:"该数据更新时间"}},[t._v("2018-08-08")]),r("detail-list-item",[t._v(" ")]),r("detail-list-item",{attrs:{term:"某某数据"}},[t._v("725")]),r("detail-list-item",{attrs:{term:"该数据更新时间"}},[t._v("2018-08-08")]),r("detail-list-item",[t._v(" ")])],1),r("a-card",{attrs:{type:"inner",title:"多层信息组"}},[r("detail-list",{attrs:{title:"组名称",size:"small"}},[r("detail-list-item",{attrs:{term:"负责人"}},[t._v("林东东")]),r("detail-list-item",{attrs:{term:"角色码"}},[t._v("1234567")]),r("detail-list-item",{attrs:{term:"所属部门"}},[t._v("XX公司-YY部")]),r("detail-list-item",{attrs:{term:"过期时间"}},[t._v("2018-08-08")]),r("detail-list-item",{attrs:{term:"描述"}},[t._v("这段描述很长很长很长很长很长很长很长很长很长很长很长很长很长很长...")])],1),r("a-divider",{staticStyle:{margin:"16px 0"}}),r("detail-list",{attrs:{title:"组名称",size:"small",col:1}},[r("detail-list-item",{attrs:{term:"学名"}},[t._v("\tCitrullus lanatus (Thunb.) Matsum. et Nakai一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗..")])],1),r("a-divider",{staticStyle:{margin:"16px 0"}}),r("detail-list",{attrs:{title:"组名称",size:"small",col:2}},[r("detail-list-item",{attrs:{term:"负责人"}},[t._v("付小小")]),r("detail-list-item",{attrs:{term:"角色码"}},[t._v("1234567")])],1)],1)],1),r("a-card",{staticStyle:{"margin-top":"24px"},attrs:{bordered:!1,title:"用户近半年来电记录"}},[r("div",{staticClass:"no-data"},[r("a-icon",{attrs:{type:"frown-o"}}),t._v("暂无数据")],1)]),r("a-card",{staticStyle:{"margin-top":"24px"},attrs:{bordered:!1,tabList:t.tabList,activeTabKey:t.activeTabKey},on:{tabChange:function(t){e.activeTabKey=t}}},["1"===t.activeTabKey?r("a-table",{attrs:{columns:t.operationColumns,dataSource:t.operation1,pagination:!1},scopedSlots:t._u([{key:"status",fn:function(e){return[r("a-badge",{attrs:{status:t._f("statusTypeFilter")(e),text:t._f("statusFilter")(e)}})]}}],null,!1,106314470)}):t._e(),"2"===t.activeTabKey?r("a-table",{attrs:{columns:t.operationColumns,dataSource:t.operation2,pagination:!1},scopedSlots:t._u([{key:"status",fn:function(e){return[r("a-badge",{attrs:{status:t._f("statusTypeFilter")(e),text:t._f("statusFilter")(e)}})]}}],null,!1,106314470)}):t._e(),"3"===t.activeTabKey?r("a-table",{attrs:{columns:t.operationColumns,dataSource:t.operation3,pagination:!1},scopedSlots:t._u([{key:"status",fn:function(e){return[r("a-badge",{attrs:{status:t._f("statusTypeFilter")(e),text:t._f("statusFilter")(e)}})]}}],null,!1,106314470)}):t._e()],1)],2)},i=[],o=n("ac0d"),a=n("b445"),s=n("c16f"),l=s["default"].Item,c={name:"Advanced",components:{PageLayout:a["default"],DetailList:s["default"],DetailListItem:l},mixins:[o["b"]],data:function(){return{tabList:[{key:"1",tab:"操作日志一"},{key:"2",tab:"操作日志二"},{key:"3",tab:"操作日志三"}],activeTabKey:"1",operationColumns:[{title:"操作类型",dataIndex:"type",key:"type"},{title:"操作人",dataIndex:"name",key:"name"},{title:"执行结果",dataIndex:"status",key:"status",scopedSlots:{customRender:"status"}},{title:"操作时间",dataIndex:"updatedAt",key:"updatedAt"},{title:"备注",dataIndex:"remark",key:"remark"}],operation1:[{key:"op1",type:"订购关系生效",name:"曲丽丽",status:"agree",updatedAt:"2017-10-03  19:23:12",remark:"-"},{key:"op2",type:"财务复审",name:"付小小",status:"reject",updatedAt:"2017-10-03  19:23:12",remark:"不通过原因"},{key:"op3",type:"部门初审",name:"周毛毛",status:"agree",updatedAt:"2017-10-03  19:23:12",remark:"-"},{key:"op4",type:"提交订单",name:"林东东",status:"agree",updatedAt:"2017-10-03  19:23:12",remark:"很棒"},{key:"op5",type:"创建订单",name:"汗牙牙",status:"agree",updatedAt:"2017-10-03  19:23:12",remark:"-"}],operation2:[{key:"op2",type:"财务复审",name:"付小小",status:"reject",updatedAt:"2017-10-03  19:23:12",remark:"不通过原因"},{key:"op3",type:"部门初审",name:"周毛毛",status:"agree",updatedAt:"2017-10-03  19:23:12",remark:"-"},{key:"op4",type:"提交订单",name:"林东东",status:"agree",updatedAt:"2017-10-03  19:23:12",remark:"很棒"}],operation3:[{key:"op2",type:"财务复审",name:"付小小",status:"reject",updatedAt:"2017-10-03  19:23:12",remark:"不通过原因"},{key:"op3",type:"部门初审",name:"周毛毛",status:"agree",updatedAt:"2017-10-03  19:23:12",remark:"-"}]}},filters:{statusFilter:function(e){var t={agree:"成功",reject:"驳回"};return t[e]},statusTypeFilter:function(e){var t={agree:"success",reject:"error"};return t[e]}}},u=c,d=(n("9089"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"2eb569c4",null);t["default"]=f.exports},b65a:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("7f7f");var r=n("be94"),i=(n("456d"),n("ac6a"),n("aef6"),n("ca00")),o=n("0fea"),a=n("2b0e"),s=n("9fb0"),l={data:function(){return{tokenHeader:{"X-Access-Token":a["default"].ls.get(s["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},filters:{},loading:!1,selectedRowKeys:[],selectionRows:[],toggleSearchStatus:!1,superQueryFlag:!1,superQueryParams:""}},created:function(){var e=this.$route.path;e.endsWith("emergency_data_audit")?(this.url.list=this.url.list+"?verifyStatus=0",this.verify=!0,this.verify_select=!1):e.endsWith("emergency_data_audited")?(this.verify=!0,this.verify_select=!1,this.unVerify=!1,this.url.list=this.url.list+"?verifyStatus=1"):e.endsWith("emergency_data_unaudit")&&(this.verify=!0,this.verify_select=!1,this.unVerify=!1,this.url.list=this.url.list+"?verifyStatus=-1"),this.loadData(),this.initDictConfig()},methods:{loadData:function(e){var t=this;if(this.url.list){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();this.loading=!0,Object(o["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,console.log(t.dataSource),t.ipagination.total=e.result.total),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},initDictConfig:function(){console.log("--这是一个假的方法!")},handleSuperQuery:function(e){e?(this.superQueryFlag=!0,this.superQueryParams=JSON.stringify(e)):(this.superQueryParams="",this.superQueryFlag=!1),this.loadData()},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams));var t=Object.assign(e,this.queryParam,null,this.filters);return t.field=this.getQueryField(),t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,Object(i["b"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData(1)},superQuery:function(){this.$refs.superQueryModal.show()},searchReset:function(){this.queryParam={},this.loadData(1)},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(o["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDelete:function(e){if(this.url.delete){var t=this;Object(o["a"])(t.url.delete,{id:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},handleDelete2:function(e){if(this.url.delete2){var t=this;Object(o["a"])(t.url.delete2,{id:e.id}).then((function(n){n.success?(t.$message.success(n.message),t.getTwoData2(e)):t.$message.warning(n.message)}))}else this.$message.error("请设置url.delete2属性!")},handleDeleteForm:function(e){if(this.url.delete){var t=this;Object(o["a"])(t.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},handlePassForm:function(e){if(this.url.pass){var t=this;console.log(e),Object(o["c"])(t.url.pass,{smid:e+""}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.pass!")},handleNoPassForm:function(e){if(this.url.nopass){var t=this;Object(o["c"])(t.url.nopass,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.nopass属性!")},handleEdit:function(e){this.$refs.modalForm.isVerifyPass=this.verify,this.$refs.modalForm.edit(e),this.$refs.modalForm.title="编辑"+this.getCurFormTitle(),this.$refs.modalForm.disableSubmit=!1},handleEdit2:function(e){this.$refs.modalForm2.isVerifyPass=this.verify,this.$refs.modalForm2.edit(e),this.$refs.modalForm2.title="编辑"+this.getCurFormTitle(),this.$refs.modalForm2.disableSubmit=!1},handleAdd2:function(e){this.$refs.modalForm2.add(e),this.$refs.modalForm2.title="新增"+this.getCurFormTitle(),this.$refs.modalForm2.disableSubmit=!1},handleAdd:function(){this.$refs.modalForm.add(),this.$refs.modalForm.title="新增"+this.getCurFormTitle(),this.$refs.modalForm.disableSubmit=!1},getCurFormTitle:function(){var e=document.getElementById("componentName");return e?"-"+e.innerText:""},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleToggleSearch:function(){this.toggleSearchStatus=!this.toggleSearchStatus},modalFormOk:function(){this.loadData()},modalFormOk2:function(){this.loadData()},handleDetail:function(e){this.$refs.modalForm.edit(e),this.$refs.modalForm.title="详情",this.$refs.modalForm.disableSubmit=!0},handleExportXls2:function(){var e=encodeURI(JSON.stringify(this.getQueryParams())),t="".concat(window._CONFIG["domianURL"],"/").concat(this.url.exportXlsUrl,"?paramsStr=").concat(e);window.location.href=t},handleExportXls:function(e){var t=this;e&&"string"==typeof e||(e="导出文件");var n=Object(r["a"])({},this.queryParam);this.selectedRowKeys&&this.selectedRowKeys.length>0&&(n["selections"]=this.selectedRowKeys.join(",")),console.log("导出参数",n),Object(o["b"])(this.url.exportXlsUrl,n).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),e+".xls");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",e+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else t.$message.warning("文件下载失败")}))},handleExportXlsTemplate:function(e){var t=this;Object(o["b"])(this.url.exportXlsTemplateUrl).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),e+".xlsx");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",e+".xlsx"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else t.$message.warning("文件下载失败")}))},handleImportExcel:function(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?e.file.response.success?(this.$message.success("".concat(e.file.name," 文件上传成功")),this.loadData()):this.$message.error("".concat(e.file.name," ").concat(e.file.response.message,".")):"error"===e.file.status&&this.$message.error("文件上传失败: ".concat(e.file.msg," "))},getImgView:function(e){return e&&e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window._CONFIG["imgDomainURL"]+"/"+e},uploadFile:function(e){e?(e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window.open(window._CONFIG["domianURL"]+"/sys/common/download/"+e)):this.$message.warning("未知的文件")},batchVerity:function(e,t){var n;if(null!=e)if(n=1==e?"是否通过选中数据":"是否拒绝选中数据",this.url.vertifyBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var r="",i=0;i<this.selectedRowKeys.length;i++)r+="id"==t?"'"+this.selectedRowKeys[i]+"',":this.selectedRowKeys[i]+",";var a=this;this.$confirm({title:"审核",content:n,onOk:function(){Object(o["c"])(a.url.vertifyBatch,{ids:r,value:e,key:t}).then((function(e){e.success?(a.$message.success(e.message),a.loadData(),a.onClearSelected()):a.$message.warning(e.message)}))}})}else this.$message.error("请设置url.vertifyBatch属性!")}}}},b6eb:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-input-search",{attrs:{placeholder:"请先选择值班人员",readonly:""},on:{search:e.onSearchDutyRecord},model:{value:e.selectedDepUsers,callback:function(t){e.selectedDepUsers=t},expression:"selectedDepUsers"}},[n("a-button",{attrs:{slot:"enterButton",disabled:e.disabled},slot:"enterButton"},[e._v("选择用户")])],1),n("j-select-duty-mul-sel-model",{ref:"selectModal",attrs:{"modal-width":e.modalWidth},on:{ok:e.onSearchDutyRecordCallBack}})],1)},i=[],o=(n("c5f6"),n("0243")),a={name:"JSelectDutyMulSel",components:{JSelectDutyMulSelModel:o["default"]},props:{modalWidth:{type:Number,default:1e3,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{selectedDepUsers:""}},mounted:function(){this.selectedDepUsers=this.value},watch:{value:function(e){this.selectedDepUsers=e}},model:{prop:"value",event:"change"},methods:{onSearchDutyRecord:function(){this.$refs.selectModal.showModal(),this.onSearchDutyRecordCallBack("")},onSearchDutyRecordCallBack:function(e){this.selectedDepUsers=e,this.$emit("change",e)}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"726c03f4",null);t["default"]=c.exports},b76a:function(e,t,n){(function(t,r){e.exports=r(n("4603"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,_){l(n,t,v);var w,x,S,C=function(e){if(!f&&e in T)return T[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",k=y==m,O=!1,T=e.prototype,I=T[d]||T[h]||y&&T[y],A=I||C(y),R=y?k?C("entries"):A:void 0,P="Array"==t&&T.entries||I;if(P&&(S=u(P.call(new e)),S!==Object.prototype&&S.next&&(c(S,E,!0),r||"function"==typeof S[d]||a(S,d,g))),k&&I&&I.name!==m&&(O=!0,A=function(){return I.call(this)}),r&&!_||!f&&!O&&T[d]||a(T,d,A),s[t]=A,s[E]=g,y)if(w={values:k?A:C(m),keys:b?A:C(p),entries:R},_)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(f||O),t,w);return w}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,l=0;while(s>l)r.f(e,n=a[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),h=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!t})):void 0;if(!h||!p||"replace"===e&&!u||"split"===e&&!d){var m=/./[f],g=n(a,f,""[e],(function(e,t,n,r,i){return t.exec===l?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),c=e.F;while(r--)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(a=function(e){var t,n,a,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),l&&(t=d[s]),a=i.call(d,e),l&&a&&(d[s]=d.global?a.index+a[0].length:t),c&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),e.exports=a},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function(e,t,n){var u,d,f,h,p=e&c.F,m=e&c.G,g=e&c.S,v=e&c.P,y=e&c.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[l],_=m?i:i[t]||(i[t]={}),w=_[l]||(_[l]={});for(u in m&&(n=t),n)d=!p&&b&&void 0!==b[u],f=(d?b:n)[u],h=y&&d?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,b&&a(b,u,f,e&c.U),_[u]!=f&&o(_,u,h),v&&w[u]!=f&&(w[u]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){var n=a(e),l=arguments.length,c=1,u=i.f,d=o.f;while(l>c){var f,h=s(arguments[c++]),p=u?r(h).concat(u(h)):r(h),m=p.length,g=0;while(m>g)d.call(h,f=p[g++])&&(n[f]=h[f])}return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),f=String(this),h="function"===typeof t;h||(t=String(t));var v=d.global;if(v){var y=d.unicode;d.lastIndex=0}var b=[];while(1){var _=l(d,f);if(null===_)break;if(b.push(_),!v)break;var w=String(_[0]);""===w&&(d.lastIndex=s(f,o(d.lastIndex),y))}for(var x="",S=0,C=0;C<b.length;C++){_=b[C];for(var E=String(_[0]),k=c(u(a(_.index),f.length),0),O=[],T=1;T<_.length;T++)O.push(p(_[T]));var I=_.groups;if(h){var A=[E].concat(O,k,f);void 0!==I&&A.push(I);var R=String(t.apply(void 0,A))}else R=g(E,f,k,O,I,t);k>=S&&(x+=f.slice(S,k)+R,S=k+E.length)}return x+f.slice(S)}];function g(e,t,r,o,a,s){var l=r+e.length,c=o.length,u=h;return void 0!==a&&(a=i(a),u=f),n.call(s,u,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),f=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),m=0;m<p.length;m++){var g,v=p[m],y=h[v],b=a[v],_=b&&b.prototype;if(_&&(_[u]||s(_,u,f),_[d]||s(_,d,v),l[v]=f,y))for(g in r)_[g]||o(_,g,r[g],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return l}));n("a481");function r(){return"undefined"!==typeof window?window.console:e.console}var i=r();function o(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var a=/-(\w)/g,s=o((function(e){return e.replace(a,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function i(e){if(Array.isArray(e))return e}function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return i(e)||o(e,t)||s(e,t)||l()}n("6762"),n("2fdb");function u(e){if(Array.isArray(e))return a(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(){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 h(e){return u(e)||d(e)||s(e)||f()}var p=n("a352"),m=n.n(p),g=n("c649");function v(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function y(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function b(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=h(t).map((function(e,t){return t>=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function _(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function w(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),_.call(t,e,n)}}function x(e){return["transition-group","TransitionGroup"].includes(e)}function S(e){if(!e||1!==e.length)return!1;var t=c(e,1),n=t[0].componentOptions;return!!n&&x(n.tag)}function C(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function E(e,t,n){var r=0,i=0,o=C(t,n,"header");o&&(r=o.length,e=e?[].concat(h(o),h(e)):h(o));var a=C(t,n,"footer");return a&&(i=a.length,e=e?[].concat(h(e),h(a)):h(a)),{children:e,headerOffset:r,footerOffset:i}}function k(e,t){var n=null,r=function(e,t){n=v(n,e,t)},i=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var o=t.on,a=t.props,s=t.attrs;return r("on",o),r("props",a),Object.assign(n.attrs,s),n}var O=["Start","Add","Remove","Update","End"],T=["Choose","Unchoose","Sort","Filter","Clone"],I=["Move"].concat(O,T).map((function(e){return"on"+e})),A=null,R={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},P={name:"draggable",inheritAttrs:!1,props:R,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=S(t);var n=E(t,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=k(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&g["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&g["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&g["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};O.forEach((function(n){t["on"+n]=w.call(e,n)})),T.forEach((function(n){t["on"+n]=_.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(g["a"])(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new m.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(g["a"])(t);-1===I.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=b(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=y(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&x(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=h(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,h(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),A=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(g["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(g["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(g["d"])(e.clone)},onDragUpdate:function(e){Object(g["d"])(e.item),Object(g["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=h(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(A);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(r,e);Object.assign(i,{futureIndex:o});var a=Object.assign({},e,{relatedContext:r,draggedContext:i});return n(a,t)},onDragEnd:function(){this.computeIndexes(),A=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",P);var M=P;t["default"]=M}})["default"]}))},b770:function(e,t,n){"use strict";var r=e.exports={};r.forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},b7ac:function(e,t,n){"use strict";n("6b3a")},b7ee:function(e,t,n){},b81d:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{centered:"",title:e.title,width:1e3,visible:e.visible,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:10}},[n("a-form-item",{attrs:{label:"姓名"}},[n("a-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}})],1)],1),n("a-col",{attrs:{span:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",[n("a-table",{attrs:{size:"small",bordered:"",rowKey:"id",columns:e.columns1,dataSource:e.dataSource1,pagination:e.ipagination,loading:e.loading,scroll:{y:240},rowSelection:{selectedRowKeys:e.selectedRowKeys,onSelectAll:e.onSelectAll,onSelect:e.onSelect,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)])],1)},i=[],o=(n("ac6a"),n("456d"),n("ca00")),a=n("0fea"),s={name:"SelectUserModal",data:function(){return{title:"添加已有用户",names:[],visible:!1,placement:"right",description:"",queryParam:{},columns1:[{title:"#",dataIndex:"",key:"rowIndex",width:50,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"用户账号",align:"center",width:113,dataIndex:"username"},{title:"用户名称",align:"center",width:100,dataIndex:"realname"},{title:"状态",align:"center",width:100,dataIndex:"status"}],columns2:[{title:"用户账号",align:"center",dataIndex:"username"},{title:"用户名称",align:"center",dataIndex:"realname"},{title:"操作",dataIndex:"action",align:"center",width:100,scopedSlots:{customRender:"action"}}],dataSource1:[],dataSource2:[],ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},loading:!1,selectedRowKeys:[],selectedRows:[],url:{list:"/sys/user/list"}}},created:function(){this.initp(),this.loadData()},watch:{selectedRowKeys_p:{handler:function(e,t){this.selectedRowKeys=e},deep:!0},selectedRows_p:{handler:function(e,t){this.selectedRows=e,this.dataSource2=e},deep:!0}},methods:{initp:function(){this.selectedRowKeys=this.selectedRowKeys_p,this.selectedRows=this.selectedRows_p,this.dataSource2=this.selectedRows,console.log(this.selectedRowKeys)},searchQuery:function(){this.loadData(1)},searchReset:function(){this.queryParam={},this.loadData(1)},handleCancel:function(){this.visible=!1},handleOk:function(){this.dataSource2=this.selectedRows,console.log("data:"+this.dataSource2),this.$emit("selectFinished",this.dataSource2),this.visible=!1},add:function(){this.visible=!0},loadData:function(e){var t=this;console.log(this.selectedRowKeys),1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource1=e.result.records,t.ipagination.total=e.result.total)}))},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){},onSelectAll:function(e,t,n){if(!0===e)for(var r=0;r<n.length;r++)this.dataSource2.push(n[r]);else for(var i=0;i<n.length;i++)this.dataSource2.splice(this.getArrayIndexById(this.dataSource2,n[i].id),1)},onSelect:function(e,t){if(!0===t)this.dataSource2.push(e),console.log(this.dataSource2);else{var n=this.getArrayIndexById(this.dataSource2,e.id);n>=0&&this.dataSource2.splice(n,1)}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},handleDelete:function(e){this.dataSource2.splice(this.getArrayIndexById(this.dataSource2,e.id),1)},handleTableChange:function(e,t,n){console.log(n),Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()},getArrayIndexById:function(e,t){for(var n=0;n<e.length;n++)if(e[n].id==t)return n}},props:["selectedRowKeys_p","selectedRows_p"]},l=s,c=(n("160d"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"74a965f2",null);t["default"]=u.exports},b83e:function(e,t,n){},b8a2:function(e,t,n){"use strict";n("b83e")},b8ad3:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1200,visible:e.visible,maskClosable:!1,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-row",{staticClass:"form-row",attrs:{gutter:0}},[n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单号"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderCode",{rules:[{required:!0,message:"请输入订单号!"}]}],expression:"['orderCode', {rules: [{ required: true, message: '请输入订单号!' }]}]"}],attrs:{placeholder:"请输入订单号"}})],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["ctype",{}],expression:"['ctype',{}]"}],attrs:{placeholder:"请选择订单类型"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),n("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单日期"}},[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderDate",{}],expression:"[ 'orderDate',{}]"}],staticStyle:{width:"100%"},attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss"}})],1)],1)],1),n("a-row",{staticClass:"form-row",attrs:{gutter:0}},[n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单金额"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderMoney",{}],expression:"[ 'orderMoney', {}]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入订单金额"}})],1)],1),n("a-col",{attrs:{lg:8}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{}],expression:"['content', {}]"}],attrs:{placeholder:"请输入订单备注"}})],1)],1)],1)],1),n("a-tabs",{on:{change:e.handleChangeTabs},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-tab-pane",{key:"1",attrs:{tab:"客户信息",forceRender:!0}},[n("j-editable-table",{ref:"editableTable1",attrs:{loading:e.table1.loading,columns:e.table1.columns,dataSource:e.table1.dataSource,maxHeight:300,rowNumber:!0,rowSelection:!0,actionButton:!0}})],1),n("a-tab-pane",{key:"2",attrs:{tab:"机票信息",forceRender:!0}},[n("j-editable-table",{ref:"editableTable2",attrs:{loading:e.table2.loading,columns:e.table2.columns,dataSource:e.table2.dataSource,maxHeight:300,rowNumber:!0,rowSelection:!0,actionButton:!0}})],1)],1)],1)],1)},i=[],o=n("be94"),a=(n("6b54"),n("ac6a"),n("5df3"),n("7550")),s=n("e2e0"),l=n("0fea"),c=n("2dab"),u=n("88bc"),d=n.n(u),f=n("c1df"),h=n.n(f),p={name:"JeecgOrderModalForJEditableTable",components:{JDate:c["default"],JEditableTable:a["default"]},data:function(){return{title:"操作",visible:!1,form:this.$form.createForm(this),confirmLoading:!1,model:{},labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:18}},activeKey:"1",table1:{loading:!1,dataSource:[],columns:[{title:"客户名",key:"name",width:"24%",type:s["a"].input,defaultValue:"",placeholder:"请输入${title}",validateRules:[{required:!0,message:"${title}不能为空"}]},{title:"性别",key:"sex",width:"18%",type:s["a"].select,options:[{title:"男",value:"1"},{title:"女",value:"2"}],defaultValue:"",placeholder:"请选择${title}"},{title:"身份证号",key:"idcard",width:"24%",type:s["a"].input,defaultValue:"",placeholder:"请输入${title}",validateRules:[{pattern:"^\\d{6}(18|19|20)?\\d{2}(0[1-9]|1[012])(0[1-9]|[12]\\d|3[01])\\d{3}(\\d|[xX])$",message:"${title}格式不正确"}]},{title:"手机号",key:"telphone",width:"24%",type:s["a"].input,defaultValue:"",placeholder:"请输入${title}",validateRules:[{pattern:"^1(3|4|5|7|8)\\d{9}$",message:"${title}格式不正确"}]}]},table2:{loading:!1,dataSource:[],columns:[{title:"航班号",key:"ticketCode",width:"40%",type:s["a"].input,defaultValue:"",placeholder:"请输入${title}",validateRules:[{required:!0,message:"${title}不能为空"}]},{title:"航班时间",key:"tickectDate",width:"30%",type:s["a"].date,placeholder:"请选择${title}",defaultValue:""}]},url:{add:"/test/jeecgOrderMain/add",edit:"/test/jeecgOrderMain/edit",orderCustomerList:"/test/jeecgOrderMain/queryOrderCustomerListByMainId",orderTicketList:"/test/jeecgOrderMain/queryOrderTicketListByMainId"}}},created:function(){},methods:{getAllTable:function(){return Promise.all([Object(s["c"])(this,"editableTable1"),Object(s["c"])(this,"editableTable2")])},add:function(){this.getAllTable().then((function(e){e[0].add(),e[1].add()})),this.edit({})},edit:function(e){var t=this;if(this.visible=!0,this.activeKey="1",this.form.resetFields(),this.model=Object.assign({},e),this.$nextTick((function(){t.form.setFieldsValue(d()(t.model,"orderCode","ctype","orderMoney","content")),t.form.setFieldsValue({orderDate:t.model.orderDate?h()(t.model.orderDate):null})})),this.model.id){var n={id:this.model.id};this.requestTableData(this.url.orderCustomerList,n,this.table1),this.requestTableData(this.url.orderTicketList,n,this.table2)}},close:function(){this.visible=!1,this.getAllTable().then((function(e){e[0].initialize(),e[1].initialize()})),this.$emit("close")},requestTableData:function(e,t,n){n.loading=!0,Object(l["d"])(e,t).then((function(e){n.dataSource=e.result||[]})).finally((function(){n.loading=!1}))},handleOk:function(){this.validateFields()},handleCancel:function(){this.close()},handleChangeTabs:function(e){Object(s["c"])(this,"editableTable".concat(e)).then((function(e){e.resetScrollTop()}))},validateFields:function(){var e=this;this.getAllTable().then((function(t){return Object(s["d"])(e.form,t)})).then((function(t){var n=e.classifyIntoFormData(t);return e.requestAddOrEdit(n)})).catch((function(t){t.error===s["b"]?e.activeKey=null==t.index?e.activeKey:(t.index+1).toString():console.error(t)}))},classifyIntoFormData:function(e){var t=Object.assign(this.model,e.formValue);return t.orderDate=t.orderDate?t.orderDate.format("YYYY-MM-DD HH:mm:ss"):null,Object(o["a"])({},t,{jeecgOrderCustomerList:e.tablesValue[0].values,jeecgOrderTicketList:e.tablesValue[1].values})},requestAddOrEdit:function(e){var t=this,n=this.url.add,r="post";this.model.id&&(n=this.url.edit,r="put"),this.confirmLoading=!0,Object(l["i"])(n,e,r).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}},m=p,g=n("2877"),v=Object(g["a"])(m,r,i,!1,null,"69b37a74",null);t["default"]=v.exports},b8c5:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-list",[n("a-list-item")],1)},i=[],o={name:"Project"},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"35407015",null);t["default"]=l.exports},b8e37:function(e,t,n){},b8ea:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-list",[n("a-list-item")],1)},i=[],o=n("fe2b"),a=n("a6b6"),s={name:"Article",components:{AList:o["b"],AListItem:a["a"]}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"226554db",null);t["default"]=u.exports},b90e:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:e.title,width:e.drawerWidth,visible:e.visible,confirmLoading:e.confirmLoading,wrapStyle:{height:"calc(100% - 108px)",overflow:"auto",paddingBottom:"108px"}},on:{close:e.handleCancel}},[n("div",{style:{width:"100%",border:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff"}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"菜单类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["menuType",{initialValue:e.localMenuType}],expression:"['menuType',{'initialValue':localMenuType}]"}],on:{change:e.onChangeMenuType}},[n("a-radio",{attrs:{value:0}},[e._v("一级菜单")]),n("a-radio",{attrs:{value:1}},[e._v("子菜单")]),n("a-radio",{attrs:{value:2}},[e._v("按钮/权限")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:e.menuLabel,hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入菜单名称",readOnly:e.disableSubmit}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:0!=e.localMenuType,expression:"localMenuType!=0"}],attrs:{label:"上级菜单",labelCol:e.labelCol,wrapperCol:e.wrapperCol,"validate-status":e.validateStatus,hasFeedback:!0,required:!0}},[n("span",{attrs:{slot:"help"},slot:"help"},[e._v(e._s("error"==e.validateStatus?"请选择上级菜单":"  "))]),n("a-tree-select",{staticStyle:{width:"100%"},attrs:{dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.treeData,placeholder:"请选择父级菜单",disabled:e.disableSubmit},on:{change:e.handleParentIdChange},model:{value:e.model.parentId,callback:function(t){e.$set(e.model,"parentId",t)},expression:"model.parentId"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"菜单路径"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["url",e.validatorRules.url],expression:"[ 'url',validatorRules.url]"}],attrs:{placeholder:"请输入菜单路径",readOnly:e.disableSubmit}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"前端组件"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["component",e.validatorRules.component],expression:"[ 'component',validatorRules.component]"}],attrs:{placeholder:"请输入前端组件",readOnly:e.disableSubmit}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:0==e.localMenuType,expression:"localMenuType==0"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"默认跳转地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["redirect",{}],expression:"[ 'redirect',{}]"}],attrs:{placeholder:"请输入路由参数 redirect",readOnly:e.disableSubmit}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.show,expression:"!show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"授权标识"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["perms",{}],expression:"[ 'perms', {}]"}],attrs:{placeholder:"多个用逗号分隔, 如: user:list,user:create",readOnly:e.disableSubmit}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.show,expression:"!show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"授权策略"}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["permsType",{}],expression:"['permsType', {}]"}],attrs:{placeholder:"请选择授权策略",type:"radio",triggerChange:!0,dictCode:"global_perms_type"}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.show,expression:"!show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"状态"}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{}],expression:"['status', {}]"}],attrs:{placeholder:"请选择状态",type:"radio",triggerChange:!0,dictCode:"valid_status"}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"菜单图标"}},[n("a-input",{attrs:{placeholder:"点击右侧按钮选择图标",readOnly:e.disableSubmit},model:{value:e.model.icon,callback:function(t){e.$set(e.model,"icon",t)},expression:"model.icon"}},[n("a-icon",{attrs:{slot:"addonAfter",type:"setting"},on:{click:e.selectIcons},slot:"addonAfter"})],1)],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sortNo",e.validatorRules.sortNo],expression:"[ 'sortNo',validatorRules.sortNo]"}],staticStyle:{width:"200px"},attrs:{placeholder:"请输入菜单排序",readOnly:e.disableSubmit}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"是否路由菜单"}},[n("a-switch",{attrs:{checkedChildren:"是",unCheckedChildren:"否"},model:{value:e.routeSwitch,callback:function(t){e.routeSwitch=t},expression:"routeSwitch"}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"隐藏路由"}},[n("a-switch",{attrs:{checkedChildren:"是",unCheckedChildren:"否"},model:{value:e.menuHidden,callback:function(t){e.menuHidden=t},expression:"menuHidden"}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"是否缓存路由"}},[n("a-switch",{attrs:{checkedChildren:"是",unCheckedChildren:"否"},model:{value:e.isKeepalive,callback:function(t){e.isKeepalive=t},expression:"isKeepalive"}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"聚合路由"}},[n("a-switch",{attrs:{checkedChildren:"是",unCheckedChildren:"否"},model:{value:e.alwaysShow,callback:function(t){e.alwaysShow=t},expression:"alwaysShow"}})],1)],1),n("icons",{attrs:{iconChooseVisible:e.iconChooseVisible},on:{choose:e.handleIconChoose,close:e.handleIconCancel}})],1),n("a-row",{style:{textAlign:"right"}},[n("a-button",{style:{marginRight:"8px"},on:{click:e.handleCancel}},[e._v("\n        关闭\n      ")]),n("a-button",{attrs:{disabled:e.disableSubmit,type:"primary"},on:{click:e.handleOk}},[e._v("确定")])],1)],1)])},i=[],o=(n("3b2b"),n("4ec3")),a=n("11cb"),s=n("88bc"),l=n.n(s),c={name:"PermissionModal",components:{Icons:a["default"]},data:function(){return{drawerWidth:700,treeData:[],treeValue:"0-0-4",title:"操作",visible:!1,disableSubmit:!1,model:{},localMenuType:0,alwaysShow:!1,menuHidden:!1,routeSwitch:!0,isKeepalive:!0,show:!0,menuLabel:"菜单名称",isRequrie:!0,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),iconChooseVisible:!1,validateStatus:""}},computed:{validatorRules:function(){return{name:{rules:[{required:!0,message:"请输入菜单标题!"}]},component:{rules:[{required:this.show,message:"请输入前端组件!"}]},url:{rules:[{required:this.show,message:"请输入菜单路径!"}]},permsType:{rules:[{required:!0,message:"请输入授权策略!"}]},sortNo:{initialValue:1,rules:[{validator:this.validateNumber}]}}}},created:function(){this.initDictConfig()},methods:{loadTree:function(){var e=this;Object(o["X"])().then((function(t){if(t.success){console.log("----queryTreeList---"),console.log(t),e.treeData=[];for(var n=t.result.treeList,r=0;r<n.length;r++){var i=n[r];i.isLeaf=i.leaf,e.treeData.push(i)}}}))},add:function(){this.edit({status:"1",permsType:"1",route:!0})},edit:function(e){var t=this;this.resetScreenSize(),this.form.resetFields(),this.model=Object.assign({},e),console.log(e),this.alwaysShow=!!e.alwaysShow,this.menuHidden=!!e.hidden,null!=e.route&&(this.routeSwitch=!!e.route),null!=e.keepAlive?this.isKeepalive=!!e.keepAlive:this.isKeepalive=!1,this.show=2!=e.menuType,this.menuLabel=2==e.menuType?"按钮/权限":"菜单名称",this.model.parentId?this.localMenuType=1:this.localMenuType=0,this.visible=!0,this.loadTree();var n=l()(this.model,"name","perms","permsType","component","url","sortNo","menuType","status");this.$nextTick((function(){t.form.setFieldsValue(n)}))},close:function(){this.$emit("close"),this.disableSubmit=!1,this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){e.model.alwaysShow=e.alwaysShow,e.model.hidden=e.menuHidden,e.model.route=e.routeSwitch,e.model.keepAlive=e.isKeepalive;var i,a=Object.assign(e.model,r);if(!(1!=a.menuType&&2!=a.menuType||a.parentId))return t.validateStatus="error",void t.$message.error("请检查你填的类型以及信息是否正确!");t.validateStatus="success",t.confirmLoading=!0,console.log(a),i=e.model.id?Object(o["o"])(a):Object(o["c"])(a),i.then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},validateNumber:function(e,t,n){!t||new RegExp(/^[0-9]*[1-9][0-9]*$/).test(t)?n():n("请输入正整数!")},onChangeMenuType:function(e){var t=this;this.localMenuType=e.target.value,2==e.target.value?(this.show=!1,this.menuLabel="按钮/权限"):(this.show=!0,this.menuLabel="菜单名称"),this.$nextTick((function(){t.form.validateFields(["url","component"],{force:!0})}))},selectIcons:function(){this.iconChooseVisible=!0},handleIconCancel:function(){this.iconChooseVisible=!1},handleIconChoose:function(e){console.log(e),this.model.icon=e,this.form.icon=e,this.iconChooseVisible=!1},resetScreenSize:function(){var e=document.body.clientWidth;this.drawerWidth=e<500?e:700},initDictConfig:function(){},handleParentIdChange:function(e){this.validateStatus=e?"success":"error"}}},u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,"6527d585",null);t["default"]=f.exports},b99f:function(e,t,n){var r=n("6daf");e.exports=Array.isArray||function(e){return"Array"==r(e)}},b9ae:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{maskClosable:!1,title:"物资装备信息",width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"mengcengtwo"},on:{ok:e.handleOktwo,cancel:e.handleCancel}},[n("div",{staticStyle:{height:"689px"}},[n("div",{staticStyle:{float:"left",width:"400px"}},[n("TemplateeditsonTabletwo",{ref:"TemplateeditsonTabletwo",attrs:{loading:e.loading,verify:e.verify,unVerify:e.unVerify,urlcong:e.urlcong,tabs:e.tabs},on:{rowClicknew:function(t){return e.rowClicknew(t)},modalFormOk:function(t){return e.modalFormOk()},liebiaoqiehuan:function(t){return e.liebiaoqiehuan(t)}}})],1),n("div",{staticStyle:{float:"left",width:"450px","margin-top":"40px"}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.formtwo}},[n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"编辑状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-switch",{attrs:{checkedChildren:"新增",unCheckedChildren:"编辑",checked:e.visibleCheck},on:{change:e.onChose}})],1)],1)],1),n("a-row",{attrs:{span:"24"}},e._l(e.notes,(function(t,r){return n("a-col",{attrs:{span:"24"}},["这里过滤"==t.zd?void 0:["1"==t.sfbt?["1"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.btint],expression:"[item.zd, validatorRules.btint]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:e._e()]:["1"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[n("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:e._e()]]],2)})),1),n("div",{staticStyle:{display:"none"}},[n("a-row",{attrs:{span:"24"}},[n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"save_code",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["save_code",e.validatorRules.save_code],expression:"[ 'save_code', validatorRules.save_code]"}],attrs:{placeholder:"save_code",disabled:e.isVerifyPass}})],1)],1),n("a-col",{attrs:{span:"24"}},[n("a-form-item",{attrs:{label:"smid",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smid",e.validatorRules.smid],expression:"[ 'smid', validatorRules.smid]"}],attrs:{placeholder:"smid",disabled:e.isVerifyPass}})],1)],1)],1)],1)],1)],1)],1)])])],1)},i=[],o=(n("aef6"),n("ade3")),a=(n("df2d"),n("0fea")),s=(n("88bc"),n("2dab")),l=n("fe54"),c=n("c14a"),u=n("d9be"),d=n("de10"),f=n("ba3b"),h=n("ba2e"),p=(n("9fb0"),{name:"MaterialWarehouseModal",props:{urlcong:"",tabs:"",templatetable:""},components:{JDate:s["default"],JSelectDepart:l["default"],JSelectUserByDep:c["default"],city_child:u["default"],mapChoosePoint:d["default"],BackMap:f["default"],TemplateeditsonTabletwo:h["default"]},data:function(){var e;return e={loading:!1,selectedRowKeys:[],selectionRows:[],verify:!1,verify_select:!0,unVerify:!0,cxsp:!1,bid:"",formtwo:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}}},Object(o["a"])(e,"width",966),Object(o["a"])(e,"confirmLoading",!1),Object(o["a"])(e,"validatorRules",{city:{rules:[{required:!0,message:"请选择地区"}]},bt:{rules:[{required:!0,message:"请输入必填字段"}]},btint:{rules:[{required:!0,message:"请输入必填字段,必须为数字"}]}}),Object(o["a"])(e,"showDefaultParams",[]),Object(o["a"])(e,"pointKey","longitudeLatitude"),Object(o["a"])(e,"maskClosable",!1),Object(o["a"])(e,"isVerifyPass",!1),Object(o["a"])(e,"visibleCheck",!0),Object(o["a"])(e,"notes",[]),e},created:function(){},computed:{importExcelUrl:function(){return"/".concat(this.url.importExcelUrl)}},methods:{zhikongtwo:function(e){this.formtwo.resetFields(),this.formtwo.setFieldsValue({save_code:e})},fuzhitwo:function(e){this.formtwo.setFieldsValue(e)},loadData:function(e){var t=this;if(this.bid=e,this.zhikongtwo(this.bid),this.urlcong.list){var n={save_code:this.bid,column:"createTime",order:"desc",field:"id,,district,name,action",pageNo:1,pageSize:1e3};this.loading=!0,""==e?(this.loading=!1,this.$refs.TemplateeditsonTabletwo.dataSource=[]):Object(a["d"])(this.urlcong.list,n).then((function(e){e.success&&console.log("从表对应数据获取完成:"+e.result.records.length),510===e.code&&t.$message.warning(e.message),t.loading=!1,t.$refs.TemplateeditsonTabletwo.dataSource=e.result.records}))}else this.$message.error("请设置urlcong.list属性!")},handleAdd:function(e){this.$refs.modalForm.add(e),this.$refs.modalForm.title="新增"+this.getCurFormTitle(),this.$refs.modalForm.disableSubmit=!1},modalFormOk:function(){this.loadData(this.bid)},rowClicknew:function(e){this.visibleCheck=!1,this.fuzhitwo(e)},handleOktwo:function(){var e=this;if(this.isVerifyPass)alert("审核流程已结束,无法编辑数据");else{var t=this;this.formtwo.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";r.smid?(i+=t.urlcong.edit,o="put",t.$route.path.endsWith("emergency_risk_index")||t.$route.path.endsWith("emergency_resource_index")?i+="/emergency":t.$route.path.endsWith("emergency_data_unaudit")?i+="/weitongguo":i+="/shenheku"):e.verify?t.$message.warning("审核状态无法新增数据"):(i+=t.urlcong.add,o="post");Object.assign(t.model,r);console.log("表单提交数据",r),Object(a["i"])(i,r,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.loadData(t.bid)):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))}},handleCancel:function(){this.$emit("closetwo"),this.$emit("xianshizuoce")},bianjipd:function(e){this.isVerifyPass,1==e.verifyStatus?this.isVerifyPass=!0:this.isVerifyPass=!1},onChose:function(e){1==this.visibleCheck?this.$message.success("已处于新增状态"):e?(this.zhikongtwo(this.bid),this.visibleCheck=!0):this.visibleCheck=!1},biaotouqiehuan:function(){this.$refs.TemplateeditsonTabletwo.columns=this.$refs.TemplateeditsonTabletwo.columnssh},liebiaoqiehuan:function(e){var t=this;console.log("换tab页面数据,从表名称:"+e),Object(a["i"])("/templatesoncong/templatesoncong/modalziduan/"+this.templatetable+"/"+e,{},"get").then((function(n){n.success?(console.log("动态-用户配置的从表字段↓"),console.log(n.result.notes),t.notes=n.result.notes,t.urlqiehuan(e+","+t.bid)):t.$message.warning(n.message)}))},urlqiehuan:function(e){this.$emit("urlqiehuan",e)}}}),m=p,g=n("2877"),v=Object(g["a"])(m,r,i,!1,null,null,null);t["default"]=v.exports},b9e6:function(e,t,n){var r=n("16546").f,i=n("9ba1"),o=n("d75c"),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},ba2e:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-tabs",{attrs:{"default-active-key":0},on:{change:e.onClearSelected}},[e._l(e.tabs,(function(t,r){return[n("a-tab-pane",{key:r,attrs:{tab:t.name}},[n("a-table",{attrs:{customRow:e.rowClicknew,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSource,loading:e.loading,pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[e.unVerify?n("a-dropdown",[e.verify?e._e():n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])]),e.verify?n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",[e._v("删除")])]):e._e()],1):e._e()],1)}}],null,!0)})],1)]}))],2)],1)},i=[],o=(n("4917"),n("487a")),a=n.n(o),s=n("0fea"),l={name:"Table",directives:{infiniteScroll:a.a},props:{loading:"",verify:"",unVerify:"",urlcong:"",tabs:""},data:function(){return{dataSource:[],columns:[{title:"名称",align:"center",width:"70%",dataIndex:"name"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],columnssh:[{title:"名称",align:"center",width:"50%",dataIndex:"name"},{title:"类型",align:"center",width:"20%",dataIndex:"shlx"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],bid:""}},mounted:function(){},methods:{modalFormOk:function(){this.$emit("modalFormOk")},rowClicknew:function(e){var t=this;return{on:{click:function(){t.$emit("rowClicknew",e)}}}},handleDeleteFormDB2:function(e){var t=this;this.urlcong.deletedb2?Object(s["a"])(this.urlcong.deletedb2,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.modalFormOk()):t.$message.warning(e.message)})):this.$message.error("请设置urlcong.deletedb2属性!")},handleDeleteForm:function(e){var t=this;this.urlcong.delete?Object(s["a"])(this.urlcong.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.modalFormOk()):t.$message.warning(e.message)})):this.$message.error("请设置urlcong.delete属性!")},onClearSelected:function(e){for(var t=0;t<this.tabs.length;t++)if(e==t){var n=this.tabs[t].tablename,r=n.match(/^.*[A-Z]+.*$/);null==r||(n='"'+n+'"'),this.liebiaoqiehuan(n)}},liebiaoqiehuan:function(e){this.$emit("liebiaoqiehuan",e)}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},ba3b:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{maskClosable:!1,title:e.title,width:1300,visible:e.visible,confirmLoading:!1,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("mapChoosePoint",{attrs:{model:e.model,pointKey:e.pointKey},on:{lonlatChanged:function(t){return e.lonlatChanged2Map(t)}}})],1)},i=[],o=n("de10"),a={name:"BackMap",components:{mapChoosePoint:o["default"]},data:function(){return{visible:!1,title:"选择坐标",lnglat:"",isVerifyPass:!1}},methods:{handleOk:function(){this.isVerifyPass||this.$emit("lonlatChanged",this.lnglat),this.visible=!1},handleCancel:function(){this.visible=!1},lonlatChanged2Map:function(e){this.lnglat=e}},props:["model","pointKey"]},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"674d7b6c",null);t["default"]=c.exports},ba49:function(e,t,n){},ba5a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{class:e.leftmy},[n("div",{staticClass:"leftmywidth beijingmy"},[n("div",{staticClass:"table-page-search-wrapper leftmywidth"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"地区"}},[n("city_child",{attrs:{params:e.showDefaultParams},on:{func:e.getMsgFormSon},model:{value:e.queryParam.village,callback:function(t){e.$set(e.queryParam,"village",t)},expression:"queryParam.village"}})],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.myQueryParam.name,callback:function(t){e.$set(e.myQueryParam,"name",t)},expression:"myQueryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入名称",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1)],1)],1)],1),n("div",{staticClass:"table-operator leftmywidth"},[n("a-button",{staticClass:"anniu1",attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticClass:"anniu2",attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.biancross}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:e.handleExportXls}},[e._v("导出")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("mapXwyTable",{ref:"mapTable",attrs:{dataSource:e.dataSource,loading:e.loading,columns:e.columns,selectedRowKeys:e.selectedRowKeys,onSelectChange:e.onSelectChange,cxsp:e.cxsp},on:{handleRePassForm:function(t){return e.handleRePassForm(t)},handleDeleteFormDB2:function(t){return e.handleDeleteFormDB2(t)},rowClicknew:function(t){return e.rowClicknew(t)},handleEdit:function(t){return e.handleEdit(t)},handleDeleteForm:function(t){return e.handleDeleteForm(t)},handlePassForm:function(t){return e.handlePassForm(t)},handleNoPassForm:function(t){return e.handleNoPassForm(t)},onClearSelected:function(t){return e.onClearSelected(t)},batchDel:function(t){return e.batchDel(t)}}})],1)]),n("div",{staticStyle:{position:"absolute","z-index":"-100"}},[n("TemplateModal",{ref:"TemplateModal",attrs:{url:e.url},on:{ok:e.modalFormOk,dataSource3ziduan:function(t){return e.dataSource3ziduan(t)},yincangzuoce:function(t){return e.yincangzuoce(t)},xianshizuoce:function(t){return e.xianshizuoce(t)}}})],1),n("div",{ref:"tablediwidth",staticClass:"tabledi",attrs:{id:"tabledi"}},[n("a",{style:e.crosshair,on:{click:e.biandefault}},[n("mapChoosePoints",{ref:"mapChoosePoints",attrs:{model:e.model,pointKey:e.pointKey,iconurl:e.iconurl,visiblets:e.visiblets,loading:e.loading},on:{openedit:function(t){return e.openedit(t)},lonlatChanged:function(t){return e.lonlatChanged(t)},tdupdate:function(t){return e.tdupdate(t)},handleCancelts:function(t){return e.handleCancelts(t)},handleOkts:function(t){return e.handleOkts(t)}}})],1)])])},i=[],o=(n("7b16"),n("d9be")),a=(n("7f7f"),n("28a5"),n("be94")),s=(n("ac6a"),n("ca00")),l=n("0fea"),c=n("2b0e"),u=n("9fb0"),d=(n("89f2"),n("cba0"),n("80f1"),n("eec4")),f=n.n(d),h={data:function(){return{tokenHeader:{"X-Access-Token":c["default"].ls.get(u["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],loading:!1,selectedRowKeys:[],selectionRows:[],cxsp:!1,pointKey:"longitudeLatitude",model:{},crosshair:"cursor:default",visiblets:!1,dataSourcetd:"",loadingts:!1,dataSourcegd:[],leftmy:"leftmyshow",dataSource3zd:"",chooseCategoryId:""}},created:function(){this.chooseCategoryId=this.$store.state.xwy_temlpate_categoryid,this.url.notes=this.url.notes+this.chooseCategoryId,this.url.edit=this.url.edit+this.chooseCategoryId,this.url.add=this.url.add+this.chooseCategoryId,this.url.delete=this.url.delete+this.chooseCategoryId,this.url.wg=this.url.wg+this.chooseCategoryId,this.loadData()},mounted:function(){var e=this,t=f()();t.listenTo(document.getElementById("tabledi"),(function(t){e.$nextTick((function(){e.$refs.mapChoosePoints.changeSize()}))}))},methods:{loadData:function(){var e=this;if(this.url.list){var t=this.getQueryParams();t.categoryId=this.chooseCategoryId,this.loading=!0,Object(l["d"])(this.url.list,t).then((function(t){t.success?(e.dataSource=t.result.records,e.$refs.mapChoosePoints.addVectorLabels(e.dataSource,"")):e.$message.warning(t.success),e.loading=!1}))}else this.$message.error("请设置url.list属性!")},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams));var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),Object(s["b"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData()},searchReset:function(){this.queryParam={},this.loadData()},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(l["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleEdit:function(e){this.$refs.TemplateModal.edit(e),this.$refs.TemplateModal.title="编辑",this.$refs.TemplateModal.disableSubmit=!1},handleAdd:function(e){this.$refs.TemplateModal.add(e),this.$refs.TemplateModal.title="新增",this.$refs.TemplateModal.disableSubmit=!1},modalFormOk:function(){this.loadData()},handleExportXls:function(){var e=this,t=this.tablename,n=Object(a["a"])({},this.queryParam);this.selectedRowKeys&&this.selectedRowKeys.length>0&&(n["selections"]=this.selectedRowKeys.join(",")),Object(l["b"])(this.url.exportXlsUrl,n).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),t+".xls");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else e.$message.warning("文件下载失败")}))},handleDeleteForm:function(e){if(this.url.delete){var t=this;Object(l["a"])(t.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},getMsgFormSon:function(e){this.queryParam.village=e.village,this.queryParam.city=e.city,this.queryParam.street=e.street,this.queryParam.district=e.district},lonlatChanged:function(e){this.model[this.pointKey]=e;var t=e.split(",");this.model.longitude=t[0],this.model.latitude=t[1]},yincangzuoce:function(){this.leftmy="leftmyhide"},xianshizuoce:function(){this.leftmy="leftmyshow",this.$refs.mapChoosePoints.addVectorLabels("还原点位数据")},biancross:function(){this.crosshair="cursor:crosshair"},biandefault:function(){"cursor:crosshair"==this.crosshair&&(this.$refs.mapChoosePoints.linshidadian(this.model),this.handleAdd(this.model)),this.crosshair="cursor:default"},rowClick:function(e){var t=this;return{on:{click:function(){t.$refs.mapChoosePoints.chooseAddressmy(e)}}}},rowClicknew:function(e){this.$refs.mapChoosePoints.chooseAddressmy(e)}},watch:{"myQueryParam.name":{handler:function(e,t){this.queryParam.name=this.myQueryParam.name},deep:!0},"queryParam.name":{handler:function(e,t){void 0==e&&(this.myQueryParam.name="")},deep:!0},"queryParam.village":{handler:function(e,t){void 0==e&&(this.showDefaultParams=[])},deep:!0}}},p=n("6020"),m=n("d46e"),g=n("237a"),v={name:"XwyTemplateList",mixins:[h],components:{city_child:o["default"],mapChoosePoints:p["default"],mapXwyTable:m["default"],TemplateModal:g["default"]},data:function(){return{description:"通用页面",iconurl:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",columns:[{title:"名称",align:"center",width:"50%",dataIndex:"name"},{title:"操作",dataIndex:"action",width:"30%",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/aqs/list",notes:"/aqs/getTableFields/",add:"/aqs/add/",edit:"/aqs/edit/",delete:"/aqs/delete/",wg:"/aqs/getWGArea/"},dictOptions:{verifyStatus:[]},myQueryParam:{name:""},showDefaultParams:[]}}},y=v,b=(n("fe3b"),n("2877")),_=Object(b["a"])(y,r,i,!1,null,"8cc095b0",null);t["default"]=_.exports},ba8b:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},bb1f:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("c5f6"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_2__),D_psh_workspace_manage_safe_prduce_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("2909"),_api_manage__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("0fea"),_components_dict_JDictSelectUtil__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("89f2"),_utils_util__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("ca00"),_components_jeecg_JImportModal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("7c93");__webpack_exports__["a"]={name:"OnlCgformTreeList",components:{JImportModal:_components_jeecg_JImportModal__WEBPACK_IMPORTED_MODULE_7__["default"]},data:function(){return{code:"87b55a515d3441b6b98e48e5b35474a6",description:"在线报表功能测试页面",currentTableName:"",pidField:"",hasChildrenField:"",textField:"",loading:!1,columns:[],dataSource:[],selectedRowKeys:[],selectionRows:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},url:{getColumns:"/online/cgform/api/getColumns/",getTreeData:"/online/cgform/api/getTreeData/",optPre:"/online/cgform/api/form/",exportXls:"/online/cgform/api/exportXls/",buttonAction:"/online/cgform/api/doButton",startProcess:"/process/extActProcess/startMutilProcess"},isorter:{column:"create_time",order:"desc"},dictOptions:{},queryParam:{},actionColumn:{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},fixed:"right",align:"center",width:150},formTemplate:"99",cgButtonLinkList:[],cgButtonList:[],EnhanceJS:"",buttonSwitch:{add:!0,update:!0,delete:!0,batch_delete:!0,import:!0,export:!0},expandedRowKeys:[]}},created:function(){var e=this;this.initAutoListConfig().then((function(){e.loadData(1)})).catch((function(e){console.log(e)}))},mounted:function(){},watch:{$route:function(){var e=this;this.initAutoListConfig().then((function(){e.loadData(1)})).catch((function(e){console.log(e)}))}},computed:{tableProps:function(){var e=this;return{rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:function(t){return e.selectedRowKeys=t}}}}},methods:{resetData:function(){this.description="",this.currentTableName="",this.pidField="",this.hasChildrenField="",this.textField="",this.columns=[],this.dataSource=[],this.selectedRowKeys=[],this.selectionRows=[]},initAutoListConfig:function(){var e=this;return new Promise((function(t,n){e.$route.params.code?(e.resetData(),e.loading=!0,e.code=e.$route.params.code,Object(_api_manage__WEBPACK_IMPORTED_MODULE_4__["d"])("".concat(e.url.getColumns).concat(e.code)).then((function(r){console.log("--onlineList-加载动态列>>",r),r.success?(e.configInfohandler(r),t()):n("onlineList-加载表配置信息失败"),e.loading=!1})).catch((function(e){n(e)}))):n("列表加载需要参数CODE为空!")}))},configInfohandler:function(e){var t=this;this.dictOptions=e.result.dictOptions,this.formTemplate=e.result.formTemplate,this.description=e.result.description,this.currentTableName=e.result.currentTableName,this.pidField=e.result.pidField,this.hasChildrenField=e.result.hasChildrenField,this.textField=e.result.textField,this.initCgButtonList(e.result.cgButtonList),this.initCgEnhanceJs(e.result.enhanceJs),this.initButtonSwitch(e.result.hideColumns);for(var n=e.result.columns,r=-1,i=0;i<n.length;i++)n[i].align="left",this.textField==n[i].dataIndex&&(r=i),n[i].customRender&&function(){var e=n[i].customRender;n[i].customRender=function(n){return Object(_components_dict_JDictSelectUtil__WEBPACK_IMPORTED_MODULE_5__["b"])(t.dictOptions[e],n)}}();if(-1!=r){var o=n.splice(r,1);n.unshift(o[0])}n.push(this.actionColumn),this.columns=Object(D_psh_workspace_manage_safe_prduce_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["a"])(n)},loadData:function(e){var t=this;1==e&&(this.pagination.current=1),this.loading=!0,this.expandedRowKeys=[];var n=this.getQueryParams();n[this.pidField]="0",console.log("--onlineList-查询条件--\x3e",n),Object(_api_manage__WEBPACK_IMPORTED_MODULE_4__["d"])("".concat(this.url.getTreeData).concat(this.code),n).then((function(e){if(console.log("--onlineList-列表数据",e),e.success){var n=e.result;if(Number(n.total)>0){t.pagination.total=Number(n.total);var r=e.result.records.map((function(e){if(!0===e[t.hasChildrenField]||"1"==e[t.hasChildrenField]){var n={id:"".concat(e.id,"_loadChild"),name:"loading...",isLoading:!0};e.children=[n]}return e}));t.dataSource=r}else t.pagination.total=0,t.dataSource=[]}else t.$message.warning(e.message);t.loading=!1}))},handleExpand:function(e,t){var n=this;if(e){if(this.expandedRowKeys.push(t.id),t.children.length>0&&!0===t.children[0].isLoading){var r=this.getQueryParams();r[this.pidField]=t.id,Object(_api_manage__WEBPACK_IMPORTED_MODULE_4__["d"])("".concat(this.url.getTreeData).concat(this.code),r).then((function(e){if(e.success)if(Number(e.result.total)>0){var r=e.result.records.map((function(e){if(!0===e[n.hasChildrenField]||"1"==e[n.hasChildrenField]){var t={id:"".concat(e.id,"_loadChild"),name:"loading...",isLoading:!0};e.children=[t]}return e}));t.children=r}else t.children="",t.hasChildrenField="0";else n.$message.warning(e.message)}))}}else{var i=this.expandedRowKeys.indexOf(t.id);i>=0&&this.expandedRowKeys.splice(i,1)}},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.pageNo=this.pagination.current,e.pageSize=this.pagination.pageSize,Object(_utils_util__WEBPACK_IMPORTED_MODULE_6__["b"])(e)},initCgButtonList:function(e){var t=[],n=[];if(e&&e.length>0)for(var r=0;r<e.length;r++){var i=e[r];"button"==i.buttonStyle?n.push(i):"link"==i.buttonStyle&&t.push(i)}this.cgButtonLinkList=[].concat(t),this.cgButtonList=[].concat(n)},initCgEnhanceJs:function initCgEnhanceJs(enhanceJs){if(enhanceJs){var Obj=eval("("+enhanceJs+")");this.EnhanceJS=new Obj(_api_manage__WEBPACK_IMPORTED_MODULE_4__["d"],_api_manage__WEBPACK_IMPORTED_MODULE_4__["j"],_api_manage__WEBPACK_IMPORTED_MODULE_4__["a"]),this.cgButtonJsHandler("created")}else this.EnhanceJS=""},initButtonSwitch:function(e){var t=this;e&&e.length>0&&Object.keys(this.buttonSwitch).forEach((function(n){e.indexOf(n)>=0&&(t.buttonSwitch[n]=!1)}))},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.pagination=e,this.loadData()},getDateNoTime:function(e){if(!e)return"";var t=e;return t.length>10&&(t=t.substring(0,10)),t},getImgView:function(e){return e&&e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window._CONFIG["imgDomainURL"]+"/"+e},uploadFile:function(e){e?(e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window.open(window._CONFIG["domianURL"]+"/sys/common/download/"+e)):this.$message.warning("未知的文件")},handleEdit:function(e){this.cgButtonLinkHandler(e,"beforeEdit","js"),this.$refs.modal.edit(this.formTemplate,e.id)},handleDetail:function(e){this.$refs.modal.detail(this.formTemplate,e.id)},handleDeleteOne:function(e){this.cgButtonLinkHandler(e,"beforeDelete","js"),this.handleDelete(e.id)},handleDelete:function(e){var t=this;Object(_api_manage__WEBPACK_IMPORTED_MODULE_4__["a"])(this.url.optPre+this.code+"/"+e).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))},handleAdd:function(){this.cgButtonJsHandler("beforeAdd"),this.$refs.modal.add(this.formTemplate)},handleFormSuccess:function(){this.loadData()},handleImportXls:function(){this.$refs.importModal.show()},importOk:function(){this.loadData(1)},getImportUrl:function(){return"/online/cgform/api/importXls/"+this.code},handleExportXls:function(){var e=this,t=this.queryParam;this.selectedRowKeys&&this.selectedRowKeys.length>0&&(t["selections"]=this.selectedRowKeys.join(",")),console.log("导出参数",t);var n=JSON.stringify(Object(_utils_util__WEBPACK_IMPORTED_MODULE_6__["b"])(t));Object(_api_manage__WEBPACK_IMPORTED_MODULE_4__["b"])(this.url.exportXls+this.code,{paramsStr:n}).then((function(t){if(t)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([t]),e.description+".xls");else{var n=window.URL.createObjectURL(new Blob([t])),r=document.createElement("a");r.style.display="none",r.href=n,r.setAttribute("download",e.description+".xls"),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}else e.$message.warning("文件下载失败")}))},handleDelBatch:function(){if(this.selectedRowKeys.length<=0)return this.$message.warning("请选择一条记录!"),!1;var e="",t=this;t.selectedRowKeys.forEach((function(t){e+=t+","})),t.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){t.handleDelete(e),t.onClearSelected()}})},cgButtonLinkHandler:function(e,t,n){var r=this;if("js"==n)this.EnhanceJS[t]&&this.EnhanceJS[t](this,e);else if("action"==n){var i={formId:this.code,buttonCode:t,dataId:e.id};console.log("自定义按钮link请求后台参数:",i),Object(_api_manage__WEBPACK_IMPORTED_MODULE_4__["j"])(this.url.buttonAction,i).then((function(e){e.success?(r.loadData(),r.$message.success("处理完成!")):r.$message.warning("处理失败!")}))}},cgButtonJsHandler:function(e){this.EnhanceJS[e]&&this.EnhanceJS[e](this)},cgButtonActionHandler:function(e){var t=this;if(!this.selectedRowKeys||0==this.selectedRowKeys.length)return this.$message.warning("请先选中一条记录"),!1;if(this.selectedRowKeys.length>1)return this.$message.warning("请只选中一条记录"),!1;var n={formId:this.code,buttonCode:e,dataId:this.selectedRowKeys[0]};console.log("自定义按钮请求后台参数:",n),Object(_api_manage__WEBPACK_IMPORTED_MODULE_4__["j"])(this.url.buttonAction,n).then((function(e){e.success?(t.loadData(),t.$message.success("处理完成!")):t.$message.warning("处理失败!")}))}}}},bb6c:function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o=void 0!==i?i:[],a=0,s=t;s<n;s+=r)o[a++]=e.slice(s,s+r);return o.length=a,o}function i(e,t,n,i,o){for(var a=void 0!==o?o:[],s=0,l=0,c=n.length;l<c;++l){var u=n[l];a[s++]=r(e,t,u,i,a[s]),t=u}return a.length=s,a}function o(e,t,n,r,o){for(var a=void 0!==o?o:[],s=0,l=0,c=n.length;l<c;++l){var u=n[l];a[s++]=i(e,t,u,r,a[s]),t=u[u.length-1]}return a.length=s,a}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},bb705:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"标题"}},[n("a-input",{attrs:{placeholder:"请输入标题"},model:{value:e.queryParam.titile,callback:function(t){e.$set(e.queryParam,"titile",t)},expression:"queryParam.titile"}})],1)],1),n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"发布人"}},[n("a-input",{attrs:{placeholder:"请输入发布人"},model:{value:e.queryParam.sender,callback:function(t){e.$set(e.queryParam,"sender",t)},expression:"queryParam.sender"}})],1)],1),n("a-col",{attrs:{span:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"book"},on:{click:e.readAll}},[e._v("全部标注已读")])],1),n("a-table",{ref:"table",attrs:{size:"default",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.showAnnouncement(r)}}},[e._v("查看")])])}}])}),n("show-announcement",{ref:"ShowAnnouncement"})],1)},i=[],o=(n("ca00"),n("0fea")),a=n("2bd9"),s=n("b65a"),l={name:"UserAnnouncementList",mixins:[s["a"]],components:{ShowAnnouncement:a["default"]},data:function(){return{description:"系统通告表管理页面",queryParam:{},columns:[{title:"标题",align:"center",dataIndex:"titile"},{title:"消息类型",align:"center",dataIndex:"msgCategory",customRender:function(e){return"1"==e?"通知公告":"2"==e?"系统消息":e}},{title:"发布人",align:"center",dataIndex:"sender"},{title:"发布时间",align:"center",dataIndex:"sendTime"},{title:"优先级",align:"center",dataIndex:"priority",customRender:function(e){return"L"==e?"低":"M"==e?"中":"H"==e?"高":e}},{title:"阅读状态",align:"center",dataIndex:"readFlag",customRender:function(e){return"0"==e?"未读":"1"==e?"已读":e}},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/sys/sysAnnouncementSend/getMyAnnouncementSend",editCementSend:"sys/sysAnnouncementSend/editByAnntIdAndUserId",readAllMsg:"sys/sysAnnouncementSend/readAll"},loading:!1}},created:function(){this.loadData()},methods:{handleDetail:function(e){this.$refs.sysAnnouncementModal.detail(e),this.$refs.sysAnnouncementModal.title="查看"},showAnnouncement:function(e){var t=this;Object(o["k"])(this.url.editCementSend,{anntId:e.anntId}).then((function(e){e.success&&t.loadData()})),this.$refs.ShowAnnouncement.detail(e)},readAll:function(){var e=this;e.$confirm({title:"确认操作",content:"是否全部标注已读?",onOk:function(){Object(o["k"])(e.url.readAllMsg).then((function(t){t.success&&(e.$message.success(t.message),e.loadData())}))}})}}},c=l,u=(n("10d3"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"45efc35f",null);t["default"]=d.exports},bbb4:function(e,t,n){var r=n("2ef0"),i=n("9eab");function o(e){e=e||r.identity;var t=function(t){function n(e,n){"function"===typeof e?(n=e,e={}):(e=e||{},n="function"===typeof n?n:null);try{return l(this.transport,t,r.clone(e),n)}catch(a){if("function"!==typeof n){var o=this.transport.defer();return o.reject(a),o.promise}i.nextTick(n,a)}}return t=e(t),r.isPlainObject(t.params)||(t.params={}),t.method||(t.method="GET"),n.spec=t,n};return t.proxy=function(e,t){return function(n,r){return"function"===typeof n?(r=n,n={}):(n=n||{},r="function"===typeof r?r:null),t.transform&&t.transform(n),e.call(this,n,r)}},t}t.makeFactoryWithModifier=o,t.factory=o(),t.proxyFactory=t.factory.proxy,t._resolveUrl=s,t.ApiNamespace=function(){},t.namespaceFactory=function(){function e(e,t){this.transport=e,this.client=t}return e.prototype=new t.ApiNamespace,e};var a={enum:function e(t,n,i){if(r.isString(n)&&n.indexOf(",")>-1&&(n=c(n)),r.isArray(n))return n.map((function(n){return e(t,n,i)})).join(",");for(var o=0;o<t.options.length;o++)if(t.options[o]===String(n))return t.options[o];throw new TypeError("Invalid "+i+": expected "+(t.options.length>1?"one of "+t.options.join(","):t.options[0]))},duration:function(e,t,n){if(i.isNumeric(t)||i.isInterval(t))return t;throw new TypeError("Invalid "+n+": expected a number or interval (an integer followed by one of M, w, d, h, m, s, y or ms).")},list:function(e,t,n){switch(typeof t){case"number":case"boolean":return""+t;case"string":t=c(t);case"object":if(r.isArray(t))return t.join(",");default:throw new TypeError("Invalid "+n+": expected be a comma separated list, array, number or string.")}},boolean:function(e,t){return t=r.isString(t)?t.toLowerCase():t,"no"!==t&&"off"!==t&&!!t},number:function(e,t,n){if(i.isNumeric(t))return 1*t;throw new TypeError("Invalid "+n+": expected a number.")},string:function(e,t,n){switch(typeof t){case"number":case"string":return""+t;default:throw new TypeError("Invalid "+n+": expected a string.")}},time:function(e,t,n){if("string"===typeof t)return t;if(i.isNumeric(t))return""+t;if(t instanceof Date)return""+t.getTime();throw new TypeError("Invalid "+n+": expected some sort of time.")}};function s(e,t){var n,i,o={};if(e.req)for(e.reqParamKeys||(e.reqParamKeys=r.keys(e.req)),n=0;n<e.reqParamKeys.length;n++){if(i=e.reqParamKeys[n],!t.hasOwnProperty(i)||null==t[i])return!1;a[e.req[i].type]?o[i]=a[e.req[i].type](e.req[i],t[i],i):o[i]=t[i]}if(e.opt)for(e.optParamKeys||(e.optParamKeys=r.keys(e.opt)),n=0;n<e.optParamKeys.length;n++)i=e.optParamKeys[n],t[i]?a[e.opt[i].type]||null==t[i]?o[i]=a[e.opt[i].type](e.opt[i],t[i],i):o[i]=t[i]:o[i]=e.opt[i]["default"];return e.template||(e.template=r.template(e.fmt)),e.template(r.transform(o,(function(e,n,r){e[r]=encodeURIComponent(n),delete t[r]}),{}))}function l(e,t,n,o){var l,c={method:t.method},u={};if(t.requestTimeout&&(c.requestTimeout=t.requestTimeout),!n.body&&t.paramAsBody&&("object"===typeof t.paramAsBody?(n.body={},t.paramAsBody.castToArray?n.body[t.paramAsBody.body]=[].concat(n[t.paramAsBody.param]):n.body[t.paramAsBody.body]=n[t.paramAsBody.param],delete n[t.paramAsBody.param]):(n.body=n[t.paramAsBody],delete n[t.paramAsBody])),t.needsBody&&!n.body)throw new TypeError("A request body is required.");if(t.bulkBody&&(c.bulkBody=!0),"HEAD"===t.method&&(c.castExists=!0),t.url)c.path=s(t.url,n);else for(l=0;l<t.urls.length;l++)if(c.path=s(t.urls[l],n),c.path)break;if(!c.path){var d=t.url||t.urls[t.urls.length-1];throw new TypeError("Unable to build a path with those params. Supply at least "+r.keys(d.req).join(", "))}for(var f in t.paramKeys||(t.paramKeys=r.keys(t.params),t.requireParamKeys=r.transform(t.params,(function(e,t,n){t.required&&e.push(n)}),[])),n)if(n.hasOwnProperty(f)&&null!=n[f])switch(f){case"body":case"headers":case"requestTimeout":case"maxRetries":c[f]=n[f];break;case"ignore":c.ignore=r.isArray(n[f])?n[f]:[n[f]];break;case"method":c.method=i.toUpperString(n[f]);break;default:var h=t.params[f];h?(h.name=h.name||f,null!=n[f]&&(a[h.type]?u[h.name]=a[h.type](h,n[f],f):u[h.name]=n[f],h["default"]&&u[h.name]===h["default"]&&delete u[h.name])):u[f]=n[f]}for(l=0;l<t.requireParamKeys.length;l++)if(!u.hasOwnProperty(t.requireParamKeys[l]))throw new TypeError("Missing required parameter "+t.requireParamKeys[l]);return c.query=u,e.request(c,o)}function c(e){return e.split(",").map((function(e){return e.trim()}))}},bd48:function(e,t,n){"use strict";n("6576")},bdb3:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div")},i=[],o={name:"nullPage"},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"303ffe56",null);t["default"]=l.exports},bde6:function(e,t){e.exports=function(e){var t=e[0];return e.push(e.shift()),t}},be46:function(e,t,n){var r=n("a793"),i=n("5da3");e.exports=function(e){return r(i(e))}},be91:function(e,t,n){"use strict";n("7bf3")},beb2:function(e,t,n){"use strict";var r,i,o,a,s=n("9c2cc"),l=n("8f26"),c=n("2ace"),u=n("4587"),d=n("043b"),f=n("5ab0"),h=n("2ce7"),p=n("b9e6"),m=n("f418"),g=n("4b0b"),v=n("8e4c"),y=n("ba8b"),b=n("b0d2"),_=n("9ef1"),w=n("5ff1"),x=n("36e7"),S=n("5d37").set,C=n("8333"),E=n("4d1c"),k=n("9401"),O=n("cc58"),T=n("f317"),I=n("510e"),A=n("9866"),R=n("d75c"),P=n("2062"),M=n("68d2"),N=R("species"),L="Promise",D=I.get,j=I.set,F=I.getterFor(L),B=d,q=c.TypeError,z=c.document,U=c.process,G=u("fetch"),V=O.f,W=V,H=!!(z&&z.createEvent&&c.dispatchEvent),$="function"==typeof PromiseRejectionEvent,K="unhandledrejection",X="rejectionhandled",Y=0,J=1,Q=2,Z=1,ee=2,te=A(L,(function(){var e=b(B)!==String(B);if(!e){if(66===M)return!0;if(!P&&!$)return!0}if(l&&!B.prototype["finally"])return!0;if(M>=51&&/native code/.test(B))return!1;var t=B.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[N]=n,!(t.then((function(){}))instanceof n)})),ne=te||!w((function(e){B.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;C((function(){var r=e.value,i=e.state==J,o=0;while(n.length>o){var a,s,l,c=n[o++],u=i?c.ok:c.fail,d=c.resolve,f=c.reject,h=c.domain;try{u?(i||(e.rejection===ee&&le(e),e.rejection=Z),!0===u?a=r:(h&&h.enter(),a=u(r),h&&(h.exit(),l=!0)),a===c.promise?f(q("Promise-chain cycle")):(s=re(a))?s.call(a,d,f):d(a)):f(r)}catch(p){h&&!l&&h.exit(),f(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},oe=function(e,t,n){var r,i;H?(r=z.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!$&&(i=c["on"+e])?i(r):e===K&&k("Unhandled promise rejection",n)},ae=function(e){S.call(c,(function(){var t,n=e.facade,r=e.value,i=se(e);if(i&&(t=T((function(){P?U.emit("unhandledRejection",r,n):oe(K,n,r)})),e.rejection=P||se(e)?ee:Z,t.error))throw t.value}))},se=function(e){return e.rejection!==Z&&!e.parent},le=function(e){S.call(c,(function(){var t=e.facade;P?U.emit("rejectionHandled",t):oe(X,t,e.value)}))},ce=function(e,t,n){return function(r){e(t,r,n)}},ue=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Q,ie(e,!0))},de=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw q("Promise can't be resolved itself");var r=re(t);r?C((function(){var n={done:!1};try{r.call(t,ce(de,n,e),ce(ue,n,e))}catch(i){ue(n,i,e)}})):(e.value=t,e.state=J,ie(e,!1))}catch(i){ue({done:!1},i,e)}}};te&&(B=function(e){y(this,B,L),v(e),r.call(this);var t=D(this);try{e(ce(de,t),ce(ue,t))}catch(n){ue(t,n)}},r=function(e){j(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Y,value:void 0})},r.prototype=h(B.prototype,{then:function(e,t){var n=F(this),r=V(x(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=P?U.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Y&&ie(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=D(e);this.promise=e,this.resolve=ce(de,t),this.reject=ce(ue,t)},O.f=V=function(e){return e===B||e===o?new i(e):W(e)},l||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof G&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(B,G.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:B}),p(B,L,!1,!0),m(L),o=u(L),s({target:L,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:l||te},{resolve:function(e){return E(l&&this===o?B:this,e)}}),s({target:L,stat:!0,forced:ne},{all:function(e){var t=this,n=V(t),r=n.resolve,i=n.reject,o=T((function(){var n=v(t.resolve),o=[],a=0,s=1;_(e,(function(e){var l=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,i=T((function(){var i=v(t.resolve);_(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},bef8:function(e,t,n){"use strict";function r(e,t,n,r,i,o){for(var a=o||[],s=0,l=t;l<n;l+=r){var c=e[l],u=e[l+1];a[s++]=i[0]*c+i[2]*u+i[4],a[s++]=i[1]*c+i[3]*u+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(e,t,n,r,i,o,a){for(var s=a||[],l=Math.cos(i),c=Math.sin(i),u=o[0],d=o[1],f=0,h=t;h<n;h+=r){var p=e[h]-u,m=e[h+1]-d;s[f++]=u+p*l-m*c,s[f++]=d+p*c+m*l;for(var g=h+2;g<h+r;++g)s[f++]=e[g]}return a&&s.length!=f&&(s.length=f),s}function o(e,t,n,r,i,o,a,s){for(var l=s||[],c=a[0],u=a[1],d=0,f=t;f<n;f+=r){var h=e[f]-c,p=e[f+1]-u;l[d++]=c+i*h,l[d++]=u+o*p;for(var m=f+2;m<f+r;++m)l[d++]=e[m]}return s&&l.length!=d&&(l.length=d),l}function a(e,t,n,r,i,o,a){for(var s=a||[],l=0,c=t;c<n;c+=r){s[l++]=e[c]+i,s[l++]=e[c+1]+o;for(var u=c+2;u<c+r;++u)s[l++]=e[u]}return a&&s.length!=l&&(s.length=l),s}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a}))},bf06:function(e,t,n){},bf13:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chart-mini-progress"},[n("div",{staticClass:"target",style:{left:e.target+"%"}},[n("span",{style:{backgroundColor:e.color}}),n("span",{style:{backgroundColor:e.color}})]),n("div",{staticClass:"progress-wrapper"},[n("div",{staticClass:"progress",style:{backgroundColor:e.color,width:e.percentage+"%",height:e.height+"px"}})])])},i=[],o=(n("c5f6"),{name:"MiniProgress",props:{target:{type:Number,default:0},height:{type:Number,default:10},color:{type:String,default:"#13C2C2"},percentage:{type:Number,default:0}}}),a=o,s=(n("8500"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"83beb760",null);t["default"]=l.exports},bf62:function(e,t,n){"use strict";t["a"]={ACTIVE:"active"}},c010:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.async?n("a-select",{staticStyle:{width:"100%"},attrs:{showSearch:"",labelInValue:"",placeholder:e.placeholder,filterOption:!1,notFoundContent:e.loading?void 0:null},on:{search:e.loadData,change:e.handleAsyncChange},model:{value:e.selectedAsyncValue,callback:function(t){e.selectedAsyncValue=t},expression:"selectedAsyncValue"}},[e.loading?n("a-spin",{attrs:{slot:"notFoundContent",size:"small"},slot:"notFoundContent"}):e._e(),e._l(e.options,(function(t){return n("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.text))])}))],2):n("a-select",{staticStyle:{width:"100%"},attrs:{showSearch:"",placeholder:e.placeholder,optionFilterProp:"children",filterOption:e.filterOption,notFoundContent:e.loading?void 0:null},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}},[e.loading?n("a-spin",{attrs:{slot:"notFoundContent",size:"small"},slot:"notFoundContent"}):e._e(),e._l(e.options,(function(t){return n("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.text))])}))],2)},i=[],o=n("2909"),a=n("be94"),s=n("4ec3"),l=n("b047"),c=n.n(l),u=n("0fea"),d={name:"JSearchSelectTag",props:{disabled:Boolean,value:String,dict:String,dictOptions:Array,async:Boolean,placeholder:{type:String,default:"请选择",required:!1}},data:function(){return this.loadData=c()(this.loadData,800),this.lastLoad=0,{loading:!1,selectedValue:[],selectedAsyncValue:[],options:[]}},created:function(){this.initDictData()},watch:{value:{immediate:!0,handler:function(e){e?this.initSelectValue():(this.selectedValue=[],this.selectedAsyncValue=[])}},dict:{handler:function(){this.initDictData()}}},methods:{initSelectValue:function(){var e=this;this.async?this.selectedAsyncValue&&this.selectedAsyncValue.key&&this.selectedAsyncValue.key==this.value||(console.log("这才请求后台"),Object(u["d"])("/sys/dict/loadDictItem/".concat(this.dict),{key:this.value}).then((function(t){if(t.success){var n={key:e.value,label:t.result};e.selectedAsyncValue=Object(a["a"])({},n)}}))):this.selectedValue=this.value},loadData:function(e){var t=this;console.log("数据加载",e),this.lastLoad+=1;var n=this.lastLoad;this.options=[],this.loading=!0,Object(u["d"])("/sys/dict/loadDict/".concat(this.dict),{keyword:e}).then((function(e){if(t.loading=!1,e.success){if(n!=t.lastLoad)return;t.options=e.result,console.log("我是第一个",e)}else t.$message.warning(e.message)}))},initDictData:function(){var e=this;this.async||(this.dictOptions&&this.dictOptions.length>0?this.options=Object(o["a"])(this.dictOptions):Object(s["f"])(this.dict,null).then((function(t){t.success&&(e.options=t.result)})))},filterOption:function(e,t){return t.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},handleChange:function(e){console.log("selectedValue",e),this.selectedValue=e,this.callback()},handleAsyncChange:function(e){this.selectedAsyncValue=e,this.selectedValue=e.key,this.callback()},callback:function(){this.$emit("change",this.selectedValue)},setCurrentDictOptions:function(e){this.options=e},getCurrentDictOptions:function(){return this.options}},model:{prop:"value",event:"change"}},f=d,h=n("2877"),p=Object(h["a"])(f,r,i,!1,null,"a0c5fcf6",null);t["default"]=p.exports},c01e:function(e,t,n){},c047:function(e,t,n){},c053:function(e,t,n){},c0e0:function(e,t,n){"use strict";var r=n("9c2cc"),i=n("4578").trim,o=n("e490");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},c0e2:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var n=t(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),r=t(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),i=t(["true","false","nil","self","super","_"]),o=t(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),a="+-/*%=|&<>~^?!",s=":;,.(){}[]",l=/^\-?0b[01][01_]*/,c=/^\-?0o[0-7][0-7_]*/,u=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,d=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,f=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,h=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,p=/^\#[A-Za-z]+/,m=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function g(e,t,g){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var v,_=e.peek();if("/"==_){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(b),b(e,t)}if(e.match(p))return"builtin";if(e.match(m))return"attribute";if(e.match(l))return"number";if(e.match(c))return"number";if(e.match(u))return"number";if(e.match(d))return"number";if(e.match(h))return"property";if(a.indexOf(_)>-1)return e.next(),"operator";if(s.indexOf(_)>-1)return e.next(),e.match(".."),"punctuation";if(v=e.match(/("""|"|')/)){var w=y.bind(null,v[0]);return t.tokenize.push(w),w(e,t)}if(e.match(f)){var x=e.current();return o.hasOwnProperty(x)?"variable-2":i.hasOwnProperty(x)?"atom":n.hasOwnProperty(x)?(r.hasOwnProperty(x)&&(t.prev="define"),"keyword"):"define"==g?"def":"variable"}return e.next(),null}function v(){var e=0;return function(t,n,r){var i=g(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function y(e,t,n){var r,i=1==e.length,o=!1;while(r=t.peek())if(o){if(t.next(),"("==r)return n.tokenize.push(v()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function b(e,t){var n;while(1){if(e.match(/^[^/*]+/,!0),n=e.next(),!n)break;"/"===n&&e.eat("*")?t.tokenize.push(b):"*"===n&&e.eat("/")&&t.tokenize.pop()}return"comment"}function _(e,t,n){this.prev=e,this.align=t,this.indented=n}function w(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new _(e.context,n,e.indented)}function x(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}e.defineMode("swift",(function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=t.tokenize[t.tokenize.length-1]||g,i=r(e,t,n);if(i&&"comment"!=i?t.prev||(t.prev=i):t.prev=n,"punctuation"==i){var o=/[\(\[\{]|([\]\)\}])/.exec(e.current());o&&(o[1]?x:w)(t,e)}return i},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}})),e.defineMIME("text/x-swift","swift")}))},c0fa:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-tree",{attrs:{checkable:"","expanded-keys":e.expandedKeys,"auto-expand-parent":e.autoExpandParent,"selected-keys":e.selectedKeys,"tree-data":e.treeData},on:{expand:e.onExpand,select:e.onSelect},model:{value:e.checkedKeys,callback:function(t){e.checkedKeys=t},expression:"checkedKeys"}})],1)],1)},i=[],o=n("0fea"),a={name:"WlgzVideoModal",data:function(){return{title:"授权",visible:!1,model:{},confirmLoading:!1,label:"",treeData:[],selectedKeys:[],expandedKeys:[],autoExpandParent:!0,checkedKeys:[],wlgzId:""}},created:function(){},methods:{open:function(){this.visible=!0},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){this.checkedKeys=e},onSelect:function(e,t){this.selectedKeys=e},close:function(){this.$emit("close"),this.treeData=[],this.selectedKeys=[],this.checkedKeys=[],this.visible=!1},handleOk:function(){var e=this,t={};t.wlgzId=this.wlgzId;for(var n="",r=0;r<this.checkedKeys.length;r++)n+=this.checkedKeys[r]+",";t.videoIds=n,Object(o["d"])("/wlgz_video/wlgzVideo/save",t).then((function(t){t.success?(e.close(),e.$emit("ok")):that.$message.warning(t.message)}))},handleCancel:function(){this.close()}},watch:{checkedKeys:function(e){}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"7acc93e8",null);t["default"]=c.exports},c120:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",staticStyle:{width:"350px"},on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),n("div",{staticClass:"yingxiang"},[n("a-dropdown",[n("a-button",{attrs:{type:"primary",icon:"swap"}},[e._v("地图切换")]),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.tdmapin()}}},[e._v("\n            标准\n          ")])]),n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.supermapin()}}},[e._v("\n            影像\n          ")])])],1)],1)],1),n("div",{ref:"mapswidth",staticClass:"mapmy1",attrs:{id:"map"}})],1)},i=[],o=(n("c5f6"),n("6b54"),n("a481"),n("28a5"),n("5bc0"),n("5eee")),a=n("a2c7"),s=n("480c"),l=n("3e6b"),c=n("d0e9"),u=n("91b1"),d=n("58315"),f=n("256f"),h=n("a568"),p=n("020f"),m=n("6c77"),g=n("6cbf"),v=n("8295"),y=n("83a6"),b=n("8682"),_=n("4cdf"),w=n("f403"),x=n("0af5"),S=n("78db"),C=n("84a1"),E=n("9834"),k=(n("0fea"),{name:"mapChooseLine",components:{aSelect:C["default"]},data:function(){return{vector:{},source:{},map:{},raster:new s["a"]({source:new c["a"]}),centerArr:[120.6790539441963,27.9979803194757],arr:"",tdt_vec:{},layer:{},zhuji:{},pd:0,zoom:12}},mounted:function(){this.init()},created:function(){},watch:{model:{handler:function(e,t){this.vector.getSource().clear();var n=this.centerArr;void 0!=e[this.pointKey]&&(n=this.checkModel(),this.initPoint(n)),this.map.getView().animate({center:[n[0],n[1]]})},deep:!0}},methods:{chooseAddress:function(e){var t=e.split(",");this.map.getView().zoom=16,this.map.getView().animate({center:[t[0],t[1]]}),this.$emit("lonlatChanged",t[0]+","+t[1]);var n=[t[0],t[1]];this.addVectorLabel("",n)},getTdtLayer:function(e){var t,n="http://t2.tianditu.gov.cn/DataServer?T="+e+"&x={x}&y={y}&l={z}&tk=8971e4c7b3640d506c2dc111221af6a0",r=Object(f["f"])("EPSG:4326"),i=[-180,-90,180,90],o=Object(x["E"])(i)/512,a=new Array(16);for(t=0;t<16;++t)a[t]=o/Math.pow(2,t);var l=Object(x["C"])(i),c=new s["a"]({extent:[-180,-90,180,90],source:new u["a"]({tileUrlFunction:function(e){var t=e[0]+1,r=e[1],i=-e[2]-1,o=Math.pow(2,t+1);return r%=o,r*o<0&&(r+=o),n.replace("{z}",t.toString()).replace("{y}",i.toString()).replace("{x}",r.toString())},projection:r,tileGrid:new S["a"]({origin:l,resolutions:a,tileSize:256})})});return c},init:function(){Object(f["o"])(),this.initVariable();var e=this.checkModel();this.initMap(e),this.initEvent(),this.supermapin()},initVariable:function(){this.source=new d["a"],this.vector=new l["a"]({source:this.source,style:this.createLabelStyle()})},checkModel:function(){var e=this.model[this.pointKey];if(null!=e&&void 0!=e&&""!=e&&"undefined,undefined"!=e){var t=e.split(",");if(2==t.length){for(var n=0;n<t.length;n++)t[n]=Number(t[n]);return this.initPoint(t),t}}return this.centerArr},initMap:function(e){this.arr=e,this.map=new o["a"]({target:"map",view:new a["a"]({center:[this.arr[0],this.arr[1]],zoom:this.zoom,projection:"EPSG:4326"})}),this.tdmapin()},supermapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.layer=new s["a"]({source:new E["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.map.removeLayer(this.tdt_vec),this.map.removeLayer(this.vector),this.map.removeLayer(this.zhuji),this.map.addLayer(this.layer);var t="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.zhuji=new s["a"]({source:new E["a"]({url:t,wrapX:!0}),projection:"EPSG:4326"}),this.map.addLayer(this.zhuji),this.map.addLayer(this.vector)},tdmapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.tdt_vec=new s["a"]({source:new E["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.map.removeLayer(this.layer),this.map.removeLayer(this.vector),this.map.removeLayer(this.zhuji),this.map.addLayer(this.tdt_vec),this.map.addLayer(this.vector)},yingxiang:function(){0==this.pd?(this.supermapin(),this.pd=1):(this.tdmapin(),this.pd=0)},initEvent:function(){var e=this;this.map.on("singleclick",(function(t){console.log(t);var n=e.map.getEventCoordinate(t.originalEvent);e.$emit("lonlatChanged",n[0]+","+n[1]);var r=[n[0],n[1]];e.addVectorLabel("",r)}));var t=new p["a"]({coordinateFormat:function(e){return Object(h["f"])(e,"经度:{x} 纬度:{y}",2)},projection:"EPSG:4326",className:"custom-mouse-position",target:document.getElementById("mouse-position"),undefinedHTML:"&nbsp;"});this.map.addControl(t)},addVectorLabel:function(e,t){var n=new _["a"]({geometry:new w["a"](t),name:e});n.setStyle(this.createLabelStyle(n)),this.vector.getSource().clear(),this.vector.getSource().addFeature(n)},createLabelStyle:function(e){var t=" ";return void 0!=e&&(t=e.get("name")),new m["c"]({image:new g["a"]({anchor:[.5,20],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"}),text:new v["a"]({textAlign:"center",textBaseline:"middle",font:"normal 14px 微软雅黑",text:t,fill:new y["a"]({color:"#fff"}),stroke:new b["a"]({color:"#ffcc33",width:2})}),zIndex:20})},initPoint:function(e){var t=[e[0],e[1]];this.addVectorLabel("",t)}},props:["model","pointKey"]}),O=k,T=(n("0a6a"),n("2877")),I=Object(T["a"])(O,r,i,!1,null,null,null);t["default"]=I.exports},c14a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-input-search",{attrs:{placeholder:"请先选择用户",disabled:""},on:{search:e.onSearchDepUser},model:{value:e.selectedDepUsers,callback:function(t){e.selectedDepUsers=t},expression:"selectedDepUsers"}},[n("a-button",{attrs:{slot:"enterButton",disabled:e.disabled},slot:"enterButton"},[e._v("选择用户")])],1),n("j-select-user-by-dep-modal",{ref:"selectModal",attrs:{"modal-width":e.modalWidth},on:{ok:e.onSearchDepUserCallBack}})],1)},i=[],o=(n("c5f6"),n("a505")),a={name:"JSelectUserByDep",components:{JSelectUserByDepModal:o["default"]},props:{modalWidth:{type:Number,default:1250,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{selectedDepUsers:""}},mounted:function(){this.selectedDepUsers=this.value},watch:{value:function(e){this.selectedDepUsers=e}},model:{prop:"value",event:"change"},methods:{onSearchDepUser:function(){this.$refs.selectModal.showModal(),this.onSearchDepUserCallBack("")},onSearchDepUserCallBack:function(e){this.selectedDepUsers=e,this.$emit("change",e)}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"d9d06c38",null);t["default"]=c.exports},c1af:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,ok:!1,visible:e.visible,confirmLoading:e.confirmLoading,okButtonProps:{props:{disabled:e.disableSubmit}},cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构名称",hidden:!1,hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["departName",e.validatorRules.departName],expression:"['departName', validatorRules.departName ]"}],attrs:{id:"departName",placeholder:"请输入机构/部门名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,hidden:e.seen,label:"上级部门",hasFeedback:""}},[n("a-tree-select",{staticStyle:{width:"100%"},attrs:{dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.departTree,placeholder:"请选择上级部门",disabled:e.condition},model:{value:e.model.parentId,callback:function(t){e.$set(e.model,"parentId",t)},expression:"model.parentId"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"电话"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",e.validatorRules.mobile],expression:"['mobile',validatorRules.mobile]"}],attrs:{placeholder:"请输入电话"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"传真"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["fax",{}],expression:"['fax', {}]"}],attrs:{placeholder:"请输入传真"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{}],expression:"['address', {}]"}],attrs:{placeholder:"请输入地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["departOrder",{initialValue:0}],expression:"[ 'departOrder',{'initialValue':0}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["memo",{}],expression:"['memo', {}]"}],attrs:{placeholder:"请输入备注"}})],1)],1)],1)],1)},i=[],o=(n("3b2b"),n("6b54"),n("0fea")),a=n("4ec3"),s=n("88bc"),l=n.n(s),c=n("261e"),u={name:"SysDepartModal",components:{ATextarea:c["a"]},data:function(){return{departTree:[],orgTypeData:[],phoneWarning:"",departName:"",title:"操作",seen:!1,visible:!1,condition:!0,disableSubmit:!1,model:{},menuhidden:!1,menuusing:!0,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{departName:{rules:[{required:!0,message:"请输入机构/部门名称!"}]},orgCode:{rules:[{required:!0,message:"请输入机构编码!"}]},mobile:{}},url:{add:"/sys/sysDepart/add"}}},created:function(){},methods:{loadTreeData:function(){var e=this;Object(a["R"])().then((function(t){if(t.success){e.departTree=[];for(var n=0;n<t.result.length;n++){var r=t.result[n];e.departTree.push(r)}}}))},add:function(e){this.seen=!e,this.edit(e)},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},{}),this.visible=!0,this.loadTreeData(),this.model.parentId=null!=e?e.toString():null,this.$nextTick((function(){t.form.setFieldsValue(l()(t.model,"departName","departNameEn","departNameAbbr","departOrder","description","orgType","orgCode","mobile","fax","address","memo","status","delFlag"))}))},close:function(){this.$emit("close"),this.disableSubmit=!1,this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i=Object.assign(e.model,r);console.log(i),Object(o["i"])(e.url.add,i,"post").then((function(e){e.success?(t.$message.success(e.message),t.loadTreeData(),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},validateMobile:function(e,t,n){!t||new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(t)?n():n("您的手机号码格式不正确!")}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"8fdcacda",null);t["default"]=h.exports},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),a=n("9b43"),s=n("f605"),l=n("4a59"),c=n("01f9"),u=n("d53b"),d=n("7a56"),f=n("9e1e"),h=n("67ab").fastKey,p=n("b39a"),m=f?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){s(e,u,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&l(r,n,e[c],e)}));return o(u.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){p(this,t);var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!g(p(this,t),e)}}),f&&r(u.prototype,"size",{get:function(){return p(this,t)[m]}}),u},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},c274:function(e,t,n){"use strict";var r=n("50bf");function i(){var e={},t=0,n=0,r=0;function i(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),e[i]||(e[i]=[]),e[i].push(o),t++}function o(){for(var t=r;t<=n;t++)for(var i=e[t],o=0;o<i.length;o++){var a=i[o];a()}}function a(){return t}return{add:i,process:o,size:a}}e.exports=function(e){e=e||{};var t=e.reporter,n=r.getOption(e,"async",!0),o=r.getOption(e,"auto",!0);o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=i(),l=!1;function c(e,t){!l&&o&&n&&0===s.size()&&f(),s.add(e,t)}function u(){l=!0;while(s.size()){var e=s;s=i(),e.process()}l=!1}function d(e){l||(void 0===e&&(e=n),a&&(h(a),a=null),e?f():u())}function f(){a=p(u)}function h(e){var t=clearTimeout;return t(e)}function p(e){var t=function(e){return setTimeout(e,0)};return t(e)}return{add:c,force:d}}},c2f5:function(e,t,n){},c2f8:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)}}])})],1),n("menuModule-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("1720"),a=n("b65a"),s={name:"MenuModuleList",mixins:[a["a"]],components:{MenuModuleModal:o["default"]},data:function(){return{description:"模块配置管理页面",columns:[{dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"菜单名称",align:"center",dataIndex:"name"},{title:"vueUrl",align:"center",dataIndex:"vueUrl"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/menu_module/menuModule/list3",delete:"/menu_module/menuModule/delete",deleteBatch:"/menu_module/menuModule/deleteBatch",exportXlsUrl:"menu_module/menuModule/exportXls",importExcelUrl:"menu_module/menuModule/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},l=s,c=(n("a031"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"f8e07582",null);t["default"]=u.exports},c33a:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports["default"]=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},c3e2:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-skeleton",{attrs:{active:"",loading:e.loading,paragraph:{rows:17}}},[n("a-card",{attrs:{bordered:!1}},[n("a-alert",{attrs:{type:"info",showIcon:!0}},[n("div",{attrs:{slot:"message"},slot:"message"},[e._v("\n        上次更新时间:"+e._s(this.time)+"\n        "),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:e.handleClickUpdate}},[e._v("立即更新")])],1)]),n("a-table",{staticStyle:{"margin-top":"20px"},attrs:{rowKey:"id",size:"middle",columns:e.columns,dataSource:e.dataSource,pagination:!1,loading:e.tableLoading},scopedSlots:e._u([{key:"param",fn:function(t,r){return[n("a-tag",{attrs:{color:e.textInfo[r.param].color}},[e._v(e._s(t))])]}},{key:"text",fn:function(t,n){return[e._v("\n        "+e._s(e.textInfo[n.param].text)+"\n      ")]}},{key:"value",fn:function(t,n){return[e._v("\n        "+e._s(t)+" "+e._s(e.textInfo[n.param].unit)+"\n      ")]}}])})],1)],1)},i=[],o=(n("7f7f"),n("ac6a"),n("5df3"),n("c1df")),a=n.n(o),s=n("0fea");a.a.locale("zh-cn");var l={data:function(){return{time:"",loading:!0,tableLoading:!0,columns:[{title:"参数",width:"30%",dataIndex:"param",scopedSlots:{customRender:"param"}},{title:"描述",width:"40%",dataIndex:"text",scopedSlots:{customRender:"text"}},{title:"当前值",width:"30%",dataIndex:"value",scopedSlots:{customRender:"value"}}],dataSource:[],textInfo:{"tomcat.sessions.created":{color:"green",text:"tomcat 已创建 session 数",unit:"个"},"tomcat.sessions.expired":{color:"green",text:"tomcat 已过期 session 数",unit:"个"},"tomcat.sessions.active.current":{color:"green",text:"tomcat 当前活跃 session 数",unit:"个"},"tomcat.sessions.active.max":{color:"green",text:"tomcat 活跃 session 数峰值",unit:"个"},"tomcat.sessions.rejected":{color:"green",text:"超过session 最大配置后,拒绝的 session 个数",unit:"个"},"tomcat.global.sent":{color:"purple",text:"发送的字节数",unit:"bytes"},"tomcat.global.request.max":{color:"purple",text:"request 请求最长耗时",unit:"秒"},"tomcat.global.request.count":{color:"purple",text:"全局 request 请求次数",unit:"次"},"tomcat.global.request.totalTime":{color:"purple",text:"全局 request 请求总耗时",unit:"秒"},"tomcat.servlet.request.max":{color:"cyan",text:"servlet 请求最长耗时",unit:"秒"},"tomcat.servlet.request.count":{color:"cyan",text:"servlet 总请求次数",unit:"次"},"tomcat.servlet.request.totalTime":{color:"cyan",text:"servlet 请求总耗时",unit:"秒"},"tomcat.threads.current":{color:"pink",text:"tomcat 当前线程数(包括守护线程)",unit:"个"},"tomcat.threads.config.max":{color:"pink",text:"tomcat 配置的线程最大数",unit:"个"}},moreInfo:{"tomcat.global.request":[".count",".totalTime"],"tomcat.servlet.request":[".count",".totalTime"]}}},mounted:function(){this.loadTomcatInfo()},methods:{handleClickUpdate:function(){this.loadTomcatInfo()},loadTomcatInfo:function(){var e=this;this.tableLoading=!0,this.time=a()().format("YYYY年MM月DD日 HH时mm分ss秒"),Promise.all([Object(s["d"])("actuator/metrics/tomcat.sessions.created"),Object(s["d"])("actuator/metrics/tomcat.sessions.expired"),Object(s["d"])("actuator/metrics/tomcat.sessions.active.current"),Object(s["d"])("actuator/metrics/tomcat.sessions.active.max"),Object(s["d"])("actuator/metrics/tomcat.sessions.rejected"),Object(s["d"])("actuator/metrics/tomcat.global.sent"),Object(s["d"])("actuator/metrics/tomcat.global.request.max"),Object(s["d"])("actuator/metrics/tomcat.global.request"),Object(s["d"])("actuator/metrics/tomcat.threads.current"),Object(s["d"])("actuator/metrics/tomcat.threads.config.max")]).then((function(t){var n=[];t.forEach((function(t,r){var i=e.moreInfo[t.name];i instanceof Array||(i=[""]),i.forEach((function(e,i){var o=t.name+e;n.push({id:o+r,param:o,text:"false value",value:t.measurements[i].value})}))})),e.dataSource=n})).catch((function(t){console.error(t),e.$message.error("获取Tomcat信息失败")})).finally((function(){e.loading=!1,e.tableLoading=!1}))}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},c434:function(e,t,n){},c560:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n("0af5"),i=n("fd4d"),o=n("25f1");function a(e,t,n,o,a){var s=Object(r["s"])(Object(r["j"])(),e,t,n,o);return!!Object(r["F"])(a,s)&&(!!Object(r["g"])(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(i["a"])(e,t,n,o,(function(e,t){return Object(r["G"])(a,e,t)})))))}function s(e,t,n,r,i){for(var o=0,s=n.length;o<s;++o){if(a(e,t,n[o],r,i))return!0;t=n[o]}return!1}function l(e,t,n,r,i){return!!a(e,t,n,r,i)||(!!Object(o["b"])(e,t,n,r,i[0],i[1])||(!!Object(o["b"])(e,t,n,r,i[0],i[3])||(!!Object(o["b"])(e,t,n,r,i[2],i[1])||!!Object(o["b"])(e,t,n,r,i[2],i[3]))))}function c(e,t,n,r,i){if(!l(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(var s=1,c=n.length;s<c;++s)if(Object(o["a"])(e,n[s-1],n[s],r,i)&&!a(e,n[s-1],n[s],r,i))return!1;return!0}function u(e,t,n,r,i){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(c(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}},c594:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"区县权限配置"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.slotTitle;return n("span",{},[e._v("\n          "+e._s(r)+"\n        ")])}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("4ec3"),s={name:"DistrictModalHide",components:{},data:function(){return{roleId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"区县隐藏配置",visible:!1,loading:!1}},methods:{onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.roleId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={roleId:e.roleId,permissionIds:e.checkedKeys.join(","),lastpermissionIds:e.defaultCheckedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["kb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["M"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["P"])({roleId:e.roleId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},l=s,c=(n("4272"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"212b4e12",null);t["default"]=u.exports},c5bc:function(e,t,n){"use strict";n("eba7")},c601:function(e,t,n){},c63e:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"450",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"上级部门"}},[n("a-tree",{attrs:{multiple:"",treeCheckable:"tree",checkable:"",checkedKeys:e.checkedKeys,allowClear:"true",checkStrictly:!0,dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.departTree,placeholder:"请选择上级部门"},on:{check:e.onCheck}})],1)],1)],n("div",{staticClass:"drawer-bootom-button"},[n("a-button",{staticStyle:{"margin-right":".8rem"},on:{click:e.close}},[e._v("取消")]),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],2)},i=[],o=n("88bc"),a=n.n(o),s=n("0fea"),l=n("4ec3"),c=n("418f"),u={name:"DepartWindow",components:{userModal:c["default"]},data:function(){return{checkedKeys:[],userId:"",model:{},userDepartModel:{userId:"",departIdList:[]},departList:[],modalWidth:400,departTree:[],title:"操作",visible:!1,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,headers:{},form:this.$form.createForm(this),url:{userId:"/sys/user/generateUserId"}}},methods:{add:function(e,t){this.checkedKeys=e,this.userId=t,this.edit({})},edit:function(e){var t=this;this.departList=[],this.queryDepartTree(),this.form.resetFields(),this.visible=!0,this.model=Object.assign({},e);var n=a()(this.model,"id","userId","departIdList");this.$nextTick((function(){t.form.setFieldsValue(n)}))},close:function(){this.$emit("close"),this.visible=!1,this.departList=[],this.checkedKeys=[]},handleSubmit:function(){var e=this,t=this;this.form.validateFields((function(n){if(!n)if(t.confirmLoading=!0,null==e.userId)Object(s["d"])(e.url.userId).then((function(n){if(n.success){var r={userId:n.result,departIdList:e.departList};console.log(r),t.$emit("ok",r)}})).finally((function(){t.departList=[],t.confirmLoading=!1,t.close()}));else{var r={userId:e.userId,departIdList:e.departList};console.log(r),t.departList=[],t.$emit("ok",r),t.confirmLoading=!1,t.close()}}))},handleCancel:function(){this.close()},onCheck:function(e,t){this.departList=[],this.checkedKeys=e.checked;for(var n=t.checkedNodes,r=0;r<n.length;r++){var i=n[r].data.props,o={key:"",value:"",title:""};o.key=i.value,o.value=i.value,o.title=i.title,this.departList.push(o)}console.log("onCheck",e,t)},queryDepartTree:function(){var e=this;Object(l["R"])().then((function(t){t.success&&(e.departTree=t.result)}))},modalFormOk:function(){}}},d=u,f=(n("4f8e"),n("8eef"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"f8cd1f38",null);t["default"]=h.exports},c664:function(e,t,n){"use strict";n("427a")},c68e:function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),l=r[n];n<o;l=r[++n])b(l)||!k(l)?a+=" "+l:a+=" "+s(l);return a},t.deprecate=function(n,r){if("undefined"!==typeof e&&!0===e.noDeprecation)return n;if("undefined"===typeof e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;function o(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}return o};var o,a={};function s(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),d(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function d(e,n,r){if(e.customInspect&&n&&I(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return x(i)||(i=d(e,i,r)),i}var o=f(e,n);if(o)return o;var a=Object.keys(n),s=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(I(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return h(n)}var c,y="",b=!1,_=["{","}"];if(v(n)&&(b=!0,_=["[","]"]),I(n)){var w=n.name?": "+n.name:"";y=" [Function"+w+"]"}return E(n)&&(y=" "+RegExp.prototype.toString.call(n)),O(n)&&(y=" "+Date.prototype.toUTCString.call(n)),T(n)&&(y=" "+h(n)),0!==a.length||b&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=b?p(e,n,r,s,a):a.map((function(t){return m(e,n,r,s,t,b)})),e.seen.pop(),g(c,y,_)):_[0]+y+_[1]}function f(e,t){if(C(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return w(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)L(t,String(a))?o.push(m(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(m(e,t,n,r,i,!0))})),o}function m(e,t,n,r,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),L(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=b(n)?d(e,l.value,null):d(e,l.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n"))):s=e.stylize("[Circular]","special")),C(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function b(e){return null===e}function _(e){return null==e}function w(e){return"number"===typeof e}function x(e){return"string"===typeof e}function S(e){return"symbol"===typeof e}function C(e){return void 0===e}function E(e){return k(e)&&"[object RegExp]"===R(e)}function k(e){return"object"===typeof e&&null!==e}function O(e){return k(e)&&"[object Date]"===R(e)}function T(e){return k(e)&&("[object Error]"===R(e)||e instanceof Error)}function I(e){return"function"===typeof e}function A(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function R(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(C(o)&&(o=Object({NODE_ENV:"production",BASE_URL:"/"}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=y,t.isNull=b,t.isNullOrUndefined=_,t.isNumber=w,t.isString=x,t.isSymbol=S,t.isUndefined=C,t.isRegExp=E,t.isObject=k,t.isDate=O,t.isError=T,t.isFunction=I,t.isPrimitive=A,t.isBuffer=n("5006");var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=n("3fb5"),t._extend=function(e,t){if(!t||!k(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function F(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(j,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t=e[D];if("function"!==typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(a){n(a)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=D,t.callbackify=F}).call(this,n("f28c"))},c6cf8:function(e,t,n){e.exports=n.p+"img/pdf4.a7783614.jpg"},c75f:function(e,t,n){var r=n("4587"),i=n("42b3"),o=n("5021"),a=n("5b1a");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},c7cc:function(e,t,n){"use strict";var r=n("58e3"),i=n("5b1a"),o=n("7373"),a=n("af98"),s=n("5da3"),l=n("33ff"),c=n("35ef"),u=n("ddf93"),d=Math.max,f=Math.min,h=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var p=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,g=p?"$":"$0";return[function(n,r){var i=s(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!p&&m||"string"===typeof r&&-1===r.indexOf(g)){var s=n(t,e,this,r);if(s.done)return s.value}var v=i(e),y=String(this),b="function"===typeof r;b||(r=String(r));var _=v.global;if(_){var w=v.unicode;v.lastIndex=0}var x=[];while(1){var S=u(v,y);if(null===S)break;if(x.push(S),!_)break;var C=String(S[0]);""===C&&(v.lastIndex=l(y,o(v.lastIndex),w))}for(var E="",k=0,O=0;O<x.length;O++){S=x[O];for(var T=String(S[0]),I=d(f(a(S.index),y.length),0),A=[],R=1;R<S.length;R++)A.push(h(S[R]));var P=S.groups;if(b){var M=[T].concat(A,I,y);void 0!==P&&M.push(P);var N=String(r.apply(void 0,M))}else N=c(T,y,I,A,P,r);I>=k&&(E+=y.slice(k,I)+N,k=I+T.length)}return E+y.slice(k)}]}))},c7ce:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper",staticStyle:{height:"25px"}},[n("a-collapse",{model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-collapse-panel",{key:"1",attrs:{header:""}},[n("div",{staticStyle:{height:"847px","overflow-y":"scroll","background-color":"#fff"}},[n("div",{staticStyle:{"background-color":"#fff",padding:"4px 6px"}},[n("a-input-search",{attrs:{placeholder:"请输入菜单名称"},on:{search:e.getOption},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1),n("a-tree",{staticClass:"tree",staticStyle:{display:"inline-block",width:"222px","background-color":"#fff","margin-right":"10px","margin-left":"0px"},attrs:{expandedKeys:e.expandedKeys,treeData:e.treeData},on:{expand:e.onExpand,select:e.onSelect}})],1)])],1),n("div",{staticStyle:{width:"100%"}},[n(e.currentTabComponent,{tag:"component",staticClass:"componentMain"})],1)],1)},i=[],o=(n("456d"),n("ac6a"),n("5df3"),n("f400"),n("aef6"),n("4917"),n("28a5"),n("0fea")),a=[],s={components:{},data:function(){return{expandedKeys:[],autoExpandParent:!0,checkedKeys:["0-0-0"],selectedKeys:[],treeData:a,url:{get:"/sys/category/getTree"},currentTabComponent:{},componentName:"",message:"",activeKey:["1"]}},beforeMount:function(){this.getOption()},watch:{checkedKeys:function(e){console.log("onCheck",e)}},methods:{getOption:function(){var e=this,t={mess:this.message,is_audit:"true"};Object(o["d"])(this.url.get,t).then((function(t){if(0!=t.data.length){for(var n=0;n<t.data.length;n++){e.expandedKeys.push(t.data[n].key);for(var r=0;r<t.data[n].children.length;r++)e.expandedKeys.push(t.data[n].children[r].key)}e.treeData=t.data,e.getdaishenhe(t)}else e.$message.warning("未检索到该菜单")}))},initFirst:function(e){for(var t=0;t<e.length;t++)if(null!=e[t].slots.title&&""!=e[t].slots.title){var n={};return n.url=e[t].slots.title,n.title=e[t].title,n}return this.initFirst(e[0].children)},onExpand:function(e){console.log("onExpand",e),this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){console.log("onCheck",e),this.checkedKeys=e},onSelect:function(e,t){var r=t.selectedNodes[0].data.props.dataRef.slots.title,i=r.split("@"),o=i[0],a=i[1];if(void 0==a)this.$store.commit("settemplatetable",a);else{var s=a.match(/^.*[A-Z]+.*$/);null==s?this.$store.commit("settemplatetable",a):this.$store.commit("settemplatetable",'"'+a+'"')}var l=t.selectedNodes[0].data.props.dataRef.slots.sql;this.$store.commit("templatesql",l),this.selectedKeys=e;var c=t.selectedNodes[0].data.props.title;null!=o&&void 0!=o&&""!=o&&(this.componentName=c,this.currentTabComponent=function(){return n("2a68")("./views"+o)})},getdaishenhe:function(e){for(var t=this,r="",i="",a=0;a<e.data.length;a++)for(var s=0;s<e.data[a].children.length;s++){var l=e.data[a].children[s];if(l.children.length>0)for(var c=0;c<l.children.length;c++){var u=l.children[c].title,d=l.children[c].slots.sql;r=r+","+u,i=i+","+d}else{var f=l.title,h=l.slots.sql;r=r+","+f,i=i+","+h}}var p={names:r};Object(o["j"])("/columnInfo/getDaishenhe",p).then((function(r){if(r.success){var i=r.result,o=t.$route.path;if(o.endsWith("emergency_data_audit")){var a=JSON.stringify(i),s=new Map;s=t.objToStrMap(JSON.parse(a));for(var l=0;l<e.data.length;l++)for(var c=0;c<e.data[l].children.length;c++){var u=e.data[l].children[c];if(u.children.length>0)for(var d=0;d<u.children.length;d++){var f=u.children[d].title,h=s.get(f);void 0==h&&(h=0),e.data[l].children[c].children[d].title=f+"("+h+")"}else{var p=u.title,m=s.get(p);void 0==m&&(m=0),e.data[l].children[c].title=p+"("+m+")"}}}var g=t.initFirst(t.treeData);t.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))},t.componentName=g.title}else t.$message.warning(e.message)}))},objToStrMap:function(e){for(var t=new Map,n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t.set(i,e[i])}return t}}},l=s,c=(n("5203"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},c807:function(e,t,n){"use strict";var r=n("e300"),i=n("183a"),o=n("cef7"),a=n("01d4"),s=n("4cdf"),l=n("f623"),c=n("0b2d"),u=n("f403"),d=n("4105"),f=n("4a7d"),h=n("a43f"),p=n("3e6b"),m=n("58315"),g=n("06f8"),v=n("0af5"),y=n("a568"),b=n("6c77"),_=n("9f5e"),w=n("5bc3"),x=n("256f"),S=n("1300"),C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=0,k=1,O=[0,0,0,0],T=[],I={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},A=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.features=n,i.mapBrowserEvent=r,i}return C(t,e),t}(o["a"]),R=function(e){function t(t){var n,o=e.call(this,t)||this;if(o.boundHandleFeatureChange_=o.handleFeatureChange_.bind(o),o.condition_=t.condition?t.condition:g["j"],o.defaultDeleteCondition_=function(e){return Object(g["b"])(e)&&Object(g["l"])(e)},o.deleteCondition_=t.deleteCondition?t.deleteCondition:o.defaultDeleteCondition_,o.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:g["d"],o.vertexFeature_=null,o.vertexSegments_=null,o.lastPixel_=[0,0],o.ignoreNextSingleClick_=!1,o.featuresBeingModified_=null,o.rBush_=new f["a"],o.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,o.snappedToVertex_=!1,o.changingFeature_=!1,o.dragSegments_=[],o.overlay_=new p["a"]({source:new m["a"]({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:L(),updateWhileAnimating:!0,updateWhileInteracting:!0}),o.SEGMENT_WRITERS_={Point:o.writePointGeometry_.bind(o),LineString:o.writeLineStringGeometry_.bind(o),LinearRing:o.writeLineStringGeometry_.bind(o),Polygon:o.writePolygonGeometry_.bind(o),MultiPoint:o.writeMultiPointGeometry_.bind(o),MultiLineString:o.writeMultiLineStringGeometry_.bind(o),MultiPolygon:o.writeMultiPolygonGeometry_.bind(o),Circle:o.writeCircleGeometry_.bind(o),GeometryCollection:o.writeGeometryCollectionGeometry_.bind(o)},o.source_=null,o.hitDetection_=null,t.features?n=t.features:t.source&&(o.source_=t.source,n=new r["a"](o.source_.getFeatures()),o.source_.addEventListener(h["a"].ADDFEATURE,o.handleSourceAdd_.bind(o)),o.source_.addEventListener(h["a"].REMOVEFEATURE,o.handleSourceRemove_.bind(o))),!n)throw new Error("The modify interaction requires features, a source or a layer");return t.hitDetection&&(o.hitDetection_=t.hitDetection),o.features_=n,o.features_.forEach(o.addFeature_.bind(o)),o.features_.addEventListener(i["a"].ADD,o.handleFeatureAdd_.bind(o)),o.features_.addEventListener(i["a"].REMOVE,o.handleFeatureRemove_.bind(o)),o.lastPointerEvent_=null,o.delta_=[0,0],o}return C(t,e),t.prototype.addFeature_=function(e){var t=e.getGeometry();if(t){var n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}var r=this.getMap();r&&r.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,r),e.addEventListener(a["a"].CHANGE,this.boundHandleFeatureChange_)},t.prototype.willModifyFeatures_=function(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new r["a"];for(var n=this.featuresBeingModified_.getArray(),i=0,o=t.length;i<o;++i){var a=t[i][0].feature;-1===n.indexOf(a)&&this.featuresBeingModified_.push(a)}this.dispatchEvent(new A(I.MODIFYSTART,this.featuresBeingModified_,e))}},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.removeEventListener(a["a"].CHANGE,this.boundHandleFeatureChange_)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,n=[];t.forEach((function(t){e===t.feature&&n.push(t)}));for(var r=n.length-1;r>=0;--r){for(var i=n[r],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===i&&this.dragSegments_.splice(o,1);t.remove(i)}},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},t.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},t.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},t.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},t.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},t.prototype.writePointGeometry_=function(e,t){var n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)},t.prototype.writeMultiPointGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r){var o=n[r],a={feature:e,geometry:t,depth:[r],index:r,segment:[o,o]};this.rBush_.insert(t.getExtent(),a)}},t.prototype.writeLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length-1;r<i;++r){var o=n.slice(r,r+2),a={feature:e,geometry:t,index:r,segment:o};this.rBush_.insert(Object(v["b"])(o),a)}},t.prototype.writeMultiLineStringGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:e,geometry:t,depth:[r],index:a,segment:l};this.rBush_.insert(Object(v["b"])(l),c)}},t.prototype.writePolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:e,geometry:t,depth:[r],index:a,segment:l};this.rBush_.insert(Object(v["b"])(l),c)}},t.prototype.writeMultiPolygonGeometry_=function(e,t){for(var n=t.getCoordinates(),r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length;a<s;++a)for(var l=o[a],c=0,u=l.length-1;c<u;++c){var d=l.slice(c,c+2),f={feature:e,geometry:t,depth:[a,r],index:c,segment:d};this.rBush_.insert(Object(v["b"])(d),f)}},t.prototype.writeCircleGeometry_=function(e,t){var n=t.getCenter(),r={feature:e,geometry:t,index:E,segment:[n,n]},i={feature:e,geometry:t,index:k,segment:[n,n]},o=[r,i];r.featureSegments=o,i.featureSegments=o,this.rBush_.insert(Object(v["m"])(n),r);var a=t,s=Object(x["j"])();if(s&&this.getMap()){var l=this.getMap().getView().getProjection();a=a.clone().transform(s,l),a=Object(w["b"])(a).transform(l,s)}this.rBush_.insert(a.getExtent(),i)},t.prototype.writeGeometryCollectionGeometry_=function(e,t){for(var n=t.getGeometriesArray(),r=0;r<n.length;++r){var i=n[r],o=this.SEGMENT_WRITERS_[i.getType()];o(e,i)}},t.prototype.createOrUpdateVertexFeature_=function(e,t,n){var r=this.vertexFeature_;if(r){var i=r.getGeometry();i.setCoordinates(e)}else r=new s["a"](new u["a"](e)),this.vertexFeature_=r,this.overlay_.getSource().addFeature(r);return r.set("features",t),r.set("geometries",n),r},t.prototype.handleEvent=function(t){return!t.originalEvent||(this.lastPointerEvent_=t,t.map.getView().getInteracting()||t.type!=c["a"].POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(t),this.vertexFeature_&&this.deleteCondition_(t)&&(n=!(t.type!=c["a"].SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),t.type==c["a"].SINGLECLICK&&(this.ignoreNextSingleClick_=!1),e.prototype.handleEvent.call(this,t)&&!n);var n},t.prototype.handleDragEvent=function(e){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(e,this.dragSegments_);for(var t=[e.coordinate[0]+this.delta_[0],e.coordinate[1]+this.delta_[1]],n=[],r=[],i=0,o=this.dragSegments_.length;i<o;++i){var a=this.dragSegments_[i],s=a[0],c=s.feature;-1===n.indexOf(c)&&n.push(c);var u=s.geometry;-1===r.indexOf(u)&&r.push(u);var d=s.depth,f=void 0,h=s.segment,p=a[1];while(t.length<u.getStride())t.push(h[p][t.length]);switch(u.getType()){case l["a"].POINT:f=t,h[0]=t,h[1]=t;break;case l["a"].MULTI_POINT:f=u.getCoordinates(),f[s.index]=t,h[0]=t,h[1]=t;break;case l["a"].LINE_STRING:f=u.getCoordinates(),f[s.index+p]=t,h[p]=t;break;case l["a"].MULTI_LINE_STRING:f=u.getCoordinates(),f[d[0]][s.index+p]=t,h[p]=t;break;case l["a"].POLYGON:f=u.getCoordinates(),f[d[0]][s.index+p]=t,h[p]=t;break;case l["a"].MULTI_POLYGON:f=u.getCoordinates(),f[d[1]][d[0]][s.index+p]=t,h[p]=t;break;case l["a"].CIRCLE:if(h[0]=t,h[1]=t,s.index===E)this.changingFeature_=!0,u.setCenter(t),this.changingFeature_=!1;else{this.changingFeature_=!0;var m=e.map.getView().getProjection(),g=Object(y["d"])(Object(x["d"])(u.getCenter(),m),Object(x["d"])(t,m)),v=Object(x["j"])();if(v){var b=u.clone().transform(v,m);b.setRadius(g),g=b.transform(m,v).getRadius()}u.setRadius(g),this.changingFeature_=!1}break;default:}f&&this.setGeometryCoordinates_(u,f)}this.createOrUpdateVertexFeature_(t,n,r)},t.prototype.handleDownEvent=function(e){if(!this.condition_(e))return!1;var t=e.coordinate;this.handlePointerAtPixel_(e.pixel,e.map,t),this.dragSegments_.length=0,this.featuresBeingModified_=null;var n=this.vertexFeature_;if(n){var r=e.map.getView().getProjection(),i=[],o=n.getGeometry().getCoordinates(),a=Object(v["b"])([o]),s=this.rBush_.getInExtent(a),c={};s.sort(P);for(var u=0,d=s.length;u<d;++u){var f=s[u],h=f.segment,p=Object(S["c"])(f.geometry),m=f.depth;if(m&&(p+="-"+m.join("-")),c[p]||(c[p]=new Array(2)),f.geometry.getType()!==l["a"].CIRCLE||f.index!==k)if(!Object(y["e"])(h[0],o)||c[p][0])if(!Object(y["e"])(h[1],o)||c[p][1])Object(S["c"])(h)in this.vertexSegments_&&!c[p][0]&&!c[p][1]&&this.insertVertexCondition_(e)&&i.push(f);else{if((f.geometry.getType()===l["a"].LINE_STRING||f.geometry.getType()===l["a"].MULTI_LINE_STRING)&&c[p][0]&&0===c[p][0].index)continue;this.dragSegments_.push([f,1]),c[p][1]=f}else this.dragSegments_.push([f,0]),c[p][0]=f;else{var g=N(t,f,r);Object(y["e"])(g,o)&&!c[p][0]&&(this.dragSegments_.push([f,0]),c[p][0]=f)}}i.length&&this.willModifyFeatures_(e,[i]);for(var b=i.length-1;b>=0;--b)this.insertVertex_(i[b],o)}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var n=this.dragSegments_[t][0],r=n.geometry;if(r.getType()===l["a"].CIRCLE){var i=r.getCenter(),o=n.featureSegments[0],a=n.featureSegments[1];o.segment[0]=i,o.segment[1]=i,a.segment[0]=i,a.segment[1]=i,this.rBush_.update(Object(v["m"])(i),o);var s=r,c=Object(x["j"])();if(c){var u=e.map.getView().getProjection();s=s.clone().transform(c,u),s=Object(w["b"])(s).transform(u,c)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update(Object(v["b"])(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new A(I.MODIFYEND,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1},t.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)},t.prototype.handlePointerAtPixel_=function(e,t,n){var r,i,o=this,a=n||t.getCoordinateFromPixel(e),s=t.getView().getProjection(),c=function(e,t){return M(a,e,s)-M(a,t,s)};if(this.hitDetection_){var u="object"===typeof this.hitDetection_?function(e){return e===o.hitDetection_}:void 0;t.forEachFeatureAtPixel(e,(function(e,t,n){if(n=n||e.getGeometry(),n.getType()===l["a"].POINT){i=n;var o=n.getCoordinates();r=[{feature:e,geometry:n,segment:[o,o]}]}return!0}),{layerFilter:u})}if(!r){var d=Object(x["e"])(Object(v["m"])(a,O),s),f=t.getView().getResolution()*this.pixelTolerance_,h=Object(x["m"])(Object(v["c"])(d,f,O),s);r=this.rBush_.getInExtent(h)}if(r&&r.length>0){var p=r.sort(c)[0],m=p.segment,g=N(a,p,s),b=t.getPixelFromCoordinate(g),_=Object(y["d"])(e,b);if(i||_<=this.pixelTolerance_){var w={};if(w[Object(S["c"])(m)]=!0,this.delta_[0]=g[0]-a[0],this.delta_[1]=g[1]-a[1],p.geometry.getType()===l["a"].CIRCLE&&p.index===k)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[p.feature],[p.geometry]);else{var C=t.getPixelFromCoordinate(m[0]),E=t.getPixelFromCoordinate(m[1]),T=Object(y["j"])(b,C),I=Object(y["j"])(b,E);_=Math.sqrt(Math.min(T,I)),this.snappedToVertex_=_<=this.pixelTolerance_,this.snappedToVertex_&&(g=T>I?m[1]:m[0]),this.createOrUpdateVertexFeature_(g,[p.feature],[p.geometry]);var A={};A[Object(S["c"])(p.geometry)]=!0;for(var R=1,P=r.length;R<P;++R){var L=r[R].segment;if(!(Object(y["e"])(m[0],L[0])&&Object(y["e"])(m[1],L[1])||Object(y["e"])(m[0],L[1])&&Object(y["e"])(m[1],L[0])))break;var D=Object(S["c"])(r[R].geometry);D in A||(A[D]=!0,w[Object(S["c"])(L)]=!0)}}return void(this.vertexSegments_=w)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},t.prototype.insertVertex_=function(e,t){var n,r=e.segment,i=e.feature,o=e.geometry,a=e.depth,s=e.index;while(t.length<o.getStride())t.push(0);switch(o.getType()){case l["a"].MULTI_LINE_STRING:n=o.getCoordinates(),n[a[0]].splice(s+1,0,t);break;case l["a"].POLYGON:n=o.getCoordinates(),n[a[0]].splice(s+1,0,t);break;case l["a"].MULTI_POLYGON:n=o.getCoordinates(),n[a[1]][a[0]].splice(s+1,0,t);break;case l["a"].LINE_STRING:n=o.getCoordinates(),n.splice(s+1,0,t);break;default:return}this.setGeometryCoordinates_(o,n);var c=this.rBush_;c.remove(e),this.updateSegmentIndices_(o,s,a,1);var u={segment:[r[0],t],feature:i,geometry:o,depth:a,index:s};c.insert(Object(v["b"])(u.segment),u),this.dragSegments_.push([u,1]);var d={segment:[t,r[1]],feature:i,geometry:o,depth:a,index:s+1};c.insert(Object(v["b"])(d.segment),d),this.dragSegments_.push([d,0]),this.ignoreNextSingleClick_=!0},t.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=c["a"].POINTERDRAG){var e=this.lastPointerEvent_;this.willModifyFeatures_(e,this.dragSegments_);var t=this.removeVertex_();return this.dispatchEvent(new A(I.MODIFYEND,this.featuresBeingModified_,e)),this.featuresBeingModified_=null,t}return!1},t.prototype.removeVertex_=function(){var e,t,n,r,i,o,a,s,c,u,d,f=this.dragSegments_,h={},p=!1;for(i=f.length-1;i>=0;--i)n=f[i],u=n[0],d=Object(S["c"])(u.feature),u.depth&&(d+="-"+u.depth.join("-")),d in h||(h[d]={}),0===n[1]?(h[d].right=u,h[d].index=u.index):1==n[1]&&(h[d].left=u,h[d].index=u.index+1);for(d in h){switch(c=h[d].right,a=h[d].left,o=h[d].index,s=o-1,u=void 0!==a?a:c,s<0&&(s=0),r=u.geometry,t=r.getCoordinates(),e=t,p=!1,r.getType()){case l["a"].MULTI_LINE_STRING:t[u.depth[0]].length>2&&(t[u.depth[0]].splice(o,1),p=!0);break;case l["a"].LINE_STRING:t.length>2&&(t.splice(o,1),p=!0);break;case l["a"].MULTI_POLYGON:e=e[u.depth[1]];case l["a"].POLYGON:e=e[u.depth[0]],e.length>4&&(o==e.length-1&&(o=0),e.splice(o,1),p=!0,0===o&&(e.pop(),e.push(e[0]),s=e.length-1));break;default:}if(p){this.setGeometryCoordinates_(r,t);var m=[];if(void 0!==a&&(this.rBush_.remove(a),m.push(a.segment[0])),void 0!==c&&(this.rBush_.remove(c),m.push(c.segment[1])),void 0!==a&&void 0!==c){var g={depth:u.depth,feature:u.feature,geometry:u.geometry,index:s,segment:m};this.rBush_.insert(Object(v["b"])(g.segment),g)}this.updateSegmentIndices_(r,o,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),f.length=0}}return p},t.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===n||void 0===i.depth||Object(_["b"])(i.depth,n))&&i.index>t&&(i.index+=r)}))},t}(d["b"]);function P(e,t){return e.index-t.index}function M(e,t,n){var r=t.geometry;if(r.getType()===l["a"].CIRCLE){var i=r;if(t.index===k){var o=Object(x["j"])();o&&(i=i.clone().transform(o,n));var a=Object(y["j"])(i.getCenter(),Object(x["d"])(e,n)),s=Math.sqrt(a)-i.getRadius();return s*s}}var c=Object(x["d"])(e,n);return T[0]=Object(x["d"])(t.segment[0],n),T[1]=Object(x["d"])(t.segment[1],n),Object(y["k"])(c,T)}function N(e,t,n){var r=t.geometry;if(r.getType()===l["a"].CIRCLE&&t.index===k){var i=r,o=Object(x["j"])();return o&&(i=i.clone().transform(o,n)),Object(x["l"])(i.getClosestPoint(Object(x["d"])(e,n)),n)}var a=Object(x["d"])(e,n);return T[0]=Object(x["d"])(t.segment[0],n),T[1]=Object(x["d"])(t.segment[1],n),Object(x["l"])(Object(y["c"])(a,T),n)}function L(){var e=Object(b["b"])();return function(t,n){return e[l["a"].POINT]}}t["a"]=R},c832:function(e,t,n){(function(t){var n="Expected a function",r="__lodash_hash_undefined__",i=1/0,o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/[\\^$.*+?()[\]{}|]/g,h=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")();function y(e,t){return null==e?void 0:e[t]}function b(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}var _=Array.prototype,w=Function.prototype,x=Object.prototype,S=v["__core-js_shared__"],C=function(){var e=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),E=w.toString,k=x.hasOwnProperty,O=x.toString,T=RegExp("^"+E.call(k).replace(f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=v.Symbol,A=_.splice,R=oe(v,"Map"),P=oe(Object,"create"),M=I?I.prototype:void 0,N=M?M.toString:void 0;function L(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function D(){this.__data__=P?P(null):{}}function j(e){return this.has(e)&&delete this.__data__[e]}function F(e){var t=this.__data__;if(P){var n=t[e];return n===r?void 0:n}return k.call(t,e)?t[e]:void 0}function B(e){var t=this.__data__;return P?void 0!==t[e]:k.call(t,e)}function q(e,t){var n=this.__data__;return n[e]=P&&void 0===t?r:t,this}function z(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function U(){this.__data__=[]}function G(e){var t=this.__data__,n=Z(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():A.call(t,n,1),!0}function V(e){var t=this.__data__,n=Z(t,e);return n<0?void 0:t[n][1]}function W(e){return Z(this.__data__,e)>-1}function H(e,t){var n=this.__data__,r=Z(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function $(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function K(){this.__data__={hash:new L,map:new(R||z),string:new L}}function X(e){return ie(this,e)["delete"](e)}function Y(e){return ie(this,e).get(e)}function J(e){return ie(this,e).has(e)}function Q(e,t){return ie(this,e).set(e,t),this}function Z(e,t){var n=e.length;while(n--)if(he(e[n][0],t))return n;return-1}function ee(e,t){t=ae(t,e)?[t]:re(t);var n=0,r=t.length;while(null!=e&&n<r)e=e[ue(t[n++])];return n&&n==r?e:void 0}function te(e){if(!ge(e)||le(e))return!1;var t=me(e)||b(e)?T:p;return t.test(de(e))}function ne(e){if("string"==typeof e)return e;if(ye(e))return N?N.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}function re(e){return pe(e)?e:ce(e)}function ie(e,t){var n=e.__data__;return se(t)?n["string"==typeof t?"string":"hash"]:n.map}function oe(e,t){var n=y(e,t);return te(n)?n:void 0}function ae(e,t){if(pe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ye(e))||(c.test(e)||!l.test(e)||null!=t&&e in Object(t))}function se(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function le(e){return!!C&&C in e}L.prototype.clear=D,L.prototype["delete"]=j,L.prototype.get=F,L.prototype.has=B,L.prototype.set=q,z.prototype.clear=U,z.prototype["delete"]=G,z.prototype.get=V,z.prototype.has=W,z.prototype.set=H,$.prototype.clear=K,$.prototype["delete"]=X,$.prototype.get=Y,$.prototype.has=J,$.prototype.set=Q;var ce=fe((function(e){e=be(e);var t=[];return u.test(e)&&t.push(""),e.replace(d,(function(e,n,r,i){t.push(r?i.replace(h,"$1"):n||e)})),t}));function ue(e){if("string"==typeof e||ye(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function de(e){if(null!=e){try{return E.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function fe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(fe.Cache||$),r}function he(e,t){return e===t||e!==e&&t!==t}fe.Cache=$;var pe=Array.isArray;function me(e){var t=ge(e)?O.call(e):"";return t==o||t==a}function ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ve(e){return!!e&&"object"==typeof e}function ye(e){return"symbol"==typeof e||ve(e)&&O.call(e)==s}function be(e){return null==e?"":ne(e)}function _e(e,t,n){var r=null==e?void 0:ee(e,t);return void 0===r?n:r}e.exports=_e}).call(this,n("c8ba"))},c83f:function(e,t,n){"use strict";var r=n("5ab0"),i=n("5b1a"),o=n("791c"),a=n("1d30"),s="toString",l=RegExp.prototype,c=l[s],u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(u||d)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},c861:function(e,t,n){"use strict";n("f36a")},c880:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper",staticStyle:{height:"25px"}},[n("a-collapse",{model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-collapse-panel",{key:"1",attrs:{header:""}},[n("div",{staticStyle:{height:"782px","overflow-y":"scroll","background-color":"#fff"}},[n("a-tree",{staticClass:"tree",staticStyle:{display:"inline-block",width:"222px","background-color":"#fff","margin-right":"10px","margin-left":"0px"},attrs:{expandedKeys:e.expandedKeys,treeData:e.treeData},on:{expand:e.onExpand,select:e.onSelect}})],1)])],1),n("div",{staticStyle:{width:"100%"}},[n(e.currentTabComponent,{tag:"component",staticClass:"componentMain"})],1)],1)},i=[],o=n("0fea"),a={data:function(){return{expandedKeys:[],queryParam:{},autoExpandParent:!0,checkedKeys:["0-0-0"],selectedKeys:[],treeData:[],currentTabComponent:{},componentName:"",message:"",isDepartment:!1,classificationClass:"btn_choose_class",departClass:"btn_nochoose_class",activeKey:["1"]}},beforeMount:function(){this.getOption()},watch:{checkedKeys:function(e){}},methods:{initFirst:function(e){},getOption:function(){var e=this;Object(o["d"])("/wlgz_video/wlgzVideo/getWlgzVideoTreeByUserDistrict",{}).then((function(t){t.success&&(console.log(t.result),e.treeData=t.result,e.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))})}))},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){this.checkedKeys=e},onSelect:function(e,t){this.selectedKeys=e,console.log(t),t.selectedNodes[0].data.props.dataRef.children||(t.selectedNodes[0].data.props.dataRef.districtCode?this.$store.commit("setVideoTable","null|"+t.selectedNodes[0].data.props.dataRef.districtCode):this.$store.commit("setVideoTable",t.selectedNodes[0].data.props.dataRef.key+"|null"),this.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"c925"))})}}},s=a,l=(n("11a5"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},c925:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"leftmyshow"},[n("div",{staticClass:"leftmywidth beijingmy"},[n("div",{staticClass:"table-page-search-wrapper leftmywidth"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"地区"}},[n("a-cascader",{attrs:{options:e.citydata,expandTrigger:"hover",placeholder:"请选择地区",changeOnSelect:""},on:{change:e.onChange},model:{value:e.showDefaultParams,callback:function(t){e.showDefaultParams=t},expression:"showDefaultParams"}})],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:12,sm:12}},[n("a-form-item",{attrs:{label:"类型"}},[n("a-input",{attrs:{placeholder:"请输入类型"},model:{value:e.queryParam.datatype,callback:function(t){e.$set(e.queryParam,"datatype",t)},expression:"queryParam.datatype"}})],1)],1)],1),n("a-row",{attrs:{gutter:12}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.biancross}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:function(t){return e.loadData(1)}}},[e._v("查询")]),n("a-button",{attrs:{type:"primary",icon:"reload"},on:{click:function(t){return e.reload()}}},[e._v("重置")]),n("a-button",{attrs:{type:"primary",icon:"setting"},on:{click:function(t){return e.ShouQuan()}}},[e._v("授权")])],1)],1)],1),n("div",{staticStyle:{width:"496px","margin-top":"20px"}},[n("a-table",{ref:"table1",staticClass:"table1",attrs:{customRow:e.rowClick,size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSource,loading:e.loading,pagination:e.ipagination,scroll:{y:530},rowClassName:e.setRowClassName},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.author(r)}}},[e._v("授权")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.play(r)}}},[e._v("播放")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"是否确认删除,点击【确认】永久删除当前视频,点击【取消】取消?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])])],1)}}])})],1)])]),n("div",{staticStyle:{position:"absolute","z-index":"-100"}},[n("wlgzVideo-modal",{ref:"modalForm",attrs:{url:e.url},on:{ok:function(t){return e.loadData(1)}}})],1),n("div",{ref:"tablediwidth",staticClass:"tabledi",attrs:{id:"tabledi"}},[n("a",{style:e.crosshair,on:{click:e.biandefault}},[n("mapChoosePoints",{ref:"mapChoosePoints",attrs:{model:e.model,pointKey:e.pointKey,iconurl:e.iconurl,visiblets:e.visiblets,loading:e.loading},on:{openedit:function(t){return e.openedit(t)},lonlatChanged:function(t){return e.lonlatChanged(t)},tdupdate:function(t){return e.handleEdit(t)},handleCancelts:function(t){return e.handleCancelts(t)},handleOkts:function(t){return e.handleOkts(t)}}})],1)]),n("video-menu",{ref:"videoForm",on:{ok:function(t){return e.loadData(1)}}}),n("video-play",{ref:"videoPlay"}),n("Select-WlVideo-Modal",{ref:"selectWlVideoModal",attrs:{record_p:e.recordId,selectedRowKeys_p:e.videoIds,selectedRows_p:e.selectedRows},on:{selectFinished:e.selectOK}})],1)},i=[],o=(n("7f7f"),n("28a5"),n("ade3")),a=n("eec4"),s=n.n(a),l=(n("7b16"),n("d9be")),c=(n("89f2"),n("0fea")),u=n("5842"),d=n("a056"),f=n("815e"),h=n("db99"),p=n("c0fa"),m=n("4a0f"),g=n("4ec3"),v={name:"PoolList",mixins:[],components:{city_child:l["default"],mapChoosePoints:u["default"],videoTable:d["default"],WlgzVideoModal:h["default"],VideoMenu:p["default"],SelectWlVideoModal:m["default"],videoPlay:f["default"]},data:function(){var e;return e={description:"山塘管理页面",iconurl:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",dqpage:1,columns:[{title:"类型",align:"center",width:"20%",dataIndex:"datatype"},{title:"名称",align:"center",width:"50%",dataIndex:"name"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],url:{list:"/wlgz_video/wlgzVideo/list"},ipagination:{current:1,pageSize:10,pageSizeOptions:["10"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0},isorter:{column:"smid",order:"desc"},queryParam:{},myQueryParam:{name:""},showDefaultParams:[],pointKey:"longitudeLatitude",model:{},crosshair:"cursor:default",visiblets:!1,dataSourcetd:"",loadingts:!1,loading:!1,dataSource:[],dataSourcegd:[],treeData:[],citydata:[],recordId:"",videoIds:[],videoNames:[],selectedRows:[]},Object(o["a"])(e,"showDefaultParams",[]),Object(o["a"])(e,"biancolorsmid",""),e},mounted:function(){var e=this;Object(c["d"])("/wlgz_video/wlgzVideo/getWlgzVideoTree",{}).then((function(t){t.success&&(e.treeData=t.result)}));var t=this.$store.state.videotable,n=t.split("|"),r="/city/queryStreetsWithDistrict";"null"!=n[1]&&(r+="?districtCode="+n[1]),Object(c["d"])(r,{}).then((function(t){t.success&&(e.citydata=t.result)})),this.loadData(1);var i=this,o=s()();o.listenTo(document.getElementById("tabledi"),(function(e){i.$nextTick((function(){i.$refs.mapChoosePoints.changeSize()}))}))},methods:{ShouQuan:function(){var e=this,t=this.$store.state.videotable,n=t.split("|");this.recordId=n[0];var r={};r["id"]=n[0],Object(g["G"])(r).then((function(t){e.videoIds=t.result})),this.$refs.selectWlVideoModal.visible=!0},selectOK:function(e){this.videoIds=[],this.videoNames=[];for(var t=0;t<e.length;t++)this.videoNames.push(e[t].name),this.videoIds.push(parseInt(e[t].smid))},setRowClassName:function(e,t){if(e.smid==this.biancolorsmid)return"rowcolor"},onChange:function(e){console.log(e),this.queryParam.districtCode=e[0],this.queryParam.streetCode=e[1]},handleTableChange:function(e){this.ipagination=e,this.dqpage=e.current},handleDeleteForm:function(e){var t=this;Object(c["a"])("/wlgz_video/wlgzVideo/delete",{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData(1)):t.$message.warning(e.message)}))},rowClick:function(e){var t=this;return{on:{click:function(){t.$refs.mapChoosePoints.chooseAddressmy(e)}}}},reload:function(){"cursor:crosshair"==this.crosshair&&(this.crosshair="cursor:default"),this.queryParam={},this.showDefaultParams=[],this.loadData(1)},loadData:function(e){var t=this;if(this.biancolorsmid="","cursor:crosshair"==this.crosshair&&(this.crosshair="cursor:default"),this.url.list){1===e&&(this.ipagination.current=1);var n=this.$store.state.videotable,r=n.split("|");"null"!=r[0]&&(this.queryParam.lable=r[0]),"null"!=r[1]&&(this.queryParam.districtCode=r[1]),this.loading=!0,console.log(this.queryParam),Object(c["d"])(this.url.list,this.queryParam).then((function(e){t.dataSource=e.result.records,t.dataSourcechufa(""),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},handleEdit:function(e){this.$refs.modalForm.edit(e),this.$refs.modalForm.title="编辑",this.$refs.modalForm.disableSubmit=!1},play:function(e){"undefined"==typeof e.videoUrl||null==e.videoUrl||""==e.videoUrl?this.$message.warning("该视频未设置video_url参数"):this.$refs.videoPlay.play(e.videoUrl)},author:function(e){this.$refs.videoForm.label=e.lable,this.$refs.videoForm.wlgzId=e.smid,this.$refs.videoForm.treeData=this.treeData,""!=e.lable&&null!=e.lable&&(this.$refs.videoForm.checkedKeys=e.lable.split(",")),this.$refs.videoForm.open()},biandefault:function(){"cursor:crosshair"==this.crosshair&&(this.$refs.mapChoosePoints.linshidadian(this.model),this.$refs.modalForm.edit(this.model),this.$refs.modalForm.title="新增",this.$refs.modalForm.disableSubmit=!1),this.crosshair="cursor:default"},openedit:function(e){var t=e.smid;console.log("点击点位smid:"+t),this.biancolorsmid=t;for(var n=0;n<this.dataSource.length;n++){var r=this.dataSource[n].smid;if(r==t){var i=Math.ceil(n/10);this.ipagination.current=i}}this.play(e)},lonlatChanged:function(e){this.model[this.pointKey]=e;var t=e.split(",");this.model.longitude=t[0],this.model.latitude=t[1]},handleCancelts:function(){this.$refs.mapChoosePoints.jujiao?this.$refs.mapChoosePoints.huanyuanVectorLabelsONE():this.$refs.mapChoosePoints.addVectorLabels("还原点位数据"),this.visiblets=!1},handleOkts:function(){var e=this;this.handleAdd(this.dataSourcetd),setTimeout((function(){e.visiblets=!1,e.loadingts=!1}),2e3)},biancross:function(){"cursor:crosshair"==this.crosshair?this.crosshair="cursor:default":this.crosshair="cursor:crosshair"},dataSourcechufa:function(e){for(var t=[],n=0;n<this.dataSource.length;n++)this.dataSource.length>=1e3&&this.dataSource.length<=3e3?(console.log("一档"),t.push(this.dataSource[n]),n+=2):this.dataSource.length>3e3&&this.dataSource.length<=5e3?(console.log("二档"),t.push(this.dataSource[n]),n+=5):this.dataSource.length>5e3&&this.dataSource.length<=1e4?(console.log("三档"),t.push(this.dataSource[n]),n+=7):this.dataSource.length>1e4?(console.log("四档"),t.push(this.dataSource[n]),n+=10):(console.log("五档"),t.push(this.dataSource[n])),t.push(this.dataSource[n]);var r=t;this.$refs.mapChoosePoints.addVectorLabels(r,e)},getMsgFormSon:function(e){this.queryParam.village=e.village,this.queryParam.city=e.city,this.queryParam.street=e.street,this.queryParam.district=e.district},table1latiao:function(){var e=this;this.$nextTick((function(){document.querySelectorAll(".table1 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table1 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource.length;if(o<=e.jiazai+14)if(15==o);else for(var a=e.jiazai;a<e.jiazai+(o-e.jiazai);a++)e.dataSourcegd.push(e.dataSource[a]);else for(var s=e.jiazai;s<e.jiazai+14;s++)e.dataSourcegd.push(e.dataSource[s]);e.jiazai+=14}}}))},jiazai:15}},y=v,b=(n("4a2b"),n("3694"),n("2877")),_=Object(b["a"])(y,r,i,!1,null,"ed6342ec",null);t["default"]=_.exports},c93d:function(e,t,n){},c943:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"姓名",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入姓名"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"关键词",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["keyWord",{}],expression:"['keyWord', {}]"}],attrs:{placeholder:"请输入关键词"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"打卡时间",hasFeedback:""}},[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["punchTime",{}],expression:"[ 'punchTime', {}]"}],attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"sex"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sex",{}],expression:"['sex', {}]"}],attrs:{placeholder:"请选择性别"}},[n("a-select-option",{attrs:{value:""}},[e._v("请选择性别")]),n("a-select-option",{attrs:{value:"1"}},[e._v("男性")]),n("a-select-option",{attrs:{value:"2"}},[e._v("女性")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"年龄",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["age",{}],expression:"['age', {}]"}],attrs:{placeholder:"请输入年龄"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"生日",hasFeedback:""}},[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["birthday",{}],expression:"[ 'birthday', {}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"邮箱",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["email",{}],expression:"['email', {}]"}],attrs:{placeholder:"请输入邮箱"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"个人简介",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{}],expression:"['content', {}]"}],attrs:{placeholder:"请输入个人简介"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("c1df"),c=n.n(l),u={name:"JeecgDemoModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/test/jeecgDemo/add",edit:"/test/jeecgDemo/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"name","keyWord","sex","age","email","content")),t.form.setFieldsValue({punchTime:t.model.punchTime?c()(t.model.punchTime,"YYYY-MM-DD HH:mm:ss"):null}),t.form.setFieldsValue({birthday:t.model.birthday?c()(t.model.birthday):null})}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);s.punchTime=s.punchTime?s.punchTime.format("YYYY-MM-DD HH:mm:ss"):null,s.birthday=s.birthday?s.birthday.format():null,console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"31237ccc",null);t["default"]=h.exports},c946:function(e,t,n){"use strict";var r=n("b770").forEach;e.exports=function(e){e=e||{};var t=e.reporter,n=e.batchProcessor,i=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=d(),s="erd_scroll_detection_scrollbar_style",l="erd_scroll_detection_container";function c(e){f(e,s,l)}function u(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function d(){var e=500,t=500,n=document.createElement("div");n.style.cssText=u(["position: absolute","width: "+2*e+"px","height: "+2*t+"px","visibility: hidden","margin: 0","padding: 0"]);var r=document.createElement("div");r.style.cssText=u(["position: absolute","width: "+e+"px","height: "+t+"px","overflow: scroll","visibility: none","top: "+3*-e+"px","left: "+3*-t+"px","visibility: hidden","margin: 0","padding: 0"]),r.appendChild(n),document.body.insertBefore(r,document.body.firstChild);var i=e-r.clientWidth,o=t-r.clientHeight;return document.body.removeChild(r),{width:i,height:o}}function f(e,t,n){function r(n,r){r=r||function(t){e.head.appendChild(t)};var i=e.createElement("style");return i.innerHTML=n,i.id=t,r(i),i}if(!e.getElementById(t)){var i=n+"_animation",o=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",a+="."+o+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",a+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",a+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",r(a)}}function h(e){e.className+=" "+l+"_animation_active"}function p(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function m(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function g(e){return i(e).container.childNodes[0].childNodes[0].childNodes[0]}function v(e){return i(e).container.childNodes[0].childNodes[0].childNodes[1]}function y(e,t){var n=i(e).listeners;if(!n.push)throw new Error("Cannot add listener to an element that is not detectable.");i(e).listeners.push(t)}function b(e,s,c){function d(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function f(e){function t(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}return!t(e)||null===window.getComputedStyle(e)}function m(e){var t=i(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function y(){var e=window.getComputedStyle(s),t={};return t.position=e.position,t.width=s.offsetWidth,t.height=s.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function b(){var e=y();i(s).startSize={width:e.width,height:e.height},d("Element start size",i(s).startSize)}function _(){i(s).listeners=[]}function w(){if(d("storeStyle invoked."),i(s)){var e=y();i(s).style=e}else d("Aborting because element has been uninstalled")}function x(e,t,n){i(e).lastWidth=t,i(e).lastHeight=n}function S(e){return g(e).childNodes[0]}function C(){return 2*a.width+1}function E(){return 2*a.height+1}function k(e){return e+10+C()}function O(e){return e+10+E()}function T(e){return 2*e+C()}function I(e){return 2*e+E()}function A(e,t,n){var r=g(e),i=v(e),o=k(t),a=O(n),s=T(t),l=I(n);r.scrollLeft=o,r.scrollTop=a,i.scrollLeft=s,i.scrollTop=l}function R(){var e=i(s).container;if(!e){e=document.createElement("div"),e.className=l,e.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(s).container=e,h(e),s.appendChild(e);var t=function(){i(s).onRendered&&i(s).onRendered()};p(e,"animationstart",t),i(s).onAnimationStart=t}return e}function P(){function n(){var n=i(s).style;if("static"===n.position){s.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){function i(e){return e.replace(/[^-\d\.]/g,"")}var o=n[r];"auto"!==o&&"0"!==i(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,s,n,"top"),r(t,s,n,"right"),r(t,s,n,"bottom"),r(t,s,n,"left")}}function r(e,t,n,r){return e=e?e+"px":"0",t=t?t+"px":"0",n=n?n+"px":"0",r=r?r+"px":"0",["left: "+e,"top: "+t,"right: "+r,"bottom: "+n]}if(d("Injecting elements"),i(s)){n();var o=i(s).container;o||(o=R());var c=a.width,f=a.height,h=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(r(-(1+c),-(1+f),-f,-c))),g=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=u(["position: absolute","left: 0","top: 0"]),b=u(["position: absolute","width: 200%","height: 200%"]),_=document.createElement("div"),w=document.createElement("div"),x=document.createElement("div"),S=document.createElement("div"),C=document.createElement("div"),E=document.createElement("div");_.dir="ltr",_.style.cssText=h,_.className=l,w.className=l,w.style.cssText=m,x.style.cssText=g,S.style.cssText=y,C.style.cssText=v,E.style.cssText=b,x.appendChild(S),C.appendChild(E),w.appendChild(x),w.appendChild(C),_.appendChild(w),o.appendChild(_),p(x,"scroll",k),p(C,"scroll",O),i(s).onExpandScroll=k,i(s).onShrinkScroll=O}else d("Aborting because element has been uninstalled");function k(){i(s).onExpand&&i(s).onExpand()}function O(){i(s).onShrink&&i(s).onShrink()}}function M(){function a(t,n,r){var i=S(t),o=k(n),a=O(r);i.style.setProperty("width",o+"px",e.important?"important":""),i.style.setProperty("height",a+"px",e.important?"important":"")}function l(r){var l=s.offsetWidth,u=s.offsetHeight,f=l!==i(s).lastWidth||u!==i(s).lastHeight;d("Storing current size",l,u),x(s,l,u),n.add(0,(function(){if(f)if(i(s))if(c()){if(e.debug){var n=s.offsetWidth,r=s.offsetHeight;n===l&&r===u||t.warn(o.get(s),"Scroll: Size changed before updating detector elements.")}a(s,l,u)}else d("Aborting because element container has not been initialized");else d("Aborting because element has been uninstalled")})),n.add(1,(function(){i(s)?c()?A(s,l,u):d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")})),f&&r&&n.add(2,(function(){i(s)?c()?r():d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")}))}function c(){return!!i(s).container}function u(){function e(){return void 0===i(s).lastNotifiedWidth}d("notifyListenersIfNeeded invoked");var t=i(s);return e()&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?d("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?d("Not notifying: Size already notified"):(d("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void r(i(s).listeners,(function(e){e(s)})))}function f(){if(d("startanimation triggered."),m(s))d("Ignoring since element is still unrendered...");else{d("Element rendered.");var e=g(s),t=v(s);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(d("Scrollbars out of sync. Updating detector elements..."),l(u))}}function h(){d("Scroll detected."),m(s)?d("Scroll event fired while unrendered. Ignoring..."):l(u)}if(d("registerListenersAndPositionElements invoked."),i(s)){i(s).onRendered=f,i(s).onExpand=h,i(s).onShrink=h;var p=i(s).style;a(s,p.width,p.height)}else d("Aborting because element has been uninstalled")}function N(){if(d("finalizeDomMutation invoked."),i(s)){var e=i(s).style;x(s,e.width,e.height),A(s,e.width,e.height)}else d("Aborting because element has been uninstalled")}function L(){c(s)}function D(){d("Installing..."),_(),b(),n.add(0,w),n.add(1,P),n.add(2,M),n.add(3,N),n.add(4,L)}c||(c=s,s=e,e=null),e=e||{},d("Making detectable..."),f(s)?(d("Element is detached"),R(),d("Waiting until element is attached..."),i(s).onRendered=function(){d("Element is now attached"),D()}):D()}function _(e){var t=i(e);t&&(t.onExpandScroll&&m(g(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&m(v(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&m(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}return c(window.document),{makeDetectable:b,addListener:y,uninstall:_,initDocument:c}}},c984:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"toolbar"},[n("div",{staticStyle:{float:"left"}},[e._t("extra")],2),n("div",{staticStyle:{float:"right"}},[e._t("default")],2)])},i=[],o={name:"FooterToolBar"},a=o,s=(n("91a8"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"b834ebf2",null);t["default"]=l.exports},c9c2:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-row",{attrs:{gutter:10}},[n("a-col",{attrs:{md:12,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("a-row",{staticStyle:{"margin-left":"14px"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleAdd(2)}}},[e._v("添加子部门")]),n("a-button",{directives:[{name:"show",rawName:"v-show",value:e.show_add_first_depart_button,expression:"show_add_first_depart_button"}],attrs:{type:"primary"},on:{click:function(t){return e.handleAdd(1)}}},[e._v("添加一级部门")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("部门信息")}}},[e._v("导出")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXlsTemplate("部门信息")}}},[e._v("导出模板")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),n("a-button",{attrs:{type:"primary",icon:"setting"},on:{click:function(t){return e.hanleCategoryButton()}}},[e._v("权限配置")]),n("a-button",{attrs:{title:"删除多条数据",type:"default"},on:{click:e.batchDel}},[e._v("批量删除")])],1),n("div",{staticStyle:{background:"#fff","padding-left":"16px",height:"100%","margin-top":"5px"}},[n("a-alert",{attrs:{type:"info",showIcon:!0}},[n("div",{attrs:{slot:"message"},slot:"message"},[e._v("\n            当前选择:\n            "),this.currSelected.title?n("a",[e._v(e._s(e.getCurrSelectedTitle()))]):e._e(),this.currSelected.title?n("a",{staticStyle:{"margin-left":"10px"},on:{click:e.onClearSelected}},[e._v("取消选择")]):e._e()])]),n("a-input-search",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{placeholder:"请输入部门名称"},on:{search:e.onSearch}}),n("a-col",{attrs:{md:10,sm:24}},[[n("a-dropdown",{attrs:{trigger:[this.dropTrigger]},on:{visibleChange:e.dropStatus}},[n("span",{staticStyle:{"user-select":"none"}},[n("a-tree",{attrs:{checkable:"",multiple:"",selectedKeys:e.selectedKeys,checkedKeys:e.checkedKeys,treeData:e.departTree,checkStrictly:!0,expandedKeys:e.iExpandedKeys,autoExpandParent:e.autoExpandParent},on:{select:e.onSelect,check:e.onCheck,rightClick:e.rightHandle,expand:e.onExpand}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:function(t){return e.handleAdd(3)}}},[e._v("添加")]),n("a-menu-item",{key:"2",on:{click:e.handleDelete}},[e._v("删除")]),n("a-menu-item",{key:"3",on:{click:e.closeDrop}},[e._v("取消")]),n("a-menu-item",{key:"4",on:{click:function(t){return e.hanleCategory()}}},[e._v("权限配置")])],1)],1)]],2)],1)],1)],1),n("a-col",{attrs:{md:12,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["departName",e.validatorRules.departName],expression:"['departName', validatorRules.departName ]"}],attrs:{placeholder:"请输入机构/部门名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"上级部门"}},[n("a-tree-select",{staticStyle:{width:"100%"},attrs:{dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.treeData,disabled:e.disable,placeholder:"无"},model:{value:e.model.parentId,callback:function(t){e.$set(e.model,"parentId",t)},expression:"model.parentId"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构编码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orgCode",e.validatorRules.orgCode],expression:"['orgCode', validatorRules.orgCode ]"}],attrs:{disabled:"",placeholder:"请输入机构编码"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["departOrder",{initialValue:0}],expression:"[ 'departOrder',{'initialValue':0}]"}]})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"手机号"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",{initialValue:""}],expression:"['mobile', {'initialValue':''}]"}],attrs:{placeholder:"请输入手机号"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{initialValue:""}],expression:"['address', {'initialValue':''}]"}],attrs:{placeholder:"请输入地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["memo",{initialValue:""}],expression:"['memo', {'initialValue':''}]"}],attrs:{placeholder:"请输入备注"}})],1)],1),n("div",{staticClass:"anty-form-btn"},[n("a-button",{attrs:{type:"default",htmlType:"button",icon:"sync"},on:{click:e.emptyCurrForm}},[e._v("重置")]),n("a-button",{attrs:{type:"primary",htmlType:"button",icon:"form"},on:{click:e.submitCurrForm}},[e._v("修改并保存")])],1)],1)],1),n("depart-modal",{ref:"departModal",on:{ok:e.loadTree}}),n("user-depart-category",{ref:"modalUserDepartCategory"})],1)},i=[],o=(n("7f7f"),n("c1af")),a=n("88bc"),s=n.n(a),l=n("4ec3"),c=n("0fea"),u=n("b65a"),d=n("7153"),f=[{title:"机构名称",dataIndex:"departName"},{title:"机构类型",align:"center",dataIndex:"orgType"},{title:"机构编码",dataIndex:"orgCode"},{title:"手机号",dataIndex:"mobile"},{title:"传真",dataIndex:"fax"},{title:"地址",dataIndex:"address"},{title:"排序",align:"center",dataIndex:"departOrder"},{title:"操作",align:"center",dataIndex:"action",scopedSlots:{customRender:"action"}}],h={name:"DepartList",mixins:[u["a"]],components:{DepartModal:o["default"],UserDepartCategory:d["default"]},data:function(){return{iExpandedKeys:[],loading:!1,autoExpandParent:!1,currFlowId:"",currFlowName:"",disable:!0,treeData:[],visible:!1,departTree:[],rightClickSelectedKey:"",rightClickSelectedTitle:"",hiding:!0,model:{},dropTrigger:"",depart:{},columns:f,disableSubmit:!1,checkedKeys:[],selectedKeys:[],autoIncr:1,currSelected:{},form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},graphDatasource:{nodes:[],edges:[]},validatorRules:{departName:{rules:[{required:!0,message:"请输入机构/部门名称!"}]},orgCode:{rules:[{required:!0,message:"请输入机构编码!"}]},mobile:{rules:[{validator:this.validateMobile}]}},url:{delete:"/sys/sysDepart/delete",edit:"/sys/sysDepart/edit",deleteBatch:"/sys/sysDepart/deleteBatch",exportXlsUrl:"sys/sysDepart/exportXls",importExcelUrl:"sys/sysDepart/importExcel",exportXlsTemplateUrl:"/sys/sysDepart/exportXlsTemplate"},show_add_first_depart_button:!1}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{hanleCategory:function(){this.$refs.modalUserDepartCategory.show(this.rightClickSelectedKey,this.rightClickSelectedTitle)},hanleCategoryButton:function(){var e=this.currSelected.key;if(!e)return this.$message.warning("请先选中一条记录!"),!1;this.$refs.modalUserDepartCategory.show(this.rightClickSelectedKey,this.rightClickSelectedTitle)},loadData:function(){var e=this;Object(l["D"])().then((function(t){t.success&&("3303"!=t.result.district?e.show_add_first_depart_button=!1:e.show_add_first_depart_button=!0)})),this.refresh()},loadTree:function(){var e=this,t=this;t.treeData=[],t.departTree=[],Object(l["L"])().then((function(n){if(n.success){for(var r=0;r<n.result.length;r++){var i=n.result[r];t.treeData.push(i),t.departTree.push(i),t.setThisExpandedKeys(i)}e.loading=!1}}))},setThisExpandedKeys:function(e){if(e.children&&e.children.length>0){"温州市"==e.title&&this.iExpandedKeys.push(e.key);for(var t=0;t<e.children.length;t++)this.setThisExpandedKeys(e.children[t])}},refresh:function(){this.loading=!0,this.loadTree()},rightHandle:function(e){this.dropTrigger="contextmenu",console.log(e.node.eventKey),this.rightClickSelectedKey=e.node.eventKey,this.rightClickSelectedTitle=e.node.title},onExpand:function(e){console.log("onExpand",e),this.iExpandedKeys=e,this.autoExpandParent=!1},backFlowList:function(){this.$router.back(-1)},dropStatus:function(e){0==e&&(this.dropTrigger="")},closeDrop:function(){this.dropTrigger=""},addRootNode:function(){this.$refs.nodeModal.add(this.currFlowId,"")},batchDel:function(){if(console.log(this.checkedKeys),this.checkedKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.checkedKeys.length;t++)e+=this.checkedKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"确定要删除所选中的 "+this.checkedKeys.length+" 条数据,以及子节点数据吗?",onOk:function(){Object(c["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadTree(),n.onClearSelected()):n.$message.warning(e.message)}))}})}},onSearch:function(e){var t=this;e?Object(l["pb"])({keyWord:e}).then((function(e){if(e.success){t.departTree=[];for(var n=0;n<e.result.length;n++){var r=e.result[n];t.departTree.push(r)}}else t.$message.warning(e.message)})):t.loadTree()},nodeModalOk:function(){this.loadTree()},nodeModalClose:function(){},hide:function(){console.log(111),this.visible=!1},onCheck:function(e,t){console.log("onCheck",e,t),this.hiding=!1,this.checkedKeys=e.checked},onSelect:function(e,t){console.log("selected",e,t),this.hiding=!1;var n=t.node.dataRef;this.rightClickSelectedKey=n.key,this.rightClickSelectedTitle=n.title,console.log("onSelect-record",n),this.currSelected=Object.assign({},n),this.model=this.currSelected,this.selectedKeys=[n.key],this.model.parentId=n.parentId,this.setValuesToForm(n)},setValuesToForm:function(e){this.form.getFieldDecorator("fax",{initialValue:""}),this.form.setFieldsValue(s()(e,"departName","orgCode","departOrder","mobile","fax","address","memo"))},getCurrSelectedTitle:function(){return this.currSelected.title?this.currSelected.title:""},onClearSelected:function(){this.hiding=!0,this.checkedKeys=[],this.currSelected={},this.form.resetFields(),this.selectedKeys=[]},handleNodeTypeChange:function(e){this.currSelected.nodeType=e},notifyTriggerTypeChange:function(e){this.currSelected.notifyTriggerType=e},receiptTriggerTypeChange:function(e){this.currSelected.receiptTriggerType=e},submitCurrForm:function(){var e=this;this.form.validateFields((function(t,n){if(!t){if(!e.currSelected.id)return void e.$message.warning("请点击选择要修改部门!");var r=Object.assign(e.currSelected,n);console.log("Received values of form: ",r),Object(c["i"])(e.url.edit,r,"put").then((function(t){t.success?(e.$message.success("保存成功!"),e.loadTree()):e.$message.error(t.message)}))}}))},emptyCurrForm:function(){this.form.resetFields()},nodeSettingFormSubmit:function(){this.form.validateFields((function(e,t){e||console.log("Received values of form: ",t)}))},openSelect:function(){this.$refs.sysDirectiveModal.show()},handleAdd:function(e){if(1==e)this.$refs.departModal.add(),this.$refs.departModal.title="新增";else if(2==e){var t=this.currSelected.key;if(!t)return this.$message.warning("请先选中一条记录!"),!1;this.$refs.departModal.add(this.selectedKeys),this.$refs.departModal.title="新增"}else this.$refs.departModal.add(this.rightClickSelectedKey),this.$refs.departModal.title="新增"},handleDelete:function(){var e=this;Object(l["i"])({id:this.rightClickSelectedKey}).then((function(t){t.success?(e.$message.success("删除成功!"),e.loadTree()):e.$message.warning("删除失败!")}))},selectDirectiveOk:function(e){console.log("选中指令数据",e),this.nodeSettingForm.setFieldsValue({directiveCode:e.directiveCode}),this.currSelected.sysCode=e.sysCode},getFlowGraphData:function(e){if(this.graphDatasource.nodes.push({id:e.id,text:e.flowNodeName}),e.children.length>0)for(var t=0;t<e.children.length;t++){var n=e.children[t];this.graphDatasource.edges.push({source:e.id,target:n.id}),this.getFlowGraphData(n)}}},created:function(){this.currFlowId=this.$route.params.id,this.currFlowName=this.$route.params.name}},p=h,m=(n("d477"),n("2877")),g=Object(m["a"])(p,r,i,!1,null,"43915735",null);t["default"]=g.exports},ca06:function(e,t,n){},ca42:function(e,t,n){"use strict";function r(e){return Math.pow(e,3)}function i(e){return 1-r(1-e)}function o(e){return 3*e*e-2*e*e*e}function a(e){return e}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}))},ca63:function(e,t,n){var r=n("af98"),i=n("5da3"),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},ca6c:function(e,t,n){},ca84:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"tablediwidth",staticClass:"tabledi",attrs:{id:"tabledi"}},[n("a",{style:e.crosshair,on:{click:e.biandefault}},[n("mapChoosePoints",{ref:"mapChoosePoints",attrs:{model:e.model,pointKey:e.pointKey,iconurl:e.iconurl,visiblets:e.visiblets,loading:e.loading},on:{openedit:function(t){return e.openedit(t)},lonlatChanged:function(t){return e.lonlatChanged(t)},dataSource2add:function(t){return e.dataSource2add(t)},tdupdate:function(t){return e.tdupdate(t)},dataSource2clear:function(t){return e.dataSource2clear(t)},handleCancelts:function(t){return e.handleCancelts(t)},handleOkts:function(t){return e.handleOkts(t)},handleAdd:function(t){return e.handleAdd(t)}}})],1)])])},i=[],o=(n("7b16"),n("d9be")),a=(n("28a5"),n("7f7f"),n("be94")),s=(n("456d"),n("ac6a"),n("aef6"),n("ca00")),l=n("0fea"),c=n("2b0e"),u=n("9fb0"),d=n("89f2"),f=(n("e734"),n("80f1")),h=n("eec4"),p=n.n(h),m={data:function(){return{tokenHeader:{"X-Access-Token":c["default"].ls.get(u["a"]),authorization:"authorization-text"},queryParam:{},dataSource:[],ipagination:{current:1,pageSize:1e3,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},filters:{},loading:!1,selectedRowKeys:[],selectionRows:[],toggleSearchStatus:!1,superQueryFlag:!1,superQueryParams:"",verify:!1,verify_select:!0,unVerify:!0,cxsp:!1,pointKey:"longitudeLatitude",model:{},crosshair:"cursor:default",visiblets:!1,dataSourcetd:"",loadingts:!1,dataSource2:[],dataSource3:[],dataSourcegd:[],leftmy:"leftmyshow",dataSource3zd:"",columns2:[{title:"区县",align:"center",width:"15%",dataIndex:"district"},{title:"类型",align:"center",width:"15%",dataIndex:"shlx"},{title:"名称",align:"center",width:"40%",dataIndex:"name"},{title:"操作",dataIndex:"action",align:"center",width:"30%",scopedSlots:{customRender:"action"}}],columns3:[{title:"区县",align:"center",width:"15%",dataIndex:"district"},{title:"类型",align:"center",width:"15%",dataIndex:"shlx"},{title:"名称",align:"center",width:"20%",dataIndex:"name"},{title:"审核意见",align:"center",width:"30%",dataIndex:"shyj"},{title:"操作",dataIndex:"action",align:"center",width:"15%",scopedSlots:{customRender:"action"}}]}},created:function(){var e=this.$route.path;e.endsWith("emergency_data_audit")?(this.url.list=this.url.list+"?verifyStatus=0",this.verify=!0,this.verify_select=!1,this.unVerify=!0,this.cxsp=!1,this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=0",this.columns=this.columns2):e.endsWith("emergency_data_audited")?(this.verify=!0,this.verify_select=!1,this.unVerify=!1,this.cxsp=!1,this.url.list=this.url.list+"?verifyStatus=1",this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=1",this.columns=this.columns2):e.endsWith("emergency_data_unaudit")&&(this.verify=!0,this.verify_select=!1,this.unVerify=!0,this.cxsp=!0,this.url.list=this.url.list+"?verifyStatus=-1",this.url.exportXlsUrl=this.url.exportXlsUrl+"?verifyStatus=-1",this.columns=this.columns3),this.loadData(),this.initDictConfig()},computed:{importExcelUrl:function(){return"/".concat(this.url.importExcelUrl)}},mounted:function(){var e=this,t=this,n=p()();n.listenTo(document.getElementById("tabledi"),(function(n){t.$nextTick((function(){e.$refs.mapChooseQuarts.changeSize()}))}))},methods:{loadData:function(e){var t=this;if(this.dataSource2clear(),this.dataSource3clear(),this.url.list){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();this.loading=!0,Object(l["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total,console.log("数据获取完成"+t.dataSource.length),""!=t.dataSource3zd&&(t.chulidataSource3(),t.dataSource=t.mergeArray(t.dataSource,t.dataSource3)),t.dataSourcechufa("")),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},handleSuperQuery:function(e){e?(this.superQueryFlag=!0,this.superQueryParams=JSON.stringify(e)):(this.superQueryParams="",this.superQueryFlag=!1),this.loadData()},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams));var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,Object(s["b"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData(1)},superQuery:function(){this.$refs.superQueryModal.show()},searchReset:function(){this.queryParam={},this.loadData(1)},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){Object(l["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDelete:function(e){if(this.url.delete){var t=this;Object(l["a"])(t.url.delete,{id:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},handleDeleteForm:function(e){if(this.url.delete){var t=this;Object(l["a"])(t.url.delete,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},handlePassForm:function(e){if(this.url.pass){var t=this;console.log(e),Object(l["c"])(t.url.pass,{smid:e+""}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.pass!")},handleNoPassForm:function(e){if(this.url.nopass){var t=this;Object(l["c"])(t.url.nopass,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.nopass属性!")},handleRePassForm:function(e){if(this.url.repass){var t=this;Object(l["c"])(t.url.repass,{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.repass属性!")},handleEdit:function(e){this.$refs.modalForm.isVerifyPass=this.verify,this.$refs.modalForm.edit(e),this.$refs.modalForm.title="编辑"+this.getCurFormTitle(),this.$refs.modalForm.disableSubmit=!1},handleAdd:function(e){this.$refs.modalForm.add(e),this.$refs.modalForm.title="新增"+this.getCurFormTitle(),this.$refs.modalForm.disableSubmit=!1},getCurFormTitle:function(){var e=document.getElementById("componentName");return e?"-"+e.innerText:""},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleToggleSearch:function(){this.toggleSearchStatus=!this.toggleSearchStatus},modalFormOk:function(){this.loadData()},handleDetail:function(e){this.$refs.modalForm.edit(e),this.$refs.modalForm.title="详情",this.$refs.modalForm.disableSubmit=!0},handleExportXls2:function(){var e=encodeURI(JSON.stringify(this.getQueryParams())),t="".concat(window._CONFIG["domianURL"],"/").concat(this.url.exportXlsUrl,"?paramsStr=").concat(e);window.location.href=t},handleExportXls:function(e){var t=this;e&&"string"==typeof e||(e="导出文件");var n=Object(a["a"])({},this.queryParam);this.selectedRowKeys&&this.selectedRowKeys.length>0&&(n["selections"]=this.selectedRowKeys.join(",")),console.log("导出参数",n),Object(l["b"])(this.url.exportXlsUrl,n).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),e+".xls");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",e+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else t.$message.warning("文件下载失败")}))},handleExportXlsTemplate:function(e){var t=this;Object(l["b"])(this.url.exportXlsTemplateUrl).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n]),e+".xlsx");else{var r=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",e+".xlsx"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else t.$message.warning("文件下载失败")}))},handleImportExcel:function(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?e.file.response.success?(this.$message.success("".concat(e.file.name," 文件上传成功")),this.loadData()):this.$message.error("".concat(e.file.name," ").concat(e.file.response.message,".")):"error"===e.file.status&&this.$message.error("文件上传失败: ".concat(e.file.msg," "))},getImgView:function(e){return e&&e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window._CONFIG["imgDomainURL"]+"/"+e},uploadFile:function(e){e?(e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window.open(window._CONFIG["domianURL"]+"/sys/common/download/"+e)):this.$message.warning("未知的文件")},batchVerity:function(e,t){var n;if(null!=e)if(n=1==e?"是否通过选中数据":"是否拒绝选中数据",this.url.vertifyBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var r="",i=0;i<this.selectedRowKeys.length;i++)r+="id"==t?"'"+this.selectedRowKeys[i]+"',":this.selectedRowKeys[i]+",";var o=this;this.$confirm({title:"审核",content:n,onOk:function(){Object(l["c"])(o.url.vertifyBatch,{ids:r,value:e,key:t}).then((function(e){e.success?(o.$message.success(e.message),o.loadData(),o.onClearSelected()):o.$message.warning(e.message)}))}})}else this.$message.error("请设置url.vertifyBatch属性!")},piliangok:function(){var e="是否通过选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(l["c"])(t.url.pass,{smid:n+""}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},piliangnook:function(){var e="是否不通过选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(l["c"])(t.url.nopass,{smid:n+""}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},piliangrepass:function(){var e="是否重新审批选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(l["c"])(t.url.repass,{smid:n}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},piliangdelete:function(){var e="是否删除选中数据";if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{var t=this;this.$confirm({title:"审核",content:e,onOk:function(){for(var e=0;e<t.selectedRowKeys.length;e++){var n=t.selectedRowKeys[e];Object(l["a"])(t.url.delete+"db2",{smid:n}).then((function(e){e.success||t.$message.warning(e.message)}))}t.loadData(),t.onClearSelected(),t.$message.success("操作成功")}})}},rowClick:function(e){var t=this;return{on:{click:function(){t.$refs.mapChooseQuarts.chooseAddressmy(e)}}}},rowClicknew:function(e){this.$refs.mapChooseQuarts.chooseAddressmy(e)},mergeArray:function(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)e[n]===t[r]&&e.splice(n,1);return e},dataSource2add:function(e){this.dataSource2.push(e)},dataSource2clear:function(){this.dataSource2=[]},dataSource3clear:function(){this.dataSource3=[]},lonlatChanged:function(e){this.model[this.pointKey]=e;var t=e.split(",");this.model.longitude=t[0],this.model.latitude=t[1]},biandefault:function(){this.$refs.modalForm.add(this.model)},openedit:function(e){this.handleEdit(e)},tdupdate:function(e){this.dataSourcetd=e,this.visiblets=!0},handleOkts:function(){var e=this;this.handleAdd(this.dataSourcetd),setTimeout((function(){e.visiblets=!1,e.loadingts=!1}),2e3)},handleCancelts:function(){this.$refs.mapChooseQuarts.jujiao?this.$refs.mapChooseQuarts.huanyuanVectorLabelsONE():this.$refs.mapChooseQuarts.addVectorLabels("还原点位数据"),this.visiblets=!1},yingxiang:function(){this.$refs.mapChooseQuarts.yingxiang()},tdmapin:function(){this.$refs.mapChooseQuarts.tdmapin()},supermapin:function(){this.$refs.mapChooseQuarts.supermapin()},yincangzuoce:function(){this.leftmy="leftmyhide"},xianshizuoce:function(){this.leftmy="leftmyshow"},dataSourcechufa:function(e){var t=this.dataSource;if(this.$refs.mapChooseQuarts.addVectorLabels(t,e),console.log("未定位数据去除开始"),this.dataSource=this.mergeArray(this.dataSource,this.dataSource2),this.dataSourcegd=[],t.length>=15)for(var n=0;n<15;n++)this.dataSourcegd.push(t[n]);else for(var r=0;r<t.length;r++)this.dataSourcegd.push(t[r]);this.$refs.mapTable.jiazai=15,console.log("数据处理完成:"+this.dataSourcegd.length)},getMsgFormSon:function(e){console.log("data",e),this.queryParam.village=e.village,this.queryParam.city=e.city,this.queryParam.street=e.street,this.queryParam.district=e.district},initDictConfig:function(){var e=this;Object(d["c"])("risk_level").then((function(t){t.success&&e.$set(e.dictOptions,"riskFourLevel",t.result)})),Object(d["c"])("verify_status").then((function(t){t.success&&e.$set(e.dictOptions,"verifyStatus",t.result)}))},quartChanged:function(e){this.model.longitudeLatitude=e,this.$refs.modalForm.add(this.model)},miandaoru:function(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?e.file.response.success?(this.$message.success("".concat(e.file.name," 文件上传成功")),this.loadData()):this.$message.error("".concat(e.file.name," ").concat(e.file.response.message,".")):"error"===e.file.status&&this.$message.error("文件上传失败: ".concat(e.file.msg," "))},handleDeleteFormDB2:function(e){if(this.url.delete){var t=this;Object(l["a"])(t.url.delete+"db2",{smid:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},dataSource3ziduan:function(e){this.dataSource3zd=e},chulidataSource3:function(){console.log("未完善数据处理开始");for(var e=this.dataSource3zd,t=e.split(","),n=0;n<this.dataSource.length;n++)for(var r=0;r<t.length;r++)if(null==this.dataSource[n][t[r]]||""==this.dataSource[n][t[r]]){this.dataSource3add(this.dataSource[n]);break}}},watch:{"myQueryParam.name":{handler:function(e,t){this.queryParam.name="*"+this.myQueryParam.name+"*"},deep:!0},"queryParam.name":{handler:function(e,t){void 0==e&&(this.myQueryParam.name="")},deep:!0},"queryParam.village":{handler:function(e,t){void 0==e&&(this.showDefaultParams=[])},deep:!0}}},g=n("5842"),v={name:"DykeList",mixins:[m],components:{city_child:o["default"],mapChoosePoints:g["default"],mapTable:f["default"]},data:function(){return{description:"堤防管理页面",iconurl:n("2829"),columns:[{title:"区县",align:"center",width:"20%",dataIndex:"district"},{title:"工程名称",align:"center",width:"50%",dataIndex:"name",key:"address 1",scopedSlots:{customRender:"name"},ellipsis:!0},{title:"操作",dataIndex:"action",width:"30%",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/dyke/dyke/list",delete:"/dyke/dyke/delete",deleteBatch:"/dyke/dyke/deleteBatch",exportXlsUrl:"/dyke/dyke/exportXls",importExcelUrl:"dyke/dyke/importExcel",exportXlsTemplateUrl:"/dyke/dyke/exportXlsTemplate",nopass:"/dyke/dyke/nopass",pass:"/dyke/dyke/pass",repass:"/dyke/dyke/repass",vertifyBatch:"/columnInfo/vertify/dyke"},dictOptions:{verifyStatus:[]},myQueryParam:{name:""},showDefaultParams:[]}}},y=v,b=(n("d126"),n("2877")),_=Object(b["a"])(y,r,i,!1,null,"d726c262",null);t["default"]=_.exports},cb3d:function(e,t,n){"use strict";n.r(t);var r=n("2f5e");n.d(t,"AppPage",(function(){return r["default"]}));var i=n("b8ea");n.d(t,"ArticlePage",(function(){return i["default"]}));var o=n("b8c5");n.d(t,"ProjectPage",(function(){return o["default"]}))},cb78:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:e.drawerWidth,placement:"right",closable:!0,visible:e.visible},on:{close:e.handleCancel}},[n("template",{slot:"title"},[n("div",{staticStyle:{width:"100%"}},[n("span",[e._v(e._s(e.title))]),n("span",{staticStyle:{display:"inline-block",width:"calc(100% - 51px)","padding-right":"10px","text-align":"right"}},[n("a-button",{staticStyle:{height:"20px",width:"20px",border:"0px"},attrs:{icon:"appstore"},on:{click:e.toggleScreen}})],1)])]),n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入名称"}})],1),n("a-form-item",{attrs:{label:"区县",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["code",{rules:[{required:!0,message:"请选择区县"}]}],expression:"[ 'code', {rules: [{ required: true, message: '请选择区县'}]} ]"}],attrs:{placeholder:"请选择区县"}},[n("a-select-option",{attrs:{value:"3303"}},[e._v("温州市")]),n("a-select-option",{attrs:{value:"330302"}},[e._v("鹿城区")]),n("a-select-option",{attrs:{value:"330382"}},[e._v("乐清市")]),n("a-select-option",{attrs:{value:"330381"}},[e._v("瑞安市")]),n("a-select-option",{attrs:{value:"330324"}},[e._v("永嘉县")]),n("a-select-option",{attrs:{value:"330328"}},[e._v("文成县")]),n("a-select-option",{attrs:{value:"330326"}},[e._v("平阳县")]),n("a-select-option",{attrs:{value:"330329"}},[e._v("泰顺县")]),n("a-select-option",{attrs:{value:"330303"}},[e._v("龙湾区")]),n("a-select-option",{attrs:{value:"330305"}},[e._v("洞头区")]),n("a-select-option",{attrs:{value:"330327"}},[e._v("苍南县")]),n("a-select-option",{attrs:{value:"330372"}},[e._v("瓯江口")]),n("a-select-option",{attrs:{value:"330304"}},[e._v("瓯海区")]),n("a-select-option",{attrs:{value:"330383"}},[e._v("龙港市")]),n("a-select-option",{attrs:{value:"330371"}},[e._v("经开区")])],1)],1),n("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{rules:[{required:!0,message:"请输入排序"}]}],expression:"[ 'sort',{rules: [{ required: true, message: '请输入排序'}]}]"}],attrs:{placeholder:"请输入排序"}})],1),n("a-form-item",{attrs:{label:"icon",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-upload",{staticClass:"avatar-uploader",attrs:{listType:"picture-card",showUploadList:!1,action:e.uploadAction,data:{isup:1},headers:e.headers,beforeUpload:e.beforeUpload},on:{change:e.handleChange}},[null!=this.model.icon?n("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:e.getAvatarView(),alt:"icon"}}):n("div",[n("a-icon",{attrs:{type:e.uploadLoading?"loading":"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v("上传")])],1)]),n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.open}},[e._v("打开图例库")])],1),n("a-form-item",{attrs:{label:"url",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["url",e.validatorRules.url],expression:"[ 'url', validatorRules.url]"}],attrs:{placeholder:"请输入url"}})],1),n("a-form-item",{attrs:{label:"备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",e.validatorRules.remark],expression:"[ 'remark', validatorRules.remark]"}],attrs:{placeholder:"请输入备注"}})],1)],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.handleCancel}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.confirmLoading},on:{click:e.handleSubmit}},[e._v("提交")])],1),n("index-icon",{ref:"choose_icon",on:{ok:e.choose_icon_ok}})],2)},i=[],o=n("4ec3"),a=n("88bc"),s=n.n(a),l=n("0fea"),c=n("c63e"),u=n("d9be"),d=n("6852"),f={name:"IndexIconModal",components:{departWindow:c["default"],city_child:u["default"],getAllDistricts:o["s"],IndexIcon:d["default"]},data:function(){return{districtList:[],modalWidth:800,drawerWidth:700,modaltoggleFlag:!0,confirmDirty:!1,userId:"",disableSubmit:!1,validatorRules:{district:{rules:[{required:!0,message:"请选择地区"}]},username:{rules:[{required:!0,message:"请输入用户账号!"},{validator:this.validateUsername}]},confirmpassword:{rules:[{required:!0,message:"请重新输入登陆密码!"},{validator:this.compareToFirstPassword}]}},title:"操作",visible:!1,model:{},roleList:[],selectedRole:[],labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},uploadLoading:!1,confirmLoading:!1,headers:{},form:this.$form.createForm(this),picUrl:"",url:{fileUpload:"/sys/common/upload",add:"/sys/indexIcon/add",edit:"/sys/indexIcon/edit",uploadAction:"/sys/common/upload",imgerver:"/sys/common/view"},showDefaultParams:[]}},created:function(){var e=this;Object(o["s"])().then((function(t){t.success&&(console.log(t.result),e.districtList=t.result)}))},computed:{uploadAction:function(){return this.url.fileUpload}},methods:{open:function(){this.$refs.choose_icon.visible=!0},choose_icon_ok:function(e){this.model.icon=e,this.form.setFieldsValue(s()(this.model,"id","name","sort","icon","url","remark","code"))},add:function(){this.model.icon="",this.edit({})},beforeUpload:function(e){var t=e.type;if(t.indexOf("image")<0)return this.$message.warning("请上传图片"),!1},toggleScreen:function(){this.modaltoggleFlag?this.modalWidth=window.innerWidth:this.modalWidth=800,this.modaltoggleFlag=!this.modaltoggleFlag},handleSubmit:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",o="";e.model.id?(i+=e.url.edit,o="put"):(i+=e.url.add,o="post");var a=Object.assign(e.model,r);console.log("表单提交数据",a),Object(l["i"])(i,a,o).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.submitSuccess(a)):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,e.visible=!1,t.close()}))}}))},submitSuccess:function(e){if(e.id)this.$emit("ok",e);else{var t=this.$refs.treeSelect.getCurrTreeData();this.expandedRowKeys=[],this.getExpandKeysByPid(e[this.pidField],t,t),this.$emit("ok",e,this.expandedRowKeys.reverse())}},handleCancel:function(){this.visible=!1},resetScreenSize:function(){var e=document.body.clientWidth;this.drawerWidth=e<500?e:700},edit:function(e){var t=this;this.resetScreenSize();this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"id","name","sort","icon","url","remark","code"))}))},getAvatarView:function(){return console.log(this.url.imgerver+"/"+this.model.icon),this.url.imgerver+"/"+this.model.icon},handleChange:function(e){if(this.icon="","uploading"!==e.file.status){if("done"===e.file.status){var t=e.file.response;this.uploadLoading=!1,console.log(t),t.success?this.model.icon=t.message:this.$message.warning(t.message)}}else this.uploadLoading=!0}}},h=f,p=(n("08f3"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"032d4dac",null);t["default"]=m.exports},cba0:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",staticStyle:{width:"350px"},on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),n("div",{staticClass:"yingxiang"},[n("a-dropdown",[n("a-button",{attrs:{type:"primary",icon:"swap"}},[e._v("地图切换")]),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.tdmapin()}}},[e._v("\n            标准\n          ")])]),n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.supermapin()}}},[e._v("\n            影像\n          ")])])],1)],1)],1),n("a-modal",{attrs:{title:"提示",afterClose:e.handleCancelts},model:{value:e.visiblets,callback:function(t){e.visiblets=t},expression:"visiblets"}},[n("template",{slot:"footer"},[n("a-button",{key:"back",on:{click:e.handleCancelts}},[e._v("\n        取消\n      ")]),n("a-button",{key:"submit",attrs:{type:"primary",loading:e.loadingts},on:{click:e.handleOkts}},[e._v("\n        确认\n      ")])],1),n("p",[e._v("即将更新该点坐标数据,是否确认?")])],2),n("div",{ref:"mapswidth",staticClass:"mapmy",attrs:{id:"maps"}})],1)},o=[],a=(n("c5f6"),n("28a5"),n("5bc0"),n("5eee")),s=n("a2c7"),l=n("2ce2"),c=n("c807"),u=n("480c"),d=n("3e6b"),f=n("d0e9"),h=n("58315"),p=n("256f"),m=n("6c77"),g=n("6cbf"),v=n("8295"),y=n("83a6"),b=n("8682"),_=n("4cdf"),w=n("f403"),x=n("84a1"),S=n("9834"),C=n("0fea"),E={name:"mapChooseLine",components:{aSelect:x["default"]},props:{model:"",pointKey:"",iconurl:"",visiblets:"",loadingts:""},data:function(){return{vector:{},source:{},maps:{},raster:new u["a"]({source:new f["a"]}),centerArr:[120.6790539441963,27.8479803194757],centerArr_330328:[120.02626646,27.80884152],bian:!1,dataSourceAll:"",zdname:"name",select_quart:new l["a"],zzzuobiao:"",arr:"",tdt_vec:{},layer:{},zhuji:{},pd:0,record:"",jujiao:!1,jinzhituozhuai:!1,qx:"",zoom:9}},mounted:function(){this.getquxian()},created:function(){},methods:{chooseAddress:function(e){var t=e.split(",");this.maps.getView().zoom=16,this.maps.getView().animate({center:[t[0],t[1]]})},chooseAddressmy:function(e){this.jujiao=!0;var t=e.longitudeLatitude,n=t.split(",");this.maps.getView().zoom=16,this.maps.getView().animate({zoom:14},{center:[n[0],n[1]]}),this.$emit("lonlatChanged",n[0]+","+n[1]);n[0],n[1];this.record=e,this.addVectorLabelcolor(e)},init:function(){Object(p["o"])(),this.initVariable();var e=this.checkModel();this.initMap(e),this.initEvent(),this.supermapin()},initVariable:function(){this.source=new h["a"],this.vector=new d["a"]({source:this.source})},checkModel:function(){var e=this.model[this.pointKey];if(null!=e&&void 0!=e&&""!=e){var t=e.split(",");if(2==t.length){for(var n=0;n<t.length;n++)t[n]=Number(t[n]);return this.initPoint(t),t}}return this.centerArr},initMap:function(e){var t=this;this.arr=e,330328==this.qx&&(this.arr=this.centerArr_330328,this.zoom=11),this.maps=new a["a"]({target:"maps",view:new s["a"]({center:[this.arr[0],this.arr[1]],zoom:this.zoom,projection:"EPSG:4326"})}),this.tdmapin();var n=new c["a"]({source:this.source,pixelTolerance:10});this.maps.addInteraction(n);var r=this;n.on("modifyend",(function(e){t.zzzuobiao=e.mapBrowserEvent.pixel;var n=t.zzzuobiao[0],i=t.zzzuobiao[1];t.zzzuobiao=[n,i-25];var o=t.maps.forEachFeatureAtPixel(t.zzzuobiao,(function(e){return e})),a=o.values_.dataSource,s=o.values_.geometry.flatCoordinates;a.longitude=s[0],a.latitude=s[1],t.jinzhituozhuai&&null==a.smid?(console.log("已拖拽新增点位坐标"),r.$emit("handleCancelts")):r.$emit("tdupdate",a)}))},initEvent:function(){var e=this,t=this;this.maps.on("click",(function(n){var r=e.maps.forEachFeatureAtPixel(n.pixel,(function(e){return e}));if(r){r.get("smid");var i=r.get("dataSource");t.$emit("openedit",i)}else{var o=t.maps.getEventCoordinate(n.originalEvent);t.$emit("lonlatChanged",o[0]+","+o[1])}})),this.maps.on("moveend",(function(t){console.log("触发地图缩放事件");var n=e.maps.getView().getZoom(),r=e.bian;e.bian=n>14||14==n,r!=e.bian&&(e.jujiao?e.huanyuanVectorLabelsONE():e.addVectorLabels("还原点位数据"))}))},addVectorLabelcolor:function(e){this.jinzhituozhuai=!1;var t=this;this.vector.getSource().clear();var n=e.longitude,r=e.latitude,o=e.longitudeLatitude;if(""==n)t.$emit("dataSource2add",dataSourceAll[i]);else{var a=o.split(",");1==a.length&&(a=[n,r]);var s=e[this.zdname],l=e.smid,c=new w["a"](a),u=new _["a"]({geometry:c,name:s,smid:l,dataSource:e});this.bian?u.setStyle(this.createLabelStylename(u)):u.setStyle(this.createLabelStyle()),this.vector.getSource().addFeature(u)}},linshidadian:function(e){this.jinzhituozhuai=!0;var t=e.longitudeLatitude,n=t.split(","),r=new w["a"](n),i=new _["a"]({geometry:r,dataSource:e});i.setStyle(this.createLabelStylels()),this.vector.getSource().addFeature(i)},addVectorLabel:function(e,t){var n=new _["a"]({geometry:new w["a"](t),name:e});n.setStyle(this.createLabelStyle()),this.vector.getSource().clear(),this.vector.getSource().addFeature(n)},addVectorLabels:function(e,t){if(this.jinzhituozhuai=!1,this.jujiao=!1,""!=t&&null!=t&&(this.zdname=t),"还原点位数据"==e)console.log("还原点位数据:"+this.dataSourceAll.length),e=this.dataSourceAll;else{for(var n=0;n<e.length;n++){var r=e[n].longitude,i=e[n].latitude;e[n].longitudeLatitude=r+","+i}this.dataSourceAll=e,console.log("处理“经纬度”坐标完成")}null==this.maps.disposed_?console.log("地图尚未加载完成(清除坐标)"):this.vector.getSource().clear();for(var o=new Array,a=this.createLabelStyle(),s=0;s<e.length;s++){var l=e[s].longitude,c=e[s].latitude,u=e[s].longitudeLatitude,d=this.hasLetter(u);if(null==l||""==l||d)this.$emit("dataSource2add",e[s]);else{(null==u||""==u||-1==u.indexOf(","))&&(u=l+","+c);var f=u.split(","),h=e[s][this.zdname],p=e[s].smid,m=e[s];m.longitudeLatitude=u;var g=new w["a"](f),v=new _["a"]({geometry:g,name:h,smid:p,dataSource:m});this.bian?v.setStyle(this.createLabelStylename(v)):v.setStyle(a),o.push(v)}}null==this.maps.disposed_?console.log("地图尚未加载完成(绘制点位)"):(this.vector.getSource().addFeatures(o),console.log("点位绘制完成:"+o.length))},huanyuanVectorLabelsONE:function(){var e=this.record,t=this;this.vector.getSource().clear();var n=e.longitude,r=e.latitude,o=e.longitudeLatitude;if(""==n)t.$emit("dataSource2add",dataSourceAll[i]);else{var a=o.split(",");1==a.length&&(a=[n,r]);var s=e[this.zdname],l=e.smid,c=new w["a"](a),u=new _["a"]({geometry:c,name:s,smid:l,dataSource:e});this.bian?u.setStyle(this.createLabelStylename(u)):u.setStyle(this.createLabelStyle()),this.vector.getSource().addFeature(u)}},createLabelStylels:function(){return new m["c"]({image:new g["a"]({anchor:[.5,35],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"}),zIndex:200})},createLabelStyle:function(){console.log("点位图标路径:"+this.iconurl);var e=this;return new m["c"]({image:new g["a"]({anchor:[.5,40],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:e.iconurl}),zIndex:200})},createLabelStylename:function(e){var t=this,n=" ";return void 0!=e&&(n=e.get("name")),new m["c"]({image:new g["a"]({anchor:[.5,40],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:t.iconurl}),text:new v["a"]({offsetY:17,textAlign:"center",textBaseline:"middle",font:"normal 18px 微软雅黑",text:n,fill:new y["a"]({color:"#00cef3"}),stroke:new b["a"]({color:"#000000",width:2})}),zIndex:200})},initPoint:function(e){var t=[e[0],e[1]];this.addVectorLabel("",t)},supermapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.layer=new u["a"]({source:new S["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.tdt_vec),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.addLayer(this.layer);var t="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYXZJ2019CGCS2000/rest/maps/YJ_YXZJ_2019_CGCS2000";this.zhuji=new u["a"]({source:new S["a"]({url:t,wrapX:!0}),projection:"EPSG:4326"}),this.maps.addLayer(this.zhuji),this.maps.addLayer(this.vector)},tdmapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJSGBZB2019CGCS2000/rest/maps/YJ_SG_BZB_2019_CGCS2000";this.tdt_vec=new u["a"]({source:new S["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.maps.removeLayer(this.layer),this.maps.removeLayer(this.vector),this.maps.removeLayer(this.zhuji),this.maps.addLayer(this.tdt_vec),this.maps.addLayer(this.vector)},yingxiang:function(){0==this.pd?(this.supermapin(),this.pd=1):(this.tdmapin(),this.pd=0)},handleCancelts:function(e){this.$emit("handleCancelts",e)},handleOkts:function(e){this.loadingts=!0,this.$emit("handleOkts",e)},changeSize:function(){null==this.maps.disposed_?console.log("地图尚未加载完成(刷新尺寸)"):this.maps.updateSize()},hasLetter:function(e){for(var t in e){var n=e.charCodeAt(t);if(n>=65&&n<=90||n>=97&&n<=122)return!0}return!1},getquxian:function(){var e=this;Object(C["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(","),i=(r[0],r[1]);e.qx=i,e.init()}else e.$message.warning(t.message)}))}}},k=E,O=(n("e9cd"),n("2877")),T=Object(O["a"])(k,r,o,!1,null,null,null);t["default"]=T.exports},cc34:function(e,t,n){},cc55:function(e,t,n){},cc58:function(e,t,n){"use strict";var r=n("8e4c"),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},cc89:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("exception-page",{attrs:{type:"404"}})},i=[],o=n("0673"),a={components:{ExceptionPage:o["default"]}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"ec864426",null);t["default"]=c.exports},cd07:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-header-index-wide"},[n("a-card",{style:{height:"100%"},attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:"100%"}}},[n("div",{staticClass:"account-settings-info-main",class:e.device,style:"min-height:"+e.mainInfoHeight},[n("div",{staticClass:"account-settings-info-left"},[n("a-menu",{style:{border:"0",width:"mobile"==e.device?"560px":"auto"},attrs:{mode:"mobile"==e.device?"horizontal":"inline",defaultSelectedKeys:e.defaultSelectedKeys,type:"inner"},on:{openChange:e.onOpenChange}},[n("a-menu-item",{key:"/account/settings/base"},[n("router-link",{attrs:{to:{name:"account-settings-base"}}},[e._v("\n              基本设置\n            ")])],1),n("a-menu-item",{key:"/account/settings/security"},[n("router-link",{attrs:{to:{name:"account-settings-security"}}},[e._v("\n              安全设置\n            ")])],1),n("a-menu-item",{key:"/account/settings/custom"},[n("router-link",{attrs:{to:{name:"account-settings-custom"}}},[e._v("\n              个性化\n            ")])],1),n("a-menu-item",{key:"/account/settings/binding"},[n("router-link",{attrs:{to:{name:"account-settings-binding"}}},[e._v("\n              账户绑定\n            ")])],1),n("a-menu-item",{key:"/account/settings/notification"},[n("router-link",{attrs:{to:{name:"account-settings-notification"}}},[e._v("\n              新消息通知\n            ")])],1)],1)],1),n("div",{staticClass:"account-settings-info-right"},[n("div",{staticClass:"account-settings-info-title"},[n("span",[e._v(e._s(e.$route.meta.title))])]),n("route-view")],1)])])],1)},i=[],o=n("b445"),a=n("501f"),s=n("ac0d"),l={components:{RouteView:a["default"],PageLayout:o["default"]},mixins:[s["b"]],data:function(){return{mode:"inline",mainInfoHeight:"100%",openKeys:[],defaultSelectedKeys:[],preview:{},option:{img:"/avatar2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1]},pageTitle:""}},created:function(){this.updateMenu()},mounted:function(){this.mainInfoHeight=window.innerHeight-285+"px"},methods:{onOpenChange:function(e){this.openKeys=e},updateMenu:function(){var e=this.$route.matched.concat();this.defaultSelectedKeys=[e.pop().path]}}},c=l,u=(n("2bcd"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"10979fbf",null);t["default"]=d.exports},cd0a:function(e,t,n){"use strict";n.r(t);var r={403:{img:"https://gw.alipayobjects.com/zos/rmsportal/wZcnGqRDyhPOEYFcZDnb.svg",title:"403",desc:"抱歉,你无权访问该页面"},404:{img:"https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg",title:"404",desc:"抱歉,你访问的页面不存在或仍在开发中"},500:{img:"https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg",title:"500",desc:"抱歉,服务器出错了"}};t["default"]=r},cd17:function(e,t,n){},cd43:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-form",{staticClass:"form",attrs:{form:e.form},on:{submit:e.handleSubmit}},[n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:6,md:12,sm:24}},[n("a-form-item",{attrs:{label:"仓库名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.name",{rules:[{required:!0,message:"请输入仓库名称",whitespace:!0}]}],expression:"[\n            'repository.name',\n            {rules: [{ required: true, message: '请输入仓库名称', whitespace: true}]}\n          ]"}],attrs:{placeholder:"请输入仓库名称"}})],1)],1),n("a-col",{attrs:{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24}},[n("a-form-item",{attrs:{label:"仓库域名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.domain",{rules:[{required:!0,message:"请输入仓库域名",whitespace:!0},{validator:e.validate}]}],expression:"[\n            'repository.domain',\n            {rules: [{ required: true, message: '请输入仓库域名', whitespace: true}, {validator: validate}]}\n          ]"}],attrs:{addonBefore:"http://",addonAfter:".com",placeholder:"请输入"}})],1)],1),n("a-col",{attrs:{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24}},[n("a-form-item",{attrs:{label:"仓库管理员"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.manager",{rules:[{required:!0,message:"请选择管理员"}]}],expression:"[ 'repository.manager', {rules: [{ required: true, message: '请选择管理员'}]} ]"}],attrs:{placeholder:"请选择管理员"}},[n("a-select-option",{attrs:{value:"王同学"}},[e._v("王同学")]),n("a-select-option",{attrs:{value:"李同学"}},[e._v("李同学")]),n("a-select-option",{attrs:{value:"黄同学"}},[e._v("黄同学")])],1)],1)],1)],1),n("a-row",{staticClass:"form-row",attrs:{gutter:16}},[n("a-col",{attrs:{lg:6,md:12,sm:24}},[n("a-form-item",{attrs:{label:"审批人"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.auditor",{rules:[{required:!0,message:"请选择审批员"}]}],expression:"[ 'repository.auditor', {rules: [{ required: true, message: '请选择审批员'}]} ]"}],attrs:{placeholder:"请选择审批员"}},[n("a-select-option",{attrs:{value:"王晓丽"}},[e._v("王晓丽")]),n("a-select-option",{attrs:{value:"李军"}},[e._v("李军")])],1)],1)],1),n("a-col",{attrs:{xl:{span:7,offset:1},lg:{span:8},md:{span:12},sm:24}},[n("a-form-item",{attrs:{label:"生效日期"}},[n("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.effectiveDate",{rules:[{required:!0,message:"请选择生效日期"}]}],expression:"[\n            'repository.effectiveDate',\n            {rules: [{ required: true, message: '请选择生效日期'}]}\n          ]"}],staticStyle:{width:"100%"}})],1)],1),n("a-col",{attrs:{xl:{span:9,offset:1},lg:{span:10},md:{span:24},sm:24}},[n("a-form-item",{attrs:{label:"仓库类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["repository.type",{rules:[{required:!0,message:"请选择仓库类型"}]}],expression:"[\n            'repository.type',\n            {rules: [{ required: true, message: '请选择仓库类型'}]}\n          ]"}],attrs:{placeholder:"请选择仓库类型"}},[n("a-select-option",{attrs:{value:"公开"}},[e._v("公开")]),n("a-select-option",{attrs:{value:"私密"}},[e._v("私密")])],1)],1)],1)],1),e.showSubmit?n("a-form-item",[n("a-button",{attrs:{htmlType:"submit"}},[e._v("Submit")])],1):e._e()],1)},i=[],o={name:"RepositoryForm",props:{showSubmit:{type:Boolean,default:!1}},data:function(){return{form:this.$form.createForm(this)}},methods:{handleSubmit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,n){e||t.$notification["error"]({message:"Received values of form:",description:n})}))},validate:function(e,t,n){var r=/^user-(.*)$/;r.test(t)||n("需要以 user- 开头"),n()}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"cba1edea",null);t["default"]=l.exports},cd7e:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return c}));var r="ol-hidden",i="ol-unselectable",o="ol-control",a="ol-collapsed",s=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],c=function(e){var t=e.match(s);if(!t)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=l.length;r<i;++r){var o=t[r+1];void 0!==o&&(n[l[r]]=o)}return n.families=n.family.split(/,\s?/),n}},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(){},r=function(e){return function(){return e}},i=r(!1),o=r(!0),a=function(){return s},s=function(){var e=function(e){return e.isNone()},t=function(e){return e()},s=function(e){return e},l={fold:function(e,t){return e()},is:i,isSome:i,isNone:o,getOr:s,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:s,orThunk:t,map:a,each:n,bind:a,exists:i,forall:o,filter:a,equals:e,equals_:e,toArray:function(){return[]},toString:r("none()")};return l}(),l=function(e){var t=r(e),n=function(){return c},a=function(t){return t(e)},c={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:o,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return l(t(e))},each:function(t){t(e)},bind:a,exists:a,forall:a,filter:function(t){return t(e)?c:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(i,(function(t){return n(e,t)}))}};return c},c=function(e){return null===e||void 0===e?s:l(e)},u={some:l,none:a,from:c},d=Object.keys,f=Object.hasOwnProperty,h=function(e,t){for(var n=d(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},p=function(e){return function(t,n){e[n]=t}},m=function(e,t,n,r){var i={};return h(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},g=function(e,t){var r={};return m(e,t,p(r),n),r},v=function(e,t){return f.call(e,t)},y=function(e,t){return v(e,t)&&void 0!==e[t]&&null!==e[t]},b=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},_=function(e){return function(t){return b(t)===e}},w=function(e){return function(t){return typeof t===e}},x=function(e){return function(t){return e===t}},S=_("string"),C=_("object"),E=_("array"),k=x(null),O=w("boolean"),T=function(e){return null===e||void 0===e},I=function(e){return!T(e)},A=w("number"),R=Array.prototype.push,P=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!E(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);R.apply(t,e[n])}return t},M=function(e,t){return t>=0&&t<e.length?u.some(e[t]):u.none()},N=function(e){return M(e,0)},L=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return u.none()},D=("undefined"!==typeof window?window:Function("return this;")(),function(e,t,n){if(!(S(n)||O(n)||A(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}),j=function(e,t,n){D(e.dom,t,n)},F=function(e,t){e.dom.removeAttribute(t)},B=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return U(r.childNodes[0])},q=function(e,t){var n=t||document,r=n.createElement(e);return U(r)},z=function(e,t){var n=t||document,r=n.createTextNode(e);return U(r)},U=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},G=function(e,t,n){return u.from(e.dom.elementFromPoint(t,n)).map(U)},V={fromHtml:B,fromTag:q,fromText:z,fromDom:U,fromPoint:G},W=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),H=tinymce.util.Tools.resolve("tinymce.util.Promise"),$=tinymce.util.Tools.resolve("tinymce.util.XHR"),K=function(e){return e.getParam("image_dimensions",!0,"boolean")},X=function(e){return e.getParam("image_advtab",!1,"boolean")},Y=function(e){return e.getParam("image_uploadtab",!0,"boolean")},J=function(e){return e.getParam("image_prepend_url","","string")},Q=function(e){return e.getParam("image_class_list")},Z=function(e){return e.getParam("image_description",!0,"boolean")},ee=function(e){return e.getParam("image_title",!1,"boolean")},te=function(e){return e.getParam("image_caption",!1,"boolean")},ne=function(e){return e.getParam("image_list",!1)},re=function(e){return I(e.getParam("images_upload_url"))},ie=function(e){return I(e.getParam("images_upload_handler"))},oe=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},ae=function(e){return e.getParam("automatic_uploads",!0,"boolean")},se=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},le=function(e){return new H((function(t){var n=document.createElement("img"),r=function(e){n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=se(n.width,n.clientWidth),t=se(n.height,n.clientHeight),i={width:e,height:t};r(H.resolve(i))},n.onerror=function(){r(H.reject("Failed to get image dimensions for: "+e))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=e}))},ce=function(e){return e&&(e=e.replace(/px$/,"")),e},ue=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},de=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},fe=function(e,t){var n=ne(e);"string"===typeof n?$.send({url:n,success:function(e){t(JSON.parse(e))}}):"function"===typeof n?n(t):t(n)},he=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!K(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},pe=function(e){return new H((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},me=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},ge=W.DOM,ve=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?ce(e.style.marginLeft):""},ye=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?ce(e.style.marginTop):""},be=function(e){return e.style.borderWidth?ce(e.style.borderWidth):""},_e=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},we=function(e,t){return e.style[t]?e.style[t]:""},xe=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Se=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Ce=function(e){var t=ge.create("figure",{class:"image"});ge.insertAfter(t,e),t.appendChild(e),t.appendChild(ge.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Ee=function(e){var t=e.parentNode;ge.insertAfter(e,t),ge.remove(t)},ke=function(e){xe(e)?Ee(e):Ce(e)},Oe=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Te=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=ue(r),Oe(e,t)):Se(e,n,r)}},Ie=function(e,t){return e.style[t]?ce(e.style[t]):_e(e,t)},Ae=function(e,t){var n=ue(t);e.style.marginLeft=n,e.style.marginRight=n},Re=function(e,t){var n=ue(t);e.style.marginTop=n,e.style.marginBottom=n},Pe=function(e,t){var n=ue(t);e.style.borderWidth=n},Me=function(e,t){e.style.borderStyle=t},Ne=function(e){return we(e,"borderStyle")},Le=function(e){return"FIGURE"===e.nodeName},De=function(e){return"IMG"===e.nodeName},je=function(e){return 0===ge.getAttrib(e,"alt").length&&"presentation"===ge.getAttrib(e,"role")},Fe=function(e){return je(e)?"":_e(e,"alt")},Be=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},qe=function(e,t){var n=document.createElement("img");return Se(n,"style",t.style),(ve(n)||""!==t.hspace)&&Ae(n,t.hspace),(ye(n)||""!==t.vspace)&&Re(n,t.vspace),(be(n)||""!==t.border)&&Pe(n,t.border),(Ne(n)||""!==t.borderStyle)&&Me(n,t.borderStyle),e(n.getAttribute("style"))},ze=function(e,n){var r=document.createElement("img");if($e(e,t(t({},n),{caption:!1}),r),Ve(r,n.alt,n.isDecorative),n.caption){var i=ge.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(ge.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},Ue=function(e,t){return{src:_e(t,"src"),alt:Fe(t),title:_e(t,"title"),width:Ie(t,"width"),height:Ie(t,"height"),class:_e(t,"class"),style:e(_e(t,"style")),caption:xe(t),hspace:ve(t),vspace:ye(t),border:be(t),borderStyle:we(t,"borderStyle"),isDecorative:je(t)}},Ge=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},Ve=function(e,t,n){if(n){ge.setAttrib(e,"role","presentation");var r=V.fromDom(e);j(r,"alt","")}else{if(k(t)){r=V.fromDom(e);F(r,"alt")}else{r=V.fromDom(e);j(r,"alt",t)}"presentation"===ge.getAttrib(e,"role")&&ge.setAttrib(e,"role","")}},We=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ve(e,n.alt,n.isDecorative)},He=function(e,t){return function(n,r,i){e(n,i),Oe(n,t)}},$e=function(e,t,n){var r=Ue(e,n);Ge(n,r,t,"caption",(function(e,t,n){return ke(e)})),Ge(n,r,t,"src",Se),Ge(n,r,t,"title",Se),Ge(n,r,t,"width",Te("width",e)),Ge(n,r,t,"height",Te("height",e)),Ge(n,r,t,"class",Se),Ge(n,r,t,"style",He((function(e,t){return Se(e,"style",t)}),e)),Ge(n,r,t,"hspace",He(Ae,e)),Ge(n,r,t,"vspace",He(Re,e)),Ge(n,r,t,"border",He(Pe,e)),Ge(n,r,t,"borderStyle",He(Me,e)),We(n,r,t)},Ke=function(e,t){var n=e.dom.styles.parse(t),r=de(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},Xe=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||me(t))?null:t},Ye=function(e,t){var n=e.dom,r=g(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),i=n.getParent(t.parentNode,(function(e){return y(r,e.nodeName)}),e.getBody());return i?n.split(i,t):t},Je=function(e){var t=Xe(e);return t?Ue((function(t){return Ke(e,t)}),t):Be()},Qe=function(e,t){var n=ze((function(t){return Ke(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),Le(r)){var i=Ye(e,r);e.selection.select(i)}else e.selection.select(r)},Ze=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},et=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},tt=function(e,t){var n=Xe(e);if($e((function(t){return Ke(e,t)}),t,n),Ze(e,n),Le(n.parentNode)){var r=n.parentNode;Ye(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),he(e,t,n)},nt=function(e,n){var r=Xe(e);if(r){var i=Ue((function(t){return Ke(e,t)}),r),o=t(t({},i),n);o.src?tt(e,o):et(e,r)}else n.src&&Qe(e,t(t({},Be()),n))},rt=Object.prototype.hasOwnProperty,it=function(e,t){var n=C(e)&&C(t);return n?at(e,t):t},ot=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)rt.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},at=ot(it),st=function(e){return e.length>0},lt=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),ct=tinymce.util.Tools.resolve("tinymce.util.Tools"),ut=function(e){return S(e.value)?e.value:""},dt=function(e){return S(e.text)?e.text:S(e.title)?e.title:""},ft=function(e,t){var n=[];return ct.each(e,(function(e){var r=dt(e);if(void 0!==e.menu){var i=ft(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},ht=function(e){return void 0===e&&(e=ut),function(t){return t?u.from(t).map((function(t){return ft(t,e)})):u.none()}},pt=function(e){return ht(ut)(e)},mt=function(e){return Object.prototype.hasOwnProperty.call(e,"items")},gt=function(e,t){return L(e,(function(e){return mt(e)?gt(e.items,t):e.value===t?u.some(e):u.none()}))},vt=function(e,t){return e.bind((function(e){return gt(e,t)}))},yt={sanitizer:ht,sanitize:pt,findEntry:vt},bt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},_t={makeTab:bt},wt=function(e){var t=yt.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new H((function(n){fe(e,(function(e){n(t(e).map((function(e){return P([[{text:"None",value:""}],e])})))}))})),r=yt.sanitize(Q(e)),i=X(e),o=Y(e),a=re(e),s=ie(e),l=Je(e),c=Z(e),d=ee(e),f=K(e),h=te(e),p=oe(e),m=ae(e),g=u.some(J(e)).filter((function(e){return S(e)&&e.length>0}));return n.then((function(e){return{image:l,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:a,hasUploadHandler:s,hasDescription:c,hasImageTitle:d,hasDimensions:f,hasImageCaption:h,prependURL:g,hasAccessibilityOptions:p,automaticUploads:m}}))},xt=function(e){var t={name:"src",type:"urlinput",filetype:"image",label:"Source"},n=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),r={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},i={name:"title",type:"input",label:"Image title"},o={name:"dimensions",type:"sizeinput"},a={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},s=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),l={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]};return P([[t],n.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[a]:[],e.hasDescription?[r]:[],e.hasImageTitle?[i]:[],e.hasDimensions?[o]:[],[{type:"grid",columns:2,items:P([s.toArray(),e.hasImageCaption?[l]:[]])}]])},St=function(e){return{title:"General",name:"general",items:xt(e)}},Ct={makeTab:St,makeItems:xt},Et=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},kt={makeTab:Et},Ot=function(e){return{prevImage:yt.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Tt=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},It=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},At=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?u.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?u.some(e+t):u.none()}))},Rt=function(e,t){var n=t.getData();At(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Pt=function(e,t,n){e.hasDescription&&S(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&S(n.title)&&(t.title=n.title),e.hasDimensions&&(S(n.width)&&(t.dimensions.width=n.width),S(n.height)&&(t.dimensions.height=n.height)),S(n.class)&&yt.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&O(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(S(n.style)&&(t.style=n.style),S(n.vspace)&&(t.vspace=n.vspace),S(n.border)&&(t.border=n.border),S(n.hspace)&&(t.hspace=n.hspace),S(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Mt=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=at({},n);Pt(e,i,r),t.setData(i)}},Nt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||(st(o)?e.imageSize(o).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},Lt=function(e,t,n){var r=n.getData(),i=yt.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},Dt=function(e,t,n,r){Rt(t,r),Mt(t,r),Nt(e,t,n,r),Lt(t,n,r)},jt=function(e,t,n,r){var i=r.getData(),o=yt.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,Dt(e,t,n,r)},Ft=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?ce(String(e["margin-top"])):""},Bt=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?ce(String(e["margin-right"])):""},qt=function(e){return e["border-width"]?ce(String(e["border-width"])):""},zt=function(e){return e["border-style"]?String(e["border-style"]):""},Ut=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=de(e(n.style)),i=at({},n);return i.vspace=Ft(r),i.hspace=Bt(r),i.border=qt(r),i.borderstyle=zt(r),i.style=Ut(e,t,r),i},Vt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Wt=function(e,t,n){var r=at(Tt(t.image),n.getData()),i=qe(e.normalizeCss,It(r,!1));n.setData({style:i})},Ht=function(e,t,n,r){var i=r.getData();r.block("Uploading image"),N(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=function(){r.unblock(),URL.revokeObjectURL(o)},s=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),Dt(e,t,n,r)};pe(i).then((function(n){var l=e.createBlobCache(i,o,n);t.automaticUploads?e.uploadImage(l).then((function(e){s(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(l),s(l.blobUri()),r.unblock())}))}))},$t=function(e,t,n){return function(r,i){"src"===i.name?Dt(e,t,n,r):"images"===i.name?jt(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Vt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Wt(e,t,r):"fileinput"===i.name?Ht(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Kt=function(e){return function(){e.open=!1}},Xt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:P([[Ct.makeTab(e)],e.hasAdvTab?[_t.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[kt.makeTab(e)]:[]])};return t}var n={type:"panel",items:Ct.makeItems(e)};return n},Yt=function(e){return function(t){var n=Ot(t);return{title:"Insert/Edit Image",size:"normal",body:Xt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Tt(t.image),onSubmit:e.onSubmit(t),onChange:$t(e,t,n),onClose:Kt(n)}}},Jt=function(e){return function(t){return function(n){var r=at(Tt(t.image),n.getData());e.execCommand("mceUpdateImage",!1,It(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},Qt=function(e){return function(t){return le(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}}))}},Zt=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},en=function(e){return function(t){e.editorUpload.blobCache.add(t)}},tn=function(e){return function(t){e.windowManager.alert(t)}},nn=function(e){return function(t){return Ke(e,t)}},rn=function(e){return function(t){return e.dom.parseStyle(t)}},on=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},an=function(e){return function(t){return lt(e).upload([t],!1).then((function(e){return 0===e.length?H.reject("Failed to upload image"):!1===e[0].status?H.reject(e[0].error):e[0]}))}},sn=function(e){var t={onSubmit:Jt(e),imageSize:Qt(e),addToBlobCache:en(e),createBlobCache:Zt(e),alertErr:tn(e),normalizeCss:nn(e),parseStyle:rn(e),serializeStyle:on(e),uploadImage:an(e)},n=function(){wt(e).then(Yt(t)).then(e.windowManager.open)};return{open:n}},ln=function(e){e.addCommand("mceImage",sn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return nt(e,n)}))}))},cn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},un=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];cn(i)&&(i.attr("contenteditable",e?"false":null),ct.each(i.getAll("figcaption"),r))}}},dn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",un(!0)),e.serializer.addNodeFilter("figure",un(!1))}))},fn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:sn(e).open,onSetup:function(t){return e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:sn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return Le(e)||De(e)&&!me(e)?["image"]:[]}})};function hn(){e.add("image",(function(e){dn(e),fn(e),ln(e)}))}hn()})()},ce2c:function(e,t,n){"use strict";var r=n("869f"),i=n("ab35"),o=n("5c38"),a=n("e98d"),s=n("0999"),l=n("ddea"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e){function t(t){var n=this,r=void 0!==t.rotateWithView&&t.rotateWithView;return n=e.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0]})||this,n.canvas_={},n.hitDetectionCanvas_=null,n.fill_=void 0!==t.fill?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=void 0!==t.radius?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=void 0!==t.angle?t.angle:0,n.stroke_=void 0!==t.stroke?t.stroke:null,n.anchor_=null,n.size_=null,n.imageSize_=null,n.hitDetectionImageSize_=null,n.render(),n}return c(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},t.prototype.getAnchor=function(){return this.anchor_},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionCanvas_){var e=this.createRenderOptions();this.createHitDetectionCanvas_(e)}return this.hitDetectionCanvas_},t.prototype.getImage=function(e){if(!this.canvas_[e||1]){var t=this.createRenderOptions(),n=Object(s["a"])(t.size*e||1,t.size*e||1);this.draw_(t,n,0,0,e||1),this.canvas_[e||1]=n.canvas}return this.canvas_[e||1]},t.prototype.getPixelRatio=function(e){return e},t.prototype.getImageSize=function(){return this.imageSize_},t.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},t.prototype.getImageState=function(){return r["a"].LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.listenImageChange=function(e){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e){},t.prototype.createRenderOptions=function(){var e,t=l["e"],n=l["h"],r=0,i=null,o=0,s=0;this.stroke_&&(e=this.stroke_.getColor(),null===e&&(e=l["l"]),e=Object(a["a"])(e),s=this.stroke_.getWidth(),void 0===s&&(s=l["i"]),i=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset(),n=this.stroke_.getLineJoin(),void 0===n&&(n=l["h"]),t=this.stroke_.getLineCap(),void 0===t&&(t=l["e"]),r=this.stroke_.getMiterLimit(),void 0===r&&(r=l["j"]));var c=2*(this.radius_+s)+1;return{strokeStyle:e,strokeWidth:s,size:c,lineCap:t,lineDash:i,lineDashOffset:o,lineJoin:n,miterLimit:r}},t.prototype.render=function(){var e=this.createRenderOptions(),t=Object(s["a"])(e.size,e.size);this.draw_(e,t,0,0,1),this.canvas_={},this.canvas_[1]=t.canvas;var n=t.canvas.width,r=n,i=this.getDisplacement();this.hitDetectionImageSize_=[e.size,e.size],this.createHitDetectionCanvas_(e),this.anchor_=[n/2-i[0],n/2+i[1]],this.size_=[n,n],this.imageSize_=[r,r]},t.prototype.draw_=function(e,t,n,r,i){var o,s,c;t.setTransform(i,0,0,i,0,0),t.translate(n,r),t.beginPath();var u=this.points_;if(u===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var d=void 0!==this.radius2_?this.radius2_:this.radius_;for(d!==this.radius_&&(u*=2),o=0;o<=u;o++)s=2*o*Math.PI/u-Math.PI/2+this.angle_,c=o%2===0?this.radius_:d,t.lineTo(e.size/2+c*Math.cos(s),e.size/2+c*Math.sin(s))}if(this.fill_){var f=this.fill_.getColor();null===f&&(f=l["c"]),t.fillStyle=Object(a["a"])(f),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,t.setLineDash&&e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke()),t.closePath()},t.prototype.createHitDetectionCanvas_=function(e){if(this.hitDetectionCanvas_=this.getImage(1),this.fill_){var t=this.fill_.getColor(),n=0;if("string"===typeof t&&(t=Object(o["a"])(t)),null===t?n=1:Array.isArray(t)&&(n=4===t.length?t[3]:1),0===n){var r=Object(s["a"])(e.size,e.size);this.hitDetectionCanvas_=r.canvas,this.drawHitDetectionCanvas_(e,r,0,0)}}},t.prototype.drawHitDetectionCanvas_=function(e,t,n,r){t.translate(n,r),t.beginPath();var i=this.points_;if(i===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var o=void 0!==this.radius2_?this.radius2_:this.radius_;o!==this.radius_&&(i*=2);var a=void 0,s=void 0,c=void 0;for(a=0;a<=i;a++)c=2*a*Math.PI/i-Math.PI/2+this.angle_,s=a%2===0?this.radius_:o,t.lineTo(e.size/2+s*Math.cos(c),e.size/2+s*Math.sin(c))}t.fillStyle=l["c"],t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.stroke()),t.closePath()},t}(i["a"]),d=u,f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(e){function t(t){var n=this,r=t||{};return n=e.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,scale:void 0!==r.scale?r.scale:1,rotation:void 0!==r.rotation?r.rotation:0,rotateWithView:void 0!==r.rotateWithView&&r.rotateWithView,displacement:void 0!==r.displacement?r.displacement:[0,0]})||this,n}return f(t,e),t.prototype.clone=function(){var e=this.getScale(),n=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},t.prototype.setRadius=function(e){this.radius_=e,this.render()},t}(d);t["a"]=h},ce31:function(e,t,n){"use strict";n("c434")},ce6b:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},on:{submit:function(t){return t.preventDefault(),e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:12}},[n("a-form-item",{attrs:{label:"名称"}},[n("a-input",{attrs:{placeholder:"请输入名称查询"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}}),n("a-input",{attrs:{placeholder:"请输入账号查询",hidden:""},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator",staticStyle:{"border-top":"5px"}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("添加")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},on:{click:e.handleMenuClick},slot:"overlay"},[n("a-menu-item",{key:"1"},[n("a-icon",{attrs:{type:"delete"},on:{click:e.batchDel}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("\n        批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项  \n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"avatarslot",fn:function(t,r,i){return[n("div",{staticClass:"anty-img-wrap"},[n("a-avatar",{attrs:{shape:"square",src:e.getAvatarView(r.avatar),icon:"user"}})],1)]}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("indexIcon-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=(n("ac6a"),n("cb78")),a=n("ddf9"),s=n("4ec3"),l=n("b65a"),c=n("74c6"),u=n("0c7c"),d=n("a9c6"),f={name:"UserList",mixins:[l["a"]],components:{SysUserAgentModal:c["default"],IndexIconModal:o["default"],PasswordModal:a["default"],MenuModal:u["default"],MenuHideModal:d["default"]},mounted:function(){},created:function(){this.loadchooseData()},data:function(){return{description:"这是用户管理页面",queryParam:{},myQueryParam:{username:""},columns:[{title:"icon名称",align:"center",dataIndex:"name",width:120},{title:"code编码",align:"center",width:100,dataIndex:"code"},{title:"排序",align:"center",width:120,dataIndex:"sort"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:170}],url:{imgerver:window._CONFIG["domianURL"]+"/sys/common/view",syncUser:"/process/extActProcess/doSyncUser",list:"/sys/indexIcon/pageList",delete:"/sys/indexIcon/delete",deleteBatch:"/sys/user/deleteBatch",exportXlsUrl:"/sys/user/exportXls",importExcelUrl:"sys/user/importExcel",exportXlsTemplateUrl:"/sys/user/exportXlsTemplate"},dep_array:[],role_array:[],isorter:{column:"",order:""}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},watch:{},methods:{loadchooseData:function(){var e=this;this.dis_array=[],Object(s["L"])().then((function(t){if(t.success)for(var n=0;n<t.result.length;n++){var r=t.result[n];e.dep_array.push(r)}console.log(e.dep_array)})),Object(s["qb"])().then((function(t){t.success&&(e.role_array=t.result)}))},searchReset:function(){this.queryParam={},this.myQueryParam.username="",this.loadData(1)},handleHidePerssion:function(e){this.$refs.menuHideModal.show(e)},handlePerssion:function(e){this.$refs.menuModal.show(e)},getAvatarView:function(e){return this.url.imgerver+"/"+e},batchFrozen:function(e){if(this.selectedRowKeys.length<=0)return this.$message.warning("请选择一条记录!"),!1;var t="",n=this;n.selectedRowKeys.forEach((function(e){t+=e+","})),n.$confirm({title:"确认操作",content:"是否"+(1==e?"解冻":"冻结")+"选中账号?",onOk:function(){Object(s["r"])({ids:t,status:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)}))}})},handleMenuClick:function(e){1==e.key?this.batchDel():2==e.key?this.batchFrozen(2):3==e.key&&this.batchFrozen(1)},handleFrozen:function(e,t,n){var r=this;"admin"!=n?Object(s["r"])({ids:e,status:t}).then((function(e){e.success?(r.$message.success(e.message),r.loadData()):r.$message.warning(e.message)})):r.$message.warning("管理员账号不允许此操作!")},handleChangePassword:function(e){this.$refs.passwordmodal.show(e)},handleAgentSettings:function(e){this.$refs.sysUserAgentModal.agentSettings(e),this.$refs.sysUserAgentModal.title="用户代理人设置"},passwordModalOk:function(){}}},h=f,p=(n("b7ac"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"e326b56c",null);t["default"]=m.exports},ce6e:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"90px",left:"320px"},on:{click:e.zibiao}},[e._v("\n    从表配置\n  ")]),n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"90px",left:"415px"},on:{click:e.zidongshengcheng}},[e._v("\n    自动生成\n")]),n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"90px",left:"510px"},on:{click:e.batchDel}},[e._v("\n    批量删除\n")]),n("a-tabs",{attrs:{"default-active-key":"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"详情页编辑"}},[n("a-table",{ref:"table2",staticClass:"table2",attrs:{customRow:e.rowClicknew,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns2,dataSource:e.dataSourcegd2,loading:e.loading,pagination:!1,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.up(r)}}},[e._v("上移   ")]),e._v("|\n              "),n("a",{on:{click:function(t){return e.down(r)}}},[e._v("下移   ")]),e._v("|\n              "),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",[e._v("   删除")])])],1)}}])})],1)],1)],1)},i=[],o=n("487a"),a=n.n(o),s={name:"mapTable",directives:{infiniteScroll:a.a},props:{columns2:"",loading:"",selectedRowKeys:"",onSelectChange:""},data:function(){return{jiazai2:15,dataSource2:[],dataSourcegd2:[],smid:""}},mounted:function(){},methods:{rowClicknew:function(e){var t=this;return{on:{click:function(){t.$emit("rowClicknew",e)}}}},handleDeleteFormDB2:function(e){this.$emit("handleDeleteFormDB2",e)},zidongshengcheng:function(e){this.$emit("zidongshengcheng",e)},zibiao:function(e){this.$emit("zibiao",e)},up:function(e){this.$emit("up",e)},down:function(e){this.$emit("down",e)},batchDel:function(e){this.$emit("batchDel",e)},cldatalatiao:function(e){this.dataSource2=e,this.dataSource2cl(),this.table2latiao()},jiazaiyici:function(){this.dataSource2cl(),this.table2latiao()},dataSource2cl:function(){var e=this.dataSource2;if(this.dataSourcegd2=[],e.length>=15)for(var t=0;t<15;t++)this.dataSourcegd2.push(e[t]);else for(var n=0;n<e.length;n++)this.dataSourcegd2.push(e[n]);this.jiazai2=15},table2latiao:function(){var e=this;this.$nextTick((function(){setTimeout((function(){document.querySelectorAll(".table2 .ant-table-body")[0].scrollTop=0,document.querySelectorAll(".table2 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table2 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource2.length;if(o<=e.jiazai2+14)for(var a=e.jiazai2;a<e.jiazai2+(o-e.jiazai2);a++)e.dataSourcegd2.push(e.dataSource2[a]);else for(var s=e.jiazai2;s<e.jiazai2+14;s++)e.dataSourcegd2.push(e.dataSource2[s]);e.jiazai2+=14}}}),200)}))}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},ce9a:function(e){e.exports=JSON.parse('[{"name":"黑龙江省","coord":[127.64559817675396,48.48668098449708]},{"name":"内蒙古自治区","coord":[118.34519572208615,45.370218276977525]},{"name":"新疆维吾尔自治区","coord":[87.13479065593184,41.75497055053711]},{"name":"吉林省","coord":[126.12985278813787,43.57983207702637]},{"name":"辽宁省","coord":[124.02494773936439,41.105743408203125]},{"name":"甘肃省","coord":[102.87785725633012,37.69582366943361]},{"name":"河北省","coord":[115.66327227481898,39.33383178710938]},{"name":"北京市","coord":[116.62199343603638,40.25053787231445]},{"name":"山西省","coord":[112.45180235808988,37.666561126708984]},{"name":"天津市","coord":[117.35711842642581,39.406789779663086]},{"name":"陕西省","coord":[109.56294003056632,35.64754199981689]},{"name":"宁夏回族自治区","coord":[105.96110877640074,37.3081169128418]},{"name":"青海省","coord":[96.07301048277901,35.44417190551758]},{"name":"山东省","coord":[118.03833752951093,36.29800605773925]},{"name":"西藏自治区","coord":[87.47361520439412,31.6703872680664]},{"name":"河南省","coord":[113.07832397097275,33.87751102447509]},{"name":"江苏省","coord":[119.93926538201052,32.945452690124505]},{"name":"安徽省","coord":[117.15146765881019,32.024482727050774]},{"name":"四川省","coord":[102.28998890142759,30.182161331176758]},{"name":"湖北省","coord":[112.87798261431585,31.157071113586426]},{"name":"重庆市","coord":[107.870126637831,30.188085556030266]},{"name":"上海市","coord":[121.42561166015514,31.276043891906745]},{"name":"浙江省","coord":[119.75337092707514,29.175934791564945]},{"name":"湖南省","coord":[111.52770282777405,27.38110256195069]},{"name":"江西省","coord":[115.51091280655628,27.283511161804206]},{"name":"云南省","coord":[101.27053825991308,25.19783210754396]},{"name":"贵州省","coord":[106.49672346773299,26.92267990112305]},{"name":"福建省","coord":[117.9976766946587,25.939599990844727]},{"name":"广西壮族自治区","coord":[108.98706831086302,23.891559600830078]},{"name":"台湾省","coord":[120.82468432537434,23.602651596069336]},{"name":"香港特别行政区","coord":[114.21036850371561,22.374858856201172]},{"name":"海南省","coord":[109.62792940960824,19.163116455078125]},{"name":"广东省","coord":[113.32127888266032,22.873867034912106]},{"name":"澳门特别行政区","coord":[113.56819996291901,22.160347992976]}]')},cec3:function(e,t,n){},cef7:function(e,t,n){"use strict";var r=function(){function e(e){this.propagationStopped,this.type=e,this.target=null}return e.prototype.preventDefault=function(){this.propagationStopped=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();t["a"]=r},cf74:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-upload",{attrs:{name:"file",multiple:!0,action:e.uploadAction,headers:e.headers,data:{isup:1,bizPath:e.bizPath},fileList:e.fileList,beforeUpload:e.beforeUpload},on:{change:e.handleChange}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v(e._s(e.text)+"\n  ")],1)],1)},i=[],o=(n("7f7f"),n("28a5"),n("a481"),n("3b2b"),n("2b0e")),a=n("9fb0"),s="all",l="image",c="file",u=function(){return"-"+parseInt(1e4*Math.random()+1,10)},d=function(e){if(e.lastIndexOf("\\")>=0){var t=new RegExp("\\\\","g");e=e.replace(t,"/")}return e.substring(e.lastIndexOf("/")+1)},f={name:"JUpload",data:function(){return{uploadAction:window._CONFIG["domianURL"]+"/sys/common/upload",urlDownload:window._CONFIG["domianURL"]+"/sys/common/download/",headers:{},fileList:[]}},props:{text:{type:String,required:!1,default:"点击上传"},fileType:{type:String,required:!1,default:s},bizPath:{type:String,required:!1,default:"temp"},value:{type:String,required:!1},triggerChange:{type:Boolean,required:!1,default:!1}},watch:{value:function(e){this.initFileList(e)}},created:function(){var e=o["default"].ls.get(a["a"]);this.headers={"X-Access-Token":e}},methods:{initFileList:function(e){if(e&&0!=e.length){for(var t=[],n=e.split(","),r=0;r<n.length;r++)t.push({uid:u(),name:d(n[r]),status:"done",url:this.urlDownload+n[r],response:{status:"history",message:n[r]}});this.fileList=t}else this.fileList=[]},handlePathChange:function(){var e=this.fileList,t="";e&&0!=e.length||(t="");for(var n=[],r=0;r<e.length;r++)n.push(e[r].response.message);n.length>0&&(t=n.join(",")),this.$emit("change",t)},beforeUpload:function(e){var t=e.type;if(t===l){if(t.indexOf("image")<0)return this.$message.warning("请上传图片"),!1}else if(t===c&&t.indexOf("image")>=0)return this.$message.warning("请上传文件"),!1;return!0},handleChange:function(e){var t=this;console.log("--文件列表改变--");var n=e.fileList;"done"===e.file.status?(e.file.response.success&&(n=n.map((function(e){return e.response&&(e.url=t.urlDownload+e.response.message),e}))),this.$message.success("".concat(e.file.name," 上传成功!"))):"error"===e.file.status?this.$message.error("".concat(e.file.name," 上传失败.")):"removed"===e.file.status&&this.handleDelete(e.file),this.fileList=n,"done"!==e.file.status&&"removed"!==e.file.status||this.handlePathChange()},handleDelete:function(e){console.log(e)}},model:{prop:"value",event:"change"}},h=f,p=n("2877"),m=Object(p["a"])(h,r,i,!1,null,"5849ea14",null);t["default"]=m.exports},cf84:function(e,t,n){},cf96:function(e,t,n){},d039:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"content",staticClass:"card-list"},[n("a-list",{attrs:{grid:{gutter:24,lg:3,md:2,sm:1,xs:1},dataSource:e.dataSource},scopedSlots:e._u([{key:"renderItem",fn:function(t,r){return n("a-list-item",{},[null===t?[n("a-button",{staticClass:"new-btn",attrs:{type:"dashed"}},[n("a-icon",{attrs:{type:"plus"}}),e._v("\n          新增产品\n        ")],1)]:[n("a-card",{attrs:{hoverable:!0}},[n("a-card-meta",[n("div",{staticStyle:{"margin-bottom":"3px"},attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.title))]),n("a-avatar",{staticClass:"card-avatar",attrs:{slot:"avatar",src:t.avatar,size:"large"},slot:"avatar"}),n("div",{staticClass:"meta-content",attrs:{slot:"description"},slot:"description"},[e._v(e._s(t.content))])],1),n("template",{staticClass:"ant-card-actions",slot:"actions"},[n("a",[e._v("操作一")]),n("a",[e._v("操作二")])])],2)]],2)}}])})],1)},i=[],o=[];o.push(null);for(var a=0;a<11;a++)o.push({title:"Alipay",avatar:"https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png",content:"在中台产品的研发过程中,会出现不同的设计规范和实现方式,但其中往往存在很多类似的页面和组件,这些类似的组件会被抽离成一套标准规范。"});var s={name:"CardList",data:function(){return{description:"段落示意:蚂蚁金服务设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态, 提供跨越设计与开发的体验解决方案。",linkList:[{icon:"rocket",href:"#",title:"快速开始"},{icon:"info-circle-o",href:"#",title:"产品简介"},{icon:"file-text",href:"#",title:"产品文档"}],extraImage:"https://gw.alipayobjects.com/zos/rmsportal/RzwpdLnhmvDJToTdfDPe.png",dataSource:o}}},l=s,c=(n("f8e7"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"022c9dfc",null);t["default"]=u.exports},d079:function(e,t,n){"use strict";t["a"]={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},d0a1:function(e,t,n){"use strict";n("9539")},d0e9:function(e,t,n){"use strict";var r=n("2ef1"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o='&#169; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',a=function(e){function t(t){var n,r=this,i=t||{};n=void 0!==i.attributions?i.attributions:[o];var a=void 0!==i.crossOrigin?i.crossOrigin:"anonymous",s=void 0!==i.url?i.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return r=e.call(this,{attributions:n,attributionsCollapsible:!1,cacheSize:i.cacheSize,crossOrigin:a,imageSmoothing:i.imageSmoothing,maxZoom:void 0!==i.maxZoom?i.maxZoom:19,opaque:void 0===i.opaque||i.opaque,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileLoadFunction:i.tileLoadFunction,transition:i.transition,url:s,wrapX:i.wrapX})||this,r}return i(t,e),t}(r["a"]);t["a"]=a},d126:function(e,t,n){"use strict";n("fffe")},d13a:function(e,t,n){"use strict";n("d9af")},d171:function(e,t,n){},d185:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-input-search",{attrs:{placeholder:"请选择街道",disabled:""},on:{search:e.onSearchDepUser},model:{value:e.selectedDepUsers,callback:function(t){e.selectedDepUsers=t},expression:"selectedDepUsers"}},[n("a-button",{attrs:{slot:"enterButton",disabled:e.disabled},slot:"enterButton"},[e._v("请选择街道")])],1),n("j-select-duty-street-model",{ref:"selectModal",attrs:{"modal-width":e.modalWidth},on:{ok:e.onSearchDepUserCallBack}})],1)},i=[],o=(n("c5f6"),n("7e3c")),a={name:"JSelectDutyStreet",components:{JSelectDutyStreetModel:o["default"]},props:{modalWidth:{type:Number,default:1e3,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{selectedDepUsers:""}},mounted:function(){this.selectedDepUsers=this.value},watch:{value:function(e){this.selectedDepUsers=e}},model:{prop:"value",event:"change"},methods:{onSearchDepUser:function(){this.$refs.selectModal.showModal(),this.onSearchDepUserCallBack("")},onSearchDepUserCallBack:function(e){this.selectedDepUsers=e,this.$emit("change",e)}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"eeec436a",null);t["default"]=c.exports},d1bb:function(e,t,n){"use strict";n("b7ee")},d1c8:function(e,t,n){"use strict";n("c047")},d259:function(e,t,n){"use strict";n("7c6a")},d263:function(e,t,n){"use strict";n("386b")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},d268:function(e,t,n){},d291:function(e,t,n){"use strict";n("86a9")},d329:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper",staticStyle:{height:"25px"}},[n("a-collapse",{model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[n("a-collapse-panel",{key:"1",attrs:{header:""}},[n("div",{staticStyle:{height:"847px","overflow-y":"scroll","background-color":"#fff"}},[n("div",{staticStyle:{"background-color":"#fff",padding:"4px 6px"}},[n("a-input-search",{attrs:{placeholder:"请输入菜单名称"},on:{search:e.getOptionByMess},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1),n("div",{staticStyle:{"background-color":"#fff"}},[n("div",{staticStyle:{float:"left",width:"50%"}},[n("a-button",{directives:[{name:"has",rawName:"v-has",value:"user:tree",expression:"'user:tree'"}],class:e.classificationClass,on:{expand:e.onExpand,click:function(t){return e.getOption()}}},[e._v("\n          按分类\n        ")])],1),n("div",{staticStyle:{float:"left",width:"50%"}},[n("a-button",{directives:[{name:"has",rawName:"v-has",value:"user:tree",expression:"'user:tree'"}],class:e.departClass,on:{expand:e.onExpand,click:function(t){return e.getOptionByDept()}}},[e._v("\n          按部门\n        ")])],1)]),n("a-tree",{staticClass:"tree",staticStyle:{display:"inline-block",width:"222px","background-color":"#fff","margin-right":"10px","margin-left":"0px"},attrs:{expandedKeys:e.expandedKeys,treeData:e.treeData},on:{expand:e.onExpand,select:e.onSelect},scopedSlots:e._u([{key:"custom",fn:function(t){return[t.is_expire?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.title))]):n("span",[e._v(e._s(t.title))]),t.is_expire?n("a-button",{on:{click:function(n){return n.stopPropagation(),e.updateExpireTime(t)}}},[e._v("更新")]):e._e()]}}])})],1)])],1),n("div",{staticStyle:{width:"100%"}},[n(e.currentTabComponent,{tag:"component",staticClass:"componentMain"})],1)],1)},i=[],o=(n("4917"),n("28a5"),n("a481"),n("0fea")),a=[],s={components:{},data:function(){return{expandedKeys:[],autoExpandParent:!0,checkedKeys:["0-0-0"],selectedKeys:[],treeData:a,url:{getByDept:"/sys/category/getTreeByDept",get:"/sys/category/getTree"},currentTabComponent:{},componentName:"",message:"",isDepartment:!1,classificationClass:"btn_choose_class",departClass:"btn_nochoose_class",activeKey:["1"]}},beforeMount:function(){this.getOption()},watch:{checkedKeys:function(e){console.log("onCheck",e)}},mounted:function(){this.$refs.eeee.addEventListener("click",(function(){console.log(789)}))},methods:{getListWithDLR:function(e){var t=JSON.parse(JSON.stringify(e));function n(e){if(e&&(e.scopedSlots={title:"custom"},e.children)){for(var t in e.children)n(e.children[t]);n(e.children)}}for(var r in t)n(t[r]);return t},updateExpireTime:function(e){Object(o["d"])("/sys/categoryExpireUpdate/add",{categoryId:e.key}).then((function(t){t.success&&(e.is_expire=!1,e.title=e.title.replace("(已过期)",""))}))},getOptionByMess:function(){this.isDepartment?this.getOptionByDept():this.getOption()},getOptionByDept:function(){var e=this,t={param:"c6898e7b1328a6f8fed1e767d45c71f8",mess:this.message};this.isDepartment=!0,this.classificationClass="btn_nochoose_class",this.departClass="btn_choose_class",Object(o["d"])(this.url.getByDept,t).then((function(t){if(0!=t.data.length){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);e.treeData=e.getListWithDLR(t.data);var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))},e.componentName=i.title}else e.$message.warning("未检索到该菜单")}))},getOption:function(){var e=this,t={param:"c6898e7b1328a6f8fed1e767d45c71f8",mess:this.message};this.isDepartment=!1,this.classificationClass="btn_choose_class",this.departClass="btn_nochoose_class",Object(o["d"])(this.url.get,t).then((function(t){if(0!=t.data.length){e.expandedKeys.push(t.data[0].key);for(var r=0;r<t.data[0].children.length;r++)e.expandedKeys.push(t.data[0].children[r].key);e.treeData=e.getListWithDLR(t.data);var i=e.initFirst(e.treeData);e.currentTabComponent=function(){return Promise.resolve().then(n.bind(null,"ca84"))},e.componentName=i.title}else e.$message.warning("未检索到该菜单")}))},initFirst:function(e){for(var t=0;t<e.length;t++)if(null!=e[t].slots.title&&""!=e[t].slots.title){var n={};return n.url=e[t].slots.title,n.title=e[t].title,n}return this.initFirst(e[0].children)},onExpand:function(e){console.log("onExpand",e),this.expandedKeys=e,this.autoExpandParent=!1},onCheck:function(e){console.log("onCheck",e),this.checkedKeys=e},onSelect:function(e,t){var r=t.selectedNodes[0].data.props.dataRef.slots.title,i=r.split("@"),o=i[0],a=i[1];if(void 0==a)this.$store.commit("settemplatetable",a);else{var s=a.match(/^.*[A-Z]+.*$/);null==s?this.$store.commit("settemplatetable",a):this.$store.commit("settemplatetable",'"'+a+'"')}var l=t.selectedNodes[0].data.props.dataRef.slots.sql;this.$store.commit("templatesql",l),this.selectedKeys=e;var c=t.selectedNodes[0].data.props.title;null!=o&&void 0!=o&&""!=o&&(this.componentName=c,this.currentTabComponent=function(){return n("2a68")("./views"+o)})}}},l=s,c=(n("c861"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},d32f:function(e,t,n){"use strict";n("4a1a")},d46e:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-tabs",{attrs:{"default-active-key":"1"},on:{change:e.onClearSelected,click:function(t){return e.latiao()}}},[n("a-tab-pane",{key:"1"},[n("div",{staticStyle:{width:"496px"}},[n("a-table",{ref:"table1",staticClass:"table1",attrs:{customRow:e.rowClick,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSource,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])])],1)}}])})],1)])],1)],1)},i=[],o=n("487a"),a=n.n(o),s={name:"mapTable",props:{dataSource:"",dataSourcegd:"",loading:"",columns:"",selectedRowKeys:"",onSelectChange:"",cxsp:""},directives:{infiniteScroll:a.a},data:function(){return{count:0,data:[],busy:!1,columnWidthz:10,paginationz:{total:0,pageSize:10,showTotal:function(e){return"共有 ".concat(e," 条数据")}},jiazai:15,visible:!1}},mounted:function(){this.table1latiao()},methods:{rowClick:function(e){var t=this;return{on:{click:function(){t.$emit("rowClicknew",e)}}}},handleEdit:function(e){this.$emit("handleEdit",e)},handleDeleteForm:function(e){this.$emit("handleDeleteForm",e)},handleDeleteFormDB2:function(e){this.$emit("handleDeleteFormDB2",e)},handlePassForm:function(e){this.$emit("handlePassForm",e)},handleNoPassForm:function(e){this.$emit("handleNoPassForm",e)},handleRePassForm:function(e){this.$emit("handleRePassForm",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},batchDel:function(e){this.$emit("batchDel",e)},table1latiao:function(){var e=this;this.$nextTick((function(){document.querySelectorAll(".table1 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table1 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource.length;if(o<=e.jiazai+14)if(console.log("即将到达最大值"),15==o);else for(var a=e.jiazai;a<e.jiazai+(o-e.jiazai);a++)e.dataSourcegd.push(e.dataSource[a]);else for(var s=e.jiazai;s<e.jiazai+14;s++)e.dataSourcegd.push(e.dataSource[s]);e.jiazai+=14}}}))},latiao:function(){this.table1latiao()},showModal:function(e){this.visible=!0,this.shyj="",this.smid=e},handleOk:function(e){this.$emit("handleNoPassForm",this.smid+","+this.shyj),this.visible=!1}},watch:{}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},d477:function(e,t,n){"use strict";n("1461")},d52a:function(e,t,n){var r=n("a653");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},d544:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator",staticStyle:{margin:"-25px 0px 10px 0px"},attrs:{md:24,sm:24}},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("\n            更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetail(r)}}},[e._v("详情")])]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("jeecgOrderCustomer-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("39a5"),a=n("6620"),s=n("b65a"),l=n("0fea"),c={name:"JeecgOrderCustomerList",mixins:[s["a"]],components:{JeecgOrderDMainList:a["default"],JeecgOrderCustomerModal:o["default"]},data:function(){return{description:"订单客户信息",columns:[{title:"客户名",align:"center",width:100,dataIndex:"name",key:"name"},{title:"性别",align:"center",dataIndex:"sex",customRender:function(e){return 1==e?"男":2==e?"女":e}},{title:"身份证号码",align:"center",dataIndex:"idcard"},{title:"电话",dataIndex:"telphone",align:"center"},{title:"操作",key:"operation",align:"center",width:130,scopedSlots:{customRender:"action"}}],url:{list:"/test/order/listOrderCustomerByMainId",delete:"/test/order/deleteCustomer",deleteBatch:"/test/order/deleteBatchCustomer"}}},methods:{loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(l["d"])(this.url.list,{mainId:n.mainId}).then((function(e){e.success?t.dataSource=e.result:t.dataSource=null}))},getOrderMain:function(e){this.queryParam.mainId=e,this.loadData(1)},handleAdd:function(){this.$refs.modalForm.add(this.queryParam.mainId),this.$refs.modalForm.title="添加客户信息"}}},u=c,d=(n("019b"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"6ae50bf6",null);t["default"]=f.exports},d579:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tooltip",{attrs:{placement:"topLeft"}},[n("template",{slot:"title"},[n("span",[e._v(e._s(e.value))])]),e._v("\n  "+e._s(e._f("ellipsis")(e.value,e.length))+"\n")],2)},i=[],o=(n("c5f6"),{name:"JEllipsis",props:{value:{type:String,required:!1},length:{type:Number,required:!1,default:25}}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"4de15389",null);t["default"]=l.exports},d5e0:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==i?(r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function f(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){while(!t.eol())if(t.next()==e){n.tokenize=f;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function m(e){return function(t,n){var r;while(null!=(r=t.next())){if("<"==r)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function g(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){var n;while(1){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;v(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),_):"closeTag"==e?w:b}function _(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",C):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",_)}function w(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",x):(a="tag error",S)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,t,n)):(a="error",S)}function x(e,t,n){return"endTag"!=e?(a="error",x):(v(n),b)}function S(e,t,n){return a="error",x(e,t,n)}function C(e,t,n){if("word"==e)return a="attribute",E;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?y(n,r):(y(n,r),n.context=new g(n,r,i==n.indented)),b}return a="error",C}function E(e,t,n){return"equals"==e?k:(l.allowMissing||(a="error"),C(e,t,n))}function k(e,t,n){return"string"==e?O:"word"==e&&l.allowUnquoted?(a="string",C):(a="error",C(e,t,n))}function O(e,t,n){return"string"==e?O:C(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])while(i){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)while(i){var a=l.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}while(i&&i.prev&&!i.startOfLine)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=C)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},d649:function(e,t,n){"use strict";n("de89")},d69f:function(e,t,n){(function(e){e(n("56b3"),n("d5e0"),n("f9d4"),n("7b00"))})((function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}var r={};function i(e){var t=r[e];return t||(r[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function o(e,t){var n=e.match(i(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function s(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}function l(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r[0]||r[1].test(o(t,r[0])))return r[2]}}e.defineMode("htmlmixed",(function(r,i){var o=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag,allowMissingTagName:i.allowMissingTagName}),c={},u=i&&i.tags,d=i&&i.scriptTypes;if(s(t,c),u&&s(u,c),d)for(var f=d.length-1;f>=0;f--)c.script.unshift(["type",d[f].matches,d[f].mode]);function h(t,i){var s,u=o.token(t,i.htmlState),d=/\btag\b/.test(u);if(d&&!/[<>\s\/]/.test(t.current())&&(s=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))i.inTag=s+" ";else if(i.inTag&&d&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var p=">"==t.current()&&l(c[f[1]],f[2]),m=e.getMode(r,p),g=a(f[1],!0),v=a(f[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=h,t.localState=t.localMode=null,null):n(e,v,t.localMode.token(e,t.localState))},i.localMode=m,i.localState=e.startState(m,o.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=" "));return u}return{startState:function(){var t=e.startState(o);return{token:h,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(o,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?o.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||o}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}))},d6a2:function(e,t,n){},d6a26:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},d6e1:function(e,t,n){"use strict";n("cc55")},d6eb:function(e,t,n){"use strict";var r="_erd";function i(e){return e[r]={},o(e)}function o(e){return e[r]}function a(e){delete e[r]}e.exports={initState:i,getState:o,cleanState:a}},d735:function(e,t,n){e.exports=a;var r=n("9eab"),i=n("0074"),o=n("de57").ConnectionFault;function a(e,t){i.call(this,e,t)}r.inherits(a,i),a.prototype.request=function(e,t){var n={url:this.host.makeUrl(e),data:e.body,type:e.method,dataType:"text",headers:this.host.getHeaders(e.headers),done:t},r=jQuery.ajax(n).done((function(e){t(null,e,r.statusCode(),{"content-type":r.getResponseHeader("content-type")})})).fail((function(e,n,i){e&&e.responseText?t(null,e.responseText,r.statusCode(),{"content-type":r.getResponseHeader("content-type")}):t(new o(i&&i.message))}));return function(){r.abort()}}},d737:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-tabs",{attrs:{"default-active-key":"1"},on:{change:e.onClearSelected,click:function(t){return e.table1latiao()}}},[n("a-tab-pane",{key:"1",attrs:{tab:"主表数据"}},[n("div",{staticStyle:{width:"100%"}},[n("a-table",{ref:"table1",staticClass:"table1",attrs:{scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd,loading:e.loading,pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑    ")]),e._v("|\r\n              "),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("    删除")])])],1)}}])})],1)])],1)],1)},i=[],o=n("487a"),a=n.n(o),s={name:"mapTable",directives:{infiniteScroll:a.a},props:{dataSource:"",dataSourcegd:"",loading:"",columns:""},data:function(){return{jiazai:15}},mounted:function(){this.table1latiao()},methods:{handleEdit:function(e){this.$emit("handleEdit",e)},handleDeleteForm:function(e){this.$emit("handleDeleteForm",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},table1latiao:function(){var e=this;this.$nextTick((function(){document.querySelectorAll(".table1 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table1 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource.length;if(o<=e.jiazai+14)for(var a=e.jiazai;a<e.jiazai+(o-e.jiazai);a++)e.dataSourcegd.push(e.dataSource[a]);else for(var s=e.jiazai;s<e.jiazai+14;s++)e.dataSourcegd.push(e.dataSource[s]);e.jiazai+=14}}}))}}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},d75c:function(e,t,n){var r=n("2ace"),i=n("68da"),o=n("9ba1"),a=n("3144"),s=n("a653"),l=n("d52a"),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},d797:function(e,t,n){"use strict";n("8e42")},d841:function(e,t,n){"use strict";n("e56d")},d871:function(e,t,n){var r,i,o;(function(n,a){i=[t,e],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})(0,(function(e,t){"use strict";var n={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function r(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function i(e){try{delete window[e]}catch(t){window[e]=void 0}}function o(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}function a(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=e,s=t.timeout||n.timeout,l=t.jsonpCallback||n.jsonpCallback,c=void 0;return new Promise((function(n,u){var d=t.jsonpCallbackFunction||r(),f=l+"_"+d;window[d]=function(e){n({ok:!0,json:function(){return Promise.resolve(e)}}),c&&clearTimeout(c),o(f),i(d)},a+=-1===a.indexOf("?")?"?":"&";var h=document.createElement("script");h.setAttribute("src",""+a+l+"="+d),t.charset&&h.setAttribute("charset",t.charset),h.id=f,document.getElementsByTagName("head")[0].appendChild(h),c=setTimeout((function(){u(new Error("JSONP request to "+e+" timed out")),i(d),o(f),window[d]=function(){i(d)}}),s),h.onerror=function(){u(new Error("JSONP request to "+e+" failed")),i(d),o(f),c&&clearTimeout(c)}}))}t.exports=a}))},d8bd:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("a-modal",{attrs:{title:"审核意见",centered:!0,maskClosable:!1},on:{ok:e.handleOk},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a-textarea",{attrs:{rows:5,placeholder:"请输入审核意见"},model:{value:e.shyj,callback:function(t){e.shyj=t},expression:"shyj"}})],1)],1),e.verify?e._e():n("a-button",{staticStyle:{position:"absolute","z-index":"100",top:"133px",left:"250px"},on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}})],1),n("a-tabs",{attrs:{"default-active-key":"1"},on:{change:e.onClearSelected,click:function(t){return e.latiao()}}},[n("a-tab-pane",{key:"1",attrs:{tab:"已完善"}},[n("div",{staticStyle:{width:"100%"}},[n("a-table",{ref:"table1",staticClass:"table1",attrs:{customRow:e.rowClick,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[1==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?e._e():n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("查看")]),1==e.unVerify&&0==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?n("a-divider",{attrs:{type:"vertical"}}):e._e(),e.unVerify?n("a-dropdown",[e.verify?n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1):e._e(),e.verify?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[e.cxsp?e._e():n("a-popconfirm",{attrs:{title:"确定审批通过吗?"},on:{confirm:function(){return e.handlePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("审批通过")])]),e.cxsp?e._e():n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.showModal(r.smid)}}},[e._v("审批不通过")]),e.cxsp?n("a-popconfirm",{attrs:{title:"确定重新审批吗?"},on:{confirm:function(){return e.handleRePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("重新审批")])]):e._e(),e.cxsp?n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("删除")])]):e._e()],1)],1):e._e(),e.verify?e._e():n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])])],1):e._e()],1)}}])})],1)]),n("a-tab-pane",{key:"3",attrs:{tab:"未完善"}},[n("div",{staticStyle:{width:"100%"}},[n("a-table",{ref:"table3",staticClass:"table3",attrs:{customRow:e.rowClick,scroll:{y:530,x:!1},size:"small",bordered:"",rowKey:"smid",columns:e.columns,dataSource:e.dataSourcegd3,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:!1},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[1==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?e._e():n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("查看")]),1==e.unVerify&&0==e.cxsp?n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]):e._e(),e.unVerify?n("a-divider",{attrs:{type:"vertical"}}):e._e(),e.unVerify?n("a-dropdown",[e.verify?n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1):e._e(),e.verify?n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[e.cxsp?e._e():n("a-popconfirm",{attrs:{title:"确定审批通过吗?"},on:{confirm:function(){return e.handlePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("审批通过")])]),e.cxsp?e._e():n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}],on:{click:function(t){return e.showModal(r.smid)}}},[e._v("审批不通过")]),e.cxsp?n("a-popconfirm",{attrs:{title:"确定重新审批吗?"},on:{confirm:function(){return e.handleRePassForm(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("重新审批")])]):e._e(),e.cxsp?n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteFormDB2(r.smid)}}},[n("a",{directives:[{name:"has",rawName:"v-has",value:"user:verify",expression:"'user:verify'"}]},[e._v("删除")])]):e._e()],1)],1):e._e(),e.verify?e._e():n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDeleteForm(r.smid)}}},[n("a",[e._v("删除")])])],1):e._e()],1)}}])})],1)])],1)],1)},i=[],o={name:"mapTable",props:{dataSource:"",dataSourcegd:"",dataSource3:"",loading:"",columns:"",verify:"",unVerify:"",selectedRowKeys:"",onSelectChange:"",cxsp:""},data:function(){return{count:0,data:[],busy:!1,columnWidthz:10,paginationz:{total:0,pageSize:10,showTotal:function(e){return"共有 ".concat(e," 条数据")}},jiazai:15,dataSourcegd3:[],jiazai3:15,visible:!1,shyj:"",smid:""}},mounted:function(){this.table1latiao()},methods:{rowClick:function(e){var t=this;return{on:{click:function(){t.$emit("rowClicknew",e)}}}},handleEdit:function(e){this.$emit("handleEdit",e)},handleDeleteForm:function(e){this.$emit("handleDeleteForm",e)},handleDeleteFormDB2:function(e){this.$emit("handleDeleteFormDB2",e)},handlePassForm:function(e){this.$emit("handlePassForm",e)},handleNoPassForm:function(e){this.$emit("handleNoPassForm",e)},handleRePassForm:function(e){this.$emit("handleRePassForm",e)},onClearSelected:function(e){this.$emit("onClearSelected",e)},batchDel:function(e){this.$emit("batchDel",e)},table1latiao:function(){var e=this;this.$nextTick((function(){document.querySelectorAll(".table1 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table1 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource.length;if(o<=e.jiazai+14)if(console.log("即将到达最大值"),15==o);else for(var a=e.jiazai;a<e.jiazai+(o-e.jiazai);a++)e.dataSourcegd.push(e.dataSource[a]);else for(var s=e.jiazai;s<e.jiazai+14;s++)e.dataSourcegd.push(e.dataSource[s]);e.jiazai+=14}}}))},table3latiao:function(){var e=this;this.$nextTick((function(){setTimeout((function(){document.querySelectorAll(".table3 .ant-table-body")[0].onscroll=function(t){var n=t.target.scrollTop,r=t.target.clientHeight,i=document.querySelectorAll(".table3 .ant-table-body table")[0].offsetHeight;if(n+r>=i){var o=e.dataSource3.length;if(o<=e.jiazai3+14)for(var a=e.jiazai3;a<e.jiazai3+(o-e.jiazai3);a++)e.dataSourcegd3.push(e.dataSource3[a]);else for(var s=e.jiazai3;s<e.jiazai3+14;s++)e.dataSourcegd3.push(e.dataSource3[s]);e.jiazai3+=14}}}),200)}))},latiao:function(){this.table1latiao(),this.table3latiao()},showModal:function(e){this.visible=!0,this.shyj="",this.smid=e},handleOk:function(e){this.$emit("handleNoPassForm",this.smid+","+this.shyj),this.visible=!1}},watch:{dataSource3:function(){var e=this.dataSource3;if(this.dataSourcegd3=[],e.length>=15)for(var t=0;t<15;t++)this.dataSourcegd3.push(e[t]);else for(var n=0;n<e.length;n++)this.dataSourcegd3.push(e[n]);this.jiazai3=15}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},d90d:function(e,t,n){},d972:function(e,t,n){e.exports=i;var r=n("2ef0");function i(){}i.prototype.serialize=function(e,t,n){switch(typeof e){case"string":return e;case"object":if(e)return t||n?JSON.stringify(e,t,n):JSON.stringify(e);default:return}},i.prototype.serialize.contentType="application/json",i.prototype.deserialize=function(e){if("string"===typeof e)try{return JSON.parse(e)}catch(t){}},i.prototype.bulkBody=function(e){var t,n="";if(r.isArray(e))for(t=0;t<e.length;t++)n+=this.serialize(e[t])+"\n";else{if("string"!==typeof e)throw new TypeError("Bulk body should either be an Array of commands/string, or a String");n=e+("\n"===e[e.length-1]?"":"\n")}return n},i.prototype.bulkBody.contentType="application/x-ndjson"},d990:function(e,t,n){},d9af:function(e,t,n){},d9be:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-cascader",{attrs:{options:e.options,placeholder:"请选择市/区/镇/村",expandTrigger:"hover",changeOnSelect:"",disabled:e.isVerifyPass},on:{change:e.onChange},model:{value:e.defaultValue,callback:function(t){e.defaultValue=t},expression:"defaultValue"}})},i=[],o=n("0fea"),a={name:"city_child",data:function(){return{defaultValue:[],options:[],url:{get:"/city/getCityInfo"},msg:{city:"",cityCode:"",district:"",districtCode:"",street:"",streetCode:"",village:"",villageCode:"",length:0}}},props:["params","isVerifyPass","over_url"],watch:{params:{handler:function(e,t){this.defaultValue=e},deep:!0}},beforeMount:function(){this.init(),this.getOption()},mounted:function(){},methods:{init:function(){this.defaultValue=this.params},getOption:function(){var e=this,t={id:"230417"},n=this.url.get;null!=this.over_url&&""!=this.over_url&&(n=this.over_url),console.log(n),Object(o["d"])(n,t).then((function(t){t.success?e.options=t.result:e.options=[]}))},onChange:function(e,t){if(void 0!=t)switch(t.length){case 1:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district="",this.msg.districtCode="",this.msg.street="",this.msg.streetCode="",this.msg.village="",this.msg.villageCode="",this.msg.length=1;break;case 2:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district=t[1].label,this.msg.districtCode=t[1].value,this.msg.street="",this.msg.streetCode="",this.msg.village="",this.msg.villageCode="",this.msg.length=2;break;case 3:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district=t[1].label,this.msg.districtCode=t[1].value,this.msg.street=t[2].label,this.msg.streetCode=t[2].value,this.msg.village="",this.msg.villageCode="",this.msg.length=3;break;case 4:this.msg.city=t[0].label,this.msg.cityCode=t[0].value,this.msg.district=t[1].label,this.msg.districtCode=t[1].value,this.msg.street=t[2].label,this.msg.streetCode=t[2].value,this.msg.village=t[3].label,this.msg.villageCode=t[3].value,this.msg.length=4;break}else this.msg.city="",this.msg.cityCode="",this.msg.district="",this.msg.districtCode="",this.msg.street="",this.msg.streetCode="",this.msg.village="",this.msg.villageCode="";console.log("市:"+this.msg.city+"市code:"+this.msg.cityCode+"区:"+this.msg.district+"区code:"+this.msg.districtCode+"镇:"+this.msg.street+"镇code:"+this.msg.streetCode+"村:"+this.msg.village+"村code:"+this.msg.villageCode),this.$emit("func",this.msg)}},created:function(){}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},da5c:function(e,t,n){"use strict";var r=function(){function e(){this.disposed=!1}return e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},e.prototype.disposeInternal=function(){},e}();t["a"]=r},da9b:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("j-tree-table",{attrs:{url:e.url,topValue:"0",queryKey:"id",columns:e.columns,tableProps:e.tableProps},scopedSlots:e._u([{key:"action",fn:function(t){return[n("a",{on:{click:function(){return e.handleEdit(t.record)}}},[e._v("编辑")])]}}])})],1)},i=[],o=(n("7f7f"),n("6b87")),a={name:"JeecgTreeTable",components:{JTreeTable:o["default"]},data:function(){return{url:"/api/asynTreeList",columns:[{title:"菜单名称",dataIndex:"name"},{title:"组件",dataIndex:"component"},{title:"排序",dataIndex:"orderNum"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],selectedRowKeys:[]}},computed:{tableProps:function(){var e=this;return{rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:function(t){return e.selectedRowKeys=t}}}}},methods:{handleEdit:function(e){this.$info({width:600,title:"编辑",content:"编辑ID:"+e.id+";名称:"+e.name,okText:"确定",maskClosable:!0})}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"2090c591",null);t["default"]=c.exports},db91:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],i=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function o(e){return e.scopes[e.scopes.length-1]}e.registerHelper("hintWords","python",r.concat(i)),e.defineMode("python",(function(a,s){for(var l="error",c=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,u=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],d=0;d<u.length;d++)u[d]||u.splice(d--,1);var f=s.hangingIndent||a.indentUnit,h=r,p=i;void 0!=s.extra_keywords&&(h=h.concat(s.extra_keywords)),void 0!=s.extra_builtins&&(p=p.concat(s.extra_builtins));var m=!(s.version&&Number(s.version)<3);if(m){var g=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;h=h.concat(["nonlocal","False","True","None","async","await"]),p=p.concat(["ascii","bytes","exec","print"]);var v=new RegExp("^(([rbuf]|(br)|(fr))?('{3}|\"{3}|['\"]))","i")}else{g=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;h=h.concat(["exec","print"]),p=p.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);v=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var y=t(h),b=t(p);function _(e,t){var n=e.sol()&&"\\"!=t.lastToken;if(n&&(t.indent=e.indentation()),n&&"py"==o(t).type){var r=o(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?C(t):i<r&&k(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var a=w(e,t);return r>0&&k(e,t)&&(a+=" "+l),a}return w(e,t)}function w(e,t,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}if(e.match(v)){var a=-1!==e.current().toLowerCase().indexOf("f");return a?(t.tokenize=x(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=S(e.current(),t.tokenize),t.tokenize(e,t))}for(var s=0;s<u.length;s++)if(e.match(u[s]))return"operator";return e.match(c)?"punctuation":"."==t.lastToken&&e.match(g)?"property":e.match(y)||e.match(n)?"keyword":e.match(b)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(g)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),r?null:l)}function x(e,t){while("rubf".indexOf(e.charAt(0).toLowerCase())>=0)e=e.substr(1);var n=1==e.length,r="string";function i(e){return function(t,n){var r=w(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=i(e+1):"}"==t.current()&&(n.tokenize=e>1?i(e-1):o)),r}}function o(o,a){while(!o.eol())if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return r}else{if(o.match(e))return a.tokenize=t,r;if(o.match("{{"))return r;if(o.match("{",!1))return a.tokenize=i(0),o.current()?r:a.tokenize(o,a);if(o.match("}}"))return r;if(o.match("}"))return l;o.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;a.tokenize=t}return r}return o.isString=!0,o}function S(e,t){while("rubf".indexOf(e.charAt(0).toLowerCase())>=0)e=e.substr(1);var n=1==e.length,r="string";function i(i,o){while(!i.eol())if(i.eatWhile(/[^'"\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return o.tokenize=t,r;i.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return l;o.tokenize=t}return r}return i.isString=!0,i}function C(e){while("py"!=o(e).type)e.scopes.pop();e.scopes.push({offset:o(e).offset+a.indentUnit,type:"py",align:null})}function E(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+f,type:n,align:r})}function k(e,t){var n=e.indentation();while(t.scopes.length>1&&o(t).offset>n){if("py"!=o(t).type)return!0;t.scopes.pop()}return o(t).offset!=n}function O(e,t){e.sol()&&(t.beginningOfLine=!0);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(g,!1)?"meta":m?"operator":l;if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent+=1),"lambda"==r&&(t.lambda=!0),":"!=r||t.lambda||"py"!=o(t).type||C(t),1==r.length&&!/string|comment/.test(n)){var i="[({".indexOf(r);if(-1!=i&&E(e,t,"])}".slice(i,i+1)),i="])}".indexOf(r),-1!=i){if(o(t).type!=r)return l;t.indent=t.scopes.pop().offset-f}}return t.dedent>0&&e.eol()&&"py"==o(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}var T={startState:function(e){return{tokenize:_,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=O(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+l:r},indent:function(t,n){if(t.tokenize!=_)return t.tokenize.isString?e.Pass:0;var r=o(t),i=r.type==n.charAt(0);return null!=r.align?r.align-(i?1:0):r.offset-(i?f:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"};return T})),e.defineMIME("text/x-python","python");var a=function(e){return e.split(" ")};e.defineMIME("text/x-cython",{name:"python",extra_keywords:a("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})}))},db99:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",wrapClassName:"mengceng"},on:{ok:e.handleOk,cancel:e.handleCancel}},[r("a-spin",{attrs:{spinning:e.confirmLoading}},[r("a-form",{attrs:{form:e.form}},[r("a-form-item",{attrs:{label:"地区",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("city_child",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{params:e.showDefaultParams,over_url:"/city/getUserCityInfoWithManage"},on:{func:e.getMsgFormSon}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{placeholder:"请输入市",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cityCode",e.validatorRules.cityCode],expression:"[ 'cityCode', validatorRules.cityCode]"}],attrs:{placeholder:"请输入市代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",e.validatorRules.district],expression:"[ 'district', validatorRules.district]"}],attrs:{placeholder:"请输入区县",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",e.validatorRules.districtCode],expression:"[ 'districtCode', validatorRules.districtCode]"}],attrs:{placeholder:"请输入区县代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",e.validatorRules.street],expression:"[ 'street', validatorRules.street]"}],attrs:{placeholder:"请输入乡镇街道",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",e.validatorRules.streetCode],expression:"[ 'streetCode', validatorRules.streetCode]"}],attrs:{placeholder:"请输入乡镇街道代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["village",e.validatorRules.village],expression:"[ 'village', validatorRules.village]"}],attrs:{placeholder:"请输入村社区",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["villageCode",e.validatorRules.villageCode],expression:"[ 'villageCode', validatorRules.villageCode]"}],attrs:{placeholder:"请输入村社区代码",hidden:""}})],1),r("a-form-item",{attrs:{label:"经度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["longitude",e.validatorRules.longitude],expression:"[ 'longitude', validatorRules.longitude]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入经度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1),r("a-form-item",{attrs:{label:"纬度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["latitude",e.validatorRules.latitude],expression:"[ 'latitude', validatorRules.latitude]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入纬度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"视频地址"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["videoUrl",e.validatorRules.videoUrl],expression:"['videoUrl', validatorRules.videoUrl]"}],attrs:{placeholder:"请输入视频地址"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"名称"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"['name', validatorRules.name]"}],attrs:{placeholder:"请输入名称"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"类型"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datatype",e.validatorRules.datatype],expression:"['datatype', validatorRules.datatype]"}],attrs:{placeholder:"请输入类型",disabled:e.editShowAddHide()}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"父名称"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["parentsName",e.validatorRules.parentsName],expression:"['parentsName', validatorRules.parentsName]"}],attrs:{placeholder:"请输入父名称"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"是否显示"}},[r("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["flag",e.validatorRules.flag],expression:"['flag',validatorRules.flag]"}],attrs:{type:"list","trigger-change":!0,dictCode:"video_show",placeholder:"请输入flag"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"视频唯一编码"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["code",{}],expression:"['code', {}]"}],attrs:{placeholder:"请输入code"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"数据来源"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datafrom",{}],expression:"['datafrom', {}]"}],attrs:{placeholder:"请输入datafrom"}})],1)],1),r("BackMap",{ref:"backMap",attrs:{model:e.model,pointKey:e.pointKey},on:{lonlatChanged:function(t){return e.lonlatChanged(t)}}})],1)],1)},i=[],o=(n("28a5"),n("0fea")),a=n("88bc"),s=n.n(a),l=(n("c1df"),n("d9be")),c=n("ba3b"),u={name:"WlgzVideoModal",components:{city_child:l["default"],BackMap:c["default"]},data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{district:{rules:[{required:!0,message:"请选择地区"}]},longitude:{rules:[{required:!0,message:"请输入经度"}]},latitude:{rules:[{required:!0,message:"请输入纬度"}]},name:{rules:[{required:!0,message:"请输入名称"}]},videoUrl:{rules:[{required:!0,message:"请输入视频地址"}]},datatype:{rules:[{required:!0,message:"请输入视频类型"}]},flag:{rules:[{required:!0,message:"请选择是否显示"}]},parentsName:{rules:[{required:!0,message:"请输入父名称"}]}},url:{add:"/wlgz_video/wlgzVideo/add",edit:"/wlgz_video/wlgzVideo/edit"},showDefaultParams:[],pointKey:"longitudeLatitude"}},created:function(){},methods:{editShowAddHide:function(){return"编辑"===this.title},lonlatChanged:function(e){var t=this;this.model[this.pointKey]=e;var n=e.split(",");this.model.longitude=n[0],this.model.latitude=n[1],this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,t.pointKey,"longitude","latitude"))}))},handleMapView:function(){this.$refs.backMap.visible=!0,this.$refs.backMap.disableSubmit=!1},add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),console.log(this.model),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"videoUrl","name","parentsName","longitude","latitude","tablename","flag","code","datafrom","datatype","district","districtCode","street","streetCode")),t.showDefaultParams.length=0,t.showDefaultParams.push(t.model.districtCode),t.showDefaultParams.push(t.model.streetCode),console.log(t.showDefaultParams)}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){var i=Object.assign(e.model,r);t.confirmLoading=!0;var a="",s="";if(e.model.smid)a+=e.url.edit,s="put";else{a+=e.url.add,s="post";var l=e.$store.state.videotable;"undefined"!=typeof l&&""!=l&&null!=l&&(i.lable=l)}console.log(i),Object(o["i"])(a,i,s).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.$emit("ok"),this.close()},getMsgFormSon:function(e){switch(e.cityCode.length){case 6:e.villageCode=e.streetCode,e.village=e.street,e.streetCode=e.districtCode,e.street=e.district,e.districtCode=e.cityCode,e.district=e.city,e.cityCode="3303",e.city="温州市";break;case 9:e.villageCode=e.streetCode,e.village=e.street,e.streetCode=e.districtCode,e.street=e.district,e.districtCode="",e.district="",e.cityCode="3303",e.city="温州市";case 12:e.villageCode=e.streetCode,e.village=e.street,e.streetCode="",e.street="",e.districtCode="",e.district="",e.cityCode="3303",e.city="温州市"}console.log(e),this.form.setFieldsValue({city:e.city,cityCode:e.cityCode,district:e.district,districtCode:e.districtCode,street:e.street,streetCode:e.streetCode,village:e.village,villageCode:e.villageCode})}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"9ca86758",null);t["default"]=h.exports},dbdc:function(e,t,n){"use strict";var r=n("9c2cc"),i=n("3726").includes,o=n("1b92");r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},dc07:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=function(){function e(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}return e.prototype.contains=function(e){return this.containsXY(e[1],e[2])},e.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},e.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},e.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},e.prototype.extend=function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)},e.prototype.getHeight=function(){return this.maxY-this.minY+1},e.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},e.prototype.getWidth=function(){return this.maxX-this.minX+1},e.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},e}();function i(e,t,n,i,o){return void 0!==o?(o.minX=e,o.maxX=t,o.minY=n,o.maxY=i,o):new r(e,t,n,i)}t["b"]=r},dc1f:function(e,t,n){(function(t){e.exports=c;var r=n("2ef0"),i=n("9eab"),o=n("de57"),a=n("4d67"),s=n("93906"),l=n("7dc3");function c(e){var t=this;e=t._config=e||{};var o="function"===typeof e.log?e.log:n("7d33");e.log=t.log=new o(e);var u=i.funcEnum(e,"connectionPool",c.connectionPools,"main");t.connectionPool=new u(e);var d=i.funcEnum(e,"serializer",c.serializers,"json");t.serializer=new d(e),t.nodesToHostCallback=i.funcEnum(e,"nodesToHostCallback",c.nodesToHostCallbacks,"main"),t.maxRetries=e.hasOwnProperty("maxRetries")?e.maxRetries:3,t.sniffEndpoint=e.hasOwnProperty("sniffEndpoint")?e.sniffEndpoint:"/_nodes/_all/http",t.requestTimeout=e.hasOwnProperty("requestTimeout")?e.requestTimeout:3e4,t.pingTimeout=e.hasOwnProperty("pingTimeout")?e.pingTimeout:3e3,e.hasOwnProperty("defer")&&(t.defer=e.defer);var f=!e.hasOwnProperty("randomizeHosts")||!!e.randomizeHosts;if(e.host&&(e.hosts=e.host),e.hosts){var h=i.createArray(e.hosts,(function(e){if(r.isPlainObject(e)||r.isString(e)||e instanceof a)return e}));if(!h)throw new TypeError("Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.");f&&(h=r.shuffle(h)),t.setHosts(h)}e.hasOwnProperty("sniffedNodesProtocol")?t.sniffedNodesProtocol=e.sniffedNodesProtocol||null:t.sniffedNodesProtocol=l(t.connectionPool.getAllHosts())||null,e.hasOwnProperty("sniffedNodesFilterPath")?t.sniffedNodesFilterPath=e.sniffedNodesFilterPath:t.sniffedNodesFilterPath=["nodes.*.http.publish_address","nodes.*.name","nodes.*.hostname","nodes.*.host","nodes.*.version"].join(","),e.sniffOnStart&&t.sniff(),e.sniffInterval&&t._timeout((function n(){t.sniff(),t._timeout(n,e.sniffInterval)}),e.sniffInterval),e.sniffOnConnectionFault&&s(t)}c.connectionPools={main:n("2035")},c.serializers=n("793d"),c.nodesToHostCallbacks={main:n("72ce")},c.prototype.defer=function(){if("undefined"===typeof Promise)throw new Error("No Promise implementation found. In order for elasticsearch-js to create promises either specify the `defer` configuration or include a global Promise shim");var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},c.prototype.request=function(e,n){var a,s,l,c,u,d=this,f=this.maxRetries,h=this.requestTimeout,p=!1,m=e.body,g=e.headers?r.transform(e.headers,(function(e,t,n){e[String(n).toLowerCase()]=t})):{};if(d.log.debug("starting request",e),"function"===typeof n?(t.domain&&(n=t.domain.bind(n)),c={abort:S}):(u=this.defer(),c=u.promise,c.abort=S),m&&"GET"===e.method)return i.nextTick(x,new TypeError('Body can not be sent with method "GET"')),c;if(m){var v=d.serializer,y=v[e.bulkBody?"bulkBody":"serialize"];m=y.call(v,m),g["content-type"]||(g["content-type"]=y.contentType)}e.hasOwnProperty("maxRetries")&&(f=e.maxRetries),e.hasOwnProperty("requestTimeout")&&(h=e.requestTimeout);const b="/"===e.path&&"HEAD"===e.method;if(b){const t=e.hasOwnProperty("requestTimeout")&&e.requestTimeout;h=t||this.pingTimeout}function _(t,n){p||(t?x(t):n?(a=n,s=a.request(e.req,w)):(d.log.warning("No living connections"),x(new o.NoConnections)))}function w(t,n,r,i){if(!p){if(s=void 0,t instanceof o.RequestTypeError)return d.log.error("Connection refused to execute the request",t),void x(t,n,r,i);if(t){a.setStatus("dead");var l=t.message||"";l="\n"+e.req.method+" "+a.host.makeUrl(e.req)+(l.length?" => ":"")+l,f?(f--,d.log.error("Request error, retrying"+l),d.connectionPool.select(_)):(d.log.error("Request complete with error"+l),x(new o.ConnectionFault(t)))}else d.log.debug("Request complete"),x(void 0,n,r,i)}}function x(t,i,a,s){if(!p){var c;d._timeout(l);var f=!s||s["content-type"]&&~s["content-type"].indexOf("application/json");if(!t&&i&&(f?(c=d.serializer.deserialize(i),null==c&&(t=new o.Serialization,c=i)):c=i),(!t||t instanceof o.Serialization)&&(a<200||a>=300)&&(!e.ignore||!r.includes(e.ignore,a))){var h=r.pick(e.req,["path","query","body"]);h.statusCode=a,h.response=i,401===a&&s&&s["www-authenticate"]&&(h.wwwAuthenticateDirective=s["www-authenticate"]),t=o[a]?new o[a](c&&c.error,h):new o.Generic("unknown error",h)}e.castExists&&(t&&t instanceof o.NotFound?(c=!1,t=void 0):c=!t),"function"===typeof n?n(t||void 0,c,a):t?(t.body=c,t.status=a,u.reject(t)):u.resolve(c)}}function S(){p||(p=!0,f=0,d._timeout(l),"function"===typeof s&&s())}return e.req={method:e.method,path:e.path||"/",query:e.query,body:m,headers:g},h&&h!==1/0&&(l=this._timeout((function(){x(new o.RequestTimeout("Request Timeout after "+h+"ms")),S()}),h)),a?_(void 0,a):d.connectionPool.select(_),c},c.prototype._timeout=function(e,t){if(!this.closed){var n,i=this._timers||(this._timers=[]);if("function"!==typeof e&&(n=e,e=void 0),e)return n=setTimeout((function(){r.pull(i,n),e()}),t),i.push(n),n;if(n){clearTimeout(n);var o=this._timers.indexOf(n);-1!==o&&this._timers.splice(o,1)}}},c.prototype.sniff=function(e){var t=this,n=this.nodesToHostCallback,i=this.log,o=this.sniffedNodesProtocol,a=this.sniffedNodesFilterPath;e="function"===typeof e?e:r.noop,this.request({path:this.sniffEndpoint,query:{filter_path:a},method:"GET"},(function(a,s,l){if(!a&&s&&s.nodes){var c;try{c=n(s.nodes)}catch(u){return void i.error(new Error("Unable to convert node list from "+t.sniffEndpoint+" to hosts durring sniff. Encountered error:\n"+(u.stack||u.message)))}r.forEach(c,(function(e){o&&(e.protocol=o)})),t.setHosts(c)}e(a,s,l)}))},c.prototype.setHosts=function(e){var t=this._config;this.connectionPool.setHosts(r.map(e,(function(e){return e instanceof a?e:new a(e,t)})))},c.prototype.close=function(){this.log.close(),this.closed=!0,r.each(this._timers,clearTimeout),this._timers=null,this.connectionPool.close()}}).call(this,n("f28c"))},dc6a:function(e,t){e.exports=function(e){return e[Math.floor(Math.random()*e.length)]}},dc6f:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-modal",{attrs:{maskClosable:!1,title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",mask:!0,wrapClassName:"mengceng"},on:{ok:e.handleOk,cancel:e.handleCancel}},[r("a-spin",{attrs:{spinning:e.confirmLoading}},[r("a-form",{attrs:{form:e.form}},[r("a-row",{attrs:{span:"24"}},[r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"地区",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("city_child",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{params:e.showDefaultParams,isVerifyPass:e.isVerifyPass},on:{func:e.getMsgFormSon}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",e.validatorRules.city],expression:"[ 'city', validatorRules.city]"}],attrs:{placeholder:"请输入市",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cityCode",e.validatorRules.cityCode],expression:"[ 'cityCode', validatorRules.cityCode]"}],attrs:{placeholder:"请输入市代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",e.validatorRules.district],expression:"[ 'district', validatorRules.district]"}],attrs:{placeholder:"请输入区县",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",e.validatorRules.districtCode],expression:"[ 'districtCode', validatorRules.districtCode]"}],attrs:{placeholder:"请输入区县代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",e.validatorRules.street],expression:"[ 'street', validatorRules.street]"}],attrs:{placeholder:"请输入乡镇街道",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",e.validatorRules.streetCode],expression:"[ 'streetCode', validatorRules.streetCode]"}],attrs:{placeholder:"请输入乡镇街道代码",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["village",e.validatorRules.village],expression:"[ 'village', validatorRules.village]"}],attrs:{placeholder:"请输入村社区",hidden:""}}),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["villageCode",e.validatorRules.villageCode],expression:"[ 'villageCode', validatorRules.villageCode]"}],attrs:{placeholder:"请输入村社区代码",hidden:""}})],1)],1),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.bt],expression:"[ 'name', validatorRules.bt]"}],attrs:{placeholder:"请输入名称",disabled:e.isVerifyPass}})],1)],1),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"经度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["longitude",e.validatorRules.bt],expression:"[ 'longitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入经度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1)],1),r("a-col",{attrs:{span:"24"}},[r("a-form-item",{attrs:{label:"纬度",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["latitude",e.validatorRules.bt],expression:"[ 'latitude', validatorRules.bt]"}],staticStyle:{width:"88%"},attrs:{placeholder:"请输入纬度",disabled:""}}),r("a",[r("img",{staticStyle:{"margin-left":"10px",width:"20px",height:"20px"},attrs:{src:n("8b55")},on:{click:e.handleMapView}})])],1)],1),e._l(e.notes,(function(t,n){return r("a-col",{attrs:{span:"24"}},["city"==t.zd||"name"==t.zd||"longitude"==t.zd||"latitude"==t.zd?void 0:["1"==t.sfbt?["1"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.btint],expression:"[item.zd, validatorRules.btint]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd,e.validatorRules.bt],expression:"[item.zd, validatorRules.bt]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:e._e()]:["1"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-date",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期","trigger-change":!0,disabled:e.isVerifyPass}})],1)]:"0"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"2"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入"+t.name,disabled:e.isVerifyPass}})],1)]:"3"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:[t.zd],expression:"[item.zd]"}],attrs:{placeholder:"请选择"+t.name,"trigger-change":!0,dictCode:t.xlbm,disabled:e.isVerifyPass}})],1)]:"4"==t.kjlx?[r("a-form-item",{attrs:{label:t.name,labelCol:e.labelCol,wrapperCol:e.wrapperCol,disabled:e.isVerifyPass}},[r("Fileup",{ref:"Fileup",refInFor:!0,attrs:{fileList:e.fileList}})],1)]:e._e()]]],2)}))],2)],1),r("BackMap",{ref:"backMap",attrs:{model:e.model,pointKey:e.pointKey},on:{lonlatChanged:function(t){return e.lonlatChanged(t)}}})],1)],1)},i=[],o=(n("a481"),n("aef6"),n("28a5"),n("0fea")),a=n("88bc"),s=n.n(a),l=n("2dab"),c=n("fe54"),u=n("c14a"),d=n("d9be"),f=n("de10"),h=n("7b16"),p=n("ba3b"),m=n("ab8b"),g={name:"DykeModal",props:{url:"",templatesql:""},components:{JDate:l["default"],JSelectDepart:c["default"],JSelectUserByDep:u["default"],city_child:d["default"],mapChoosePoint:f["default"],JDictSelectTag:h["default"],BackMap:p["default"],Fileup:m["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:560,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:14}},notes:[],qx:"",qxmc:"",showDefaultParams:[],pointKey:"longitudeLatitude",maskClosable:!1,isVerifyPass:!1,confirmLoading:!1,validatorRules:{city:{rules:[{required:!0,message:"请选择地区"}]},bt:{rules:[{required:!0,message:"请输入必填字段"}]},btint:{rules:[{required:!0,message:"请输入必填字段,必须为数字"}]}},fileList:[]}},mounted:function(){this.getquxian(),this.weiwanshan()},methods:{fuzhi:function(){if(this.form.setFieldsValue(this.model),this.fileList=[],null!=this.model.files)for(var e=JSON.parse(this.model.files),t=0;t<e.length;t++)this.fileList.push(e[t])},handleMapView:function(){this.$refs.backMap.visible=!0,this.$refs.backMap.isVerifyPass=this.isVerifyPass,this.$refs.backMap.disableSubmit=!1},handleMapViewFace:function(){this.$refs.backMapArea.visible=!0,this.$refs.backMapArea.isVerifyPass=this.isVerifyPass,this.$refs.backMapArea.disableSubmit=!1},initParams:function(){null==this.model.cityCode?"3303"==this.qx?(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.form.setFieldsValue({city:"温州市",cityCode:"3303"})):(this.showDefaultParams.length=0,this.showDefaultParams.push("3303"),this.showDefaultParams.push(this.qx),this.form.setFieldsValue({city:"温州市",cityCode:"3303",district:this.qxmc,districtCode:this.qx})):(this.showDefaultParams.length=0,this.showDefaultParams.push(this.model.cityCode),this.showDefaultParams.push(this.model.districtCode),this.showDefaultParams.push(this.model.streetCode),this.showDefaultParams.push(this.model.villageCode))},getMsgFormSon:function(e){this.form.setFieldsValue({city:e.city,cityCode:e.cityCode,district:e.district,districtCode:e.districtCode,street:e.street,streetCode:e.streetCode,village:e.village,villageCode:e.villageCode})},checkChanged:function(e){var t=this;this.model[this.checkedKey]=e,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,t.checkedKey))}))},lonlatChanged:function(e){var t=this;this.model[this.pointKey]=e;var n=e.split(",");this.model.longitude=n[0],this.model.latitude=n[1],console.log(this.model.longitude),console.log(this.model.latitude),this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,t.pointKey,"longitude","latitude"))}))},validateTemplateCode:function(e,t,n){if(console.log(e),console.log(t),!t)return n(new Error("请输入电话号码"));var r=/^\d{11}$/;if(console.log(r.test(t)),!r.test(t))return n(new Error("电话号码格式不正确"));n()},dongtaibianji:function(){var e=this;Object(o["i"])(this.url.notes,{},"get").then((function(t){t.success&&(console.log("动态编辑字段add↓"),console.log(t.result.notes),e.notes=t.result.notes)}))},bianjipd:function(e){this.isVerifyPass,1==e.verifyStatus||1==e.verify_status?this.isVerifyPass=!0:this.isVerifyPass=!1},add:function(e){var t=this;this.dongtaibianji();var n=this,r=e.smid;null==r?(this.isVerifyPass=!1,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.fuzhi(),t.initParams()})),this.$emit("yincangzuoce")):(e.longitudeLatitude=e.longitude+","+e.latitude,1==this.isVerifyPass||1==e.verifyStatus?this.isVerifyPass=!0:this.isVerifyPass=!1,this.form.resetFields(),this.model=Object.assign({},e),this.visible=!1,this.$nextTick((function(){t.fuzhi(),t.initParams(),n.handleOk()})))},edit:function(e){var t=this;Object(o["i"])(this.url.notes,{},"get").then((function(n){n.success&&(console.log("动态编辑字段edit↓"),console.log(n.result.notes),t.notes=n.result.notes,t.bianjipd(e),t.form.resetFields(),t.model=Object.assign({},e),t.visible=!0,t.$nextTick((function(){t.fuzhi(),t.initParams()})),t.$emit("yincangzuoce"))}))},handleOk:function(){var e=this;if(this.isVerifyPass)alert("审核流程已结束,无法编辑数据");else{var t=this;this.form.validateFields((function(n,r){if(e.model.longitudeLatitude=e.model.longitude+","+e.model.latitude,!n){t.confirmLoading=!0;var i="",a="";if(e.model.smid?(i+=e.url.edit,a="put",e.$route.path.endsWith("emergency_risk_index")||e.$route.path.endsWith("emergency_resource_index")?i+="/emergency":i+="/shenheku"):(i+=e.url.add,a="post"),null!=e.model.files&&(r.files=JSON.stringify(t.fileList)),"undefined"!=typeof e.templatesql){var s=e.templatesql.replace("DATATYPE",""),l=s.replace("datatype",""),c=l.replace(/=/g,""),u=c.replace(/ /g,""),d=u.replace(/'/g,"");""!=d&&" "!=d&&(r.datatype=d)}var f=Object.assign(e.model,r);console.log("表单提交数据",f),Object(o["i"])(i,f,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok"),t.$emit("handleOktshide"),t.handleCancel()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))}},handleCancel:function(){this.$emit("closetwo"),this.$emit("xianshizuoce")},popupCallback:function(e){this.fuzhi()},getquxian:function(){var e=this;Object(o["c"])("/columnInfo/getQuxian").then((function(t){if(t.success){var n=t.result,r=n.split(",");e.qxmc=r[0],e.qx=r[1]}else e.$message.warning(t.message)}))},weiwanshan:function(){var e=this;Object(o["i"])(this.url.weiwanshan,{},"get").then((function(t){t.success&&e.dataSource3ziduan(t.result.notes)}))},dataSource3ziduan:function(e){this.$emit("dataSource3ziduan",e)}}},v=g,y=n("2877"),b=Object(y["a"])(v,r,i,!1,null,null,null);t["default"]=b.exports},dcf8:function(e,t,n){var r=n("9c2cc"),i=n("ef6d"),o=n("022d"),a=n("791c"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},dd9d:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1e3,visible:e.visible,confirmLoading:e.confirmLoading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单号",hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderCode",{rules:[{required:!0,message:"请输入订单号!"}]}],expression:"['orderCode', {rules: [{ required: true, message: '请输入订单号!' }]}]"}],attrs:{placeholder:"请输入订单号"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单类型"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["ctype",{}],expression:"['ctype',{}]"}],attrs:{placeholder:"请输入订单类型"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("国内订单")]),n("a-select-option",{attrs:{value:"2"}},[e._v("国际订单")])],1)],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单日期"}},[n("a-date-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderDate",{}],expression:"[ 'orderDate',{}]"}],attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单金额"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderMoney",{}],expression:"[ 'orderMoney', {}]"}],staticStyle:{width:"200px"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"订单备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{}],expression:"['content', {}]"}],attrs:{placeholder:"请输入订单备注"}})],1)],1)],1)],1)},i=[],o=n("be94"),a=n("0fea"),s=n("2dab"),l=n("88bc"),c=n.n(l),u=n("c1df"),d=n.n(u),f={name:"JeecgOrderDMainModal",components:{JDate:s["default"]},data:function(){return{title:"操作",visible:!1,orderMainModel:{jeecgOrderCustomerList:[{}],jeecgOrderTicketList:[{}]},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/test/order/add",edit:"/test/order/edit",orderCustomerList:"/test/order/listOrderCustomerByMainId",orderTicketList:"/test/order/listOrderTicketByMainId"}}},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.orderMainModel=Object.assign({},e),console.log(this.orderMainModel.id),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(c()(t.orderMainModel,"orderCode","ctype","orderMoney","content")),t.form.setFieldsValue({orderDate:t.orderMainModel.orderDate?d()(t.orderMainModel.orderDate):null})})),console.log(this.orderMainModel)},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",s="";e.orderMainModel.id?(i+=e.url.edit,s="put"):(i+=e.url.add,s="post");var l=Object.assign(e.orderMainModel,r);l.orderDate=l.orderDate?l.orderDate.format("YYYY-MM-DD HH:mm:ss"):null;var c=Object(o["a"])({},l);console.log(c),Object(a["i"])(i,c,s).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}},h=f,p=(n("b046"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"3947da84",null);t["default"]=m.exports},dda8:function(e,t,n){"use strict";var r=n("aa31").IteratorPrototype,i=n("5c5b"),o=n("e2e1"),a=n("b9e6"),s=n("0280"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},ddea:function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return b})),n.d(t,"k",(function(){return _})),n.d(t,"i",(function(){return w})),n.d(t,"a",(function(){return x})),n.d(t,"s",(function(){return O})),n.d(t,"q",(function(){return T})),n.d(t,"p",(function(){return R})),n.d(t,"r",(function(){return P})),n.d(t,"t",(function(){return M})),n.d(t,"o",(function(){return N})),n.d(t,"b",(function(){return j}));var r=n("e269"),i=n("0ec0"),o=n("617d"),a=n("38f3"),s=n("0999"),l=n("cd7e"),c=n("a896"),u="10px sans-serif",d="#000",f="round",h=[],p=0,m="round",g=10,v="#000",y="center",b="middle",_=[0,0,0,0],w=1,x=new r["a"],S=new i["a"];S.setSize=function(){console.warn("labelCache is deprecated.")};var C,E=null,k={},O=function(){var e,t,n=100,r="32px ",i=["monospace","serif"],o=i.length,s="wmytzilWMYTZIL@#/&?$%10";function c(e,n,a){for(var l=!0,c=0;c<o;++c){var u=i[c];if(t=A(e+" "+n+" "+r+u,s),a!=u){var d=A(e+" "+n+" "+r+a+","+u,s);l=l&&d!=t}}return!!l}function u(){for(var t=!0,r=x.getKeys(),i=0,o=r.length;i<o;++i){var s=r[i];x.get(s)<n&&(c.apply(this,s.split("\n"))?(Object(a["b"])(k),E=null,C=void 0,x.set(s,n)):(x.set(s,x.get(s)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var r=Object(l["e"])(t);if(r)for(var i=r.families,o=0,a=i.length;o<a;++o){var s=i[o],d=r.style+"\n"+r.weight+"\n"+s;void 0===x.get(d)&&(x.set(d,n,!0),c(r.style,r.weight,s)||(x.set(d,0,!0),void 0===e&&(e=setInterval(u,32))))}}}(),T=function(){var e;return function(t){var n=k[t];if(void 0==n){if(o["g"]){var r=Object(l["e"])(t),i=I(t,"Žg"),a=isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight);n=a*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.margin="0 !important",e.style.padding="0 !important",e.style.position="absolute !important",e.style.left="-99999px !important"),e.style.font=t,document.body.appendChild(e),n=e.offsetHeight,document.body.removeChild(e);k[t]=n}return n}}();function I(e,t){return E||(E=Object(s["a"])(1,1)),e!=C&&(E.font=e,C=E.font),E.measureText(t)}function A(e,t){return I(e,t).width}function R(e,t,n){if(t in n)return n[t];var r=A(e,t);return n[t]=r,r}function P(e,t,n){for(var r=t.length,i=0,o=0;o<r;++o){var a=A(e,t[o]);i=Math.max(i,a),n.push(a)}return i}function M(e,t,n,r){0!==t&&(e.translate(n,r),e.rotate(t),e.translate(-n,-r))}function N(e,t,n,r,i,o,a,s,l,c,u){e.save(),1!==n&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(l,c),e.scale(u[0],u[1]),L(r,e)):u[0]<0||u[1]<0?(e.translate(l,c),e.scale(u[0],u[1]),e.drawImage(r,i,o,a,s,0,0,a,s)):e.drawImage(r,i,o,a,s,l,c,a*u[0],s*u[1]),e.restore()}function L(e,t){for(var n=e.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}var D=null;function j(e){return o["g"]?Object(c["g"])(e):(D||(D=Object(s["a"])(1,1).canvas),D.style.transform=Object(c["g"])(e),D.style.transform)}},ddf2:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary"},on:{click:e.refresh}},[e._v("刷新")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",e._b({ref:"table",attrs:{size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,expandedRowKeys:e.expandedRowKeys},on:{change:e.handleTableChange,expand:e.handleExpand},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleGrant(r)}}},[e._v("授权")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(t){return e.copyEdit(r)}}},[e._v("复制")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleDetailRemark(r.id)}}},[e._v("备注")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])},"a-table",e.tableProps,!1))],1),n("remark-modal",{ref:"remarkmodal",on:{ok:e.remarkModalOk}}),n("sysCategory-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("category-district-modal",{ref:"modalCategoryDistrict"})],1)},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("96cf"),n("1da1")),a=n("2909"),s=(n("c5f6"),n("0fea")),l=n("b65a"),c=n("f1cf"),u=n("f1e3"),d=n("4488"),f={name:"SysCategoryList",mixins:[l["a"]],components:{SysCategoryModal:c["default"],CategoryDistrictModal:u["default"],RemarkModal:d["default"]},data:function(){return{description:"分类字典管理页面",columns:[{title:"名称",align:"left",dataIndex:"name"},{title:"表名",align:"left",dataIndex:"tableName"},{title:"类型",align:"left",dataIndex:"geotype"},{title:"数据集",align:"left",dataIndex:"datasetname"},{title:"sql",align:"left",dataIndex:"sqlText"},{title:"排序",align:"left",dataIndex:"orderNum"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/sys/category/rootList",childList:"/sys/category/childList",delete:"/sys/category/delete",deleteBatch:"/sys/category/deleteBatch",exportXlsUrl:"/sys/category/exportXls",importExcelUrl:"sys/category/importExcel"},expandedRowKeys:[],hasChildrenField:"hasChild",pidField:"pid",dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)},tableProps:function(){var e=this;return{rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:function(t){return e.selectedRowKeys=t}}}}},methods:{copyEdit:function(e){this.$refs.modalForm.isVerifyPass=this.verify,this.$refs.modalForm.edit(e),this.$refs.modalForm.title="复制"+this.getCurFormTitle(),this.$refs.modalForm.disableSubmit=!1},refresh:function(){Object(s["d"])("/otherUtil/otherUtil",null).then((function(e){alert(e.result)}))},handleDetailRemark:function(e){this.$refs.remarkmodal.show(e)},handleGrant:function(e){this.$refs.modalCategoryDistrict.show(e.id)},loadData:function(e){var t=this;1==e&&(this.ipagination.current=1),this.loading=!0,this.expandedRowKeys=[];var n=this.getQueryParams();return new Promise((function(e){Object(s["d"])(t.url.list,n).then((function(n){if(n.success){var r=n.result;Number(r.total)>0?(t.ipagination.total=Number(r.total),t.dataSource=t.getDataByResult(n.result.records),e()):(t.ipagination.total=0,t.dataSource=[])}else t.$message.warning(n.message);t.loading=!1}))}))},getDataByResult:function(e){var t=this;return e.map((function(e){if("1"==e[t.hasChildrenField]){var n={id:e.id+"_loadChild",name:"loading...",isLoading:!0};e.children=[n]}return e}))},handleExpand:function(e,t){var n=this;if(console.log(t),e){if(this.expandedRowKeys.push(t.id),t.children.length>0&&!0===t.children[0].isLoading){var r=this.getQueryParams();r[this.pidField]=t.id,Object(s["d"])(this.url.childList,r).then((function(e){e.success?e.result&&e.result.length>0?(t.children=n.getDataByResult(e.result),n.dataSource=Object(a["a"])(n.dataSource)):(t.children="",t.hasChildrenField="0"):n.$message.warning(e.message)}))}}else{var i=this.expandedRowKeys.indexOf(t.id);i>=0&&this.expandedRowKeys.splice(i,1)}},initDictConfig:function(){},modalFormOk:function(e,t){e.id?(this.editOk(e,this.dataSource),this.dataSource=Object(a["a"])(this.dataSource)):this.addOk(e,t)},editOk:function(e,t){if(t&&t.length>0)for(var n=0;n<t.length;n++){if(t[n].id==e.id){t[n]=e;break}this.editOk(e,t[n].children)}},addOk:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t[this.pidField]&&"0"!=t[this.pidField]){e.next=5;break}this.loadData(),e.next=33;break;case 5:this.expandedRowKeys=[],console.log("22222",n),r=!0,i=!1,o=void 0,e.prev=10,a=n[Symbol.iterator]();case 12:if(r=(s=a.next()).done){e.next=19;break}return l=s.value,e.next=16,this.expandTreeNode(l);case 16:r=!0,e.next=12;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e["catch"](10),i=!0,o=e.t0;case 25:e.prev=25,e.prev=26,r||null==a.return||a.return();case 28:if(e.prev=28,!i){e.next=31;break}throw o;case 31:return e.finish(28);case 32:return e.finish(25);case 33:case"end":return e.stop()}}),e,this,[[10,21,25,33],[26,,28,32]])})));function t(t,n){return e.apply(this,arguments)}return t}(),expandTreeNode:function(e){var t=this;return new Promise((function(n,r){t.getFormDataById(e,t.dataSource);var i=t.parentFormData;t.expandedRowKeys.push(e);var o=t.getQueryParams();o[t.pidField]=e,Object(s["d"])(t.url.childList,o).then((function(e){console.log("11111",e),e.success&&e.result&&e.result.length>0?(i.children=t.getDataByResult(e.result),t.dataSource=Object(a["a"])(t.dataSource),n()):r()}))}))},getFormDataById:function(e,t){if(t&&t.length>0)for(var n=0;n<t.length;n++)t[n].id==e?this.parentFormData=t[n]:this.getFormDataById(e,t[n].children)}}},h=f,p=(n("5739"),n("2877")),m=Object(p["a"])(h,r,i,!1,null,"14746067",null);t["default"]=m.exports},ddf9:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{staticStyle:{top:"20px"},attrs:{title:"重新设定密码",width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"用户账号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["username",{}],expression:"[ 'username', {}]"}],attrs:{placeholder:"请输入用户账号",readOnly:!0}})],1),n("a-form-item",{attrs:{label:"登陆密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",e.validatorRules.password],expression:"[ 'password', validatorRules.password]"}],attrs:{type:"password",placeholder:"请输入登陆密码"}})],1),n("a-form-item",{attrs:{label:"确认密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,hasFeedback:""}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["confirmpassword",e.validatorRules.confirmpassword],expression:"[ 'confirmpassword', validatorRules.confirmpassword]"}],attrs:{type:"password",placeholder:"请重新输入登陆密码"},on:{blur:e.handleConfirmBlur}})],1)],1)],1)],1)},i=[],o=n("4ec3"),a={name:"PasswordModal",data:function(){return{visible:!1,confirmLoading:!1,confirmDirty:!1,validatorRules:{password:{rules:[{required:!0,pattern:/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,message:"密码由8位数字、大小写字母和特殊符号组成!"},{validator:this.validateToNextPassword}]},confirmpassword:{rules:[{required:!0,message:"请重新输入登陆密码!"},{validator:this.compareToFirstPassword}]}},model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},form:this.$form.createForm(this)}},created:function(){console.log("created")},methods:{show:function(e){var t=this;this.form.resetFields(),this.visible=!0,this.model.username=e,this.$nextTick((function(){t.form.setFieldsValue({username:e})}))},close:function(){this.$emit("close"),this.visible=!1,this.disableSubmit=!1,this.selectedRole=[]},handleSubmit:function(){var e=this;this.form.validateFields((function(t,n){if(!t){e.confirmLoading=!0;var r=Object.assign(e.model,n);Object(o["g"])(r).then((function(t){t.success?(e.$message.success(t.message),e.$emit("ok")):e.$message.warning(t.message)})).finally((function(){e.confirmLoading=!1,e.close()}))}}))},handleCancel:function(){this.close()},validateToNextPassword:function(e,t,n){var r=this.form,i=r.getFieldValue("confirmpassword");console.log("confirmpassword==>",i),t&&i&&t!==i&&n("两次输入的密码不一样!"),t&&this.confirmDirty&&r.validateFields(["confirm"],{force:!0}),n()},compareToFirstPassword:function(e,t,n){var r=this.form;t&&t!==r.getFieldValue("password")?n("两次输入的密码不一样!"):n()},handleConfirmBlur:function(e){var t=e.target.value;this.confirmDirty=this.confirmDirty||!!t}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},ddf93:function(e,t,n){var r=n("6daf"),i=n("58c6");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},de10:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",staticStyle:{width:"350px"},on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),n("div",{staticClass:"yingxiang"},[n("a-dropdown",[n("a-button",{attrs:{type:"primary",icon:"swap"}},[e._v("地图切换")]),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.tdmapin()}}},[e._v("\n            标准\n          ")])]),n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.supermapin()}}},[e._v("\n            影像\n          ")])])],1)],1)],1),n("div",{ref:"mapswidth",staticClass:"mapmy1",attrs:{id:"map"}})],1)},i=[],o=(n("c5f6"),n("6b54"),n("a481"),n("28a5"),n("5bc0"),n("5eee")),a=n("a2c7"),s=n("480c"),l=n("3e6b"),c=n("d0e9"),u=n("91b1"),d=n("58315"),f=n("256f"),h=n("a568"),p=n("020f"),m=n("6c77"),g=n("6cbf"),v=n("8295"),y=n("83a6"),b=n("8682"),_=n("4cdf"),w=n("f403"),x=n("0af5"),S=n("78db"),C=n("84a1"),E=n("9834"),k=(n("0fea"),{name:"mapChooseLine",components:{aSelect:C["default"]},data:function(){return{vector:{},source:{},map:{},raster:new s["a"]({source:new c["a"]}),centerArr:[120.6790539441963,27.9979803194757],arr:"",tdt_vec:{},layer:{},zhuji:{},pd:0,zoom:12}},mounted:function(){this.init()},created:function(){},watch:{model:{handler:function(e,t){this.vector.getSource().clear();var n=this.centerArr;void 0!=e[this.pointKey]&&(n=this.checkModel(),this.initPoint(n)),this.map.getView().animate({center:[n[0],n[1]]})},deep:!0}},methods:{chooseAddress:function(e){var t=e.split(",");this.map.getView().zoom=16,this.map.getView().animate({center:[t[0],t[1]]}),this.$emit("lonlatChanged",t[0]+","+t[1]);var n=[t[0],t[1]];this.addVectorLabel("",n)},getTdtLayer:function(e){var t,n="http://t2.tianditu.gov.cn/DataServer?T="+e+"&x={x}&y={y}&l={z}&tk=8971e4c7b3640d506c2dc111221af6a0",r=Object(f["f"])("EPSG:4326"),i=[-180,-90,180,90],o=Object(x["E"])(i)/512,a=new Array(16);for(t=0;t<16;++t)a[t]=o/Math.pow(2,t);var l=Object(x["C"])(i),c=new s["a"]({extent:[-180,-90,180,90],source:new u["a"]({tileUrlFunction:function(e){var t=e[0]+1,r=e[1],i=-e[2]-1,o=Math.pow(2,t+1);return r%=o,r*o<0&&(r+=o),n.replace("{z}",t.toString()).replace("{y}",i.toString()).replace("{x}",r.toString())},projection:r,tileGrid:new S["a"]({origin:l,resolutions:a,tileSize:256})})});return c},init:function(){Object(f["o"])(),this.initVariable();var e=this.checkModel();this.initMap(e),this.initEvent(),this.supermapin()},initVariable:function(){this.source=new d["a"],this.vector=new l["a"]({source:this.source,style:this.createLabelStyle()})},checkModel:function(){var e=this.model[this.pointKey];if(null!=e&&void 0!=e&&""!=e&&"undefined,undefined"!=e){var t=e.split(",");if(2==t.length){for(var n=0;n<t.length;n++)t[n]=Number(t[n]);return this.initPoint(t),t}}return this.centerArr},initMap:function(e){this.arr=e,this.map=new o["a"]({target:"map",view:new a["a"]({center:[this.arr[0],this.arr[1]],zoom:this.zoom,projection:"EPSG:4326"})}),this.tdmapin()},supermapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYX2019CGCS2000/rest/maps/YJ_YX_2019_CGCS2000";this.layer=new s["a"]({source:new E["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.map.removeLayer(this.tdt_vec),this.map.removeLayer(this.vector),this.map.removeLayer(this.zhuji),this.map.addLayer(this.layer);var t="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJYXZJ2019CGCS2000/rest/maps/YJ_YXZJ_2019_CGCS2000";this.zhuji=new s["a"]({source:new E["a"]({url:t,wrapX:!0}),projection:"EPSG:4326"}),this.map.addLayer(this.zhuji),this.map.addLayer(this.vector)},tdmapin:function(){var e="http://10.36.245.203:8090/iserver/services/map-agscachev2-YJSGBZB2019CGCS2000/rest/maps/YJ_SG_BZB_2019_CGCS2000";this.tdt_vec=new s["a"]({source:new E["a"]({url:e,wrapX:!0}),projection:"EPSG:4326"}),this.map.removeLayer(this.layer),this.map.removeLayer(this.vector),this.map.removeLayer(this.zhuji),this.map.addLayer(this.tdt_vec),this.map.addLayer(this.vector)},yingxiang:function(){0==this.pd?(this.supermapin(),this.pd=1):(this.tdmapin(),this.pd=0)},initEvent:function(){var e=this;this.map.on("singleclick",(function(t){console.log(t);var n=e.map.getEventCoordinate(t.originalEvent);e.$emit("lonlatChanged",n[0]+","+n[1]);var r=[n[0],n[1]];e.addVectorLabel("",r)}));var t=new p["a"]({coordinateFormat:function(e){return Object(h["f"])(e,"经度:{x} 纬度:{y}",2)},projection:"EPSG:4326",className:"custom-mouse-position",target:document.getElementById("mouse-position"),undefinedHTML:"&nbsp;"});this.map.addControl(t)},addVectorLabel:function(e,t){var n=new _["a"]({geometry:new w["a"](t),name:e});n.setStyle(this.createLabelStyle(n)),this.vector.getSource().clear(),this.vector.getSource().addFeature(n)},createLabelStyle:function(e){var t=" ";return void 0!=e&&(t=e.get("name")),new m["c"]({image:new g["a"]({anchor:[.5,20],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",opacity:.9,src:"https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"}),text:new v["a"]({textAlign:"center",textBaseline:"middle",font:"normal 14px 微软雅黑",text:t,fill:new y["a"]({color:"#fff"}),stroke:new b["a"]({color:"#ffcc33",width:2})}),zIndex:20})},initPoint:function(e){var t=[e[0],e[1]];this.addVectorLabel("",t)}},props:["model","pointKey"]}),O=k,T=(n("3d5e"),n("2877")),I=Object(T["a"])(O,r,i,!1,null,null,null);t["default"]=I.exports},de57:function(e,t,n){var r=n("2ef0"),i=n("9eab"),o=e.exports,a="function"===typeof Error.captureStackTrace,s=!!(new Error).stack;function l(e,t,n){this.message=e,Error.call(this,this.message),a?Error.captureStackTrace(this,t):this.stack=s?(new Error).stack:"",n&&(r.assign(this,n),this.toString=function(){return e+" :: "+JSON.stringify(n)},this.toJSON=function(){return r.assign({msg:e},n)})}o._Abstract=l,i.inherits(l,Error),o.ConnectionFault=function(e){l.call(this,e||"Connection Failure",o.ConnectionFault)},i.inherits(o.ConnectionFault,l),o.NoConnections=function(e){l.call(this,e||"No Living connections",o.NoConnections)},i.inherits(o.NoConnections,l),o.Generic=function(e,t){l.call(this,e||"Generic Error",o.Generic,t)},i.inherits(o.Generic,l),o.RequestTimeout=function(e){l.call(this,e||"Request Timeout",o.RequestTimeout)},i.inherits(o.RequestTimeout,l),o.Serialization=function(e){l.call(this,e||"Unable to parse/serialize body",o.Serialization)},i.inherits(o.Serialization,l),o.RequestTypeError=function(e){l.call(this,"Cross-domain AJAX requests "+e+" are not supported",o.RequestTypeError)},i.inherits(o.RequestTypeError,l);var c=[[300,"Multiple Choices"],[301,"Moved Permanently"],[302,"Found"],[303,"See Other"],[304,"Not Modified"],[305,"Use Proxy"],[307,"Temporary Redirect"],[308,"Permanent Redirect"],[400,"Bad Request"],[401,"Authentication Exception"],[402,"Payment Required"],[403,["Authorization Exception","Forbidden"]],[404,"Not Found"],[405,"Method Not Allowed"],[406,"Not Acceptable"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Request Entity Too Large"],[414,"Request URIToo Long"],[415,"Unsupported Media Type"],[416,"Requested Range Not Satisfiable"],[417,"Expectation Failed"],[418,"Im ATeapot"],[421,"Too Many Connections From This IP"],[426,"Upgrade Required"],[429,"Too Many Requests"],[450,"Blocked By Windows Parental Controls"],[494,"Request Header Too Large"],[497,"HTTPTo HTTPS"],[499,"Client Closed Request"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"HTTPVersion Not Supported"],[506,"Variant Also Negotiates"],[510,"Not Extended"]];function u(e){const t=[];return function e(n){if("object"!==typeof n)return JSON.stringify(n);if(t.indexOf(n)>-1)return"[circular]";t.push(n);try{return"{ "+r.map(n,(function(t,n){return n+"="+e(t)})).join(" & ")+" }"}finally{t.pop()}}(e)}r.each(c,(function(e){var t=e[0],n=e[1],a=[].concat(n,t),s=a[0],c=i.studlyCase(s);function d(e,n){this.status=t,this.displayName=c;var i=null;return r.isPlainObject(e)&&(i=e,e=null),i?(e=[].concat(i.root_cause||[]).reduce((function(e,t){e&&(e+=" (and) "),e+="["+t.type+"] "+t.reason;var n=r.omit(t,["type","reason"]);return r.size(n)&&(e+=", with "+u(n)),e}),""),e||(i.type&&(e+="["+i.type+"] "),i.reason&&(e+=i.reason)),l.call(this,e||s,d,n),this):(l.call(this,e||s,d,n),this)}a=r.uniq(a.concat(c)),i.inherits(d,l),a.forEach((function(e){o[e]=d}))}))},de7d:function(e,t,n){var r=n("d75c"),i=n("0280"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},de89:function(e,t,n){},dec5:function(e,t,n){},df05:function(e,t,n){var r=n("6bd0"),i=n("5ab0"),o=n("69d8");r||i(Object.prototype,"toString",o,{unsafe:!0})},df2c:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",e._b({ref:"table",attrs:{size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,expandedRowKeys:e.expandedRowKeys},on:{change:e.handleTableChange,expand:e.handleExpand},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)}}])},"a-table",e.tableProps,!1))],1),n("sys-category-write-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("96cf"),n("1da1")),a=n("2909"),s=(n("c5f6"),n("0fea")),l=n("b65a"),c=n("ebae"),u={name:"SysCategoryList",mixins:[l["a"]],components:{SysCategoryWriteModal:c["default"]},data:function(){return{description:"分类字典管理页面",columns:[{title:"类型名称",align:"left",dataIndex:"name"},{title:"部门",align:"left",dataIndex:"sysOrgCode"},{title:"类型路径",align:"left",dataIndex:"path"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/sys/categoryWrite/rootList",childList:"/sys/categoryWrite/childList",delete:"/sys/categoryWrite/delete",deleteBatch:"/sys/categoryWrite/deleteBatch",exportXlsUrl:"/sys/categoryWrite/exportXls",importExcelUrl:"sys/categoryWrite/importExcel"},expandedRowKeys:[],hasChildrenField:"hasChild",pidField:"pid",dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)},tableProps:function(){var e=this;return{rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:function(t){return e.selectedRowKeys=t}}}}},methods:{loadData:function(e){var t=this;1==e&&(this.ipagination.current=1),this.loading=!0,this.expandedRowKeys=[];var n=this.getQueryParams();return new Promise((function(e){Object(s["d"])(t.url.list,n).then((function(n){if(n.success){var r=n.result;Number(r.total)>0?(t.ipagination.total=Number(r.total),t.dataSource=t.getDataByResult(n.result.records),e()):(t.ipagination.total=0,t.dataSource=[])}else t.$message.warning(n.message);t.loading=!1}))}))},getDataByResult:function(e){var t=this;return e.map((function(e){if("1"==e[t.hasChildrenField]){var n={id:e.id+"_loadChild",name:"loading...",isLoading:!0};e.children=[n]}return e}))},handleExpand:function(e,t){var n=this;if(e){if(this.expandedRowKeys.push(t.id),t.children.length>0&&!0===t.children[0].isLoading){var r=this.getQueryParams();r[this.pidField]=t.id,Object(s["d"])(this.url.childList,r).then((function(e){e.success?e.result&&e.result.length>0?(t.children=n.getDataByResult(e.result),n.dataSource=Object(a["a"])(n.dataSource)):(t.children="",t.hasChildrenField="0"):n.$message.warning(e.message)}))}}else{var i=this.expandedRowKeys.indexOf(t.id);i>=0&&this.expandedRowKeys.splice(i,1)}},initDictConfig:function(){},modalFormOk:function(e,t){e.id?(this.editOk(e,this.dataSource),this.dataSource=Object(a["a"])(this.dataSource)):this.addOk(e,t)},editOk:function(e,t){if(t&&t.length>0)for(var n=0;n<t.length;n++){if(t[n].id==e.id){t[n]=e;break}this.editOk(e,t[n].children)}},addOk:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t[this.pidField]){e.next=4;break}this.loadData(),e.next=32;break;case 4:this.expandedRowKeys=[],console.log("22222",n),r=!0,i=!1,o=void 0,e.prev=9,a=n[Symbol.iterator]();case 11:if(r=(s=a.next()).done){e.next=18;break}return l=s.value,e.next=15,this.expandTreeNode(l);case 15:r=!0,e.next=11;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e["catch"](9),i=!0,o=e.t0;case 24:e.prev=24,e.prev=25,r||null==a.return||a.return();case 27:if(e.prev=27,!i){e.next=30;break}throw o;case 30:return e.finish(27);case 31:return e.finish(24);case 32:case"end":return e.stop()}}),e,this,[[9,20,24,32],[25,,27,31]])})));function t(t,n){return e.apply(this,arguments)}return t}(),expandTreeNode:function(e){var t=this;return new Promise((function(n,r){t.getFormDataById(e,t.dataSource);var i=t.parentFormData;t.expandedRowKeys.push(e);var o=t.getQueryParams();o[t.pidField]=e,Object(s["d"])(t.url.childList,o).then((function(e){console.log("11111",e),e.success&&e.result&&e.result.length>0?(i.children=t.getDataByResult(e.result),t.dataSource=Object(a["a"])(t.dataSource),n()):r()}))}))},getFormDataById:function(e,t){if(t&&t.length>0)for(var n=0;n<t.length;n++)t[n].id==e?this.parentFormData=t[n]:this.getFormDataById(e,t[n].children)}}},d=u,f=(n("ec79"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"7805c7ab",null);t["default"]=h.exports},df2d:function(e,t,n){"use strict";n("c5f6")},df32:function(e,t,n){},df4c:function(e,t,n){"use strict";t["a"]={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},df55:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-layout",{attrs:{title:e.title}},[n("a-card",{attrs:{bordered:!1}},[n("detail-list",{attrs:{title:"退款申请"}},[n("detail-list-item",{attrs:{term:"取货单号"}},[e._v("1000000000")]),n("detail-list-item",{attrs:{term:"状态"}},[e._v("已取货")]),n("detail-list-item",{attrs:{term:"销售单号"}},[e._v("1234123421")]),n("detail-list-item",{attrs:{term:"子订单"}},[e._v("3214321432")])],1),n("a-divider",{staticStyle:{"margin-bottom":"32px"}}),n("detail-list",{attrs:{title:"用户信息"}},[n("detail-list-item",{attrs:{term:"用户姓名"}},[e._v("付小小")]),n("detail-list-item",{attrs:{term:"联系电话"}},[e._v("18100000000")]),n("detail-list-item",{attrs:{term:"常用快递"}},[e._v("菜鸟仓储")]),n("detail-list-item",{attrs:{term:"取货地址"}},[e._v("浙江省杭州市西湖区万塘路18号")]),n("detail-list-item",{attrs:{term:"备注"}},[e._v("\t无")])],1),n("a-divider",{staticStyle:{"margin-bottom":"32px"}}),n("div",{staticClass:"title"},[e._v("退货商品")]),n("s-table",{staticStyle:{"margin-bottom":"24px"},attrs:{columns:e.goodsColumns,data:e.loadGoodsData}}),n("div",{staticClass:"title"},[e._v("退货进度")]),n("s-table",{staticStyle:{"margin-bottom":"24px"},attrs:{columns:e.scheduleColumns,data:e.loadScheduleData},scopedSlots:e._u([{key:"status",fn:function(t){return[n("a-badge",{attrs:{status:t,text:e._f("statusFilter")(t)}})]}}])})],1)],1)},i=[],o=n("b445"),a=n("e8c4"),s=n("c16f"),l=n("2985"),c=s["default"].Item,u={components:{PageLayout:o["default"],ABadge:l["a"],DetailList:s["default"],DetailListItem:c,STable:a["a"]},data:function(){return{goodsColumns:[{title:"商品编号",dataIndex:"id",key:"id"},{title:"商品名称",dataIndex:"name",key:"name"},{title:"商品条码",dataIndex:"barcode",key:"barcode"},{title:"单价",dataIndex:"price",key:"price",align:"right"},{title:"数量(件)",dataIndex:"num",key:"num",align:"right"},{title:"金额",dataIndex:"amount",key:"amount",align:"right"}],loadGoodsData:function(){return new Promise((function(e){e({data:[{id:"1234561",name:"矿泉水 550ml",barcode:"12421432143214321",price:"2.00",num:"1",amount:"2.00"},{id:"1234562",name:"凉茶 300ml",barcode:"12421432143214322",price:"3.00",num:"2",amount:"6.00"},{id:"1234563",name:"好吃的薯片",barcode:"12421432143214323",price:"7.00",num:"4",amount:"28.00"},{id:"1234564",name:"特别好吃的蛋卷",barcode:"12421432143214324",price:"8.50",num:"3",amount:"25.50"}],pageSize:10,pageNo:1,totalPage:1,totalCount:10})})).then((function(e){return e}))},scheduleColumns:[{title:"时间",dataIndex:"time",key:"time"},{title:"当前进度",dataIndex:"rate",key:"rate"},{title:"状态",dataIndex:"status",key:"status",scopedSlots:{customRender:"status"}},{title:"操作员ID",dataIndex:"operator",key:"operator"},{title:"耗时",dataIndex:"cost",key:"cost"}],loadScheduleData:function(){return new Promise((function(e){e({data:[{key:"1",time:"2017-10-01 14:10",rate:"联系客户",status:"processing",operator:"取货员 ID1234",cost:"5mins"},{key:"2",time:"2017-10-01 14:05",rate:"取货员出发",status:"success",operator:"取货员 ID1234",cost:"1h"},{key:"3",time:"2017-10-01 13:05",rate:"取货员接单",status:"success",operator:"取货员 ID1234",cost:"5mins"},{key:"4",time:"2017-10-01 13:00",rate:"申请审批通过",status:"success",operator:"系统",cost:"1h"},{key:"5",time:"2017-10-01 12:00",rate:"发起退货申请",status:"success",operator:"用户",cost:"5mins"}],pageSize:10,pageNo:1,totalPage:1,totalCount:10})})).then((function(e){return e}))}}},filters:{statusFilter:function(e){var t={processing:"进行中",success:"完成",failed:"失败"};return t[e]}},computed:{title:function(){return this.$route.meta.title}}},d=u,f=(n("57ef"),n("2877")),h=Object(f["a"])(d,r,i,!1,null,"36a7328e",null);t["default"]=h.exports},df64:function(e,t,n){},e06a:function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,d=26,f=38,h=700,p=72,m=128,g="-",v=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-u,x=Math.floor,S=String.fromCharCode;function C(e){throw new RangeError(_[e])}function E(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(b,".");var i=e.split("."),o=E(i,t).join(".");return r+o}function O(e){var t,n,r=[],i=0,o=e.length;while(i<o)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function T(e){return E(e,(function(e){var t="";return e>65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|1023&e),t+=S(e),t})).join("")}function I(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,n){var r=0;for(e=n?x(e/h):e>>1,e+=x(e/t);e>w*d>>1;r+=c)e=x(e/w);return x(r+(w+1)*e/(e+f))}function P(e){var t,n,r,i,o,a,s,f,h,v,y=[],b=e.length,_=0,w=m,S=p;for(n=e.lastIndexOf(g),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&C("not-basic"),y.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(o=_,a=1,s=c;;s+=c){if(i>=b&&C("invalid-input"),f=I(e.charCodeAt(i++)),(f>=c||f>x((l-_)/a))&&C("overflow"),_+=f*a,h=s<=S?u:s>=S+d?d:s-S,f<h)break;v=c-h,a>x(l/v)&&C("overflow"),a*=v}t=y.length+1,S=R(_-o,t,0==o),x(_/t)>l-w&&C("overflow"),w+=x(_/t),_%=t,y.splice(_++,0,w)}return T(y)}function M(e){var t,n,r,i,o,a,s,f,h,v,y,b,_,w,E,k=[];for(e=O(e),b=e.length,t=m,n=0,o=p,a=0;a<b;++a)y=e[a],y<128&&k.push(S(y));r=i=k.length,i&&k.push(g);while(r<b){for(s=l,a=0;a<b;++a)y=e[a],y>=t&&y<s&&(s=y);for(_=r+1,s-t>x((l-n)/_)&&C("overflow"),n+=(s-t)*_,t=s,a=0;a<b;++a)if(y=e[a],y<t&&++n>l&&C("overflow"),y==t){for(f=n,h=c;;h+=c){if(v=h<=o?u:h>=o+d?d:h-o,f<v)break;E=f-v,w=c-v,k.push(S(A(v+E%w,0))),f=x(E/w)}k.push(S(A(f,0))),o=R(n,_,r==i),n=0,++r}++n,++t}return k.join("")}function N(e){return k(e,(function(e){return v.test(e)?P(e.slice(4).toLowerCase()):e}))}function L(e){return k(e,(function(e){return y.test(e)?"xn--"+M(e):e}))}s={version:"1.4.1",ucs2:{decode:O,encode:T},decode:P,encode:M,toASCII:L,toUnicode:N},i=function(){return s}.call(t,n,t,e),void 0===i||(e.exports=i)})()}).call(this,n("62e4")(e),n("c8ba"))},e099:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},e0b0:function(e,t,n){},e0b8:function(e,t,n){"use strict";var r=n("7726"),i=n("5ca1"),o=n("2aba"),a=n("dcbc"),s=n("67ab"),l=n("4a59"),c=n("f605"),u=n("d3f4"),d=n("79e5"),f=n("5cc5"),h=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,m,g,v){var y=r[e],b=y,_=g?"set":"add",w=b&&b.prototype,x={},S=function(e){var t=w[e];o(w,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||w.forEach&&!d((function(){(new b).entries().next()})))){var C=new b,E=C[_](v?{}:-0,1)!=C,k=d((function(){C.has(1)})),O=f((function(e){new b(e)})),T=!v&&d((function(){var e=new b,t=5;while(t--)e[_](t,t);return!e.has(-0)}));O||(b=t((function(t,n){c(t,b,e);var r=p(new y,t,b);return void 0!=n&&l(n,g,r[_],r),r})),b.prototype=w,w.constructor=b),(k||T)&&(S("delete"),S("has"),g&&S("get")),(T||E)&&S(_),v&&w.clear&&delete w.clear}else b=m.getConstructor(t,e,g,_),a(b.prototype,n),s.NEED=!0;return h(b,e),x[e]=b,i(i.G+i.W+i.F*(b!=y),x),v||m.setStrong(b,e,g),b}},e1bd:function(e,t,n){var r=n("99ca"),i=n("a793"),o=n("ef6d"),a=n("7373"),s=n("907d"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,g,v){for(var y,b,_=o(p),w=i(_),x=r(m,g,3),S=a(w.length),C=0,E=v||s,k=t?E(p,S):n||f?E(p,0):void 0;S>C;C++)if((h||C in w)&&(y=w[C],b=x(y,C,_),e))if(t)k[C]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return C;case 2:l.call(k,y)}else switch(e){case 4:return!1;case 7:l.call(k,y)}return d?-1:c||u?u:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},e1de:function(e,t,n){(function(e){e(n("56b3"),n("76ae"),n("eb0c"))})((function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",(function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:/\}\}\}?/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-handlebars-template","handlebars")}))},e207:function(e,t,n){var r=n("2ace"),i=n("9c04"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},e269:function(e,t,n){"use strict";n.d(t,"b",(function(){return f}));var r=n("cef7"),i=n("7b4f"),o=n("35a7"),a=n("38f3"),s=n("1300"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.key=n,i.oldValue=r,i}return l(t,e),t}(r["a"]),u=function(e){function t(t){var n=e.call(this)||this;return Object(s["c"])(n),n.values_=null,void 0!==t&&n.setProperties(t),n}return l(t,e),t.prototype.get=function(e){var t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},t.prototype.getProperties=function(){return this.values_&&Object(a["a"])({},this.values_)||{}},t.prototype.hasProperties=function(){return!!this.values_},t.prototype.notify=function(e,t){var n;n=f(e),this.dispatchEvent(new c(n,e,t)),n=i["a"].PROPERTYCHANGE,this.dispatchEvent(new c(n,e,t))},t.prototype.set=function(e,t,n){var r=this.values_||(this.values_={});if(n)r[e]=t;else{var i=r[e];r[e]=t,i!==t&&this.notify(e,i)}},t.prototype.setProperties=function(e,t){for(var n in e)this.set(n,e[n],t)},t.prototype.applyProperties=function(e){e.values_&&Object(a["a"])(this.values_||(this.values_={}),e.values_)},t.prototype.unset=function(e,t){if(this.values_&&e in this.values_){var n=this.values_[e];delete this.values_[e],Object(a["d"])(this.values_)&&(this.values_=null),t||this.notify(e,n)}},t}(o["a"]),d={};function f(e){return d.hasOwnProperty(e)?d[e]:d[e]="change:"+e}t["a"]=u},e2de:function(e,t,n){"use strict";var r=n("9c2cc"),i=n("e1bd").map,o=n("f5ee"),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},e2e0:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s}));var r=n("53ca"),i=(n("7f7f"),n("ac4d"),n("8a81"),{normal:"normal",input:"input",inputNumber:"inputNumber",checkbox:"checkbox",select:"select",date:"date",datetime:"datetime",upload:"upload",slot:"slot",hidden:"hidden"}),o=Symbol();function a(e,t){return new Promise((function(n){(function r(){var i=e.$refs[t];i?n(i):setTimeout((function(){r()}),10)})()}))}function s(e,t){if(!e||"function"!==typeof e.validateFields)throw"form 参数需要的是一个form对象,而传入的却是".concat(Object(r["a"])(e));var n={};return new Promise((function(t,n){e.validateFields((function(e,r){e?n({error:o}):t(r)}))})).then((function(e){return Object.assign(n,{formValue:e}),l(t)})).then((function(e){return Object.assign(n,{tablesValue:e}),Promise.resolve(n)})).catch((function(e){return Promise.reject(e)}))}function l(e){if(!(e instanceof Array))throw"'validateTables'函数的'cases'参数需要的是一个数组,而传入的却是".concat(Object(r["a"])(e));return new Promise((function(t,n){var r=[],i=0;(function a(){var s=e[i];s.getAll(!0).then((function(n){r[i]=n,++i===e.length?t(r):a()}),(function(e){e===o&&n({error:o,index:i}),n(e)}))})()}))}},e2e1:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},e300:function(e,t,n){"use strict";var r=n("835b"),i=n("e269"),o=n("183a"),a=n("cef7"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l={LENGTH:"length"},c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.index=r,i}return s(t,e),t}(a["a"]),u=function(e){function t(t,n){var r=e.call(this)||this,i=n||{};if(r.unique_=!!i.unique,r.array_=t||[],r.unique_)for(var o=0,a=r.array_.length;o<a;++o)r.assertUnique_(r.array_[o],o);return r.updateLength_(),r}return s(t,e),t.prototype.clear=function(){while(this.getLength()>0)this.pop()},t.prototype.extend=function(e){for(var t=0,n=e.length;t<n;++t)this.push(e[t]);return this},t.prototype.forEach=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)e(t[n],n,t)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get(l.LENGTH)},t.prototype.insertAt=function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new c(o["a"].ADD,t,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()},t.prototype.remove=function(e){for(var t=this.array_,n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)},t.prototype.removeAt=function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new c(o["a"].REMOVE,t,e)),t},t.prototype.setAt=function(e,t){var n=this.getLength();if(e<n){this.unique_&&this.assertUnique_(t,e);var r=this.array_[e];this.array_[e]=t,this.dispatchEvent(new c(o["a"].REMOVE,r,e)),this.dispatchEvent(new c(o["a"].ADD,t,e))}else{for(var i=n;i<e;++i)this.insertAt(i,void 0);this.insertAt(e,t)}},t.prototype.updateLength_=function(){this.set(l.LENGTH,this.array_.length)},t.prototype.assertUnique_=function(e,t){for(var n=0,i=this.array_.length;n<i;++n)if(this.array_[n]===e&&n!==t)throw new r["a"](58)},t}(i["a"]);t["a"]=u},e31a:function(e,t,n){"use strict";n("95df")},e326:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{visible:e.visible}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["departName",{}],expression:"['departName', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"上级部门"}},[n("a-tree-select",{staticStyle:{width:"100%",border:"none",outline:"none"},attrs:{disabled:"",dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.treeData,placeholder:"无"},model:{value:e.model.parentId,callback:function(t){e.$set(e.model,"parentId",t)},expression:"model.parentId"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"机构编码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orgCode",{}],expression:"['orgCode', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["departOrder",{}],expression:"[ 'departOrder',{}]"}],staticStyle:{border:"0px"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"手机号"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile",{}],expression:"['mobile', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address",{}],expression:"['address', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["memo",{}],expression:"['memo', {}]"}],staticStyle:{border:"0px"},attrs:{placeholder:""}})],1)],1)],1)},i=[],o=n("88bc"),a=n.n(o),s=n("4ec3"),l={name:"DeptBaseInfo",components:{},data:function(){return{departTree:[],id:"",model:{},visible:!1,disable:!0,treeData:[],form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:3}},wrapperCol:{xs:{span:24},sm:{span:16}}}},created:function(){this.loadTreeData()},methods:{loadTreeData:function(){var e=this;Object(s["R"])().then((function(t){if(t.success)for(var n=0;n<t.result.length;n++){var r=t.result[n];e.treeData.push(r)}}))},open:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,console.log("record:"),console.log(e),this.$nextTick((function(){t.form.setFieldsValue(a()(e,"departName","parentId","orgCode","departOrder","mobile","fax","address","memo"))}))},clearForm:function(){this.form.resetFields(),this.treeData=[]}}},c=l,u=(n("4dbf"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"123091ad",null);t["default"]=d.exports},e384:function(e,t,n){"use strict";n("306a")},e3a7:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"表名"}},[n("a-input",{attrs:{placeholder:"请输入表名"},model:{value:e.queryParam.tableName,callback:function(t){e.$set(e.queryParam,"tableName",t)},expression:"queryParam.tableName"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("a-form-item",{attrs:{label:"表类型"}},[n("j-dict-select-tag",{attrs:{dictCode:"cgform_table_type"},model:{value:e.queryParam.tableType,callback:function(t){e.$set(e.queryParam,"tableType",t)},expression:"queryParam.tableType"}})],1)],1),n("a-col",{attrs:{md:6,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"highlight"},on:{click:e.doCgformButton}},[e._v("自定义按钮")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"strikethrough"},on:{click:e.doEnhanceJs}},[e._v("JS增强")]),n("a-button",{directives:[{name:"has",rawName:"v-has",value:"online:sql",expression:"'online:sql'"}],staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"filter"},on:{click:e.doEnhanceSql}},[e._v("SQL增强")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"tool"},on:{click:e.doEnhanceJava}},[e._v("Java增强")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"database"},on:{click:e.importOnlineForm}},[e._v("从数据库导入表单")]),n("a-button",{directives:[{name:"has",rawName:"v-has",value:"online:goGenerateCode",expression:"'online:goGenerateCode'"}],staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"database"},on:{click:e.goGenerateCode}},[e._v("代码生成")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("\n      已选择\n      "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("\n      项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多\n            "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},["Y"!=r.isDbSynch?n("a-menu-item",[n("a",{on:{click:function(t){return e.openSyncModal(r.id)}}},[e._v("同步数据库")])]):e._e(),"Y"==r.isDbSynch&&3!==r.tableType?[n("a-menu-item",[n("a",{on:{click:function(t){return e.goPageOnline(r)}}},[e._v("功能测试")])]),n("a-menu-item",[n("a",{on:{click:function(t){return e.handleOnlineUrlShow(r)}}},[e._v("配置地址")])])]:e._e(),n("a-menu-item",[n("a",{on:{click:function(t){return e.handleRemoveRecord(r.id)}}},[e._v("移除")])]),n("a-menu-item",[n("a",{on:{click:function(t){return e.handleDelete(r.id)}}},[e._v("删除")])])],2)],1)]}},{key:"dbsync",fn:function(t){return["Y"===t?n("span",{staticStyle:{color:"limegreen"}},[e._v("已同步")]):e._e(),"N"===t?n("span",{staticStyle:{color:"red"}},[e._v("未同步")]):e._e()]}}])})],1),n("onl-cgform-head-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("a-modal",{staticStyle:{top:"5%",height:"95%"},attrs:{width:500,height:300,title:"同步数据库",visible:e.syncModalVisible},on:{cancel:e.handleCancleDbSync}},[n("template",{slot:"footer"},[n("a-button",{on:{click:e.handleCancleDbSync}},[e._v("关闭")]),n("a-button",{attrs:{type:"primary",loading:e.syncLoading},on:{click:e.handleDbSync}},[e._v("\n        确定\n      ")])],1),n("a-radio-group",{model:{value:e.synMethod,callback:function(t){e.synMethod=t},expression:"synMethod"}},[n("a-radio",{staticStyle:{display:"block",width:"30px",height:"30px"},attrs:{value:"normal"}},[e._v("普通同步(保留表数据)")]),n("a-radio",{staticStyle:{display:"block",width:"30px",height:"30px"},attrs:{value:"force"}},[e._v("强制同步(删除表,重新生成)")])],1)],2),n("a-modal",{attrs:{title:e.onlineUrlTitle,visible:e.onlineUrlVisible},on:{cancel:e.handleOnlineUrlClose}},[n("template",{slot:"footer"},[n("a-button",{on:{click:e.handleOnlineUrlClose}},[e._v("关闭")]),n("a-button",{staticClass:"copy-this-text",attrs:{type:"primary","data-clipboard-text":e.onlineUrl},on:{click:e.onCopyUrl}},[e._v("复制")])],1),n("p",[e._v(e._s(e.onlineUrl))])],2),n("enhance-js",{ref:"ehjs"}),n("enhance-sql",{ref:"ehsql"}),n("enhance-java",{ref:"ehjava"}),n("trans-db2-online",{ref:"transd2o",on:{ok:e.transOk}}),n("code-generator",{ref:"cg"}),n("onl-cgform-button-list",{ref:"btnList"})],1)},i=[],o=n("89f2"),a=n("0fea"),s=n("7b16"),l=n("b65a"),c=n("b311"),u=n.n(c),d={name:"OnlCgformHeadList",mixins:[l["a"]],components:{JDictSelectTag:s["default"]},data:function(){var e=this;return{description:"Online表单开发管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"表类型",align:"center",dataIndex:"tableType",customRender:function(t){return Object(o["a"])(e.tableTypeDictOptions,"".concat(t))}},{title:"表名",align:"center",dataIndex:"tableName"},{title:"表描述",align:"center",dataIndex:"tableTxt"},{title:"版本",align:"center",dataIndex:"tableVersion"},{title:"同步数据库状态",align:"center",dataIndex:"isDbSynch",scopedSlots:{customRender:"dbsync"}},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/online/cgform/head/list",delete:"/online/cgform/head/delete",deleteBatch:"/online/cgform/head/deleteBatch",doDbSynch:"/online/cgform/api/doDbSynch/",removeRecord:"/online/cgform/head/removeRecord"},tableTypeDictOptions:[],sexDictOptions:[],syncModalVisible:!1,syncFormId:"",synMethod:"normal",syncLoading:!1,onlineUrlTitle:"",onlineUrlVisible:!1,onlineUrl:"",selectedRowKeys:[],selectedRows:[]}},created:function(){var e=this;Object(o["c"])("cgform_table_type").then((function(t){t.success&&(e.tableTypeDictOptions=t.result)})),this.loadData()},methods:{doDbSynch:function(e){var t=this;Object(a["j"])(this.url.doDbSynch+e,{synMethod:"1"}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))},handleCancleDbSync:function(){this.syncModalVisible=!1},handleDbSync:function(){var e=this;this.syncLoading=!0,Object(a["j"])(this.url.doDbSynch+this.syncFormId+"/"+this.synMethod).then((function(t){e.syncModalVisible=!1,e.syncLoading=!1,t.success?(e.$message.success(t.message),e.loadData()):e.$message.warning(t.message)}))},openSyncModal:function(e){this.syncModalVisible=!0,this.syncFormId=e},goPageOnline:function(e){"Y"==e.isTree?this.$router.push({path:"/online/cgformTreeList/"+e.id}):this.$router.push({path:"/online/cgformList/"+e.id})},handleOnlineUrlClose:function(){this.onlineUrlTitle="",this.onlineUrlVisible=!1},handleOnlineUrlShow:function(e){"Y"==e.isTree?this.onlineUrl="/online/cgformTreeList/".concat(e.id):this.onlineUrl="/online/cgformList/".concat(e.id),this.onlineUrlVisible=!0,this.onlineUrlTitle="菜单链接["+e.tableTxt+"]"},handleRemoveRecord:function(e){var t=this;this.$confirm({title:"确认要移除此记录?",onOk:function(){Object(a["a"])(t.url.removeRecord,{id:e}).then((function(e){e.success?(t.$message.success("移除成功"),t.loadData()):t.$message.warning(e.message)}))},onCancel:function(){}})},doEnhanceJs:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.ehjs.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},doEnhanceSql:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.ehsql.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},doEnhanceJava:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.ehjava.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},doCgformButton:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.btnList.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},importOnlineForm:function(){this.$refs.transd2o.show()},transOk:function(){this.loadData()},goGenerateCode:function(){if(this.selectedRowKeys&&1==this.selectedRowKeys.length){var e=this.selectedRows[0];e.isDbSynch&&"N"!=e.isDbSynch?3!=e.tableType?this.$refs.cg.show(this.selectedRowKeys[0]):this.$message.warning("请选中该表对应的主表生成代码"):this.$message.warning("请先同步数据库!")}else this.$message.warning("请先选中一条记录")},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t},onCopyUrl:function(){var e=this,t=new u.a(".copy-this-text");t.on("success",(function(){t.destroy(),e.$message.success("复制成功"),e.handleOnlineUrlClose()})),t.on("error",(function(){e.$message.error("该浏览器不支持自动复制"),t.destroy()}))}}},f=d,h=(n("42d4"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,null,null);t["default"]=p.exports},e3b3:function(e,t,n){},e3b5:function(e,t,n){"use strict";n("4c9c")},e409:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("exception-page",{attrs:{type:"403"}})},i=[],o=n("0673"),a={components:{ExceptionPage:o["default"]}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"e1fa96e6",null);t["default"]=c.exports},e41e:function(e,t,n){"use strict";n("cec3")},e46f:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:e.title,width:e.width,placement:"right",closable:!1,visible:e.visible},on:{close:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"图层名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入图层名称"}})],1),n("a-form-item",{attrs:{label:"图层类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",e.validatorRules.type],expression:"[ 'type', validatorRules.type]"}],attrs:{placeholder:"请输入图层类型"}})],1),n("a-form-item",{attrs:{label:"图层地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["url",e.validatorRules.url],expression:"[ 'url', validatorRules.url]"}],attrs:{placeholder:"请输入图层地址"}})],1)],1)],1),n("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("确定")]),n("a-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v("取消")])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l={name:"CoverageModal",components:{},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{name:{},type:{},url:{}},url:{add:"/coverage/coverage/add",edit:"/coverage/coverage/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"name","type","url"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("表单提交数据",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"name","type","url"))}}},c=l,u=(n("37fc"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"c4cf3f16",null);t["default"]=d.exports},e490:function(e,t,n){var r=n("791c"),i=n("9e85"),o="​…᠎";e.exports=function(e){return r((function(){return!!i[e]()||o[e]()!=o||i[e].name!==e}))}},e49c:function(e,t,n){},e4b6:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:4,sm:4}},[n("a-form-item",{attrs:{label:"文件名称"}},[n("a-input",{attrs:{placeholder:"请输入文件名称"},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),n("a-col",{attrs:{md:4,sm:4}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:function(t){return e.loadData(1)}}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.clear}},[e._v("重置")])],1)]),n("a-col",{attrs:{md:4,sm:4}},[n("div",{staticClass:"update-box"},[n("a-upload",{attrs:{name:"file",multiple:!0,action:e.url.uploadAction,headers:e.headers},on:{change:function(t){return e.loadData(1)}}},[n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v(" 上传图例 ")],1)],1)],1)])],1)],1)],1),n("div",[n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a-dropdown",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.deletepic(r.id)}}},[n("a",[e._v("删除")])])],1)],1)}}])})],1)])},i=[],o=n("ade3"),a=n("b65a"),s=(n("89f2"),n("d185")),l=n("0fea"),c={name:"IndexIconOnePicture",mixins:[a["a"]],components:{JSelectDutyStreet:s["default"]},data:function(){var e=this.$createElement;return{description:"值班人员管理页面",columns:[{title:"",dataIndex:"",key:"id",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"图片",align:"center",width:"20%",dataIndex:"url",customRender:function(t){return{children:e("img",{attrs:{src:t},style:"width:120px;height:120px"})}}},{title:"名称",align:"center",width:"20%",dataIndex:"file_name"},{title:"url",align:"center",width:"50%",dataIndex:"url"},{title:"操作",align:"center",width:"150px",dataIndex:"action",scopedSlots:{customRender:"action"}}],url:{list:"/sys/indexIcon/getIconOnePicture/index_icon_onepicture",delete:"/sys/indexIcon/deleleIconWarehouse/index_icon_onepicture",uploadAction:"/sys/indexIcon/upload/index_icon_onepicture"},dictOptions:{dutyType:[]},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},headers:{authorization:"authorization-text"},dqpage:1,ipagination:{current:1,pageSize:10,pageSizeOptions:["10"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:Object(o["a"])({clear:function(){this.queryParam={},this.loadData(1)},loadData:function(e){var t=this;if(this.url.list){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();this.loading=!0,Object(l["d"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},deletepic:function(e){var t=this;Object(l["d"])(this.url.delete,{id:e}).then((function(e){t.loadData(1)})).catch((function(e){t.$message.error("获取HTTP信息失败")}))},handleTableChange:function(e){this.ipagination=e,this.dqpage=e.current}},"clear",(function(){this.queryParam={},this.loadData(1)}))},u=c,d=(n("8f5f"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"9d17a302",null);t["default"]=f.exports},e4df:function(e,t,n){},e511:function(e,t,n){var r=n("d75c");t.f=r},e539:function(e,t,n){e.exports=a;var r=n("9eab"),i=n("0074"),o=n("de57").ConnectionFault;function a(e,t){i.call(this,e,t);var n=this;t.$injector.invoke(["$http","$q",function(e,t){n.$q=t,n.$http=e}])}r.inherits(a,i),a.prototype.request=function(e,t){var n=this.$q.defer();return this.$http({method:e.method,url:this.host.makeUrl(e),data:e.body,cache:!1,headers:this.host.getHeaders(e.headers),transformRequest:[],transformResponse:[],timeout:n.promise}).then((function(e){t(null,e.data,e.status,e.headers())}),(function(e){e.status?t(null,e.data,e.status,e.headers()):t(new o(e.message))})),function(){n.resolve()}}},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},i=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},o=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},s=a((function(e,t){return e===t})),l=s,c=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e.eq(t[i],n[i]))return!1;return!0}))},u=function(e,t){return o(c(e),(function(e){return i(e,t)}))},d=function(e){return a((function(t,n){var r=Object.keys(t),i=Object.keys(n);if(!u(l).eq(r,i))return!1;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(!e.eq(t[s],n[s]))return!1}return!0}))},f=a((function(e,t){if(e===t)return!0;var i=n(e),o=n(t);return i===o&&(r(i)?e===t:"array"===i?c(f).eq(e,t):"object"===i&&d(f).eq(e,t))})),h=function(){},p=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},m=function(e,t){return function(n){return e(t(n))}},g=function(e){return function(){return e}},v=function(e){return e};function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var b=function(e){return function(t){return!e(t)}},_=function(e){return function(){throw new Error(e)}},w=function(e){return e()},x=function(e){e()},S=g(!1),C=g(!0),E=function(){return k},k=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:S,isSome:S,isNone:C,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:n,orThunk:t,map:E,each:h,bind:E,exists:S,forall:C,filter:E,equals:e,equals_:e,toArray:function(){return[]},toString:g("none()")};return r}(),O=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:C,isNone:S,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return O(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:k},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(S,(function(t){return n(e,t)}))}};return i},T=function(e){return null===e||void 0===e?k:O(e)},I={some:O,none:E,from:T},A=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},R=function(e){return function(t){return A(t)===e}},P=function(e){return function(t){return typeof t===e}},M=function(e){return function(t){return e===t}},N=R("string"),L=R("object"),D=R("array"),j=M(null),F=P("boolean"),B=M(void 0),q=function(e){return null===e||void 0===e},z=function(e){return!q(e)},U=P("function"),G=P("number"),V=Array.prototype.slice,W=Array.prototype.indexOf,H=Array.prototype.push,$=function(e,t){return W.call(e,t)},K=function(e,t){var n=$(e,t);return-1===n?I.none():I.some(n)},X=function(e,t){return $(e,t)>-1},Y=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},J=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},Z=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},ee=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},te=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},ne=function(e,t,n){return Z(e,(function(e){n=t(n,e)})),n},re=function(e,t,n){return Q(e,(function(e){n=t(n,e)})),n},ie=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return I.some(o);if(n(o,r))break}return I.none()},oe=function(e,t){return ie(e,t,S)},ae=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return I.some(n)}return I.none()},se=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!D(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);H.apply(t,e[n])}return t},le=function(e,t){return se(J(e,t))},ce=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},ue=function(e){var t=V.call(e,0);return t.reverse(),t},de=function(e,t){return te(e,(function(e){return!X(t,e)}))},fe=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},he=function(e,t){var n=V.call(e,0);return n.sort(t),n},pe=function(e,t){return t>=0&&t<e.length?I.some(e[t]):I.none()},me=function(e){return pe(e,0)},ge=function(e){return pe(e,e.length-1)},ve=U(Array.from)?Array.from:function(e){return V.call(e)},ye=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return I.none()},be=Object.keys,_e=Object.hasOwnProperty,we=function(e,t){for(var n=be(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},xe=function(e,t){return Se(e,(function(e,n){return{k:n,v:t(e,n)}}))},Se=function(e,t){var n={};return we(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Ce=function(e){return function(t,n){e[n]=t}},Ee=function(e,t,n,r){var i={};return we(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},ke=function(e,t){var n={},r={};return Ee(e,t,Ce(n),Ce(r)),{t:n,f:r}},Oe=function(e,t){var n={};return Ee(e,t,Ce(n),h),n},Te=function(e,t){var n=[];return we(e,(function(e,r){n.push(t(e,r))})),n},Ie=function(e){return Te(e,(function(e){return e}))},Ae=function(e,t){return Re(e,t)?I.from(e[t]):I.none()},Re=function(e,t){return _e.call(e,t)},Pe=function(e,t){return Re(e,t)&&void 0!==e[t]&&null!==e[t]},Me=function(e,t,n){return void 0===n&&(n=f),d(n).eq(e,t)},Ne=Array.isArray,Le=function(e){if(Ne(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},De=function(e,t,n){var r,i;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return!1;return!0},je=function(e,t){var n=[];return De(e,(function(r,i){n.push(t(r,i,e))})),n},Fe=function(e,t){var n=[];return De(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n},Be=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},qe=function(e,t,n,r){for(var i=B(n)?e[0]:n,o=0;o<e.length;o++)i=t.call(r,i,e[o],o);return i},ze=function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1},Ue=function(e){return e[e.length-1]},Ge=function(){return Ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ge.apply(this,arguments)};function Ve(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function We(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var He=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},$e=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),l=i||!o&&a&&r("(min-device-width:768px)"),c=o||a&&!l,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!l&&!u;return{isiPad:g(i),isiPhone:g(o),isTablet:g(l),isPhone:g(c),isTouch:g(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:g(u),isDesktop:g(d)}},Ke=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Xe=function(e,t){var n=Ke(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Qe(r(1),r(2))},Ye=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Je():Xe(e,n)},Je=function(){return Qe(0,0)},Qe=function(e,t){return{major:e,minor:t}},Ze={nu:Qe,detect:Ye,unknown:Je},et=function(e,t){var n=String(t).toLowerCase();return oe(e,(function(e){return e.search(n)}))},tt=function(e,t){return et(e,t).map((function(e){var n=Ze.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},nt=function(e,t){return et(e,t).map((function(e){var n=Ze.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},rt={detectBrowser:tt,detectOs:nt},it=function(e,t){return e.substring(t)},ot=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},at=function(e,t){return lt(e,t)?it(e,t.length):e},st=function(e,t){return-1!==e.indexOf(t)},lt=function(e,t){return ot(e,t,0)},ct=function(e){return function(t){return t.replace(e,"")}},ut=ct(/^\s+|\s+$/g),dt=ct(/^\s+/g),ft=ct(/\s+$/g),ht=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,pt=function(e){return function(t){return st(t,e)}},mt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return st(e,"edge/")&&st(e,"chrome")&&st(e,"safari")&&st(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ht],search:function(e){return st(e,"chrome")&&!st(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return st(e,"msie")||st(e,"trident")}},{name:"Opera",versionRegexes:[ht,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:pt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:pt("firefox")},{name:"Safari",versionRegexes:[ht,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(st(e,"safari")||st(e,"mobile/"))&&st(e,"applewebkit")}}],gt=[{name:"Windows",search:pt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return st(e,"iphone")||st(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:pt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:pt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:pt("linux"),versionRegexes:[]},{name:"Solaris",search:pt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:pt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:pt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],vt={browsers:g(mt),oses:g(gt)},yt="Edge",bt="Chrome",_t="IE",wt="Opera",xt="Firefox",St="Safari",Ct=function(){return Et({current:void 0,version:Ze.unknown()})},Et=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(yt),isChrome:r(bt),isIE:r(_t),isOpera:r(wt),isFirefox:r(xt),isSafari:r(St)}},kt={unknown:Ct,nu:Et,edge:g(yt),chrome:g(bt),ie:g(_t),opera:g(wt),firefox:g(xt),safari:g(St)},Ot="Windows",Tt="iOS",It="Android",At="Linux",Rt="OSX",Pt="Solaris",Mt="FreeBSD",Nt="ChromeOS",Lt=function(){return Dt({current:void 0,version:Ze.unknown()})},Dt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ot),isiOS:r(Tt),isAndroid:r(It),isOSX:r(Rt),isLinux:r(At),isSolaris:r(Pt),isFreeBSD:r(Mt),isChromeOS:r(Nt)}},jt={unknown:Lt,nu:Dt,windows:g(Ot),ios:g(Tt),android:g(It),linux:g(At),osx:g(Rt),solaris:g(Pt),freebsd:g(Mt),chromeos:g(Nt)},Ft=function(e,t){var n=vt.browsers(),r=vt.oses(),i=rt.detectBrowser(n,e).fold(kt.unknown,kt.nu),o=rt.detectOs(r,e).fold(jt.unknown,jt.nu),a=$e(o,i,e,t);return{browser:i,os:o,deviceType:a}},Bt={detect:Ft},qt=function(e){return window.matchMedia(e).matches},zt=He((function(){return Bt.detect(navigator.userAgent,qt)})),Ut=function(){return zt()},Gt=navigator.userAgent,Vt=Ut(),Wt=Vt.browser,Ht=Vt.os,$t=Vt.deviceType,Kt=/WebKit/.test(Gt)&&!Wt.isEdge(),Xt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Yt=-1!==Gt.indexOf("Windows Phone"),Jt={opera:Wt.isOpera(),webkit:Kt,ie:!(!Wt.isIE()&&!Wt.isEdge())&&Wt.version.major,gecko:Wt.isFirefox(),mac:Ht.isOSX()||Ht.isiOS(),iOS:$t.isiPad()||$t.isiPhone(),android:Ht.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Wt.isIE()?document.documentMode||7:10,fileApi:Xt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Wt.isIE(),desktop:$t.isDesktop(),windowsPhone:Yt,browser:{current:Wt.current,version:Wt.version,isChrome:Wt.isChrome,isEdge:Wt.isEdge,isFirefox:Wt.isFirefox,isIE:Wt.isIE,isOpera:Wt.isOpera,isSafari:Wt.isSafari},os:{current:Ht.current,version:Ht.version,isAndroid:Ht.isAndroid,isChromeOS:Ht.isChromeOS,isFreeBSD:Ht.isFreeBSD,isiOS:Ht.isiOS,isLinux:Ht.isLinux,isOSX:Ht.isOSX,isSolaris:Ht.isSolaris,isWindows:Ht.isWindows},deviceType:{isDesktop:$t.isDesktop,isiPad:$t.isiPad,isiPhone:$t.isiPhone,isPhone:$t.isPhone,isTablet:$t.isTablet,isTouch:$t.isTouch,isWebView:$t.isWebView}},Qt=/^\s*|\s*$/g,Zt=function(e){return null===e||void 0===e?"":(""+e).replace(Qt,"")},en=function(e,t){return t?!("array"!==t||!Ne(e))||typeof e===t:void 0!==e},tn=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},nn=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},rn=function(e,t,n){var r,i,o,a=this,s=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var l=e[3].match(/(^|\.)(\w+)$/i)[2],c=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!c[l]){if("static"===e[2])return c[l]=t,void(this.onCreate&&this.onCreate(e[2],e[3],c[l]));t[l]||(t[l]=h,s=1),c[l]=t[l],a.extend(c[l].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=c[l],c[l]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},c[l].prototype[l]=c[l],a.each(r,(function(e,t){c[l].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?c[l].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==l&&(c[l].prototype[t]=e)}))),a.each(t.static,(function(e,t){c[l][t]=e}))}},on=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];void 0!==a&&(e[o]=a)}}return e},an=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),De(e,(function(e,i){if(!1===t.call(r,e,i,n))return!1;an(e,t,n,r)})))},sn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},ln=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},cn=function(e,t){return!e||en(e,"array")?e:je(e.split(t||","),Zt)},un=function(e){var t=Jt.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},dn={trim:Zt,isArray:Ne,is:en,toArray:Le,makeMap:tn,each:De,map:je,grep:Fe,inArray:Be,hasOwn:nn,extend:on,create:rn,walk:an,createNS:sn,resolve:ln,explode:cn,_addCacheSuffix:un},fn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return mn(r.childNodes[0])},hn=function(e,t){var n=t||document,r=n.createElement(e);return mn(r)},pn=function(e,t){var n=t||document,r=n.createTextNode(e);return mn(r)},mn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},gn=function(e,t,n){return I.from(e.dom.elementFromPoint(t,n)).map(mn)},vn={fromHtml:fn,fromTag:hn,fromText:pn,fromDom:mn,fromPoint:gn},yn=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},i=t(e);do{i=i.bind(r)}while(i.isSome());return n},bn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},_n=function(e,t){return bn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},wn=8,xn=9,Sn=11,Cn=1,En=3,kn=function(e,t){var n=e.dom;if(n.nodeType!==Cn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},On=function(e){return e.nodeType!==Cn&&e.nodeType!==xn&&e.nodeType!==Sn||0===e.childElementCount},Tn=function(e,t){var n=void 0===t?document:t.dom;return On(n)?[]:J(n.querySelectorAll(e),vn.fromDom)},In=function(e,t){var n=void 0===t?document:t.dom;return On(n)?I.none():I.from(n.querySelector(e)).map(vn.fromDom)},An=function(e,t){return e.dom===t.dom},Rn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Pn=function(e,t){return _n(e.dom,t.dom)},Mn=function(e,t){return Ut().browser.isIE()?Pn(e,t):Rn(e,t)},Nn=("undefined"!==typeof window?window:Function("return this;")(),function(e){var t=e.dom.nodeName;return t.toLowerCase()}),Ln=function(e){return e.dom.nodeType},Dn=function(e){return function(t){return Ln(t)===e}},jn=function(e){return Ln(e)===wn||"#comment"===Nn(e)},Fn=Dn(Cn),Bn=Dn(En),qn=Dn(xn),zn=Dn(Sn),Un=function(e){return vn.fromDom(e.dom.ownerDocument)},Gn=function(e){return qn(e)?e:Un(e)},Vn=function(e){return vn.fromDom(Gn(e).dom.documentElement)},Wn=function(e){return vn.fromDom(Gn(e).dom.defaultView)},Hn=function(e){return I.from(e.dom.parentNode).map(vn.fromDom)},$n=function(e,t){var n=U(t)?t:S,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=vn.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},Kn=function(e){var t=function(t){return te(t,(function(t){return!An(e,t)}))};return Hn(e).map(Zn).map(t).getOr([])},Xn=function(e){return I.from(e.dom.previousSibling).map(vn.fromDom)},Yn=function(e){return I.from(e.dom.nextSibling).map(vn.fromDom)},Jn=function(e){return ue(yn(e,Xn))},Qn=function(e){return yn(e,Yn)},Zn=function(e){return J(e.dom.childNodes,vn.fromDom)},er=function(e,t){var n=e.dom.childNodes;return I.from(n[t]).map(vn.fromDom)},tr=function(e){return er(e,0)},nr=function(e){return er(e,e.dom.childNodes.length-1)},rr=function(e){return e.dom.childNodes.length},ir=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return vn.fromDom(t)},or=function(e){return zn(e)&&z(e.dom.host)},ar=U(Element.prototype.attachShadow)&&U(Node.prototype.getRootNode),sr=g(ar),lr=ar?function(e){return vn.fromDom(e.dom.getRootNode())}:Gn,cr=function(e){return or(e)?e:ir(Gn(e))},ur=function(e){var t=lr(e);return or(t)?I.some(t):I.none()},dr=function(e){return vn.fromDom(e.dom.host)},fr=function(e){if(sr()&&z(e.target)){var t=vn.fromDom(e.target);if(Fn(t)&&hr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return me(n)}}return I.from(e.target)},hr=function(e){return z(e.dom.shadowRoot)},pr=function(e,t){var n=Hn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},mr=function(e,t){var n=Yn(e);n.fold((function(){var n=Hn(e);n.each((function(e){vr(e,t)}))}),(function(e){pr(e,t)}))},gr=function(e,t){var n=tr(e);n.fold((function(){vr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},vr=function(e,t){e.dom.appendChild(t.dom)},yr=function(e,t){pr(e,t),vr(t,e)},br=function(e,t){Q(t,(function(t){pr(e,t)}))},_r=function(e,t){Q(t,(function(t){vr(e,t)}))},wr=function(e){e.dom.textContent="",Q(Zn(e),(function(e){xr(e)}))},xr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Sr=function(e){var t=Zn(e);t.length>0&&br(e,t),xr(e)},Cr=function(e){var t=Bn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return ur(vn.fromDom(t)).fold((function(){return n.body.contains(t)}),m(Cr,dr))},Er=function(e,t){var n=function(n,r){return Er(e+n,t+r)};return{left:e,top:t,translate:n}},kr=Er,Or=function(e){var t=e.getBoundingClientRect();return kr(t.left,t.top)},Tr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Ir=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return kr(n.offsetLeft,n.offsetTop);var o=Tr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Tr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Tr(i.clientTop,n.clientTop),l=Tr(i.clientLeft,n.clientLeft);return Ar(e).translate(a-l,o-s)},Ar=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?kr(r.offsetLeft,r.offsetTop):Cr(e)?Or(t):kr(0,0)},Rr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return kr(n,r)},Pr=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Mr=function(e,t){var n=Ut().browser.isSafari();n&&U(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Nr=function(e){var t=void 0===e?window:e;return I.from(t["visualViewport"])},Lr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Dr=function(e){var t=void 0===e?window:e,n=t.document,r=Rr(vn.fromDom(n));return Nr(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Lr(r.left,r.top,n,i)}),(function(e){return Lr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},jr=function(e){return function(t){return!!t&&t.nodeType===e}},Fr=function(e){return!!e&&!Object.getPrototypeOf(e)},Br=jr(1),qr=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return X(t,n)}return!1}},zr=function(e,t){var n=t.toLowerCase().split(" ");return function(t){var r,i;if(Br(t))for(r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null);if(i=o?o.getPropertyValue(e):null,i===n[r])return!0}return!1}},Ur=function(e){return function(t){return Br(t)&&t.hasAttribute(e)}},Gr=function(e,t){return function(n){return Br(n)&&n.getAttribute(e)===t}},Vr=function(e){return Br(e)&&e.hasAttribute("data-mce-bogus")},Wr=function(e){return Br(e)&&"all"===e.getAttribute("data-mce-bogus")},Hr=function(e){return Br(e)&&"TABLE"===e.tagName},$r=function(e){return function(t){if(Br(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Kr=qr(["textarea","input"]),Xr=jr(3),Yr=jr(8),Jr=jr(9),Qr=jr(11),Zr=qr(["br"]),ei=qr(["img"]),ti=$r("true"),ni=$r("false"),ri=qr(["td","th"]),ii=qr(["video","audio","object","embed"]),oi=function(e){return void 0!==e.style&&U(e.style.getPropertyValue)},ai=function(e,t,n){if(!(N(n)||F(n)||G(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},si=function(e,t,n){ai(e.dom,t,n)},li=function(e,t){var n=e.dom;we(t,(function(e,t){ai(n,t,e)}))},ci=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},ui=function(e,t){return I.from(ci(e,t))},di=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},fi=function(e,t){e.dom.removeAttribute(t)},hi=function(e){return re(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},pi=function(e,t,n){if(!N(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);oi(e)&&e.style.setProperty(t,n)},mi=function(e,t){var n=e.dom;we(t,(function(e,t){pi(n,t,e)}))},gi=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Cr(e)?i:vi(n,t)},vi=function(e,t){return oi(e)?e.style.getPropertyValue(t):""},yi=function(e,t){var n=e.dom,r=vi(n,t);return I.from(r).filter((function(e){return e.length>0}))},bi=function(e){var t={},n=e.dom;if(oi(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},_i=function(e){return e.dom.offsetWidth},wi=Ut().browser,xi=function(e){return oe(e,Fn)},Si=function(e){return wi.isFirefox()&&"table"===Nn(e)?xi(Zn(e)).filter((function(e){return"caption"===Nn(e)})).bind((function(e){return xi(Qn(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,i=e.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0},Ci=function(e,t){return e.children&&X(e.children,t)},Ei=function(e,t,n){var r,i,o=0,a=0,s=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===gi(vn.fromDom(e),"position"))return i=t.getBoundingClientRect(),o=i.left+(s.documentElement.scrollLeft||e.scrollLeft)-s.documentElement.clientLeft,a=i.top+(s.documentElement.scrollTop||e.scrollTop)-s.documentElement.clientTop,{x:o,y:a};r=t;while(r&&r!==n&&r.nodeType&&!Ci(r,n))o+=r.offsetLeft||0,a+=r.offsetTop||0,r=r.offsetParent;r=t.parentNode;while(r&&r!==n&&r.nodeType&&!Ci(r,n))o-=r.scrollLeft||0,a-=r.scrollTop||0,r=r.parentNode;a+=Si(vn.fromDom(t))}return{x:o,y:a}},ki={},Oi={exports:ki};(function(e,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof e&&e.amd)e([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function e(t,n,r){function o(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof i&&i;if(!l&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};t[s][0].call(d.exports,(function(e){var n=t[s][1][e];return o(n||e)}),d,d.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return e}()({1:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var u,d=[],f=!1,h=-1;function p(){f&&u&&(f=!1,u.length?d=u.concat(d):h=-1,d.length&&m())}function m(){if(!f){var e=l(p);f=!0;var t=d.length;while(t){u=d,d=[];while(++h<t)u&&u[h].run();h=-1,t=d.length}u=null,f=!1,c(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new g(e,t)),1!==d.length||f||l(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(e,t,n){(function(e){(function(n){var r=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function a(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}l(t.promise,r)}else(1===e._state?l:c)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void u(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,u(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(r){if(n)return;n=!0,c(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new d(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(l){n(l)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"===typeof e?function(t){e(t)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function c(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();t.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,ki,Oi,void 0);var Ti=Oi.exports.boltExport,Ii=function(e){var t=I.none(),n=[],r=function(e){return Ii((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?l(e):n.push(e)},o=function(e){a()||(t=I.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){Q(e,l)},l=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},Ai=function(e){return Ii((function(t){t(e)}))},Ri={nu:Ii,pure:Ai},Pi=function(e){setTimeout((function(){throw e}),0)},Mi=function(e){var t=function(t){e().then(t,Pi)},n=function(t){return Mi((function(){return e().then(t)}))},r=function(t){return Mi((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return Mi((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return Ri.nu(t)},a=function(){var t=null;return Mi((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},Ni=function(e){return Mi((function(){return new Ti(e)}))},Li=function(e){return Mi((function(){return Ti.resolve(e)}))},Di={nu:Ni,pure:Li},ji=function(e,t){return t((function(t){var n=[],r=0,i=function(i){return function(o){n[i]=o,r++,r>=e.length&&t(n)}};0===e.length?t([]):Q(e,(function(e,t){e.get(i(t))}))}))},Fi=function(e){return ji(e,Di.nu)},Bi=function(e){var t=function(t){return e===t},n=function(t){return Bi(e)},r=function(t){return Bi(e)},i=function(t){return Bi(t(e))},o=function(t){return Bi(e)},a=function(t){t(e)},s=function(t){return t(e)},l=function(t,n){return n(e)},c=function(t){return t(e)},u=function(t){return t(e)},d=function(){return I.some(e)};return{is:t,isValue:C,isError:S,getOr:g(e),getOrThunk:g(e),getOrDie:g(e),or:n,orThunk:r,fold:l,map:i,mapError:o,each:a,bind:s,exists:c,forall:u,toOptional:d}},qi=function(e){var t=function(e){return e()},n=function(){return _(String(e))()},r=function(e){return e},i=function(e){return e()},o=function(t){return qi(e)},a=function(t){return qi(t(e))},s=function(t){return qi(e)},l=function(t,n){return t(e)};return{is:S,isValue:S,isError:C,getOr:v,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:l,map:o,mapError:a,each:h,bind:s,exists:S,forall:C,toOptional:I.none}},zi=function(e,t){return e.fold((function(){return qi(t)}),Bi)},Ui={value:Bi,error:qi,fromOption:zi},Gi=function(e){if(!D(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Q(e,(function(r,i){var o=be(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!D(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var l=function(e){var r=be(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=ce(t,(function(e){return X(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:l,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},Vi={generate:Gi},Wi=(Vi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(e){return e.fold(v,v)});function Hi(e,t,n,r,i){return e(n,r)?I.some(n):U(i)&&i(n)?I.none():t(n,r,i)}var $i,Ki,Xi,Yi,Ji,Qi,Zi,eo,to,no,ro,io,oo,ao,so,lo,co,uo,fo,ho=function(e,t,n){var r=e.dom,i=U(n)?n:S;while(r.parentNode){r=r.parentNode;var o=vn.fromDom(r);if(t(o))return I.some(o);if(i(o))break}return I.none()},po=function(e,t,n){var r=function(e,t){return t(e)};return Hi(r,ho,e,t,n)},mo=function(e,t){var n=e.dom;return n.parentNode?go(vn.fromDom(n.parentNode),(function(n){return!An(e,n)&&t(n)})):I.none()},go=function(e,t){var n=function(e){return t(vn.fromDom(e))},r=oe(e.dom.childNodes,n);return r.map(vn.fromDom)},vo=function(e,t,n){return ho(e,(function(e){return kn(e,t)}),n)},yo=function(e,t){return In(t,e)},bo=function(e,t,n){var r=function(e,t){return kn(e,t)};return Hi(r,vo,e,t,n)},_o=function(){var e=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.apply(t,n)}},t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=function(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(t,e(o,this),e(a,this))},r=n.immediateFn||"function"===typeof setImmediate&&setImmediate||function(e){return setTimeout(e,1)};function i(e){var t=this;null!==this._state?r((function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void e.reject(i)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})):this._deferreds.push(e)}function o(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if("function"===typeof n)return void c(e(n,t),e(o,this),e(a,this))}this._state=!0,this._value=t,s.call(this)}catch(r){a.call(this,r)}}function a(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,t=this._deferreds.length;e<t;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function l(e,t,n,r){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r}var c=function(e,t,n){var r=!1;try{e((function(e){r||(r=!0,t(e))}),(function(e){r||(r=!0,n(e))}))}catch(i){if(r)return;r=!0,n(i)}};return n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var r=this;return new n((function(n,o){i.call(r,new l(e,t,n,o))}))},n.all=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=Array.prototype.slice.call(1===e.length&&t(e[0])?e[0]:e);return new n((function(e,t){if(0===i.length)return e([]);for(var n=i.length,r=function(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){r(o,e)}),t)}i[o]=a,0===--n&&e(i)}catch(l){t(l)}},o=0;o<i.length;o++)r(o,i[o])}))},n.resolve=function(e){return e&&"object"===typeof e&&e.constructor===n?e:new n((function(t){t(e)}))},n.reject=function(e){return new n((function(t,n){n(e)}))},n.race=function(e){return new n((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},n},wo=window.Promise?window.Promise:_o(),xo=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=function(e){window.setTimeout(e,0)},o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];n||(n=i),n(e,t)},So=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Co=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Eo=function(e){return clearTimeout(e)},ko=function(e){return clearInterval(e)},Oo=function(e,t){var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=So((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},To={requestAnimationFrame:function(e,t){$i?$i.then(e):$i=new wo((function(e){t||(t=document.body),xo(e,t)})).then(e)},setTimeout:So,setInterval:Co,setEditorTimeout:function(e,t,n){return So((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Co((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:Oo,throttle:Oo,clearInterval:ko,clearTimeout:Eo},Io=function(e,t){void 0===t&&(t={});var n=0,r={},i=vn.fromDom(e),o=Gn(i),a=t.maxLoadTime||5e3,s=function(e){t.referrerPolicy=e},l=function(e){vr(cr(i),e)},c=function(e){var t=cr(i);yo(t,"#"+e).each(xr)},u=function(e){return Ae(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},d=function(n,i,s){var c,d=dn._addCacheSuffix(n),f=u(d);r[d]=f,f.count++;var h=function(e,t){var n=e.length;while(n--)e[n]();f.status=t,f.passed=[],f.failed=[],c&&(c.onload=null,c.onerror=null,c=null)},p=function(){return h(f.passed,2)},m=function(){return h(f.failed,3)},g=function(e,t){e()||(Date.now()-b<a?To.setTimeout(t):m())},v=function(){g((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],i=r.ownerNode;if(i&&i.id===c.id)return p(),!0}return!1}),v)};if(i&&f.passed.push(i),s&&f.failed.push(s),1!==f.status)if(2!==f.status)if(3!==f.status){f.status=1;var y=vn.fromTag("link",o.dom);li(y,{rel:"stylesheet",type:"text/css",id:f.id});var b=Date.now();t.contentCssCors&&si(y,"crossOrigin","anonymous"),t.referrerPolicy&&si(y,"referrerpolicy",t.referrerPolicy),c=y.dom,c.onload=v,c.onerror=m,l(y),si(y,"href",d)}else m();else p()},f=function(e){return Di.nu((function(t){d(e,p(t,g(Ui.value(e))),p(t,g(Ui.error(e))))}))},h=function(e,t,n){Fi(J(e,f)).get((function(e){var r=ee(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(Wi)):t(r.pass.map(Wi))}))},m=function(e){var t=dn._addCacheSuffix(e);Ae(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],c(e.id))}))},v=function(e){Q(e,(function(e){m(e)}))};return{load:d,loadAll:h,unload:m,unloadAll:v,_setReferrerPolicy:s}},Ao=function(){var e=new WeakMap,t=function(t,n){var r=lr(t),i=r.dom;return I.from(e.get(i)).getOrThunk((function(){var t=Io(i,n);return e.set(i,t),t}))};return{forElement:t}},Ro=Ao(),Po=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n],i)return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n],i)return i}}},e.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e){if(i=e[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}if(o=e.parentNode,o&&o!==this.rootNode)return o}},e}(),Mo=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],No=["td","th"],Lo=["thead","tbody","tfoot"],Do=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],jo=["h1","h2","h3","h4","h5","h6"],Fo=["li","dd","dt"],Bo=["ul","ol","dl"],qo=["pre","script","textarea","style"],zo=function(e){var t;return function(n){return t=t||fe(e,C),t.hasOwnProperty(Nn(n))}},Uo=zo(jo),Go=zo(Mo),Vo=function(e){return"table"===Nn(e)},Wo=function(e){return Fn(e)&&!Go(e)},Ho=function(e){return Fn(e)&&"br"===Nn(e)},$o=zo(Do),Ko=zo(Bo),Xo=zo(Fo),Yo=zo(Lo),Jo=zo(No),Qo=zo(qo),Zo=function(e,t,n){return vo(e,t,n).isSome()},ea="\ufeff",ta=" ",na=function(e){return e===ea},ra=function(e){return e.replace(/\uFEFF/g,"")},ia=ea,oa=na,aa=ra,sa=Br,la=Xr,ca=function(e){return la(e)&&(e=e.parentNode),sa(e)&&e.hasAttribute("data-mce-caret")},ua=function(e){return la(e)&&oa(e.data)},da=function(e){return ca(e)||ua(e)},fa=function(e){return e.firstChild!==e.lastChild||!Zr(e.firstChild)},ha=function(e,t){var n,r=e.ownerDocument,i=r.createTextNode(ia),o=e.parentNode;if(t){if(n=e.previousSibling,la(n)){if(da(n))return n;if(ba(n))return n.splitText(n.data.length-1)}o.insertBefore(i,e)}else{if(n=e.nextSibling,la(n)){if(da(n))return n;if(ya(n))return n.splitText(1),n}e.nextSibling?o.insertBefore(i,e.nextSibling):o.appendChild(i)}return i},pa=function(e){var t=e.container();return!!Xr(t)&&(t.data.charAt(e.offset())===ia||e.isAtStart()&&ua(t.previousSibling))},ma=function(e){var t=e.container();return!!Xr(t)&&(t.data.charAt(e.offset()-1)===ia||e.isAtEnd()&&ua(t.nextSibling))},ga=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},va=function(e,t,n){var r=t.ownerDocument,i=r.createElement(e);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(ga());var o=t.parentNode;return n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i},ya=function(e){return la(e)&&e.data[0]===ia},ba=function(e){return la(e)&&e.data[e.data.length-1]===ia},_a=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Vr(n)&&n.parentNode.removeChild(n)},wa=function(e){return e&&e.hasAttribute("data-mce-caret")?(_a(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},xa=function(e){return ca(e.startContainer)},Sa=ti,Ca=ni,Ea=Zr,ka=Xr,Oa=qr(["script","style","textarea"]),Ta=qr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ia=qr(["table"]),Aa=da,Ra=function(e){return!Aa(e)&&(ka(e)?!Oa(e.parentNode):Ta(e)||Ea(e)||Ia(e)||Ma(e))},Pa=function(e){return Br(e)&&"true"===e.getAttribute("unselectable")},Ma=function(e){return!1===Pa(e)&&Ca(e)},Na=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Ma(e))return!1;if(Sa(e))return!0}return!0},La=function(e){return!!Ma(e)&&!0!==re(ve(e.getElementsByTagName("*")),(function(e,t){return e||Sa(t)}),!1)},Da=function(e){return Ta(e)||La(e)},ja=function(e,t){return Ra(e)&&Na(e,t)},Fa=/^[ \t\r\n]*$/,Ba=function(e){return Fa.test(e)},qa=function(e,t){var n=vn.fromDom(t),r=vn.fromDom(e);return Zo(r,"pre,code",y(An,n))},za=function(e,t){return Xr(e)&&Ba(e.data)&&!1===qa(e,t)},Ua=function(e){return Br(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Ga=function(e,t){return Ra(e)&&!1===za(e,t)||Ua(e)||Va(e)},Va=Ur("data-mce-bookmark"),Wa=Ur("data-mce-bogus"),Ha=Gr("data-mce-bogus","all"),$a=function(e,t){var n,r=0;if(Ga(e,e))return!1;if(n=e.firstChild,!n)return!0;var i=new Po(n,e);do{if(t){if(Ha(n)){n=i.next(!0);continue}if(Wa(n)){n=i.next();continue}}if(Zr(n))r++,n=i.next();else{if(Ga(n,e))return!1;n=i.next()}}while(n);return r<=1},Ka=function(e,t){return void 0===t&&(t=!0),$a(e.dom,t)},Xa=function(e){return"span"===e.nodeName.toLowerCase()},Ya=function(e,t){return z(e)&&(Ga(e,t)||Wo(vn.fromDom(e)))},Ja=function(e,t){var n=new Po(e,t).prev(!1),r=new Po(e,t).next(!1),i=B(n)||Ya(n,t),o=B(r)||Ya(r,t);return i&&o},Qa=function(e){return Xa(e)&&"bookmark"===e.getAttribute("data-mce-type")},Za=function(e,t){return Xr(e)&&e.data.length>0&&Ja(e,t)},es=function(e){return!!Br(e)&&e.childNodes.length>0},ts=function(e){return Qr(e)||Jr(e)},ns=function(e,t,n){var r=n||t;if(Br(t)&&Qa(t))return t;for(var i=t.childNodes,o=i.length-1;o>=0;o--)ns(e,i[o],r);if(Br(t)){var a=t.childNodes;1===a.length&&Qa(a[0])&&t.parentNode.insertBefore(a[0],t)}return ts(t)||Ga(t,r)||es(t)||Za(t,r)||e.remove(t),t},rs=dn.makeMap,is=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,os=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,as=/[<>&\"\']/g,ss=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ls={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},cs={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},us={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},ds=function(e){var t=vn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},fs=function(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),cs[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}},hs=fs("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),ps=function(e,t){return e.replace(t?is:os,(function(e){return cs[e]||e}))},ms=function(e){return(""+e).replace(as,(function(e){return cs[e]||e}))},gs=function(e,t){return e.replace(t?is:os,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":cs[e]||"&#"+e.charCodeAt(0)+";"}))},vs=function(e,t,n){return n=n||hs,e.replace(t?is:os,(function(e){return cs[e]||n[e]||e}))},ys=function(e,t){var n=fs(t)||hs,r=function(e,t){return e.replace(t?is:os,(function(e){return void 0!==cs[e]?cs[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},i=function(e,t){return vs(e,t,n)},o=rs(e.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?t?i:vs:o.numeric?gs:ps},bs=function(e){return e.replace(ss,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):ls[t]||String.fromCharCode(t)):us[e]||hs[e]||ds(e)}))},_s={encodeRaw:ps,encodeAllRaw:ms,encodeNumeric:gs,encodeNamed:vs,getEncodeFunc:ys,decode:bs},ws={},xs={},Ss=dn.makeMap,Cs=dn.each,Es=dn.extend,ks=dn.explode,Os=dn.inArray,Ts=function(e,t){return e=dn.trim(e),e?e.split(t||" "):[]},Is=function(e){var t,n,r,i,o,a,s={},l=function(e,n,r){var i,o,a,l=function(e,t){var n,r,i={};for(n=0,r=e.length;n<r;n++)i[e[n]]=t||{};return i};r=r||[],n=n||"","string"===typeof r&&(r=Ts(r));var c=Ts(e);i=c.length;while(i--)o=Ts([t,n].join(" ")),a={attributes:l(o),attributesOrder:o,children:l(r,xs)},s[c[i]]=a},c=function(e,t){var n,r,i,o,a=Ts(e);n=a.length;var l=Ts(t);while(n--)for(r=s[a[n]],i=0,o=l.length;i<o;i++)r.attributes[l[i]]={},r.attributesOrder.push(l[i])};return ws[e]?ws[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Cs(Ts(a),(function(e){l(e,"",r)})),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),Cs(Ts(o),(function(e){l(e,"",i)}))),i=i||[n,r].join(" "),l("html","manifest","head body"),l("head","","base command link meta noscript script style title"),l("title hr noscript br"),l("base","href target"),l("link","href rel media hreflang type sizes hreflang"),l("meta","name http-equiv content charset"),l("style","media type scoped"),l("script","src async defer type charset"),l("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),l("address dt dd div caption","",i),l("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),l("blockquote","cite",i),l("ol","reversed start type","li"),l("ul","","li"),l("li","value",i),l("dl","","dt dd"),l("a","href target rel media hreflang type",r),l("q","cite",r),l("ins del","cite datetime",i),l("img","src sizes srcset alt usemap ismap width height"),l("iframe","src name width height",i),l("embed","src type width height"),l("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),l("param","name value"),l("map","name",[i,"area"].join(" ")),l("area","alt coords shape href target rel media hreflang type"),l("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),l("colgroup","span","col"),l("col","span"),l("tbody thead tfoot","","tr"),l("tr","","td th"),l("td","colspan rowspan headers",i),l("th","colspan rowspan headers scope abbr",i),l("form","accept-charset action autocomplete enctype method name novalidate target",i),l("fieldset","disabled form name",[i,"legend"].join(" ")),l("label","form for",r),l("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),l("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?i:r),l("select","disabled form multiple name required size","option optgroup"),l("optgroup","disabled label","option"),l("option","disabled label selected value"),l("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),l("menu","type label",[i,"li"].join(" ")),l("noscript","",i),"html4"!==e&&(l("wbr"),l("ruby","",[r,"rt rp"].join(" ")),l("figcaption","",i),l("mark rt rp summary bdi","",r),l("canvas","width height",i),l("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),l("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),l("picture","","img source"),l("source","src srcset type media sizes"),l("track","kind src srclang label default"),l("datalist","",[r,"option"].join(" ")),l("article section nav aside main header footer","",i),l("hgroup","","h1 h2 h3 h4 h5 h6"),l("figure","",[i,"figcaption"].join(" ")),l("time","datetime",r),l("dialog","open",i),l("command","type label icon disabled checked radiogroup command"),l("output","for form name",r),l("progress","value max",r),l("meter","value min max low high optimum",r),l("details","open",[i,"summary"].join(" ")),l("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(c("script","language xml:space"),c("style","xml:space"),c("object","declare classid code codebase codetype archive standby align border hspace vspace"),c("embed","align name hspace vspace"),c("param","valuetype type"),c("a","charset name rev shape coords"),c("br","clear"),c("applet","codebase archive code object alt name width height align hspace vspace"),c("img","name longdesc align border hspace vspace"),c("iframe","longdesc frameborder marginwidth marginheight scrolling align"),c("font basefont","size color face"),c("input","usemap align"),c("select"),c("textarea"),c("h1 h2 h3 h4 h5 h6 div p legend caption","align"),c("ul","type compact"),c("li","type"),c("ol dl menu dir","compact"),c("pre","width xml:space"),c("hr","align noshade size width"),c("isindex","prompt"),c("table","summary width frame rules cellspacing cellpadding align bgcolor"),c("col","width align char charoff valign"),c("colgroup","width align char charoff valign"),c("thead","align char charoff valign"),c("tr","align char charoff valign bgcolor"),c("th","axis align char charoff valign nowrap bgcolor width height"),c("form","accept"),c("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),c("tfoot","align char charoff valign"),c("tbody","align char charoff valign"),c("area","nohref"),c("body","background bgcolor text link vlink alink")),"html4"!==e&&(c("input button select textarea","autofocus"),c("input textarea","placeholder"),c("a","download"),c("link script img","crossorigin"),c("img","loading"),c("iframe","sandbox seamless allowfullscreen loading")),Cs(Ts("a form meter progress dfn"),(function(e){s[e]&&delete s[e].children[e]})),delete s.caption.children.table,delete s.script,ws[e]=s,s)},As=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Cs(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Ss(e,/[, ]/):ks(e,/[, ]/)}))),n},Rs=function(e){var t={},n={},r=[],i={},o={},a=function(t,n,r){var i=e[t];return i?i=Ss(i,/[, ]/,Ss(i.toUpperCase(),/[, ]/)):(i=ws[t],i||(i=Ss(n," ",Ss(n.toUpperCase()," ")),i=Es(i,r),ws[t]=i)),i};e=e||{};var s=Is(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var l=As(e.valid_styles),c=As(e.invalid_styles,"map"),u=As(e.valid_classes,"map"),d=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),f=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),h=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),p=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),m="td th iframe video audio object script code",g=a("non_empty_elements",m+" pre",h),v=a("move_caret_before_on_enter_elements",m+" table",h),y=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),b=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",y),_=a("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");Cs((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){o[e]=new RegExp("</"+e+"[^>]*>","gi")}));var w=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},x=function(e){var n,i,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b,_,x=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,S=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,C=/[*?+]/;if(e){var E=Ts(e,",");for(t["@"]&&(y=t["@"].attributes,b=t["@"].attributesOrder),n=0,i=E.length;n<i;n++)if(s=x.exec(E[n]),s){if(g=s[1],d=s[2],v=s[3],u=s[5],p={},m=[],l={attributes:p,attributesOrder:m},"#"===g&&(l.paddEmpty=!0),"-"===g&&(l.removeEmpty=!0),"!"===s[4]&&(l.removeEmptyAttrs=!0),y&&(we(y,(function(e,t){p[t]=e})),m.push.apply(m,b)),u)for(u=Ts(u,"|"),o=0,a=u.length;o<a;o++)if(s=S.exec(u[o]),s){if(c={},h=s[1],f=s[2].replace(/[\\:]:/g,":"),g=s[3],_=s[4],"!"===h&&(l.attributesRequired=l.attributesRequired||[],l.attributesRequired.push(f),c.required=!0),"-"===h){delete p[f],m.splice(Os(m,f),1);continue}g&&("="===g&&(l.attributesDefault=l.attributesDefault||[],l.attributesDefault.push({name:f,value:_}),c.defaultValue=_),":"===g&&(l.attributesForced=l.attributesForced||[],l.attributesForced.push({name:f,value:_}),c.forcedValue=_),"<"===g&&(c.validValues=Ss(_,"?"))),C.test(f)?(l.attributePatterns=l.attributePatterns||[],c.pattern=w(f),l.attributePatterns.push(c)):(p[f]||m.push(f),p[f]=c)}y||"@"!==d||(y=p,b=m),v&&(l.outputName=d,t[v]=l),C.test(d)?(l.pattern=w(d),r.push(l)):t[d]=l}}},S=function(e){t={},r=[],x(e),Cs(s,(function(e,t){n[t]=e.children}))},C=function(e){var r=/^(~)?(.+)$/;e&&(ws.text_block_elements=ws.block_elements=null,Cs(Ts(e,","),(function(e){var o=r.exec(e),a="~"===o[1],s=a?"span":"div",l=o[2];if(n[l]=n[s],i[l]=s,a||(b[l.toUpperCase()]={},b[l]={}),!t[l]){var c=t[s];c=Es({},c),delete c.removeEmptyAttrs,delete c.removeEmpty,t[l]=c}Cs(n,(function(e,t){e[s]&&(n[t]=e=Es({},n[t]),e[l]=e[s])}))})))},E=function(t){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;ws[e.schema]=null,t&&Cs(Ts(t,","),(function(e){var t,i,o=r.exec(e);o&&(i=o[1],t=i?n[o[2]]:n[o[2]]={"#comment":{}},t=n[o[2]],Cs(Ts(o[3],"|"),(function(e){"-"===i?delete t[e]:t[e]={}})))}))},k=function(e){var n,i=t[e];if(i)return i;n=r.length;while(n--)if(i=r[n],i.pattern.test(e))return i};e.valid_elements?S(e.valid_elements):(Cs(s,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Cs(Ts("strong/b em/i"),(function(e){var n=Ts(e,"/");t[n[1]].outputName=n[0]})),Cs(Ts("ol ul sub sup blockquote span font a table tbody strong em b i"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Cs(Ts("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Cs(Ts("span"),(function(e){t[e].removeEmptyAttrs=!0}))),C(e.custom_elements),E(e.valid_children),x(e.extended_valid_elements),E("+ol[ul|ol],+ul[ul|ol]"),Cs({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,n){t[n]&&(t[n].parentsRequired=Ts(e))})),e.invalid_elements&&Cs(ks(e.invalid_elements),(function(e){t[e]&&delete t[e]})),k("span")||x("span[!data-mce-type|*]");var O=function(){return l},T=function(){return c},I=function(){return u},A=function(){return p},R=function(){return b},P=function(){return y},M=function(){return _},N=function(){return h},L=function(){return f},D=function(){return g},j=function(){return v},F=function(){return d},B=function(){return o},q=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},z=function(e,t){var n,r,i=k(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},U=function(){return i};return{children:n,elements:t,getValidStyles:O,getValidClasses:I,getBlockElements:R,getInvalidStyles:T,getShortEndedElements:N,getTextBlockElements:P,getTextInlineElements:M,getBoolAttrs:A,getElementRule:k,getSelfClosingElements:L,getNonEmptyElements:D,getMoveCaretBeforeOnEnterElements:j,getWhiteSpaceElements:F,getSpecialElements:B,isValidChild:q,isValid:z,getCustomElements:U,addValidElements:x,setValidElements:S,addCustomElements:C,addValidChildren:E}},Ps=function(e,t,n,r){var i=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+i(t)+i(n)+i(r)},Ms=function(e,t){var n,r,i,o=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,l=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,u={},d=ea;e=e||{},t&&(r=t.getValidStyles(),i=t.getInvalidStyles());var f=("\\\" \\' \\; \\: ; : "+d).split(" ");for(n=0;n<f.length;n++)u[f[n]]=d+n,u[d+n]=f[n];return{toHex:function(e){return e.replace(a,Ps)},parse:function(t){var r,i,f,h,p={},m=e.url_converter,g=e.url_converter_scope||o,v=function(e,t,r){var i=p[e+"-top"+t];if(i){var o=p[e+"-right"+t];if(o){var a=p[e+"-bottom"+t];if(a){var s=p[e+"-left"+t];if(s){var l=[i,o,a,s];n=l.length-1;while(n--)if(l[n]!==l[n+1])break;n>-1&&r||(p[e+t]=-1===n?l[0]:l.join(" "),delete p[e+"-top"+t],delete p[e+"-right"+t],delete p[e+"-bottom"+t],delete p[e+"-left"+t])}}}}},y=function(e){var t,n=p[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return p[e]=n[0],!0}},b=function(e,t,n,r){y(t)&&y(n)&&y(r)&&(p[e]=p[t]+" "+p[n]+" "+p[r],delete p[t],delete p[n],delete p[r])},_=function(e){return h=!0,u[e]},w=function(e,t){return h&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return u[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},x=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},S=function(e){return e.replace(/\\[0-9a-f]+/gi,x)},C=function(t,n,r,i,o,a){if(o=o||a,o)return o=w(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=w(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,_).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,_)}));while(r=l.exec(t))if(l.lastIndex=r.index+r[0].length,i=r[1].replace(c,"").toLowerCase(),f=r[2].replace(c,""),i&&f){if(i=S(i),f=S(f),-1!==i.indexOf(d)||-1!==i.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===i&&"700"===f?f="bold":"color"!==i&&"background-color"!==i||(f=f.toLowerCase()),f=f.replace(a,Ps),f=f.replace(s,C),p[i]=h?w(f,!0):f}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),b("border","border-width","border-style","border-color"),"medium none"===p.border&&delete p.border,"none"===p["border-image"]&&delete p["border-image"]}return p},serialize:function(e,t){var n="",o=function(t){var i,o=r[t];if(o)for(var a=0,s=o.length;a<s;a++)t=o[a],i=e[t],i&&(n+=(n.length>0?" ":"")+t+": "+i+";")},a=function(e,t){var n=i["*"];return(!n||!n[e])&&(n=i[t],!(n&&n[e]))};return t&&r?(o("*"),o(t)):we(e,(function(e,r){!e||i&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},Ns="mce-data-",Ls=/^(?:mouse|contextmenu)|click/,Ds={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1,mozPressure:1},js=function(e){return e.isDefaultPrevented===Bs||e.isDefaultPrevented===Fs},Fs=S,Bs=C,qs=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},zs=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Us=function(e){return Ls.test(e.type)},Gs=function(e,t){var n,r=t||{};for(n in e)Ds[n]||(r[n]=e[n]);if(r.target||(r.target=r.srcElement||document),r.composedPath&&(r.composedPath=function(){return e.composedPath()}),e&&Us(e)&&void 0===e.pageX&&void 0!==e.clientX){var i=r.target.ownerDocument||document,o=i.documentElement,a=i.body;r.pageX=e.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),r.pageY=e.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)}return r.preventDefault=function(){r.defaultPrevented=!0,r.isDefaultPrevented=Bs,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},r.stopPropagation=function(){r.cancelBubble=!0,r.isPropagationStopped=Bs,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=Bs,r.stopPropagation()},!1===js(r)&&(r.isDefaultPrevented=!0===r.defaultPrevented?Bs:Fs,r.isPropagationStopped=!0===r.cancelBubble?Bs:Fs,r.isImmediatePropagationStopped=Fs),"undefined"===typeof r.metaKey&&(r.metaKey=!1),r},Vs=function(e,t,n){var r=e.document,i={type:"ready"};if(n.domLoaded)t(i);else{var o=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){zs(e,"DOMContentLoaded",a),zs(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(i)),e=null};o()?a():qs(e,"DOMContentLoaded",a),n.domLoaded||qs(e,"load",a)}},Ws=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Ns+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var i,o,a,s,l,c,u,d=this,f=window,h=function(e){d.executeHandlers(Gs(e||f.event),i)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[d.expando]?i=e[d.expando]:(i=d.count++,e[d.expando]=i,d.events[i]={}),r=r||e;var p=t.split(" ");a=p.length;while(a--)s=p[a],c=h,l=u=!1,"DOMContentLoaded"===s&&(s="ready"),d.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,Gs({type:s})):(d.hasMouseEnterLeave||(l=d.mouseEnterLeave[s],l&&(c=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=Gs(e||f.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))})),d.hasFocusIn||"focusin"!==s&&"focusout"!==s||(u=!0,l="focusin"===s?"focus":"blur",c=function(e){e=Gs(e||f.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),o=d.events[i][s],o?"ready"===s&&d.domLoaded?n(Gs({type:s})):o.push({func:n,scope:r}):(d.events[i][s]=o=[{func:n,scope:r}],o.fakeName=l,o.capture=u,o.nativeHandler=c,"ready"===s?Vs(e,c,d):qs(e,l||s,c,u)));return e=o=null,n}},e.prototype.unbind=function(e,t,n){var r,i,o,a,s;if(!e||3===e.nodeType||8===e.nodeType)return this;var l=e[this.expando];if(l){if(s=this.events[l],t){var c=t.split(" ");i=c.length;while(i--)if(a=c[i],r=s[a],r){if(n){o=r.length;while(o--)if(r[o].func===n){var u=r.nativeHandler,d=r.fakeName,f=r.capture;r=r.slice(0,o).concat(r.slice(o+1)),r.nativeHandler=u,r.fakeName=d,r.capture=f,s[a]=r}}n&&0!==r.length||(delete s[a],zs(e,r.fakeName||a,r.nativeHandler,r.capture))}}else we(s,(function(t,n){zs(e,t.fakeName||n,t.nativeHandler,t.capture)})),s={};for(a in s)if(Re(s,a))return this;delete this.events[l];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var i=Gs(null,n);i.type=t,i.target=e;do{r=e[this.expando],r&&this.executeHandlers(i,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!i.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),Hs="sizzle"+-new Date,$s=window.document,Ks=0,Xs=0,Ys=Al(),Js=Al(),Qs=Al(),Zs=function(e,t){return e===t&&(ro=!0),0},el="undefined",tl=1<<31,nl={}.hasOwnProperty,rl=[],il=rl.pop,ol=rl.push,al=rl.push,sl=rl.slice,ll=rl.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},cl="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ul="[\\x20\\t\\r\\n\\f]",dl="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",fl="\\["+ul+"*("+dl+")(?:"+ul+"*([*^$|!~]?=)"+ul+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+dl+"))|)"+ul+"*\\]",hl=":("+dl+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+fl+")*)|.*)\\)|)",pl=new RegExp("^"+ul+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ul+"+$","g"),ml=new RegExp("^"+ul+"*,"+ul+"*"),gl=new RegExp("^"+ul+"*([>+~]|"+ul+")"+ul+"*"),vl=new RegExp("="+ul+"*([^\\]'\"]*?)"+ul+"*\\]","g"),yl=new RegExp(hl),bl=new RegExp("^"+dl+"$"),_l={ID:new RegExp("^#("+dl+")"),CLASS:new RegExp("^\\.("+dl+")"),TAG:new RegExp("^("+dl+"|[*])"),ATTR:new RegExp("^"+fl),PSEUDO:new RegExp("^"+hl),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ul+"*(even|odd|(([+-]|)(\\d*)n|)"+ul+"*(?:([+-]|)"+ul+"*(\\d+)|))"+ul+"*\\)|)","i"),bool:new RegExp("^(?:"+cl+")$","i"),needsContext:new RegExp("^"+ul+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ul+"*((?:-\\d)?\\d*)"+ul+"*\\)|)(?=[^-]|$)","i")},wl=/^(?:input|select|textarea|button)$/i,xl=/^h\d$/i,Sl=/^[^{]+\{\s*\[native \w/,Cl=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,El=/[+~]/,kl=/'|\\/g,Ol=new RegExp("\\\\([\\da-f]{1,6}"+ul+"?|("+ul+")|.)","ig"),Tl=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{al.apply(rl=sl.call($s.childNodes),$s.childNodes),rl[$s.childNodes.length].nodeType}catch(gq){al={apply:rl.length?function(e,t){ol.apply(e,sl.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var Il=function(e,t,n,r){var i,o,a,s,l,c,u,d,f,h;if((t?t.ownerDocument||t:$s)!==oo&&io(t),t=t||oo,n=n||[],!e||"string"!==typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(so&&!r){if(i=Cl.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&fo(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return al.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&Ki.getElementsByClassName)return al.apply(n,t.getElementsByClassName(a)),n}if(Ki.qsa&&(!lo||!lo.test(e))){if(d=u=Hs,f=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){c=Qi(e),(u=t.getAttribute("id"))?d=u.replace(kl,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",l=c.length;while(l--)c[l]=d+Fl(c[l]);f=El.test(e)&&Dl(t.parentNode)||t,h=c.join(",")}if(h)try{return al.apply(n,f.querySelectorAll(h)),n}catch(p){}finally{u||t.removeAttribute("id")}}}return eo(e.replace(pl,"$1"),t,n,r)};function Al(){var e=[];function t(n,r){return e.push(n+" ")>Xi.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Rl(e){return e[Hs]=!0,e}function Pl(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||tl)-(~e.sourceIndex||tl);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function Ml(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function Nl(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function Ll(e){return Rl((function(t){return t=+t,Rl((function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function Dl(e){return e&&typeof e.getElementsByTagName!==el&&e}function jl(){}function Fl(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Bl(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=Xs++;return t.first?function(t,n,o){while(t=t[r])if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,c=[Ks,o];if(a){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||i){if(l=t[Hs]||(t[Hs]={}),(s=l[r])&&s[0]===Ks&&s[1]===o)return c[2]=s[2];if(l[r]=c,c[2]=e(t,n,a))return!0}}}function ql(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function zl(e,t,n){for(var r=0,i=t.length;r<i;r++)Il(e,t[r],n);return n}function Ul(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function Gl(e,t,n,r,i,o){return r&&!r[Hs]&&(r=Gl(r)),i&&!i[Hs]&&(i=Gl(i,o)),Rl((function(o,a,s,l){var c,u,d,f=[],h=[],p=a.length,m=o||zl(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:Ul(m,f,e,s,l),v=n?i||(o?e:p||r)?[]:a:g;if(n&&n(g,v,s,l),r){c=Ul(v,h),r(c,[],s,l),u=c.length;while(u--)(d=c[u])&&(v[h[u]]=!(g[h[u]]=d))}if(o){if(i||e){if(i){c=[],u=v.length;while(u--)(d=v[u])&&c.push(g[u]=d);i(null,v=[],c,l)}u=v.length;while(u--)(d=v[u])&&(c=i?ll.call(o,d):f[u])>-1&&(o[c]=!(a[c]=d))}}else v=Ul(v===a?v.splice(p,v.length):v),i?i(null,a,v,l):al.apply(a,v)}))}function Vl(e){for(var t,n,r,i=e.length,o=Xi.relative[e[0].type],a=o||Xi.relative[" "],s=o?1:0,l=Bl((function(e){return e===t}),a,!0),c=Bl((function(e){return ll.call(t,e)>-1}),a,!0),u=[function(e,n,r){var i=!o&&(r||n!==to)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];s<i;s++)if(n=Xi.relative[e[s].type])u=[Bl(ql(u),n)];else{if(n=Xi.filter[e[s].type].apply(null,e[s].matches),n[Hs]){for(r=++s;r<i;r++)if(Xi.relative[e[r].type])break;return Gl(s>1&&ql(u),s>1&&Fl(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(pl,"$1"),n,s<r&&Vl(e.slice(s,r)),r<i&&Vl(e=e.slice(r)),r<i&&Fl(e))}u.push(n)}return ql(u)}function Wl(e,t){var n=t.length>0,r=e.length>0,i=function(i,o,a,s,l){var c,u,d,f=0,h="0",p=i&&[],m=[],g=to,v=i||r&&Xi.find.TAG("*",l),y=Ks+=null==g?1:Math.random()||.1,b=v.length;for(l&&(to=o!==oo&&o);h!==b&&null!=(c=v[h]);h++){if(r&&c){u=0;while(d=e[u++])if(d(c,o,a)){s.push(c);break}l&&(Ks=y)}n&&((c=!d&&c)&&f--,i&&p.push(c))}if(f+=h,n&&h!==f){u=0;while(d=t[u++])d(p,m,o,a);if(i){if(f>0)while(h--)p[h]||m[h]||(m[h]=il.call(s));m=Ul(m)}al.apply(s,m),l&&!i&&m.length>0&&f+t.length>1&&Il.uniqueSort(s)}return l&&(Ks=y,to=g),p};return n?Rl(i):i}Ki=Il.support={},Ji=Il.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},io=Il.setDocument=function(e){var t,n=e?e.ownerDocument||e:$s,r=n.defaultView;function i(e){try{return e.top}catch(t){}return null}return n!==oo&&9===n.nodeType&&n.documentElement?(oo=n,ao=n.documentElement,so=!Ji(n),r&&r!==i(r)&&(r.addEventListener?r.addEventListener("unload",(function(){io()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){io()}))),Ki.attributes=!0,Ki.getElementsByTagName=!0,Ki.getElementsByClassName=Sl.test(n.getElementsByClassName),Ki.getById=!0,Xi.find.ID=function(e,t){if(typeof t.getElementById!==el&&so){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},Xi.filter.ID=function(e){var t=e.replace(Ol,Tl);return function(e){return e.getAttribute("id")===t}},Xi.find.TAG=Ki.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==el)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},Xi.find.CLASS=Ki.getElementsByClassName&&function(e,t){if(so)return t.getElementsByClassName(e)},co=[],lo=[],Ki.disconnectedMatch=!0,lo=lo.length&&new RegExp(lo.join("|")),co=co.length&&new RegExp(co.join("|")),t=Sl.test(ao.compareDocumentPosition),fo=t||Sl.test(ao.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},Zs=t?function(e,t){if(e===t)return ro=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!Ki.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===$s&&fo($s,e)?-1:t===n||t.ownerDocument===$s&&fo($s,t)?1:no?ll.call(no,e)-ll.call(no,t):0:4&r?-1:1)}:function(e,t){if(e===t)return ro=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:no?ll.call(no,e)-ll.call(no,t):0;if(o===a)return Pl(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?Pl(s[i],l[i]):s[i]===$s?-1:l[i]===$s?1:0},n):oo},Il.matches=function(e,t){return Il(e,null,null,t)},Il.matchesSelector=function(e,t){if((e.ownerDocument||e)!==oo&&io(e),t=t.replace(vl,"='$1']"),Ki.matchesSelector&&so&&(!co||!co.test(t))&&(!lo||!lo.test(t)))try{var n=uo.call(e,t);if(n||Ki.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(gq){}return Il(t,oo,null,[e]).length>0},Il.contains=function(e,t){return(e.ownerDocument||e)!==oo&&io(e),fo(e,t)},Il.attr=function(e,t){(e.ownerDocument||e)!==oo&&io(e);var n=Xi.attrHandle[t.toLowerCase()],r=n&&nl.call(Xi.attrHandle,t.toLowerCase())?n(e,t,!so):void 0;return void 0!==r?r:Ki.attributes||!so?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Il.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Il.uniqueSort=function(e){var t,n=[],r=0,i=0;if(ro=!Ki.detectDuplicates,no=!Ki.sortStable&&e.slice(0),e.sort(Zs),ro){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return no=null,e},Yi=Il.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Yi(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=Yi(t);return n},Xi=Il.selectors={cacheLength:50,createPseudo:Rl,match:_l,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ol,Tl),e[3]=(e[3]||e[4]||e[5]||"").replace(Ol,Tl),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Il.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Il.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return _l.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&yl.test(n)&&(t=Qi(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ol,Tl).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ys[e+" "];return t||(t=new RegExp("(^|"+ul+")"+e+"("+ul+"|$)"))&&Ys(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==el&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=Il.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,h,p,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){while(m){d=t;while(d=d[m])if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){u=g[Hs]||(g[Hs]={}),c=u[e]||[],h=c[0]===Ks&&c[1],f=c[0]===Ks&&c[2],d=h&&g.childNodes[h];while(d=++h&&d&&d[m]||(f=h=0)||p.pop())if(1===d.nodeType&&++f&&d===t){u[e]=[Ks,h,f];break}}else if(y&&(c=(t[Hs]||(t[Hs]={}))[e])&&c[0]===Ks)f=c[1];else while(d=++h&&d&&d[m]||(f=h=0)||p.pop())if((s?d.nodeName.toLowerCase()===v:1===d.nodeType)&&++f&&(y&&((d[Hs]||(d[Hs]={}))[e]=[Ks,f]),d===t))break;return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,t){var n,r=Xi.pseudos[e]||Xi.setFilters[e.toLowerCase()]||Il.error("unsupported pseudo: "+e);return r[Hs]?r(t):r.length>1?(n=[e,e,"",t],Xi.setFilters.hasOwnProperty(e.toLowerCase())?Rl((function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=ll.call(e,o[a]),e[i]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Rl((function(e){var t=[],n=[],r=Zi(e.replace(pl,"$1"));return r[Hs]?Rl((function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:Rl((function(e){return function(t){return Il(e,t).length>0}})),contains:Rl((function(e){return e=e.replace(Ol,Tl),function(t){return(t.textContent||t.innerText||Yi(t)).indexOf(e)>-1}})),lang:Rl((function(e){return bl.test(e||"")||Il.error("unsupported lang: "+e),e=e.replace(Ol,Tl).toLowerCase(),function(t){var n;do{if(n=so?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ao},focus:function(e){return e===oo.activeElement&&(!oo.hasFocus||oo.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!Xi.pseudos.empty(e)},header:function(e){return xl.test(e.nodeName)},input:function(e){return wl.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Ll((function(){return[0]})),last:Ll((function(e,t){return[t-1]})),eq:Ll((function(e,t,n){return[n<0?n+t:n]})),even:Ll((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Ll((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Ll((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:Ll((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},Xi.pseudos.nth=Xi.pseudos.eq,Q(["radio","checkbox","file","password","image"],(function(e){Xi.pseudos[e]=Ml(e)})),Q(["submit","reset"],(function(e){Xi.pseudos[e]=Nl(e)})),jl.prototype=Xi.filters=Xi.pseudos,Xi.setFilters=new jl,Qi=Il.tokenize=function(e,t){var n,r,i,o,a,s,l,c=Js[e+" "];if(c)return t?0:c.slice(0);a=e,s=[],l=Xi.preFilter;while(a){for(o in n&&!(r=ml.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=gl.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(pl," ")}),a=a.slice(n.length)),Xi.filter)Xi.filter.hasOwnProperty(o)&&(!(r=_l[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?Il.error(e):Js(e,s).slice(0)},Zi=Il.compile=function(e,t){var n,r=[],i=[],o=Qs[e+" "];if(!o){t||(t=Qi(e)),n=t.length;while(n--)o=Vl(t[n]),o[Hs]?r.push(o):i.push(o);o=Qs(e,Wl(i,r)),o.selector=e}return o},eo=Il.select=function(e,t,n,r){var i,o,a,s,l,c="function"===typeof e&&e,u=!r&&Qi(e=c.selector||e);if(n=n||[],1===u.length){if(o=u[0]=u[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&Ki.getById&&9===t.nodeType&&so&&Xi.relative[o[1].type]){if(t=(Xi.find.ID(a.matches[0].replace(Ol,Tl),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=_l.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],Xi.relative[s=a.type])break;if((l=Xi.find[s])&&(r=l(a.matches[0].replace(Ol,Tl),El.test(o[0].type)&&Dl(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&Fl(o),!e)return al.apply(n,r),n;break}}}return(c||Zi(e,u))(r,t,!so,n,El.test(e)&&Dl(t.parentNode)||t),n},Ki.sortStable=Hs.split("").sort(Zs).join("")===Hs,Ki.detectDuplicates=!!ro,io(),Ki.sortDetached=!0;var Hl=document,$l=Array.prototype.push,Kl=Array.prototype.slice,Xl=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Yl=Ws.Event,Jl=dn.makeMap("children,contents,next,prev"),Ql=function(e){return"undefined"!==typeof e},Zl=function(e){return"string"===typeof e},ec=function(e){return e&&e===e.window},tc=function(e,t){t=t||Hl;var n,r=t.createElement("div"),i=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)i.appendChild(n);return i},nc=function(e,t,n,r){var i;if(Zl(t))t=tc(t,vc(e[0]));else if(t.length&&!t.nodeType){if(t=wc.makeArray(t),r)for(i=t.length-1;i>=0;i--)nc(e,t[i],n,r);else for(i=0;i<t.length;i++)nc(e,t[i],n,r);return e}if(t.nodeType){i=e.length;while(i--)n.call(e[i],t)}return e},rc=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},ic=function(e,t,n){var r,i;return t=wc(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,i=t.cloneNode(!1),e.parentNode.insertBefore(i,e)),i.appendChild(e)})),e},oc=dn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),ac=dn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),sc={for:"htmlFor",class:"className",readonly:"readOnly"},lc={float:"cssFloat"},cc={},uc={},dc=function(e,t){return new wc.fn.init(e,t)},fc=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},hc=/^\s*|\s*$/g,pc=function(e){return null===e||void 0===e?"":(""+e).replace(hc,"")},mc=function(e,t){var n,r,i,o;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n;i++)if(o=e[i],!1===t.call(o,i,o))break;return e},gc=function(e,t){var n=[];return mc(e,(function(e,r){t(r,e)&&n.push(r)})),n},vc=function(e){return e?9===e.nodeType?e:e.ownerDocument:Hl};dc.fn=dc.prototype={constructor:dc,selector:"",context:null,length:0,init:function(e,t){var n,r,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return wc(e).attr(t);i.context=t=document}if(Zl(e)){if(i.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Xl.exec(e),!n)return wc(t).find(e);if(n[1]){r=tc(e,vc(t)).firstChild;while(r)$l.call(i,r),r=r.nextSibling}else{if(r=vc(t).getElementById(n[2]),!r)return i;if(r.id!==n[2])return i.find(e);i.length=1,i[0]=r}}else this.add(e,!1);return i},toArray:function(){return dn.toArray(this)},add:function(e,t){var n,r,i=this;if(Zl(e))return i.add(wc(e));if(!1!==t)for(n=wc.unique(i.toArray().concat(wc.makeArray(e))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else $l.apply(i,wc.makeArray(e));return i},attr:function(e,t){var n,r=this;if("object"===typeof e)mc(e,(function(e,t){r.attr(e,t)}));else{if(!Ql(t)){if(r[0]&&1===r[0].nodeType){if(n=cc[e],n&&n.get)return n.get(r[0],e);if(ac[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=cc[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=sc[e]||e,"object"===typeof e)mc(e,(function(e,t){n.prop(e,t)}));else{if(!Ql(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,i=this,o=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)mc(e,(function(e,t){i.css(e,t)}));else if(Ql(t))e=o(e),"number"!==typeof t||oc[e]||(t=t.toString()+"px"),i.each((function(){var n=this.style;if(r=uc[e],r&&r.set)r.set(this,t);else{try{this.style[lc[e]||e]=t}catch(i){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=i[0],r=uc[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(s){return}}return i},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],Yl.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(Ql(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){wc(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(Ql(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return nc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return nc(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?nc(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?nc(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return wc(e).append(this),this},prependTo:function(e){return wc(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return ic(this,e)},wrapAll:function(e){return ic(this,e,!0)},wrapInner:function(e){return this.each((function(){wc(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){wc(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),wc(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?mc(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i=rc(r,e);if(i!==t){var o=r.className;i?r.className=pc((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e}}))),n},hasClass:function(e){return rc(this[0],e)},each:function(e){return mc(this,e)},on:function(e,t){return this.each((function(){Yl.bind(this,e,t)}))},off:function(e,t){return this.each((function(){Yl.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?Yl.fire(this,e.type,e):Yl.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return wc(Kl.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)wc.find(e,this[t],r);return wc(r)},filter:function(e){return wc("function"===typeof e?gc(this.toArray(),(function(t,n){return e(n,t)})):wc.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof wc&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&wc(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),wc(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(i=t.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:$l,sort:Array.prototype.sort,splice:Array.prototype.splice},dn.extend(dc,{extend:dn.extend,makeArray:function(e){return ec(e)||e.nodeType?[e]:dn.toArray(e)},inArray:fc,isArray:dn.isArray,each:mc,trim:pc,grep:gc,find:Il,expr:Il.selectors,unique:Il.uniqueSort,text:Il.getText,contains:Il.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?wc.find.matchesSelector(t[0],e)?[t[0]]:[]:wc.find.matches(e,t),t}});var yc=function(e,t,n){var r=[],i=e[t];"string"!==typeof n&&n instanceof wc&&(n=n[0]);while(i&&9!==i.nodeType){if(void 0!==n){if(i===n)break;if("string"===typeof n&&wc(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r},bc=function(e,t,n,r){var i=[];for(r instanceof wc&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&wc(e).is(r))break}i.push(e)}return i},_c=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};mc({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return yc(e,"parentNode")},next:function(e){return _c(e,"nextSibling",1)},prev:function(e){return _c(e,"previousSibling",1)},children:function(e){return bc(e.firstChild,"nextSibling",1)},contents:function(e){return dn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){dc.fn[e]=function(n){var r=this,i=[];r.each((function(){var e=t.call(i,this,n,i);e&&(wc.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(Jl[e]||(i=wc.unique(i)),0===e.indexOf("parents")&&(i=i.reverse()));var o=wc(i);return n?o.filter(n):o}})),mc({parentsUntil:function(e,t){return yc(e,"parentNode",t)},nextUntil:function(e,t){return bc(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return bc(e,"previousSibling",1,t).slice(1)}},(function(e,t){dc.fn[e]=function(n,r){var i=this,o=[];i.each((function(){var e=t.call(o,this,n,o);e&&(wc.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(o=wc.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var a=wc(o);return r?a.filter(r):a}})),dc.fn.is=function(e){return!!e&&this.filter(e).length>0},dc.fn.init.prototype=dc.fn,dc.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i||(i=t.context),new n.fn.init(r,i)};return wc.extend(n,this),n},dc.attrHooks=cc,dc.cssHooks=uc;var wc=dc,xc=dn.each,Sc=dn.grep,Cc=Jt.ie,Ec=/^([a-z0-9],?)+$/i,kc=function(e,t,n){var r=t.keep_values,i={set:function(e,r,i){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||n(),r,i,e[0])),e.attr("data-mce-"+i,r).attr(i,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},o={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(o.href=o.src=i),o},Oc=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Tc=function(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i},Ic=function(e,t){void 0===t&&(t={});var n={},r=window,i={},o=0,a=!0,s=!0,l=Ro.forElement(vn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),c=[],u=t.schema?t.schema:Rs({}),d=Ms({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),f=t.ownEvents?new Ws:Ws.Event,p=u.getBlockElements(),m=wc.overrideDefaults((function(){return{context:e,element:Ae.getRoot()}})),g=function(e){if("string"===typeof e)return!!p[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!p[e.nodeName])}return!1},v=function(t){return t&&e&&N(t)?e.getElementById(t):t},y=function(e){return m("string"===typeof e?v(e):e)},b=function(e,t,n){var r,i,o=y(e);return o.length&&(r=Re[t],i=r&&r.get?r.get(o,t):o.attr(t)),"undefined"===typeof i&&(i=n||""),i},_=function(e){var t=v(e);return t?t.attributes:[]},w=function(e,n,r){""===r&&(r=null);var i=y(e),o=i.attr(n);if(i.length){var a=Re[n];a&&a.set?a.set(i,r,n):i.attr(n,r),o!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:i,attrName:n,attrValue:r})}},x=function(t,n){if(!Cc||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return xc(_(t),(function(e){w(r,e.nodeName,b(t,e.nodeName))})),r},S=function(){return t.root_element||e.body},C=function(e){var t=Dr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},E=function(t,n){return Ei(e.body,v(t),n)},k=function(e,n,r){var i=N(n)?y(e).css(n,r):y(e).css(n);t.update_styles&&Oc(d,i)},O=function(e,n){var r=y(e).css(n);t.update_styles&&Oc(d,r)},T=function(e,t,n){var r=y(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=Jt.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},I=function(e){var t,n;return e=v(e),t=T(e,"width"),n=T(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},A=function(e){e=v(e);var t=E(e),n=I(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},R=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Ec.test(t)){var r=t.toLowerCase().split(/,/),i=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return Il(t,o[0].ownerDocument||o[0],null,o).length>0},P=function(e,t,n,r){var i,o=[],a=v(e);r=void 0===r,n=n||("BODY"!==S().nodeName?S().parentNode:null),dn.is(t,"string")&&(i=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return R(e,i)});while(a){if(a===n||q(a.nodeType)||Jr(a)||Qr(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},M=function(e,t,n){var r=P(e,t,n,!1);return r&&r.length>0?r[0]:null},L=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return R(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},D=function(e,t){return L(e,t,"nextSibling")},j=function(e,t){return L(e,t,"previousSibling")},F=function(n,r){return Il(n,v(r)||t.root_element||e,[])},B=function(e,t,n){var r,i="string"===typeof e?v(e):e;if(!i)return!1;if(dn.isArray(i)&&(i.length||0===i.length))return r=[],xc(i,(function(e,i){e&&r.push(t.call(n,"string"===typeof e?v(e):e,i))})),r;var o=n||this;return t.call(o,i)},z=function(e,t){y(e).each((function(e,n){xc(t,(function(e,t){w(n,t,e)}))}))},U=function(e,t){var n=y(e);Cc?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){wc("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},G=function(t,n,r,i,o){return B(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return z(a,r),i&&("string"!==typeof i&&i.nodeType?a.appendChild(i):"string"===typeof i&&U(a,i)),o?a:t.appendChild(a)}))},V=function(t,n,r){return G(e.createElement(t),t,n,r,!0)},W=_s.decode,H=_s.encodeAllRaw,$=function(e,t,n){var r,i="";for(r in i+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!==typeof t[r]&&(i+=" "+r+'="'+H(t[r])+'"');return"undefined"!==typeof n?i+">"+n+"</"+e+">":i+" />"},K=function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();i.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)i.appendChild(n);return i.removeChild(r),i},X=function(e,t){var n=y(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},Y=function(e){return B(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},J=function(e){return d.parse(e)},Z=function(e,t){return d.serialize(e,t)},ee=function(t){var r,i;if(Ae!==Ic.DOM&&e===document){if(n[t])return;n[t]=!0}i=e.getElementById("mceDefaultStyles"),i||(i=e.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(e.createTextNode(t))},te=function(e){e||(e=""),Q(e.split(","),(function(e){i[e]=!0,l.load(e,h)}))},ne=function(e,t,n){y(e).toggleClass(t,n).each((function(){""===this.className&&wc(this).attr("class",null)}))},re=function(e,t){y(e).addClass(t)},ie=function(e,t){ne(e,t,!1)},oe=function(e,t){return y(e).hasClass(t)},ae=function(e){y(e).show()},se=function(e){y(e).hide()},le=function(e){return"none"===y(e).css("display")},ce=function(e){return(e||"mce_")+o++},ue=function(e){var t="string"===typeof e?v(e):e;return Br(t)?t.outerHTML:wc("<div></div>").append(wc(t).clone()).html()},de=function(e,t){y(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}X(wc(this).html(t),!0)}))},fe=function(e,t){var n=v(t);return B(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},he=function(e,t,n){return B(t,(function(t){return dn.is(t,"array")&&(e=e.cloneNode(!0)),n&&xc(Sc(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},pe=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=V(t),xc(_(e),(function(t){w(n,t.nodeName,b(e,t.nodeName))})),he(n,e,!0)),n||e},me=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ge=function(e){return d.toHex(dn.trim(e))},ve=function(e){if(Br(e)){var t="a"===e.nodeName.toLowerCase()&&!b(e,"href")&&b(e,"id");if(b(e,"name")||b(e,"data-mce-bookmark")||t)return!0}return!1},ye=function(e,t){var n,r,i=0;if(ve(e))return!1;if(e=e.firstChild,e){var o=new Po(e,e.parentNode),a=u?u.getWhiteSpaceElements():{};t=t||(u?u.getNonEmptyElements():null);do{if(n=e.nodeType,Br(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=o.next("all"===s);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){i++,e=o.next();continue}return!1}if(ve(e))return!1}if(8===n)return!1;if(3===n&&!Ba(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ba(e.nodeValue))return!1;e=o.next()}while(e)}return i<=1},be=function(){return e.createRange()},_e=function(e,t,n){var r,i,o,a=be();if(e&&t)return a.setStart(e.parentNode,Tc(e)),a.setEnd(t.parentNode,Tc(t)),r=a.extractContents(),a=be(),a.setStart(t.parentNode,Tc(t)+1),a.setEnd(e.parentNode,Tc(e)+1),i=a.extractContents(),o=e.parentNode,o.insertBefore(ns(Ae,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(ns(Ae,i),e),X(e),n||t},xe=function(n,i,o,a){if(dn.isArray(n)){var s=n.length,l=[];while(s--)l[s]=xe(n[s],i,o,a);return l}!t.collect||n!==e&&n!==r||c.push([n,i,o,a]);var u=f.bind(n,i,o,a||Ae);return u},Se=function(t,n,i){if(dn.isArray(t)){var o=t.length,a=[];while(o--)a[o]=Se(t[o],n,i);return a}if(c.length>0&&(t===e||t===r)){o=c.length;while(o--){var s=c[o];t!==s[0]||n&&n!==s[1]||i&&i!==s[2]||f.unbind(s[0],s[1],s[2])}}return f.unbind(t,n,i)},Ce=function(e,t,n){return f.fire(e,t,n)},Ee=function(e){if(e&&Br(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},ke=function(e){for(var t=S(),n=null;e&&e!==t;e=e.parentNode)if(n=Ee(e),null!==n)break;return n},Oe=function(){if(c.length>0){var e=c.length;while(e--){var t=c[e];f.unbind(t[0],t[1],t[2])}}we(i,(function(e,t){l.unload(t),delete i[t]})),Il.setDocument&&Il.setDocument()},Te=function(e,t){while(e){if(t===e)return!0;e=e.parentNode}return!1},Ie=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Ae={doc:e,settings:t,win:r,files:i,stdMode:a,boxModel:s,styleSheetLoader:l,boundEvents:c,styles:d,schema:u,events:f,isBlock:g,$:m,$$:y,root:null,clone:x,getRoot:S,getViewPort:C,getRect:A,getSize:I,getParent:M,getParents:P,get:v,getNext:D,getPrev:j,select:F,is:R,add:G,create:V,createHTML:$,createFragment:K,remove:X,setStyle:k,getStyle:T,setStyles:O,removeAllAttribs:Y,setAttrib:w,setAttribs:z,getAttrib:b,getPos:E,parseStyle:J,serializeStyle:Z,addStyle:ee,loadCSS:te,addClass:re,removeClass:ie,hasClass:oe,toggleClass:ne,show:ae,hide:se,isHidden:le,uniqueId:ce,setHTML:U,getOuterHTML:ue,setOuterHTML:de,decode:W,encode:H,insertAfter:fe,replace:he,rename:pe,findCommonAncestor:me,toHex:ge,run:B,getAttribs:_,isEmpty:ye,createRng:be,nodeIndex:Tc,split:_e,bind:xe,unbind:Se,fire:Ce,getContentEditable:Ee,getContentEditableParent:ke,destroy:Oe,isChildOf:Te,dumpRng:Ie},Re=kc(d,t,(function(){return Ae}));return Ae};Ic.DOM=Ic(document),Ic.nodeIndex=Tc;var Ac=Ic.DOM,Rc=dn.each,Pc=dn.grep,Mc=0,Nc=1,Lc=2,Dc=3,jc=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,i=Ac,o=function(){i.remove(l),r&&(r.onerror=r.onload=r=null)},a=function(){o(),t()},s=function(){o(),U(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},l=i.uniqueId();r=document.createElement("script"),r.id=l,r.type="text/javascript",r.src=dn._addCacheSuffix(e),this.settings.referrerPolicy&&i.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=s,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===Lc},e.prototype.markDone=function(e){this.states[e]=Lc},e.prototype.add=function(e,t,n,r){var i=this.states[e];this.queue.push(e),void 0===i&&(this.states[e]=Mc),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var i=this,o=[],a=function(e,t){Rc(i.scriptLoadedCallbacks[t],(function(t){U(t[e])&&t[e].call(t.scope)})),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var s=function(){var t=Pc(e);if(e.length=0,Rc(t,(function(e){i.states[e]!==Lc?i.states[e]!==Dc?i.states[e]!==Nc&&(i.states[e]=Nc,i.loading++,i.loadScript(e,(function(){i.states[e]=Lc,i.loading--,a("success",e),s()}),(function(){i.states[e]=Dc,i.loading--,o.push(e),a("failure",e),s()}))):a("failure",e):a("success",e)})),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Rc(n,(function(e){0===o.length?U(e.success)&&e.success.call(e.scope):U(e.failure)&&e.failure.call(e.scope,o)}))}};s()},e.ScriptLoader=new e,e}(),Fc=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Bc=function(e){return L(e)&&Re(e,"raw")},qc=function(e){return D(e)&&e.length>1},zc={},Uc=Fc("en"),Gc=function(){return Ae(zc,Uc.get())},Vc=function(){return xe(zc,(function(e){return Ge({},e)}))},Wc=function(e){e&&Uc.set(e)},Hc=function(){return Uc.get()},$c=function(e,t){var n=zc[e];n||(zc[e]=n={}),we(t,(function(e,t){n[t.toLowerCase()]=e}))},Kc=function(e){var t=Gc().getOr({}),n=function(e){return U(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},i=function(e){var r=n(e);return Ae(t,r.toLowerCase()).map(n).getOr(r)},o=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Bc(e))return n(e.raw);if(qc(e)){var a=e.slice(1),s=i(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Re(a,t)?n(a[t]):e}));return o(s)}return o(i(e))},Xc=function(){return Gc().bind((function(e){return Ae(e,"_dir")})).exists((function(e){return"rtl"===e}))},Yc=function(e){return Re(zc,e)},Jc={getData:Vc,setCode:Wc,getCode:Hc,add:$c,translate:Kc,isRtl:Xc,hasCode:Yc},Qc=function(){var e=[],t={},n={},r=[],i=function(e,t){var n=te(r,(function(n){return n.name===e&&n.state===t}));Q(n,(function(e){return e.callback()}))},o=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},s=function(e,n){!1!==Qc.languageLoad&&p(e,(function(){var r=Jc.getCode(),i=","+(n||"")+",";!r||n&&-1===i.indexOf(","+r+",")||jc.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},l=function(t,r,o){var a=r;return e.push(a),n[t]={instance:a,dependencies:o},i(t,"added"),a},c=function(e){delete t[e],delete n[e]},u=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},d=function(e,n){var r=t[e];Q(n,(function(e){jc.ScriptLoader.add(r+"/"+e)}))},f=function(e,t,n,r){var i=a(e);Q(i,(function(e){var n=u(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(jc))},h=function(e,r,o,a,s){if(!t[e]){var l="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==l.indexOf("/")&&-1===l.indexOf("://")&&(l=Qc.baseURL+"/"+l),t[e]=l.substring(0,l.lastIndexOf("/"));var c=function(){i(e,"loaded"),f(e,r,o,a)};n[e]?c():jc.ScriptLoader.add(l,c,a,s)}},p=function(e,i,o){void 0===o&&(o="added"),Re(n,e)&&"added"===o||Re(t,e)&&"loaded"===o?i():r.push({name:e,state:o,callback:i})};return{items:e,urls:t,lookup:n,_listeners:r,get:o,dependencies:a,requireLangPack:s,add:l,remove:c,createUrl:u,addComponents:d,load:h,waitFor:p}};Qc.languageLoad=!0,Qc.baseURL="",Qc.PluginManager=Qc(),Qc.ThemeManager=Qc();var Zc=function(e,t){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null===n&&(n=setTimeout((function(){e.apply(null,r),n=null}),t))};return{cancel:r,throttle:i}},eu=function(e,t){var n=null,r=function(){null!==n&&(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((function(){e.apply(null,r),n=null}),t)};return{cancel:r,throttle:i}},tu=function(e,t){var n=ci(e,t);return void 0===n||""===n?[]:n.split(" ")},nu=function(e,t,n){var r=tu(e,t),i=r.concat([n]);return si(e,t,i.join(" ")),!0},ru=function(e,t,n){var r=te(tu(e,t),(function(e){return e!==n}));return r.length>0?si(e,t,r.join(" ")):fi(e,t),!1},iu=function(e){return void 0!==e.dom.classList},ou=function(e){return tu(e,"class")},au=function(e,t){return nu(e,"class",t)},su=function(e,t){return ru(e,"class",t)},lu=function(e,t){iu(e)?e.dom.classList.add(t):au(e,t)},cu=function(e){var t=iu(e)?e.dom.classList:ou(e);0===t.length&&fi(e,"class")},uu=function(e,t){if(iu(e)){var n=e.dom.classList;n.remove(t)}else su(e,t);cu(e)},du=function(e,t){return iu(e)&&e.dom.classList.contains(t)},fu=function(e,t){var n=[];return Q(Zn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(fu(e,t))})),n},hu=function(e,t){return Tn(t,e)},pu=g("mce-annotation"),mu=g("data-mce-annotation"),gu=g("data-mce-annotation-uid"),vu=function(e,t){var n=e.selection.getRng(),r=vn.fromDom(n.startContainer),i=vn.fromDom(e.getBody()),o=t.fold((function(){return"."+pu()}),(function(e){return"["+mu()+'="'+e+'"]'})),a=er(r,n.startOffset).getOr(r),s=bo(a,o,(function(e){return An(e,i)})),l=function(e,t){return di(e,t)?I.some(ci(e,t)):I.none()};return s.bind((function(t){return l(t,""+gu()).bind((function(n){return l(t,""+mu()).map((function(t){var r=bu(e,n);return{uid:n,name:t,elements:r}}))}))}))},yu=function(e){return Fn(e)&&du(e,pu())},bu=function(e,t){var n=vn.fromDom(e.getBody());return hu(n,"["+gu()+'="'+t+'"]')},_u=function(e,t){var n=vn.fromDom(e.getBody()),r=hu(n,"["+mu()+'="'+t+'"]'),i={};return Q(r,(function(e){var t=ci(e,gu()),n=i.hasOwnProperty(t)?i[t]:[];i[t]=n.concat([e])})),i},wu=function(e,t){var n=Fc({}),r=function(){return{listeners:[],previous:Fc(I.none())}},i=function(e,t){o(e,(function(e){return t(e),e}))},o=function(e,t){var i=n.get(),o=i.hasOwnProperty(e)?i[e]:r(),a=t(o);i[e]=a,n.set(i)},a=function(e,t,n){i(e,(function(r){Q(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:J(n,(function(e){return e.dom}))})}))}))},s=function(e){i(e,(function(t){Q(t.listeners,(function(t){return t(!1,e)}))}))},l=eu((function(){var t=n.get(),r=he(be(t));Q(r,(function(t){o(t,(function(n){var r=n.previous.get();return vu(e,I.some(t)).fold((function(){r.isSome()&&(s(t),n.previous.set(I.none()))}),(function(e){var t=e.uid,i=e.name,o=e.elements;r.is(t)||(a(i,t,o),n.previous.set(I.some(t)))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){l.cancel()})),e.on("NodeChange",(function(){l.throttle()}));var c=function(e,t){o(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:c}},xu=function(e,t){var n=function(e){return I.from(e.attr(mu())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Q(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Su=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return e.hasOwnProperty(t)?I.from(e[t]).map((function(e){return e.settings})):I.none()};return{register:t,lookup:n}},Cu=0,Eu=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Cu++,e+"_"+r+Cu+String(n)},ku=function(e,t){Q(t,(function(t){lu(e,t)}))},Ou=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,Zn(vn.fromDom(r))},Tu=function(e){return e.dom.innerHTML},Iu=function(e,t){var n=Un(e),r=n.dom,i=vn.fromDom(r.createDocumentFragment()),o=Ou(t,r);_r(i,o),wr(e),vr(e,i)},Au=function(e,t){return vn.fromDom(e.dom.cloneNode(t))},Ru=function(e){return Au(e,!1)},Pu=function(e){return Au(e,!0)},Mu=function(e,t,n){void 0===n&&(n=S);var r=new Po(e,t),i=function(e){var t;do{t=r[e]()}while(t&&!Xr(t)&&!n(t));return I.from(t).filter(Xr)};return{current:function(){return I.from(r.current()).filter(Xr)},next:function(){return i("next")},prev:function(){return i("prev")},prev2:function(){return i("prev2")}}},Nu=function(e,t){var n=t||function(t){return e.isBlock(t)||Zr(t)||ni(t)},r=function(e,t,n,i){if(Xr(e)){var o=i(e,t,e.data);if(-1!==o)return I.some({container:e,offset:o})}return n().bind((function(e){return r(e.container,e.offset,n,i)}))},i=function(e,t,i,o){var a=Mu(e,o,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),i).getOrNull()},o=function(e,t,i,o){var a=Mu(e,o,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),i).getOrNull()};return{backwards:i,forwards:o}},Lu=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Du=function(e,t,n){return e.isSome()&&t.isSome()?I.some(n(e.getOrDie(),t.getOrDie())):I.none()},ju=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?I.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):I.none()},Fu=function(e,t){return e?I.some(t):I.none()},Bu=Math.round,qu=function(e){return e?{left:Bu(e.left),top:Bu(e.top),bottom:Bu(e.bottom),right:Bu(e.right),width:Bu(e.width),height:Bu(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},zu=function(e,t){return e=qu(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Uu=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},Gu=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},Vu=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&Gu(t.top-e.bottom,e,t)},Wu=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Gu(t.bottom-e.top,e,t)},Hu=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},$u=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},Ku=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},Xu=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Yu=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&Xu.test(e)},Ju=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},Qu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},Zu=Br,ed=Ra,td=zr("display","block table"),nd=zr("float","left right"),rd=Qu(Zu,ed,b(nd)),id=b(zr("white-space","pre pre-line pre-wrap")),od=Xr,ad=Zr,sd=Ic.nodeIndex,ld=Ku,cd=function(e){return"createRange"in e?e.createRange():Ic.DOM.createRng()},ud=function(e){return e&&/[\r\n\t ]/.test(e)},dd=function(e){return!!e.setStart&&!!e.setEnd},fd=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(ud(e.toString())&&id(n.parentNode)&&Xr(n)&&(t=n.data,ud(t[r-1])||ud(t[r+1])))},hd=function(e){var t=e.ownerDocument,n=cd(t),r=t.createTextNode(ta),i=e.parentNode;i.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var o=qu(n.getBoundingClientRect());return i.removeChild(r),o},pd=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Xr(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),gd(o)}return null},md=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},gd=function(e){var t,n=e.getClientRects();return t=n.length>0?qu(n[0]):qu(e.getBoundingClientRect()),!dd(e)&&ad(e)&&md(t)?hd(e):md(t)&&dd(e)?pd(e):t},vd=function(e,t){var n=zu(e,t);return n.width=1,n.right=n.left+1,n},yd=function(e){var t,n,r=[],i=function(e){0!==e.height&&(r.length>0&&Uu(e,r[r.length-1])||r.push(e))},o=function(e,t){var n=cd(e.ownerDocument);if(t<e.data.length){if(Yu(e.data[t]))return r;if(Yu(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!fd(n)))return i(vd(gd(n),!1)),r}t>0&&(n.setStart(e,t-1),n.setEnd(e,t),fd(n)||i(vd(gd(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),fd(n)||i(vd(gd(n),!0)))};if(od(e.container()))return o(e.container(),e.offset()),r;if(Zu(e.container()))if(e.isAtEnd())n=ld(e.container(),e.offset()),od(n)&&o(n,n.data.length),rd(n)&&!ad(n)&&i(vd(gd(n),!1));else{if(n=ld(e.container(),e.offset()),od(n)&&o(n,0),rd(n)&&e.isAtEnd())return i(vd(gd(n),!1)),r;t=ld(e.container(),e.offset()-1),rd(t)&&!ad(t)&&(td(t)||td(n)||!rd(n))&&i(vd(gd(t),!1)),rd(n)&&i(vd(gd(n),!0))}return r},bd=function(e,t,n){var r=function(){return od(e),0===t},i=function(){return od(e)?t>=e.data.length:t>=e.childNodes.length},o=function(){var n=cd(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=yd(bd(e,t))),n},s=function(){return a().length>0},l=function(n){return n&&e===n.container()&&t===n.offset()},c=function(n){return ld(e,n?t-1:t)};return{container:g(e),offset:g(t),toRange:o,getClientRects:a,isVisible:s,isAtStart:r,isAtEnd:i,isEqual:l,getNode:c}};bd.fromRangeStart=function(e){return bd(e.startContainer,e.startOffset)},bd.fromRangeEnd=function(e){return bd(e.endContainer,e.endOffset)},bd.after=function(e){return bd(e.parentNode,sd(e)+1)},bd.before=function(e){return bd(e.parentNode,sd(e))},bd.isAbove=function(e,t){return Du(me(t.getClientRects()),ge(e.getClientRects()),Vu).getOr(!1)},bd.isBelow=function(e,t){return Du(ge(t.getClientRects()),me(e.getClientRects()),Wu).getOr(!1)},bd.isAtStart=function(e){return!!e&&e.isAtStart()},bd.isAtEnd=function(e){return!!e&&e.isAtEnd()},bd.isTextPosition=function(e){return!!e&&Xr(e.container())},bd.isElementPosition=function(e){return!1===bd.isTextPosition(e)};var _d,wd=function(e,t){Xr(t)&&0===t.data.length&&e.remove(t)},xd=function(e,t,n){t.insertNode(n),wd(e,n.previousSibling),wd(e,n.nextSibling)},Sd=function(e,t,n){var r=I.from(n.firstChild),i=I.from(n.lastChild);t.insertNode(n),r.each((function(t){return wd(e,t.previousSibling)})),i.each((function(t){return wd(e,t.nextSibling)}))},Cd=function(e,t,n){Qr(n)?Sd(e,t,n):xd(e,t,n)},Ed=Xr,kd=Vr,Od=Ic.nodeIndex,Td=function(e){var t=e.parentNode;return kd(t)?Td(t):t},Id=function(e){return e?qe(e.childNodes,(function(e,t){return kd(t)&&"BR"!==t.nodeName?e=e.concat(Id(t)):e.push(t),e}),[]):[]},Ad=function(e,t){while(e=e.previousSibling){if(!Ed(e))break;t+=e.data.length}return t},Rd=function(e){return function(t){return e===t}},Pd=function(e){var t,n;t=Id(Td(e)),n=ze(t,Rd(e),e),t=t.slice(0,n+1);var r=qe(t,(function(e,n,r){return Ed(n)&&Ed(t[r-1])&&e++,e}),0);return t=Fe(t,qr([e.nodeName])),n=ze(t,Rd(e),e),n-r},Md=function(e){var t;return t=Ed(e)?"text()":e.nodeName.toLowerCase(),t+"["+Pd(e)+"]"},Nd=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Ld=function(e,t){var n,r,i,o,a,s=[];return n=t.container(),r=t.offset(),Ed(n)?i=Ad(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push(Md(n)),a=Nd(e,n),a=Fe(a,b(Vr)),s=s.concat(je(a,(function(e){return Md(e)}))),s.reverse().join("/")+","+i},Dd=function(e,t,n){var r=Id(e);return r=Fe(r,(function(e,t){return!Ed(e)||!Ed(r[t-1])})),r=Fe(r,qr([t])),r[n]},jd=function(e,t){var n,r=e,i=0;while(Ed(r)){if(n=r.data.length,t>=i&&t<=i+n){e=r,t-=i;break}if(!Ed(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return Ed(e)&&t>e.data.length&&(t=e.data.length),bd(e,t)},Fd=function(e,t){var n;if(!t)return null;var r=t.split(","),i=r[0].split("/");n=r.length>1?r[1]:"before";var o=qe(i,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Dd(e,n[1],parseInt(n[2],10))):null}),e);return o?Ed(o)?jd(o,parseInt(n,10)):(n="after"===n?Od(o)+1:Od(o),bd(o.parentNode,n)):null},Bd=ni,qd=function(e,t,n){var r,i;for(i=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Xr(r);r=r.previousSibling)i+=e(r.data).length;return i},zd=function(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],l=[],c=0,u=e.getRoot();for(Xr(a)?l.push(n?qd(t,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(c=1,s=Math.max(0,o.length-1)),l.push(e.nodeIndex(o[s],n)+c));a&&a!==u;a=a.parentNode)l.push(e.nodeIndex(a,n));return l},Ud=function(e,t,n,r){var i=t.dom,o={};return o.start=zd(i,e,n,r,!0),t.isCollapsed()||(o.end=zd(i,e,n,r,!1)),o},Gd=function(e,t,n){var r=0;return dn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},Vd=function(e,t){var n,r,i,o=t?"start":"end";n=e[o+"Container"],r=e[o+"Offset"],Br(n)&&"TR"===n.nodeName&&(i=n.childNodes,n=i[Math.min(t?r:r-1,i.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},Wd=function(e){return Vd(e,!0),Vd(e,!1),e},Hd=function(e,t){var n;if(Br(e)&&(e=Ku(e,t),Bd(e)))return e;if(da(e)){if(Xr(e)&&ca(e)&&(e=e.parentNode),n=e.previousSibling,Bd(n))return n;if(n=e.nextSibling,Bd(n))return n}},$d=function(e){return Hd(e.startContainer,e.startOffset)||Hd(e.endContainer,e.endOffset)},Kd=function(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Bd(r)||"IMG"===i)return{name:i,index:Gd(n.dom,i,r)};var a=$d(o);return a?(i=a.tagName,{name:i,index:Gd(n.dom,i,a)}):Ud(e,n,t,o)},Xd=function(e){var t=e.getRng();return{start:Ld(e.dom.getRoot(),bd.fromRangeStart(t)),end:Ld(e.dom.getRoot(),bd.fromRangeEnd(t))}},Yd=function(e){return{rng:e.getRng()}},Jd=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},Qd=function(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:Gd(n,s,a)};var l=Wd(r.cloneRange());if(!o){l.collapse(!1);var c=Jd(n,i+"_end",t);Cd(n,l,c)}r=Wd(r),r.collapse(!0);var u=Jd(n,i+"_start",t);return Cd(n,r,u),e.moveToBookmark({id:i,keep:!0}),{id:i}},Zd=function(e,t,n){return 2===t?Kd(aa,n,e):3===t?Xd(e):t?Yd(e):Qd(e,!1)},ef=y(Kd,v,!0),tf=Ic.DOM,nf="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",rf=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var i=e.getParam(t,"","hash");return i.hasOwnProperty(e.id)?i[e.id]:n}return r},of=function(e){return e.getParam("iframe_attrs",{})},af=function(e){return e.getParam("doctype","<!DOCTYPE html>")},sf=function(e){return e.getParam("document_base_url","")},lf=function(e){return rf(e,"body_id","tinymce")},cf=function(e){return rf(e,"body_class","")},uf=function(e){return e.getParam("content_security_policy","")},df=function(e){return e.getParam("br_in_pre",!0)},ff=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},hf=function(e){return e.getParam("forced_root_block_attrs",{})},pf=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},mf=function(e){return e.getParam("no_newline_selector","")},gf=function(e){return e.getParam("keep_styles",!0)},vf=function(e){return e.getParam("end_container_on_empty_block",!1)},yf=function(e){return dn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},bf=function(e){return dn.explode(e.getParam("font_size_classes",""))},_f=function(e){return e.getParam("images_dataimg_filter",C,"function")},wf=function(e){return e.getParam("automatic_uploads",!0,"boolean")},xf=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Sf=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Cf=function(e){return e.getParam("icons","","string")},Ef=function(e){return e.getParam("icons_url","","string")},kf=function(e){return e.getParam("images_upload_url","","string")},Of=function(e){return e.getParam("images_upload_base_path","","string")},Tf=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},If=function(e){return e.getParam("images_upload_handler",null,"function")},Af=function(e){return e.getParam("content_css_cors",!1,"boolean")},Rf=function(e){return e.getParam("referrer_policy","","string")},Pf=function(e){return e.getParam("language","en","string")},Mf=function(e){return e.getParam("language_url","","string")},Nf=function(e){return e.getParam("indent_use_margin",!1)},Lf=function(e){return e.getParam("indentation","40px","string")},Df=function(e){var t=e.getParam("content_css");return N(t)?J(t.split(","),ut):D(t)?t:!1===t||e.inline?[]:["default"]},jf=function(e){var t=e.getParam("font_css",[]);return D(t)?t:J(t.split(","),ut)},Ff=function(e){return e.getParam("directionality",Jc.isRtl()?"rtl":void 0)},Bf=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},qf=function(e){var t=e.getParam("object_resizing");return!1!==t&&!Jt.iOS&&(N(t)?t:"table,img,figure.image,div,video,iframe")},zf=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},Uf=function(e){return e.getParam("placeholder",tf.getAttrib(e.getElement(),"placeholder"),"string")},Gf=function(e){return e.getParam("event_root")},Vf=function(e){return e.getParam("service_message")},Wf=function(e){return e.getParam("theme")},Hf=function(e){return e.getParam("validate")},$f=function(e){return!1!==e.getParam("inline_boundaries")},Kf=function(e){return e.getParam("formats")},Xf=function(e){var t=e.getParam("preview_styles",nf);return N(t)?t:""},Yf=function(e){return e.getParam("format_empty_lines",!1,"boolean")},Jf=function(e){return e.getParam("custom_ui_selector","","string")},Qf=function(e){return e.getParam("theme_url")},Zf=function(e){return e.getParam("inline")},eh=function(e){return e.getParam("hidden_input")},th=function(e){return e.getParam("submit_patch")},nh=function(e){return"xml"===e.getParam("encoding")},rh=function(e){return e.getParam("add_form_submit_trigger")},ih=function(e){return e.getParam("add_unload_trigger")},oh=function(e){return""!==ff(e)},ah=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},sh=function(e){return e.getParam("disable_nodechange")},lh=function(e){return e.getParam("readonly")},ch=function(e){return e.getParam("content_css_cors")},uh=function(e){return e.getParam("plugins","","string")},dh=function(e){return e.getParam("external_plugins")},fh=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},hh=function(e){return e.getParam("visual",!0,"boolean")},ph=function(e){return e.getParam("visual_table_class","mce-item-table","string")},mh=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},gh=Br,vh=Xr,yh=function(e){var t=e.parentNode;t&&t.removeChild(e)},bh=function(e){var t=aa(e);return{count:e.length-t.length,text:t}},_h=function(e){var t;while(-1!==(t=e.data.lastIndexOf(ia)))e.deleteData(t,1)},wh=function(e,t){return Oh(e),t},xh=function(e,t){var n=bh(e.data.substr(0,t.offset())),r=bh(e.data.substr(t.offset())),i=n.text+r.text;return i.length>0?(_h(e),bd(e,t.offset()-n.count)):t},Sh=function(e,t){var n=t.container(),r=K(ve(n.childNodes),e).map((function(e){return e<t.offset()?bd(n,t.offset()-1):t})).getOr(t);return Oh(e),r},Ch=function(e,t){return vh(e)&&t.container()===e?xh(e,t):wh(e,t)},Eh=function(e,t){return t.container()===e.parentNode?Sh(e,t):wh(e,t)},kh=function(e,t){return bd.isTextPosition(t)?Ch(e,t):Eh(e,t)},Oh=function(e){gh(e)&&da(e)&&(fa(e)?e.removeAttribute("data-mce-caret"):yh(e)),vh(e)&&(_h(e),0===e.data.length&&yh(e))},Th=Ut().browser,Ih=ni,Ah=ii,Rh=ri,Ph="*[contentEditable=false],video,audio,embed,object",Mh=function(e,t,n){var r,i,o,a,s,l=zu(t.getBoundingClientRect(),n);return"BODY"===e.tagName?(r=e.ownerDocument.documentElement,i=e.scrollLeft||r.scrollLeft,o=e.scrollTop||r.scrollTop):(s=e.getBoundingClientRect(),i=e.scrollLeft-s.left,o=e.scrollTop-s.top),l.left+=i,l.right+=i,l.top+=o,l.bottom+=o,l.width=1,a=t.offsetWidth-t.clientWidth,a>0&&(n&&(a*=-1),l.left+=a,l.right+=a),l},Nh=function(e){for(var t=hu(vn.fromDom(e),Ph),n=0;n<t.length;n++){var r=t[n].dom,i=r.previousSibling;if(ba(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)}if(i=r.nextSibling,ya(i)){o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(0,1)}}},Lh=function(e,t,n,r){var i,o,a=Fc(I.none()),s=ff(e),l=s.length>0?s:"p",c=function(e,r){var i,s;if(u(),Rh(r))return null;if(!n(r))return o=ha(r,e),s=r.ownerDocument.createRange(),jh(o.nextSibling)?(s.setStart(o,0),s.setEnd(o,0)):(s.setStart(o,1),s.setEnd(o,1)),s;o=va(l,r,e),i=Mh(t,r,e),wc(o).css("top",i.top);var c=wc('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(i).appendTo(t)[0];return a.set(I.some({caret:c,element:r,before:e})),a.get().each((function(t){e&&wc(t.caret).addClass("mce-visual-caret-before")})),d(),s=r.ownerDocument.createRange(),s.setStart(o,0),s.setEnd(o,0),s},u=function(){Nh(t),o&&(Oh(o),o=null),a.get().each((function(e){wc(e.caret).remove(),a.set(I.none())})),i&&(To.clearInterval(i),i=null)},d=function(){i=To.setInterval((function(){r()?wc("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):wc("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},f=function(){a.get().each((function(e){var n=Mh(t,e.element,e.before);wc(e.caret).css(Ge({},n))}))},h=function(){return To.clearInterval(i)},p=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:c,hide:u,getCss:p,reposition:f,destroy:h}},Dh=function(){return Th.isIE()||Th.isEdge()||Th.isFirefox()},jh=function(e){return Ih(e)||Ah(e)},Fh=function(e){return jh(e)||Hr(e)&&Dh()},Bh=ni,qh=ii,zh=zr("display","block table table-cell table-caption list-item"),Uh=da,Gh=ca,Vh=Br,Wh=Ra,Hh=function(e){return e>0},$h=function(e){return e<0},Kh=function(e,t){var n;while(n=e(t))if(!Gh(n))return n;return null},Xh=function(e,t,n,r,i){var o=new Po(e,r),a=Bh(e)||Gh(e);if($h(t)){if(a&&(e=Kh(o.prev.bind(o),!0),n(e)))return e;while(e=Kh(o.prev.bind(o),i))if(n(e))return e}if(Hh(t)){if(a&&(e=Kh(o.next.bind(o),!0),n(e)))return e;while(e=Kh(o.next.bind(o),i))if(n(e))return e}return null},Yh=function(e,t){while(e&&e!==t){if(zh(e))return e;e=e.parentNode}return null},Jh=function(e,t,n){return Yh(e.container(),n)===Yh(t.container(),n)},Qh=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return Vh(n)?n.childNodes[r+e]:null},Zh=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},ep=function(e,t,n){return Yh(t,e)===Yh(n,e)},tp=function(e,t,n){var r,i;i=e?"previousSibling":"nextSibling";while(n&&n!==t){if(r=n[i],Uh(r)&&(r=r[i]),Bh(r)||qh(r)){if(ep(t,r,n))return r;break}if(Wh(r))break;n=n.parentNode}return null},np=y(Zh,!0),rp=y(Zh,!1),ip=function(e,t,n){var r,i,o,a=y(tp,!0,t),s=y(tp,!1,t);i=n.startContainer;var l=n.startOffset;if(ca(i)){if(Vh(i)||(i=i.parentNode),o=i.getAttribute("data-mce-caret"),"before"===o&&(r=i.nextSibling,Fh(r)))return np(r);if("after"===o&&(r=i.previousSibling,Fh(r)))return rp(r)}if(!n.collapsed)return n;if(Xr(i)){if(Uh(i)){if(1===e){if(r=s(i),r)return np(r);if(r=a(i),r)return rp(r)}if(-1===e){if(r=a(i),r)return rp(r);if(r=s(i),r)return np(r)}return n}if(ba(i)&&l>=i.data.length-1)return 1===e&&(r=s(i),r)?np(r):n;if(ya(i)&&l<=1)return-1===e&&(r=a(i),r)?rp(r):n;if(l===i.data.length)return r=s(i),r?np(r):n;if(0===l)return r=a(i),r?rp(r):n}return n},op=function(e,t){return I.from(Qh(e?0:-1,t)).filter(Bh)},ap=function(e,t,n){var r=ip(e,t,n);return-1===e?bd.fromRangeStart(r):bd.fromRangeEnd(r)},sp=function(e){return I.from(e.getNode()).map(vn.fromDom)},lp=function(e){return I.from(e.getNode(!0)).map(vn.fromDom)},cp=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},up=function(e,t){var n=Jh(e,t);return!(n||!Zr(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(_d||(_d={}));var dp=ni,fp=Xr,hp=Br,pp=Zr,mp=Ra,gp=Da,vp=ja,yp=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},bp=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},_p=function(e,t){if(Hh(e)){if(mp(t.previousSibling)&&!fp(t.previousSibling))return bd.before(t);if(fp(t))return bd(t,0)}if($h(e)){if(mp(t.nextSibling)&&!fp(t.nextSibling))return bd.after(t);if(fp(t))return bd(t,t.data.length)}return $h(e)?pp(t)?bd.before(t):bd.after(t):bd.before(t)},wp=function(e,t){var n=t.nextSibling;return n&&mp(n)?fp(n)?bd(n,0):bd.before(n):xp(_d.Forwards,bd.after(t),e)},xp=function(e,t,n){var r,i,o,a;if(!hp(n)||!t)return null;if(t.isEqual(bd.after(n))&&n.lastChild){if(a=bd.after(n.lastChild),$h(e)&&mp(n.lastChild)&&hp(n.lastChild))return pp(n.lastChild)?bd.before(n.lastChild):a}else a=t;var s=a.container(),l=a.offset();if(fp(s)){if($h(e)&&l>0)return bd(s,--l);if(Hh(e)&&l<s.length)return bd(s,++l);r=s}else{if($h(e)&&l>0&&(i=bp(s,l-1),mp(i)))return!gp(i)&&(o=Xh(i,e,vp,i),o)?fp(o)?bd(o,o.data.length):bd.after(o):fp(i)?bd(i,i.data.length):bd.before(i);if(Hh(e)&&l<s.childNodes.length&&(i=bp(s,l),mp(i)))return pp(i)?wp(n,i):!gp(i)&&(o=Xh(i,e,vp,i),o)?fp(o)?bd(o,0):bd.before(o):fp(i)?bd(i,0):bd.after(i);r=i||a.getNode()}if((Hh(e)&&a.isAtEnd()||$h(e)&&a.isAtStart())&&(r=Xh(r,e,C,n,!0),vp(r,n)))return _p(e,r);i=Xh(r,e,vp,n);var c=Ue(te(yp(s,n),dp));return!c||i&&c.contains(i)?i?_p(e,i):null:(a=Hh(e)?bd.after(c):bd.before(c),a)},Sp=function(e){return{next:function(t){return xp(_d.Forwards,t,e)},prev:function(t){return xp(_d.Backwards,t,e)}}},Cp=function(e,t,n){var r=e?bd.before(n):bd.after(n);return Rp(e,t,r)},Ep=function(e){return Zr(e)?bd.before(e):bd.after(e)},kp=function(e){return bd.isTextPosition(e)?0===e.offset():Ra(e.getNode())},Op=function(e){if(bd.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Ra(e.getNode(!0))},Tp=function(e,t){return!bd.isTextPosition(e)&&!bd.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Ip=function(e){return!bd.isTextPosition(e)&&Zr(e.getNode())},Ap=function(e,t,n){return e?!Tp(t,n)&&!Ip(t)&&Op(t)&&kp(n):!Tp(n,t)&&kp(t)&&Op(n)},Rp=function(e,t,n){var r=Sp(t);return I.from(e?r.next(n):r.prev(n))},Pp=function(e,t,n){return Rp(e,t,n).bind((function(r){return Jh(n,r,t)&&Ap(e,n,r)?Rp(e,t,r):I.some(r)}))},Mp=function(e,t,n,r){return Pp(e,t,n).bind((function(n){return r(n)?Mp(e,t,n,r):I.some(n)}))},Np=function(e,t){var n=e?t.firstChild:t.lastChild;return Xr(n)?I.some(bd(n,e?0:n.data.length)):n?Ra(n)?I.some(e?bd.before(n):Ep(n)):Cp(e,t,n):I.none()},Lp=y(Rp,!0),Dp=y(Rp,!1),jp=y(Np,!0),Fp=y(Np,!1),Bp="_mce_caret",qp=function(e){return Br(e)&&e.id===Bp},zp=function(e,t){while(t&&t!==e){if(t.id===Bp)return t;t=t.parentNode}return null},Up=function(e){return N(e.start)},Gp=function(e){return e.hasOwnProperty("rng")},Vp=function(e){return e.hasOwnProperty("id")},Wp=function(e){return e.hasOwnProperty("name")},Hp=function(e){return dn.isArray(e.start)},$p=function(e,t){return Br(t)&&e.isBlock(t)&&!t.innerHTML&&!Jt.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},Kp=function(e,t){var n,r=e.createRng();return n=Fd(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Fd(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},Xp=function(e,t){var n=e.ownerDocument.createTextNode(ia);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},Yp=function(e){return!1===e.hasChildNodes()},Jp=function(e,t){return Fp(e).fold(S,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},Qp=function(e,t,n){return!(!Yp(t)||!zp(e,t))&&(Xp(t,n),!0)},Zp=function(e,t,n,r){var i,o,a,s,l=n[t?"start":"end"],c=e.getRoot();if(l){for(a=l[0],o=c,i=l.length-1;i>=1;i--){if(s=o.childNodes,Qp(c,o,r))return!0;if(l[i]>s.length-1)return!!Qp(c,o,r)||Jp(o,r);o=s[l[i]]}3===o.nodeType&&(a=Math.min(l[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(l[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return!0},em=function(e){return Xr(e)&&e.data.length>0},tm=function(e,t,n){var r,i,o,a,s,l,c=e.get(n.id+"_"+t),u=n.keep;if(c){if(r=c.parentNode,"start"===t?(u?c.hasChildNodes()?(r=c.firstChild,i=1):em(c.nextSibling)?(r=c.nextSibling,i=0):em(c.previousSibling)?(r=c.previousSibling,i=c.previousSibling.data.length):(r=c.parentNode,i=e.nodeIndex(c)+1):i=e.nodeIndex(c),s=r,l=i):(u?c.hasChildNodes()?(r=c.firstChild,i=1):em(c.previousSibling)?(r=c.previousSibling,i=c.previousSibling.data.length):(r=c.parentNode,i=e.nodeIndex(c)):i=e.nodeIndex(c),s=r,l=i),!u){a=c.previousSibling,o=c.nextSibling,dn.each(dn.grep(c.childNodes),(function(e){Xr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(c=e.get(n.id+"_"+t))e.remove(c,!0);a&&o&&a.nodeType===o.nodeType&&Xr(a)&&!Jt.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,l=i)}return I.some(bd(s,l))}return I.none()},nm=function(e,t){var n=e.createRng();return Zp(e,!0,t,n)&&Zp(e,!1,t,n)?I.some(n):I.none()},rm=function(e,t){var n=tm(e,"start",t),r=tm(e,"end",t);return Du(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart($p(e,t.container()),t.offset()),r.setEnd($p(e,n.container()),n.offset()),r}))},im=function(e,t){return I.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},om=function(e,t){var n=e.dom;if(t){if(Hp(t))return nm(n,t);if(Up(t))return I.some(Kp(n,t));if(Vp(t))return rm(n,t);if(Wp(t))return im(n,t);if(Gp(t))return I.some(t.rng)}return I.none()},am=function(e,t,n){return Zd(e,t,n)},sm=function(e,t){om(e,t).each((function(t){e.setRng(t)}))},lm=function(e){return Br(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},cm=function(e){return function(t){return e===t}},um=cm(ta),dm=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},fm=function(e){return!dm(e)&&!um(e)},hm=function(e){return!!e.nodeType},pm=function(e){return e&&/^(IMG)$/.test(e.nodeName)},mm=function(e,t,n){var r,i,o,a=n.startOffset,s=n.startContainer;if((n.startContainer!==n.endContainer||!pm(n.startContainer.childNodes[n.startOffset]))&&1===s.nodeType)for(o=s.childNodes,a<o.length?(s=o[a],r=new Po(s,e.getParent(s,e.isBlock))):(s=o[o.length-1],r=new Po(s,e.getParent(s,e.isBlock)),r.next(!0)),i=r.current();i;i=r.next())if(3===i.nodeType&&!bm(i))return n.setStart(i,0),void t.setRng(n)},gm=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(1===e.nodeType||!bm(e))return e}},vm=function(e,t){return hm(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},ym=function(e,t,n){return e.schema.isValidChild(t,n)},bm=function(e,t){if(void 0===t&&(t=!1),z(e)&&Xr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ba(n)}return!1},_m=function(e){return z(e)&&Xr(e)&&0===e.length},wm=function(e,t){return"string"!==typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},xm=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Sm=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Cm=function(e,t,n){return Sm(e,e.getStyle(t,n),n)},Em=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},km=function(e,t,n){return e.getParents(t,n,e.getRoot())},Om=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return Y(["styles","attributes"],(function(n){return Ae(e,n).exists((function(e){var n=D(e)?e:Ie(e);return Y(n,t)}))}))};return Y(e.formatter.get(t),n)},Tm=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],i=function(e){return Oe(e,(function(e,t){return Y(r,(function(e){return e===t}))}))};return Y(e.formatter.get(t),(function(t){var r=i(t);return Y(e.formatter.get(n),(function(e){var t=i(e);return Me(r,t)}))}))},Im=function(e){return Pe(e,"block")},Am=function(e){return Pe(e,"selector")},Rm=function(e){return Pe(e,"inline")},Pm=lm,Mm=km,Nm=bm,Lm=vm,Dm=function(e){return Zr(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},jm=function(e,t){var n=t;while(n){if(Br(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},Fm=function(e,t,n,r){for(var i=t.data,o=n;e?o>=0:o<i.length;e?o--:o++)if(r(i.charAt(o)))return e?o+1:o;return-1},Bm=function(e,t,n){return Fm(e,t,n,(function(e){return um(e)||dm(e)}))},qm=function(e,t,n){return Fm(e,t,n,fm)},zm=function(e,t,n,r,i,o){var a,s=e.getParent(n,e.isBlock)||t,l=function(t,n,r){var o=Nu(e),l=i?o.backwards:o.forwards;return I.from(l(t,n,(function(e,t){return Pm(e.parentNode)?-1:(a=e,r(i,e,t))}),s))},c=l(n,r,Bm);return c.bind((function(e){return o?l(e.container,e.offset+(i?-1:0),qm):I.some(e)})).orThunk((function(){return a?I.some({container:a,offset:i?0:a.length}):I.none()}))},Um=function(e,t,n,r,i){Xr(r)&&0===r.nodeValue.length&&r[i]&&(r=r[i]);for(var o=Mm(e,r),a=0;a<o.length;a++)for(var s=0;s<t.length;s++){var l=t[s];if((!("collapsed"in l)||l.collapsed===n.collapsed)&&e.is(o[a],l.selector))return o[a]}return r},Gm=function(e,t,n,r){var i,o=e.dom,a=o.getRoot();if(t[0].wrapper||(i=o.getParent(n,t[0].block,a)),!i){var s=o.getParent(n,"LI,TD,TH");i=o.getParent(Xr(n)?n.parentNode:n,(function(t){return t!==a&&Lm(e,t)}),s)}if(i&&t[0].wrapper&&(i=Mm(o,i,"ul,ol").reverse()[0]||i),!i){i=n;while(i[r]&&!o.isBlock(i[r]))if(i=i[r],xm(i,"br"))break}return i||n},Vm=function(e,t,n,r){var i=n.parentNode;return!z(n[r])&&(!(i!==t&&!q(i)&&!e.isBlock(i))||Vm(e,t,i,r))},Wm=function(e,t,n,r,i){var o,a=n,s=i?"previousSibling":"nextSibling",l=e.getRoot();if(Xr(n)&&!Nm(n)&&(i?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(a))return a;for(o=a[s];o;o=o[s]){var c=Xr(o)&&!Vm(e,l,o,s);if(!Pm(o)&&!Dm(o)&&!Nm(o,c))return a}if(a===l||a.parentNode===l){n=a;break}a=a.parentNode}return n},Hm=function(e){return Pm(e.parentNode)||Pm(e)},$m=function(e,t,n,r){void 0===r&&(r=!1);var i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,l=e.dom;if(Br(i)&&i.hasChildNodes()&&(i=Ku(i,o),Xr(i)&&(o=0)),Br(a)&&a.hasChildNodes()&&(a=Ku(a,t.collapsed?s:s-1),Xr(a)&&(s=a.nodeValue.length)),i=jm(l,i),a=jm(l,a),Hm(i)&&(i=Pm(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,Xr(i)&&(o=t.collapsed?i.length:0)),Hm(a)&&(a=Pm(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Xr(a)&&(s=t.collapsed?0:a.length)),t.collapsed){var c=zm(l,e.getBody(),i,o,!0,r);c.each((function(e){var t=e.container,n=e.offset;i=t,o=n}));var u=zm(l,e.getBody(),a,s,!1,r);u.each((function(e){var t=e.container,n=e.offset;a=t,s=n}))}return(n[0].inline||n[0].block_expand)&&(n[0].inline&&Xr(i)&&0!==o||(i=Wm(l,n,i,o,!0)),n[0].inline&&Xr(a)&&s!==a.nodeValue.length||(a=Wm(l,n,a,s,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=Um(l,n,t,i,"previousSibling"),a=Um(l,n,t,a,"nextSibling")),(n[0].block||n[0].selector)&&(i=Gm(e,n,i,"previousSibling"),a=Gm(e,n,a,"nextSibling"),n[0].block&&(l.isBlock(i)||(i=Wm(l,n,i,o,!0)),l.isBlock(a)||(a=Wm(l,n,a,s,!1)))),Br(i)&&(o=l.nodeIndex(i),i=i.parentNode),Br(a)&&(s=l.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}},Km=function(e,t){var n=e.childNodes;return t>=n.length?t=n.length-1:t<0&&(t=0),n[t]||e},Xm=function(e,t){return Km(e,t-1)},Ym=function(e,t,n){var r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=function(e){var t;return t=e[0],3===t.nodeType&&t===r&&i>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===a&&e.length>0&&t===o&&3===t.nodeType&&e.splice(e.length-1,1),e},l=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},c=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},u=function(e,t,r){for(var i=r?"nextSibling":"previousSibling",o=e,a=o.parentNode;o&&o!==t;o=a){a=o.parentNode;var c=l(o===e?o:o[i],i);c.length&&(r||c.reverse(),n(s(c)))}};if(1===r.nodeType&&r.hasChildNodes()&&(r=Km(r,i)),1===o.nodeType&&o.hasChildNodes()&&(o=Xm(o,a)),r===o)return n(s([r]));for(var d=e.findCommonAncestor(r,o),f=r;f;f=f.parentNode){if(f===o)return u(r,d,!0);if(f===d)break}for(f=o;f;f=f.parentNode){if(f===r)return u(o,d);if(f===d)break}var h=c(r,d)||r,p=c(o,d)||o;u(r,h,!0);var m=l(h===r?h:h.nextSibling,"nextSibling",p===o?p.nextSibling:p);m.length&&n(s(m)),u(o,p)},Jm=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},Qm=function(e){return le(e,(function(e){var t=$u(e);return t?[vn.fromDom(t)]:[]}))},Zm=function(e){return Jm(e).length>1},eg=function(e){return te(Qm(e),Jo)},tg=function(e){return hu(e,"td[data-mce-selected],th[data-mce-selected]")},ng=function(e,t){var n=tg(t);return n.length>0?n:eg(e)},rg=function(e){return ng(Jm(e.selection.getSel()),vn.fromDom(e.getBody()))},ig=function(e){var t=e.startContainer,n=e.startOffset;return Xr(t)?0===n?I.some(vn.fromDom(t)):I.none():I.from(t.childNodes[n]).map(vn.fromDom)},og=function(e){var t=e.endContainer,n=e.endOffset;return Xr(t)?n===t.data.length?I.some(vn.fromDom(t)):I.none():I.from(t.childNodes[n-1]).map(vn.fromDom)},ag=function(e){return tr(e).fold(g([e]),(function(t){return[e].concat(ag(t))}))},sg=function(e){return nr(e).fold(g([e]),(function(t){return"br"===Nn(t)?Xn(t).map((function(t){return[e].concat(sg(t))})).getOr([]):[e].concat(sg(t))}))},lg=function(e,t){return Du(ig(t),og(t),(function(t,n){var r=oe(ag(e),y(An,t)),i=oe(sg(e),y(An,n));return r.isSome()&&i.isSome()})).getOr(!1)},cg=function(e,t,n,r){var i=n,o=new Po(n,i),a=Oe(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!X(["td","th","table"],t.toLowerCase())}));do{if(Xr(n)&&0!==dn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},ug=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},dg=function(e,t){var n=rg(e);n.length>0?Q(n,(function(n){var r=n.dom,i=e.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),t(i,!0)})):t(e.selection.getRng(),!1)},fg=function(e,t,n){var r=Qd(e,t);n(r),e.moveToBookmark(r)},hg=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?I.from(t.dom.nodeValue):I.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},pg=hg(Bn,"text"),mg=function(e){return pg.get(e)},gg=function(e){return Bn(e)&&mg(e)===ia},vg=function(e,t,n,r){return Hn(t).fold((function(){return"skipping"}),(function(i){return"br"===r||gg(t)?"valid":yu(t)?"existing":qp(t.dom)?"caret":ym(e,n,r)&&ym(e,Nn(i),n)?"valid":"invalid-child"}))},yg=function(e,t){var n=$m(e,t,[{inline:!0}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},bg=function(e,t,n,r){var i=t.uid,o=void 0===i?Eu("mce-annotation"):i,a=Ve(t,["uid"]),s=vn.fromTag("span",e);lu(s,pu()),si(s,""+gu(),o),si(s,""+mu(),n);var l=r(o,a),c=l.attributes,u=void 0===c?{}:c,d=l.classes,f=void 0===d?[]:d;return li(s,u),ku(s,f),s},_g=function(e,t,n,r,i){var o=[],a=bg(e.getDoc(),i,n,r),s=Fc(I.none()),l=function(){s.set(I.none())},c=function(){return s.get().getOrThunk((function(){var e=Ru(a);return o.push(e),s.set(I.some(e)),e}))},u=function(e){Q(e,d)},d=function(t){var n=vg(e,t,"span",Nn(t));switch(n){case"invalid-child":l();var r=Zn(t);u(r),l();break;case"valid":var i=c();yr(t,i);break}},f=function(e){var t=J(e,vn.fromDom);u(t)};return Ym(e.dom,t,(function(e){l(),f(e)})),o},wg=function(e,t,n,r){e.undoManager.transact((function(){var i=e.selection,o=i.getRng(),a=rg(e).length>0;if(o.collapsed&&!a&&yg(e,o),i.getRng().collapsed&&!a){var s=bg(e.getDoc(),r,t,n.decorate);Iu(s,ta),i.getRng().insertNode(s.dom),i.select(s.dom)}else fg(i,!1,(function(){dg(e,(function(i){_g(e,i,t,n.decorate,r)}))}))}))},xg=function(e){var t=Su();xu(e,t);var n=wu(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){wg(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){vu(e,I.some(t)).each((function(e){var t=e.elements;Q(t,Sr)}))},getAll:function(t){var n=_u(e,t);return xe(n,(function(e){return J(e,(function(e){return e.dom}))}))}}},Sg=function(e){return{getBookmark:y(am,e),moveToBookmark:y(sm,e)}};Sg.isBookmarkNode=lm;var Cg=function(e,t){while(t&&t!==e){if(ti(t)||ni(t))return t;t=t.parentNode}return null},Eg=function(e,t,n){if(n.collapsed)return!1;if(Jt.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Br(r))return Y(r.getClientRects(),(function(n){return Hu(n,e,t)}))}return Y(n.getClientRects(),(function(n){return Hu(n,e,t)}))},kg=function(e,t){return e.fire("PreProcess",t)},Og=function(e,t){return e.fire("PostProcess",t)},Tg=function(e){return e.fire("remove")},Ig=function(e){return e.fire("detach")},Ag=function(e,t){return e.fire("SwitchMode",{mode:t})},Rg=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},Pg=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},Mg=function(e){return e.fire("PreInit")},Ng=function(e){return e.fire("PostRender")},Lg=function(e){return e.fire("Init")},Dg=function(e,t){return e.fire("PlaceholderToggle",{state:t})},jg=function(e,t,n){return e.fire(t,n)},Fg={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||Fg.metaKeyPressed(e)},metaKeyPressed:function(e){return Jt.mac?e.metaKey:e.ctrlKey&&!e.altKey}},Bg=ni,qg=function(e,t){var n,r,i,o,a,s,l,c,u,d,f,h,p,m,g,v,y,b="data-mce-selected",_=t.dom,w=dn.each,x=t.getDoc(),S=document,C=Math.abs,E=Math.round,k=t.getBody(),O={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},T=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},I=function(e){return ii(e)||_.hasClass(e,"mce-preview-object")},A=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return T(e.target)&&!Eg(n.clientX,n.clientY,t)}return T(e.target)&&!Eg(e.clientX,e.clientY,t)},R=function(e){var n=e.target;A(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},P=function(e){return _.is(e,"figure.image")?e.querySelector("img"):_.hasClass(e,"mce-preview-object")&&z(e.firstElementChild)?e.firstElementChild:e},M=function(e){var n=qf(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(_.hasClass(e,"mce-preview-object")?kn(vn.fromDom(e.firstElementChild),n):kn(vn.fromDom(e),n))))},N=function(e){return I(e)?_.create("img",{src:Jt.transparentSrc}):e.cloneNode(!0)},L=function(e,t,n){_.setStyles(P(e),{width:t,height:n})},D=function(e){var a,b,w,x,S;a=e.screenX-s,b=e.screenY-l,m=a*o[2]+d,g=b*o[3]+f,m=m<5?5:m,g=g<5?5:g,w=(T(n)||I(n))&&!1!==zf(t)?!Fg.modifierPressed(e):Fg.modifierPressed(e),w&&(C(a)>C(b)?(g=E(m*h),m=E(g/h)):(m=E(g/h),g=E(m*h))),L(r,m,g),x=o.startPos.x+a,S=o.startPos.y+b,x=x>0?x:0,S=S>0?S:0,_.setStyles(i,{left:x,top:S,display:"block"}),i.innerHTML=m+" &times; "+g,o[2]<0&&r.clientWidth<=m&&_.setStyle(r,"left",c+(d-m)),o[3]<0&&r.clientHeight<=g&&_.setStyle(r,"top",u+(f-g)),a=k.scrollWidth-v,b=k.scrollHeight-y,a+b!==0&&_.setStyles(i,{left:x-a,top:S-b}),p||(Rg(t,n,d,f,"corner-"+o.name),p=!0)},j=function(){var e=p;p=!1;var s=function(e,r){if(r){var i=P(n);i.style[e]||!t.schema.isValid(i.nodeName.toLowerCase(),e)?_.setStyle(i,e,r):_.setAttrib(i,e,""+r)}};e&&(s("width",m),s("height",g)),_.unbind(x,"mousemove",D),_.unbind(x,"mouseup",j),S!==x&&(_.unbind(S,"mousemove",D),_.unbind(S,"mouseup",j)),_.remove(r),_.remove(i),_.remove(a),F(n),e&&(Pg(t,n,m,g,"corner-"+o.name),_.setAttrib(n,"style",_.getAttrib(n,"style"))),t.nodeChanged()},F=function(e){G();var c=_.getPos(e,k),u=c.x,p=c.y,C=e.getBoundingClientRect(),E=C.width||C.right-C.left,T=C.height||C.bottom-C.top;n!==e&&(B(),n=e,m=g=0);var I=t.fire("ObjectSelected",{target:e}),A=_.getAttrib(n,b,"1");M(e)&&!I.isDefaultPrevented()?w(O,(function(e,t){var c,m=function(c){s=c.screenX,l=c.screenY,d=P(n).clientWidth,f=P(n).clientHeight,h=f/d,o=e,o.name=t,o.startPos={x:E*e[0]+u,y:T*e[1]+p},v=k.scrollWidth,y=k.scrollHeight,a=_.add(k,"div",{class:"mce-resize-backdrop"}),_.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=N(n),_.addClass(r,"mce-clonedresizable"),_.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",_.setStyles(r,{left:u,top:p,margin:0}),L(r,E,T),r.removeAttribute(b),k.appendChild(r),_.bind(x,"mousemove",D),_.bind(x,"mouseup",j),S!==x&&(_.bind(S,"mousemove",D),_.bind(S,"mouseup",j)),i=_.add(k,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},d+" &times; "+f)};c=_.get("mceResizeHandle"+t),c&&_.remove(c),c=_.add(k,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===Jt.ie&&(c.contentEditable=!1),_.bind(c,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),m(e)})),e.elm=c,_.setStyles(c,{left:E*e[0]+u-c.offsetWidth/2,top:T*e[1]+p-c.offsetHeight/2})})):B(),_.getAttrib(n,b)||n.setAttribute(b,A)},B=function(){G(),n&&n.removeAttribute(b),we(O,(function(e,t){var n=_.get("mceResizeHandle"+t);n&&(_.unbind(n),_.remove(n))}))},q=function(n){var r,i,o=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};p||t.removed||(w(_.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(b)})),i="mousedown"===n.type?n.target:e.getNode(),i=_.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],o(i,k)&&(V(),r=e.getStart(!0),o(r,i)&&o(e.getEnd(!0),i))?F(i):B())},U=function(e){return Bg(Cg(t.getBody(),e))},G=function(){we(O,(function(e){e.elm&&(_.unbind(e.elm),delete e.elm)}))},V=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if(V(),Jt.browser.isIE()||Jt.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;p||!/^(TABLE|IMG|HR)$/.test(r)||U(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){To.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(U(e.target)||ii(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};_.bind(k,"mscontrolselect",e),t.on("remove",(function(){return _.unbind(k,"mscontrolselect",e)}))}var r=To.throttle((function(e){t.composing||q(e)}));t.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",B),t.on("contextmenu longpress",R,!0)})),t.on("remove",G);var W=function(){n=r=a=null};return{isResizable:M,showResizeRect:F,hideResizeRect:B,updateResizeRect:q,destroy:W}},zg=function(e){return ti(e)||ni(e)},Ug=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},Gg=function(e,t,n){var r,i=n.elementFromPoint(e,t),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),r=dn.toArray(o.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},Vg=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ni(Ug(n,t,zg))?null:e},Wg=function(e,t,n){var r,i,o=n;if(o.caretPositionFromPoint)i=o.caretPositionFromPoint(e,t),i&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=Gg(e,t,n)}return Vg(r,n.body)}return r},Hg=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},$g=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},Kg=function(e,t,n){return null!==$g(e,t,n)},Xg=function(e,t,n){return Kg(e,t,(function(e){return e.nodeName===n}))},Yg=function(e){return e&&"TABLE"===e.nodeName},Jg=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},Qg=function(e,t){return da(e)&&!1===Kg(e,t,qp)},Zg=function(e,t,n){var r=new Po(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(Zr(t))return!0},ev=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},tv=function(e,t){while(t&&t!==e){if(ni(t))return!0;t=t.parentNode}return!1},nv=function(e,t,n,r,i){var o,a,s=e.getRoot(),l=e.schema.getNonEmptyElements(),c=e.getParent(i.parentNode,e.isBlock)||s;if(r&&Zr(i)&&t&&e.isEmpty(c))return I.some(bd(i.parentNode,e.nodeIndex(i)));var u=new Po(i,c);while(a=u[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||Qg(a,s))return I.none();if(Xr(a)&&a.nodeValue.length>0)return!1===Xg(a,s,"A")?I.some(bd(a,r?a.nodeValue.length:0)):I.none();if(e.isBlock(a)||l[a.nodeName.toLowerCase()])return I.none();o=a}return n&&o?I.some(bd(o,0)):I.none()},rv=function(e,t,n,r){var i,o,a,s,l=e.getRoot(),c=!1;i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"];var u=Br(i)&&o===i.childNodes.length,d=e.schema.getNonEmptyElements();if(s=n,da(i))return I.none();if(Br(i)&&o>i.childNodes.length-1&&(s=!1),Jr(i)&&(i=l,o=0),i===l){if(s&&(a=i.childNodes[o>0?o-1:0],a)){if(da(a))return I.none();if(d[a.nodeName]||Yg(a))return I.none()}if(i.hasChildNodes()){if(o=Math.min(!s&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=Xr(i)&&u?i.data.length:0,!t&&i===l.lastChild&&Yg(i))return I.none();if(tv(l,i)||da(i))return I.none();if(i.hasChildNodes()&&!1===Yg(i)){a=i;var f=new Po(i,l);do{if(ni(a)||da(a)){c=!1;break}if(Xr(a)&&a.nodeValue.length>0){o=s?0:a.nodeValue.length,i=a,c=!0;break}if(d[a.nodeName.toLowerCase()]&&!Jg(a)){o=e.nodeIndex(a),i=a.parentNode,s||o++,c=!0;break}}while(a=s?f.next():f.prev())}}}return t&&(Xr(i)&&0===o&&nv(e,u,t,!0,i).each((function(e){i=e.container(),o=e.offset(),c=!0})),Br(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!Zr(a)||ev(a,"A")||Zg(e,a,!1)||Zg(e,a,!0)||nv(e,u,t,!0,a).each((function(e){i=e.container(),o=e.offset(),c=!0})))),s&&!t&&Xr(i)&&o===i.nodeValue.length&&nv(e,u,t,!1,i).each((function(e){i=e.container(),o=e.offset(),c=!0})),c?I.some(bd(i,o)):I.none()},iv=function(e,t){var n=t.collapsed,r=t.cloneRange(),i=bd.fromRangeStart(t);return rv(e,n,!0,r).each((function(e){n&&bd.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||rv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),Hg(t,r)?I.none():I.some(r)},ov=function(e,t){return e.splitText(t)},av=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Xr(t)?n>0&&n<t.nodeValue.length&&(r=ov(t,n),t=r.previousSibling,i>n?(i-=n,t=r=ov(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(Xr(t)&&n>0&&n<t.nodeValue.length&&(t=ov(t,n),n=0),Xr(r)&&i>0&&i<r.nodeValue.length&&(r=ov(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}},sv=function(e){var t=function(t,n){return Ym(e,t,n)},n=av,r=function(t){return iv(e,t).fold(S,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};sv.compareRanges=Hg,sv.getCaretRangeFromPoint=Wg,sv.getSelectedNode=$u,sv.getNode=Ku;var lv,cv=function(e,t){var n=function(t,n){if(!G(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;oi(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=gi(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return re(t,(function(t,n){var r=gi(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},uv=cv("height",(function(e){var t=e.dom;return Cr(e)?t.getBoundingClientRect().height:t.offsetHeight})),dv=function(e){return uv.get(e)},fv=function(e,t){var n=e.view(t);return n.fold(g([]),(function(t){var n=e.owner(t),r=fv(e,n);return[t].concat(r)}))},hv=function(e,t){var n=t.owner(e);return fv(t,n)},pv=function(e){var t,n=e.dom===document?I.none():I.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(vn.fromDom)},mv=function(e){return Gn(e)},gv=Object.freeze({__proto__:null,view:pv,owner:mv}),vv=function(e){var t=vn.fromDom(document),n=Rr(t),r=hv(e,gv),i=Ar(e),o=ne(r,(function(e,t){var n=Ar(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return kr(o.left+i.left+n.left,o.top+i.top+n.top)},yv=function(e){return"textarea"===Nn(e)},bv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},_v=function(e,t){e.fire("AfterScrollIntoView",t)},wv=function(e,t){var n=Zn(e);if(0===n.length||yv(e))return{element:e,offset:t};if(t<n.length&&!yv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return yv(r)?{element:e,offset:t}:"img"===Nn(r)?{element:r,offset:1}:Bn(r)?{element:r,offset:mg(r).length}:{element:r,offset:Zn(r).length}},xv=function(e,t){var n=Ir(e),r=dv(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},Sv=function(e,t){var n=wv(e,t),r=vn.fromHtml('<span data-mce-bogus="all">'+ia+"</span>");return pr(n.element,r),xv(r,(function(){return xr(r)}))},Cv=function(e){return xv(vn.fromDom(e),h)},Ev=function(e,t,n,r){Iv(e,(function(i,o){return Ov(e,t,n,r)}),n)},kv=function(e,t,n,r,i){var o={elm:r.element.dom,alignToTop:i};if(!bv(e,o)){var a=Rr(t).top;n(t,a,r,i),_v(e,o)}},Ov=function(e,t,n,r){var i=vn.fromDom(e.getBody()),o=vn.fromDom(e.getDoc());_i(i);var a=Sv(vn.fromDom(n.startContainer),n.startOffset);kv(e,o,t,a,r),a.cleanup()},Tv=function(e,t,n,r){var i=vn.fromDom(e.getDoc());kv(e,i,n,Cv(t),r)},Iv=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(vn.fromDom(r),vn.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},Av=function(e,t,n,r){var i=e.pos;if(n)Pr(i.left,i.top,r);else{var o=i.top-t+e.height;Pr(i.left,o,r)}},Rv=function(e,t,n,r,i){var o=n+t,a=r.pos.top,s=r.bottom,l=s-a>=n;if(a<t)Av(r,n,!1!==i,e);else if(a>o){var c=l?!1!==i:!0===i;Av(r,n,c,e)}else s>o&&!l&&Av(r,n,!0===i,e)},Pv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Rv(e,t,i,n,r)},Mv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Rv(e,t,i,n,r);var o=vv(n.element),a=Dr(window);o.top<a.y?Mr(n.element,!1!==r):o.top>a.bottom&&Mr(n.element,!0===r)},Nv=function(e,t,n){return Ev(e,Pv,t,n)},Lv=function(e,t,n){return Tv(e,t,Pv,n)},Dv=function(e,t,n){return Ev(e,Mv,t,n)},jv=function(e,t,n){return Tv(e,t,Mv,n)},Fv=function(e,t,n){var r=e.inline?Lv:jv;r(e,t,n)},Bv=function(e,t,n){var r=e.inline?Nv:Dv;r(e,t,n)},qv=function(){return vn.fromDom(document)},zv=function(e){return e.dom.focus()},Uv=function(e){var t=lr(e).dom;return e.dom===t.activeElement},Gv=function(e){return void 0===e&&(e=qv()),I.from(e.dom.activeElement).map(vn.fromDom)},Vv=function(e){return Gv(lr(e)).filter((function(t){return e.dom.contains(t.dom)}))},Wv=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Hv={create:Wv},$v=Vi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Kv=function(e,t,n,r){return e.fold(t,n,r)},Xv=function(e){return e.fold(v,v,v)},Yv=$v.before,Jv=$v.on,Qv=$v.after,Zv={before:Yv,on:Jv,after:Qv,cata:Kv,getStart:Xv},ey=Vi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ty=function(e){return ey.exact(e.start,e.soffset,e.finish,e.foffset)},ny=function(e){return e.match({domRange:function(e){return vn.fromDom(e.startContainer)},relative:function(e,t){return Zv.getStart(e)},exact:function(e,t,n,r){return e}})},ry=ey.domRange,iy=ey.relative,oy=ey.exact,ay=function(e){var t=ny(e);return Wn(t)},sy=Hv.create,ly={domRange:ry,relative:iy,exact:oy,exactFromRange:ty,getWin:ay,range:sy},cy=Ut().browser,uy=function(e,t){var n=Bn(t)?mg(t).length:Zn(t).length+1;return e>n?n:e<0?0:e},dy=function(e){return ly.range(e.start,uy(e.soffset,e.start),e.finish,uy(e.foffset,e.finish))},fy=function(e,t){return!Fr(t.dom)&&(Mn(e,t)||An(e,t))},hy=function(e){return function(t){return fy(e,t.start)&&fy(e,t.finish)}},py=function(e){return!0===e.inline||cy.isIE()},my=function(e){return ly.range(vn.fromDom(e.startContainer),e.startOffset,vn.fromDom(e.endContainer),e.endOffset)},gy=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?I.from(t.getRangeAt(0)):I.none();return n.map(my)},vy=function(e){var t=Wn(e);return gy(t.dom).filter(hy(e))},yy=function(e,t){return I.from(t).filter(hy(e)).map(dy)},by=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),I.some(t)}catch(n){return I.none()}},_y=function(e){var t=py(e)?vy(vn.fromDom(e.getBody())):I.none();e.bookmark=t.isSome()?t:e.bookmark},wy=function(e,t){var n=vn.fromDom(e.getBody()),r=py(e)?I.from(t):I.none(),i=r.map(my).filter(hy(n));e.bookmark=i.isSome()?i:e.bookmark},xy=function(e){var t=e.bookmark?e.bookmark:I.none();return t.bind((function(t){return yy(vn.fromDom(e.getBody()),t)})).bind(by)},Sy=function(e){xy(e).each((function(t){return e.selection.setRng(t)}))},Cy=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},Ey={isEditorUIElement:Cy},ky=function(e){return"nodechange"===e.type&&e.selectionChange},Oy=function(e,t){var n=function(){t.throttle()};Ic.DOM.bind(document,"mouseup",n),e.on("remove",(function(){Ic.DOM.unbind(document,"mouseup",n)}))},Ty=function(e){e.on("focusout",(function(){_y(e)}))},Iy=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Ay=function(e,t){var n=Ut().browser;n.isIE()?Ty(e):Iy(e,t),e.on("keyup NodeChange",(function(t){ky(t)||_y(e)}))},Ry=function(e){var t=Zc((function(){_y(e)}),0);e.on("init",(function(){e.inline&&Oy(e,t),Ay(e,t)})),e.on("remove",(function(){t.cancel()}))},Py=Ic.DOM,My=function(e){return Ey.isEditorUIElement(e)},Ny=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Ly=function(e,t){var n=Jf(e),r=Py.getParent(t,(function(t){return My(t)||!!n&&e.dom.is(t,n)}));return null!==r},Dy=function(e){try{var t=lr(vn.fromDom(e.getElement()));return Gv(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},jy=function(e,t){var n=t.editor;Ry(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){To.setEditorTimeout(n,(function(){var t=e.focusedEditor;Ly(n,Dy(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),lv||(lv=function(t){var n=e.activeEditor;n&&fr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Ly(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Py.bind(document,"focusin",lv))},Fy=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Py.unbind(document,"focusin",lv),lv=null)},By=function(e){e.on("AddEditor",y(jy,e)),e.on("RemoveEditor",y(Fy,e))},qy=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},zy=function(e){return e.collapsed?I.from(Ku(e.startContainer,e.startOffset)).map(vn.fromDom):I.none()},Uy=function(e,t){return zy(t).bind((function(t){return Yo(t)?I.some(t):!1===Mn(e,t)?I.some(e):I.none()}))},Gy=function(e,t){Uy(vn.fromDom(e.getBody()),t).bind((function(e){return jp(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},Vy=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},Wy=function(e){return Uv(e)||Vv(e).isSome()},Hy=function(e){return e.iframeElement&&Uv(vn.fromDom(e.iframeElement))},$y=function(e){var t=e.getBody();return t&&Wy(vn.fromDom(t))},Ky=function(e){var t=lr(vn.fromDom(e.getElement()));return Gv(t).filter((function(t){return!Ny(t.dom)&&Ly(e,t.dom)})).isSome()},Xy=function(e){return e.inline?$y(e):Hy(e)},Yy=function(e){return Xy(e)||Ky(e)},Jy=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===Xy(e)&&xy(e).each((function(t){e.selection.setRng(t),r=t}));var i=qy(e,t.getNode());if(e.$.contains(n,i))return Vy(i),Gy(e,r),void Qy(e);e.inline||(Jt.opera||Vy(n),e.getWin().focus()),(Jt.gecko||e.inline)&&(Vy(n),Gy(e,r)),Qy(e)},Qy=function(e){return e.editorManager.setActive(e)},Zy=function(e,t){e.removed||(t?Qy(e):Jy(e))},eb=function(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return I.from(o).map(vn.fromDom).map((function(e){return r&&t.collapsed?e:er(e,i(e,a)).getOr(e)})).bind((function(e){return Fn(e)?I.some(e):Hn(e).filter(Fn)})).map((function(e){return e.dom})).getOr(e)},tb=function(e,t,n){return eb(e,t,!0,n,(function(e,t){return Math.min(rr(e),t)}))},nb=function(e,t,n){return eb(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},rb=function(e,t){var n=e;while(e&&Xr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},ib=function(e,t){var n,r,i;if(!t)return e;r=t.startContainer,i=t.endContainer;var o=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?rb(r.nextSibling,!0):r.parentNode,i=0===a?rb(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n},ob=function(e,t,n,r){var i,o=[],a=e.getRoot();if(n=e.getParent(n||tb(a,t,t.collapsed),e.isBlock),r=e.getParent(r||nb(a,t,t.collapsed),e.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;var s=new Po(n,a);while((i=s.next())&&i!==r)e.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o},ab=function(e,t,n){return I.from(t).map((function(t){var r=e.nodeIndex(t),i=e.createRng();return i.setStart(t.parentNode,r),i.setEnd(t.parentNode,r+1),n&&(cg(e,i,t,!0),cg(e,i,t,!1)),i}))},sb=function(e,t){return J(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},lb={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},cb=function(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i],o)return o}},ub=function(e){if(!Ba(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},db=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},fb=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,lb[t]||1);return n&&we(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&we(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var i=n.length;while(i--)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){i=n.length;while(i--)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var i=[];i.map={};for(var o=0,a=t.length;o<a;o++){var s=t[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=cb(r,t))r.name===e&&n.push(r);return n},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=cb(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,i=r.firstChild;if(db(r))return!1;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;if(db(i))return!1}if(8===i.type)return!1;if(3===i.type&&!ub(i))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&Ba(i.value))return!1;if(n&&n(i))return!1}while(i=cb(i,r));return!0},e.prototype.walk=function(e){return cb(this,null,e)},e}(),hb=function(e){var t,n=/data:[^;]+;base64,([a-z0-9\+\/=]+)/gi,r=[],i={},o=Eu("img"),a=0,s=0;while(t=n.exec(e)){var l=t[0],c=o+"_"+s++;i[c]=l,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(c),a=t.index+l.length}var u=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:e,re:u}:(a<e.length&&r.push(e.substr(a)),{prefix:o,uris:i,html:r.join(""),re:u})},pb=function(e,t){return e.replace(t.re,(function(e){return Ae(t.uris,e).getOr(e)}))},mb=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(e);return t?I.some({type:t[1],data:decodeURIComponent(t[2])}):I.none()},gb=["img","video"],vb=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},yb=function(e,t){var n=q(e)?X(gb,t):e;return!n},bb=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?yb(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},_b=function(e,t,n){var r,i,o=1,a=e.getShortEndedElements(),s=/<([!?\/])?([A-Za-z0-9\-_:.]+)(\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g;s.lastIndex=r=n;while(i=s.exec(t)){if(r=s.lastIndex,"/"===i[1])o--;else if(!i[1]){if(i[2]in a)continue;o++}if(0===o)break}return r},wb=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},xb=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&wb(r,n)){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(t){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s=a.exec(e);return s?s.index+s[0].length:r.length},Sb=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null},Cb=function(e,t){void 0===t&&(t=Rs()),e=e||{},!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var n=e.comment?e.comment:h,r=e.cdata?e.cdata:h,i=e.text?e.text:h,o=e.start?e.start:h,a=e.end?e.end:h,s=e.pi?e.pi:h,l=e.doctype?e.doctype:h,c=function(c,u){void 0===u&&(u="html");var d,f,h,p,m,g,v,y,b,_,w,x,S,C,E,k,O,T,I,A,R=c.html,P=0,M=[],N=0,L=_s.decode,D=dn.makeMap("src,href,data,background,formaction,poster,xlink:href"),j=/((java|vb)script|mhtml):/i,F="html"===u?0:1,B=function(e){var t,n;t=M.length;while(t--)if(M[t].name===e)break;if(t>=0){for(n=M.length-1;n>=t;n--)e=M[n],e.valid&&a(e.name);M.length=t}},q=function(e,t){return i(pb(e,c),t)},z=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),n(pb(t,c)))},U=function(e){return pb(e,c)},G=function(e,t){var n=e||"",r=!lt(n,"--"),i=xb(R,r,t);return e=R.substr(t,i-t),z(r?n+e:e),i+1},V=function(t,n,r,i,o){var a,s,l=/[\s\u0000-\u001F]+/g;if(n=n.toLowerCase(),r=U(n in X?n:L(r||i||o||"")),Y&&!y&&!1===vb(n)){if(a=C[n],!a&&E){s=E.length;while(s--)if(a=E[s],a.pattern.test(n))break;-1===s&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if(D[n]&&!e.allow_script_urls){var c=r.replace(l,"");try{c=decodeURIComponent(c)}catch(u){c=unescape(c)}if(j.test(c))return;if(bb(e,c,t))return}y&&(n in D||0===n.indexOf("on"))||(p.map[n]=r,p.push({name:n,value:r}))},W=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),H=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,$=t.getShortEndedElements(),K=e.self_closing_elements||t.getSelfClosingElements(),X=t.getBoolAttrs(),Y=e.validate,J=e.remove_internals,Q=e.fix_self_closing,Z=t.getSpecialElements(),ee=R+">";while(d=W.exec(ee)){var te=d[0];if(P<d.index&&q(L(R.substr(P,d.index-P))),f=d[7])f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),B(f);else if(f=d[8]){if(d.index+te.length>R.length){q(L(R.substr(d.index))),P=d.index+te.length;continue}f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),b=f in $,Q&&K[f]&&M.length>0&&M[M.length-1].name===f&&B(f);var ne=Sb(H,d[9]);if(null!==ne){if("all"===ne){P=_b(t,R,W.lastIndex),W.lastIndex=P;continue}w=!1}if(!Y||(_=t.getElementRule(f))){if(w=!0,Y&&(C=_.attributes,E=_.attributePatterns),(S=d[9])?(y=-1!==S.indexOf("data-mce-type"),y&&J&&(w=!1),p=[],p.map={},S.replace(H,(function(e,t,n,r,i){return V(f,t,n,r,i),""}))):(p=[],p.map={}),Y&&!y){if(k=_.attributesRequired,O=_.attributesDefault,T=_.attributesForced,I=_.removeEmptyAttrs,I&&!p.length&&(w=!1),T){m=T.length;while(m--)x=T[m],v=x.name,A=x.value,"{$uid}"===A&&(A="mce_"+N++),p.map[v]=A,p.push({name:v,value:A})}if(O){m=O.length;while(m--)x=O[m],v=x.name,v in p.map||(A=x.value,"{$uid}"===A&&(A="mce_"+N++),p.map[v]=A,p.push({name:v,value:A}))}if(k){m=k.length;while(m--)if(k[m]in p.map)break;-1===m&&(w=!1)}if(x=p.map["data-mce-bogus"]){if("all"===x){P=_b(t,R,W.lastIndex),W.lastIndex=P;continue}w=!1}}w&&o(f,p,b)}else w=!1;if(h=Z[f]){h.lastIndex=P=d.index+te.length,(d=h.exec(R))?(w&&(g=R.substr(P,d.index-P)),P=d.index+d[0].length):(g=R.substr(P),P=R.length),w&&(g.length>0&&q(g,!0),a(f)),W.lastIndex=P;continue}b||(S&&S.indexOf("/")===S.length-1?w&&a(f):M.push({name:f,valid:w}))}else if(f=d[1])z(f);else if(f=d[2]){var re=1===F||e.preserve_cdata||M.length>0&&t.isValidChild(M[M.length-1].name,"#cdata");if(!re){P=G("",d.index+2),W.lastIndex=P;continue}r(f)}else if(f=d[3])l(f);else{if((f=d[4])||"<!"===te){P=G(f,d.index+te.length),W.lastIndex=P;continue}if(f=d[5]){if(1!==F){P=G("?",d.index+2),W.lastIndex=P;continue}s(f,d[6])}}P=d.index+te.length}for(P<R.length&&q(L(R.substr(P))),m=M.length-1;m>=0;m--)f=M[m],f.valid&&a(f.name)},u=function(e,t){void 0===t&&(t="html"),c(hb(e),t)};return{parse:u}};Cb.findEndTag=_b;var Eb=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},kb=function(e,t){var n,r,i,o,a=t,s=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,l=e.schema;a=Eb(e.getTempAttrs(),a);var c=l.getShortEndedElements();while(o=s.exec(a))r=s.lastIndex,i=o[0].length,n=c[o[1]]?r:Cb.findEndTag(l,a,r),a=a.substring(0,r-i)+a.substring(n),s.lastIndex=r-i;return aa(a)},Ob=kb,Tb=function(e,t){var n=ff(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Ib=function(e,t,n,r){var i;return t.format=n,t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),i="raw"===t.format?dn.trim(Ob(e.serializer,r.innerHTML)):"text"===t.format?e.dom.isEmpty(r)?"":aa(r.innerText||r.textContent):"tree"===t.format?e.serializer.serialize(r,t):Tb(e,e.serializer.serialize(r,t)),X(["text","tree"],t.format)||Qo(vn.fromDom(r))?t.content=i:t.content=dn.trim(i),t.no_events||e.fire("GetContent",t),t.content},Ab=function(e,t,n){return I.from(e.getBody()).fold(g("tree"===t.format?new fb("body",11):""),(function(r){return Ib(e,t,n,r)}))},Rb=dn.each,Pb=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return Rb(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n},i=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!!i(r(t),r(n))&&(!!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!lm(t)&&!lm(n)))};return{compare:t}},Mb=dn.makeMap,Nb=function(e){var t=[];e=e||{};var n=e.indent,r=Mb(e.indent_before||""),i=Mb(e.indent_after||""),o=_s.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,s,l){var c,u,d,f;if(n&&r[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n")),t.push("<",e),s)for(c=0,u=s.length;c<u;c++)d=s[c],t.push(" ",d.name,'="',o(d.value,!0),'"');t[t.length]=!l||a?">":" />",l&&n&&i[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&i[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:o(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",o(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},Lb=function(e,t){void 0===t&&(t=Rs());var n=Nb(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r,s,l,c,u,d,f,h,p,m=o[e.type];if(m)m(e);else{if(r=e.name,s=e.shortEnded,l=e.attributes,i&&l&&l.length>1&&(d=[],d.map={},p=t.getElementRule(e.name),p)){for(f=0,h=p.attributesOrder.length;f<h;f++)c=p.attributesOrder[f],c in l.map&&(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));for(f=0,h=l.length;f<h;f++)c=l[f].name,c in d.map||(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));l=d}if(n.start(e.name,l,s),!s){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(r)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},Db=function(e,t,n){return I.from(n.container()).filter(Xr).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))},jb=y(Db,!0,dm),Fb=y(Db,!1,dm),Bb=function(e){var t=e.container();return Xr(t)&&(0===t.data.length||oa(t.data)&&Sg.isBookmarkNode(t.parentNode))},qb=function(e,t){return function(n){return I.from(Qh(e?0:-1,n)).filter(t).isSome()}},zb=function(e){return ei(e)&&"block"===gi(vn.fromDom(e),"display")},Ub=function(e){return ni(e)&&!Wr(e)},Gb=qb(!0,zb),Vb=qb(!1,zb),Wb=qb(!0,ii),Hb=qb(!1,ii),$b=qb(!0,Hr),Kb=qb(!1,Hr),Xb=qb(!0,Ub),Yb=qb(!1,Ub),Jb=function(e){var t=[],n=e.dom;while(n)t.push(vn.fromDom(n)),n=n.lastChild;return t},Qb=function(e){var t=hu(e,"br"),n=te(Jb(e).slice(-1),Ho);t.length===n.length&&Q(n,xr)},Zb=function(e){wr(e),vr(e,vn.fromHtml('<br data-mce-bogus="1">'))},e_=function(e){nr(e).each((function(t){Xn(t).each((function(n){Go(e)&&Ho(t)&&Go(n)&&xr(t)}))}))},t_=function(e){return e.slice(0,-1)},n_=function(e,t,n){return Mn(t,e)?t_($n(e,(function(e){return n(e)||An(e,t)}))):[]},r_=function(e,t){return n_(e,t,S)},i_=function(e,t){return[e].concat(r_(e,t))},o_=function(e,t,n){return Mp(e,t,n,Bb)},a_=function(e,t){return oe(i_(vn.fromDom(t.container()),e),Go)},s_=function(e,t,n){return o_(e,t.dom,n).forall((function(e){return a_(t,n).fold((function(){return!1===Jh(e,n,t.dom)}),(function(r){return!1===Jh(e,n,t.dom)&&Mn(r,vn.fromDom(e.container()))}))}))},l_=function(e,t,n){return a_(t,n).fold((function(){return o_(e,t.dom,n).forall((function(e){return!1===Jh(e,n,t.dom)}))}),(function(t){return o_(e,t.dom,n).isNone()}))},c_=y(l_,!1),u_=y(l_,!0),d_=y(s_,!1),f_=y(s_,!0),h_=function(e){return sp(e).exists(Ho)},p_=function(e,t,n){var r=te(i_(vn.fromDom(n.container()),t),Go),i=me(r).getOr(t);return Rp(e,i.dom,n).filter(h_)},m_=function(e,t){return sp(t).exists(Ho)||p_(!0,e,t).isSome()},g_=function(e,t){return lp(t).exists(Ho)||p_(!1,e,t).isSome()},v_=y(p_,!1),y_=y(p_,!0),b_=function(e){return bd.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},__=function(e,t){var n=te(i_(vn.fromDom(t.container()),e),Go);return me(n).getOr(e)},w_=function(e,t){return b_(t)?Fb(t):Fb(t)||Dp(__(e,t).dom,t).exists(Fb)},x_=function(e,t){return b_(t)?jb(t):jb(t)||Lp(__(e,t).dom,t).exists(jb)},S_=function(e){return X(["pre","pre-wrap"],e)},C_=function(e){return sp(e).bind((function(e){return po(e,Fn)})).exists((function(e){return S_(gi(e,"white-space"))}))},E_=function(e,t){return Dp(e.dom,t).isNone()},k_=function(e,t){return Lp(e.dom,t).isNone()},O_=function(e,t){return E_(e,t)||k_(e,t)||c_(e,t)||u_(e,t)||g_(e,t)||m_(e,t)},T_=function(e,t){return!C_(t)&&(O_(e,t)||w_(e,t)||x_(e,t))},I_=function(e,t){return!C_(t)&&(c_(e,t)||d_(e,t)||g_(e,t)||w_(e,t))},A_=function(e){var t=e.container(),n=e.offset();return Xr(t)&&n<t.data.length?bd(t,n+1):e},R_=function(e,t){return!C_(t)&&(u_(e,t)||f_(e,t)||m_(e,t)||x_(e,t))},P_=function(e,t){return I_(e,t)||R_(e,A_(t))},M_=function(e,t){return um(e.charAt(t))},N_=function(e){var t=e.container();return Xr(t)&&st(t.data,ta)},L_=function(e){var t=e.split("");return J(t,(function(e,n){return um(e)&&n>0&&n<t.length-1&&fm(t[n-1])&&fm(t[n+1])?" ":e})).join("")},D_=function(e,t){var n=t.data,r=bd(t,0);return!(!M_(n,0)||P_(e,r))&&(t.data=" "+n.slice(1),!0)},j_=function(e){var t=e.data,n=L_(t);return n!==t&&(e.data=n,!0)},F_=function(e,t){var n=t.data,r=bd(t,n.length-1);return!(!M_(n,n.length-1)||P_(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},B_=function(e,t){return I.some(t).filter(N_).bind((function(t){var n=t.container(),r=D_(e,n)||j_(n)||F_(e,n);return r?I.some(t):I.none()}))},q_=function(e){var t=vn.fromDom(e.getBody());e.selection.isCollapsed()&&B_(t,bd.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},z_=function(e,t,n){var r=re(e,(function(r,i){return dm(i)||um(i)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+ta}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}}),{previousCharIsSpace:!1,str:""});return r.str},U_=function(e,t,n){if(0!==n){var r=vn.fromDom(e),i=ho(r,Go).getOr(r),o=e.data.slice(t,t+n),a=t+n>=e.data.length&&R_(i,bd(e,e.data.length)),s=0===t&&I_(i,bd(e,0));e.replaceData(t,n,z_(o,s,a))}},G_=function(e,t){var n=e.data.slice(t),r=n.length-dt(n).length;return U_(e,t,r)},V_=function(e,t){var n=e.data.slice(0,t),r=n.length-ft(n).length;return U_(e,t-r,r)},W_=function(e,t,n,r){void 0===r&&(r=!0);var i=ft(e.data).length,o=r?e:t,a=r?t:e;return r?o.appendData(a.data):o.insertData(0,a.data),xr(vn.fromDom(a)),n&&G_(o,i),o},H_=function(e,t){var n=e.container(),r=e.offset();return!1===bd.isTextPosition(e)&&n===t.parentNode&&r>bd.before(t).offset()},$_=function(e,t){return H_(t,e)?bd(t.container(),t.offset()-1):t},K_=function(e){return Xr(e)?bd(e,0):bd.before(e)},X_=function(e){return Xr(e)?bd(e,e.data.length):bd.after(e)},Y_=function(e){return Ra(e.previousSibling)?I.some(X_(e.previousSibling)):e.previousSibling?Fp(e.previousSibling):I.none()},J_=function(e){return Ra(e.nextSibling)?I.some(K_(e.nextSibling)):e.nextSibling?jp(e.nextSibling):I.none()},Q_=function(e,t){var n=bd.before(t.previousSibling?t.previousSibling:t.parentNode);return Dp(e,n).fold((function(){return Lp(e,bd.after(t))}),I.some)},Z_=function(e,t){return Lp(e,bd.after(t)).fold((function(){return Dp(e,bd.before(t))}),I.some)},ew=function(e,t){return Y_(t).orThunk((function(){return J_(t)})).orThunk((function(){return Q_(e,t)}))},tw=function(e,t){return J_(t).orThunk((function(){return Y_(t)})).orThunk((function(){return Z_(e,t)}))},nw=function(e,t,n){return e?tw(t,n):ew(t,n)},rw=function(e,t,n){return nw(e,t,n).map(y($_,n))},iw=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},ow=function(e){return function(t){return t.dom===e}},aw=function(e,t){return t&&Re(e.schema.getBlockElements(),Nn(t))},sw=function(e){if(Ka(e)){var t=vn.fromHtml('<br data-mce-bogus="1">');return wr(e),vr(e,t),I.some(bd.before(t.dom))}return I.none()},lw=function(e,t,n){var r=Xn(e).filter(Bn),i=Yn(e).filter(Bn);return xr(e),ju(r,i,t,(function(e,t,r){var i=e.dom,o=t.dom,a=i.data.length;return W_(i,o,n),r.container()===o?bd(i,a):r})).orThunk((function(){return n&&(r.each((function(e){return V_(e.dom,e.dom.length)})),i.each((function(e){return G_(e.dom,0)}))),t}))},cw=function(e,t){return Re(e.schema.getTextInlineElements(),Nn(t))},uw=function(e,t,n,r){void 0===r&&(r=!0);var i=rw(t,e.getBody(),n.dom),o=ho(n,y(aw,e),ow(e.getBody())),a=lw(n,i,cw(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):o.bind(sw).fold((function(){r&&iw(e,t,a)}),(function(n){r&&iw(e,t,I.some(n))}))},dw=function(e,t){return{start:e,end:t}},fw=function(e,t,n){return{rng:e,table:t,cells:n}},hw=Vi.generate([{removeTable:["element"]},{emptyCells:["cells"]},{deleteCellSelection:["rng","cell"]}]),pw=function(e){return function(t){return An(e,t)}},mw=function(e,t){return bo(vn.fromDom(e),"td,th",t)},gw=function(e,t){return vo(e,"table",t)},vw=function(e){return!An(e.start,e.end)},yw=function(e,t){return gw(e.start,t).bind((function(n){return gw(e.end,t).bind((function(e){return Fu(An(n,e),n)}))}))},bw=function(e,t){return!vw(e)&&yw(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},_w=function(e){return hu(e,"td,th")},ww=function(e,t){var n=mw(e.startContainer,t),r=mw(e.endContainer,t);return Du(n,r,dw)},xw=function(e,t){return gw(e.start,t).bind((function(t){return ge(_w(t)).map((function(t){return dw(e.start,t)}))}))},Sw=function(e,t){var n=mw(t.startContainer,e),r=mw(t.endContainer,e);return t.collapsed?I.none():Du(n,r,dw).fold((function(){return n.fold((function(){return r.bind((function(t){return gw(t,e).bind((function(e){return me(_w(e)).map((function(e){return dw(e,t)}))}))}))}),(function(t){return gw(t,e).bind((function(e){return ge(_w(e)).map((function(e){return dw(t,e)}))}))}))}),(function(t){return Cw(e,t)?I.none():xw(t,e)}))},Cw=function(e,t){return yw(t,e).isSome()},Ew=function(e,t){return yw(e,t).map((function(t){return fw(e,t,_w(t))}))},kw=function(e,t,n){return e.filter((function(e){return vw(e)&&Cw(n,e)})).orThunk((function(){return Sw(n,t)})).bind((function(e){return Ew(e,n)}))},Ow=function(e,t){return ae(e,(function(e){return An(e,t)}))},Tw=function(e){return Du(Ow(e.cells,e.rng.start),Ow(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},Iw=function(e,t,n){return e.filter((function(e){return bw(e,n)&&lg(e.start,t)})).map((function(e){return e.start}))},Aw=function(e){return Tw(e).map((function(t){var n=e.cells;return t.length===n.length?hw.removeTable(e.table):hw.emptyCells(t)}))},Rw=function(e,t){var n=pw(e),r=ww(t,n);return Iw(r,t,n).map((function(e){return hw.deleteCellSelection(t,e)})).orThunk((function(){return kw(r,t,n).bind(Aw)}))},Pw=function(e){var t=jn(e)?Xn(e):nr(e);return t.bind(Pw).orThunk((function(){return I.some(e)}))},Mw=function(e,t){return Q(t,Zb),e.selection.setCursorLocation(t[0].dom,0),!0},Nw=function(e,t,n){t.deleteContents();var r=Pw(n).getOr(n),i=vn.fromDom(e.dom.getParent(r.dom,e.dom.isBlock));if(Ka(i)&&(Zb(i),e.selection.setCursorLocation(i.dom,0)),!An(n,i)){var o=Hn(i).is(n)?[]:Kn(i);Q(o.concat(Zn(n)),(function(e){An(e,i)||Mn(e,i)||xr(e)}))}return!0},Lw=function(e,t){return uw(e,!1,t),!0},Dw=function(e,t,n){return Rw(t,n).map((function(t){return t.fold(y(Lw,e),y(Mw,e),y(Nw,e))}))},jw=function(e,t){return Gw(e,t)},Fw=function(e,t,n,r){return zw(t,r).fold((function(){return Dw(e,t,n)}),(function(t){return jw(e,t)})).getOr(!1)},Bw=function(e,t){var n=vn.fromDom(e.getBody()),r=e.selection.getRng(),i=rg(e);return 0!==i.length?Mw(e,i):Fw(e,n,r,t)},qw=function(e,t){return oe(i_(t,e),Jo)},zw=function(e,t){return oe(i_(t,e),(function(e){return"caption"===Nn(e)}))},Uw=function(e,t,n,r,i){return Pp(n,e.getBody(),i).bind((function(e){return qw(t,vn.fromDom(e.getNode())).map((function(e){return!1===An(e,r)}))}))},Gw=function(e,t){return Zb(t),e.selection.setCursorLocation(t.dom,0),I.some(!0)},Vw=function(e,t,n,r){return jp(e.dom).bind((function(i){return Fp(e.dom).map((function(e){return t?n.isEqual(i)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(i)}))})).getOr(!0)},Ww=function(e,t){return Gw(e,t)},Hw=function(e,t,n){return zw(e,vn.fromDom(n.getNode())).map((function(e){return!1===An(e,t)}))},$w=function(e,t,n,r,i){return Pp(n,e.getBody(),i).bind((function(o){return Vw(r,n,i,o)?Ww(e,r):Hw(t,r,o)})).or(I.some(!0))},Kw=function(e,t,n,r){var i=bd.fromRangeStart(e.selection.getRng());return qw(n,r).bind((function(r){return Ka(r)?Gw(e,r):Uw(e,n,t,r,i)})).getOr(!1)},Xw=function(e,t,n,r){var i=bd.fromRangeStart(e.selection.getRng());return Ka(r)?Gw(e,r):$w(e,n,t,r,i)},Yw=function(e,t){return e?$b(t):Kb(t)},Jw=function(e,t){var n=bd.fromRangeStart(e.selection.getRng());return Yw(t,n)||Rp(t,e.getBody(),n).exists((function(e){return Yw(t,e)}))},Qw=function(e,t,n){var r=vn.fromDom(e.getBody());return zw(r,n).fold((function(){return Kw(e,t,r,n)||Jw(e,t)}),(function(n){return Xw(e,t,r,n).getOr(!1)}))},Zw=function(e,t){var n=vn.fromDom(e.selection.getStart(!0)),r=rg(e);return e.selection.isCollapsed()&&0===r.length?Qw(e,t,n):Bw(e,n)},ex=function(e,t,n,r){var i=document.createRange();return i.setStart(e,t),i.setEnd(n,r),i},tx=function(e){var t=bd.fromRangeStart(e),n=bd.fromRangeEnd(e),r=e.commonAncestorContainer;return Rp(!1,r,n).map((function(i){return!Jh(t,n,r)&&Jh(t,i,r)?ex(t.container(),t.offset(),i.container(),i.offset()):e})).getOr(e)},nx=function(e){return e.collapsed?e:tx(e)},rx=function(e){return e.firstChild&&e.firstChild===e.lastChild},ix=function(e){return"br"===e.name||e.value===ta},ox=function(e,t){var n=e.getBlockElements();return n[t.name]&&rx(t)&&ix(t.firstChild)},ax=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||ox(e,t))},sx=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),ax(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},lx=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},cx=function(e,t,n){var r=t.serialize(n),i=e.createFragment(r);return lx(i)},ux=function(e){return dn.grep(e.childNodes,(function(e){return"LI"===e.nodeName}))},dx=function(e){return e.data===ta||Zr(e)},fx=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&dx(e.firstChild)},hx=function(e){return!e.firstChild||fx(e)},px=function(e){return e.length>0&&hx(e[e.length-1])?e.slice(0,-1):e},mx=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},gx=function(e,t){return!!mx(e,t)},vx=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},yx=function(e,t){var n=bd.before(e),r=Sp(t),i=r.next(n);return i?i.toRange():null},bx=function(e,t){var n=bd.after(e),r=Sp(t),i=r.prev(n);return i?i.toRange():null},_x=function(e,t,n,r){var i=vx(e,r),o=e.parentNode;return o.insertBefore(i[0],e),dn.each(t,(function(t){o.insertBefore(t,e)})),o.insertBefore(i[1],e),o.removeChild(e),bx(t[t.length-1],n)},wx=function(e,t,n){var r=e.parentNode;return dn.each(t,(function(t){r.insertBefore(t,e)})),yx(e,n)},xx=function(e,t,n,r){return r.insertAfter(t.reverse(),e),bx(t[0],n)},Sx=function(e,t,n,r){var i=cx(t,e,r),o=mx(t,n.startContainer),a=px(ux(i.firstChild)),s=1,l=2,c=t.getRoot(),u=function(e){var r=bd.fromRangeStart(n),i=Sp(t.getRoot()),a=e===s?i.prev(r):i.next(r);return!a||mx(t,a.getNode())!==o};return u(s)?wx(o,a,c):u(l)?xx(o,a,c,t):_x(o,a,c,n)},Cx=function(e,t,n){var r=vn.fromDom(e.getRoot());return n=I_(r,bd.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=R_(r,bd.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},Ex=ri,kx=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,Ex);return n===r&&lg(vn.fromDom(n),t)}return!1},Ox=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},Tx=function(e,t){I.from(e.getParent(t,"td,th")).map(vn.fromDom).each(e_)},Ix=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var i=e.getBody(),o=Pb(r);dn.each(r.select("*[data-mce-fragment]"),(function(e){for(var t=e.parentNode;t&&t!==i;t=t.parentNode)n[e.nodeName.toLowerCase()]&&o.compare(t,e)&&r.remove(e,!0)}))}},Ax=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},Rx=function(e){dn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},Px=function(e){return!!e.getAttribute("data-mce-fragment")},Mx=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},Nx=function(e,t){var n,r,i=e.dom,o=e.selection,a=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===i.getContentEditable(t))return t;return null};if(t){o.scrollIntoView(t);var s=a(t);if(s)return i.remove(t),void o.select(s);var l=i.createRng(),c=t.previousSibling;c&&3===c.nodeType?(l.setStart(c,c.nodeValue.length),Jt.ie||(r=t.nextSibling,r&&3===r.nodeType&&(c.appendData(r.data),r.parentNode.removeChild(r)))):(l.setStartBefore(t),l.setEndBefore(t));var u=function(t){var n=bd.fromRangeStart(t),r=Sp(e.getBody());if(n=r.next(n),n)return n.toRange()},d=i.getParent(t,i.isBlock);i.remove(t),d&&i.isEmpty(d)&&(e.$(d).empty(),l.setStart(d,0),l.setEnd(d,0),Ex(d)||Px(d)||!(n=u(l))?i.add(d,i.create("br",{"data-mce-bogus":"1"})):(l=n,i.remove(d))),o.setRng(l)}},Lx=function(e){var t=e.dom,n=nx(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,Ex);kx(t,n,r)?Nw(e,n,vn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},Dx=function(e,t,n){var r,i,o,a,s,l,c=e.selection,u=e.dom;/^ | $/.test(t)&&(t=Cx(u,c.getRng(),t));var d=e.parser,f=n.merge,h=Lb({validate:Hf(e)},e.schema),p='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>';if(o={content:t,format:"html",selection:!0,paste:n.paste},o=e.fire("BeforeSetContent",o),o.isDefaultPrevented())e.fire("SetContent",{content:o.content,format:"html",selection:!0,paste:n.paste});else{t=o.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,p),s=c.getRng();var m=s.startContainer||(s.parentElement?s.parentElement():null),g=e.getBody();m===g&&c.isCollapsed()&&u.isBlock(g.firstChild)&&Mx(e,g.firstChild)&&u.isEmpty(g.firstChild)&&(s=u.createRng(),s.setStart(g.firstChild,0),s.setEnd(g.firstChild,0),c.setRng(s)),c.isCollapsed()||Lx(e),r=c.getNode();var v={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},y=d.parse(t,v);if(!0===n.paste&&sx(e.schema,y)&&gx(u,r))return s=Sx(h,u,c.getRng(),y),c.setRng(s),void e.fire("SetContent",o);if(Ax(y),l=y.lastChild,"mce_marker"===l.attr("id"))for(a=l,l=l.prev;l;l=l.walk(!0))if(3===l.type||!u.isBlock(l.name)){e.schema.isValidChild(l.parent.name,"span")&&l.parent.insert(a,l,"br"===l.name);break}if(e._selectionOverrides.showBlockCaretContainer(r),v.invalid){e.selection.setContent(p),r=c.getNode(),i=e.getBody(),9===r.nodeType?r=l=i:l=r;while(l!==i)r=l,l=l.parentNode;t=r===i?i.innerHTML:u.getOuterHTML(r),t=h.serialize(d.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return h.serialize(y)})))),r===i?u.setHTML(i,t):u.setOuterHTML(r,t)}else t=h.serialize(y),Ox(e,t,r);Ix(e,f),Nx(e,u.get("mce_marker")),Rx(e.getBody()),Tx(u,c.getStart()),e.fire("SetContent",o),e.addVisual()}},jx=function(e,t){t(e),e.firstChild&&jx(e.firstChild,t),e.next&&jx(e.next,t)},Fx=function(e,t,n){var r={},i={},o=[];for(var a in n.firstChild&&jx(n.firstChild,(function(n){Q(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Q(t,(function(e){"string"===typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})}))})),r)r.hasOwnProperty(a)&&o.push(r[a]);for(var s in i)i.hasOwnProperty(s)&&o.push(i[s]);return o},Bx=function(e,t,n){var r=Fx(e,t,n);Q(r,(function(e){Q(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},qx="html",zx=function(e){return e instanceof fb},Ux=function(e){Xy(e)&&jp(e.getBody()).each((function(t){var n=t.getNode(),r=Hr(n)?jp(n).getOr(t):t;e.selection.setRng(r.toRange())}))},Gx=function(e,t){e.dom.setHTML(e.getBody(),t),Ux(e)},Vx=function(e,t,n,r){var i,o;return 0===n.length||/^\s+$/.test(n)?(o='<br data-mce-bogus="1">',"TABLE"===t.nodeName?n="<tr><td>"+o+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+o+"</li>"),i=ff(e),i&&e.schema.isValidChild(t.nodeName.toLowerCase(),i.toLowerCase())?(n=o,n=e.dom.createHTML(i,hf(e),n)):n||(n='<br data-mce-bogus="1">'),Gx(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=Lb({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=Qo(vn.fromDom(t))?n:dn.trim(n),Gx(e,r.content),r.no_events||e.fire("SetContent",r)),r.content},Wx=function(e,t,n,r){Bx(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var i=Lb({validate:e.validate},e.schema).serialize(n);return r.content=Qo(vn.fromDom(t))?i:dn.trim(i),Gx(e,r.content),r.no_events||e.fire("SetContent",r),n},Hx=function(e,t,n){return n.format=n.format?n.format:qx,n.set=!0,n.content=zx(t)?"":t,n.no_events||e.fire("BeforeSetContent",n),zx(t)||(t=n.content),I.from(e.getBody()).fold(g(t),(function(r){return zx(t)?Wx(e,r,t,n):Vx(e,r,t,n)}))},$x=function(e,t){return mo(e,t).isSome()},Kx=function(e){return U(e)?e:S},Xx=function(e,t,n){var r=e.dom,i=Kx(n);while(r.parentNode){r=r.parentNode;var o=vn.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return I.none()},Yx=function(e,t,n){var r=t(e),i=Kx(n);return r.orThunk((function(){return i(e)?I.none():Xx(e,t,i)}))},Jx=xm,Qx=function(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++)if(!1===r[i].inherit&&e.dom.is(t,r[i].selector))return!0;return!1},Zx=function(e,t,n,r){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,(function(t){return!!Qx(e,t,n)||(t.parentNode===i||!!nS(e,t,n,r,!0))})),nS(e,t,n,r))},eS=function(e,t,n){return!!Jx(t,n.inline)||(!!Jx(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},tS=function(e,t,n,r,i,o){var a,s,l,c=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(c)if("undefined"===typeof c.length){for(a in c)if(c.hasOwnProperty(a)){if(s="attributes"===r?e.getAttrib(t,a):Cm(e,t,a),i&&!s&&!n.exact)return;if((!i||n.exact)&&!Jx(s,Sm(e,wm(c[a],o),a)))return}}else for(l=0;l<c.length;l++)if("attributes"===r?e.getAttrib(t,c[l]):Cm(e,t,c[l]))return n;return n},nS=function(e,t,n,r,i){var o,a,s,l,c=e.formatter.get(n),u=e.dom;if(c&&t)for(a=0;a<c.length;a++)if(o=c[a],eS(e.dom,t,o)&&tS(u,t,o,"attributes",i,r)&&tS(u,t,o,"styles",i,r)){if(l=o.classes)for(s=0;s<l.length;s++)if(!e.dom.hasClass(t,l[s]))return;return o}},rS=function(e,t,n,r){if(r)return Zx(e,r,t,n);if(r=e.selection.getNode(),Zx(e,r,t,n))return!0;var i=e.selection.getStart();return!(i===r||!Zx(e,i,t,n))},iS=function(e,t,n){var r=[],i={},o=e.selection.getStart();return e.dom.getParent(o,(function(o){for(var a=0;a<t.length;a++){var s=t[a];!i[s]&&nS(e,o,s,n)&&(i[s]=!0,r.push(s))}}),e.dom.getRoot()),r},oS=function(e,t){var n=function(t){return An(t,vn.fromDom(e.getBody()))},r=function(t,n){return nS(e,t.dom,n)?I.some(n):I.none()};return I.from(e.selection.getStart(!0)).bind((function(e){return Yx(vn.fromDom(e),(function(e){return ye(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},aS=function(e,t){var n,r,i,o,a,s=e.formatter.get(t),l=e.dom;if(s)for(n=e.selection.getStart(),r=km(l,n),o=s.length-1;o>=0;o--){if(a=s[o].selector,!a||s[o].defaultBlock)return!0;for(i=r.length-1;i>=0;i--)if(l.is(r[i],a))return!0}return!1},sS=function(e,t,n){return re(n,(function(n,r){var i=Om(e,r);return e.formatter.matchNode(t,r,{},i)?n.concat([r]):n}),[])},lS=ia,cS="_mce_caret",uS=function(e,t){return e.importNode(t,!0)},dS=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==lS||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},fS=function(e){return dS(e).length>0},hS=function(e){if(e){var t=new Po(e,e);for(e=t.current();e;e=t.next())if(Xr(e))return e}return null},pS=function(e){var t=vn.fromTag("span");return li(t,{id:cS,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&vr(t,vn.fromText(lS)),t},mS=function(e){var t=hS(e);return t&&t.nodeValue.charAt(0)===lS&&t.deleteData(0,1),t},gS=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(fS(t))uw(e,!1,vn.fromDom(t),n);else{var o=i.getRng(),a=r.getParent(t,r.isBlock),s=o.startContainer,l=o.startOffset,c=o.endContainer,u=o.endOffset,d=mS(t);r.remove(t,!0),s===d&&l>0&&o.setStart(d,l-1),c===d&&u>0&&o.setEnd(d,u-1),a&&r.isEmpty(a)&&Zb(vn.fromDom(a)),i.setRng(o)}},vS=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)gS(e,t,n);else if(t=zp(e.getBody(),i.getStart()),!t)while(t=r.get(cS))gS(e,t,!1)},yS=function(e,t,n){var r=e.dom,i=r.getParent(n,y(vm,e));i&&r.isEmpty(i)?n.parentNode.replaceChild(t,n):(Qb(vn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},bS=function(e,t){return e.appendChild(t),t},_S=function(e,t){var n=ne(e,(function(e,t){return bS(e,t.cloneNode(!1))}),t);return bS(n,n.ownerDocument.createTextNode(lS))},wS=function(e,t,n,r,i,o){var a=e.formatter,s=e.dom,l=te(be(a.get()),(function(e){return e!==r&&!st(e,"removeformat")})),c=sS(e,n,l),u=te(c,(function(t){return!Tm(e,t,r)}));if(u.length>0){var d=n.cloneNode(!1);return s.add(t,d),a.remove(r,i,d,o),s.remove(d),I.some(d)}return I.none()},xS=function(e,t,n){var r,i,o=e.selection,a=o.getRng(),s=a.startOffset,l=a.startContainer,c=l.nodeValue;r=zp(e.getBody(),o.getStart()),r&&(i=hS(r));var u=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(c&&s>0&&s<c.length&&u.test(c.charAt(s))&&u.test(c.charAt(s-1))){var d=o.getBookmark();a.collapse(!0);var f=$m(e,a,e.formatter.get(t));f=av(f),e.formatter.apply(t,n,f),o.moveToBookmark(d)}else r&&i.nodeValue===lS||(r=uS(e.getDoc(),pS(!0).dom),i=r.firstChild,a.insertNode(r),s=1),e.formatter.apply(t,n,r),o.setCursorLocation(i,s)},SS=function(e,t,n,r){var i,o,a,s=e.dom,l=e.selection,c=[],u=l.getRng(),d=u.startContainer,f=u.startOffset;o=d,3===d.nodeType&&(f!==d.nodeValue.length&&(i=!0),o=o.parentNode);while(o){if(nS(e,o,t,n,r)){a=o;break}o.nextSibling&&(i=!0),c.push(o),o=o.parentNode}if(a)if(i){var h=l.getBookmark();u.collapse(!0);var p=$m(e,u,e.formatter.get(t),!0);p=av(p),e.formatter.remove(t,n,p,r),l.moveToBookmark(h)}else{var m=zp(e.getBody(),a),g=pS(!1).dom;yS(e,g,null!==m?m:a);var v=wS(e,g,a,t,n,r),y=_S(c.concat(v.toArray()),g);gS(e,m,!1),l.setCursorLocation(y,1),s.isEmpty(a)&&s.remove(a)}},CS=function(e,t){var n=e.selection,r=e.getBody();vS(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==lS||vS(e,zp(r,n.getStart())),37!==t&&39!==t||vS(e,zp(r,n.getStart()))},ES=function(e){e.on("mouseup keydown",(function(t){CS(e,t.keyCode)}))},kS=function(e,t){var n=pS(!1),r=_S(t,n.dom);return pr(vn.fromDom(e),n),xr(vn.fromDom(e)),bd(r,0)},OS=function(e,t){var n=e.schema.getTextInlineElements();return n.hasOwnProperty(Nn(t))&&!qp(t.dom)&&!Vr(t.dom)},TS=function(e){return qp(e.dom)&&fS(e.dom)},IS={},AS=Fe,RS=De,PS=function(e,t){var n=IS[e];n||(IS[e]=[]),IS[e].push(t)},MS=function(e,t){RS(IS[e],(function(e){e(t)}))};PS("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return o(e.previousSibling)&&-1!==Be(t,e.previousSibling)},i=function(e,t){wc(t).remove(),wc(e).append("<br><br>").append(t.childNodes)},o=qr(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),RS(AS(AS(t,o),r),(function(e){i(e.previousSibling,e)})))}));var NS=dn.each,LS=function(e){return Br(e)&&!lm(e)&&!qp(e)&&!Vr(e)},DS=function(e,t){var n;for(n=e;n;n=n[t]){if(Xr(n)&&0!==n.nodeValue.length)return e;if(Br(n)&&!lm(n))return n}return e},jS=function(e,t,n){var r,i,o=Pb(e);if(t&&n&&(t=DS(t,"previousSibling"),n=DS(n,"nextSibling"),o.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)i=r,r=r.nextSibling,t.appendChild(i);return e.remove(n),dn.each(dn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},FS=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var i=jS(e,gm(r),r);jS(e,i,gm(i,!0))}},BS=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";NS(e.select(r,n),(function(n){LS(n)&&NS(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},qS=function(e,t,n){NS(e.childNodes,(function(e){LS(e)&&(t(e)&&n(e),e.hasChildNodes()&&qS(e,t,n))}))},zS=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},US=function(e,t){return function(n){return!(!n||!Cm(e,n,t))}},GS=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),zS(e,r)}},VS=Vi.generate([{keep:[]},{rename:["name"]},{removed:[]}]),WS=/^(src|href|style)$/,HS=dn.each,$S=xm,KS=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},XS=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},YS=function(e,t,n){var r,i;if(r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"],Br(r)){var o=r.childNodes.length-1;!n&&i&&i--,r=r.childNodes[i>o?o:i]}return Xr(r)&&n&&i>=r.nodeValue.length&&(r=new Po(r,e.getBody()).next()||r),Xr(r)&&!n&&0===i&&(r=new Po(r,e.getBody()).prev()||r),r},JS=function(e,t){var n=t?"firstChild":"lastChild";if(KS(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},QS=function(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i},ZS=function(e,t,n,r,i){var o=vn.fromDom(t),a=vn.fromDom(e.create(r,i)),s=n?Qn(o):Jn(o);return _r(a,s),n?(pr(o,a),gr(a,o)):(mr(o,a),vr(a,o)),a.dom},eC=function(e,t,n){return!!$S(t,n.inline)||(!!$S(t,n.block)||(n.selector?Br(t)&&e.is(t,n.selector):void 0))},tC=function(e,t){return t.links&&"A"===e.nodeName},nC=function(e,t,n,r){return t=gm(t,n,r),!t||"BR"===t.nodeName||e.isBlock(t)},rC=function(e,t,n){var r,i=t.parentNode,o=e.dom,a=ff(e);n.block&&(a?i===o.getRoot()&&(n.list_block&&$S(t,n.list_block)||Q(ve(t.childNodes),(function(t){ym(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=QS(o,t,a),o.setAttribs(r,e.settings.forced_root_block_attrs)):r=0}))):o.isBlock(t)&&!o.isBlock(i)&&(nC(o,t,!1)||nC(o,t.firstChild,!0,!0)||t.insertBefore(o.create("br"),t.firstChild),nC(o,t,!0)||nC(o,t.lastChild,!1,!0)||t.appendChild(o.create("br")))),n.selector&&n.inline&&!$S(n.inline,t)||o.remove(t,!0)},iC=function(e,t,n,r,i){var o,a=e.dom;if(!eC(a,r,t)&&!tC(r,t))return VS.keep();var s=r;if(t.inline&&"all"===t.remove&&D(t.preserve_attributes)){var l=te(a.getAttribs(s),(function(e){return X(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(s),Q(l,(function(e){return a.setAttrib(s,e.name,e.value)})),l.length>0)return VS.rename("span")}if("all"!==t.remove){HS(t.styles,(function(e,r){e=Sm(a,wm(e,n),r+""),G(r)&&(r=e,i=null),(t.remove_similar||!i||$S(Cm(a,i,r),e))&&a.setStyle(s,r,""),o=!0})),o&&""===a.getAttrib(s,"style")&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style")),HS(t.attributes,(function(e,r){var o;if(e=wm(e,n),G(r)&&(r=e,i=null),t.remove_similar||!i||$S(a.getAttrib(i,r),e)){if("class"===r&&(e=a.getAttrib(s,r),e&&(o="",Q(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)})),o)))return void a.setAttrib(s,r,o);"class"===r&&s.removeAttribute("className"),WS.test(r)&&s.removeAttribute("data-mce-"+r),s.removeAttribute(r)}})),HS(t.classes,(function(e){e=wm(e,n),i&&!a.hasClass(i,e)||a.removeClass(s,e)}));for(var c=a.getAttribs(s),u=0;u<c.length;u++){var d=c[u].nodeName;if(0!==d.indexOf("_")&&0!==d.indexOf("data-"))return VS.keep()}}return"none"!==t.remove?(rC(e,s,t),VS.removed()):VS.keep()},oC=function(e,t,n,r,i){return iC(e,t,n,r,i).fold(S,(function(t){return e.dom.rename(r,t),!0}),C)},aC=function(e,t,n,r,i){var o;return Q(km(e.dom,t.parentNode).reverse(),(function(t){if(!o&&"_start"!==t.id&&"_end"!==t.id){var a=nS(e,t,n,r,i);a&&!1!==a.split&&(o=t)}})),o},sC=function(e,t,n,r){return iC(e,t,n,r,r).fold(g(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),g(null))},lC=function(e,t,n,r,i,o,a,s){var l,c,u,d=e.dom;if(n){for(var f=n.parentNode,h=r.parentNode;h&&h!==f;h=h.parentNode){l=d.clone(h,!1);for(var p=0;p<t.length;p++)if(l=sC(e,t[p],s,l),null===l)break;l&&(c&&l.appendChild(c),u||(u=l),c=l)}!o||a.mixed&&d.isBlock(n)||(r=d.split(n,r)),c&&(i.parentNode.insertBefore(c,i),u.appendChild(i),a.inline&&FS(d,a,s,c))}return r},cC=function(e,t,n,r,i){var o=e.formatter.get(t),a=o[0],s=!0,l=e.dom,c=e.selection,u=function(r){var s=aC(e,r,t,n,i);return lC(e,o,s,r,r,!0,a,n)},d=function(e){return lm(e)&&Br(e)&&("_start"===e.id||"_end"===e.id)},f=function(t){var r,i;Br(t)&&l.getContentEditable(t)&&(r=s,s="true"===l.getContentEditable(t),i=!0);var c=ve(t.childNodes);if(s&&!i)for(var u=0;u<o.length;u++)if(oC(e,o[u],n,t,t))break;if(a.deep&&c.length){for(u=0;u<c.length;u++)f(c[u]);i&&(s=r)}},h=function(e){var t=l.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return d(n)&&(n=n[e?"firstChild":"lastChild"]),Xr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),l.remove(t,!0),n},p=function(t){var n,r,i=$m(e,t,o,t.collapsed);if(a.split){if(i=av(i),n=YS(e,i,!0),r=YS(e,i),n!==r){if(n=JS(n,!0),r=JS(r,!1),XS(l,n,r)){var s=I.from(n.firstChild).getOr(n);return u(ZS(l,s,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void h(!0)}if(XS(l,r,n)){s=I.from(r.lastChild).getOr(r);return u(ZS(l,s,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void h(!1)}n=QS(l,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=QS(l,r,"span",{id:"_end","data-mce-type":"bookmark"});var c=l.createRng();c.setStartAfter(n),c.setEndBefore(r),Ym(l,c,(function(e){Q(e,(function(e){lm(e)||lm(e.parentNode)||u(e)}))})),u(n),u(r),n=h(!0),r=h()}else n=r=u(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=l.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=l.nodeIndex(r)+1}Ym(l,i,(function(t){Q(t,(function(t){f(t);var n=["underline","line-through","overline"];Q(n,(function(n){Br(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Em(l,t.parentNode)===n&&oC(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))}))}))};if(r)if(hm(r)){var m=l.createRng();m.setStartBefore(r),m.setEndAfter(r),p(m)}else p(r);else if("false"!==l.getContentEditable(c.getNode()))c.isCollapsed()&&a.inline&&!rg(e).length?SS(e,t,n,i):(fg(c,!0,(function(){dg(e,p)})),a.inline&&rS(e,t,n,c.getStart())&&mm(l,c,c.getRng()),e.nodeChanged());else{r=c.getNode();for(var g=0;g<o.length;g++)if(o[g].ceFalseOverride&&oC(e,o[g],n,r,r))break}},uC=dn.each,dC=function(e,t,n,r){var i=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=Em(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(dn.walk(r,i,"childNodes"),i(r))},fC=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&qS(r,US(e,"fontSize"),GS(e,"backgroundColor",wm(t.styles.backgroundColor,n)))},hC=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(qS(r,US(e,"fontSize"),GS(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},pC=function(e,t,n,r){uC(t,(function(t){uC(e.dom.select(t.inline,r),(function(r){LS(r)&&oC(e,t,n,r,t.exact?r:null)})),BS(e.dom,t,r)}))},mC=function(e,t,n,r,i){nS(e,i.parentNode,n,r)&&oC(e,t,r,i)||t.merge_with_parents&&e.dom.getParent(i.parentNode,(function(o){if(nS(e,o,n,r))return oC(e,t,r,i),!0}))},gC=dn.each,vC=function(e,t){return Pe(e,t)},yC=function(e){return e&&1===e.nodeType&&!lm(e)&&!qp(e)&&!Vr(e)},bC=function(e,t,n,r){if(Yf(e)&&Rm(t)){var i=Ge(Ge({},e.schema.getTextBlockElements()),{td:{},th:{},li:{},dt:{},dd:{},figcaption:{},caption:{},details:{},summary:{}}),o=$x(vn.fromDom(n),(function(e){return qp(e.dom)}));return Pe(i,r)&&Ka(vn.fromDom(n.parentNode),!1)&&!o}return!1},_C=function(e,t,n,r){var i=e.formatter.get(t),o=i[0],a=!r&&e.selection.isCollapsed(),s=e.dom,l=e.selection,c=function(e,t){if(t=t||o,e){if(t.onformat&&t.onformat(e,t,n,r),gC(t.styles,(function(t,r){s.setStyle(e,r,wm(t,n))})),t.styles){var i=s.getAttrib(e,"style");i&&s.setAttrib(e,"data-mce-style",i)}gC(t.attributes,(function(t,r){s.setAttrib(e,r,wm(t,n))})),gC(t.classes,(function(t){t=wm(t,n),s.hasClass(e,t)||s.addClass(e,t)}))}},u=function(e,t){var n=!1;return!!Am(o)&&(gC(e,(function(e){if(!("collapsed"in e)||e.collapsed===a)return s.is(t,e.selector)&&!qp(t)?(c(t,e),n=!0,!1):void 0})),n)},d=function(r,a,s,l){var d=[],f=!0,h=o.inline||o.block,p=r.create(h);c(p),Ym(r,a,(function(a){var s,m=function(a){var g=!1,v=f,y=a.nodeName.toLowerCase(),b=a.parentNode.nodeName.toLowerCase();if(Br(a)&&r.getContentEditable(a)&&(v=f,f="true"===r.getContentEditable(a),g=!0),Zr(a)&&!bC(e,o,a,b))return s=null,void(Im(o)&&r.remove(a));if(o.wrapper&&nS(e,a,t,n))s=null;else{if(f&&!g&&Im(o)&&!o.wrapper&&vm(e,y)&&ym(e,b,h)){var _=r.rename(a,h);return c(_),d.push(_),void(s=null)}if(Am(o)){var w=u(i,a);if(!vC(o,"inline")||w)return void(s=null)}!f||g||!ym(e,h,y)||!ym(e,b,h)||!l&&3===a.nodeType&&1===a.nodeValue.length&&65279===a.nodeValue.charCodeAt(0)||qp(a)||vC(o,"inline")&&r.isBlock(a)?(s=null,gC(dn.grep(a.childNodes),m),g&&(f=v),s=null):(s||(s=r.clone(p,!1),a.parentNode.insertBefore(s,a),d.push(s)),s.appendChild(a))}};gC(a,m)})),!0===o.links&&gC(d,(function(e){var t=function(e){"A"===e.nodeName&&c(e,o),gC(dn.grep(e.childNodes),t)};t(e)})),gC(d,(function(a){var s=function(e){var t=0;return gC(e.childNodes,(function(e){_m(e)||lm(e)||t++})),t},l=function(e){var t=!1;return gC(e.childNodes,(function(e){if(yC(e))return t=e,!1})),t},u=function(e){var t,n=l(e);return n&&!lm(n)&&eS(r,n,o)&&(t=r.clone(n,!1),c(t),r.replace(t,e,!0),r.remove(n,!0)),t||e},f=s(a);!(d.length>1)&&r.isBlock(a)||0!==f?(Rm(o)||o.wrapper)&&(o.exact||1!==f||(a=u(a)),pC(e,i,n,a),mC(e,o,t,n,a),fC(r,o,n,a),dC(r,o,n,a),hC(r,o,n,a),FS(r,o,n,a)):r.remove(a,!0)}))};if("false"!==s.getContentEditable(l.getNode())){if(o){if(r)if(hm(r)){if(!u(i,r)){var f=s.createRng();f.setStartBefore(r),f.setEndAfter(r),d(s,$m(e,f,i),null,!0)}}else d(s,r,null,!0);else if(a&&Rm(o)&&!rg(e).length)xS(e,t,n);else{var h=l.getNode(),p=i[0];e.settings.forced_root_block||!p.defaultBlock||s.getParent(h,s.isBlock)||_C(e,p.defaultBlock),l.setRng(nx(l.getRng())),fg(l,!0,(function(t){dg(e,(function(t,n){var r=n?t:$m(e,t,i);d(s,r)}))})),mm(s,l,l.getRng()),e.nodeChanged()}MS(t,e)}}else{r=l.getNode();for(var m=0,g=i.length;m<g;m++){var v=i[m];if(v.ceFalseOverride&&Am(v)&&s.is(r,v.selector))return void c(r,v)}}},wC=function(e,t){var n=Fc({});e.set({}),t.on("NodeChange",(function(r){xC(t,r.element,n,e.get())}))},xC=function(e,t,n,r){var i=be(n.get()),o={},a={},s=te(km(e.dom,t),(function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")}));we(r,(function(t,n){dn.each(s,(function(r){return e.formatter.matchNode(r,n,{},t.similar)?(-1===i.indexOf(n)&&(Q(t.callbacks,(function(e){e(!0,{node:r,format:n,parents:s})})),o[n]=t.callbacks),a[n]=t.callbacks,!1):!Qx(e,r,n)&&void 0}))}));var l=SC(n.get(),a,t,s);n.set(Ge(Ge({},o),l))},SC=function(e,t,n,r){return ke(e,(function(e,i){return!!Re(t,i)||(Q(e,(function(e){e(!1,{node:n,format:i,parents:r})})),!1)})).t},CC=function(e,t,n,r){var i=e.get();Q(t.split(","),(function(e){i[e]||(i[e]={similar:r,callbacks:[]}),i[e].callbacks.push(n)})),e.set(i)},EC=function(e,t,n){var r=e.get();Q(t.split(","),(function(e){r[e].callbacks=te(r[e].callbacks,(function(e){return e!==n})),0===r[e].callbacks.length&&delete r[e]})),e.set(r)},kC=function(e,t,n,r,i){return null===t.get()&&wC(t,e),CC(t,n,r,i),{unbind:function(){return EC(t,n,r)}}},OC=function(e,t,n,r){var i=e.formatter.get(t);!rS(e,t,n,r)||"toggle"in i[0]&&!i[0].toggle?_C(e,t,n,r):cC(e,t,n,r)},TC=function(e,t){var n=t||document,r=n.createDocumentFragment();return Q(e,(function(e){r.appendChild(e.dom)})),vn.fromDom(r)},IC=function(e,t,n){return{element:e,width:t,rows:n}},AC=function(e,t){return{element:e,cells:t}},RC=function(e,t){return{x:e,y:t}},PC=function(e,t){var n=parseInt(ci(e,t),10);return isNaN(n)?1:n},MC=function(e,t,n,r,i){for(var o=PC(i,"rowspan"),a=PC(i,"colspan"),s=e.rows,l=n;l<n+o;l++){s[l]||(s[l]=AC(Pu(r),[]));for(var c=t;c<t+a;c++){var u=s[l].cells;u[c]=l===n&&c===t?i:Ru(i)}}},NC=function(e,t,n){var r=e.rows,i=r[n]?r[n].cells:[];return!!i[t]},LC=function(e,t,n){while(NC(e,t,n))t++;return t},DC=function(e){return re(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},jC=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(An(i[o],t))return I.some(RC(o,r));return I.none()},FC=function(e,t,n,r,i){for(var o=[],a=e.rows,s=n;s<=i;s++){var l=a[s].cells,c=t<r?l.slice(t,r+1):l.slice(r,t+1);o.push(AC(a[s].element,c))}return o},BC=function(e,t,n){var r=t.x,i=t.y,o=n.x,a=n.y,s=i<a?FC(e,r,i,o,a):FC(e,r,a,o,i);return IC(e.element,DC(s),s)},qC=function(e,t){var n=Ru(e.element),r=vn.fromTag("tbody");return _r(r,t),vr(n,r),n},zC=function(e){return J(e.rows,(function(e){var t=J(e.cells,(function(e){var t=Pu(e);return fi(t,"colspan"),fi(t,"rowspan"),t})),n=Ru(e.element);return _r(n,t),n}))},UC=function(e){var t=IC(Ru(e),0,[]);return Q(hu(e,"tr"),(function(e,n){Q(hu(e,"td,th"),(function(r,i){MC(t,LC(t,i,n),n,e,r)}))})),IC(t.element,DC(t.rows),t.rows)},GC=function(e){return qC(e,zC(e))},VC=function(e,t,n){return jC(e,t).bind((function(t){return jC(e,n).map((function(n){return BC(e,t,n)}))}))},WC=function(e){return oe(e,(function(e){return"ul"===Nn(e)||"ol"===Nn(e)}))},HC=function(e,t){return oe(e,(function(e){return"li"===Nn(e)&&lg(e,t)})).fold(g([]),(function(t){return WC(e).map((function(e){var t=vn.fromTag(Nn(e)),n=Oe(bi(e),(function(e,t){return lt(t,"list-style")}));return mi(t,n),[vn.fromTag("li"),t]})).getOr([])}))},$C=function(e,t){var n=re(t,(function(e,t){return vr(t,e),t}),e);return t.length>0?TC([n]):n},KC=function(e){return Xo(e)?Hn(e).filter(Ko).fold(g([]),(function(t){return[e,t]})):Ko(e)?[e]:[]},XC=function(e,t){var n=vn.fromDom(t.commonAncestorContainer),r=i_(n,e),i=te(r,(function(e){return Wo(e)||Uo(e)})),o=HC(r,t),a=i.concat(o.length?o:KC(n));return J(a,Ru)},YC=function(){return TC([])},JC=function(e,t){return $C(vn.fromDom(t.cloneContents()),XC(e,t))},QC=function(e,t){return vo(t,"table",y(An,e))},ZC=function(e,t){return QC(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],i=UC(e);return VC(i,n,r).map((function(e){return TC([GC(e)])}))})).getOrThunk(YC)},eE=function(e,t){return t.length>0&&t[0].collapsed?YC():JC(e,t[0])},tE=function(e,t){var n=ng(t,e);return n.length>0?ZC(e,n):eE(e,t)},nE=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},rE=function(e,t){return t>=0&&t<e.length&&dm(e.charAt(t))},iE=function(e,t){var n=aa(e.innerText);return t?nE(n):n},oE=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},aE=function(e){return I.from(e.selection.getRng()).map((function(t){var n=I.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),i=oE(n),o=Jt.browser.isIE()&&"pre"!==i,a=e.dom.add(r,i,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),s=iE(a,o),l=aa(a.textContent);if(e.dom.remove(a),rE(l,0)||rE(l,l.length-1)){var c=n.getOr(r),u=iE(c,o),d=u.indexOf(s);if(-1===d)return s;var f=rE(u,d-1),h=rE(u,d+s.length);return(f?" ":"")+s+(h?" ":"")}return s})).getOr("")},sE=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),i=e.selection.getSel(),o=sb(e,Jm(i)),a=t.contextual?tE(vn.fromDom(e.getBody()),o).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},lE=function(e,t,n){if(void 0===n&&(n={}),n.get=!0,n.format=t,n.selection=!0,n=e.fire("BeforeGetContent",n),n.isDefaultPrevented())return e.fire("GetContent",n),n.content;if("text"===n.format)return aE(e);n.getInner=!0;var r=sE(e,n);return"tree"===n.format?r:(n.content=e.selection.isCollapsed()?"":r,e.fire("GetContent",n),n.content)},cE=0,uE=1,dE=2,fE=function(e,t){var n=e.length+t.length+2,r=new Array(n),i=new Array(n),o=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,i,o,s){var c=l(n,r,i,o);if(null===c||c.start===r&&c.diag===r-o||c.end===n&&c.diag===n-i){var u=n,d=i;while(u<r||d<o)u<r&&d<o&&e[u]===t[d]?(s.push([cE,e[u]]),++u,++d):r-n>o-i?(s.push([dE,e[u]]),++u):(s.push([uE,t[d]]),++d)}else{a(n,c.start,i,c.start-c.diag,s);for(var f=c.start;f<c.end;++f)s.push([cE,e[f]]);a(c.end,r,c.end-c.diag,o,s)}},s=function(n,r,i,a){var s=n;while(s-r<a&&s<i&&e[s]===t[s-r])++s;return o(n,s,r)},l=function(n,o,a,l){var c=o-n,u=l-a;if(0===c||0===u)return null;var d,f,h,p,m,g=c-u,v=u+c,y=(v%2===0?v:v+1)/2;for(r[1+y]=n,i[1+y]=o+1,d=0;d<=y;++d){for(f=-d;f<=d;f+=2){h=f+y,f===-d||f!==d&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],m=p-n+a-f;while(p<o&&m<l&&e[p]===t[m])r[h]=++p,++m;if(g%2!==0&&g-d<=f&&f<=g+d&&i[h-g]<=r[h])return s(i[h-g],f+n-a,o,l)}for(f=g-d;f<=g+d;f+=2){h=f+y-g,f===g-d||f!==g+d&&i[h+1]<=i[h-1]?i[h]=i[h+1]-1:i[h]=i[h-1],p=i[h]-1,m=p-n+a-f;while(p>=n&&m>=a&&e[p]===t[m])i[h]=p--,m--;if(g%2===0&&-d<=f&&f<=d&&i[h]<=r[h+g])return s(i[h],f+n-a,o,l)}}},c=[];return a(0,e.length,0,t.length,c),c},hE=function(e){return Br(e)?e.outerHTML:Xr(e)?_s.encodeRaw(e.data,!1):Yr(e)?"\x3c!--"+e.data+"--\x3e":""},pE=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},mE=function(e,t,n){var r=pE(t);if(e.hasChildNodes()&&n<e.childNodes.length){var i=e.childNodes[n];i.parentNode.insertBefore(r,i)}else e.appendChild(r)},gE=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},vE=function(e,t){var n=0;Q(e,(function(e){e[0]===cE?n++:e[0]===uE?(mE(t,e[1],n),n++):e[0]===dE&&gE(t,n)}))},yE=function(e){return te(J(ve(e.childNodes),hE),(function(e){return e.length>0}))},bE=function(e,t){var n=J(ve(t.childNodes),hE);return vE(fE(n,e),t),t},_E=Fc(I.none()),wE=function(){return _E.get().getOrThunk((function(){var e=document.implementation.createHTMLDocument("undo");return _E.set(I.some(e)),e}))},xE=function(e){return-1!==e.indexOf("</iframe>")},SE=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},CE=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},EE=function(e){var t=yE(e.getBody()),n=le(t,(function(t){var n=kb(e.serializer,t);return n.length>0?[n]:[]})),r=n.join("");return xE(r)?SE(n):CE(r)},kE=function(e,t,n){"fragmented"===t.type?bE(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},OE=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},TE=function(e){var t=vn.fromTag("body",wE());return Iu(t,OE(e)),Q(hu(t,"*[data-mce-bogus]"),Sr),Tu(t)},IE=function(e,t){return OE(e)===OE(t)},AE=function(e,t){return TE(e)===TE(t)},RE=function(e,t){return!(!e||!t)&&(!!IE(e,t)||AE(e,t))},PE=function(e){return 0===e.get()},ME=function(e,t,n){PE(n)&&(e.typing=t)},NE=function(e,t){e.typing&&(ME(e,!1,t),e.add())},LE=function(e){e.typing&&(e.typing=!1,e.add())},DE=function(e,t,n){PE(t)&&n.set(I.some(ef(e.selection)))},jE=function(e,t,n,r,i,o,a){var s=EE(e);if(o=o||{},o=dn.extend(o,s),!1===PE(r)||e.removed)return null;var l=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:l,originalEvent:a}).isDefaultPrevented())return null;if(l&&RE(l,o))return null;t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var c=ah(e);if(c&&t.data.length>c){for(var u=0;u<t.data.length-1;u++)t.data[u]=t.data[u+1];t.data.length--,n.set(t.data.length)}o.bookmark=ef(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var d={level:o,lastLevel:l,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",d),e.fire("change",d)):e.fire("AddUndo",d),o},FE=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},BE=function(e,t,n,r,i){if(t.transact(r)){var o=t.data[n.get()].bookmark,a=t.data[n.get()-1];kE(e,a,!0),t.transact(i)&&(t.data[n.get()-1].beforeBookmark=o)}},qE=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],kE(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},zE=function(e,t,n,r){var i;return t.typing&&(t.add(),t.typing=!1,ME(t,!1,n)),r.get()>0&&(r.set(r.get()-1),i=t.data[r.get()],kE(e,i,!0),e.setDirty(!0),e.fire("Undo",{level:i})),i},UE=function(e){e.clear(),e.add()},GE=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!RE(EE(e),t.data[0])},VE=function(e,t){return t.get()<e.data.length-1&&!e.typing},WE=function(e,t,n){return NE(e,t),e.beforeChange(),e.ignore(n),e.add()},HE=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},$E=function(e,t){var n=e.dom,r=z(t)?t:e.getBody();B(e.hasVisual)&&(e.hasVisual=hh(e)),Q(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=ph(e),i=n.getAttrib(t,"border");i&&"0"!==i||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var o=n.getAttrib(t,"name")||t.id,a=mh(e);o&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},KE=function(e){return{undoManager:{beforeChange:function(t,n){return DE(e,t,n)},addUndoLevel:function(t,n,r,i,o,a){return jE(e,t,n,r,i,o,a)},undo:function(t,n,r){return zE(e,t,n,r)},redo:function(t,n){return qE(e,t,n)},clear:function(t,n){return FE(e,t,n)},reset:function(e){return UE(e)},hasUndo:function(t,n){return GE(e,t,n)},hasRedo:function(e,t){return VE(e,t)},transact:function(e,t,n){return WE(e,t,n)},ignore:function(e,t){return HE(e,t)},extra:function(t,n,r,i){return BE(e,t,n,r,i)}},formatter:{match:function(t,n,r){return rS(e,t,n,r)},matchAll:function(t,n){return iS(e,t,n)},matchNode:function(t,n,r,i){return nS(e,t,n,r,i)},canApply:function(t){return aS(e,t)},closest:function(t){return oS(e,t)},apply:function(t,n,r){return _C(e,t,n,r)},remove:function(t,n,r,i){return cC(e,t,n,r,i)},toggle:function(t,n,r){return OC(e,t,n,r)},formatChanged:function(t,n,r,i){return kC(e,t,n,r,i)}},editor:{getContent:function(t,n){return Ab(e,t,n)},setContent:function(t,n){return Hx(e,t,n)},insertContent:function(t,n){return Dx(e,t,n)},addVisual:function(t){return $E(e,t)}},selection:{getContent:function(t,n){return lE(e,t,n)}},raw:{getModel:function(){return I.none()}}}},XE=function(e){var t=function(e){return L(e)?e:{}},n=_("Unimplemented feature for rtc"),r=e.undoManager,i=e.formatter,o=e.editor,a=e.selection,s=e.raw,l=h;return{undoManager:{beforeChange:l,addUndoLevel:n,undo:function(){return r.undo()},redo:function(){return r.redo()},clear:function(){return r.clear()},reset:function(){return r.reset()},hasUndo:function(){return r.hasUndo()},hasRedo:function(){return r.hasRedo()},transact:function(e,t,n){return r.transact(n)},ignore:function(e,t){return r.ignore(t)},extra:function(e,t,n,i){return r.extra(n,i)}},formatter:{match:function(e,n,r){return i.match(e,t(n))},matchAll:n,matchNode:n,canApply:function(e){return i.canApply(e)},closest:function(e){return i.closest(e)},apply:function(e,n,r){return i.apply(e,t(n))},remove:function(e,n,r,o){return i.remove(e,t(n))},toggle:function(e,n,r){return i.toggle(e,t(n))},formatChanged:function(e,t,n,r){return i.formatChanged(t,n,r)}},editor:{getContent:function(e,t){return o.getContent(e)},setContent:function(e,t){return o.setContent(e,t)},insertContent:function(e,t){return o.insertContent(e)},addVisual:l},selection:{getContent:function(e,t){return a.getContent(t)}},raw:{getModel:function(){return I.some(s.getRawModel())}}}},YE=function(){var e=g(null),t=g("");return{undoManager:{beforeChange:h,addUndoLevel:e,undo:e,redo:e,clear:h,reset:h,hasUndo:S,hasRedo:S,transact:e,ignore:h,extra:h},formatter:{match:S,matchAll:g([]),matchNode:S,canApply:S,closest:t,apply:h,remove:h,toggle:h,formatChanged:g({unbind:h})},editor:{getContent:t,setContent:t,insertContent:h,addVisual:h},selection:{getContent:t},raw:{getModel:g(I.none())}}},JE=function(e){return Re(e.plugins,"rtc")},QE=function(e){var t=e;return Ae(e.plugins,"rtc").fold((function(){return t.rtcInstance=KE(e),I.none()}),(function(e){return I.some(e.setup().then((function(e){return t.rtcInstance=XE(e),e.rtc.isRemote}),(function(e){return t.rtcInstance=YE(),wo.reject(e)})))}))},ZE=function(e){return e.rtcInstance?e.rtcInstance:KE(e)},ek=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},tk=function(e,t,n){ek(e).undoManager.beforeChange(t,n)},nk=function(e,t,n,r,i,o,a){return ek(e).undoManager.addUndoLevel(t,n,r,i,o,a)},rk=function(e,t,n,r){return ek(e).undoManager.undo(t,n,r)},ik=function(e,t,n){return ek(e).undoManager.redo(t,n)},ok=function(e,t,n){ek(e).undoManager.clear(t,n)},ak=function(e,t){ek(e).undoManager.reset(t)},sk=function(e,t,n){return ek(e).undoManager.hasUndo(t,n)},lk=function(e,t,n){return ek(e).undoManager.hasRedo(t,n)},ck=function(e,t,n,r){return ek(e).undoManager.transact(t,n,r)},uk=function(e,t,n){ek(e).undoManager.ignore(t,n)},dk=function(e,t,n,r,i){ek(e).undoManager.extra(t,n,r,i)},fk=function(e,t,n,r){return ek(e).formatter.match(t,n,r)},hk=function(e,t,n){return ek(e).formatter.matchAll(t,n)},pk=function(e,t,n,r,i){return ek(e).formatter.matchNode(t,n,r,i)},mk=function(e,t){return ek(e).formatter.canApply(t)},gk=function(e,t){return ek(e).formatter.closest(t)},vk=function(e,t,n,r){ek(e).formatter.apply(t,n,r)},yk=function(e,t,n,r,i){ek(e).formatter.remove(t,n,r,i)},bk=function(e,t,n,r){ek(e).formatter.toggle(t,n,r)},_k=function(e,t,n,r,i){return void 0===i&&(i=!1),ek(e).formatter.formatChanged(t,n,r,i)},wk=function(e,t,n){return ZE(e).editor.getContent(t,n)},xk=function(e,t,n){return ZE(e).editor.setContent(t,n)},Sk=function(e,t,n){return ZE(e).editor.insertContent(t,n)},Ck=function(e,t,n){return ek(e).selection.getContent(t,n)},Ek=function(e,t){return ek(e).editor.addVisual(t)},kk=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return Ck(e,n,t)},Ok=function(e){return 0===e.dom.length?(xr(e),I.none()):I.some(e)},Tk=function(e,t){return e.filter((function(e){return Sg.isBookmarkNode(e.dom)})).bind(t?Yn:Xn)},Ik=function(e,t,n,r){var i=e.dom,o=t.dom,a=r?i.length:o.length;r?(W_(i,o,!1,!r),n.setStart(o,a)):(W_(o,i,!1,!r),n.setEnd(o,a))},Ak=function(e,t){Hn(e).each((function(n){var r=e.dom;t&&I_(n,bd(r,0))?G_(r,0):!t&&R_(n,bd(r,r.length))&&V_(r,r.length)}))},Rk=function(e,t,n,r){e.bind((function(e){var i=r?V_:G_;return i(e.dom,r?e.dom.length:0),t.filter(Bn).map((function(t){return Ik(e,t,n,r)}))})).orThunk((function(){var e=Tk(t,r).or(t).filter(Bn);return e.map((function(e){return Ak(e,r)}))}))},Pk=function(e,t){var n=I.from(t.firstChild).map(vn.fromDom),r=I.from(t.lastChild).map(vn.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(Xn).filter(Bn).bind(Ok),o=r.bind(Yn).filter(Bn).bind(Ok);Rk(i,n,e,!0),Rk(o,r,e,!1),e.collapse(!1)},Mk=function(e,t){return Ge(Ge({format:"html"},e),{set:!0,selection:!0,content:t})},Nk=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=e.parser.parse(t.content,Ge(Ge({isRootContent:!0,forced_root_block:!1},i),t));return Lb({validate:e.validate},e.schema).serialize(o)}return t.content},Lk=function(e,t,n){void 0===n&&(n={});var r=Mk(n,t);if(r.no_events||(r=e.fire("BeforeSetContent",r),!r.isDefaultPrevented())){n.content=Nk(e,r);var i=e.selection.getRng();Pk(i,i.createContextualFragment(n.content)),e.selection.setRng(i),Bv(e,i),r.no_events||e.fire("SetContent",r)}else e.fire("SetContent",r)},Dk=function(e,t,n){if(e&&e.hasOwnProperty(t)){var r=te(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function jk(e,t){var n,r;return{selectorChangedWithUnbind:function(i,o){return n||(n={},r={},t.on("NodeChange",(function(t){var i=t.element,o=e.getParents(i,null,e.getRoot()),a={};dn.each(n,(function(t,n){dn.each(o,(function(i){if(e.is(i,n))return r[n]||(dn.each(t,(function(e){e(!0,{node:i,selector:n,parents:o})})),r[n]=t),a[n]=t,!1}))})),dn.each(r,(function(e,t){a[t]||(delete r[t],dn.each(e,(function(e){e(!1,{node:i,selector:t,parents:o})})))}))}))),n[i]||(n[i]=[]),n[i].push(o),{unbind:function(){Dk(n,i,o),Dk(r,i,o)}}}}}var Fk=function(e){return!!e.select},Bk=function(e){return!(!e||!e.ownerDocument)&&Mn(vn.fromDom(e.ownerDocument),vn.fromDom(e))},qk=function(e){return!!e&&(!!Fk(e)||Bk(e.startContainer)&&Bk(e.endContainer))},zk=function(e,t,n,r){var i,o,a=jk(e,r).selectorChangedWithUnbind,s=function(t,n){var i=e.createRng();z(t)&&z(n)?(i.setStart(t,n),i.setEnd(t,n),b(i),g(!1)):(cg(e,i,r.getBody(),!0),b(i))},l=function(e){return kk(r,e)},c=function(e,t){return Lk(r,e,t)},u=function(e){return tb(r.getBody(),y(),e)},d=function(e){return nb(r.getBody(),y(),e)},f=function(e,t){return P.getBookmark(e,t)},h=function(e){return P.moveToBookmark(e)},p=function(t,n){return ab(e,t,n).each(b),t},m=function(){var e=y(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},g=function(e){var t=y();t.collapse(!!e),b(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},y=function(){var n,a,s,l=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},c=t.document;if(void 0!==r.bookmark&&!1===Xy(r)){var u=xy(r);if(u.isSome())return u.map((function(e){return sb(r,[e])[0]})).getOr(c.createRange())}try{(n=v())&&!Fr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange(),a=sb(r,[a])[0])}catch(d){}return a||(a=c.createRange?c.createRange():c.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(s=e.getRoot(),a.setStart(s,0),a.setEnd(s,0)),i&&o&&(0===l(a.START_TO_START,a,i)&&0===l(a.END_TO_END,a,i)?a=o:(i=null,o=null)),a},b=function(e,t){var n;if(qk(e)){var a=Fk(e)?e:null;if(a){o=null;try{a.select()}catch(c){}}else{var s=v(),l=r.fire("SetSelectionRange",{range:e,forward:t});if(e=l.range,s){o=e;try{s.removeAllRanges(),s.addRange(e)}catch(c){}!1===t&&s.extend&&(s.collapse(e.endContainer,e.endOffset),s.extend(e.startContainer,e.startOffset)),i=s.rangeCount>0?s.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!s.setBaseAndExtent||Jt.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(s.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),s.anchorNode===e.startContainer&&s.focusNode===e.endContainer||s.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},_=function(t){return c(e.getOuterHTML(t)),t},w=function(){return ib(r.getBody(),y())},x=function(t,n){return ob(e,y(),t,n)},S=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||Fr(n)||Fr(r))return!0;var i=e.createRng();i.setStart(n,t.anchorOffset),i.collapse(!0);var o=e.createRng();return o.setStart(r,t.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0},C=function(){var t=y(),n=v();if(!Zm(n)&&ug(r)){var i=iv(e,t);return i.each((function(e){b(e,S())})),i.getOr(t)}return t},E=function(e,t){return a(e,t),R},k=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},O=function(e,t){return Fv(r,e,t)},T=function(e,t){return b(Wg(e,t,r.getDoc()))},I=function(){var e=y();return e.collapsed?bd.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},A=function(){t=i=o=null,M.destroy()},R={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:g,setCursorLocation:s,getContent:l,setContent:c,getBookmark:f,moveToBookmark:h,select:p,isCollapsed:m,isForward:S,setNode:_,getNode:w,getSel:v,setRng:b,getRng:y,getStart:u,getEnd:d,getSelectedBlocks:x,normalize:C,selectorChanged:E,selectorChangedWithUnbind:a,getScrollContainer:k,scrollIntoView:O,placeCaretAt:T,getBoundingClientRect:I,destroy:A},P=Sg(R),M=qg(R,r);return R.bookmarkManager=P,R.controlSelection=M,R},Uk=function(e,t){Q(t,(function(t){e.attr(t,null)}))},Gk=function(e,t,n){e.addNodeFilter("font",(function(e){Q(e,(function(e){var r=t.parse(e.attr("style")),i=e.attr("color"),o=e.attr("face"),a=e.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),Uk(e,["color","face","size"])}))}))},Vk=function(e,t){e.addNodeFilter("strike",(function(e){Q(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},Wk=function(e,t){var n=Ms();t.convert_fonts_to_spans&&Gk(e,n,dn.explode(t.font_size_legacy_values)),Vk(e,n)},Hk=function(e,t){t.inline_styles&&Wk(e,t)},$k=function(e){return new wo((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200===i.status?t(i.response):r()},i.onerror=r,i.send()}catch(o){r()}}))},Kk=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},Xk=function(e,t){var n;try{n=atob(t)}catch(gq){return I.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return I.some(new Blob([r],{type:e}))},Yk=function(e){return new wo((function(t){var n=Kk(e),r=n.type,i=n.data;Xk(r,i).fold((function(){return t(new Blob([]))}),t)}))},Jk=function(e){return 0===e.indexOf("blob:")?$k(e):0===e.indexOf("data:")?Yk(e):null},Qk=function(e){return new wo((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},Zk=0,eO=function(e){return(e||"blobid")+Zk++},tO=function(e,t,n,r){var i,o;if(0===t.src.indexOf("blob:"))return o=e.getByUri(t.src),void(o?n({image:t,blobInfo:o}):Jk(t.src).then((function(r){Qk(r).then((function(a){i=Kk(a).data,o=e.create(eO(),r,i),e.add(o),n({image:t,blobInfo:o})}))}),(function(e){r(e)})));var a=Kk(t.src),s=a.data,l=a.type;i=s,o=e.getByData(i,l),o?n({image:t,blobInfo:o}):Jk(t.src).then((function(r){o=e.create(eO(),r,i),e.add(o),n({image:t,blobInfo:o})}),(function(e){r(e)}))},nO=function(e){return e?ve(e.getElementsByTagName("img")):[]},rO=function(e,t){var n={},r=function(r,i){i||(i=C);var o=te(nO(r),(function(t){var n=t.src;return!!Jt.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===Jt.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t)))))})),a=J(o,(function(e){if(void 0!==n[e.src])return new wo((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new wo((function(n,r){tO(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return wo.all(a)};return{findAll:r}},iO=function(e,t,n,r){var i=e.padd_empty_with_br||t.insert;i&&n[r.name]?r.empty().append(new fb("br",1)).shortEnded=!0:r.empty().append(new fb("#text",3)).value=ta},oO=function(e){return aO(e,"#text")&&e.firstChild.value===ta},aO=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},sO=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},lO=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return sO(e,t)}))},cO=function(e,t){return e&&(t[e.name]||"br"===e.name)},uO=function(e){return e.attr("data-mce-bogus")},dO=function(e){return e.attr("src")===Jt.transparentSrc||e.attr("data-mce-placeholder")},fO=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),we(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},hO=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");dO(e)||uO(e)||mb(r).filter((function(){return fO(e,t)})).bind((function(e){var t=e.type,r=e.data;return I.from(n.getByData(r,t)).orThunk((function(){return Xk(t,r).map((function(e){var t=n.create(eO(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Q(e,r)}))},pO=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,i){var o,a,s,l,c,u,d,f,h=e.length,p=dn.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(p.body=1,o=0;o<h;o++)if(a=e[o],s=a.parent,p[a.parent.name]&&a===s.lastChild){c=a.prev;while(c){if(u=c.name,"span"!==u||"bookmark"!==c.attr("data-mce-type")){"br"===u&&(a=null);break}c=c.prev}a&&(a.remove(),lO(n,m,g,s)&&(d=n.getElementRule(s.name),d&&(d.removeEmpty?s.remove():d.paddEmpty&&iO(t,i,p,s))))}else{l=a;while(s&&s.firstChild===l&&s.lastChild===l){if(l=s,p[s.name])break;s=s.parent}l===s&&!0!==t.padd_empty_with_br&&(f=new fb("#text",3),f.value=ta,a.replace(f))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?dn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var o=e[n];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",i(o.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,i,o=e.length;while(o--)if(i=e[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,t=i.lastChild;do{n=t.prev,r.insert(t,i),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var i=new fb("li",1);i.attr("style","list-style-type: none"),t.wrap(i)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t,r,i,o,a,s,l,c=e.length,u=n.getValidClasses();while(c--){for(t=e[c],r=t.attr("class").split(" "),a="",i=0;i<r.length;i++)o=r[i],l=!1,s=u["*"],s&&s[o]&&(l=!0),s=u[t.name],!l&&s&&s[o]&&(l=!0),l&&(a&&(a+=" "),a+=o);a.length||(a=null),t.attr("class",a)}})),hO(e,t)},mO=dn.makeMap,gO=dn.each,vO=dn.explode,yO=dn.extend,bO=function(e,t){void 0===t&&(t=Rs());var n={},r=[],i={},o={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){var n,r,i,o,a,l,c,u,d,f,h,p=mO("tr,td,th,tbody,thead,tfoot,table"),m=t.getNonEmptyElements(),g=t.getWhiteSpaceElements(),v=t.getTextBlockElements(),y=t.getSpecialElements();for(n=0;n<e.length;n++)if(r=e[n],r.parent&&!r.fixed)if(v[r.name]&&"li"===r.parent.name){f=r.next;while(f){if(!v[f.name])break;f.name="li",f.fixed=!0,r.parent.insert(f,r.parent),f=f.next}r.unwrap(r)}else{for(o=[r],i=r.parent;i&&!t.isValidChild(i.name,r.name)&&!p[i.name];i=i.parent)o.push(i);if(i&&o.length>1){for(o.reverse(),a=l=s(o[0].clone()),d=0;d<o.length-1;d++){for(t.isValidChild(l.name,o[d].name)?(c=s(o[d].clone()),l.append(c)):c=l,u=o[d].firstChild;u&&u!==o[d+1];)h=u.next,c.append(u),u=h;l=c}lO(t,m,g,a)?i.insert(r,o[0],!0):(i.insert(a,o[0],!0),i.insert(r,a)),i=o[0],(lO(t,m,g,i)||aO(i,"br"))&&i.empty().remove()}else if(r.parent){if("li"===r.name){if(f=r.prev,f&&("ul"===f.name||"ol"===f.name)){f.append(r);continue}if(f=r.next,f&&("ul"===f.name||"ol"===f.name)){f.insert(r,f.firstChild,!0);continue}r.wrap(s(new fb("ul",1)));continue}t.isValidChild(r.parent.name,"div")&&t.isValidChild("div",r.name)?r.wrap(s(new fb("div",1))):y[r.name]?r.empty().remove():r.unwrap()}}},s=function(e){var t,a,s;a=e.name,a in n&&(s=i[a],s?s.push(e):i[a]=[e]),t=r.length;while(t--)a=r[t].name,a in e.attributes.map&&(s=o[a],s?s.push(e):o[a]=[e]);return e},l=function(e,t){gO(vO(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},c=function(){var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push({name:t,callbacks:n[t]});return e},u=function(e,t){gO(vO(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},d=function(){return[].concat(r)},f=function(s,l){var c,u,d,f,h,p,m,g,v,y=[],b=function(e){return!1===e?"":!0===e?"p":e};l=l||{},i={},o={};var _=yO(mO("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=t.getNonEmptyElements(),x=t.children,S=e.validate,C="forced_root_block"in l?l.forced_root_block:e.forced_root_block,E=b(C),k=t.getWhiteSpaceElements(),O=/^[ \t\r\n]+/,T=/[ \t\r\n]+$/,I=/[ \t\r\n]+/g,A=/^[ \t\r\n]+$/;g=k.hasOwnProperty(l.context)||k.hasOwnProperty(e.root_name);var R=function(){var n,r,i=D.firstChild,o=function(e){e&&(i=e.firstChild,i&&3===i.type&&(i.value=i.value.replace(O,"")),i=e.lastChild,i&&3===i.type&&(i.value=i.value.replace(T,"")))};if(t.isValidChild(D.name,E.toLowerCase())){while(i)n=i.next,3===i.type||1===i.type&&"p"!==i.name&&!_[i.name]&&!i.attr("data-mce-type")?(r||(r=P(E,1),r.attr(e.forced_root_block_attrs),D.insert(r,i)),r.append(i)):(o(r),r=null),i=n;o(r)}},P=function(e,t){var r,o=new fb(e,t);return e in n&&(r=i[e],r?r.push(o):i[e]=[o]),o},M=function(e){var n,r,i,o,a=t.getBlockElements();for(n=e.prev;n&&3===n.type;){if(i=n.value.replace(T,""),i.length>0)return void(n.value=i);if(r=n.next,r){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}o=n.prev,n.remove(),n=o}},N=function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n},L=Cb({validate:S,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:N(t.getSelfClosingElements()),cdata:function(e){v.append(P("#cdata",4)).value=e},text:function(e,t){var n;g||(e=e.replace(I," "),cO(v.lastChild,_)&&(e=e.replace(O,""))),0!==e.length&&(n=P("#text",3),n.raw=!!t,v.append(n).value=e)},comment:function(e){v.append(P("#comment",8)).value=e},pi:function(e,t){v.append(P(e,7)).value=t,M(v)},doctype:function(e){var t=v.append(P("#doctype",10));t.value=e,M(v)},start:function(e,n,i){var a,s,l,c,u=S?t.getElementRule(e):{};if(u){a=P(u.outputName||e,1),a.attributes=n,a.shortEnded=i,v.append(a),c=x[v.name],c&&x[a.name]&&!c[a.name]&&y.push(a),s=r.length;while(s--)l=r[s].name,l in n.map&&(p=o[l],p?p.push(a):o[l]=[a]);_[e]&&M(a),i||(v=a),!g&&k[e]&&(g=!0)}},end:function(n){var r,i,o,a,s=S?t.getElementRule(n):{};if(s){if(_[n]&&!g){if(r=v.firstChild,r&&3===r.type)if(i=r.value.replace(O,""),i.length>0)r.value=i,r=r.next;else{o=r.next,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.next,(0===i.length||A.test(i))&&(r.remove(),r=o),r=o}if(r=v.lastChild,r&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.prev;else{o=r.prev,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.prev,(0===i.length||A.test(i))&&(r.remove(),r=o),r=o}}if(g&&k[n]&&(g=!1),s.removeEmpty&&lO(t,w,k,v))return a=v.parent,_[v.name]?v.empty().remove():v.unwrap(),void(v=a);s.paddEmpty&&(oO(v)||lO(t,w,k,v))&&iO(e,l,_,v),v=v.parent}}},t),D=v=new fb(l.context||e.root_name,11);if(L.parse(s,l.format),S&&y.length&&(l.context?l.invalid=!0:a(y)),E&&("body"===D.name||l.isRootContent)&&R(),!l.invalid){for(m in i)if(i.hasOwnProperty(m)){p=n[m],c=i[m],f=c.length;while(f--)c[f].parent||c.splice(f,1);for(u=0,d=p.length;u<d;u++)p[u](c,m,l)}for(u=0,d=r.length;u<d;u++)if(p=r[u],p.name in o){c=o[p.name],f=c.length;while(f--)c[f].parent||c.splice(f,1);for(f=0,h=p.callbacks.length;f<h;f++)p.callbacks[f](c,p.name,l)}}return D},h={schema:t,addAttributeFilter:u,getAttributeFilters:d,addNodeFilter:l,getNodeFilters:c,filterNode:s,parse:f};return pO(h,e),Hk(h,e),h},_O=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n,r=e.length;while(r--)n=e[r],n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)})),e.addAttributeFilter("src,href,style",(function(e,r){var i,o,a=e.length,s="data-mce-"+r,l=t.url_converter,c=t.url_converter_scope;while(a--)i=e[a],o=i.attr(s),void 0!==o?(i.attr(r,o.length>0?o:null),i.attr(s,null)):(o=i.attr(r),"style"===r?o=n.serializeStyle(n.parseStyle(o),i.name):l&&(o=l.call(c,o,r,i.name)),i.attr(r,o.length>0?o:null))})),e.addAttributeFilter("class",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("class"),n&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",n.length>0?n:null))})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r,i=e.length;while(i--)if(r=e[i],"bookmark"===r.attr("data-mce-type")&&!n.cleanup){var o=I.from(r.firstChild).exists((function(e){return!oa(e.value)}));o?r.unwrap():r.remove()}})),e.addNodeFilter("noscript",(function(e){var t,n=e.length;while(n--)t=e[n].firstChild,t&&(t.value=_s.decode(t.value))})),e.addNodeFilter("script,style",(function(e,n){var r,i,o,a=e.length,s=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};while(a--)r=e[a],i=r.firstChild?r.firstChild.value:"","script"===n?(o=r.attr("type"),o&&r.attr("type","mce-no/type"===o?null:o.replace(/^mce\-/,"")),"xhtml"===t.element_format&&i.length>0&&(r.firstChild.value="// <![CDATA[\n"+s(i)+"\n// ]]>")):"xhtml"===t.element_format&&i.length>0&&(r.firstChild.value="\x3c!--\n"+s(i)+"\n--\x3e")})),e.addNodeFilter("#comment",(function(e){var r,i=e.length;while(i--)r=e[i],t.preserve_cdata&&0===r.value.indexOf("[CDATA[")?(r.name="#cdata",r.type=4,r.value=n.decode(r.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===r.value.indexOf("mce:protected ")&&(r.name="#text",r.type=3,r.raw=!0,r.value=unescape(r.value).substr(14))})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n,r=e.length;while(r--)n=e[r],7===n.type?n.remove():1===n.type&&("input"!==t||n.attr("type")||n.attr("type","text"))})),e.addAttributeFilter("data-mce-type",(function(t){Q(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},wO=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},xO=function(e,t,n){var r,i,o=e.dom;t=t.cloneNode(!0);var a=document.implementation;return a.createHTMLDocument&&(r=a.createHTMLDocument(""),dn.each("BODY"===t.nodeName?t.childNodes:[t],(function(e){r.body.appendChild(r.importNode(e,!0))})),t="BODY"!==t.nodeName?r.body.firstChild:r.body,i=o.doc,o.doc=r),kg(e,Ge(Ge({},n),{node:t})),i&&(o.doc=i),t},SO=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},CO=function(e,t,n){return SO(e,n)?xO(e,t,n):t},EO=function(e,t,n){-1===dn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},kO=function(e,t,n){if(!t.no_events&&e){var r=Og(e,Ge(Ge({},t),{content:n}));return r.content}return n},OO=function(e,t,n){var r=aa(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||Qo(vn.fromDom(t))?r:dn.trim(r)},TO=function(e,t,n){var r=n.selection?Ge({forced_root_block:!1},n):n,i=e.parse(t,r);return wO(i),i},IO=function(e,t,n){var r=Lb(e,t);return r.serialize(n)},AO=function(e,t,n,r,i){var o=IO(t,n,r);return kO(e,i,o)},RO=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:Ic.DOM,i=t&&t.schema?t.schema:Rs(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var o=bO(e,i);_O(o,e,r);var a=function(n,a){void 0===a&&(a={});var s=Ge({format:"html"},a),l=CO(t,n,s),c=OO(r,l,s),u=TO(o,c,s);return"tree"===s.format?u:AO(t,e,i,u,s)};return{schema:i,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:a,addRules:function(e){i.addValidElements(e)},setRules:function(e){i.setValidElements(e)},addTempAttr:y(EO,o,n),getTempAttrs:g(n),getNodeFilters:o.getNodeFilters,getAttributeFilters:o.getAttributeFilters}},PO=function(e,t){var n=RO(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},MO="html",NO=function(e,t){void 0===t&&(t={});var n=t.format?t.format:MO;return wk(e,t,n)},LO=function(e,t,n){return void 0===n&&(n={}),xk(e,t,n)},DO=Ic.DOM,jO=function(e){DO.setStyle(e.id,"display",e.orgDisplay)},FO=function(e){return I.from(e).each((function(e){return e.destroy()}))},BO=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},qO=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),DO.unbind(t,"submit reset",e.formEventDelegate))},zO=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&DO.remove(i.nextSibling),Tg(e),e.editorManager.remove(e),!e.inline&&r&&jO(e),Ig(e),DO.remove(e.getContainer()),FO(t),FO(n),e.destroy()}},UO=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),FO(n),FO(r)),qO(e),BO(e),e.destroyed=!0):e.remove())},GO=Object.prototype.hasOwnProperty,VO=function(e,t){var n=L(e)&&L(t);return n?HO(e,t):t},WO=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)GO.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},HO=WO(VO),$O=function(e,t){return{sections:g(e),settings:g(t)}},KO=Ut().deviceType,XO=KO.isTouch(),YO=KO.isPhone(),JO=KO.isTablet(),QO=["lists","autolink","autosave"],ZO={table_grid:!1,object_resizing:!1,resize:!1},eT=function(e){var t=D(e)?e.join(" "):e,n=J(N(t)?t.split(" "):[],ut);return te(n,(function(e){return e.length>0}))},tT=function(e){return te(e,y(X,QO))},nT=function(e,t){var n=ke(t,(function(t,n){return X(e,n)}));return $O(n.t,n.f)},rT=function(e,t,n){void 0===n&&(n={});var r=e.sections(),i=r.hasOwnProperty(t)?r[t]:{};return dn.extend({},n,i)},iT=function(e,t){return e.sections().hasOwnProperty(t)},oT=function(e,t,n){var r=e.sections();return iT(e,t)&&r[t].theme===n},aT=function(e,t){return iT(e,t)?e.sections()[t]:{}},sT=function(e,t){return Ae(e,"toolbar_mode").orThunk((function(){return Ae(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},lT=function(e,t,n,r,i){var o={id:t,theme:"silver",toolbar_mode:sT(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:i.convertURL,url_converter_scope:i};return Ge(Ge({},o),r?ZO:{})},cT=function(e,t){var n={resize:!1,toolbar_mode:sT(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return Ge(Ge(Ge({},ZO),n),t?r:{})},uT=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?dn.extend({},e.external_plugins,n):n},dT=function(e,t){return[].concat(eT(e)).concat(eT(t))},fT=function(e,t,n,r){return e&&oT(t,"mobile","mobile")?tT(r):e&&iT(t,"mobile")?r:n},hT=function(e,t,n,r){var i=eT(n.forced_plugins),o=eT(r.plugins),a=aT(t,"mobile"),s=a.plugins?eT(a.plugins):o,l=fT(e,t,o,s),c=dT(i,l);if(Jt.browser.isIE()&&X(c,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return dn.extend(r,{plugins:c.join(" ")})},pT=function(e,t){return e&&iT(t,"mobile")},mT=function(e,t,n,r,i){var o=e?{mobile:cT(i.mobile||{},t)}:{},a=nT(["mobile"],HO(o,i)),s=dn.extend(n,r,a.settings(),pT(e,a)?rT(a,"mobile"):{},{validate:!0,external_plugins:uT(r,a.settings())});return hT(e,a,r,s)},gT=function(e,t,n,r,i){var o=lT(i,t,n,XO,e);return mT(YO||JO,YO,o,r,i)},vT=function(e,t,n){return I.from(t.settings[n]).filter(e)},yT=function(e){var t={};return"string"===typeof e?Q(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[dn.trim(n[0])]=dn.trim(n[1]):t[dn.trim(n[0])]=dn.trim(n[0])})):t=e,t},bT=function(e){return function(t){return D(t)&&ce(t,e)}},_T=function(e,t,n,r){var i=t in e.settings?e.settings[t]:n;return"hash"===r?yT(i):"string"===r?vT(N,e,t).getOr(n):"number"===r?vT(G,e,t).getOr(n):"boolean"===r?vT(F,e,t).getOr(n):"object"===r?vT(L,e,t).getOr(n):"array"===r?vT(D,e,t).getOr(n):"string[]"===r?vT(bT(N),e,t).getOr(n):"function"===r?vT(U,e,t).getOr(n):i},wT=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Re(e,t)};return{add:t,get:n,has:r}},xT=wT(),ST=function(e,t){var n=t.dom;return n[e]},CT=function(e,t){return parseInt(gi(t,e),10)},ET=y(ST,"clientWidth"),kT=y(ST,"clientHeight"),OT=y(CT,"margin-top"),TT=y(CT,"margin-left"),IT=function(e){return e.dom.getBoundingClientRect()},AT=function(e,t,n){var r=ET(e),i=kT(e);return t>=0&&n>=0&&t<=r&&n<=i},RT=function(e,t,n,r){var i=IT(t),o=e?i.left+t.dom.clientLeft+TT(t):0,a=e?i.top+t.dom.clientTop+OT(t):0,s=n-o,l=r-a;return{x:s,y:l}},PT=function(e,t,n){var r=vn.fromDom(e.getBody()),i=e.inline?r:Vn(r),o=RT(e.inline,i,t,n);return AT(i,o.x,o.y)},MT=function(e){return I.from(e).map(vn.fromDom)},NT=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return MT(t).map(Cr).getOr(!1)},LT=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},DT=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():LT()},r=function(){return I.from(t[0])},i=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},o=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},s=function(e){ae(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},l=function(l,c){if(void 0===c&&(c=!0),!e.removed&&NT(e))return c&&e.fire("BeforeOpenNotification",{notification:l}),oe(t,(function(e){return i(n().getArgs(e),l)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(l,(function(){s(t),o(),r().fold((function(){return e.focus()}),(function(e){return zv(vn.fromDom(e.getEl()))}))}));return a(t),o(),e.fire("OpenNotification",Ge({},t)),t}))},c=function(){r().each((function(e){n().close(e),s(e),o()}))},u=function(){return t},d=function(e){e.on("SkinLoaded",(function(){var t=Vf(e);t&&l({text:t,type:"warning",timeout:0},!1)})),e.on("ResizeEditor ResizeWindow NodeChange",(function(){To.requestAnimationFrame(o)})),e.on("remove",(function(){Q(t.slice(),(function(e){n().close(e)}))}))};return d(e),{open:l,close:c,getNotifications:u}},jT=Qc.PluginManager,FT=Qc.ThemeManager;function BT(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var qT,zT=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():BT()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},i=function(t){e.fire("OpenWindow",{dialog:t})},o=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),i(e)},s=function(n){o(n),t=te(t,(function(e){return e!==n})),0===t.length&&e.focus()},l=function(){return I.from(t[t.length-1])},c=function(t){e.editorManager.setActive(e),_y(e);var n=t();return a(n),n},u=function(e,t){return c((function(){return n().open(e,t,s)}))},d=function(e){return c((function(){return n().openUrl(e,s)}))},f=function(e,t,i){var o=n();o.alert(e,r(i||o,t))},h=function(e,t,i){var o=n();o.confirm(e,r(i||o,t))},p=function(){l().each((function(e){n().close(e),s(e)}))};return e.on("remove",(function(){Q(t,(function(e){n().close(e)}))})),{open:u,openUrl:d,alert:f,confirm:h,close:p}},UT=function(e,t){e.notificationManager.open({type:"error",text:t})},GT=function(e,t){e._skinLoaded?UT(e,t):e.on("SkinLoaded",(function(){UT(e,t)}))},VT=function(e,t){GT(e,Jc.translate(["Failed to upload image: {0}",t]))},WT=function(e,t,n){jg(e,t,{message:n}),console.error(n)},HT=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},$T=function(e,t,n){WT(e,"PluginLoadError",HT("plugin",t,n))},KT=function(e,t,n){WT(e,"IconsLoadError",HT("icons",t,n))},XT=function(e,t,n){WT(e,"LanguageLoadError",HT("language",t,n))},YT=function(e,t,n){var r=Jc.translate(["Failed to initialize plugin: {0}",t]);jg(e,"PluginLoadError",{message:r}),JT(r,n),GT(e,r)},JT=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,We([e],t)):r.log.apply(r,We([e],t)))},QT=function(e){return/^[a-z0-9\-]+$/i.test(e)},ZT=function(e){return tI(e,Df(e))},eI=function(e){return tI(e,jf(e))},tI=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,i="content"+r+".css",o=!0===e.inline;return J(t,(function(t){return QT(t)&&!o?n+"/"+t+"/"+i:e.documentBaseURI.toAbsolute(t)}))},nI=function(e){e.contentCSS=e.contentCSS.concat(ZT(e),eI(e))},rI=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},i=function(e){return e in n},o=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!i(t)&&n[t].status===e},s=function(e){return!!i(e)&&n[e].status===t},l=function(t){n[t]=r(e,null)},c=function(e,i){n[e]=r(t,i)},u=function(e){delete n[e]},d=function(){n={}};return{hasBlobUri:i,getResultUri:o,isPending:a,isUploaded:s,markPending:l,markUploaded:c,removeFailed:u,destroy:d}},iI=0,oI=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},aI=function(e){return e+iI+++oI()},sI=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,i,o){if(N(e)){var a=e;return r({id:a,name:i,filename:o,blob:t,base64:n})}if(L(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||aI("blobid"),r=e.name||n,i=e.blob;return{id:g(n),name:g(r),filename:g(e.filename||r+"."+t(i.type)),blob:g(i),base64:g(e.base64),blobUri:g(e.blobUri||URL.createObjectURL(i)),uri:g(e.uri)}},i=function(t){a(t.id())||e.push(t)},o=function(t){return oe(e,t).getOrUndefined()},a=function(e){return o((function(t){return t.id()===e}))},s=function(e){return o((function(t){return t.blobUri()===e}))},l=function(e,t){return o((function(n){return n.base64()===e&&n.blob().type===t}))},c=function(t){e=te(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},u=function(){Q(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:i,get:a,getByUri:s,getByData:l,findFirst:o,removeByUri:c,destroy:u}},lI=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(e,n,i,o){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)i("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):i("Invalid JSON: "+a.responseText)}};var s=new FormData;s.append("file",e.blob(),e.filename()),a.send(s)},o=function(){return new wo((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},s=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},l=function(e,t){dn.each(n[e],(function(e){e(t)})),delete n[e]},c=function(t,n,r){return e.markPending(t.blobUri()),new wo((function(i){var o,c;try{var u=function(){o&&(o.close(),c=h)},d=function(n){u(),e.markUploaded(t.blobUri(),n),l(t.blobUri(),a(t,n)),i(a(t,n))},f=function(n,r){var o=r||{};u(),e.removeFailed(t.blobUri()),l(t.blobUri(),s(t,n,o)),i(s(t,n,o))};c=function(e){e<0||e>100||I.from(o).orThunk((function(){return I.from(r).map(w)})).each((function(t){o=t,t.progressBar.value(e)}))},n(t,d,f,c)}catch(p){i(s(t,p.message,{}))}}))},u=function(e){return e===i},d=function(e){var t=e.blobUri();return new wo((function(e){n[t]=n[t]||[],n[t].push(e)}))},f=function(n,r){return n=dn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),wo.all(dn.map(n,(function(n){return e.isPending(n.blobUri())?d(n):c(n,t.handler,r)})))},p=function(e,n){return!t.url&&u(t.handler)?o():f(e,n)};return!1===U(t.handler)&&(t.handler=i),{upload:p}},cI=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},uI=function(e,t){return lI(t,{url:kf(e),basePath:Of(e),credentials:Tf(e),handler:If(e)})},dI=function(e){var t=rI(),n=uI(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?cI(e):void 0)}}},fI=function(e){var t=Fc(null);e.on("change AddUndo",(function(e){t.set(Ge({},e.level))}));var n=function(){var n=e.undoManager.data;ge(n).filter((function(e){return!RE(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:pe(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},hI=function(e){var t,n,r=sI(),i=rI(),o=[],a=fI(e),s=function(t){return function(n){return e.selection?t(n):[]}},l=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},c=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},u=function(e,t,n){var r='src="'+n+'"'+(n===Jt.transparentSrc?' data-mce-placeholder="1"':"");return e=c(e,'src="'+t+'"',r),e=c(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},d=function(t,n){Q(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=J(e.fragments,(function(e){return u(e,t,n)})):e.content=u(e.content,t,n)}))},f=function(t,n){var r=e.convertURL(n,"src");d(t.src,n),e.$(t).attr({src:xf(e)?l(n):n,"data-mce-src":r})},h=function(n){return t||(t=uI(e,i)),v().then(s((function(i){var o=J(i,(function(e){return e.blobInfo}));return t.upload(o,cI(e)).then(s((function(t){var o=[],s=J(t,(function(t,n){var a=i[n].blobInfo,s=i[n].image;return t.status&&Sf(e)?(r.removeByUri(s.src),f(s,t.url)):t.error&&(t.error.options.remove&&(d(s.getAttribute("src"),Jt.transparentSrc),o.push(s)),VT(e,t.error.message)),{element:s,status:t.status,uploadUri:t.url,blobInfo:a}}));return s.length>0&&a.fireIfChanged(),o.length>0&&(JE(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Q(o,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(s),s})))})))},p=function(t){if(wf(e))return h(t)},m=function(t){if(!1===ce(o,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=_f(e);return n(t)}return!0},g=function(e){o.push(e)},v=function(){return n||(n=rO(i,r)),n.findAll(e.getBody(),m).then(s((function(t){return t=te(t,(function(t){return"string"!==typeof t||(GT(e,t),!1)})),Q(t,(function(e){d(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},y=function(){r.destroy(),i.destroy(),n=t=null},b=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=re(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var s=a.blob();return'src="data:'+s.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){wf(e)?p():v()})),e.on("RawSaveContent",(function(e){e.content=b(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=b(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Q(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=i.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:g,uploadImages:h,uploadImagesAuto:p,scanForImages:v,destroy:y}},pI=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Br(e)&&e.hasAttribute("href")},onformat:function(t,n,r){dn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return dn.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},mI=function(e){var t={},n=function(e){return e?t[e]:t},r=function(e){return Re(t,e)},i=function(e,n){e&&("string"!==typeof e?dn.each(e,(function(e,t){i(t,e)})):(D(n)||(n=[n]),dn.each(n,(function(e){"undefined"===typeof e.deep&&(e.deep=!e.selector),"undefined"===typeof e.split&&(e.split=!e.selector||e.inline),"undefined"===typeof e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"===typeof e.classes&&(e.classes=e.classes.split(/\s+/))})),t[e]=n))},o=function(e){return e&&t[e]&&delete t[e],t};return i(pI(e.dom)),i(Kf(e)),{get:n,has:r,register:i,unregister:o}},gI=dn.each,vI=Ic.DOM,yI=function(e,t){var n,r,i,o=t&&t.schema||Rs({}),a=function(e,t){t.classes.length&&vI.addClass(e,t.classes.join(" ")),vI.setAttribs(e,t.attrs)},s=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=vI.create(r.name);return a(t,r),t},l=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(t&&-1!==dn.inArray(i,t)?t:i[0])},c=function(e,t,n){var r,i,o=t.length>0&&t[0],a=o&&o.name,u=l(e,a);if(u)a===u?(i=t[0],t=t.slice(1)):i=u;else if(o)i=t[0],t=t.slice(1);else if(!n)return e;return i&&(r=s(i),r.appendChild(e)),n&&(r||(r=vI.create("div"),r.appendChild(e)),dn.each(n,(function(t){var n=s(t);r.insertBefore(n,e)}))),c(r,t,i&&i.siblings)};return e&&e.length?(r=e[0],n=s(r),i=vI.create("div"),i.appendChild(c(n,e.slice(1),r.siblings)),i):""},bI=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=dn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==dn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},_I=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),dn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=dn.map(e.split(/(?:~\+|~|\+)/),bI),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},wI=function(e,t){var n,r,i,o="",a=Xf(e);if(""===a)return"";var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var l=Ae(t,"preview");if(l.is(!1))return"";a=l.getOr(a)}n=t.block||t.inline||"span";var c=_I(t.selector);c.length?(c[0].name||(c[0].name=n),n=t.selector,r=yI(c,e)):r=yI([n],e);var u=vI.select(n,r)[0]||r.firstChild;return gI(t.styles,(function(e,t){var n=s(e);n&&vI.setStyle(u,t,n)})),gI(t.attributes,(function(e,t){var n=s(e);n&&vI.setAttrib(u,t,n)})),gI(t.classes,(function(e){var t=s(e);vI.hasClass(u,t)||vI.addClass(u,t)})),e.fire("PreviewFormats"),vI.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),i=vI.getStyle(e.getBody(),"fontSize",!0),i=/px$/.test(i)?parseInt(i,10):0,gI(a.split(" "),(function(t){var n=vI.getStyle(u,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=vI.getStyle(e.getBody(),t,!0),"#ffffff"!==vI.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==vI.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===i)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*i+"px"}"border"===t&&n&&(o+="padding:0 2px;"),o+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),vI.remove(r),o},xI=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},SI=function(e){var t=mI(e),n=Fc(null);return xI(e),ES(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){vk(e,t,n,r)},remove:function(t,n,r,i){yk(e,t,n,r,i)},toggle:function(t,n,r){bk(e,t,n,r)},match:function(t,n,r){return fk(e,t,n,r)},closest:function(t){return gk(e,t)},matchAll:function(t,n){return hk(e,t,n)},matchNode:function(t,n,r,i){return pk(e,t,n,r,i)},canApply:function(t){return mk(e,t)},formatChanged:function(t,r,i){return _k(e,n,t,r,i)},getCssText:y(wI,e)}},CI=function(e,t,n){var r=Fc(!1),i=function(e){ME(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command.toLowerCase();"undo"!==r&&"redo"!==r&&"mcerepaint"!==r&&(NE(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command.toLowerCase();"undo"!==t&&"redo"!==t&&"mcerepaint"!==t&&i(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",i),e.on("dragend",i),e.on("keyup",(function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),e.nodeChanged()),46!==o&&8!==o||e.nodeChanged(),r.get()&&t.typing&&!1===RE(EE(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var o=e.keyCode;if(!e.isDefaultPrevented())if(o>=33&&o<=36||o>=37&&o<=40||45===o)t.typing&&i(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(o<16||o>20)||224===o||91===o||t.typing||a||(t.beforeChange(),ME(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&i(e)}));var o=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},s=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(o(e)||a(e)||s(e))&&i(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},EI=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},kI=function(e){var t=Fc(I.none()),n=Fc(0),r=Fc(0),i={data:[],typing:!1,beforeChange:function(){tk(e,n,t)},add:function(o,a){return nk(e,i,r,n,t,o,a)},undo:function(){return rk(e,i,n,r)},redo:function(){return ik(e,r,i.data)},clear:function(){ok(e,i,r)},reset:function(){ak(e,i)},hasUndo:function(){return sk(e,i,r)},hasRedo:function(){return lk(e,i,r)},transact:function(t){return ck(e,i,n,t)},ignore:function(t){uk(e,n,t)},extra:function(t,n){dk(e,i,r,t,n)}};return JE(e)||CI(e,i,n),EI(e),i},OI=[9,27,Fg.HOME,Fg.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Fg.DOWN,Fg.UP,Fg.LEFT,Fg.RIGHT].concat(Jt.browser.isFirefox()?[224]:[]),TI="data-mce-placeholder",II=function(e){return"keydown"===e.type||"keyup"===e.type},AI=function(e){var t=e.keyCode;return t===Fg.BACKSPACE||t===Fg.DELETE},RI=function(e){if(II(e)){var t=e.keyCode;return!AI(e)&&(Fg.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||X(OI,t))}return!1},PI=function(e){return II(e)&&!(AI(e)||"keyup"===e.type&&229===e.keyCode)},MI=function(e,t,n){if(Ka(vn.fromDom(t),!1)){var r=""===n,i=t.firstElementChild;return!i||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(i):n===i.nodeName.toLowerCase())}return!1},NI=function(e){var t=e.dom,n=ff(e),r=Uf(e),i=function(o,a){if(!RI(o)){var s=e.getBody(),l=!PI(o)&&MI(t,s,n),c=""!==t.getAttrib(s,TI);(c!==l||a)&&(t.setAttrib(s,TI,l?r:null),t.setAttrib(s,"aria-placeholder",l?r:null),Dg(e,l),e.on(l?"keydown":"keyup",i),e.off(l?"keyup":"keydown",i))}};r&&e.on("init",(function(t){i(t,!0),e.on("change SetContent ExecCommand",i),e.on("paste",(function(t){return To.setEditorTimeout(e,(function(){return i(t)}))}))}))},LI=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,DI=function(e){return LI.test(e)},jI=function(e,t){return kn(vn.fromDom(t),Bf(e))},FI=function(e){return"rtl"===Ic.DOM.getStyle(e,"direction",!0)||DI(e.textContent)},BI=function(e,t,n){return te(Ic.DOM.getParents(n.container(),"*",t),e)},qI=function(e,t,n){var r=BI(e,t,n);return I.from(r[r.length-1])},zI=function(e,t,n){var r=Yh(t,e),i=Yh(n,e);return r&&r===i},UI=function(e){return pa(e)||ma(e)},GI=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ua(n)?Xr(n.nextSibling)?bd(n.nextSibling,0):bd.after(n):pa(t)?bd(n,r+1):t:ua(n)?Xr(n.previousSibling)?bd(n.previousSibling,n.previousSibling.data.length):bd.before(n):ma(t)?bd(n,r-1):t},VI=y(GI,!0),WI=y(GI,!1),HI=function(e){return function(t){return An(e,vn.fromDom(t.dom.parentNode))}},$I=function(e,t){return Mn(e,t)?po(t,(function(e){return $o(e)||Xo(e)}),HI(e)):I.none()},KI=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},XI=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),KI(e))},YI=function(e,t,n){return Du(jp(n),Fp(n),(function(r,i){var o=GI(!0,r),a=GI(!1,i),s=GI(!1,t);return e?Lp(n,s).exists((function(e){return e.isEqual(a)&&t.isEqual(o)})):Dp(n,s).exists((function(e){return e.isEqual(o)&&t.isEqual(a)}))})).getOr(!0)},JI=function(e,t){return{block:e,position:t}},QI=function(e,t){return{from:e,to:t}},ZI=function(e,t){var n=vn.fromDom(e),r=vn.fromDom(t.container());return $I(n,r).map((function(e){return JI(e,t)}))},eA=function(e){return!1===An(e.from.block,e.to.block)},tA=function(e){return Hn(e.from.block).bind((function(t){return Hn(e.to.block).filter((function(e){return An(t,e)}))})).isSome()},nA=function(e){return!1===ni(e.from.block.dom)&&!1===ni(e.to.block.dom)},rA=function(e,t,n){return Zr(n.position.getNode())&&!1===Ka(n.block)?Np(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Rp(t,e,r).bind((function(t){return ZI(e,t)})):I.some(n)})).getOr(n):n},iA=function(e,t,n){var r=ZI(e,bd.fromRangeStart(n)),i=r.bind((function(n){return Rp(t,e,n.position).bind((function(n){return ZI(e,n).map((function(n){return rA(e,t,n)}))}))}));return Du(r,i,QI).filter((function(e){return eA(e)&&tA(e)&&nA(e)}))},oA=function(e,t,n){return n.collapsed?iA(e,t,n):I.none()},aA=function(e){var t=Zn(e);return ae(t,Go).fold((function(){return t}),(function(e){return t.slice(0,e)}))},sA=function(e){var t=aA(e);return Q(t,xr),t},lA=function(e,t){var n=i_(t,e);return oe(n.reverse(),(function(e){return Ka(e)})).each(xr)},cA=function(e){return 0===te(Jn(e),(function(e){return!Ka(e)})).length},uA=function(e,t,n,r){if(Ka(n))return Zb(n),jp(n.dom);cA(r)&&Ka(t)&&pr(r,vn.fromTag("br"));var i=Dp(n.dom,bd.before(r.dom));return Q(sA(t),(function(e){pr(r,e)})),lA(e,t),i},dA=function(e,t,n){if(Ka(n))return xr(n),Ka(t)&&Zb(t),jp(t.dom);var r=Fp(n.dom);return Q(sA(t),(function(e){vr(n,e)})),lA(e,t),r},fA=function(e,t){var n=i_(t,e);return I.from(n[n.length-1])},hA=function(e,t){return Mn(t,e)?fA(t,e):I.none()},pA=function(e,t){Np(e,t.dom).map((function(e){return e.getNode()})).map(vn.fromDom).filter(Ho).each(xr)},mA=function(e,t,n){return pA(!0,t),pA(!1,n),hA(t,n).fold(y(dA,e,t,n),y(uA,e,t,n))},gA=function(e,t,n,r){return t?mA(e,r,n):mA(e,n,r)},vA=function(e,t){var n=vn.fromDom(e.getBody()),r=oA(n.dom,t,e.selection.getRng()).bind((function(e){return gA(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},yA=function(e,t){var n=t.getRng();return Du($I(e,vn.fromDom(n.startContainer)),$I(e,vn.fromDom(n.endContainer)),(function(r,i){return!1===An(r,i)&&(n.deleteContents(),gA(e,!0,r,i).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},bA=function(e,t){var n=vn.fromDom(t),r=y(An,e);return ho(n,Jo,r).isSome()},_A=function(e,t){return bA(e,t.startContainer)||bA(e,t.endContainer)},wA=function(e,t){var n=Dp(e.dom,bd.fromRangeStart(t)).isNone(),r=Lp(e.dom,bd.fromRangeEnd(t)).isNone();return!_A(e,t)&&n&&r},xA=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},SA=function(e){var t=vn.fromDom(e.getBody()),n=e.selection.getRng();return wA(t,n)?xA(e):yA(t,e.selection)},CA=function(e,t){return!e.selection.isCollapsed()&&SA(e)},EA=ti,kA=ni,OA=function(e,t,n,r,i){return I.from(t._selectionOverrides.showCaret(e,n,r,i))},TA=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},IA=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?I.none():I.some(TA(t))},AA=function(e,t,n){var r=ip(1,e.getBody(),t),i=bd.fromRangeStart(r),o=i.getNode();if(jh(o))return OA(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(jh(a))return OA(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return kA(e)||EA(e)}));return jh(s)?OA(1,e,s,!1,n):I.none()},RA=function(e,t,n){return t.collapsed?AA(e,t,n).getOr(t):t},PA=function(e){return Xb(e)||Wb(e)},MA=function(e){return Yb(e)||Hb(e)},NA=function(e,t){Xr(t)&&0===t.data.length&&e.remove(t)},LA=function(e,t,n,r,i,o){return OA(r,e,o.getNode(!i),i,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),NA(e.dom,n),!0},DA=function(e,t){var n=e.selection.getRng();if(!Xr(n.commonAncestorContainer))return!1;var r=t?_d.Forwards:_d.Backwards,i=Sp(e.getBody()),o=y(cp,t?i.next:i.prev),a=t?PA:MA,s=ap(r,e.getBody(),n),l=GI(t,o(s));if(!l||!up(s,l))return!1;if(a(l))return LA(e,n,s.getNode(),r,t,l);var c=o(l);return!!(c&&a(c)&&up(l,c))&&LA(e,n,s.getNode(),r,t,c)},jA=function(e,t){return DA(e,t)},FA=function(e){return Jo(vn.fromDom(e))||Xo(vn.fromDom(e))},BA=Vi.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),qA=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Br(n)&&n.getAttribute("data-mce-caret")===r},zA=function(e,t,n,r){var i=function(t){return Wo(vn.fromDom(t))&&!Jh(n,r,e)};return op(!t,n).fold((function(){return op(t,r).fold(S,i)}),i)},UA=function(e,t,n,r){var i=r.getNode(!1===t);return $I(vn.fromDom(e),vn.fromDom(n.getNode())).map((function(e){return Ka(e)?BA.remove(e.dom):BA.moveToElement(i)})).orThunk((function(){return I.some(BA.moveToElement(i))}))},GA=function(e,t,n){return Rp(t,e,n).bind((function(r){return FA(r.getNode())||zA(e,t,n,r)?I.none():t&&ni(r.getNode())||!1===t&&ni(r.getNode(!0))?UA(e,t,n,r):t&&Yb(n)||!1===t&&Xb(n)?I.some(BA.moveToPosition(r)):I.none()}))},VA=function(e,t){return e&&ni(t.nextSibling)?I.some(BA.moveToElement(t.nextSibling)):!1===e&&ni(t.previousSibling)?I.some(BA.moveToElement(t.previousSibling)):I.none()},WA=function(e,t,n){return n.fold((function(e){return I.some(BA.remove(e))}),(function(e){return I.some(BA.moveToElement(e))}),(function(n){return Jh(t,n,e)?I.none():I.some(BA.moveToPosition(n))}))},HA=function(e,t,n){return qA(t,n)?VA(t,n.getNode(!1===t)).fold((function(){return GA(e,t,n)}),I.some):GA(e,t,n).bind((function(t){return WA(e,n,t)}))},$A=function(e,t,n){var r=ip(t?1:-1,e,n),i=bd.fromRangeStart(r),o=vn.fromDom(e);return!1===t&&Yb(i)?I.some(BA.remove(i.getNode(!0))):t&&Xb(i)?I.some(BA.remove(i.getNode())):!1===t&&Xb(i)&&g_(o,i)?v_(o,i).map((function(e){return BA.remove(e.getNode())})):t&&Yb(i)&&m_(o,i)?y_(o,i).map((function(e){return BA.remove(e.getNode())})):HA(e,t,i)},KA=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),uw(e,t,vn.fromDom(n)),!0}},XA=function(e,t){return function(n){var r=t?bd.before(n):bd.after(n);return e.selection.setRng(r.toRange()),!0}},YA=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},JA=function(e,t){return I.from(Cg(e.getBody(),t))},QA=function(e,t){var n=e.selection.getNode();return JA(e,n).filter(ni).fold((function(){return $A(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(KA(e,t),XA(e,t),YA(e))}))}),C)},ZA=function(e){Q(hu(e,".mce-offscreen-selection"),xr)},eR=function(e,t){var n=e.selection.getNode();if(ni(n)){var r=JA(e,n.parentNode).filter(ni);return r.fold((function(){return ZA(vn.fromDom(e.getBody())),uw(e,t,vn.fromDom(e.selection.getNode())),XI(e),!0}),C)}return!1},tR=function(e){var t=e.dom,n=e.selection,r=Cg(e.getBody(),n.getNode());if(ti(r)&&t.isBlock(r)&&t.isEmpty(r)){var i=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(i),n.setRng(bd.before(i).toRange())}return!0},nR=function(e,t){return e.selection.isCollapsed()?QA(e,t):eR(e,t)},rR=function(e,t){var n=bd.fromRangeStart(e.selection.getRng());return Rp(t,e.getBody(),n).filter((function(e){return t?Gb(e):Vb(e)})).bind((function(e){return I.from(Qh(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},iR=function(e,t){return!!e.selection.isCollapsed()&&rR(e,t)},oR=Xr,aR=function(e){return oR(e)&&e.data[0]===ia},sR=function(e){return oR(e)&&e.data[e.data.length-1]===ia},lR=function(e){return e.ownerDocument.createTextNode(ia)},cR=function(e){if(oR(e.previousSibling))return sR(e.previousSibling)||e.previousSibling.appendData(ia),e.previousSibling;if(oR(e))return aR(e)||e.insertData(0,ia),e;var t=lR(e);return e.parentNode.insertBefore(t,e),t},uR=function(e){if(oR(e.nextSibling))return aR(e.nextSibling)||e.nextSibling.insertData(0,ia),e.nextSibling;if(oR(e))return sR(e)||e.appendData(ia),e;var t=lR(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},dR=function(e,t){return e?cR(t):uR(t)},fR=y(dR,!0),hR=y(dR,!1),pR=function(e,t){return Xr(e.container())?dR(t,e.container()):dR(t,e.getNode())},mR=function(e,t){var n=t.get();return n&&e.container()===n&&ua(n)},gR=function(e,t){return t.fold((function(t){Oh(e.get());var n=fR(t);return e.set(n),I.some(bd(n,n.length-1))}),(function(t){return jp(t).map((function(t){if(mR(t,e))return bd(e.get(),1);Oh(e.get());var n=pR(t,!0);return e.set(n),bd(n,1)}))}),(function(t){return Fp(t).map((function(t){if(mR(t,e))return bd(e.get(),e.get().length-1);Oh(e.get());var n=pR(t,!1);return e.set(n),bd(n,n.length-1)}))}),(function(t){Oh(e.get());var n=hR(t);return e.set(n),I.some(bd(n,1))}))},vR=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return I.none()},yR=Vi.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),bR=function(e,t){var n=Yh(t,e);return n||e},_R=function(e,t,n){var r=VI(n),i=bR(t,r.container());return qI(e,i,r).fold((function(){return Lp(i,r).bind(y(qI,e,i)).map((function(e){return yR.before(e)}))}),I.none)},wR=function(e,t){return null===zp(e,t)},xR=function(e,t,n){return qI(e,t,n).filter(y(wR,t))},SR=function(e,t,n){var r=WI(n);return xR(e,t,r).bind((function(e){var t=Dp(e,r);return t.isNone()?I.some(yR.start(e)):I.none()}))},CR=function(e,t,n){var r=VI(n);return xR(e,t,r).bind((function(e){var t=Lp(e,r);return t.isNone()?I.some(yR.end(e)):I.none()}))},ER=function(e,t,n){var r=WI(n),i=bR(t,r.container());return qI(e,i,r).fold((function(){return Dp(i,r).bind(y(qI,e,i)).map((function(e){return yR.after(e)}))}),I.none)},kR=function(e){return!1===FI(TR(e))},OR=function(e,t,n){var r=vR([_R,SR,CR,ER],[e,t,n]);return r.filter(kR)},TR=function(e){return e.fold(v,v,v,v)},IR=function(e){return e.fold(g("before"),g("start"),g("end"),g("after"))},AR=function(e){return e.fold(yR.before,yR.before,yR.after,yR.after)},RR=function(e){return e.fold(yR.start,yR.start,yR.end,yR.end)},PR=function(e,t){return IR(e)===IR(t)&&TR(e)===TR(t)},MR=function(e,t,n,r,i,o){return Du(qI(t,n,r),qI(t,n,i),(function(t,r){return t!==r&&zI(n,t,r)?yR.after(e?t:r):o})).getOr(o)},NR=function(e,t){return e.fold(C,(function(e){return!PR(e,t)}))},LR=function(e,t,n,r,i){var o=GI(e,i),a=Rp(e,n,o).map(y(GI,e)),s=a.fold((function(){return r.map(AR)}),(function(i){return OR(t,n,i).map(y(MR,e,t,n,o,i)).filter(y(NR,r))}));return s.filter(kR)},DR=function(e,t){return e?t.fold(p(I.some,yR.start),I.none,p(I.some,yR.after),I.none):t.fold(I.none,p(I.some,yR.before),I.none,p(I.some,yR.end))},jR=function(e,t,n,r){var i=GI(e,r),o=OR(t,n,i);return OR(t,n,i).bind(y(DR,e)).orThunk((function(){return LR(e,t,n,o,r)}))},FR=(y(jR,!1),y(jR,!0),function(e){return U(e.selection.getSel().modify)}),BR=function(e,t,n){var r=e?1:-1;return t.setRng(bd(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},qR=function(e,t){var n=t.selection.getRng(),r=e?bd.fromRangeEnd(n):bd.fromRangeStart(n);return!!FR(t)&&(e&&pa(r)?BR(!0,t.selection,r):!(e||!ma(r))&&BR(!1,t.selection,r))},zR=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},UR=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},GR=function(e,t,n){return gR(t,n).map((function(t){return zR(e,t),n}))},VR=function(e,t,n){var r=e.getBody(),i=bd.fromRangeStart(e.selection.getRng()),o=y(jI,e),a=jR(n,o,r,i);return a.bind((function(n){return GR(e,t,n)}))},WR=function(e,t,n){var r=J(hu(vn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),i=te(r,e),o=te(n,e);Q(de(i,o),y(UR,!1)),Q(de(o,i),y(UR,!0))},HR=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=bd.fromRangeStart(e.selection.getRng());bd.isTextPosition(n)&&!1===UI(n)&&(zR(e,kh(t.get(),n)),t.set(null))}},$R=function(e,t,n,r){if(t.selection.isCollapsed()){var i=te(r,e);Q(i,(function(r){var i=bd.fromRangeStart(t.selection.getRng());OR(e,t.getBody(),i).bind((function(e){return GR(t,n,e)}))}))}},KR=function(e,t,n){return!!$f(e)&&VR(e,t,n).isSome()},XR=function(e,t,n){return!!$f(t)&&qR(e,t)},YR=function(e){var t=Fc(null),n=y(jI,e);return e.on("NodeChange",(function(r){!$f(e)||Jt.browser.isIE()&&r.initial||(WR(n,e.dom,r.parents),HR(e,t),$R(n,e,t,r.parents))})),t},JR=y(XR,!0),QR=y(XR,!1),ZR=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},eP=function(e){return Du(jp(e),Fp(e),(function(t,n){var r=GI(!0,t),i=GI(!1,n);return Lp(e,r).forall((function(e){return e.isEqual(i)}))})).getOr(!0)},tP=function(e,t){return function(n){return gR(t,n).exists((function(t){return zR(e,t),!0}))}},nP=function(e,t,n,r){var i=e.getBody(),o=y(jI,e);e.undoManager.ignore((function(){e.selection.setRng(ZR(n,r)),e.execCommand("Delete"),OR(o,i,bd.fromRangeStart(e.selection.getRng())).map(RR).map(tP(e,t))})),e.nodeChanged()},rP=function(e,t){var n=Yh(t,e);return n||e},iP=function(e,t,n,r){var i=rP(e.getBody(),r.container()),o=y(jI,e),a=OR(o,i,r);return a.bind((function(e){return n?e.fold(g(I.some(RR(e))),I.none,g(I.some(AR(e))),I.none):e.fold(I.none,g(I.some(AR(e))),I.none,g(I.some(RR(e))))})).map(tP(e,t)).getOrThunk((function(){var s=Pp(n,i,r),l=s.bind((function(e){return OR(o,i,e)}));return Du(a,l,(function(){return qI(o,i,r).exists((function(t){return!!eP(t)&&(uw(e,n,vn.fromDom(t)),!0)}))})).orThunk((function(){return l.bind((function(i){return s.map((function(i){return n?nP(e,t,r,i):nP(e,t,i,r),!0}))}))})).getOr(!1)}))},oP=function(e,t,n){if(e.selection.isCollapsed()&&$f(e)){var r=bd.fromRangeStart(e.selection.getRng());return iP(e,t,n,r)}return!1},aP=function(e,t){var n=i_(t,e);return ae(n,Go).fold(g(n),(function(e){return n.slice(0,e)}))},sP=function(e){return 1===Zn(e).length},lP=function(e,t,n,r){var i=y(OS,t),o=J(te(r,i),(function(e){return e.dom}));if(0===o.length)uw(t,e,n);else{var a=kS(n.dom,o);t.selection.setRng(a.toRange())}},cP=function(e,t){var n=vn.fromDom(e.getBody()),r=vn.fromDom(e.selection.getStart()),i=te(aP(n,r),sP);return ge(i).exists((function(n){var r=bd.fromRangeStart(e.selection.getRng());return!(!YI(t,r,n.dom)||TS(n))&&(lP(t,e,n,i),!0)}))},uP=function(e,t){return!!e.selection.isCollapsed()&&cP(e,t)},dP=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),uw(e,t,vn.fromDom(n)),!0},fP=function(e,t){var n=t?Wb:Hb,r=t?_d.Forwards:_d.Backwards,i=ap(r,e.getBody(),e.selection.getRng());return n(i)?dP(e,t,i.getNode(!t)):I.from(GI(t,i)).filter((function(e){return n(e)&&up(i,e)})).exists((function(n){return dP(e,t,n.getNode(!t))}))},hP=function(e,t){var n=e.selection.getNode();return!!ii(n)&&dP(e,t,n)},pP=function(e,t){return e.selection.isCollapsed()?fP(e,t):hP(e,t)},mP=function(e){return po(e,(function(e){return ti(e.dom)||ni(e.dom)})).exists((function(e){return ti(e.dom)}))},gP=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},vP=function(e,t){var n=e||Vo(t)?"margin":"padding",r="rtl"===gi(t,"direction")?"-right":"-left";return n+r},yP=function(e,t,n,r,i,o){var a=vP(n,vn.fromDom(o));if("outdent"===t){var s=Math.max(0,gP(o.style[a])-r);e.setStyle(o,a,s?s+i:"")}else{s=gP(o.style[a])+r+i;e.setStyle(o,a,s)}},bP=function(e,t){return ce(t,(function(t){var n=vP(Nf(e),t),r=yi(t,n).map(gP).getOr(0),i=e.dom.getContentEditable(t.dom);return"false"!==i&&r>0}))},_P=function(e){var t=SP(e);return!e.mode.isReadOnly()&&(t.length>1||bP(e,t))},wP=function(e){return Ko(e)||Xo(e)},xP=function(e){return Hn(e).map(wP).getOr(!1)},SP=function(e){return te(J(e.selection.getSelectedBlocks(),vn.fromDom),(function(e){return!wP(e)&&!xP(e)&&mP(e)}))},CP=function(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=Lf(e),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),l=Nf(e),c=ff(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==c||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),Q(SP(e),(function(e){yP(n,t,l,s,a,e.dom)}))},EP=function(e,t){if(e.selection.isCollapsed()&&_P(e)){var n=e.dom,r=e.selection.getRng(),i=bd.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&c_(vn.fromDom(o),i))return CP(e,"outdent"),!0}return!1},kP=function(e,t){e.getDoc().execCommand(t,!1,null)},OP=function(e,t){EP(e)||nR(e,!1)||jA(e,!1)||oP(e,t,!1)||vA(e,!1)||Zw(e)||iR(e,!1)||pP(e,!1)||CA(e)||uP(e,!1)||(kP(e,"Delete"),XI(e))},TP=function(e,t){nR(e,!0)||jA(e,!0)||oP(e,t,!0)||vA(e,!0)||Zw(e)||iR(e,!0)||pP(e,!0)||CA(e)||uP(e,!0)||kP(e,"ForwardDelete")},IP=function(e,t){e.addCommand("delete",(function(){OP(e,t)})),e.addCommand("forwardDelete",(function(){TP(e,t)}))},AP=5,RP=400,PP=function(e){return void 0===e.touches||1!==e.touches.length?I.none():I.some(e.touches[0])},MP=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>AP||r>AP},NP=function(e){var t=Fc(I.none()),n=Fc(!1),r=eu((function(t){e.fire("longpress",Ge(Ge({},t),{type:"longpress"})),n.set(!0)}),RP);e.on("touchstart",(function(e){PP(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(I.some(o))}))}),!0),e.on("touchmove",(function(i){r.cancel(),PP(i).each((function(r){t.get().each((function(i){MP(r,i)&&(t.set(I.none()),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(i){r.cancel(),"touchcancel"!==i.type&&t.get().filter((function(e){return e.target.isEqualNode(i.target)})).each((function(){n.get()?i.preventDefault():e.fire("tap",Ge(Ge({},i),{type:"tap"}))}))}),!0)},LP=function(e,t){return e.hasOwnProperty(t.nodeName)},DP=function(e,t){return!!Xr(t)||!!Br(t)&&(!LP(e,t)&&!lm(t))},jP=function(e,t,n){return Y(r_(vn.fromDom(n),vn.fromDom(t)),(function(t){return LP(e,t.dom)}))},FP=function(e,t){if(Xr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||LP(e,t.nextSibling)))return!0}return!1},BP=function(e){var t,n,r,i=e.dom,o=e.selection,a=e.schema,s=a.getBlockElements(),l=o.getStart(),c=e.getBody(),u=ff(e);if(l&&Br(l)&&u){var d=c.nodeName.toLowerCase();if(a.isValidChild(d,u.toLowerCase())&&!jP(s,c,l)){var f=o.getRng(),h=f.startContainer,p=f.startOffset,m=f.endContainer,g=f.endOffset,v=Xy(e);l=c.firstChild;while(l)if(DP(s,l)){if(FP(s,l)){n=l,l=l.nextSibling,i.remove(n);continue}t||(t=i.create(u,hf(e)),l.parentNode.insertBefore(t,l),r=!0),n=l,l=l.nextSibling,t.appendChild(n)}else t=null,l=l.nextSibling;r&&v&&(f.setStart(h,p),f.setEnd(m,g),o.setRng(f),e.nodeChanged())}}},qP=function(e){ff(e)&&e.on("NodeChange",y(BP,e))},zP=function(e){return yo(vn.fromDom(e.getBody()),"*[data-mce-caret]").fold(g(null),(function(e){return e.dom}))},UP=function(e){e.selection.setRng(e.selection.getRng())},GP=function(e,t){t.hasAttribute("data-mce-caret")&&(wa(t),UP(e),e.selection.scrollIntoView(t))},VP=function(e,t){var n=zP(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void GP(e,n)):void(fa(n)&&(GP(e,n),e.undoManager.add()))},WP=function(e){e.on("keyup compositionstart",y(VP,e))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(qT||(qT={}));var HP,$P=function(e,t){return e===_d.Backwards?ue(t):t},KP=function(e,t,n){return e===_d.Forwards?t.next(n):t.prev(n)},XP=function(e,t,n,r){return Zr(r.getNode(t===_d.Forwards))?qT.Br:!1===Jh(n,r)?qT.Block:qT.Wrap},YP=function(e,t,n,r){var i,o=Sp(n),a=r,s=[];while(a){if(i=KP(t,o,a),!i)break;if(Zr(i.getNode(!1)))return t===_d.Forwards?{positions:$P(t,s).concat([i]),breakType:qT.Br,breakAt:I.some(i)}:{positions:$P(t,s),breakType:qT.Br,breakAt:I.some(i)};if(i.isVisible()){if(e(a,i)){var l=XP(n,t,a,i);return{positions:$P(t,s),breakType:l,breakAt:I.some(i)}}s.push(i),a=i}else a=i}return{positions:$P(t,s),breakType:qT.Eol,breakAt:I.none()}},JP=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===_d.Backwards?i.concat(r):[r].concat(i)})).getOr([])},QP=function(e,t){return re(e,(function(e,n){return e.fold((function(){return I.some(n)}),(function(r){return Du(me(r.getClientRects()),me(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left),a=Math.abs(t-i.left);return a<=o?n:r})).or(e)}))}),I.none())},ZP=function(e,t){return me(t.getClientRects()).bind((function(t){return QP(e,t.left)}))},eM=y(YP,bd.isAbove,-1),tM=y(YP,bd.isBelow,1),nM=function(e,t){return eM(e,t).breakAt.isNone()},rM=function(e,t){return tM(e,t).breakAt.isNone()},iM=y(JP,-1,eM),oM=y(JP,1,tM),aM=function(e){return jp(e).map((function(t){return[t].concat(tM(e,t).positions)})).getOr([])},sM=function(e){return Fp(e).map((function(t){return eM(e,t).positions.concat(t)})).getOr([])},lM=function(e){var t=function(t){return J(t,(function(t){return t=qu(t),t.node=e,t}))};if(Br(e))return t(e.getClientRects());if(Xr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},cM=function(e){return le(e,lM)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(HP||(HP={}));var uM,dM,fM=function(e,t,n,r){while(r=Xh(r,e,ja,t))if(n(r))return},hM=function(e,t,n,r,i,o){var a=0,s=[],l=function(r){var o,l,u;for(u=cM([r]),-1===e&&(u=u.reverse()),o=0;o<u.length;o++)if(l=u[o],!n(l,c)){if(s.length>0&&t(l,Ue(s))&&a++,l.line=a,i(l))return!0;s.push(l)}},c=Ue(o.getClientRects());if(!c)return s;var u=o.getNode();return l(u),fM(e,r,l,u),s},pM=function(e,t){return t.line>e},mM=function(e,t){return t.line===e},gM=y(hM,HP.Up,Vu,Wu),vM=y(hM,HP.Down,Wu,Vu),yM=function(e,t,n,r){var i,o,a,s,l,c=Sp(t),u=[],d=0,f=function(e){return Ue(e.getClientRects())};1===e?(i=c.next,o=Wu,a=Vu,s=bd.after(r)):(i=c.prev,o=Vu,a=Wu,s=bd.before(r));var h=f(s);do{if(s.isVisible()&&(l=f(s),!a(l,h))){if(u.length>0&&o(l,Ue(u))&&d++,l=qu(l),l.position=s,l.line=d,n(l))return u;u.push(l)}}while(s=i(s));return u},bM=function(e){return function(t){return pM(e,t)}},_M=function(e){return function(t){return mM(e,t)}},wM=ni,xM=Xh,SM=function(e,t){return Math.abs(e.left-t)},CM=function(e,t){return Math.abs(e.right-t)},EM=function(e,t){return e>=t.left&&e<=t.right},kM=function(e,t){return e>=t.top&&e<=t.bottom},OM=function(e,t){return qe(e,(function(e,n){var r=Math.min(SM(e,t),CM(e,t)),i=Math.min(SM(n,t),CM(n,t));return EM(t,n)?n:EM(t,e)?e:i===r&&wM(n.node)||i<r?n:e}))},TM=function(e,t,n,r,i){var o=xM(r,e,ja,t,!i);do{if(!o||n(o))return}while(o=xM(o,e,ja,t))},IM=function(e,t,n){void 0===n&&(n=!0);var r=[],i=function(e,n){var i=te(cM([n]),(function(n){return!e(n,t)}));return r=r.concat(i),0===i.length};return r.push(t),TM(HP.Up,e,y(i,Vu),t.node,n),TM(HP.Down,e,y(i,Wu),t.node,n),r},AM=function(e){return te(ve(e.getElementsByTagName("*")),Fh)},RM=function(e,t){return{node:e.node,before:SM(e,t)<CM(e,t)}},PM=function(e,t,n){var r=cM(AM(e)),i=te(r,y(kM,n)),o=OM(i,t);if(o){var a=!Hr(o.node)&&!ii(o.node);if(o=OM(IM(e,o,a),t),o&&Fh(o.node))return RM(o,t)}return null},MM=function(e,t){e.selection.setRng(t),Bv(e,e.selection.getRng())},NM=function(e,t,n){return I.some(RA(e,t,n))},LM=function(e,t,n,r,i,o){var a=t===_d.Forwards,s=Sp(e.getBody()),l=y(cp,a?s.next:s.prev),c=a?r:i;if(!n.collapsed){var u=$u(n);if(o(u))return OA(t,e,u,t===_d.Backwards,!1)}var d=ap(t,e.getBody(),n);if(c(d))return IA(e,d.getNode(!a));var f=GI(a,l(d)),h=xa(n);if(!f)return h?I.some(n):I.none();if(c(f))return OA(t,e,f.getNode(!a),a,!1);var p=l(f);return p&&c(p)&&up(f,p)?OA(t,e,p.getNode(!a),a,!1):h?NM(e,f.toRange(),!1):I.none()},DM=function(e,t,n,r,i,o){var a=ap(t,e.getBody(),n),s=Ue(a.getClientRects()),l=t===HP.Down;if(!s)return I.none();var c,u=l?vM:gM,d=u(e.getBody(),bM(1),a),f=te(d,_M(1)),h=s.left,p=OM(f,h);if(p&&o(p.node)){var m=Math.abs(h-p.left),g=Math.abs(h-p.right);return OA(t,e,p.node,m<g,!1)}if(c=r(a)?a.getNode():i(a)?a.getNode(!0):$u(n),c){var v=yM(t,e.getBody(),bM(1),c),y=OM(te(v,_M(1)),h);if(y)return NM(e,y.position.toRange(),!1);if(y=Ue(te(v,_M(0))),y)return NM(e,y.position.toRange(),!1)}return 0===f.length?jM(e,l).filter(l?i:r).map((function(t){return RA(e,t.toRange(),!1)})):I.none()},jM=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var i=bd.fromRangeEnd(n),o=tM(r,i);return ge(o.positions)}i=bd.fromRangeStart(n),o=eM(r,i);return me(o.positions)},FM=function(e,t,n){return jM(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},BM=ni,qM=function(e,t,n){return LM(t,e,n,Xb,Yb,BM)},zM=function(e,t,n){var r=function(e){return Xb(e)||$b(e)},i=function(e){return Yb(e)||Kb(e)};return DM(t,e,n,r,i,BM)},UM=function(e){var t=e.dom.create(ff(e));return(!Jt.ie||Jt.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},GM=function(e,t,n){var r=Sp(e.getBody()),i=y(cp,1===t?r.next:r.prev);if(n.collapsed&&oh(e)){var o=e.dom.getParent(n.startContainer,"PRE");if(!o)return;var a=i(bd.fromRangeStart(n));if(!a){var s=UM(e);1===t?e.$(o).after(s):e.$(o).before(s),e.selection.select(s,!0),e.selection.collapse()}}},VM=function(e,t){var n=t?_d.Forwards:_d.Backwards,r=e.selection.getRng();return qM(n,e,r).orThunk((function(){return GM(e,n,r),I.none()}))},WM=function(e,t){var n=t?1:-1,r=e.selection.getRng();return zM(n,e,r).orThunk((function(){return GM(e,n,r),I.none()}))},HM=function(e,t){return VM(e,t).exists((function(t){return MM(e,t),!0}))},$M=function(e,t){return WM(e,t).exists((function(t){return MM(e,t),!0}))},KM=function(e,t){var n=t?Yb:Xb;return FM(e,t,n)},XM=function(e){return X(["figcaption"],Nn(e))},YM=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},JM=function(e,t,n){n?vr(e,t):gr(e,t)},QM=function(e,t){var n=vn.fromTag("br");return JM(e,n,t),YM(n)},ZM=function(e,t,n,r){var i=vn.fromTag(n),o=vn.fromTag("br");return li(i,r),vr(i,o),JM(e,i,t),YM(o)},eN=function(e,t,n,r){return""===t?QM(e,r):ZM(e,r,t,n)},tN=function(e,t){var n=y(An,t);return po(vn.fromDom(e.container()),Go,n).filter(XM)},nN=function(e,t,n){return t?rM(e.dom,n):nM(e.dom,n)},rN=function(e,t){var n=vn.fromDom(e.getBody()),r=bd.fromRangeStart(e.selection.getRng()),i=ff(e),o=hf(e);return tN(r,n).exists((function(){if(nN(n,t,r)){var a=eN(n,i,o,t);return e.selection.setRng(a),!0}return!1}))},iN=function(e,t){return!!e.selection.isCollapsed()&&rN(e,t)},oN=function(e){return J(e,(function(e){return Ge({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:h},e)}))},aN=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},sN=function(e,t){return le(oN(e),(function(e){return aN(e,t)?[e]:[]}))},lN=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},cN=function(e,t){return oe(sN(e,t),(function(e){return e.action()}))},uN=function(e,t){var n=t?_d.Forwards:_d.Backwards,r=e.selection.getRng();return LM(e,n,r,Wb,Hb,ii).exists((function(t){return MM(e,t),!0}))},dN=function(e,t){var n=t?1:-1,r=e.selection.getRng();return DM(e,n,r,Wb,Hb,ii).exists((function(t){return MM(e,t),!0}))},fN=function(e,t){var n=t?Hb:Wb;return FM(e,t,n)},hN=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},pN=function(e,t){return le(t,(function(t){var n=hN(qu(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},mN=function(e,t,n){return re(e,(function(e,r){return e.fold((function(){return I.some(r)}),(function(e){var i=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),o=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return I.some(o<i?r:e)}))}),I.none())},gN=function(e,t,n,r,i){var o=hu(vn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=te(pN(e,o),(function(e){return t(e,i)}));return mN(a,r,i).map((function(e){return e.cell}))},vN=function(e){return e.bottom},yN=function(e){return e.top},bN=function(e,t){return e.y<t},_N=function(e,t){return e.y>t},wN=y(gN,vN,bN),xN=y(gN,yN,_N),SN=function(e,t){return me(t.getClientRects()).bind((function(t){return wN(e,t.left,t.top)})).bind((function(e){return ZP(sM(e),t)}))},CN=function(e,t){return ge(t.getClientRects()).bind((function(t){return xN(e,t.left,t.top)})).bind((function(e){return ZP(aM(e),t)}))},EN=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},kN=function(e){return e.breakType===qT.Wrap&&0===e.positions.length},ON=function(e){return e.breakType===qT.Br&&1===e.positions.length},TN=function(e,t,n){var r=e(t,n);return kN(r)||!Zr(n.getNode())&&ON(r)?!EN(e,t,r):r.breakAt.isNone()},IN=y(TN,eM),AN=y(TN,tM),RN=function(e,t,n){var r=bd.fromRangeStart(t);return Np(!e,n).exists((function(e){return e.isEqual(r)}))},PN=function(e,t,n,r){var i=e.selection.getRng(),o=t?1:-1;return!(!Dh()||!RN(t,i,n))&&(OA(o,e,n,!t,!1).each((function(t){MM(e,t)})),!0)},MN=function(e,t,n){return SN(t,n).orThunk((function(){return me(n.getClientRects()).bind((function(n){return QP(iM(e,bd.before(t)),n.left)}))})).getOr(bd.before(t))},NN=function(e,t,n){return CN(t,n).orThunk((function(){return me(n.getClientRects()).bind((function(n){return QP(oM(e,bd.after(t)),n.left)}))})).getOr(bd.after(t))},LN=function(e,t){var n=t.getNode(e);return Br(n)&&"TABLE"===n.nodeName?I.some(n):I.none()},DN=function(e,t,n,r){var i=ff(t);i?t.undoManager.transact((function(){var r=vn.fromTag(i);li(r,hf(t)),vr(r,vn.fromTag("br")),e?mr(vn.fromDom(n),r):pr(vn.fromDom(n),r);var o=t.dom.createRng();o.setStart(r.dom,0),o.setEnd(r.dom,0),MM(t,o)})):MM(t,r.toRange())},jN=function(e,t,n){var r=LN(!!t,n),i=!1===t;r.fold((function(){return MM(e,n.toRange())}),(function(r){return Np(i,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return MM(e,n.toRange())}),(function(i){return DN(t,e,r,n)}))}))},FN=function(e,t,n,r){var i=e.selection.getRng(),o=bd.fromRangeStart(i),a=e.getBody();if(!t&&IN(r,o)){var s=MN(a,n,o);return jN(e,t,s),!0}if(t&&AN(r,o)){s=NN(a,n,o);return jN(e,t,s),!0}return!1},BN=function(e,t,n){return I.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return I.from(e.dom.getParent(r,"table")).map((function(i){return n(e,t,i,r)}))})).getOr(!1)},qN=function(e,t){return BN(e,t,PN)},zN=function(e,t){return BN(e,t,FN)},UN=function(e,t,n){var r=Ut().os;cN([{keyCode:Fg.RIGHT,action:lN(HM,e,!0)},{keyCode:Fg.LEFT,action:lN(HM,e,!1)},{keyCode:Fg.UP,action:lN($M,e,!1)},{keyCode:Fg.DOWN,action:lN($M,e,!0)},{keyCode:Fg.RIGHT,action:lN(qN,e,!0)},{keyCode:Fg.LEFT,action:lN(qN,e,!1)},{keyCode:Fg.UP,action:lN(zN,e,!1)},{keyCode:Fg.DOWN,action:lN(zN,e,!0)},{keyCode:Fg.RIGHT,action:lN(uN,e,!0)},{keyCode:Fg.LEFT,action:lN(uN,e,!1)},{keyCode:Fg.UP,action:lN(dN,e,!1)},{keyCode:Fg.DOWN,action:lN(dN,e,!0)},{keyCode:Fg.RIGHT,action:lN(KR,e,t,!0)},{keyCode:Fg.LEFT,action:lN(KR,e,t,!1)},{keyCode:Fg.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:lN(JR,e,t)},{keyCode:Fg.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:lN(QR,e,t)},{keyCode:Fg.UP,action:lN(iN,e,!1)},{keyCode:Fg.DOWN,action:lN(iN,e,!0)}],n).each((function(e){n.preventDefault()}))},GN=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&UN(e,t,n)}))},VN=function(e,t,n){cN([{keyCode:Fg.BACKSPACE,action:lN(EP,e,!1)},{keyCode:Fg.BACKSPACE,action:lN(nR,e,!1)},{keyCode:Fg.DELETE,action:lN(nR,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(jA,e,!1)},{keyCode:Fg.DELETE,action:lN(jA,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(oP,e,t,!1)},{keyCode:Fg.DELETE,action:lN(oP,e,t,!0)},{keyCode:Fg.BACKSPACE,action:lN(Zw,e,!1)},{keyCode:Fg.DELETE,action:lN(Zw,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(iR,e,!1)},{keyCode:Fg.DELETE,action:lN(iR,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(pP,e,!1)},{keyCode:Fg.DELETE,action:lN(pP,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(CA,e,!1)},{keyCode:Fg.DELETE,action:lN(CA,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(vA,e,!1)},{keyCode:Fg.DELETE,action:lN(vA,e,!0)},{keyCode:Fg.BACKSPACE,action:lN(uP,e,!1)},{keyCode:Fg.DELETE,action:lN(uP,e,!0)}],n).each((function(e){n.preventDefault()}))},WN=function(e,t){cN([{keyCode:Fg.BACKSPACE,action:lN(tR,e)},{keyCode:Fg.DELETE,action:lN(tR,e)}],t)},HN=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&VN(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&WN(e,t)}))},$N=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},KN=function(e,t){var n,r=t,i=e.dom,o=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=$N(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(i.doc.createTextNode(ta),t.firstChild)}var s=i.createRng();if(t.normalize(),t.hasChildNodes()){var l=new Po(t,t);while(n=l.current()){if(Xr(n)){s.setStart(n,0),s.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}r=n,n=l.next()}n||(s.setStart(r,0),s.setEnd(r,0))}else Zr(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(s.setStartBefore(t),s.setEndBefore(t)):(s.setStartAfter(t),s.setEndAfter(t)):(s.setStart(t,0),s.setEnd(t,0));e.selection.setRng(s),Bv(e,s)}},XN=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},YN=function(e){return I.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},JN=function(e){return YN(e).fold(g(""),(function(e){return e.nodeName.toUpperCase()}))},QN=function(e){return YN(e).filter((function(e){return Xo(vn.fromDom(e))})).isSome()},ZN=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},eL=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},tL=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},nL=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},rL=function(e){return nL(e)&&nL(e.parentNode)},iL=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},oL=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(Br(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},aL=function(e,t,n,r,i){var o=e.dom,a=e.selection.getRng();if(n!==e.getBody()){rL(n)&&(i="LI");var s=i?t(i):o.create("BR");if(oL(n,r,!0)&&oL(n,r,!1))if(tL(n,"LI")){var l=iL(n);o.insertAfter(s,l),eL(n)?o.remove(l):o.remove(n)}else o.replace(s,n);else if(oL(n,r,!0))tL(n,"LI")?(o.insertAfter(s,iL(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n),o.remove(r);else if(oL(n,r,!1))o.insertAfter(s,iL(n)),o.remove(r);else{n=iL(n);var c=a.cloneRange();c.setStartAfter(r),c.setEndAfter(n);var u=c.extractContents();"LI"===i&&ZN(u,"LI")?(s=u.firstChild,o.insertAfter(u,n)):(o.insertAfter(u,n),o.insertAfter(s,n)),o.remove(r)}KN(e,s)}},sL=function(e){Q(fu(vn.fromDom(e),Bn),(function(e){var t=e.dom;t.nodeValue=aa(t.nodeValue)}))},lL=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},cL=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},uL=function(e){e.innerHTML='<br data-mce-bogus="1">'},dL=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},fL=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},hL=function(e,t,n){var r,i=n,o=[];if(i){while(i=i.firstChild){if(e.isBlock(i))return;Br(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}r=o.length;while(r--)i=o[r],(!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||lL(e,i))&&e.remove(i)}},pL=function(e,t,n){return!1===Xr(t)?n:e?1===n&&t.data.charAt(n-1)===ia?0:n:n===t.data.length-1&&t.data.charAt(n)===ia?t.data.length:n},mL=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,pL(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,pL(!1,e.endContainer,e.endOffset)),t},gL=function(e){do{Xr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},vL=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},yL=function(e,t,n){var r=e.dom;I.from(n.style).map(r.parseStyle).each((function(e){var n=bi(vn.fromDom(t)),i=Ge(Ge({},n),e);r.setStyles(t,i)}));var i=I.from(n.class).map((function(e){return e.split(/\s+/)})),o=I.from(t.className).map((function(e){return te(e.split(/\s+/),(function(e){return""!==e}))}));Du(i,o,(function(e,n){var i=te(n,(function(t){return!X(e,t)})),o=We(e,i);r.setAttrib(t,"class",o.join(" "))}));var a=["style","class"],s=Oe(n,(function(e,t){return!X(a,t)}));r.setAttribs(t,s)},bL=function(e,t){var n=ff(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=hf(e);yL(e,t,r)}},_L=function(e,t,n,r,i){var o,a,s,l,c,u,d=t||"P",f=e.dom,h=vL(f,r);if(a=f.getParent(r,f.isBlock),!a||!fL(f,a)){if(a=a||h,u=a===e.getBody()||cL(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=f.create(d),bL(e,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;l=r;while(l.parentNode!==a)l=l.parentNode;while(l&&!f.isBlock(l))s=l,l=l.previousSibling;if(s&&e.schema.isValidChild(u,d.toLowerCase())){o=f.create(d),bL(e,o),s.parentNode.insertBefore(o,s),l=s;while(l&&!f.isBlock(l))c=l.nextSibling,o.appendChild(l),l=c;n.setStart(r,i),n.setEnd(r,i)}}return r},wL=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},xL=function(e,t){var n,r,i,o,a,s,l,c,u,d,f=e.dom,h=e.schema,p=h.getNonEmptyElements(),m=e.selection.getRng(),g=function(t){var n,i,a,s=r,l=h.getTextInlineElements();if(n=t||"TABLE"===c||"HR"===c?f.create(t||u):o.cloneNode(!1),a=n,!1===gf(e))f.setAttrib(n,"style",null),f.setAttrib(n,"class",null);else do{if(l[s.nodeName]){if(qp(s)||lm(s))continue;i=s.cloneNode(!1),f.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(a=i,n.appendChild(i))}}while((s=s.parentNode)&&s!==w);return bL(e,n),uL(a),n},v=function(e){var t,n,a=pL(e,r,i);if(Xr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===o&&d&&!e)return!0;if(e&&Br(r)&&r===o.firstChild)return!0;if(dL(r,"TABLE")||dL(r,"HR"))return d&&!e||!d&&e;var s=new Po(r,o);Xr(r)&&(e&&0===a?s.prev():e||a!==r.nodeValue.length||s.next());while(t=s.current()){if(Br(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),p[n]&&"br"!==n))return!1}else if(Xr(t)&&!Ba(t.nodeValue))return!1;e?s.prev():s.next()}return!0},y=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(c)&&"HGROUP"!==x?g(u):g(),vf(e)&&fL(f,l)&&f.isEmpty(o)?a=f.split(l,o):f.insertAfter(a,o),KN(e,a)};iv(f,m).each((function(e){m.setStart(e.startContainer,e.startOffset),m.setEnd(e.endContainer,e.endOffset)})),r=m.startContainer,i=m.startOffset,u=ff(e);var b=!(!t||!t.shiftKey),_=!(!t||!t.ctrlKey);Br(r)&&r.hasChildNodes()&&(d=i>r.childNodes.length-1,r=r.childNodes[Math.min(i,r.childNodes.length-1)]||r,i=d&&Xr(r)?r.nodeValue.length:0);var w=vL(f,r);if(w){(u&&!b||!u&&b)&&(r=_L(e,u,m,r,i)),o=f.getParent(r,f.isBlock),l=o?f.getParent(o.parentNode,f.isBlock):null,c=o?o.nodeName.toUpperCase():"";var x=l?l.nodeName.toUpperCase():"";"LI"!==x||_||(o=l,l=l.parentNode,c=x),/^(LI|DT|DD)$/.test(c)&&f.isEmpty(o)?aL(e,g,l,o,u):u&&o===e.getBody()||(u=u||"P",ca(o)?(a=wa(o),f.isEmpty(o)&&uL(o),bL(e,a),KN(e,a)):v()?y():v(!0)?(a=o.parentNode.insertBefore(g(),o),KN(e,dL(o,"HR")?a:o)):(n=mL(m).cloneRange(),n.setEndAfter(o),s=n.extractContents(),sL(s),gL(s),a=s.firstChild,f.insertAfter(s,o),hL(f,p,a),wL(f,o),f.isEmpty(o)&&uL(o),a.normalize(),f.isEmpty(a)?(f.remove(a),y()):(bL(e,a),KN(e,a))),f.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},SL=function(e,t,n){var r,i=new Po(t,n),o=e.getNonEmptyElements();while(r=i.next())if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},CL=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),Bv(e,r)},EL=function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();iv(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s=a.startOffset,l=a.startContainer;if(1===l.nodeType&&l.hasChildNodes()){var c=s>l.childNodes.length-1;l=l.childNodes[Math.min(s,l.childNodes.length-1)]||l,s=c&&3===l.nodeType?l.nodeValue.length:0}var u=o.getParent(l,o.isBlock),d=u?o.getParent(u.parentNode,o.isBlock):null,f=d?d.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==f||h||(u=d),l&&3===l.nodeType&&s>=l.nodeValue.length&&(SL(e.schema,l,u)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),Cd(o,a,n),CL(e,n,r),e.undoManager.add()},kL=function(e,t){var n=vn.fromTag("br");pr(vn.fromDom(t),n),e.undoManager.add()},OL=function(e,t){IL(e.getBody(),t)||mr(vn.fromDom(t),vn.fromTag("br"));var n=vn.fromTag("br");mr(vn.fromDom(t),n),CL(e,n.dom,!1),e.undoManager.add()},TL=function(e){return Zr(e.getNode())},IL=function(e,t){return!!TL(bd.after(t))||Lp(e,bd.after(t)).map((function(e){return Zr(e.getNode())})).getOr(!1)},AL=function(e){return e&&"A"===e.nodeName&&"href"in e},RL=function(e){return e.fold(S,AL,AL,S)},PL=function(e){var t=y(jI,e),n=bd.fromRangeStart(e.selection.getRng());return OR(t,e.getBody(),n).filter(RL)},ML=function(e,t){t.fold(h,y(kL,e),y(OL,e),h)},NL=function(e,t){var n=PL(e);n.isSome()?n.each(y(ML,e)):EL(e,t)},LL=function(e,t){return YN(e).filter((function(e){return t.length>0&&kn(vn.fromDom(e),t)})).isSome()},DL=function(e){return LL(e,pf(e))},jL=function(e){return LL(e,mf(e))},FL=Vi.generate([{br:[]},{block:[]},{none:[]}]),BL=function(e,t){return jL(e)},qL=function(e){return function(t,n){var r=""===ff(t);return r===e}},zL=function(e){return function(t,n){return QN(t)===e}},UL=function(e,t){return function(n,r){var i=JN(n)===e.toUpperCase();return i===t}},GL=function(e){return UL("pre",e)},VL=function(){return UL("summary",!0)},WL=function(e){return function(t,n){return df(t)===e}},HL=function(e,t){return DL(e)},$L=function(e,t){return t},KL=function(e){var t=ff(e),n=XN(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},XL=function(e,t){return function(n,r){var i=re(e,(function(e,t){return e&&t(n,r)}),!0);return i?I.some(t):I.none()}},YL=function(e,t){return vR([XL([BL],FL.none()),XL([VL()],FL.br()),XL([GL(!0),WL(!1),$L],FL.br()),XL([GL(!0),WL(!1)],FL.block()),XL([GL(!0),WL(!0),$L],FL.block()),XL([GL(!0),WL(!0)],FL.br()),XL([zL(!0),$L],FL.br()),XL([zL(!0)],FL.block()),XL([qL(!0),$L,KL],FL.block()),XL([qL(!0)],FL.br()),XL([HL],FL.br()),XL([qL(!1),$L],FL.br()),XL([KL],FL.block())],[e,!(!t||!t.shiftKey)]).getOr(FL.none())},JL=function(e,t){YL(e,t).fold((function(){NL(e,t)}),(function(){xL(e,t)}),h)},QL=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),LE(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),JL(e,t)})))},ZL=function(e){e.on("keydown",(function(t){t.keyCode===Fg.ENTER&&QL(e,t)}))},eD=function(e,t){cN([{keyCode:Fg.END,action:lN(KM,e,!0)},{keyCode:Fg.HOME,action:lN(KM,e,!1)},{keyCode:Fg.END,action:lN(fN,e,!0)},{keyCode:Fg.HOME,action:lN(fN,e,!1)}],t).each((function(e){t.preventDefault()}))},tD=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&eD(e,t)}))},nD=Ut().browser,rD=function(e){var t=Zc((function(){e.composing||q_(e)}),0);nD.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},iD=function(e){rD(e),e.on("input",(function(t){!1===t.isComposing&&q_(e)}))},oD=function(e,t){var n=t.container(),r=t.offset();return Xr(n)?(n.insertData(r,e),I.some(bd(n,r+e.length))):sp(t).map((function(n){var r=vn.fromText(e);return t.isAtEnd()?mr(n,r):pr(n,r),bd(r.dom,e.length)}))},aD=y(oD,ta),sD=y(oD," "),lD=function(e){return function(t){return t.fold((function(t){return Dp(e.dom,bd.before(t))}),(function(e){return jp(e)}),(function(e){return Fp(e)}),(function(t){return Lp(e.dom,bd.after(t))}))}},cD=function(e,t){return function(n){return T_(e,n)?aD(t):sD(t)}},uD=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},dD=function(e){var t=bd.fromRangeStart(e.selection.getRng()),n=vn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=y(jI,e),i=bd.fromRangeStart(e.selection.getRng());return OR(r,e.getBody(),i).bind(lD(n)).bind(cD(n,t)).exists(uD(e))}return!1},fD=function(e,t){cN([{keyCode:Fg.SPACEBAR,action:lN(dD,e)}],t).each((function(e){t.preventDefault()}))},hD=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&fD(e,t)}))},pD=function(e){var t=YR(e);return WP(e),GN(e,t),HN(e,t),ZL(e),hD(e),iD(e),tD(e),t},mD=function(e){return JE(e)?Fc(null):pD(e)},gD=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&Hg(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!Jt.range&&e.selection.isCollapsed()||ug(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&ug(e)&&("IMG"===e.selection.getNode().nodeName?To.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!sh(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=i.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),vD=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},yD=function(e){e.parser.addNodeFilter("details",(function(e){Q(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Q(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",N(t)?t:null),e.attr("data-mce-open",null)}))}))},bD=function(e){vD(e),yD(e)},_D=function(e){return Br(e)&&$o(vn.fromDom(e))},wD=function(e){var t=e.selection.getRng(),n=bd.fromRangeStart(t),r=bd.fromRangeEnd(t);if(bd.isElementPosition(n)){var i=n.container();_D(i)&&jp(i).each((function(e){return t.setStart(e.container(),e.offset())}))}if(bd.isElementPosition(r)){i=n.container();_D(i)&&Fp(i).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(nx(t))},xD=function(e){e.on("click",(function(t){t.detail>=3&&wD(e)}))},SD=function(){var e=Fc(I.none()),t=function(){return e.set(I.none())},n=function(t){return e.set(I.some(t))},r=function(){return e.get().isSome()},i=function(t){return e.get().each(t)};return{clear:t,set:n,isSet:r,on:i}},CD=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}},ED=function(e){return e.inline?CD(e.getBody()):{left:0,top:0}},kD=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},OD=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},i={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:i},TD=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=CD(e.getContentAreaContainer()),r=OD(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},ID=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},AD=function(e,t){return ID(ED(e),kD(e),TD(e,t))},RD=ni,PD=ti,MD=function(e,t){return RD(t)&&t!==e},ND=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!RD(t)},LD=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},DD=function(e,t,n,r){var i=e.dom,o=t.cloneNode(!0);i.setStyles(o,{width:n,height:r}),i.setAttrib(o,"data-mce-selected",null);var a=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),i.setStyles(o,{margin:0,boxSizing:"border-box"}),a.appendChild(o),a},jD=function(e,t){e.parentNode!==t&&t.appendChild(e)},FD=function(e,t,n,r,i,o){var a=0,s=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>i&&(a=t.pageX+n-i),t.pageY+r>o&&(s=t.pageY+r-o),e.style.width=n-a+"px",e.style.height=r-s+"px"},BD=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},qD=function(e){return 0===e.button},zD=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},UD=function(e,t){return function(n){if(qD(n)){var r=oe(t.dom.getParents(n.target),Ju(RD,PD)).getOr(null);if(MD(t.getBody(),r)){var i=t.dom.getPos(r),o=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?o.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?o.scrollHeight:a.offsetHeight)-2,relX:n.pageX-i.x,relY:n.pageY-i.y,width:r.offsetWidth,height:r.offsetHeight,ghost:DD(t,r,r.offsetWidth,r.offsetHeight)})}}}},GD=function(e,t){var n=To.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var i=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&i>10){var o=t.fire("dragstart",{target:e.element});if(o.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=zD(e,AD(t,r));jD(e.ghost,t.getBody()),FD(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},VD=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},WD=function(e,t){return function(n){e.on((function(e){if(e.dragging&&ND(t,VD(t.selection),e.element)){var r=LD(e.element),i=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||t.undoManager.transact((function(){BD(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}})),$D(e)}},HD=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),$D(e)}},$D=function(e){e.on((function(e){BD(e.ghost)})),e.clear()},KD=function(e){var t=SD(),n=Ic.DOM,r=document,i=UD(t,e),o=GD(t,e),a=WD(t,e),s=HD(t,e);e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a),n.bind(r,"mousemove",o),n.bind(r,"mouseup",s),e.on("remove",(function(){n.unbind(r,"mousemove",o),n.unbind(r,"mouseup",s)}))},XD=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(RD(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},YD=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(X(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&GT(e,"Dropped file type is not supported"))}},n=function(n){Ly(e,n.target)&&t(n)},r=function(){var r=Ic.DOM,i=e.dom,o=document,a=e.inline?e.getBody():e.getDoc(),s=["drop","dragover"];Q(s,(function(e){r.bind(o,e,n),i.bind(a,e,t)})),e.on("remove",(function(){Q(s,(function(e){r.unbind(o,e,n),i.unbind(a,e,t)}))}))};e.on("init",(function(){To.setEditorTimeout(e,r,0)}))},JD=function(e){KD(e),XD(e),fh(e)&&YD(e)},QD=function(e){var t=Zc((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=RA(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},ZD=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(ii(n)){var r=Cg(e.getBody(),n),i=ni(r)?r:n;e.selection.getNode()!==i&&IA(e,i).each((function(t){return e.selection.setRng(t)}))}}))}))},ej=ti,tj=ni,nj=function(e,t){return Cg(e.getBody(),t)},rj=function(e){var t,n=e.selection,r=e.dom,i=r.isBlock,o=e.getBody(),a=Lh(e,o,i,(function(){return Xy(e)})),s="sel-"+r.uniqueId(),l="data-mce-selected",c=function(e){return r.hasClass(e,"mce-offscreen-selection")},u=function(e){return e!==o&&(tj(e)||ii(e))&&r.isChildOf(e,o)},d=function(e){return Xb(e)||Yb(e)||Wb(e)||Hb(e)},f=function(){var e=r.get(s);return e?e.getElementsByTagName("*")[0]:e},h=function(e){e&&n.setRng(e)},p=n.getRng,m=function(t,r,i,o){void 0===o&&(o=!0);var s=e.fire("ShowCaret",{target:r,direction:t,before:i});return s.isDefaultPrevented()?null:(o&&n.scrollIntoView(r,-1===t),a.show(i,r))},g=function(e){e.hasAttribute("data-mce-caret")&&(wa(e),h(p()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=p();n.collapsed&&PT(e,t.clientX,t.clientY)&&AA(e,n,!1).each(h)})),e.on("click",(function(t){var i=nj(e,t.target);i&&(tj(i)&&(t.preventDefault(),e.focus()),ej(i)&&r.isChildOf(i,n.getNode())&&C())})),e.on("blur NewBlock",C),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var s=function(e){var t=Sp(e);if(!e.firstChild)return!1;var n=bd.before(e.firstChild),r=t.next(n);return r&&!d(r)},l=function(e,t){var n=r.getParent(e,i),o=r.getParent(t,i);return n===o},g=function(t,n){var o=r.getParent(t,i),a=r.getParent(n,i);return!(!o||t===a||!r.isChildOf(o,a)||!1!==tj(nj(e,o)))||o&&!l(o,a)&&s(o)};e.on("tap",(function(t){var n=t.target,r=nj(e,n);tj(r)?(t.preventDefault(),IA(e,r).each(S)):u(n)&&IA(e,n).each(S)}),!0),e.on("mousedown",(function(t){var i=t.target;if((i===o||"HTML"===i.nodeName||r.isChildOf(i,o))&&!1!==PT(e,t.clientX,t.clientY)){var a=nj(e,i);if(a)tj(a)?(t.preventDefault(),IA(e,a).each(S)):(C(),ej(a)&&t.shiftKey||Eg(t.clientX,t.clientY,n.getRng())||(k(),n.placeCaretAt(t.clientX,t.clientY)));else if(u(i))IA(e,i).each(S);else if(!1===Fh(i)){C(),k();var s=PM(o,t.clientX,t.clientY);if(s&&!g(i,s.node)){t.preventDefault();var l=m(1,s.node,s.before,!1);e.getBody().focus(),h(l)}}}})),e.on("keypress",(function(e){Fg.modifierPressed(e)||tj(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=_(e.range);var t=S(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;b(t)||v(n)||k(),c(n)||C()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!Jt.ie){var n=f();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),JD(e),QD(e),ZD(e)},y=function(e){return da(e)||ya(e)||ba(e)},b=function(e){return y(e.startContainer)||y(e.endContainer)},_=function(t){var n=e.schema.getShortEndedElements(),i=r.createRng(),o=t.startContainer,a=t.startOffset,s=t.endContainer,l=t.endOffset;return Re(n,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),Re(n,s.nodeName.toLowerCase())?0===l?i.setEndBefore(s):i.setEndAfter(s):i.setEnd(s,l),i},w=function(t,i,o){var a=e.$,l=yo(vn.fromDom(e.getBody()),"#"+s).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===l.length&&(l=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",s),l.appendTo(e.getBody()));var c=r.createRng();i===o&&Jt.ie?(l.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(i),c.setStartAfter(l[0].firstChild.firstChild),c.setEndAfter(i)):(l.empty().append(ta).append(i).append(ta),c.setStart(l[0].firstChild,1),c.setEnd(l[0].lastChild,0)),l.css({top:r.getPos(t,e.getBody()).y}),l[0].focus();var u=n.getSel();return u.removeAllRanges(),u.addRange(c),c},x=function(n){var i=n.cloneNode(!0),o=e.fire("ObjectSelected",{target:n,targetClone:i});if(o.isDefaultPrevented())return null;var a=w(n,o.targetClone,i),s=vn.fromDom(n);return Q(hu(vn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){An(s,e)||fi(e,l)})),r.getAttrib(n,l)||n.setAttribute(l,"1"),t=n,k(),a},S=function(e,t){if(!e)return null;if(e.collapsed){if(!b(e)){var n=t?1:-1,i=ap(n,o,e),a=i.getNode(!t);if(Fh(a))return m(n,a,!!t&&!i.isAtEnd(),!1);var s=i.getNode(t);if(Fh(s))return m(n,s,!t&&!i.isAtEnd(),!1)}return null}var l=e.startContainer,c=e.startOffset,d=e.endOffset;if(3===l.nodeType&&0===c&&tj(l.parentNode)&&(l=l.parentNode,c=r.nodeIndex(l),l=l.parentNode),1!==l.nodeType)return null;if(d===c+1&&l===e.endContainer){var f=l.childNodes[c];if(u(f))return x(f)}return null},C=function(){t&&t.removeAttribute(l),yo(vn.fromDom(e.getBody()),"#"+s).each(xr),t=null},E=function(){a.destroy(),t=null},k=function(){a.hide()};return Jt.ceFalse&&v(),{showCaret:m,showBlockCaretContainer:g,hideFakeCaret:k,destroy:E}},ij=function(e){var t=dn.each,n=Fg.BACKSPACE,r=Fg.DELETE,i=e.dom,o=e.selection,a=e.parser,s=Jt.gecko,l=Jt.ie,c=Jt.webkit,u="data:text/mce-internal,",d=l?"Text":"URL",f=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},p=function(e){return e.isDefaultPrevented()},m=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&o.select(t.target),n=e.selection.getContent(),n.length>0&&(r=u+escape(e.id)+","+escape(n),t.dataTransfer.setData(d,r)))},g=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(d),t&&t.indexOf(u)>=0)?(t=t.substr(u.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},v=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},y=function(){var t=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),o.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),o=i.createRng();o.selectNode(e.getBody());var a=t(o);return r===a};e.on("keydown",(function(t){var o,s,l=t.keyCode;if(!p(t)&&(l===r||l===n)){if(o=e.selection.isCollapsed(),s=e.getBody(),o&&!i.isEmpty(s))return;if(!o&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),s.firstChild&&i.isBlock(s.firstChild)?e.selection.setCursorLocation(s.firstChild,0):e.selection.setCursorLocation(s,0),e.nodeChanged()}}))},b=function(){e.shortcuts.add("meta+a",null,"SelectAll")},_=function(){e.inline||i.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=o.getRng(),e.getBody().focus(),"mousedown"===t.type){if(da(n.startContainer))return;o.placeCaretAt(t.clientX,t.clientY)}else o.setRng(n)}))},w=function(){e.on("keydown",(function(t){if(!p(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(o.isCollapsed()&&0===o.getRng().startOffset){var r=o.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return i.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(i.remove(a),t.preventDefault())}}}))},x=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!p(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),To.setEditorTimeout(e,(function(){n.focus()}))}}))},S=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),o.select(n))}))},C=function(){var n=function(){var n=i.getAttribs(o.getStart().cloneNode(!1));return function(){var r=o.getStart();r!==e.getBody()&&(i.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!o.isCollapsed()&&i.getParent(o.getStart(),i.isBlock)!==i.getParent(o.getEnd(),i.isBlock)};e.on("keypress",(function(t){var i;if(!p(t)&&(8===t.keyCode||46===t.keyCode)&&r())return i=n(),e.getDoc().execCommand("delete",!1,null),i(),t.preventDefault(),!1})),i.bind(e.getDoc(),"cut",(function(t){var i;!p(t)&&r()&&(i=n(),To.setEditorTimeout(e,(function(){i()})))}))},E=function(){e.on("keydown",(function(e){if(!p(e)&&e.keyCode===n&&o.isCollapsed()&&0===o.getRng().startOffset){var t=o.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},k=function(){e.on("keydown",(function(t){var n,r;if(!p(t)&&t.keyCode===Fg.BACKSPACE){n=o.getRng();var a=n.startContainer,s=n.startOffset,l=i.getRoot();if(r=a,n.collapsed&&0===s){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==l)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=i.createRng(),n.setStart(a,0),n.setEnd(a,0),o.setRng(n))}}}))},O=function(){var t=function(){f("StyleWithCSS",!1),f("enableInlineTableEditing",!1),qf(e)||f("enableObjectResizing",!1)};lh(e)||e.on("BeforeExecCommand mousedown",t)},T=function(){var n=function(){t(i.select("a"),(function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){while(t&&!i.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},I=function(){ff(e)&&e.on("init",(function(){f("DefaultParagraphSeparator",ff(e))}))},A=function(){e.on("keyup focusin mouseup",(function(e){Fg.modifierPressed(e)||o.normalize()}),!0)},R=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},P=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},M=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(Jt.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},N=function(){Jt.mac&&e.on("keydown",(function(t){if(Fg.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},L=function(){f("AutoUrlDetect",!1)},D=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},j=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},F=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},B=function(){e.on("dragstart",(function(e){m(e)})),e.on("drop",(function(t){if(!p(t)){var n=g(t);if(n&&n.id!==e.id){t.preventDefault();var r=Wg(t.x,t.y,e.getDoc());o.setRng(r),v(n.html,!0)}}}))},q=h,z=function(){if(!s||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount};return k(),y(),Jt.windowsPhone||A(),c&&(_(),S(),I(),j(),E(),F(),Jt.iOS?(P(),M(),D()):b()),Jt.ie>=11&&(M(),E()),Jt.ie&&(b(),L(),B()),s&&(w(),x(),C(),O(),T(),R(),N(),E()),{refreshContentEditable:q,isHidden:z}},oj=Ic.DOM,aj=function(e,t){var n=vn.fromDom(e.getBody()),r=cr(lr(n)),i=vn.fromTag("style");si(i,"type","text/css"),vr(i,vn.fromText(t)),vr(r,i),e.on("remove",(function(){xr(i)}))},sj=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},lj=function(e){return Oe(e,(function(e){return!1===B(e)}))},cj=function(e){var t=e.settings,n=e.editorUpload.blobCache;return lj({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:sj(e),validate:!0,blob_cache:n,images_dataimg_filter:t.images_dataimg_filter})},uj=function(e){var t=e.settings;return Ge(Ge({},cj(e)),lj({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before,block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements}))},dj=function(e){var t=bO(cj(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,i,o=t.length,a=e.dom,s="data-mce-"+n;while(o--)if(r=t[o],i=r.attr(n),i&&!r.attr(s)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=a.serializeStyle(a.parseStyle(i),r.name),i.length||(i=null),r.attr(s,i),r.attr(n,i)):"tabindex"===n?(r.attr(s,i),r.attr(n,null)):r.attr(s,e.convertURL(i,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var i=t[n];i.isEmpty(r)&&0===i.getAll("br").length&&(i.append(new fb("br",1)).shortEnded=!0)}})),t},fj=function(e){e.settings.auto_focus&&To.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},hj=function(e){var t=e.dom.getRoot();e.inline||ug(e)&&e.selection.getStart(!0)!==t||jp(t).each((function(t){var n=t.getNode(),r=Hr(n)?jp(n).getOr(t):t;Jt.browser.isIE()?wy(e,r.toRange()):e.selection.setRng(r.toRange())}))},pj=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Lg(e),e.focus(!0),hj(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),fj(e)},mj=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},gj=function(e,t,n){var r=[new wo((function(n,r){return mj(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new wo((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},vj=function(e,t){var n=mj(e),r=jf(e),i=function(){n.unloadAll(t),e.inline||e.ui.styleSheetLoader.unloadAll(r)},o=function(){e.removed?i():(e.on("remove",i),pj(e))};wo.all(gj(e,t,r)).then(o).catch(o)},yj=function(e,t){var n=e.settings,r=e.getDoc(),i=e.getBody();n.browser_spellcheck||n.gecko_spellcheck||(r.body.spellcheck=!1,oj.setAttrib(i,"spellcheck","false")),e.quirks=ij(e),Ng(e);var o=Ff(e);if(void 0!==o&&(i.dir=o),n.protect&&e.on("BeforeSetContent",(function(e){dn.each(n.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),!1===t&&e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"}),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type})),e.contentStyles.length>0){var a="";dn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}vj(e,e.contentCSS),n.content_style&&aj(e,n.content_style)},bj=function(e,t){var n=e.settings,r=e.getElement(),i=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(i.open(),i.write(e.iframeHTML),i.close()),e.inline&&(oj.addClass(r,"mce-content-body"),e.contentDocument=i=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var o=e.getBody();o.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===oj.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=e.getParam("content_editable_state",!0)),o.disabled=!1,e.editorUpload=hI(e),e.schema=Rs(n),e.dom=Ic(i,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Af(e),referrerPolicy:Rf(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=dj(e),e.serializer=PO(uj(e),e),e.selection=zk(e.dom,e.getWin(),e.serializer,e),e.annotator=xg(e),e.formatter=SI(e),e.undoManager=kI(e),e._nodeChangeDispatcher=new gD(e),e._selectionOverrides=rj(e),NP(e),bD(e),JE(e)||xD(e);var a=mD(e);IP(e,a),qP(e),NI(e),Mg(e),QE(e).fold((function(){yj(e,!1)}),(function(t){e.setProgressState(!0),t.then((function(t){e.setProgressState(!1),yj(e,t)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),yj(e,!0)}))}))},_j=Ic.DOM,wj=function(e,t){if(document.domain!==window.location.hostname&&Jt.browser.isIE()){var n=aI("mce");e[n]=function(){bj(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return _j.setAttrib(t,"src",r),!0}return!1},xj=function(e,t,n,r){var i=vn.fromTag("iframe");return li(i,r),li(i,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),lu(i,"tox-edit-area__iframe"),i},Sj=function(e){var t=af(e)+"<html><head>";sf(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=lf(e),r=cf(e);return uf(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+uf(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'"><br></body></html>',t},Cj=function(e,t){var n=e.editorManager.translate("Rich Text Area. Press ALT-0 for help."),r=xj(e.id,n,t.height,of(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var i=wj(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=Sj(e),_j.add(t.iframeContainer,r),i},Ej=function(e,t){var n=Cj(e,t);t.editorContainer&&(_j.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=_j.isHidden(t.editorContainer)),e.getElement().style.display="none",_j.setAttrib(e.id,"aria-hidden","true"),n||bj(e)},kj=Ic.DOM,Oj=function(e,t,n){var r=jT.get(n),i=jT.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=dn.trim(n),r&&-1===dn.inArray(t,n)){if(dn.each(jT.dependencies(n),(function(n){Oj(e,t,n)})),e.plugins[n])return;try{var o=new r(e,i,e.$);e.plugins[n]=o,o.init&&(o.init(e,i),t.push(n))}catch(gq){YT(e,n,gq)}}},Tj=function(e){return e.replace(/^\-/,"")},Ij=function(e){var t=[];dn.each(uh(e).split(/[ ,]/),(function(n){Oj(e,t,Tj(n))}))},Aj=function(e){var t=dn.trim(Cf(e)),n=e.ui.registry.getAll().icons,r=Ge(Ge({},xT.get("default").icons),xT.get(t).icons);we(r,(function(t,r){Re(n,r)||e.ui.registry.addIcon(r,t)}))},Rj=function(e){var t=Wf(e);if(N(t)){e.settings.theme=Tj(t);var n=FT.get(t);e.theme=new n(e,FT.urls[t]),e.theme.init&&e.theme.init(e,FT.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},Pj=function(e){return e.theme.renderUI()},Mj=function(e){var t=e.getElement(),n=Wf(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},Nj=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},Lj=function(e){var t=kj.create("div");return kj.insertAfter(t,e),Nj(t)},Dj=function(e){var t=e.getElement();return e.inline?Nj(null):Lj(t)},jj=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,N(Wf(e))?Pj(e):U(Wf(e))?Mj(e):Dj(e)},Fj=function(e,t){var n={show:I.from(t.show).getOr(h),hide:I.from(t.hide).getOr(h),disable:I.from(t.disable).getOr(h),isDisabled:I.from(t.isDisabled).getOr(S),enable:function(){e.mode.isReadOnly()||I.from(t.enable).map(x)}};e.ui=Ge(Ge({},e.ui),n)},Bj=function(e){e.fire("ScriptsLoaded"),Aj(e),Rj(e),Ij(e);var t=jj(e);Fj(e,I.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,nI(e),e.inline?bj(e):Ej(e,n)},qj=Ic.DOM,zj=function(e){return"-"===e.charAt(0)},Uj=function(e,t){var n=Pf(t),r=Mf(t);if(!1===Jc.hasCode(n)&&"en"!==n){var i=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(i,h,void 0,(function(){XT(t,i,n)}))}},Gj=function(e,t,n,r){var i=Wf(t);if(N(i)){if(!zj(i)&&!FT.urls.hasOwnProperty(i)){var o=Qf(t);o?FT.load(i,t.documentBaseURI.toAbsolute(o)):FT.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue((function(){FT.waitFor(i,r)}))}else r()},Vj=function(e){return I.from(Ef(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:I.none()}}))},Wj=function(e,t,n){return I.from(t).filter((function(e){return e.length>0&&!xT.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:I.some(t)}}))},Hj=function(e,t,n){var r=Wj(t,"default",n),i=Vj(t).orThunk((function(){return Wj(t,Cf(t),"")}));Q(Lu([r,i]),(function(n){e.add(n.url,h,void 0,(function(){KT(t,n.url,n.name.getOrUndefined())}))}))},$j=function(e,t){dn.each(dh(e),(function(t,n){jT.load(n,t,h,void 0,(function(){$T(e,t,n)})),e.settings.plugins+=" "+n})),dn.each(uh(e).split(/[ ,]/),(function(n){if(n=dn.trim(n),n&&!jT.urls[n])if(zj(n)){n=n.substr(1,n.length);var r=jT.dependencies(n);dn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},i=jT.createUrl(r,n);jT.load(i.resource,i,h,void 0,(function(){$T(e,i.prefix+i.resource+i.suffix,i.resource)}))}))}else{var i={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};jT.load(n,i,h,void 0,(function(){$T(e,i.prefix+i.resource+i.suffix,n)}))}}))},Kj=function(e,t){var n=jc.ScriptLoader;Gj(n,e,t,(function(){Uj(n,e),Hj(n,e,t),$j(e,t),n.loadQueue((function(){e.removed||Bj(e)}),e,(function(){e.removed||Bj(e)}))}))},Xj=function(e,t){return Ro.forElement(e,{contentCssCors:ch(t),referrerPolicy:Rf(t)})},Yj=function(e){var t=e.id;Jc.setCode(Pf(e));var n=function(){qj.unbind(window,"ready",n),e.render()};if(Ws.Event.domLoaded){if(e.getElement()&&Jt.contentEditable){var r=vn.fromDom(e.getElement()),i=hi(r);e.on("remove",(function(){Z(r.dom.attributes,(function(e){return fi(r,e.name)})),li(r,i)})),e.ui.styleSheetLoader=Xj(r,e),Zf(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var o=e.getElement().form||qj.getParent(t,"form");o&&(e.formElement=o,eh(e)&&!Kr(e.getElement())&&(qj.insertAfter(qj.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},qj.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!th(e)||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=zT(e),e.notificationManager=DT(e),nh(e)&&e.on("GetContent",(function(e){e.save&&(e.content=qj.encode(e.content))})),rh(e)&&e.on("submit",(function(){e.initialized&&e.save()})),ih(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),Kj(e,e.suffix)}}else qj.bind(window,"ready",n)},Jj=function(e,t){return Ek(e,t)},Qj={"font-size":"size","font-family":"face"},Zj=function(e,t,n){var r=function(t){return yi(t,e).orThunk((function(){return"font"===Nn(t)?Ae(Qj,e).bind((function(e){return ui(t,e)})):I.none()}))},i=function(e){return An(vn.fromDom(t),e)};return Yx(vn.fromDom(n),(function(e){return r(e)}),i)},eF=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},tF=function(e,t){return I.from(Ic.DOM.getStyle(t,e,!0))},nF=function(e){return function(t,n){return I.from(n).map(vn.fromDom).filter(Fn).bind((function(n){return Zj(e,t,n.dom).or(tF(e,n.dom))})).getOr("")}},rF=nF("font-size"),iF=p(eF,nF("font-family")),oF=function(e){return jp(e.getBody()).map((function(e){var t=e.container();return Xr(t)?t.parentNode:t}))},aF=function(e){return I.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?I.none():I.from(e.selection.getStart(!0))}))},sF=function(e,t){return aF(e).orThunk(y(oF,e)).map(vn.fromDom).filter(Fn).map(t)},lF=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=yf(e),i=bf(e);return i?i[n-1]||t:r[n-1]||t}return t}return t},cF=function(e){var t=e.split(/\s*,\s*/);return J(t,(function(e){return-1===e.indexOf(" ")||lt(e,'"')||lt(e,"'")?e:"'"+e+"'"})).join(",")},uF=function(e,t){var n=lF(e,t);e.formatter.toggle("fontname",{value:cF(n)}),e.nodeChanged()},dF=function(e){return sF(e,(function(t){return iF(e.getBody(),t.dom)})).getOr("")},fF=function(e,t){e.formatter.toggle("fontsize",{value:lF(e,t)}),e.nodeChanged()},hF=function(e){return sF(e,(function(t){return rF(e.getBody(),t.dom)})).getOr("")},pF=function(e){return sF(e,(function(t){var n=vn.fromDom(e.getBody()),r=Yx(t,(function(e){return yi(e,"line-height")}),y(An,n)),i=function(){var e=parseFloat(gi(t,"line-height")),n=parseFloat(gi(t,"font-size"));return String(e/n)};return r.getOrThunk(i)})).getOr("")},mF=function(e,t){e.undoManager.transact((function(){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()}))},gF=function(e){var t;return"string"!==typeof e?(t=dn.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}},vF=function(e,t){var n=gF(t);Sk(e,n.content,n.details)},yF=dn.each,bF=dn.map,_F=dn.inArray,wF=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var i,o=!1,a=this;if(!a.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Sy(a.editor):a.editor.focus(),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var s=e.toLowerCase();if(i=a.commands.exec[s])return i(s,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(yF(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),o=!0,!1})),o)return o;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{o=a.editor.getDoc().execCommand(e,t,n)}catch(l){}return!!o&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;yF(e,(function(e,r){yF(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":h,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,i=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Jt.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),yF("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var i=e.dom.getParent(e.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,i),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){uF(e,r)},FontSize:function(t,n,r){fF(e,r)},LineHeight:function(t,n,r){mF(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){vF(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){JL(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){CP(e,t)},mceRepaint:h,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var i=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),ti);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return NL(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),i=bF(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==_F(i,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return _P(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return dF(e)}),this),t.addQueryValueHandler("FontSize",(function(){return hF(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return pF(e)}),this)},e}(),xF="data-mce-contenteditable",SF=function(e,t,n){du(e,t)&&!1===n?uu(e,t):n&&lu(e,t)},CF=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},EF=function(e,t){e.dom.contentEditable=t?"true":"false"},kF=function(e){Q(hu(e,'*[contenteditable="true"]'),(function(e){si(e,xF,"true"),EF(e,!1)}))},OF=function(e){Q(hu(e,"*["+xF+'="true"]'),(function(e){fi(e,xF),EF(e,!0)}))},TF=function(e){I.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},IF=function(e){e.selection.setRng(e.selection.getRng())},AF=function(e,t){var n=vn.fromDom(e.getBody());SF(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),TF(e),e.readonly=!0,EF(n,!1),kF(n)):(e.readonly=!1,EF(n,!0),OF(n),CF(e,"StyleWithCSS",!1),CF(e,"enableInlineTableEditing",!1),CF(e,"enableObjectResizing",!1),Yy(e)&&e.focus(),IF(e),e.nodeChanged())},RF=function(e){return e.readonly},PF=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){RF(e)&&Q(t,(function(e){e.attr(xF,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(xF,(function(t){RF(e)&&Q(t,(function(e){e.attr("contenteditable",e.attr(xF))}))})),e.serializer.addTempAttr(xF)},MF=function(e){e.serializer?PF(e):e.on("PreInit",(function(){PF(e)}))},NF=function(e){return"click"===e.type},LF=function(e,t){var n=function(t){return An(t,vn.fromDom(e.getBody()))};return bo(t,"a",n).bind((function(e){return ui(e,"href")}))},DF=function(e,t){if(NF(t)&&!Fg.metaKeyPressed(t)){var n=vn.fromDom(t.target);LF(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+at(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},jF=function(e){e.on("ShowCaret",(function(t){RF(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){RF(e)&&t.preventDefault()}))},FF=dn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),BF=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||S}return e.isNative=function(e){return!!FF[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=t||{};r.type=n,r.target||(r.target=this.scope),r.preventDefault||(r.preventDefault=function(){r.isDefaultPrevented=C},r.stopPropagation=function(){r.isPropagationStopped=C},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=C},r.isDefaultPrevented=S,r.isPropagationStopped=S,r.isImmediatePropagationStopped=S),this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r.stopPropagation(),r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=S),t){var i={func:t};r&&dn.extend(i,r);var o=e.toLowerCase().split(" "),a=o.length;while(a--){var s=o[a],l=this.bindings[s];l||(l=this.bindings[s]=[],this.toggleEvent(s,!0)),n?l.unshift(i):l.push(i)}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),i=r.length;while(i--){var o=r[i],a=this.bindings[o];if(!o)return we(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var s=a.length;while(s--)a[s].func===t&&(a=a.slice(0,s).concat(a.slice(s+1)),this.bindings[o]=a)}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[o])}}}else we(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),qF=function(e){return e._eventDispatcher||(e._eventDispatcher=new BF({scope:e,toggleEvent:function(t,n){BF.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},zF={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var i=qF(r).fire(e,t);if(!1!==n&&r.parent){var o=r.parent();while(o&&!i.isPropagationStopped())o.fire(e,i,!1),o=o.parent()}return i},on:function(e,t,n){return qF(this).on(e,t,n)},off:function(e,t){return qF(this).off(e,t)},once:function(e,t){return qF(this).once(e,t)},hasEventListeners:function(e){return qF(this).has(e)}},UF=Ic.DOM,GF=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=Gf(e);return n?(e.eventRoot||(e.eventRoot=UF.select(n)[0]),e.eventRoot):e.getBody()},VF=function(e){return!e.hidden&&!RF(e)},WF=function(e,t,n){VF(e)?e.fire(t,n):RF(e)&&DF(e,n)},HF=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=GF(e,t);if(Gf(e)){if(uM||(uM={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||uM&&(we(uM,(function(t,n){e.dom.unbind(GF(e,n))})),uM=null)}))),uM[t])return;n=function(n){var r=n.target,i=e.editorManager.get(),o=i.length;while(o--){var a=i[o].getBody();(a===r||UF.isChildOf(r,a))&&WF(i[o],t,n)}},uM[t]=n,UF.bind(r,t,n)}else n=function(n){WF(e,t,n)},UF.bind(r,t,n),e.delegates[t]=n}},$F=Ge(Ge({},zF),{bindPendingEventDelegates:function(){var e=this;dn.each(e._pendingNativeEvents,(function(t){HF(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?HF(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(GF(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(we(e.delegates,(function(t,n){e.dom.unbind(GF(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),KF=["design","readonly"],XF=function(e,t,n,r){var i=n[t.get()],o=n[r];try{o.activate()}catch(gq){return void console.error("problem while activating editor mode "+r+":",gq)}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&AF(e,o.editorReadOnly),t.set(r),Ag(e,r)},YF=function(e,t,n,r){if(r!==n.get()){if(!Re(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?XF(e,n,t,r):e.on("init",(function(){return XF(e,n,t,r)}))}},JF=function(e,t,n){var r;if(X(KF,t))throw new Error("Cannot override default mode "+t);return Ge(Ge({},e),(r={},r[t]=Ge(Ge({},n),{deactivate:function(){try{n.deactivate()}catch(gq){console.error("problem while deactivating editor mode "+t+":",gq)}}}),r))},QF=function(e){var t=Fc("design"),n=Fc({design:{activate:h,deactivate:h,editorReadOnly:!1},readonly:{activate:h,deactivate:h,editorReadOnly:!0}});return MF(e),jF(e),{isReadOnly:function(){return RF(e)},set:function(r){return YF(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(JF(n.get(),e,t))}}},ZF=dn.each,eB=dn.explode,tB={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},nB=dn.makeMap("alt,ctrl,shift,meta,access"),rB=function(e){var t,n={};ZF(eB(e.toLowerCase(),"+"),(function(e){e in nB?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=tB[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in nB)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,Jt.mac?n.ctrl=!0:n.shift=!0),n.meta&&(Jt.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},iB=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(ZF(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var i=this,o=i.normalizeCommandFunc(n);return ZF(eB(dn.trim(e)),(function(e){var n=i.createShortcut(e,t,o,r);i.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:dn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var i=dn.map(eB(e,">"),rB);return i[i.length-1]=dn.extend(i[i.length-1],{func:n,scope:r||this.editor}),dn.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),oB=function(){var e={},t={},n={},r={},i={},o={},a={},s=function(e,t){return function(n,r){return e[n.toLowerCase()]=Ge(Ge({},r),{type:t})}},l=function(e,t){return r[e.toLowerCase()]=t};return{addButton:s(e,"button"),addGroupToolbarButton:s(e,"grouptoolbarbutton"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:l,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},aB=function(){var e=oB();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},sB=dn.each,lB=dn.trim,cB="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),uB={ftp:21,http:80,https:443,mailto:25},dB=function(){function e(t,n){t=lB(t),this.settings=n||{};var r=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))i.source=t;else{var o=0===t.indexOf("//");if(0!==t.indexOf("/")||o||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+i.toAbsPath(a,t);else{var s=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(a,s[1])+s[2]}}t=t.replace(/@@/g,"(mce_at)");var l=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);sB(cB,(function(e,t){var n=l[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n})),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),o&&(i.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=uB[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,i=0,o="",a=e.substring(0,e.lastIndexOf("/")).split("/"),s=t.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return t;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},e.prototype.toAbsPath=function(e,t){var n,r,i=0,o=[],a=/\/$/.test(t)?"/":"",s=e.split("/"),l=t.split("/");for(sB(s,(function(e){e&&o.push(e)})),s=o,n=l.length-1,o=[];n>=0;n--)0!==l[n].length&&"."!==l[n]&&(".."!==l[n]?i>0?i--:o.push(l[n]):i++);return n=s.length-i,r=n<=0?ue(o).join("/"):s.slice(0,n).join("/")+"/"+ue(o).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),fB=Ic.DOM,hB=dn.extend,pB=dn.each,mB=dn.resolve,gB=Jt.ie,vB=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,hB(this,$F),this.settings=gT(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(jc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Ic.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),Qc.languageLoad=this.settings.language_load,Qc.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new dB(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new iB(this),this.editorCommands=new wF(this),this.settings.cache_suffix&&(Jt.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:aB(),styleSheetLoader:void 0,show:h,hide:h,enable:h,disable:h,isDisabled:S};var i=this,o=QF(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=wc.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){Yj(this)},e.prototype.focus=function(e){Zy(this,e)},e.prototype.hasFocus=function(){return Xy(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this,o=i.settings[e];if(o)return i.callbackLookup&&(r=i.callbackLookup[e])&&(o=r.func,r=r.scope),"string"===typeof o&&(r=o.replace(/\.\w+$/,""),r=r?mB(r):0,o=mB(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[e]={func:o,scope:r}),o.apply(r||i,t)},e.prototype.translate=function(e){return Jc.translate(e)},e.prototype.getParam=function(e,t,n){return _T(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=X(uh(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==jT.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(fB.show(e.getContainer()),fB.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(gB&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(fB.hide(e.getContainer()),fB.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var i=Kr(r)?r.value:r.innerHTML;return t=n.setContent(i,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=i,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Kr(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=fB.getParent(r.id,"form"))&&pB(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return LO(this,e,t)},e.prototype.getContent=function(e){return NO(this,e)},e.prototype.insertContent=function(e,t){t&&(e=hB({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?LO(this,this.startContent,{format:"raw"}):LO(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=fB.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=fB.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!i.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,i.remove_script_host),e)},e.prototype.addVisual=function(e){Jj(this,e)},e.prototype.remove=function(){zO(this)},e.prototype.destroy=function(e){UO(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),yB=Ic.DOM,bB=dn.explode,_B=dn.each,wB=dn.extend,xB=0,SB=!1,CB=[],EB=[],kB=function(e){return"length"!==e},OB=function(e){var t=e.type;_B(PB.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},TB=function(e){e!==SB&&(e?wc(window).on("resize scroll",OB):wc(window).off("resize scroll",OB),SB=e)},IB=function(e){var t=EB;delete CB[e.id];for(var n=0;n<CB.length;n++)if(CB[n]===e){CB.splice(n,1);break}return EB=te(EB,(function(t){return e!==t})),PB.activeEditor===e&&(PB.activeEditor=EB.length>0?EB[0]:null),PB.focusedEditor===e&&(PB.focusedEditor=null),t.length!==EB.length},AB=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(IB(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},RB="CSS1Compat"!==document.compatMode,PB=Ge(Ge({},zF),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:wc,majorVersion:"5",minorVersion:"7.0",releaseDate:"2021-02-10",editors:CB,i18n:Jc,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=dB.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)e=i.base||i.baseURL,r=i.suffix;else{for(var o=document.getElementsByTagName("script"),a=0;a<o.length;a++){var s=o[a].src||"";if(""!==s){var l=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==l.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"));break}}}if(!e&&document.currentScript){s=document.currentScript.src;-1!==s.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"))}}n.baseURL=new dB(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new dB(n.baseURL),n.suffix=r,By(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&we(r,(function(e,t){Qc.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=dn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),i=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},o=function(e){var t=e.id;return t||(t=Ae(e,"name").filter((function(e){return!yB.get(e)})).getOrThunk(yB.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},s=function(e,t){return t.constructor===RegExp?t.test(e.className):yB.hasClass(e,t)},l=function(e){var t=[];if(Jt.browser.isIE()&&Jt.browser.version.major<11)return JT("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(RB)return JT("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return _B(e.types,(function(e){t=t.concat(yB.select(e.selector))})),t;if(e.selector)return yB.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&_B(bB(n),(function(e){var n=yB.get(e);n?t.push(n):_B(document.forms,(function(n){_B(n.elements,(function(n){n.name===e&&(e="mce_editor_"+xB++,yB.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":_B(yB.select("textarea"),(function(n){e.editor_deselector&&s(n,e.editor_deselector)||e.editor_selector&&!s(n,e.editor_selector)||t.push(n)}));break}return t},c=function(e){t=e},u=function(){var t,r=0,s=[],d=function(e,i,o){var a=new vB(e,i,n);s.push(a),a.on("init",(function(){++r===t.length&&c(s)})),a.targetElm=a.targetElm||o,a.render()};yB.unbind(window,"ready",u),a("onpageload"),t=wc.unique(l(e)),e.types?_B(e.types,(function(n){dn.each(t,(function(t){return!yB.is(t,n.selector)||(d(o(t),wB({},e,n),t),!1)}))})):(dn.each(t,(function(e){AB(n.get(e.id))})),t=dn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?c([]):_B(t,(function(t){i(e,t)?JT("Could not initialize inline editor on invalid inline target element",t):d(o(t),e,t)})))};return n.settings=e,yB.bind(window,"ready",u),new wo((function(e){t?e(t):c=function(t){e(t)}}))},get:function(e){return 0===arguments.length?EB.slice(0):N(e)?oe(EB,(function(t){return t.id===e})).getOr(null):G(e)&&EB[e]?EB[e]:null},add:function(e){var t=this,n=CB[e.id];return n===e||(null===t.get(e.id)&&(kB(e.id)&&(CB[e.id]=e),CB.push(e),EB.push(e)),TB(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),dM||(dM=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",dM))),e},createEditor:function(e,t){return this.add(new vB(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!N(e))return n=e,j(r.get(n.id))?null:(IB(n)&&r.fire("RemoveEditor",{editor:n}),0===EB.length&&window.removeEventListener("beforeunload",dM),n.remove(),TB(EB.length>0),n);_B(yB.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=EB.length-1;t>=0;t--)r.remove(EB[t])},execCommand:function(e,t,n){var r=this,i=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new vB(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){_B(EB,(function(e){e.save()}))},addI18n:function(e,t){Jc.add(e,t)},translate:function(e){return Jc.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new dB(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new dB(this.baseURL)}});PB.setup();var MB,NB,LB=Math.min,DB=Math.max,jB=Math.round,FB=function(e,t,n){var r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,l=t.h,c=(n||"").split("");return"b"===c[0]&&(i+=l),"r"===c[1]&&(r+=s),"c"===c[0]&&(i+=jB(l/2)),"c"===c[1]&&(r+=jB(s/2)),"b"===c[3]&&(i-=a),"r"===c[4]&&(r-=o),"c"===c[3]&&(i-=jB(a/2)),"c"===c[4]&&(r-=jB(o/2)),GB(r,i,o,a)},BB=function(e,t,n,r){var i,o;for(o=0;o<r.length;o++)if(i=FB(e,t,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},qB=function(e,t,n){return GB(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},zB=function(e,t){var n=DB(e.x,t.x),r=DB(e.y,t.y),i=LB(e.x+e.w,t.x+t.w),o=LB(e.y+e.h,t.y+t.h);return i-n<0||o-r<0?null:GB(n,r,i-n,o-r)},UB=function(e,t,n){var r=e.x,i=e.y,o=e.x+e.w,a=e.y+e.h,s=t.x+t.w,l=t.y+t.h,c=DB(0,t.x-r),u=DB(0,t.y-i),d=DB(0,o-s),f=DB(0,a-l);return r+=c,i+=u,n&&(o+=c,a+=u,r-=d,i-=f),o-=d,a-=f,GB(r,i,o-r,a-i)},GB=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},VB=function(e){return GB(e.left,e.top,e.width,e.height)},WB={inflate:qB,relativePosition:FB,findBestRelativePosition:BB,intersect:zB,clamp:UB,create:GB,fromClientRect:VB},HB=function(e,t,n){void 0===n&&(n=1e3);var r=!1,i=null,o=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),e.apply(null,t))}},a=o(e),s=o(t),l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==i||(i=setTimeout((function(){return s.apply(null,e)}),n))};return{start:l,resolve:a,reject:s}},$B=function(){var e={},t={},n=function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new wo((function(e,a){var s=HB(e,a);t[n]=s.resolve,jc.ScriptLoader.loadScript(r,(function(){return s.start(o)}),(function(){return s.reject(i)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=wo.resolve(r)};return{load:n,add:r}},KB=$B(),XB=dn.each,YB=dn.extend,JB=function(){};JB.extend=MB=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!NB&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},i=function(){return this},o=function(e,t){return function(){var r=this,i=r._super;r._super=n[e];var o=t.apply(r,arguments);return r._super=i,o}};NB=!0;var a=new t;return NB=!1,e.Mixins&&(XB(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&XB(e.Methods.split(","),(function(t){e[t]=i})),e.Properties&&XB(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&XB(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=YB({},n.Defaults,e.Defaults)),we(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=o(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=MB,r};var QB,ZB=Math.min,eq=Math.max,tq=Math.round,nq=function(e){var t={},n=0,r=0,i=0,o=function(e,t,n){var r,i,o;r=0,i=0,o=0,e/=255,t/=255,n/=255;var a=ZB(e,ZB(t,n)),s=eq(e,eq(t,n));if(a===s)return o=a,{h:0,s:0,v:100*o};var l=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-l/(s-a)),i=(s-a)/s,o=s,{h:tq(r),s:tq(100*i),v:tq(100*o)}},a=function(e,t,o){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,o=parseInt(o,10)/100,t=eq(0,ZB(t,1)),o=eq(0,ZB(o,1)),0!==t){var a=e/60,s=o*t,l=s*(1-Math.abs(a%2-1)),c=o-s;switch(Math.floor(a)){case 0:n=s,r=l,i=0;break;case 1:n=l,r=s,i=0;break;case 2:n=0,r=s,i=l;break;case 3:n=0,r=l,i=s;break;case 4:n=l,r=0,i=s;break;case 5:n=s,r=0,i=l;break;default:n=r=i=0}n=tq(255*(n+c)),r=tq(255*(r+c)),i=tq(255*(i+c))}else n=r=i=tq(255*o)},s=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(i)},l=function(){return{r:n,g:r,b:i}},c=function(){return o(n,r,i)},u=function(e){var o;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,i=e.b):"v"in e&&a(e.h,e.s,e.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,t};return e&&u(e),t.toRgb=l,t.toHsv=c,t.toHex=s,t.parse=u,t},rq=function(e){var t=JSON.stringify(e);return N(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},iq={serialize:rq,parse:function(e){try{return JSON.parse(e)}catch(t){}}},oq={callbacks:{},count:0,send:function(e){var t=this,n=Ic.DOM,r=void 0!==e.count?e.count:t.count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},aq=Ge(Ge({},zF),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):To.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",aq.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&dn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=aq.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();To.setTimeout(r,10)}}),sq=dn.extend,lq=function(){function e(e){this.settings=sq({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=sq(this.settings,e);r.success=function(e,i){e=iq.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=iq.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",aq.send(r)},e}(),cq=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var uq="__storage_test__";QB=window.localStorage,QB.setItem(uq,uq),QB.removeItem(uq)}catch(gq){QB=cq()}var dq=QB,fq={geom:{Rect:WB},util:{Promise:wo,Delay:To,Tools:dn,VK:Fg,URI:dB,Class:JB,EventDispatcher:BF,Observable:zF,I18n:Jc,XHR:aq,JSON:iq,JSONRequest:lq,JSONP:oq,LocalStorage:dq,Color:nq,ImageUploader:dI},dom:{EventUtils:Ws,Sizzle:Il,DomQuery:wc,TreeWalker:Po,TextSeeker:Nu,DOMUtils:Ic,ScriptLoader:jc,RangeUtils:sv,Serializer:PO,StyleSheetLoader:Io,ControlSelection:qg,BookmarkManager:Sg,Selection:zk,Event:Ws.Event},html:{Styles:Ms,Entities:_s,Node:fb,Schema:Rs,SaxParser:Cb,DomParser:bO,Writer:Nb,Serializer:Lb},Env:Jt,AddOnManager:Qc,Annotator:xg,Formatter:SI,UndoManager:kI,EditorCommands:wF,WindowManager:zT,NotificationManager:DT,EditorObservable:$F,Shortcuts:iB,Editor:vB,FocusManager:Ey,EditorManager:PB,DOM:Ic.DOM,ScriptLoader:jc.ScriptLoader,PluginManager:jT,ThemeManager:FT,IconManager:xT,Resource:KB,trim:dn.trim,isArray:dn.isArray,is:dn.is,toArray:dn.toArray,makeMap:dn.makeMap,each:dn.each,map:dn.map,grep:dn.grep,inArray:dn.inArray,extend:dn.extend,create:dn.create,walk:dn.walk,createNS:dn.createNS,resolve:dn.resolve,explode:dn.explode,_addCacheSuffix:dn._addCacheSuffix,isOpera:Jt.opera,isWebKit:Jt.webkit,isIE:Jt.ie,isGecko:Jt.gecko,isMac:Jt.mac},hq=dn.extend(PB,fq),pq=function(t){try{e.exports=t}catch(n){}},mq=function(e){window.tinymce=e,window.tinyMCE=e};mq(hq),pq(hq)})()}).call(this,n("c8ba"))},e56d:function(e,t,n){},e5ab:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"模板CODE"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["templateCode",e.validatorRules.templateCode],expression:"['templateCode', validatorRules.templateCode ]"}],attrs:{disabled:e.disable,placeholder:"请输入模板编码"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"模板标题"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["templateName",e.validatorRules.templateName],expression:"['templateName', validatorRules.templateName]"}],attrs:{placeholder:"请输入模板标题"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"模板类型"}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["templateType",e.validatorRules.templateType],expression:"['templateType', validatorRules.templateType ]"}],attrs:{triggerChange:!0,dictCode:"msgType",placeholder:"请选择模板类型"},on:{change:e.handleChangeTemplateType}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.useEditor,expression:"!useEditor"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"模板内容"}},[n("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["templateContent",e.validatorRules.templateContent],expression:"['templateContent', validatorRules.templateContent ]"}],attrs:{placeholder:"请输入模板内容",autosize:{minRows:8,maxRows:8}}})],1),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.useEditor,expression:"useEditor"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"模板内容"}},[n("j-editor",{model:{value:e.templateEditorContent,callback:function(t){e.templateEditorContent=t},expression:"templateEditorContent"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("4ec3"),c=n("a061"),u={name:"SysMessageTemplateModal",components:{JEditor:c["default"]},data:function(){return{title:"操作",visible:!1,disable:!0,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{templateCode:{rules:[{required:!0,message:"请输入模板CODE!"},{validator:this.validateTemplateCode}]},templateName:{rules:[{required:!0,message:"请输入模板标题!"}]},templateContent:{rules:[]},templateType:{rules:[{required:!0,message:"请输入模板类型!"}]}},url:{add:"/message/sysMessageTemplate/add",edit:"/message/sysMessageTemplate/edit"},useEditor:!1,templateEditorContent:""}},created:function(){},methods:{add:function(){this.disable=!1,this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.useEditor=2==e.templateType,this.useEditor?this.templateEditorContent=e.templateContent:this.templateEditorContent="",this.visible=!0,this.$nextTick((function(){t.useEditor?t.form.setFieldsValue(s()(t.model,"templateCode","templateName","templateTestJson","templateType")):t.form.setFieldsValue(s()(t.model,"templateCode","templateContent","templateName","templateTestJson","templateType"))}))},close:function(){this.$emit("close"),this.visible=!1,this.disable=!0},handleOk:function(){var e=this;this.model.templateType=this.templateType;var t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);e.useEditor&&(s.templateContent=e.templateEditorContent),console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},validateTemplateCode:function(e,t,n){var r={tableName:"sys_sms_template",fieldName:"template_code",fieldVal:t,dataId:this.model.id};Object(l["l"])(r).then((function(e){e.success?n():n(e.message)}))},handleCancel:function(){this.close()},handleChangeTemplateType:function(e){this.useEditor=2==e}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"1409d610",null);t["default"]=h.exports},e610:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-upload",{attrs:{name:"file",listType:"picture-card",multiple:e.isMultiple,action:e.uploadAction,headers:e.headers,data:{biz:e.bizPath},fileList:e.fileList,beforeUpload:e.beforeUpload,disabled:e.disabled,isMultiple:e.isMultiple,showUploadList:e.isMultiple},on:{change:e.handleChange,preview:e.handlePreview}},[!e.isMultiple&&e.picUrl?n("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:e.getAvatarView()}}):n("div",[n("a-icon",{attrs:{type:e.uploadLoading?"loading":"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v(e._s(e.text))])],1),n("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:function(t){return e.handleCancel()}}},[n("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)},i=[],o=(n("7f7f"),n("28a5"),n("a481"),n("3b2b"),n("2b0e")),a=n("9fb0"),s=n("0fea"),l=function(){return"-"+parseInt(1e4*Math.random()+1,10)},c=function(e){if(e.lastIndexOf("\\")>=0){var t=new RegExp("\\\\","g");e=e.replace(t,"/")}return e.substring(e.lastIndexOf("/")+1)},u={name:"JImageUpload",data:function(){return{uploadAction:window._CONFIG["domianURL"]+"/sys/common/upload",uploadLoading:!1,picUrl:!1,headers:{},fileList:[],previewImage:"",previewVisible:!1}},props:{text:{type:String,required:!1,default:"上传"},bizPath:{type:String,required:!1,default:"temp"},value:{type:[String,Array],required:!1},disabled:{type:Boolean,required:!1,default:!1},isMultiple:{type:Boolean,required:!1,default:!1}},watch:{value:function(e){e instanceof Array?this.initFileList(e.join(",")):this.initFileList(e)}},created:function(){var e=o["default"].ls.get(a["a"]);this.headers={"X-Access-Token":e}},methods:{initFileList:function(e){if(e&&0!=e.length){this.picUrl=!0;for(var t=[],n=e.split(","),r=0;r<n.length;r++){var i=Object(s["getFileAccessHttpUrl"])(n[r]);t.push({uid:l(),name:c(n[r]),status:"done",url:i,response:{status:"history",message:n[r]}})}this.fileList=t}else this.fileList=[]},beforeUpload:function(e){var t=e.type;if(t.indexOf("image")<0)return this.$message.warning("请上传图片"),!1},handleChange:function(e){this.picUrl=!1;var t=e.fileList;"done"===e.file.status?e.file.response.success&&(this.picUrl=!0,t=t.map((function(e){return e.response&&(e.url=e.response.message),e}))):"error"===e.file.status?this.$message.error("".concat(e.file.name," 上传失败.")):"removed"===e.file.status&&this.handleDelete(e.file),this.fileList=t,"done"!==e.file.status&&"removed"!==e.file.status||this.handlePathChange()},handlePreview:function(e){this.previewImage=e.url||e.thumbUrl,this.previewVisible=!0},getAvatarView:function(){if(this.fileList.length>0){var e=this.fileList[0].url;return Object(s["getFileAccessHttpUrl"])(e)}},handlePathChange:function(){var e=this.fileList,t="";e&&0!=e.length||(t="");var n=[];if(this.isMultiple)for(var r=0;r<e.length;r++)n.push(e[r].response.message);else n.push(e[e.length-1].response.message);n.length>0&&(t=n.join(",")),this.$emit("change",t)},handleDelete:function(e){console.log(e)},handleCancel:function(){this.close(),this.previewVisible=!1},close:function(){}},model:{prop:"value",event:"change"}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"32694758",null);t["default"]=h.exports},e659:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{padding:"0 0 32px 32px"}},[n("h4",{style:{marginBottom:"20px"}},[e._v(e._s(e.title))]),n("v-chart",{attrs:{forceFit:!0,height:e.height,data:e.data,scale:e.scale}},[n("v-tooltip"),n("v-legend"),n("v-axis"),n("v-bar",{attrs:{position:"type*bar"}}),n("v-line",{attrs:{position:"type*line",color:"#2fc25b",size:3}})],1)],1)},i=[],o=(n("c5f6"),{name:"BarMultid",props:{title:{type:String,default:""},dataSource:{type:Array,default:function(){return[{type:"10:10",bar:2,line:2},{type:"10:15",bar:6,line:3},{type:"10:20",bar:2,line:5},{type:"10:25",bar:9,line:1},{type:"10:30",bar:2,line:3},{type:"10:35",bar:2,line:1},{type:"10:40",bar:1,line:2}]}},height:{type:Number,default:400}},data:function(){return{scale:[{dataKey:"bar",min:0},{dataKey:"line",min:0}]}},computed:{data:function(){return this.dataSource}}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},e6b1:function(e,t,n){},e6b8:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("iframe",{attrs:{id:e.id,src:e.url,frameborder:"0",width:"100%",height:"800px",scrolling:"auto"}})},i=[],o=(n("b445"),n("501f"),{name:"IframePageContent",data:function(){return{url:"",id:""}},created:function(){this.goUrl()},updated:function(){this.goUrl()},watch:{$route:function(e,t){this.goUrl()}},methods:{goUrl:function(){var e=this.$route.meta.url,t=this.$route.path;this.id=t,console.log("------url------"+e),null!==e&&void 0!==e&&(this.url=e)}}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},e6bd:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},e6ea:function(e,t,n){"use strict";n("ebb9")},e6f1:function(e,t,n){},e734:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-select",{staticClass:"inputSearch",staticStyle:{width:"350px"},on:{chooseAddress:function(t){return e.chooseAddress(t)}}}),n("div",{staticClass:"yingxiang"},[n("a-dropdown",[n("a-button",{attrs:{type:"primary",icon:"swap"}},[e._v("地图切换")]),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.tdmapin()}}},[e._v("\n            标准\n          ")])]),n("a-menu-item",[n("a",{attrs:{target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.supermapin()}}},[e._v("\n            影像\n          ")])])],1)],1)],1),n("div",{staticClass:"mapQuart",staticStyle:{height:"850px"},attrs:{id:"maps"}})],1)},i=[],o=n("34e1"),a=o["a"],s=(n("fdd2"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,null,null);t["default"]=l.exports},e789:function(e,t,n){},e8b0:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e},n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r="\ufeff",i=function(e){return e.replace(/\uFEFF/g,"")},o=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",s={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f…\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤-\ufeff-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},l={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},c=[new RegExp(s.aletter),new RegExp(s.midnumlet),new RegExp(s.midletter),new RegExp(s.midnum),new RegExp(s.numeric),new RegExp(s.cr),new RegExp(s.lf),new RegExp(s.newline),new RegExp(s.extend),new RegExp(s.format),new RegExp(s.katakana),new RegExp(s.extendnumlet),new RegExp("@")],u="",d=new RegExp("^"+s.punctuation+"$"),f=/^\s+$/,h=c,p=l.OTHER,m=function(e){for(var t=p,n=h.length,r=0;r<n;++r){var i=h[r];if(i&&i.test(e)){t=r;break}}return t},g=function(e){var t={};return function(n){if(t[n])return t[n];var r=e(n);return t[n]=r,r}},v=function(e){var t=g(m);return o(e,t)},y=function(e,t){var n=e[t],r=e[t+1];if(t<0||t>e.length-1&&0!==t)return!1;if(n===l.ALETTER&&r===l.ALETTER)return!1;var i=e[t+2];if(n===l.ALETTER&&(r===l.MIDLETTER||r===l.MIDNUMLET||r===l.AT)&&i===l.ALETTER)return!1;var o=e[t-1];return(n!==l.MIDLETTER&&n!==l.MIDNUMLET&&r!==l.AT||r!==l.ALETTER||o!==l.ALETTER)&&((n!==l.NUMERIC&&n!==l.ALETTER||r!==l.NUMERIC&&r!==l.ALETTER)&&((n!==l.MIDNUM&&n!==l.MIDNUMLET||r!==l.NUMERIC||o!==l.NUMERIC)&&((n!==l.NUMERIC||r!==l.MIDNUM&&r!==l.MIDNUMLET||i!==l.NUMERIC)&&(n!==l.EXTEND&&n!==l.FORMAT&&o!==l.EXTEND&&o!==l.FORMAT&&r!==l.EXTEND&&r!==l.FORMAT&&((n!==l.CR||r!==l.LF)&&(n===l.NEWLINE||n===l.CR||n===l.LF||(r===l.NEWLINE||r===l.CR||r===l.LF||(n!==l.KATAKANA||r!==l.KATAKANA)&&((r!==l.EXTENDNUMLET||n!==l.ALETTER&&n!==l.NUMERIC&&n!==l.KATAKANA&&n!==l.EXTENDNUMLET)&&((n!==l.EXTENDNUMLET||r!==l.ALETTER&&r!==l.NUMERIC&&r!==l.KATAKANA)&&n!==l.AT)))))))))},b=u,_=f,w=d,x=function(e){return"http"===e||"https"===e},S=function(e,t){var n;for(n=t;n<e.length;n++)if(_.test(e[n]))break;return n},C=function(e,t){var n=S(e,t+1),r=e.slice(t+1,n).join(b);return"://"===r.substr(0,3)?n:t},E=function(e,t,n,r){for(var i=[],o=[],a=0;a<n.length;++a)if(o.push(e[a]),y(n,a)){var s=t[a];if((r.includeWhitespace||!_.test(s))&&(r.includePunctuation||!w.test(s))){var l=a-o.length+1,c=a+1,u=t.slice(l,c).join(b);if(x(u)){var d=C(t,a),f=e.slice(c,d);Array.prototype.push.apply(o,f),a=d}i.push(o)}o=[]}return i},k=function(){return{includeWhitespace:!1,includePunctuation:!1}},O=function(e,t,i){i=n(n({},k()),i);for(var o=[],a=[],s=0;s<e.length;s++){var l=t(e[s]);l!==r&&(o.push(e[s]),a.push(l))}var c=v(a);return E(o,a,c,i)},T=O,I=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),A=function(e,t){var n=t.getBlockElements(),r=t.getShortEndedElements(),o=function(e){return n[e.nodeName]||r[e.nodeName]},a=[],s="",l=new I(e,e);while(e=l.next())3===e.nodeType?s+=i(e.data):o(e)&&s.length&&(a.push(s),s="");return s.length&&a.push(s),a},R=function(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},P=function(e,n){var r=A(e,n).join("\n");return T(r.split(""),t).length},M=function(e,t){var n=A(e,t).join("");return R(n)},N=function(e,t){var n=A(e,t).join("").replace(/\s/g,"");return R(n)},L=function(e,t){return function(){return t(e.getBody(),e.schema)}},D=function(e,t){return function(){return t(e.selection.getRng().cloneContents(),e.schema)}},j=function(e){return L(e,P)},F=function(e){return{body:{getWordCount:j(e),getCharacterCount:L(e,M),getCharacterCountWithoutSpaces:L(e,N)},selection:{getWordCount:D(e,P),getCharacterCount:D(e,M),getCharacterCountWithoutSpaces:D(e,N)},getCount:j(e)}},B=tinymce.util.Tools.resolve("tinymce.util.Delay"),q=function(e,t){e.fire("wordCountUpdate",{wordCount:{words:t.body.getWordCount(),characters:t.body.getCharacterCount(),charactersWithoutSpaces:t.body.getCharacterCountWithoutSpaces()}})},z=function(e,t){q(e,t)},U=function(e,t,n){var r=B.debounce((function(){return z(e,t)}),n);e.on("init",(function(){z(e,t),B.setEditorTimeout(e,(function(){e.on("SetContent BeforeAddUndo Undo Redo keyup",r)}),0)}))},G=function(e,t){e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(t.body.getWordCount()),String(t.selection.getWordCount())],["Characters (no spaces)",String(t.body.getCharacterCountWithoutSpaces()),String(t.selection.getCharacterCountWithoutSpaces())],["Characters",String(t.body.getCharacterCount()),String(t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},V=function(e,t){e.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:function(){return G(e,t)}}),e.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:function(){return G(e,t)}})};function W(t){void 0===t&&(t=300),e.add("wordcount",(function(e){var n=F(e);return V(e,n),U(e,n,t),n}))}W()})()},e8c4:function(e,t,n){"use strict";n("456d"),n("ac6a");var r=n("be94"),i=(n("6762"),n("2fdb"),n("7f7f"),n("c5f6"),n("372e")),o=n("c832"),a=n.n(o);t["a"]={data:function(){return{needTotalList:[],selectedRows:[],selectedRowKeys:[],localLoading:!1,localDataSource:[],localPagination:Object.assign({},i["a"].props.pagination)}},props:Object.assign({},i["a"].props,{rowKey:{type:[String,Function],default:"id"},data:{type:Function,required:!0},pageNum:{type:Number,default:1},pageSize:{type:Number,default:10},showSizeChanger:{type:Boolean,default:!0},showAlertInfo:{type:Boolean,default:!1},showPagination:{default:"auto"}}),watch:{"localPagination.current":function(e){this.$router.push({name:this.$route.name,params:Object.assign({},this.$route.params,{pageNo:e})})},pageNum:function(e){Object.assign(this.localPagination,{current:e})},pageSize:function(e){console.log("pageSize:",e),Object.assign(this.localPagination,{pageSize:e})},showSizeChanger:function(e){console.log("showSizeChanger",e),Object.assign(this.localPagination,{showSizeChanger:e})}},created:function(){this.localPagination=["auto",!0].includes(this.showPagination)&&Object.assign({},this.localPagination,{current:this.pageNum,pageSize:this.pageSize,showSizeChanger:this.showSizeChanger}),this.needTotalList=this.initTotalList(this.columns),this.loadData()},methods:{refresh:function(){this.loadData()},loadData:function(e,t,n){var i=this;this.localLoading=!0;var o=this.data(Object.assign({pageNo:e&&e.current||this.localPagination.current,pageSize:e&&e.pageSize||this.localPagination.pageSize},n&&n.field&&{sortField:n.field}||{},n&&n.order&&{sortOrder:n.order}||{},Object(r["a"])({},t)));o instanceof Promise&&o.then((function(t){i.localPagination=Object.assign({},i.localPagination,{current:t.pageNo,total:t.totalCount,showSizeChanger:i.showSizeChanger,pageSize:e&&e.pageSize||i.localPagination.pageSize}),!t.totalCount&&["auto",!1].includes(i.showPagination)&&(i.localPagination=!1),i.localDataSource=t.data,i.localLoading=!1}))},initTotalList:function(e){var t=[];return e&&e instanceof Array&&e.forEach((function(e){e.needTotal&&t.push(Object(r["a"])({},e,{total:0}))})),t},updateSelect:function(e,t){this.selectedRowKeys=e,this.selectedRows=t;var n=this.needTotalList;this.needTotalList=n.map((function(e){return Object(r["a"])({},e,{total:t.reduce((function(t,n){var r=t+a()(n,e.dataIndex);return isNaN(r)?0:r}),0)})}))},updateEdit:function(){this.selectedRows=[]},onClearSelected:function(){this.selectedRowKeys=[],this.updateSelect([],[])},renderMsg:function(e){var t=this,n=[];return n.push(e("span",{style:{marginRight:"12px"}},["已选择 ",e("a",{style:{fontWeight:600}},this.selectedRows.length)])),this.needTotalList.map((function(t){n.push(e("span",{style:{marginRight:"12px"}},["".concat(t.title,"总计 "),e("a",{style:{fontWeight:600}},"".concat(t.customRender?t.customRender(t.total):t.total))]))})),n.push(e("a",{style:{marginLeft:"24px"},on:{click:t.onClearSelected}},"清空")),n},renderAlert:function(e){return e("span",{slot:"message"},this.renderMsg(e))}},render:function(e){var t=this,n={},r=Object.keys(this.$data);return Object.keys(i["a"].props).forEach((function(e){var i="local".concat(e.substring(0,1).toUpperCase()).concat(e.substring(1));return r.includes(i)?n[e]=t[i]:n[e]=t[e]})),this.showAlertInfo?(n.rowSelection={selectedRowKeys:this.selectedRowKeys,onChange:function(e,n){t.updateSelect(e,n),t.$emit("onSelect",{selectedRowKeys:e,selectedRows:n})}},e("div",{},[e("a-alert",{style:{marginBottom:"16px"},props:{type:"info",showIcon:!0}},[t.renderAlert(e)]),e("a-table",{tag:"component",attrs:n,on:{change:t.loadData},scopedSlots:this.$scopedSlots},this.$slots.default)])):e("a-table",{tag:"component",attrs:n,on:{change:t.loadData},scopedSlots:this.$scopedSlots},this.$slots.default)}}},e901:function(e,t,n){(function(t){"use strict";if(t.__disableNativeFetch||!t.fetch){s.prototype.append=function(e,t){e=o(e),t=a(t);var n=this.map[e];n||(n=[],this.map[e]=n),n.push(t)},s.prototype["delete"]=function(e){delete this.map[o(e)]},s.prototype.get=function(e){var t=this.map[o(e)];return t?t[0]:null},s.prototype.getAll=function(e){return this.map[o(e)]||[]},s.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},s.prototype.set=function(e,t){this.map[o(e)]=[a(t)]},s.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach((function(n){this.map[n].forEach((function(r){e.call(t,r,n,this)}),this)}),this)};var n={blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t},r=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this)},f.call(p.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var i=[301,302,303,307,308];v.redirect=function(e,t){if(-1===i.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},t.Headers=s,t.Request=p,t.Response=v,t.fetch=function(e,t){return new Promise((function(r,i){var o;o=p.prototype.isPrototypeOf(e)&&!t?e:new p(e,t);var a=new XMLHttpRequest;function s(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var l=!1;function c(){if(4===a.readyState){var e=1223===a.status?204:a.status;if(e<100||e>599){if(l)return;return l=!0,void i(new TypeError("Network request failed"))}var t={status:e,statusText:a.statusText,headers:g(a),url:s()},n="response"in a?a.response:a.responseText;l||(l=!0,r(new v(n,t)))}}a.onreadystatechange=c,a.onload=c,a.onerror=function(){l||(l=!0,i(new TypeError("Network request failed")))},a.open(o.method,o.url,!0);try{"include"===o.credentials&&("withCredentials"in a?a.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(u){console&&console.warn&&console.warn("set withCredentials error:"+u)}"responseType"in a&&n.blob&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send("undefined"===typeof o._bodyInit?null:o._bodyInit)}))},t.fetch.polyfill=!0,e.exports&&(e.exports=t.fetch)}function o(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!==typeof e&&(e=String(e)),e}function s(e){this.map={},e instanceof s?e.forEach((function(e,t){this.append(t,e)}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function u(e){var t=new FileReader;return t.readAsArrayBuffer(e),c(t)}function d(e,t){var n=new FileReader,r=t.headers.map["content-type"]?t.headers.map["content-type"].toString():"",i=/charset\=[0-9a-zA-Z\-\_]*;?/,o=e.type.match(i)||r.match(i),a=[e];return o&&a.push(o[0].replace(/^charset\=/,"").replace(/;$/,"")),n.readAsText.apply(n,a),c(n)}function f(){return this.bodyUsed=!1,this._initBody=function(e,t){if(this._bodyInit=e,"string"===typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e,this._options=t;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!n.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},n.blob?(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(u)},this.text=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return d(this._bodyBlob,this._options);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=l(this);return e||Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}function h(e){var t=e.toUpperCase();return r.indexOf(t)>-1?t:e}function p(e,t){t=t||{};var n=t.body;if(p.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new s(t.headers)),this.method=h(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n,t)}function m(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function g(e){var t=new s,n=e.getAllResponseHeaders().trim().split("\n");return n.forEach((function(e){var n=e.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();t.append(r,i)})),t}function v(e,t){t||(t={}),this._initBody(e,t),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof s?t.headers:new s(t.headers),this.url=t.url||""}})("undefined"!==typeof self?self:this)},e95e:function(e,t,n){var r=n("bbb4").makeFactoryWithModifier((function(e){return n("2ef0").merge(e,{params:{filterPath:{type:"list",name:"filter_path"}}})})),i=n("bbb4").namespaceFactory,o=e.exports={};o._namespaces=["cat","cluster","indices","ingest","nodes","snapshot","tasks"],o.bulk=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},type:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/_bulk",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_bulk",req:{index:{type:"string"}}},{fmt:"/_bulk"}],needBody:!0,bulkBody:!0,method:"POST"}),o.cat=i(),o.cat.prototype.aliases=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/aliases/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_cat/aliases"}]}),o.cat.prototype.allocation=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/allocation/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cat/allocation"}]}),o.cat.prototype.count=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/count/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/count"}]}),o.cat.prototype.fielddata=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},fields:{type:"list"}},urls:[{fmt:"/_cat/fielddata/<%=fields%>",req:{fields:{type:"list"}}},{fmt:"/_cat/fielddata"}]}),o.cat.prototype.health=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},ts:{type:"boolean",default:!0},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/health"}}),o.cat.prototype.help=r({params:{help:{type:"boolean",default:!1},s:{type:"list"}},url:{fmt:"/_cat"}}),o.cat.prototype.indices=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","m","g"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},health:{type:"enum",default:null,options:["green","yellow","red"]},help:{type:"boolean",default:!1},pri:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"}},urls:[{fmt:"/_cat/indices/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/indices"}]}),o.cat.prototype.master=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/master"}}),o.cat.prototype.nodeattrs=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodeattrs"}}),o.cat.prototype.nodes=r({params:{format:{type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),o.cat.prototype.pendingTasks=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),o.cat.prototype.plugins=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),o.cat.prototype.recovery=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),o.cat.prototype.repositories=r({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),o.cat.prototype.segments=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),o.cat.prototype.shards=r({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),o.cat.prototype.snapshots=r({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),o.cat.prototype.tasks=r({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),o.cat.prototype.templates=r({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),o.cat.prototype.threadPool=r({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),o.clearScroll=r({url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),o.cluster=i(),o.cluster.prototype.allocationExplain=r({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),o.cluster.prototype.getSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/_cluster/settings"}}),o.cluster.prototype.health=r({params:{expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},level:{type:"enum",default:"cluster",options:["cluster","indices","shards"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForNodes:{type:"string",name:"wait_for_nodes"},waitForEvents:{type:"enum",options:["immediate","urgent","high","normal","low","languid"],name:"wait_for_events"},waitForNoRelocatingShards:{type:"boolean",name:"wait_for_no_relocating_shards"},waitForNoInitializingShards:{type:"boolean",name:"wait_for_no_initializing_shards"},waitForStatus:{type:"enum",default:null,options:["green","yellow","red"],name:"wait_for_status"}},urls:[{fmt:"/_cluster/health/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cluster/health"}]}),o.cluster.prototype.pendingTasks=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_cluster/pending_tasks"}}),o.cluster.prototype.putSettings=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/settings"},needBody:!0,method:"PUT"}),o.cluster.prototype.remoteInfo=r({url:{fmt:"/_remote/info"}}),o.cluster.prototype.reroute=r({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),o.cluster.prototype.state=r({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},waitForMetadataVersion:{type:"number",name:"wait_for_metadata_version"},waitForTimeout:{type:"time",name:"wait_for_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),o.cluster.prototype.stats=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),o.count=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"list"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},terminateAfter:{type:"number",name:"terminate_after"}},urls:[{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),o.create=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/_create/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o["delete"]=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"DELETE"}),o.deleteByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}},needBody:!0,method:"POST"}),o.deleteByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_delete_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.deleteScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.exists=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.existsSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"HEAD"}),o.explain=r({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},url:{fmt:"/<%=index%>/_explain/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},method:"POST"}),o.fieldCaps=r({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},includeUnmapped:{type:"boolean",default:!1,name:"include_unmapped"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),o.get=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.getScript=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}}),o.getSource=r({params:{preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/_source/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}}}),o.index=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/_doc/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_doc",req:{index:{type:"string"}}}],needBody:!0,method:"POST"}),o.indices=i(),o.indices.prototype.analyze=r({params:{index:{type:"string"}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),o.indices.prototype.clearCache=r({params:{fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),o.indices.prototype.clone=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_clone/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.close=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.create=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),o.indices.prototype["delete"]=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},method:"DELETE"}),o.indices.prototype.deleteTemplate=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},method:"DELETE"}),o.indices.prototype.exists=r({params:{local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}}],method:"HEAD"}),o.indices.prototype.existsTemplate=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},method:"HEAD"}),o.indices.prototype.existsType=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},url:{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},method:"HEAD"}),o.indices.prototype.flush=r({params:{force:{type:"boolean"},waitIfOngoing:{type:"boolean",name:"wait_if_ongoing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush",req:{index:{type:"list"}}},{fmt:"/_flush"}],method:"POST"}),o.indices.prototype.flushSynced=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_flush/synced",req:{index:{type:"list"}}},{fmt:"/_flush/synced"}],method:"POST"}),o.indices.prototype.forcemerge=r({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"}},urls:[{fmt:"/<%=index%>/_forcemerge",req:{index:{type:"list"}}},{fmt:"/_forcemerge"}],method:"POST"}),o.indices.prototype.get=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}}}),o.indices.prototype.getAlias=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"all",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/_alias/<%=name%>",req:{name:{type:"list"}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),o.indices.prototype.getFieldMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),o.indices.prototype.getMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping"}]}),o.indices.prototype.getSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),o.indices.prototype.getTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),o.indices.prototype.getUpgrade=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),o.indices.prototype.open=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),o.indices.prototype.putAlias=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),o.indices.prototype.putMapping=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},needBody:!0,method:"PUT"}),o.indices.prototype.putSettings=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),o.indices.prototype.putTemplate=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),o.indices.prototype.recovery=r({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),o.indices.prototype.refresh=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),o.indices.prototype.rollover=r({params:{includeTypeName:{type:"boolean",name:"include_type_name"},timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),o.indices.prototype.segments=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),o.indices.prototype.shardStores=r({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),o.indices.prototype.shrink=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.split=r({params:{copySettings:{type:"boolean",name:"copy_settings"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_split/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),o.indices.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"},includeUnloadedSegments:{type:"boolean",default:!1,name:"include_unloaded_segments"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},forbidClosedIndices:{type:"boolean",default:!0,name:"forbid_closed_indices"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/<%=index%>/_stats",req:{index:{type:"list"}}},{fmt:"/_stats"}]}),o.indices.prototype.updateAliases=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_aliases"},needBody:!0,method:"POST"}),o.indices.prototype.upgrade=r({params:{allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},onlyAncientSegments:{type:"boolean",name:"only_ancient_segments"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}],method:"POST"}),o.indices.prototype.validateQuery=r({params:{explain:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},rewrite:{type:"boolean"},allShards:{type:"boolean",name:"all_shards"}},urls:[{fmt:"/<%=index%>/_validate/query",req:{index:{type:"list"}}},{fmt:"/_validate/query"}],method:"POST"}),o.info=r({url:{fmt:"/"}}),o.ingest=i(),o.ingest.prototype.deletePipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),o.ingest.prototype.getPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},urls:[{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline"}]}),o.ingest.prototype.processorGrok=r({url:{fmt:"/_ingest/processor/grok"}}),o.ingest.prototype.putPipeline=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_ingest/pipeline/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),o.ingest.prototype.simulate=r({params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),o.mget=r({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"}},urls:[{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),o.msearch=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),o.msearchTemplate=r({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),o.mtermvectors=r({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),o.nodes=i(),o.nodes.prototype.hotThreads=r({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},url:{}}),o.nodes.prototype.info=r({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),o.nodes.prototype.reloadSecureSettings=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/reload_secure_settings",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/reload_secure_settings"}],method:"POST"}),o.nodes.prototype.stats=r({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),o.nodes.prototype.usage=r({params:{timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/usage/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/<%=nodeId%>/usage",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/usage/<%=metric%>",req:{metric:{type:"list",options:["_all","rest_actions"]}}},{fmt:"/_nodes/usage"}]}),o.ping=r({url:{fmt:"/"},method:"HEAD"}),o.putScript=r({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},context:{type:"string"}},urls:[{fmt:"/_scripts/<%=id%>/<%=context%>",req:{id:{type:"string"},context:{type:"string"}}},{fmt:"/_scripts/<%=id%>",req:{id:{type:"string"}}}],needBody:!0,method:"PUT"}),o.rankEval=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_rank_eval",req:{index:{type:"list"}}},{fmt:"/_rank_eval"}],needBody:!0,method:"POST"}),o.reindex=r({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},scroll:{type:"time",default:"5m"},slices:{type:"number",default:1},maxDocs:{type:"number",name:"max_docs"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),o.reindexRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),o.renderSearchTemplate=r({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),o.scriptsPainlessExecute=r({url:{fmt:"/_scripts/painless/_execute"},method:"POST"}),o.scroll=r({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},url:{fmt:"/_search/scroll"},paramAsBody:{param:"scrollId",body:"scroll_id"},method:"POST"}),o.search=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},trackTotalHits:{type:"boolean",name:"track_total_hits"},allowPartialSearchResults:{type:"boolean",default:!0,name:"allow_partial_search_results"},typedKeys:{type:"boolean",name:"typed_keys"},version:{type:"boolean"},seqNoPrimaryTerm:{type:"boolean",name:"seq_no_primary_term"},requestCache:{type:"boolean",name:"request_cache"},batchedReduceSize:{type:"number",default:512,name:"batched_reduce_size"},maxConcurrentShardRequests:{type:"number",default:5,name:"max_concurrent_shard_requests"},preFilterShardSize:{type:"number",default:128,name:"pre_filter_shard_size"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"}},urls:[{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),o.searchShards=r({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),o.searchTemplate=r({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},ignoreThrottled:{type:"boolean",name:"ignore_throttled"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"},restTotalHitsAsInt:{type:"boolean",default:!1,name:"rest_total_hits_as_int"},ccsMinimizeRoundtrips:{type:"boolean",default:"true",name:"ccs_minimize_roundtrips"}},urls:[{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],needBody:!0,method:"POST"}),o.snapshot=i(),o.snapshot.prototype.create=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.createRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),o.snapshot.prototype["delete"]=r({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),o.snapshot.prototype.deleteRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),o.snapshot.prototype.get=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},verbose:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),o.snapshot.prototype.getRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),o.snapshot.prototype.restore=r({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),o.snapshot.prototype.status=r({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),o.snapshot.prototype.verifyRepository=r({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),o.tasks=i(),o.tasks.prototype.cancel=r({params:{nodes:{type:"list"},actions:{type:"list"},parentTaskId:{type:"string",name:"parent_task_id"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),o.tasks.prototype.get=r({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"},timeout:{type:"time"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),o.tasks.prototype.list=r({params:{nodes:{type:"list"},actions:{type:"list"},detailed:{type:"boolean"},parentTaskId:{type:"string",name:"parent_task_id"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents","none"],name:"group_by"},timeout:{type:"time"}},url:{fmt:"/_tasks"}}),o.termvectors=r({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/_termvectors/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/_termvectors",req:{index:{type:"string"}}}],method:"POST"}),o.update=r({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},lang:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},ifSeqNo:{type:"number",name:"if_seq_no"},ifPrimaryTerm:{type:"number",name:"if_primary_term"}},url:{fmt:"/<%=index%>/_update/<%=id%>",req:{index:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),o.updateByQuery=r({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},maxDocs:{type:"number",name:"max_docs"},sort:{type:"list"},_source:{type:"list"},_sourceExcludes:{type:"list",name:"_source_excludes"},_sourceIncludes:{type:"list",name:"_source_includes"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!0,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},url:{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}},method:"POST"}),o.updateByQueryRethrottle=r({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_update_by_query/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"})},e98d:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("5c38");function i(e){return Array.isArray(e)?Object(r["c"])(e):e}},e9b8:function(e,t,n){},e9cd:function(e,t,n){"use strict";n("3bd5")},eaba:function(e,t,n){"use strict";n("99d7")},eb0c:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(i,o){if(o.innerActive){var a=o.innerActive;c=i.string;if(!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);f=a.close?r(c,a.close,i.pos,a.parseDelimiters):-1;if(f==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";f>-1&&(i.string=c.slice(0,f));var s=a.mode.token(i,o.inner);return f>-1&&(i.string=c),f==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var l=1/0,c=i.string,u=0;u<n.length;++u){var d=n[u],f=r(c,d.open,i.pos);if(f==i.pos){d.parseDelimiters||i.match(d.open),o.innerActive=d;var h=0;if(t.indent){var p=t.indent(o.outer,"","");p!==e.Pass&&(h=p)}return o.inner=e.startState(d.mode,h),d.delimStyle&&d.delimStyle+" "+d.delimStyle+"-open"}-1!=f&&f<l&&(l=f)}l!=1/0&&(i.string=c.slice(0,l));var m=t.token(i,o.outer);return l!=1/0&&(i.string=c),m},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var o=0;o<n.length;++o){var a=n[o];"\n"===a.open&&(r.innerActive=a,r.inner=e.startState(a.mode,i.indent?i.indent(r.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}))},eb23:function(e,t,n){"use strict";var r=n("ef6d"),i=n("9fa4"),o=n("7373");e.exports=function(e){var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);while(c>s)t[s++]=e;return t}},eb83:function(e,t,n){},eba7:function(e,t,n){},ebae:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,destroyOnClose:!0,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"父级节点",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pid",e.validatorRules.pid],expression:"['pid', validatorRules.pid]"}],ref:"treeSelect",attrs:{placeholder:"请选择父级节点",dict:"sys_category_write,name,id",pidField:"pid"}})],1),n("a-form-item",{attrs:{label:"类型名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入类型名称"}})],1),n("a-form-item",{attrs:{label:"类型路径",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["path",e.validatorRules.path],expression:"[ 'path', validatorRules.path]"}],attrs:{placeholder:"请输入类型路径"}})],1),n("a-form-item",{attrs:{label:"部门",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sysOrgCode",e.validatorRules.sysOrgCode],expression:"[ 'sysOrgCode', validatorRules.sysOrgCode]"}],attrs:{placeholder:"请输入部门"}})],1),n("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNum",e.validatorRules.orderNum],expression:"[ 'orderNum', validatorRules.orderNum]"}],attrs:{placeholder:"请输入排序"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=n("b098"),c=(n("8c8b"),{name:"SysCategoryModal",components:{JTreeSelect:l["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{pid:{},name:{},sysOrgCode:{},path:{},orderNum:{}},url:{add:"/sys/categoryWrite/add",edit:"/sys/categoryWrite/edit"},expandedRowKeys:[],pidField:"pid",fileList:[]}},created:function(){},methods:{handleChange:function(e){if(console.log(e),this.fileList=e.fileList,"uploading"!==e.file.status&&"done"===e.file.status){var t=e.file.response;t.success||this.$message.warning(t.message)}},add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"pid","name","sysOrgCode","path","orderNum"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log("表单提交数据",s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.submitSuccess(s)):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.fileList=[],this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"pid","name"))},submitSuccess:function(e){if(e.id)this.$emit("ok",e);else{var t=this.$refs.treeSelect.getCurrTreeData();this.expandedRowKeys=[],this.getExpandKeysByPid(e[this.pidField],t,t),this.$emit("ok",e,this.expandedRowKeys.reverse())}},getExpandKeysByPid:function(e,t,n){if(e&&t&&t.length>0)for(var r=0;r<t.length;r++)t[r].key==e?(this.expandedRowKeys.push(t[r].key),this.getExpandKeysByPid(t[r]["parentId"],n,n)):this.getExpandKeysByPid(e,t[r].children,n)}}}),u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,null,null);t["default"]=f.exports},ebb9:function(e,t,n){},ebcc:function(e,t,n){var r=n("9c2cc"),i=n("eb23"),o=n("1b92");r({target:"Array",proto:!0},{fill:i}),o("fill")},ebd3:function(e,t,n){"use strict";n("1b05")},ebd36:function(e,t,n){"use strict";n("8bd0")},ebfa:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-skeleton",{attrs:{active:"",loading:e.loading,paragraph:{rows:17}}},[n("a-card",[n("a-row",{attrs:{gutter:8}},[n("a-col",{attrs:{sm:24,xl:12}},[n("area-chart-ty",e._b({},"area-chart-ty",e.memory,!1))],1),n("a-col",{attrs:{sm:24,xl:12}},[n("area-chart-ty",e._b({},"area-chart-ty",e.key,!1))],1)],1),n("h3",[e._v("Redis 详细信息")]),n("a-table",{attrs:{loading:e.tableLoading,columns:e.columns,dataSource:e.redisInfo,pagination:!1}})],1)],1)},i=[],o=(n("c5f6"),n("04ff"),n("3835")),a=(n("ac6a"),n("5df3"),n("c1df")),s=n.n(a),l=n("0fea"),c=n("f552"),u={name:"RedisInfo",components:{AreaChartTy:c["default"]},data:function(){return{loading:!0,tableLoading:!0,timer:null,millisec:3e3,key:{title:"Radis Key 实时数量(个)",dataSource:[],y:"数量(个)",height:340,min:0,max:100,color:"#FF6987",lineSize:8,lineColor:"#DC143C"},memory:{title:"Radis 内存实时占用情况(KB)",dataSource:[],y:"内存(KB)",min:0,max:3e3,height:340,lineSize:8},redisInfo:[],columns:[{title:"Key",align:"center",dataIndex:"key"},{title:"Description",align:"left",dataIndex:"description"},{title:"Value",align:"center",dataIndex:"value"}],url:{keysSize:"/actuator/redis/keysSize",memoryInfo:"/actuator/redis/memoryInfo",info:"/actuator/redis/info"},path:"/monitor/redis/info"}},mounted:function(){var e=this;this.openTimer(),this.loadRedisInfo(),setTimeout((function(){e.loadData()}),1e3)},beforeDestroy:function(){this.closeTimer()},methods:{openTimer:function(){var e=this;this.loadData(),this.closeTimer(),this.timer=setInterval((function(){e.$route.path===e.path&&e.loadData()}),this.millisec)},closeTimer:function(){this.timer&&clearInterval(this.timer)},loadData:function(){var e=this;Promise.all([Object(l["d"])(this.url.keysSize),Object(l["d"])(this.url.memoryInfo)]).then((function(t){var n=s()().format("hh:mm:ss"),r=Object(o["a"])(t,2),i=r[0].dbSize,a=r[1],l=a.used_memory/1e3;e.key.dataSource.push({x:n,y:i}),e.memory.dataSource.push({x:n,y:l}),e.key.dataSource.length>6&&(e.key.dataSource.splice(0,1),e.memory.dataSource.splice(0,1));var c=e.getMaxAndMin(e.key.dataSource,"y");e.key.max=Math.floor(c[0])+10,e.key.min=Math.floor(c[1])-10,e.key.min<0&&(e.key.min=0);var u=e.getMaxAndMin(e.memory.dataSource,"y");e.memory.max=Math.floor(u[0])+100,e.memory.min=Math.floor(u[1])-100,e.memory.min<0&&(e.memory.min=0)})).catch((function(t){console.error(t),e.closeTimer(),e.$message.error("获取 Redis 信息失败")})).finally((function(){e.loading=!1}))},getMaxAndMin:function(e,t){var n=null,r=null;return e.forEach((function(e){var i=Number.parseInt(e[t]);(null==n||i>n)&&(n=i),(null==r||i<r)&&(r=i)})),[n,r]},loadRedisInfo:function(){var e=this;this.tableLoading=!0,Object(l["d"])(this.url.info).then((function(t){e.redisInfo=t.result})).finally((function(){e.tableLoading=!1}))}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,null,null);t["default"]=h.exports},ec79:function(e,t,n){"use strict";n("ba49")},ed2a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:1200,visible:e.visible,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"账号"}},[n("a-input",{attrs:{placeholder:"请输入账号查询"},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}})],1)],1),n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"性别"}},[n("a-select",{attrs:{placeholder:"请选择性别查询"},model:{value:e.queryParam.sex,callback:function(t){e.$set(e.queryParam,"sex",t)},expression:"queryParam.sex"}},[n("a-select-option",{attrs:{value:""}},[e._v("请选择性别查询")]),n("a-select-option",{attrs:{value:"1"}},[e._v("男性")]),n("a-select-option",{attrs:{value:"2"}},[e._v("女性")])],1)],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"邮箱"}},[n("a-input",{attrs:{placeholder:"请输入邮箱查询"},model:{value:e.queryParam.email,callback:function(t){e.$set(e.queryParam,"email",t)},expression:"queryParam.email"}})],1)],1),n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"手机号码"}},[n("a-input",{attrs:{placeholder:"请输入手机号码查询"},model:{value:e.queryParam.phone,callback:function(t){e.$set(e.queryParam,"phone",t)},expression:"queryParam.phone"}})],1)],1),n("a-col",{attrs:{span:6}},[n("a-form-item",{attrs:{label:"状态"}},[n("a-select",{attrs:{placeholder:"请选择用户状态查询"},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},[n("a-select-option",{attrs:{value:""}},[e._v("请选择用户状态")]),n("a-select-option",{attrs:{value:"1"}},[e._v("正常")]),n("a-select-option",{attrs:{value:"2"}},[e._v("解冻")])],1)],1)],1)]:e._e(),n("a-col",{attrs:{span:6}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchByquery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],2)],1)],1),n("a-table",{ref:"table",attrs:{rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)},i=[],o=(n("456d"),n("ac6a"),n("28a5"),n("ca00")),a=n("4ec3"),s={name:"SelectUserListModal",components:{},data:function(){return{title:"选择用户",queryParam:{},columns:[{title:"用户账号",align:"center",dataIndex:"username",fixed:"left",width:200},{title:"真实姓名",align:"center",dataIndex:"realname"},{title:"性别",align:"center",dataIndex:"sex",customRender:function(e){return 1==e?"男":2==e?"女":e}},{title:"手机号码",align:"center",dataIndex:"phone"},{title:"邮箱",align:"center",dataIndex:"email"},{title:"状态",align:"center",dataIndex:"status",customRender:function(e){return 1==e?"正常":2==e?"冻结":e}}],dataSource:[],ipagination:{current:1,pageSize:5,pageSizeOptions:["5","10","20"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},selectedRowKeys:[],selectionRows:[],visible:!1,toggleSearchStatus:!1}},created:function(){this.loadData()},methods:{add:function(e,t){this.visible=!0,this.edit(e,t)},edit:function(e,t){this.selectedRowKeys=t?t.split(","):[],this.selectionRows=e||[]},loadData:function(e){var t=this;1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(a["E"])(n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total)}))},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(o["b"])(e)},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},onSelectChange:function(e,t){this.selectedRowKeys=e,console.log(this.selectedRowKeys),this.selectionRows=t},searchReset:function(){var e=this;Object.keys(e.queryParam).forEach((function(t){e.queryParam[t]=""})),e.loadData(1)},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleCancel:function(){this.selectionRows=[],this.selectedRowKeys=[],this.visible=!1},handleOk:function(){this.$emit("choseUser",this.selectionRows),this.handleCancel()},searchByquery:function(){this.loadData(1)},handleToggleSearch:function(){this.toggleSearchStatus=!this.toggleSearchStatus}}},l=s,c=(n("02f8"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"c92f7a36",null);t["default"]=u.exports},ed50:function(e,t,n){"use strict";n("6479")},edd9:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{padding:"0 0 32px 32px"}},[n("h4",{style:{marginBottom:"20px"}},[e._v(e._s(e.title))]),n("v-chart",{attrs:{forceFit:!0,height:e.height,data:e.dataSource,scale:e.scale,padding:e.padding}},[n("v-tooltip"),n("v-axis"),n("v-bar",{attrs:{position:"x*y"}})],1)],1)},i=[],o=(n("c5f6"),n("ca00")),a={name:"Bar",props:{dataSource:{type:Array,required:!0},yaxisText:{type:String,default:"y"},title:{type:String,default:""},height:{type:Number,default:254}},data:function(){return{padding:["auto","auto","40","50"]}},computed:{scale:function(){return[{dataKey:"y",alias:this.yaxisText}]}},mounted:function(){Object(o["h"])()}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["default"]=c.exports},ee18:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"所拥有的权限"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand,select:e.onTreeNodeSelect},scopedSlots:e._u([{key:"hasDatarule",fn:function(t){var r=t.slotTitle,i=t.ruleFlag;return n("span",{},[e._v("\n          "+e._s(r)),i?n("a-icon",{staticStyle:{"margin-left":"5px",color:"red"},attrs:{type:"align-left"}}):e._e()],1)}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:function(t){return e.switchCheckStrictly(1)}}},[e._v("父子关联")]),n("a-menu-item",{key:"2",on:{click:function(t){return e.switchCheckStrictly(2)}}},[e._v("取消关联")]),n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")]),n("a-menu-item",{key:"5",on:{click:e.expandAll}},[e._v("展开所有")]),n("a-menu-item",{key:"6",on:{click:e.closeAll}},[e._v("合并所有")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1),n("role-datarule-modal",{ref:"datarule"})],1)},i=[],o=n("2909"),a=n("4ec3"),s=n("2285"),l={name:"RoleModal",components:{RoleDataruleModal:s["default"]},data:function(){return{roleId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"角色权限配置",visible:!1,loading:!1}},methods:{onTreeNodeSelect:function(e){this.$refs.datarule.show(e[0],this.roleId)},onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.roleId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={roleId:e.roleId,permissionIds:e.checkedKeys.join(","),lastpermissionIds:e.defaultCheckedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["mb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["Y"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["W"])({roleId:e.roleId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},c=l,u=(n("9204"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"6e1f6802",null);t["default"]=d.exports},ee1d:function(e,t,n){var r=n("5ca1");r(r.S,"Number",{isNaN:function(e){return e!=e}})},eec4:function(e,t,n){"use strict";var r=n("b770").forEach,i=n("5be5"),o=n("49ad"),a=n("2cef"),s=n("5058"),l=n("abb4"),c=n("18e9"),u=n("c274"),d=n("d6eb"),f=n("18d2"),h=n("c946");function p(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return void 0!==r&&null!==r||void 0===n?r:n}e.exports=function(e){var t;if(e=e||{},e.idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:d});t=y}var b=e.reporter;if(!b){var _=!1===b;b=l(_)}var w=v(e,"batchProcessor",u({reporter:b})),x={};x.callOnAdd=!!v(e,"callOnAdd",!0),x.debug=!!v(e,"debug",!1);var S,C=o(t),E=i({stateHandler:d}),k=v(e,"strategy","object"),O=v(e,"important",!1),T={reporter:b,batchProcessor:w,stateHandler:d,idHandler:t,important:O};if("scroll"===k&&(c.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),k="object"):c.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),k="object")),"scroll"===k)S=h(T);else{if("object"!==k)throw new Error("Invalid strategy name: "+k);S=f(T)}var I={};function A(e,n,i){function o(e){var t=C.get(e);r(t,(function(t){t(e)}))}function a(e,t,n){C.add(t,n),e&&n(t)}if(i||(i=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(g(n))n=[n];else{if(!p(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var s=0,l=v(e,"callOnAdd",x.callOnAdd),c=v(e,"onReady",(function(){})),u=v(e,"debug",x.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var f=t.get(e);if(u&&b.log("Attaching listener to element",f,e),!E.isDetectable(e))return u&&b.log(f,"Not detectable."),E.isBusy(e)?(u&&b.log(f,"System busy making it detectable"),a(l,e,i),I[f]=I[f]||[],void I[f].push((function(){s++,s===n.length&&c()}))):(u&&b.log(f,"Making detectable..."),E.markBusy(e,!0),S.makeDetectable({debug:u,important:O},e,(function(e){if(u&&b.log(f,"onElementDetectable"),d.getState(e)){E.markAsDetectable(e),E.markBusy(e,!1),S.addListener(e,o),a(l,e,i);var t=d.getState(e);if(t&&t.startSize){var h=e.offsetWidth,p=e.offsetHeight;t.startSize.width===h&&t.startSize.height===p||o(e)}I[f]&&r(I[f],(function(e){e()}))}else u&&b.log(f,"Element uninstalled before being detectable.");delete I[f],s++,s===n.length&&c()})));u&&b.log(f,"Already detecable, adding listener."),a(l,e,i),s++})),s===n.length&&c()}function R(e){if(!e)return b.error("At least one element is required.");if(g(e))e=[e];else{if(!p(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=m(e)}r(e,(function(e){C.removeAllListeners(e),S.uninstall(e),d.cleanState(e)}))}function P(e){S.initDocument&&S.initDocument(e)}return{listenTo:A,removeListener:C.removeListener,removeAllListeners:C.removeAllListeners,uninstall:R,initDocument:P}}},ef6d:function(e,t,n){var r=n("5da3");e.exports=function(e){return Object(r(e))}},ef95:function(e,t,n){var r=n("41ff"),i=n("10d9"),o=n("8e6b"),a=n("102e");function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports["default"]=e.exports,e.exports.__esModule=!0},f009:function(e,t,n){},f034:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isFullscreen:function(){return null!==e.get()}}},r=function(){},i=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},o=function(e,t){return function(n){return e(t(n))}},a=function(e){return function(){return e}};function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var l=a(!1),c=a(!0),u=function(){return d},d=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},i={fold:function(e,t){return e()},is:l,isSome:l,isNone:c,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(void 0),or:n,orThunk:t,map:u,each:r,bind:u,exists:l,forall:c,filter:u,equals:e,equals_:e,toArray:function(){return[]},toString:a("none()")};return i}(),f=function(e){var t=a(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:c,isNone:l,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return f(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:d},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(l,(function(t){return n(e,t)}))}};return i},h=function(e){return null===e||void 0===e?d:f(e)},p={some:f,none:u,from:h},m=function(t){var n=e(p.none()),r=function(){return n.get().each(t)},i=function(){r(),n.set(p.none())},o=function(){return n.get().isSome()},a=function(e){r(),n.set(p.some(e))};return{clear:i,isSet:o,set:a}},g=function(){return m((function(e){return e.unbind()}))},v=function(){var t=e(p.none()),n=function(){return t.set(p.none())},r=function(e){return t.set(p.some(e))},i=function(){return t.get().isSome()},o=function(e){return t.get().each(e)};return{clear:n,set:r,isSet:i,on:o}},y=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},b=function(e){return function(t){return y(t)===e}},_=function(e){return function(t){return typeof t===e}},w=b("string"),x=b("array"),S=_("boolean"),C=function(e){return null===e||void 0===e},E=function(e){return!C(e)},k=_("function"),O=_("number"),T=Array.prototype.push,I=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},A=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},R=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},P=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!x(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);T.apply(t,e[n])}return t},M=function(e,t){return P(I(e,t))},N=function(e,t){return t>=0&&t<e.length?p.some(e[t]):p.none()},L=function(e){return N(e,0)},D=Object.keys,j=function(e,t){for(var n=D(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},F=function(e){return void 0!==e.style&&k(e.style.getPropertyValue)},B=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return U(r.childNodes[0])},q=function(e,t){var n=t||document,r=n.createElement(e);return U(r)},z=function(e,t){var n=t||document,r=n.createTextNode(e);return U(r)},U=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},G=function(e,t,n){return p.from(e.dom.elementFromPoint(t,n)).map(U)},V={fromHtml:B,fromTag:q,fromText:z,fromDom:U,fromPoint:G},W=("undefined"!==typeof window?window:Function("return this;")(),9),H=11,$=1,K=3,X=function(e){return e.dom.nodeType},Y=function(e){return function(t){return X(t)===e}},J=Y($),Q=Y(K),Z=Y(W),ee=Y(H),te=function(e,t){var n=e.dom;if(n.nodeType!==$)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},ne=function(e){return e.nodeType!==$&&e.nodeType!==W&&e.nodeType!==H||0===e.childElementCount},re=function(e,t){var n=void 0===t?document:t.dom;return ne(n)?[]:I(n.querySelectorAll(e),V.fromDom)},ie=function(e,t){return e.dom===t.dom},oe=function(e){return V.fromDom(e.dom.ownerDocument)},ae=function(e){return Z(e)?e:oe(e)},se=function(e){return p.from(e.dom.parentNode).map(V.fromDom)},le=function(e,t){var n=k(t)?t:l,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=V.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},ce=function(e){var t=function(t){return R(t,(function(t){return!ie(e,t)}))};return se(e).map(ue).map(t).getOr([])},ue=function(e){return I(e.dom.childNodes,V.fromDom)},de=function(e){return ee(e)&&E(e.dom.host)},fe=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),he=a(fe),pe=fe?function(e){return V.fromDom(e.dom.getRootNode())}:ae,me=function(e){var t=pe(e);return de(t)?p.some(t):p.none()},ge=function(e){return V.fromDom(e.dom.host)},ve=function(e){if(he()&&E(e.target)){var t=V.fromDom(e.target);if(J(t)&&ye(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return L(n)}}return p.from(e.target)},ye=function(e){return E(e.dom.shadowRoot)},be=function(e){var t=Q(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return me(V.fromDom(t)).fold((function(){return n.body.contains(t)}),o(be,ge))},_e=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return V.fromDom(t)},we=function(e,t,n){if(!(w(n)||S(n)||O(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},xe=function(e,t,n){we(e.dom,t,n)},Se=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},Ce=function(e,t){e.dom.removeAttribute(t)},Ee=function(e,t,n){if(!w(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);F(e)&&e.style.setProperty(t,n)},ke=function(e,t){var n=e.dom;j(t,(function(e,t){Ee(n,t,e)}))},Oe=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||be(e)?i:Te(n,t)},Te=function(e,t){return F(e)?e.style.getPropertyValue(t):""},Ie=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},Ae=function(e){var t=V.fromDom(ve(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},o=i(r,n);return Ie(t,e.clientX,e.clientY,n,r,o,e)},Re=function(e,t){return function(n){e(n)&&t(Ae(n))}},Pe=function(e,t,n,r,i){var o=Re(n,r);return e.dom.addEventListener(t,o,i),{unbind:s(Ne,e,t,o,i)}},Me=function(e,t,n,r){return Pe(e,t,n,r,!1)},Ne=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Le=c,De=function(e,t,n){return Me(e,t,Le,n)},je=function(e,t){var n=function(n,r){return je(e+n,t+r)};return{left:e,top:t,translate:n}},Fe=je,Be=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Fe(n,r)},qe=function(e){var t=void 0===e?window:e;return p.from(t["visualViewport"])},ze=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Ue=function(e){var t=void 0===e?window:e,n=t.document,r=Be(V.fromDom(n));return qe(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return ze(r.left,r.top,n,i)}),(function(e){return ze(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Ge=function(e,t,n){return qe(n).map((function(n){var r=function(e){return t(Ae(e))};return n.addEventListener(e,r),{unbind:function(){return n.removeEventListener(e,r)}}})).getOrThunk((function(){return{unbind:r}}))},Ve=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),We=tinymce.util.Tools.resolve("tinymce.Env"),He=tinymce.util.Tools.resolve("tinymce.util.Delay"),$e=function(e,t){e.fire("FullscreenStateChanged",{state:t})},Ke=function(e){return e.getParam("fullscreen_native",!1,"boolean")},Xe=function(e){var t=V.fromDom(e.getElement());return me(t).map(ge).getOrThunk((function(){return _e(oe(t))}))},Ye=function(e){return void 0!==e.fullscreenElement?e.fullscreenElement:void 0!==e.msFullscreenElement?e.msFullscreenElement:void 0!==e.webkitFullscreenElement?e.webkitFullscreenElement:null},Je=function(){return void 0!==document.fullscreenElement?"fullscreenchange":void 0!==document.msFullscreenElement?"MSFullscreenChange":void 0!==document.webkitFullscreenElement?"webkitfullscreenchange":"fullscreenchange"},Qe=function(e){var t=e.dom;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},Ze=function(e){var t=e.dom;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitCancelFullScreen&&t.webkitCancelFullScreen()},et=function(e){return e.dom===Ye(oe(e).dom)},tt=function(e,t,n){return R(le(e,n),t)},nt=function(e,t){return R(ce(e),t)},rt=function(e){return re(e)},it=function(e,t,n){return tt(e,(function(e){return te(e,t)}),n)},ot=function(e,t){return nt(e,(function(e){return te(e,t)}))},at="data-ephox-mobile-fullscreen-style",st="display:none!important;",lt="position:absolute!important;",ct="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",ut="background-color:rgb(255,255,255)!important;",dt=We.os.isAndroid(),ft=function(e){var t=Oe(e,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":ut},ht=function(e,t,n){var r=function(e){return ot(e,"*:not(.tox-silver-sink)")},i=function(t){return function(n){var r=Se(n,"style"),i=void 0===r?"no-styles":r.trim();i!==t&&(xe(n,at,i),ke(n,e.parseStyle(t)))}},o=it(t,"*"),a=M(o,r),s=ft(n);A(a,i(st)),A(o,i(lt+ct+s));var l=!0===dt?"":lt;i(l+ct+s)(t)},pt=function(e){var t=rt("["+at+"]");A(t,(function(t){var n=Se(t,at);"no-styles"!==n?ke(t,e.parseStyle(n)):Ce(t,"style"),Ce(t,at)}))},mt=Ve.DOM,gt=function(){var e=Ue(window);return{x:e.x,y:e.y}},vt=function(e){window.scrollTo(e.x,e.y)},yt=qe().fold((function(){return{bind:r,unbind:r}}),(function(e){var t=v(),n=g(),r=g(),i=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},o=function(){window.requestAnimationFrame((function(){t.on((function(t){return ke(t,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})}))}))},a=He.throttle((function(){i(),o()}),50),s=function(e){t.set(e),a(),n.set(Ge("resize",a)),r.set(Ge("scroll",a))},l=function(){t.on((function(){n.clear(),r.clear()})),t.clear()};return{bind:s,unbind:l}})),bt=function(e,t){var n=document.body,r=document.documentElement,i=e.getContainer(),o=V.fromDom(i),a=Xe(e),s=t.get(),l=V.fromDom(e.getBody()),c=We.deviceType.isTouch(),u=i.style,d=e.iframeElement,f=d.style,h=function(e){e(n,"tox-fullscreen"),e(r,"tox-fullscreen"),e(i,"tox-fullscreen"),me(o).map((function(e){return ge(e).dom})).each((function(t){e(t,"tox-fullscreen"),e(t,"tox-shadowhost")}))},m=function(){c&&pt(e.dom),h(mt.removeClass),yt.unbind(),p.from(t.get()).each((function(e){return e.fullscreenChangeHandler.unbind()}))};if(s)s.fullscreenChangeHandler.unbind(),Ke(e)&&et(a)&&Ze(oe(a)),f.width=s.iframeWidth,f.height=s.iframeHeight,u.width=s.containerWidth,u.height=s.containerHeight,u.top=s.containerTop,u.left=s.containerLeft,vt(s.scrollPos),t.set(null),$e(e,!1),m(),e.off("remove",m);else{var g=De(oe(a),Je(),(function(n){Ke(e)&&(et(a)||null===t.get()||bt(e,t))})),v={scrollPos:gt(),containerWidth:u.width,containerHeight:u.height,containerTop:u.top,containerLeft:u.left,iframeWidth:f.width,iframeHeight:f.height,fullscreenChangeHandler:g};c&&ht(e.dom,o,l),f.width=f.height="100%",u.width=u.height="",h(mt.addClass),yt.bind(o),e.on("remove",m),t.set(v),Ke(e)&&Qe(a),$e(e,!0)}},_t=function(e,t){e.addCommand("mceFullScreen",(function(){bt(e,t)}))},wt=function(e,t){return function(n){n.setActive(null!==t.get());var r=function(e){return n.setActive(e.state)};return e.on("FullscreenStateChanged",r),function(){return e.off("FullscreenStateChanged",r)}}},xt=function(e,t){e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:function(){return e.execCommand("mceFullScreen")},onSetup:wt(e,t)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:function(){return e.execCommand("mceFullScreen")},onSetup:wt(e,t)})};function St(){t.add("fullscreen",(function(t){var r=e(null);return t.inline||(_t(t,r),xt(t,r),t.addShortcut("Meta+Shift+F","","mceFullScreen")),n(r)}))}St()})()},f040:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}))},f047:function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},f0e0:function(e,t,n){var r=n("fbee"),i=n("16546"),o=n("e2e1");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},f18f:function(e,t,n){"use strict";n("e9b8")},f1cf:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,destroyOnClose:!0,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{label:"父级节点",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("j-tree-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pid",e.validatorRules.pid],expression:"['pid', validatorRules.pid]"}],ref:"treeSelect",attrs:{placeholder:"请选择父级节点",dict:"sys_category,name,id",pidField:"pid"}})],1),n("a-form-item",{attrs:{label:"类型名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"[ 'name', validatorRules.name]"}],attrs:{placeholder:"请输入类型名称"}})],1),n("a-form-item",{attrs:{label:"类型路径",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["path",e.validatorRules.path],expression:"[ 'path', validatorRules.path]"}],attrs:{placeholder:"请输入类型路径"}})],1),n("a-form-item",{attrs:{label:"类型别名",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["alias",e.validatorRules.alias],expression:"[ 'alias', validatorRules.alias]"}],attrs:{placeholder:"请输入类型别名"}})],1),n("a-form-item",{attrs:{label:"类型编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["code",e.validatorRules.code],expression:"[ 'code', validatorRules.code]"}],attrs:{placeholder:"请输入类型编码"}})],1),n("a-form-item",{attrs:{label:"图层地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["url",e.validatorRules.url],expression:"[ 'url', validatorRules.url]"}],attrs:{placeholder:"请输入图层地址"}})],1),n("a-form-item",{attrs:{label:"sql语句",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sqlText",e.validatorRules.sqlText],expression:"[ 'sqlText', validatorRules.sqlText]"}],attrs:{placeholder:"请输入sql语句"}})],1),n("a-form-item",{attrs:{label:"子类数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["classno",e.validatorRules.classno],expression:"[ 'classno', validatorRules.classno]"}],attrs:{placeholder:"请输入类型号"}})],1),n("a-form-item",{attrs:{label:"单位",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["unit",e.validatorRules.unit],expression:"[ 'unit', validatorRules.unit]"}],attrs:{placeholder:"请输入单位"}})],1),n("a-form-item",{attrs:{label:"类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",e.validatorRules.type],expression:"['type',validatorRules.type]"}],attrs:{placeholder:" 0一张图 1监测预警 2摄像头 3视频监控 4三维目录"}},[n("a-select-option",{attrs:{value:"0"}},[e._v("一张图")]),n("a-select-option",{attrs:{value:"1"}},[e._v("监测预警")]),n("a-select-option",{attrs:{value:"2"}},[e._v("摄像头")]),n("a-select-option",{attrs:{value:"3"}},[e._v("视频监控")]),n("a-select-option",{attrs:{value:"4"}},[e._v("三维目录")])],1)],1),n("a-form-item",{attrs:{label:"地理类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["geotype",e.validatorRules.geotype],expression:"['geotype',validatorRules.geotype]"}],attrs:{placeholder:"请选择地理类型"}},[n("a-select-option",{attrs:{value:"point"}},[e._v("点")]),n("a-select-option",{attrs:{value:"line"}},[e._v("线")]),n("a-select-option",{attrs:{value:"polygon"}},[e._v("面")])],1)],1),n("a-form-item",{attrs:{label:"显示的表格字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["showField",e.validatorRules.showField],expression:"[ 'showField', validatorRules.showField]"}],attrs:{placeholder:"请输入显示区域"}})],1),n("a-form-item",{attrs:{label:"显示的表格名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["showHeader",e.validatorRules.showHeader],expression:"[ 'showHeader', validatorRules.showHeader]"}],attrs:{placeholder:"请输入显示头"}})],1),n("a-form-item",{attrs:{label:"显示的图表字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["chartField",e.validatorRules.chartField],expression:"[ 'chartField', validatorRules.chartField]"}],attrs:{placeholder:"请输入图表区域"}})],1),n("a-form-item",{attrs:{label:"查询字段名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["chartName",e.validatorRules.chartName],expression:"[ 'chartName', validatorRules.chartName]"}],attrs:{placeholder:"请输入查询字段名称,多个用逗号隔开"}})],1),n("a-form-item",{attrs:{label:"查询字段值",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["chartValue",e.validatorRules.chartValue],expression:"[ 'chartValue', validatorRules.chartValue]"}],attrs:{placeholder:"请输入查询字段值,多个用逗号隔开,数量与名称对应"}})],1),n("a-form-item",{attrs:{label:"数据集名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datasetname",e.validatorRules.datasetname],expression:"[ 'datasetname', validatorRules.datasetname]"}],attrs:{placeholder:"请输入数据集名"}})],1),n("a-form-item",{attrs:{label:"是否显示四色图",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sign",e.validatorRules.sign],expression:"['sign',validatorRules.sign]"}],attrs:{placeholder:"请选择显示四色图"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("是")]),n("a-select-option",{attrs:{value:"0"}},[e._v("否")])],1)],1),n("a-form-item",{attrs:{label:"地图pop提示框字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mapPopField",e.validatorRules.mapPopField],expression:"[ 'mapPopField', validatorRules.mapPopField]"}],attrs:{placeholder:"请输入地图pop提示框字段"}})],1),n("a-form-item",{attrs:{label:"地图pop提示框名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mapPopName",e.validatorRules.mapPopName],expression:"[ 'mapPopName', validatorRules.mapPopName]"}],attrs:{placeholder:"请输入表名"}})],1),n("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNum",e.validatorRules.orderNum],expression:"[ 'orderNum', validatorRules.orderNum]"}],attrs:{placeholder:"请输入序号"}})],1),n("a-form-item",{attrs:{label:"表名",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tableName",e.validatorRules.tableName],expression:"[ 'tableName', validatorRules.tableName]"}],attrs:{placeholder:"请输入表名"}})],1),n("a-form-item",{attrs:{label:"icon地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["iconUrl",e.validatorRules.iconUrl],expression:"[ 'iconUrl', validatorRules.iconUrl]"}],attrs:{placeholder:"icon地址"}})],1),n("a-form-item",{attrs:{label:"高亮icon地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["highIcon",e.validatorRules.highIcon],expression:"[ 'highIcon', validatorRules.highIcon]"}],attrs:{placeholder:"高亮icon地址"}})],1),n("a-form-item",{attrs:{label:"是否是地图搜索父节点",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["isSearch",e.validatorRules.isSearch],expression:"['isSearch',validatorRules.isSearch]"}],attrs:{placeholder:"请选择地图搜索父节点"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("是")]),n("a-select-option",{attrs:{value:"0"}},[e._v("否")])],1)],1),n("a-form-item",{attrs:{label:"是否填报字段",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["isWrite",e.validatorRules.isWrite],expression:"['isWrite',validatorRules.isWrite]"}],attrs:{placeholder:""}},[n("a-select-option",{attrs:{value:"1"}},[e._v("是")]),n("a-select-option",{attrs:{value:"0"}},[e._v("否")])],1)],1),n("a-form-item",{attrs:{label:"是否周边分析显示",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["isAnalysis"],expression:"['isAnalysis']"}],attrs:{placeholder:"请选择是否周边分析显示"}},[n("a-select-option",{attrs:{value:"1"}},[e._v("是")]),n("a-select-option",{attrs:{value:"0"}},[e._v("否")])],1)],1),n("a-form-item",{attrs:{label:"过期时间(天)",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[n("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["expireTime",e.validatorRules.expireTime],expression:"[ 'expireTime', validatorRules.expireTime]"}],staticStyle:{width:"100%"},attrs:{placeholder:"过期时间(天)"}})],1)],1)],1)],1)},i=[],o=(n("6b54"),n("0fea")),a=n("88bc"),s=n.n(a),l=n("b098"),c=(n("8c8b"),{name:"SysCategoryModal",components:{JTreeSelect:l["default"]},data:function(){return{form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{pid:{},name:{},alias:{},code:{},path:{},url:{},classno:{},type:{},unit:{},geotype:{},showField:{},showHeader:{},chartField:{},datasetname:{},sign:{},mapPopField:{},mapPopName:{},sqlText:{},tableName:{},orderNum:{},iconUrl:{},highIcon:{},isAnalysis:{},expireTime:{}},url:{add:"/sys/category/add",edit:"/sys/category/edit",uploadAction:"/sys/common/upload"},expandedRowKeys:[],pidField:"pid",fileList:[]}},created:function(){},methods:{handleChange:function(e){if(console.log(e),this.fileList=e.fileList,"uploading"!==e.file.status&&"done"===e.file.status){var t=e.file.response;t.success||this.$message.warning(t.message)}},add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"pid","name","alias","code","path","url","sqlText","classno","unit","type","geotype","showField","showHeader","chartField","chartName","chartValue","datasetname","sign","mapPopField","mapPopName","orderNum","iconUrl","highIcon","tableName","isSearch","isWrite","isAnalysis","expireTime")),t.model.type=t.model.type.toString()}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="",s=Object.assign(e.model,r);!e.model.id||e.title.indexOf("复制")>=0?(i+=e.url.add,a="post",delete s.id):(i+=e.url.edit,a="put"),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.submitSuccess(s),t.close()):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1}))}}))},handleCancel:function(){this.fileList=[],this.close()},popupCallback:function(e){this.form.setFieldsValue(s()(e,"pid","name","code"))},submitSuccess:function(e){if(e.id)this.$emit("ok",e);else{var t=this.$refs.treeSelect.getCurrTreeData();this.expandedRowKeys=[],this.getExpandKeysByPid(e[this.pidField],t,t),this.$emit("ok",e,this.expandedRowKeys.reverse())}},getExpandKeysByPid:function(e,t,n){if(e&&t&&t.length>0)for(var r=0;r<t.length;r++)t[r].key==e?(this.expandedRowKeys.push(t[r].key),this.getExpandKeysByPid(t[r]["parentId"],n,n)):this.getExpandKeysByPid(e,t[r].children,n)}}}),u=c,d=n("2877"),f=Object(d["a"])(u,r,i,!1,null,null,null);t["default"]=f.exports},f1e3:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{staticStyle:{height:"calc(100% - 55px)",overflow:"auto","padding-bottom":"53px"},attrs:{title:e.title,maskClosable:!0,width:"650",placement:"right",closable:!0,visible:e.visible},on:{close:e.close}},[n("a-form",[n("a-form-item",{attrs:{label:"区县权限配置"}},[n("a-tree",{attrs:{checkable:"",checkedKeys:e.checkedKeys,treeData:e.treeData,expandedKeys:e.expandedKeysss,checkStrictly:e.checkStrictly},on:{check:e.onCheck,expand:e.onExpand},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.slotTitle;return n("span",{},[e._v("\n          "+e._s(r)+"\n        ")])}}])})],1)],1),n("div",{staticClass:"drawer-bootom-button"},[n("a-dropdown",{staticStyle:{float:"left"},attrs:{trigger:["click"],placement:"topCenter"}},[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),n("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")])],1),n("a-button",[e._v("\n        树操作 "),n("a-icon",{attrs:{type:"up"}})],1)],1),n("a-popconfirm",{attrs:{title:"确定放弃编辑?",okText:"确定",cancelText:"取消"},on:{confirm:e.close}},[n("a-button",{staticStyle:{"margin-right":".8rem"}},[e._v("取消")])],1),n("a-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},i=[],o=n("2909"),a=n("4ec3"),s={name:"CategoryDistrictModal",components:{},data:function(){return{roleId:"",treeData:[],defaultCheckedKeys:[],checkedKeys:[],expandedKeysss:[],allTreeKeys:[],autoExpandParent:!0,checkStrictly:!0,title:"区县权限配置",visible:!1,loading:!1}},methods:{onCheck:function(e){this.checkStrictly?this.checkedKeys=e.checked:this.checkedKeys=e},show:function(e){this.roleId=e,this.visible=!0},close:function(){this.reset(),this.$emit("close"),this.visible=!1},onExpand:function(e){this.expandedKeysss=e,this.autoExpandParent=!1},reset:function(){this.expandedKeysss=[],this.checkedKeys=[],this.defaultCheckedKeys=[],this.loading=!1},expandAll:function(){this.expandedKeysss=this.allTreeKeys},closeAll:function(){this.expandedKeysss=[]},checkALL:function(){this.checkedKeys=this.allTreeKeys,console.log(this.allTreeKeys)},cancelCheckALL:function(){this.checkedKeys=[]},switchCheckStrictly:function(e){1==e?this.checkStrictly=!1:2==e&&(this.checkStrictly=!0)},handleCancel:function(){this.close()},handleSubmit:function(){var e=this,t={roleId:e.roleId,permissionIds:e.checkedKeys.join(",")};e.loading=!0,console.log("请求参数:",t),Object(a["hb"])(t).then((function(t){t.success?(e.$message.success(t.message),e.loading=!1,e.close()):(e.$message.error(t.message),e.loading=!1,e.close())}))}},watch:{visible:function(){var e=this;this.visible&&Object(a["M"])().then((function(t){e.treeData=t.result.treeList,e.allTreeKeys=t.result.ids,Object(a["N"])({id:e.roleId}).then((function(t){e.checkedKeys=Object(o["a"])(t.result),e.defaultCheckedKeys=Object(o["a"])(t.result),e.expandedKeysss=e.allTreeKeys}))}))}}},l=s,c=(n("6e80"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"1b3b1f58",null);t["default"]=u.exports},f276:function(e,t,n){var r=n("1fe0"),i=n("9ba1"),o=n("e511"),a=n("16546").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},f2be:function(e,t,n){"use strict";n("71fc")},f2da:function(e,t,n){"use strict";var r=n("9c2cc"),i=n("7eeb");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},f2f0:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-header-index-wide page-header-wrapper-grid-content-main"},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:24,lg:7}},[n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"account-center-avatarHolder"},[n("div",{staticClass:"avatar"},[n("img",{attrs:{src:e.getAvatar()}})]),n("div",{staticClass:"username"},[e._v(e._s(e.nickname()))]),n("div",{staticClass:"bio"},[e._v("海纳百川,有容乃大")])]),n("div",{staticClass:"account-center-detail"},[n("p",[n("i",{staticClass:"title"}),e._v("交互专家\n          ")]),n("p",[n("i",{staticClass:"group"}),e._v("蚂蚁金服-某某某事业群-某某平台部-某某技术部-UED\n          ")]),n("p",[n("i",{staticClass:"address"}),n("span",[e._v("浙江省")]),n("span",[e._v("杭州市")])])]),n("a-divider"),n("div",{staticClass:"account-center-tags"},[n("div",{staticClass:"tagsTitle"},[e._v("标签")]),n("div",[e._l(e.tags,(function(t,r){return[t.length>20?n("a-tooltip",{key:t,attrs:{title:t}},[n("a-tag",{key:t,attrs:{closable:0!==r,afterClose:function(){return e.handleTagClose(t)}}},[e._v("\n                  "+e._s(t.slice(0,20)+"...")+"\n                ")])],1):n("a-tag",{key:t,attrs:{closable:0!==r,afterClose:function(){return e.handleTagClose(t)}}},[e._v(e._s(t))])]})),e.tagInputVisible?n("a-input",{ref:"tagInput",style:{width:"78px"},attrs:{type:"text",size:"small",value:e.tagInputValue},on:{change:e.handleInputChange,blur:e.handleTagInputConfirm,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleTagInputConfirm(t)}}}):n("a-tag",{staticStyle:{background:"#fff",borderStyle:"dashed"},on:{click:e.showTagInput}},[n("a-icon",{attrs:{type:"plus"}}),e._v(" New Tag\n            ")],1)],2)]),n("a-divider",{attrs:{dashed:!0}}),n("div",{staticClass:"account-center-team"},[n("div",{staticClass:"teamTitle"},[e._v("团队")]),n("a-spin",{attrs:{spinning:e.teamSpinning}},[n("div",{staticClass:"members"},[n("a-row",e._l(e.teams,(function(t,r){return n("a-col",{key:r,attrs:{span:12}},[n("a",[n("a-avatar",{attrs:{size:"small",src:t.avatar}}),n("span",{staticClass:"member"},[e._v(e._s(t.name))])],1)])})),1)],1)])],1)],1)],1),n("a-col",{attrs:{md:24,lg:17}},[n("a-card",{staticStyle:{width:"100%"},attrs:{bordered:!1,tabList:e.tabListNoTitle,activeTabKey:e.noTitleKey},on:{tabChange:function(t){return e.handleTabChange(t,"noTitleKey")}}},["article"===e.noTitleKey?n("article-page"):"app"===e.noTitleKey?n("app-page"):"project"===e.noTitleKey?n("project-page"):e._e()],1)],1)],1)],1)},i=[],o=n("2909"),a=n("be94"),s=n("b445"),l=n("501f"),c=n("cb3d"),u=n("2f62"),d={components:{RouteView:l["default"],PageLayout:s["default"],AppPage:c["AppPage"],ArticlePage:c["ArticlePage"],ProjectPage:c["ProjectPage"]},data:function(){return{tags:["很有想法的","专注设计","辣~","大长腿","川妹子","海纳百川"],tagInputVisible:!1,tagInputValue:"",teams:[],teamSpinning:!0,tabListNoTitle:[{key:"article",tab:"文章(8)"},{key:"app",tab:"应用(8)"},{key:"project",tab:"项目(8)"}],noTitleKey:"app"}},mounted:function(){this.getTeams()},methods:Object(a["a"])({},Object(u["c"])(["nickname","avatar"]),{getAvatar:function(){return window._CONFIG["imgDomainURL"]+"/"+this.avatar()},getTeams:function(){var e=this;this.$http.get("/api/workplace/teams").then((function(t){e.teams=t.result,e.teamSpinning=!1}))},handleTabChange:function(e,t){this[t]=e},handleTagClose:function(e){var t=this.tags.filter((function(t){return t!=e}));this.tags=t},showTagInput:function(){var e=this;this.tagInputVisible=!0,this.$nextTick((function(){e.$refs.tagInput.focus()}))},handleInputChange:function(e){this.tagInputValue=e.target.value},handleTagInputConfirm:function(){var e=this.tagInputValue,t=this.tags;e&&-1===t.indexOf(e)&&(t=[].concat(Object(o["a"])(t),[e])),Object.assign(this,{tags:t,tagInputVisible:!1,tagInputValue:""})}})},f=d,h=(n("5968"),n("2877")),p=Object(h["a"])(f,r,i,!1,null,"7f521c8c",null);t["default"]=p.exports},f311:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-steps",{staticClass:"steps",attrs:{current:e.currentTab}},[n("a-step",{attrs:{title:"填写转账信息"}}),n("a-step",{attrs:{title:"确认转账信息"}}),n("a-step",{attrs:{title:"完成"}})],1),n("div",{staticClass:"content"},[0===e.currentTab?n("step1",{on:{nextStep:e.nextStep}}):e._e(),1===e.currentTab?n("step2",{on:{nextStep:e.nextStep,prevStep:e.prevStep}}):e._e(),2===e.currentTab?n("step3",{on:{prevStep:e.prevStep,finish:e.finish}}):e._e()],1)],1)},i=[],o=n("82ef"),a=n("f4a3"),s=n("a462"),l={name:"StepForm",components:{Step1:o["default"],Step2:a["default"],Step3:s["default"]},data:function(){return{description:"将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。",currentTab:0,form:null}},methods:{nextStep:function(){this.currentTab<2&&(this.currentTab+=1)},prevStep:function(){this.currentTab>0&&(this.currentTab-=1)},finish:function(){this.currentTab=0}}},c=l,u=(n("2d96"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"cb3a4db8",null);t["default"]=d.exports},f317:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},f32b:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("result",{attrs:{"is-success":!1,title:e.title,description:e.description}},[n("template",{slot:"action"},[n("a-button",{attrs:{type:"primary"}},[e._v("返回修改")])],1),n("div",[n("div",{staticStyle:{"font-size":"16px",color:"rgba(0, 0, 0, 0.85)","font-weight":"500","margin-bottom":"16px"}},[e._v("\n        您提交的内容有如下错误:\n      ")]),n("div",{staticStyle:{"margin-bottom":"16px"}},[n("a-icon",{staticStyle:{color:"#f5222d","margin-right":"8px"},attrs:{type:"close-circle-o"}}),e._v("\n        您的账户已被冻结\n        "),n("a",{staticStyle:{"margin-left":"16px"}},[e._v("立即解冻 "),n("a-icon",{attrs:{type:"right"}})],1)],1),n("div",[n("a-icon",{staticStyle:{color:"#f5222d","margin-right":"8px"},attrs:{type:"close-circle-o"}}),e._v("\n        您的账户还不具备申请资格\n        "),n("a",{staticStyle:{"margin-left":"16px"}},[e._v("立即升级 "),n("a-icon",{attrs:{type:"right"}})],1)],1)])],2)],1)},i=[],o=n("9a3d"),a={name:"Error",components:{Result:o["default"]},data:function(){return{title:"提交失败",description:"请核对并修改以下信息后,再重新提交。"}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"3b816936",null);t["default"]=c.exports},f36a:function(e,t,n){},f388:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"菜单名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",e.validatorRules.name],expression:"['name', validatorRules.name ]"}],attrs:{placeholder:"请输入菜单名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"是否iframe"}},[n("j-dict-select-tag",{directives:[{name:"decorator",rawName:"v-decorator",value:["isIframe",e.validatorRules.isIframe],expression:"['isIframe', validatorRules.isIframe ]"}],attrs:{type:"list","trigger-change":!0,dictCode:"yes_no"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"菜单url"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["url",e.validatorRules.url],expression:"['url', validatorRules.url]"}],attrs:{placeholder:"请输入菜单url"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入温州市排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNum"],expression:"['orderNum']"}],attrs:{placeholder:"请输入温州市排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入瓯海区排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumOh"],expression:"['orderNumOh']"}],attrs:{placeholder:"请输入瓯海区排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入鹿城区排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumLc"],expression:"['orderNumLc']"}],attrs:{placeholder:"请输入鹿城区排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入洞头区排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumDt"],expression:"['orderNumDt']"}],attrs:{placeholder:"请输入洞头区排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入乐清市排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumLq"],expression:"['orderNumLq']"}],attrs:{placeholder:"请输入乐清市排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入瑞安市排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumRa"],expression:"['orderNumRa']"}],attrs:{placeholder:"请输入瑞安市排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入龙港市排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumLg"],expression:"['orderNumLg']"}],attrs:{placeholder:"请输入龙港区排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入永嘉市排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumYj"],expression:"['orderNumYj']"}],attrs:{placeholder:"请输入永嘉市排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入文成县排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumWc"],expression:"['orderNumWc']"}],attrs:{placeholder:"请输入文成县排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入平阳县排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumPy"],expression:"['orderNumPy']"}],attrs:{placeholder:"请输入平阳县排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入泰顺县排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumTs"],expression:"['orderNumTs']"}],attrs:{placeholder:"请输入泰顺县排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入苍南县排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumCn"],expression:"['orderNumCn']"}],attrs:{placeholder:"请输入苍南县排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入龙弯区排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumLw"],expression:"['orderNumLw']"}],attrs:{placeholder:"请输入龙港市排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入经开区排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumJk"],expression:"['orderNumJk']"}],attrs:{placeholder:"请输入经开区排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"请输入瓯江口排序"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNumOj"],expression:"['orderNumOj']"}],attrs:{placeholder:"请输入瓯江口排序"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark"],expression:"['remark']"}],attrs:{placeholder:"请输入备注"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"MainMenuModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{name:{rules:[{required:!0,message:"请输入菜单名称!"}]},district:{rules:[{message:"请输入区域!"}]},districtCode:{rules:[{message:"请输入区域code!"}]},url:{rules:[{message:"请输入菜单url!"}]},orderNum:{rules:[{required:!0,message:"请输入排序!"}]},remark:{rules:[{required:!1,message:"请输入备注!"}]}},url:{add:"/main_menu/mainMenu/add",edit:"/main_menu/mainMenu/edit"},parent_id:""}},created:function(){},methods:{show:function(e){this.parent_id=e,this.edit({})},add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),"undefined"!=typeof e&&"undefined"!=typeof e.parentId&&(this.parent_id=e.parentId),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"name","district","districtCode","url","orderNum","remark","orderNumLc","orderNumOh","orderNumDt","orderNumLq","orderNumRa","orderNumLg","orderNumYj","orderNumWc","orderNumPy","orderNumTs","orderNumCn","orderNumLw","orderNumJk","orderNumOj","isIframe"))}))},close:function(){this.$emit("close"),this.visible=!1,this.parent_id=""},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);null!=e.parent_id&&""!=e.parent_id&&(s.parentId=e.parent_id),console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"6c34bac0",null);t["default"]=d.exports},f400:function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Map";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},f403:function(e,t,n){"use strict";var r=n("f623"),i=n("9abc"),o=n("0af5"),a=n("abb7"),s=n("7fc9"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(t,n){var r=e.call(this)||this;return r.setCoordinates(t,n),r}return l(t,e),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,t,n,r){var i=this.flatCoordinates,o=Object(s["g"])(e,t,i[0],i[1]);if(o<r){for(var a=this.stride,l=0;l<a;++l)n[l]=i[l];return n.length=a,o}return r},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return Object(o["m"])(this.flatCoordinates,e)},t.prototype.getType=function(){return r["a"].POINT},t.prototype.intersectsExtent=function(e){return Object(o["h"])(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["a"])(this.flatCoordinates,0,e,this.stride),this.changed()},t}(i["a"]);t["a"]=c},f418:function(e,t,n){"use strict";var r=n("4587"),i=n("16546"),o=n("d75c"),a=n("fbee"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},f41b:function(e,t,n){"use strict";n("fe54a")},f44f:function(e,t,n){},f4a3:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-form",{staticStyle:{"max-width":"500px",margin:"40px auto 0"}},[n("a-alert",{staticStyle:{"margin-bottom":"24px"},attrs:{closable:!0,message:"确认转账后,资金将直接打入对方账户,无法退回。"}}),n("a-form-item",{staticClass:"stepFormText",attrs:{label:"付款账户",labelCol:{span:5},wrapperCol:{span:19}}},[e._v("\n      ant-design@alipay.com\n    ")]),n("a-form-item",{staticClass:"stepFormText",attrs:{label:"收款账户",labelCol:{span:5},wrapperCol:{span:19}}},[e._v("\n      test@example.com\n    ")]),n("a-form-item",{staticClass:"stepFormText",attrs:{label:"收款人姓名",labelCol:{span:5},wrapperCol:{span:19}}},[e._v("\n      Alex\n    ")]),n("a-form-item",{staticClass:"stepFormText",attrs:{label:"转账金额",labelCol:{span:5},wrapperCol:{span:19}}},[e._v("\n      ¥ 5,000.00\n    ")]),n("a-form-item",{attrs:{wrapperCol:{span:19,offset:5}}},[n("a-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.nextStep}},[e._v("提交")]),n("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.prevStep}},[e._v("上一步")])],1)],1)],1)},i=[],o={name:"Step2",data:function(){return{loading:!1}},methods:{nextStep:function(){var e=this;e.loading=!0,setTimeout((function(){e.$emit("nextStep")}),1500)},prevStep:function(){this.$emit("prevStep")}}},a=o,s=(n("14db"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"58be0970",null);t["default"]=l.exports},f4b0:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-drawer",{attrs:{title:e.title,width:800,placement:"right",closable:!1,visible:e.visible},on:{close:e.close}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"smid"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smid",e.validatorRules.smid],expression:"['smid', validatorRules.smid ]"}],attrs:{placeholder:"请输入smid"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"smuserid"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smuserid",e.validatorRules.smuserid],expression:"['smuserid', validatorRules.smuserid ]"}],attrs:{placeholder:"请输入smuserid"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"smgeometry"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["smgeometry",{}],expression:"['smgeometry', {}]"}],attrs:{placeholder:"请输入smgeometry"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"videoUrl"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["videoUrl",{}],expression:"['videoUrl', {}]"}],attrs:{placeholder:"请输入videoUrl"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"longitude"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["longitude",{}],expression:"['longitude', {}]"}],attrs:{placeholder:"请输入longitude"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"latitude"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["latitude",{}],expression:"['latitude', {}]"}],attrs:{placeholder:"请输入latitude"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"districtCode"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["districtCode",{}],expression:"['districtCode', {}]"}],attrs:{placeholder:"请输入districtCode"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"district"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["district",{}],expression:"['district', {}]"}],attrs:{placeholder:"请输入district"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"streetCode"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["streetCode",{}],expression:"['streetCode', {}]"}],attrs:{placeholder:"请输入streetCode"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"name"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入name"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"tablename"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tablename",{}],expression:"['tablename', {}]"}],attrs:{placeholder:"请输入tablename"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"datatype"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datatype",{}],expression:"['datatype', {}]"}],attrs:{placeholder:"请输入datatype"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"guid"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["guid",{}],expression:"['guid', {}]"}],attrs:{placeholder:"请输入guid"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"parentsName"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["parentsName",{}],expression:"['parentsName', {}]"}],attrs:{placeholder:"请输入parentsName"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"flag"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["flag",{}],expression:"['flag', {}]"}],attrs:{placeholder:"请输入flag"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"code"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["code",{}],expression:"['code', {}]"}],attrs:{placeholder:"请输入code"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"datafrom"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datafrom",{}],expression:"['datafrom', {}]"}],attrs:{placeholder:"请输入datafrom"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"street"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street",{}],expression:"['street', {}]"}],attrs:{placeholder:"请输入street"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"shared"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["shared",{}],expression:"['shared', {}]"}],attrs:{placeholder:"请输入shared"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"lable"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["lable",{}],expression:"['lable', {}]"}],attrs:{placeholder:"请输入lable"}})],1)],1)],1),n("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("确定")]),n("a-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v("取消")])],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"WlgzVideoModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{smid:{rules:[{required:!0,message:"请输入smid!"}]},smuserid:{rules:[{required:!0,message:"请输入smuserid!"}]}},url:{add:"/wlgz_video/wlgzVideo/add",edit:"/wlgz_video/wlgzVideo/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"smid","smuserid","smgeometry","videoUrl","longitude","latitude","districtCode","district","streetCode","name","tablename","datatype","guid","parentsName","flag","code","datafrom","street","shared","lable"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=(n("387c"),n("2877")),d=Object(u["a"])(c,r,i,!1,null,"df77404e",null);t["default"]=d.exports},f4bf:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",{attrs:{form:e.form}},[n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"视频监测地点名称"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{}],expression:"['name', {}]"}],attrs:{placeholder:"请输入视频监测地点名称"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"视频地址"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["videoUrl",{}],expression:"['videoUrl', {}]"}],attrs:{placeholder:"请输入视频地址"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"关联字段guid"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["guid",{}],expression:"['guid', {}]"}],attrs:{placeholder:"请输入关联字段guid"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"关联的表"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engname",{}],expression:"['engname', {}]"}],attrs:{placeholder:"请输入关联的表"}})],1),n("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"视频类型"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["datatype",{}],expression:"['datatype', {}]"}],attrs:{placeholder:"请输入视频类型"}})],1)],1)],1)],1)},i=[],o=n("0fea"),a=n("88bc"),s=n.n(a),l=(n("c1df"),{name:"CompanyVideoModal",data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/video/companyVideo/add",edit:"/video/companyVideo/edit"}}},created:function(){},methods:{add:function(){this.edit({})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"videoUrl","name","guid","engname","datatype"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,r){if(!n){t.confirmLoading=!0;var i="",a="";e.model.id?(i+=e.url.edit,a="put"):(i+=e.url.add,a="post");var s=Object.assign(e.model,r);console.log(s),Object(o["i"])(i,s,a).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()}}}),c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,"2324a73f",null);t["default"]=d.exports},f534:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{title:"高级查询构造器",width:800,visible:e.visible,confirmLoading:e.confirmLoading,mask:!1,okText:"查询",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-spin",{attrs:{spinning:e.confirmLoading}},[n("a-form",[n("div",e._l(e.queryParamsModel,(function(t,r){return n("a-row",{key:r,staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",gutter:16}},[n("a-col",{attrs:{span:6}},[n("a-select",{attrs:{placeholder:"选择查询字段"},model:{value:t.field,callback:function(n){e.$set(t,"field",n)},expression:"item.field"}},[n("a-select-option",{attrs:{value:"name"}},[e._v("用户名")]),n("a-select-option",{attrs:{value:"key_word"}},[e._v("关键词")]),n("a-select-option",{attrs:{value:"birthday"}},[e._v("生日")]),n("a-select-option",{attrs:{value:"age"}},[e._v("年龄")])],1)],1),n("a-col",{attrs:{span:6}},[n("a-select",{attrs:{placeholder:"选择匹配规则"},model:{value:t.rule,callback:function(n){e.$set(t,"rule",n)},expression:"item.rule"}},[n("a-select-option",{attrs:{value:"="}},[e._v("等于")]),n("a-select-option",{attrs:{value:"!="}},[e._v("不等于")]),n("a-select-option",{attrs:{value:">"}},[e._v("大于")]),n("a-select-option",{attrs:{value:">="}},[e._v("大于等于")]),n("a-select-option",{attrs:{value:"<"}},[e._v("小于")]),n("a-select-option",{attrs:{value:"<="}},[e._v("小于等于")]),n("a-select-option",{attrs:{value:"LEFT_LIKE"}},[e._v("以..开始")]),n("a-select-option",{attrs:{value:"RIGHT_LIKE"}},[e._v("以..结尾")]),n("a-select-option",{attrs:{value:"LIKE"}},[e._v("包含")]),n("a-select-option",{attrs:{value:"IN"}},[e._v("在...中")])],1)],1),n("a-col",{attrs:{span:6}},[n("a-input",{attrs:{placeholder:"请输入值"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}})],1),n("a-col",{attrs:{span:6}},[n("a-button",{attrs:{icon:"plus"},on:{click:e.handleAdd}}),e._v(" \n            "),n("a-button",{attrs:{icon:"minus"},on:{click:function(t){return e.handleDel(r)}}})],1)],1)})),1)])],1)],1)},i=[],o=(n("0fea"),{name:"SuperQueryModal",data:function(){return{visible:!1,queryParamsModel:[{},{}],confirmLoading:!1}},created:function(){},methods:{show:function(){this.visible=!0},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){console.log(this.queryParamsModel),this.$emit("handleSuperQuery",this.queryParamsModel)},handleCancel:function(){this.close()},handleAdd:function(){this.queryParamsModel.push({})},handleDel:function(e){console.log(e),this.queryParamsModel.splice(e,1)}}}),a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,"7800fec9",null);t["default"]=l.exports},f552:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:{padding:"0"}},[n("h4",{style:{marginBottom:"20px"}},[e._v(e._s(e.title))]),n("v-chart",{ref:"chart",attrs:{forceFit:!0,height:e.height,data:e.dataSource,scale:e.scale}},[n("v-tooltip",{attrs:{shared:!1}}),n("v-axis"),n("v-line",{attrs:{position:"x*y",size:e.lineSize,color:e.lineColor}}),n("v-area",{attrs:{position:"x*y",color:e.color}})],1)],1)},i=[],o=(n("c5f6"),n("ca00")),a={name:"AreaChartTy",props:{dataSource:{type:Array,required:!0},title:{type:String,default:""},x:{type:String,default:"x"},y:{type:String,default:"y"},min:{type:Number,default:0},max:{type:Number,default:null},height:{type:Number,default:254},lineSize:{type:Number,default:2},color:{type:String,default:""},lineColor:{type:String,default:""}},computed:{scale:function(){return[{dataKey:"x",title:this.x,alias:this.x},{dataKey:"y",title:this.y,alias:this.y,min:this.min,max:this.max}]}},mounted:function(){Object(o["h"])()}},s=a,l=(n("89f5"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"190e60a4",null);t["default"]=c.exports},f557:function(e,t,n){n("5e4c")},f5eb:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("a-card",{attrs:{bordered:!1}},[r("div",{staticClass:"table-page-search-wrapper"},[r("a-form",{attrs:{layout:"inline"}},[r("a-row",{attrs:{gutter:48}},[r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"规则编号"}},[r("a-input",{attrs:{placeholder:""},model:{value:t.queryParam.id,callback:function(e){t.$set(t.queryParam,"id",e)},expression:"queryParam.id"}})],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"使用状态"}},[r("a-select",{attrs:{placeholder:"请选择","default-value":"0"},model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},[r("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),r("a-select-option",{attrs:{value:"1"}},[t._v("关闭")]),r("a-select-option",{attrs:{value:"2"}},[t._v("运行中")])],1)],1)],1),t.advanced?[r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"调用次数"}},[r("a-input-number",{staticStyle:{width:"100%"},model:{value:t.queryParam.callNo,callback:function(e){t.$set(t.queryParam,"callNo",e)},expression:"queryParam.callNo"}})],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"更新日期"}},[r("a-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入更新日期"},model:{value:t.queryParam.date,callback:function(e){t.$set(t.queryParam,"date",e)},expression:"queryParam.date"}})],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"使用状态"}},[r("a-select",{attrs:{placeholder:"请选择","default-value":"0"},model:{value:t.queryParam.useStatus,callback:function(e){t.$set(t.queryParam,"useStatus",e)},expression:"queryParam.useStatus"}},[r("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),r("a-select-option",{attrs:{value:"1"}},[t._v("关闭")]),r("a-select-option",{attrs:{value:"2"}},[t._v("运行中")])],1)],1)],1),r("a-col",{attrs:{md:8,sm:24}},[r("a-form-item",{attrs:{label:"使用状态"}},[r("a-select",{attrs:{placeholder:"请选择","default-value":"0"}},[r("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),r("a-select-option",{attrs:{value:"1"}},[t._v("关闭")]),r("a-select-option",{attrs:{value:"2"}},[t._v("运行中")])],1)],1)],1)]:t._e(),r("a-col",{attrs:{md:t.advanced?24:8,sm:24}},[r("span",{staticClass:"table-page-search-submitButtons",style:t.advanced&&{float:"right",overflow:"hidden"}||{}},[r("a-button",{attrs:{type:"primary"}},[t._v("查询")]),r("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetSearchForm}},[t._v("重置")]),r("a",{staticStyle:{"margin-left":"8px"},on:{click:t.toggleAdvanced}},[t._v("\n              "+t._s(t.advanced?"收起":"展开")+"\n              "),r("a-icon",{attrs:{type:t.advanced?"up":"down"}})],1)],1)])],2)],1)],1),r("div",{staticClass:"table-operator"},[r("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(){return e.handleModalVisible(!0)}}},[t._v("新建")]),t.selectedRowKeys.length>0?r("a-dropdown",[r("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[r("a-menu-item",{key:"1"},[r("a-icon",{attrs:{type:"delete"}}),t._v("删除")],1),r("a-menu-item",{key:"2"},[r("a-icon",{attrs:{type:"lock"}}),t._v("锁定")],1)],1),r("a-button",{staticStyle:{"margin-left":"8px"}},[t._v("\n        批量操作 "),r("a-icon",{attrs:{type:"down"}})],1)],1):t._e()],1),r("s-table",{ref:"table",attrs:{size:"default",columns:t.columns,data:t.loadData,showAlertInfo:!0},on:{onSelect:t.onChange},scopedSlots:t._u([{key:"action",fn:function(e,n){return r("span",{},[r("a",{on:{click:function(e){return t.handleEdit(n)}}},[t._v("编辑")]),r("a-divider",{attrs:{type:"vertical"}}),r("a-dropdown",[r("a",{staticClass:"ant-dropdown-link"},[t._v("\n          更多 "),r("a-icon",{attrs:{type:"down"}})],1),r("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("详情")])]),r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("禁用")])]),r("a-menu-item",[r("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)],1)],1)}}])}),r("a-modal",{attrs:{title:"操作",width:800},on:{ok:t.handleOk},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[r("a-form",{attrs:{autoFormCreate:function(t){e.form=t}}},[r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"规则编号",hasFeedback:"",validateStatus:"success"}},[r("a-input",{attrs:{placeholder:"规则编号",id:"no"},model:{value:t.mdl.no,callback:function(e){t.$set(t.mdl,"no",e)},expression:"mdl.no"}})],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"服务调用次数",hasFeedback:"",validateStatus:"success"}},[r("a-input-number",{staticStyle:{width:"100%"},attrs:{min:1,id:"callNo"},model:{value:t.mdl.callNo,callback:function(e){t.$set(t.mdl,"callNo",e)},expression:"mdl.callNo"}})],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"状态",hasFeedback:"",validateStatus:"warning"}},[r("a-select",{attrs:{defaultValue:"1"},model:{value:t.mdl.status,callback:function(e){t.$set(t.mdl,"status",e)},expression:"mdl.status"}},[r("a-select-option",{attrs:{value:"1"}},[t._v("Option 1")]),r("a-select-option",{attrs:{value:"2"}},[t._v("Option 2")]),r("a-select-option",{attrs:{value:"3"}},[t._v("Option 3")])],1)],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"描述",hasFeedback:"",help:"请填写一段描述"}},[r("a-textarea",{attrs:{rows:5,placeholder:"...",id:"description"},model:{value:t.mdl.description,callback:function(e){t.$set(t.mdl,"description",e)},expression:"mdl.description"}})],1),r("a-form-item",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol,label:"更新时间",hasFeedback:"",validateStatus:"error"}},[r("a-date-picker",{staticStyle:{width:"100%"},attrs:{showTime:"",format:"YYYY-MM-DD HH:mm:ss",placeholder:"Select Time"}})],1)],1)],1),r("a-modal",{attrs:{title:"新建规则",destroyOnClose:"",visible:t.visibleCreateModal},on:{ok:t.handleCreateModalOk,cancel:t.handleCreateModalCancel}},[r("a-form",{staticStyle:{"margin-top":"8px"},attrs:{autoFormCreate:function(t){e.createForm=t}}},[r("a-form-item",{attrs:{labelCol:{span:5},wrapperCol:{span:15},label:"描述",fieldDecoratorId:"description",fieldDecoratorOptions:{rules:[{required:!0,message:"请输入至少五个字符的规则描述!",min:5}]}}},[r("a-input",{attrs:{placeholder:"请输入"}})],1)],1)],1)],1)},i=[],o=n("e8c4"),a=n("261e"),s=n("27e3"),l=n("c1df"),c=n.n(l),u=n("bc3a"),d=n.n(u),f=n("0fea"),h={name:"TableList",components:{AInput:s["a"],ATextarea:a["a"],STable:o["a"]},data:function(){var e=this;return{visibleCreateModal:!1,visible:!1,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:12}},form:null,mdl:{},advanced:!0,queryParam:{},columns:[{title:"规则编号",dataIndex:"no"},{title:"描述",dataIndex:"description"},{title:"服务调用次数",dataIndex:"callNo",sorter:!0,needTotal:!0,customRender:function(e){return e+" 次"}},{title:"状态",dataIndex:"status",needTotal:!0},{title:"更新时间",dataIndex:"updatedAt",sorter:!0},{table:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],loadData:function(t){return Object(f["h"])(Object.assign(t,e.queryParam)).then((function(e){return e.result}))},selectedRowKeys:[],selectedRows:[]}},created:function(){Object(f["g"])({t:new Date})},methods:{handleEdit:function(e){this.mdl=Object.assign({},e),console.log(this.mdl),this.visible=!0},handleOk:function(){},handleModalVisible:function(e){this.visibleCreateModal=e},handleCreateModalOk:function(){var e=this;this.createForm.validateFields((function(t,n){if(!t){var r=e.createForm.getFieldValue("description");d.a.post("/saveRule",{desc:r}).then((function(t){e.createForm.resetFields(),e.visibleCreateModal=!1,e.loadRuleData()}))}}))},handleCreateModalCancel:function(){this.visibleCreateModal=!1},onChange:function(e){this.selectedRowKeys=e.selectedRowKeys,this.selectedRows=e.selectedRows,console.log(this.$refs.table)},toggleAdvanced:function(){this.advanced=!this.advanced},resetSearchForm:function(){this.queryParam={date:c()(new Date)}}},watch:{}},p=h,m=n("2877"),g=Object(m["a"])(p,r,i,!1,null,null,null);t["default"]=g.exports},f5ee:function(e,t,n){var r=n("791c"),i=n("d75c"),o=n("68d2"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},f607:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-input-search",{attrs:{placeholder:"请先选择值班人员",readonly:""},on:{search:e.onSearchDutyRecord},model:{value:e.selectedDepUsers,callback:function(t){e.selectedDepUsers=t},expression:"selectedDepUsers"}},[n("a-button",{attrs:{slot:"enterButton",disabled:e.disabled},slot:"enterButton"},[e._v("选择用户")])],1),n("j-select-duty-single-model",{ref:"selectModal",attrs:{"modal-width":e.modalWidth},on:{ok:e.onSearchDutyRecordCallBack}})],1)},i=[],o=(n("c5f6"),n("af5c")),a={name:"JSelectDutySingle",components:{JSelectDutySingleModel:o["default"]},props:{modalWidth:{type:Number,default:1e3,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{selectedDepUsers:""}},mounted:function(){this.selectedDepUsers=this.value},watch:{value:function(e){this.selectedDepUsers=e}},model:{prop:"value",event:"change"},methods:{onSearchDutyRecord:function(){this.$refs.selectModal.showModal(),this.onSearchDutyRecordCallBack("")},onSearchDutyRecordCallBack:function(e){this.selectedDepUsers=e,this.$emit("change",e)}}},s=a,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"5806a786",null);t["default"]=c.exports},f623:function(e,t,n){"use strict";t["a"]={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},f635:function(e,t,n){"use strict";n("df64")},f680:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"checkbox"==e.tagType?n("a-checkbox-group",{attrs:{value:e.arrayValue,disabled:e.disabled},on:{change:e.onChange}},e._l(e.dictOptions,(function(t,r){return n("a-checkbox",{key:r,attrs:{value:t.value}},[e._v(e._s(t.text||t.label))])})),1):"select"==e.tagType?n("a-select",{attrs:{value:e.arrayValue,disabled:e.disabled,mode:"multiple",placeholder:e.placeholder},on:{change:e.onChange}},e._l(e.dictOptions,(function(t,r){return n("a-select-option",{key:r,attrs:{value:t.value}},[n("span",{staticStyle:{display:"inline-block",width:"100%"},attrs:{title:t.text||t.label}},[e._v("\n      "+e._s(t.text||t.label)+"\n    ")])])})),1):e._e()},i=[],o=n("2909"),a=(n("28a5"),n("4ec3")),s={name:"JMultiSelectTag",props:{dictCode:String,placeholder:String,disabled:Boolean,value:String,type:String,options:Array},data:function(){return{dictOptions:[],tagType:"",arrayValue:this.value?this.value.split(","):[]}},created:function(){this.type&&"list_multi"!==this.type?this.tagType=this.type:this.tagType="select",this.initDictData()},watch:{options:function(e){this.setCurrentDictOptions(e)},value:function(e){this.arrayValue=e?this.value.split(","):[]}},methods:{initDictData:function(){var e=this;this.options&&this.options.length>0?this.dictOptions=Object(o["a"])(this.options):Object(a["f"])(this.dictCode,null).then((function(t){t.success&&(e.dictOptions=t.result)}))},onChange:function(e){this.$emit("change",e.join(","))},setCurrentDictOptions:function(e){this.dictOptions=e},getCurrentDictOptions:function(){return this.dictOptions}},model:{prop:"value",event:"change"}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},f6b6:function(e,t,n){},f6e4:function(e,t,n){},f6f8:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"记录id"}},[n("a-input",{attrs:{placeholder:"请输入记录id"},model:{value:e.queryParam.recId,callback:function(t){e.$set(e.queryParam,"recId",t)},expression:"queryParam.recId"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警业务ID"}},[n("a-input",{attrs:{placeholder:"请输入告警业务ID"},model:{value:e.queryParam.alarmBizId,callback:function(t){e.$set(e.queryParam,"alarmBizId",t)},expression:"queryParam.alarmBizId"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警业务名称"}},[n("a-input",{attrs:{placeholder:"请输入告警业务名称"},model:{value:e.queryParam.alarmBizName,callback:function(t){e.$set(e.queryParam,"alarmBizName",t)},expression:"queryParam.alarmBizName"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警触发值"}},[n("a-input",{attrs:{placeholder:"请输入告警触发值"},model:{value:e.queryParam.value,callback:function(t){e.$set(e.queryParam,"value",t)},expression:"queryParam.value"}})],1)],1),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("a-form-item",{attrs:{label:"告警等级"}},[n("a-input",{attrs:{placeholder:"请输入告警等级"},model:{value:e.queryParam.grade,callback:function(t){e.$set(e.queryParam,"grade",t)},expression:"queryParam.grade"}})],1)],1)]:e._e(),n("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")]),n("a",{staticStyle:{"margin-left":"8px"},on:{click:e.handleToggleSearch}},[e._v("\n              "+e._s(e.toggleSearchStatus?"收起":"展开")+"\n              "),n("a-icon",{attrs:{type:e.toggleSearchStatus?"up":"down"}})],1)],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("烟感警报历史记录")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),n("smokeAlarmDeviceHis-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("4f7d"),a=n("b65a"),s={name:"SmokeAlarmDeviceHisList",mixins:[a["a"]],components:{SmokeAlarmDeviceHisModal:o["default"]},data:function(){return{description:"烟感警报历史记录管理页面",columns:[{title:"序号",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"告警业务名称",align:"center",dataIndex:"alarmBizName"},{title:"告警触发值",align:"center",dataIndex:"value"},{title:"告警等级",align:"center",dataIndex:"grade"},{title:"设备名称",align:"center",dataIndex:"deviceName"},{title:"最高告警等级",align:"center",dataIndex:"alarmState"},{title:"第一联系人",align:"center",dataIndex:"property"},{title:"设备地址",align:"center",dataIndex:"addr"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/emergency.base.support.biz.smoke/smokeAlarmDeviceHis/list",delete:"/emergency.base.support.biz.smoke/smokeAlarmDeviceHis/delete",deleteBatch:"/emergency.base.support.biz.smoke/smokeAlarmDeviceHis/deleteBatch",exportXlsUrl:"emergency.base.support.biz.smoke/smokeAlarmDeviceHis/exportXls",importExcelUrl:"emergency.base.support.biz.smoke/smokeAlarmDeviceHis/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,"eda1522c",null);t["default"]=u.exports},f705:function(e,t,n){},f877:function(e,t,n){"use strict";n("8db6")},f8bf:function(e,t,n){},f8e7:function(e,t,n){"use strict";n("578f")},f914:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c5f6"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__),D_psh_workspace_manage_safe_prduce_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("2909"),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("ac4d"),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("8a81"),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("6762"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_6__),_api_manage__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("0fea"),_components_dict_JDictSelectUtil__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("89f2"),_utils_util__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("ca00"),_components_jeecg_JImportModal__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("7c93");__webpack_exports__["a"]={name:"OnlCgFormAutoList",components:{JImportModal:_components_jeecg_JImportModal__WEBPACK_IMPORTED_MODULE_10__["default"]},data:function(){return{code:"",description:"在线报表功能测试页面",currentTableName:"",url:{getQueryInfo:"/online/cgform/api/getQueryInfo/",getColumns:"/online/cgform/api/getColumns/",getData:"/online/cgform/api/getData/",optPre:"/online/cgform/api/form/",exportXls:"/online/cgform/api/exportXls/",buttonAction:"/online/cgform/api/doButton"},flowCodePre:"onl_",isorter:{column:"createTime",order:"desc"},dictOptions:{},cgButtonLinkList:[],cgButtonList:[],queryInfo:[],queryParam:{},toggleSearchStatus:!1,table:{loading:!0,columns:[],dataSource:[],selectedRowKeys:[],selectionRows:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0}},actionColumn:{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},fixed:"right",align:"center",width:150},formTemplate:"99",EnhanceJS:"",hideColumns:[],buttonSwitch:{add:!0,update:!0,delete:!0,batch_delete:!0,import:!0,export:!0},hasBpmStatus:!1}},created:function(){this.initAutoList()},mounted:function(){this.cgButtonJsHandler("mounted")},watch:{$route:function(){this.initAutoList()}},methods:{hasBpmStatusFilter:function(){var e=this.table.columns,t=[],n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.push(s.dataIndex)}}catch(l){r=!0,i=l}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}t.includes("bpm_status")||t.includes("BPM_STATUS")?this.hasBpmStatus=!0:this.hasBpmStatus=!1},initQueryInfo:function(){var e=this;Object(_api_manage__WEBPACK_IMPORTED_MODULE_7__["d"])("".concat(this.url.getQueryInfo).concat(this.code)).then((function(t){console.log("--onlineList-获取查询条件配置",t),t.success?e.queryInfo=t.result:e.$message.warning(t.message)}))},initAutoList:function(){var e=this;if(!this.$route.params.code)return!1;this.table.loading=!0,this.code=this.$route.params.code,Object(_api_manage__WEBPACK_IMPORTED_MODULE_7__["d"])("".concat(this.url.getColumns).concat(this.code)).then((function(t){if(console.log("--onlineList-加载动态列>>",t),t.success){e.dictOptions=t.result.dictOptions,e.formTemplate=t.result.formTemplate,e.description=t.result.description,e.currentTableName=t.result.currentTableName,e.initCgButtonList(t.result.cgButtonList),e.initCgEnhanceJs(t.result.enhanceJs),e.initButtonSwitch(t.result.hideColumns);for(var n=t.result.columns,r=0;r<n.length;r++)n[r].customRender&&function(){var t=n[r].customRender;n[r].customRender=function(n){return Object(_components_dict_JDictSelectUtil__WEBPACK_IMPORTED_MODULE_8__["b"])(e.dictOptions[t],n)}}();n.push(e.actionColumn),e.table.columns=Object(D_psh_workspace_manage_safe_prduce_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["a"])(n),e.hasBpmStatusFilter(),e.loadData(),e.initQueryInfo()}else e.$message.warning(t.message)}))},loadData:function(e){var t=this;1==e&&(this.table.pagination.current=1);var n=this.getQueryParams();console.log("--onlineList-查询条件--\x3e",n),Object(_api_manage__WEBPACK_IMPORTED_MODULE_7__["d"])("".concat(this.url.getData).concat(this.code),n).then((function(e){if(console.log("--onlineList-列表数据",e),e.success){var n=e.result;Number(n.total)>0?(t.table.pagination.total=Number(n.total),t.table.dataSource=n.records):(t.table.pagination.total=0,t.table.dataSource=[])}else t.$message.warning(e.message);t.table.loading=!1}))},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.pageNo=this.table.pagination.current,e.pageSize=this.table.pagination.pageSize,Object(_utils_util__WEBPACK_IMPORTED_MODULE_9__["b"])(e)},handleChangeInTableSelect:function(e,t){this.table.selectedRowKeys=e,this.table.selectionRows=t},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.table.pagination=e,this.loadData()},handleAdd:function(){this.cgButtonJsHandler("beforeAdd"),this.$refs.modal.add(this.formTemplate)},handleImportXls:function(){this.$refs.importModal.show()},importOk:function(){this.loadData(1)},handleExportXls2:function(){var e=this.queryParam;this.table.selectedRowKeys&&this.table.selectedRowKeys.length>0&&(e["selections"]=this.table.selectedRowKeys.join(","));var t=encodeURI(JSON.stringify(e));console.log("paramsStr: "+t);var n=window._CONFIG["domianURL"]+this.url.exportXls+this.code+"?paramsStr="+t;window.location.href=n},handleExportXls:function(){var e=this,t=this.queryParam;this.table.selectedRowKeys&&this.table.selectedRowKeys.length>0&&(t["selections"]=this.table.selectedRowKeys.join(",")),console.log("导出参数",t);var n=JSON.stringify(Object(_utils_util__WEBPACK_IMPORTED_MODULE_9__["b"])(t));Object(_api_manage__WEBPACK_IMPORTED_MODULE_7__["b"])(this.url.exportXls+this.code,{paramsStr:n}).then((function(t){if(t)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([t]),e.description+".xls");else{var n=window.URL.createObjectURL(new Blob([t])),r=document.createElement("a");r.style.display="none",r.href=n,r.setAttribute("download",e.description+".xls"),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}else e.$message.warning("文件下载失败")}))},handleEdit:function(e){this.cgButtonLinkHandler(e,"beforeEdit","js"),this.$refs.modal.edit(this.formTemplate,e.id)},handleDetail:function(e){this.$refs.modal.detail(this.formTemplate,e.id)},handleDeleteOne:function(e){this.cgButtonLinkHandler(e,"beforeDelete","js"),this.handleDelete(e.id)},handleDelete:function(e){var t=this;Object(_api_manage__WEBPACK_IMPORTED_MODULE_7__["a"])(this.url.optPre+this.code+"/"+e).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))},handleFormSuccess:function(){this.loadData()},onClearSelected:function(){this.table.selectedRowKeys=[],this.table.selectionRows=[]},getImgView:function(e){return e&&e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window._CONFIG["imgDomainURL"]+"/"+e},uploadFile:function(e){e?(e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),window.open(window._CONFIG["imgDomainURL"]+"/"+e)):this.$message.warning("未知的文件")},handleDelBatch:function(){if(this.table.selectedRowKeys.length<=0)return this.$message.warning("请选择一条记录!"),!1;var e="",t=this;t.table.selectedRowKeys.forEach((function(t){e+=t+","})),t.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){t.handleDelete(e),t.onClearSelected()}})},searchByquery:function(){this.loadData(1)},searchReset:function(){this.queryParam={},this.loadData(1)},handleToggleSearch:function(){this.toggleSearchStatus=!this.toggleSearchStatus},getFormatDate:function(e){if(!e)return"";var t=e;return t.length>10&&(t=t.substring(0,10)),t},getImportUrl:function(){return"/online/cgform/api/importXls/"+this.code},initCgEnhanceJs:function initCgEnhanceJs(enhanceJs){if(enhanceJs){var Obj=eval("("+enhanceJs+")");this.EnhanceJS=new Obj(_api_manage__WEBPACK_IMPORTED_MODULE_7__["d"],_api_manage__WEBPACK_IMPORTED_MODULE_7__["j"],_api_manage__WEBPACK_IMPORTED_MODULE_7__["a"]),this.cgButtonJsHandler("created")}else this.EnhanceJS=""},initCgButtonList:function(e){var t=[],n=[];if(e&&e.length>0)for(var r=0;r<e.length;r++){var i=e[r];"button"==i.buttonStyle?n.push(i):"link"==i.buttonStyle&&t.push(i)}this.cgButtonLinkList=[].concat(t),this.cgButtonList=[].concat(n)},cgButtonJsHandler:function(e){this.EnhanceJS[e]&&this.EnhanceJS[e](this)},cgButtonActionHandler:function(e){var t=this;if(!this.table.selectedRowKeys||0==this.table.selectedRowKeys.length)return this.$message.warning("请先选中一条记录"),!1;if(this.table.selectedRowKeys.length>1)return this.$message.warning("请只选中一条记录"),!1;var n={formId:this.code,buttonCode:e,dataId:this.table.selectedRowKeys[0]};console.log("自定义按钮请求后台参数:",n),Object(_api_manage__WEBPACK_IMPORTED_MODULE_7__["j"])(this.url.buttonAction,n).then((function(e){e.success?(t.loadData(),t.$message.success("处理完成!")):t.$message.warning("处理失败!")}))},cgButtonLinkHandler:function(e,t,n){var r=this;if("js"==n)this.EnhanceJS[t]&&this.EnhanceJS[t](this,e);else if("action"==n){var i={formId:this.code,buttonCode:t,dataId:e.id};console.log("自定义按钮link请求后台参数:",i),Object(_api_manage__WEBPACK_IMPORTED_MODULE_7__["j"])(this.url.buttonAction,i).then((function(e){e.success?(r.loadData(),r.$message.success("处理完成!")):r.$message.warning("处理失败!")}))}},initButtonSwitch:function(e){var t=this;e&&e.length>0&&Object.keys(this.buttonSwitch).forEach((function(n){e.indexOf(n)>=0&&(t.buttonSwitch[n]=!1)}))}}}},f949:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1)],1)}}])})],1),n("menuModule-modal",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=n("34f2"),a=n("b65a"),s={name:"MenuModuleList",mixins:[a["a"]],components:{MenuModuleModal:o["default"]},data:function(){return{description:"模块配置管理页面",columns:[{dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"菜单名称",align:"center",dataIndex:"name"},{title:"vueUrl",align:"center",dataIndex:"vueUrl"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/menu_module/menuModule/list2",delete:"/menu_module/menuModule/delete",deleteBatch:"/menu_module/menuModule/deleteBatch",exportXlsUrl:"menu_module/menuModule/exportXls",importExcelUrl:"menu_module/menuModule/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{}},l=s,c=(n("a9b2"),n("2877")),u=Object(c["a"])(l,r,i,!1,null,"7e8a0610",null);t["default"]=u.exports},f94d:function(e,t,n){function r(){throw new Error('Looks like you are expecting the previous "elasticsearch" module. It is now the "es" module. To create a client with this module use `new es.Client(params)`.')}r.Client=n("26fa"),r.ConnectionPool=n("2035"),r.Transport=n("dc1f"),r.errors=n("de57"),e.exports=r},f978:function(e,t,n){},f9d4:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e){var t,n=!1,r=!1;while(null!=(t=e.next())){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function m(e,t,n){return r=e,i=n,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=v(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):tt(e,t,1)?(p(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=b,b(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==n&&e.eatWhile(u))return m("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(f.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?m("."):m("operator","operator",e.current());if(u.test(n)){e.eatWhile(u);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return m(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",r)}return m("variable","variable",r)}}function v(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(h))return n.tokenize=g,m("jsonld-keyword","meta");while(null!=(r=t.next())){if(r==e&&!i)break;i=!i&&"\\"==r}return i||(n.tokenize=g),m("string","string")}}function y(e,t){var n,r=!1;while(n=e.next()){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function b(e,t){var n,r=!1;while(null!=(n=e.next())){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}var _="([{}])";function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=_.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(u.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;var d=e.string.charAt(a-1);if(d==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function S(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function C(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function E(e,t,n,r,i){var o=e.cc;k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);while(1){var a=o.length?o.pop():l?V:U;if(a(n,r)){while(o.length&&o[o.length-1].lex)o.pop()();return k.marked?k.marked:"variable"==n&&C(e,r)?"variable-2":t}}}var k={state:null,column:null,marked:null,cc:null};function O(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function T(){return O.apply(null,arguments),!0}function I(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function A(e){var t=k.state;if(k.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=R(e,t.context);if(null!=r)return void(t.context=r)}else if(!I(e,t.localVars))return void(t.localVars=new N(e,t.localVars));n.globalVars&&!I(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}function R(e,t){if(t){if(t.block){var n=R(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return I(e,t.vars)?t:new M(t.prev,new N(e,t.vars),!1)}return null}function P(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function N(e,t){this.name=e,this.next=t}var L=new N("this",new N("arguments",null));function D(){k.state.context=new M(k.state.context,k.state.localVars,!1),k.state.localVars=L}function j(){k.state.context=new M(k.state.context,k.state.localVars,!0),k.state.localVars=null}function F(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function B(e,t){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new S(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function q(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?O():T(t)}return t}function U(e,t){return"var"==e?T(B("vardef",t),Ee,z(";"),q):"keyword a"==e?T(B("form"),H,U,q):"keyword b"==e?T(B("form"),U,q):"keyword d"==e?k.stream.match(/^\s*$/,!1)?T():T(B("stat"),K,z(";"),q):"debugger"==e?T(z(";")):"{"==e?T(B("}"),j,de,q,F):";"==e?T():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==q&&k.state.cc.pop()(),T(B("form"),H,U,q,Re)):"function"==e?T(Le):"for"==e?T(B("form"),Pe,U,q):"class"==e||c&&"interface"==t?(k.marked="keyword",T(B("form","class"==e?e:t),qe,q)):"variable"==e?c&&"declare"==t?(k.marked="keyword",T(U)):c&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?T(Qe):"type"==t?T(je,z("operator"),ge,z(";")):T(B("form"),ke,z("{"),B("}"),de,q,q)):c&&"namespace"==t?(k.marked="keyword",T(B("form"),V,U,q)):c&&"abstract"==t?(k.marked="keyword",T(U)):T(B("stat"),ie):"switch"==e?T(B("form"),H,z("{"),B("}","switch"),j,de,q,q,F):"case"==e?T(V,z(":")):"default"==e?T(z(":")):"catch"==e?T(B("form"),D,G,U,q,F):"export"==e?T(B("stat"),Ve,q):"import"==e?T(B("stat"),He,q):"async"==e?T(U):"@"==t?T(V,U):O(B("stat"),V,z(";"),q)}function G(e){if("("==e)return T(Fe,z(")"))}function V(e,t){return $(e,t,!1)}function W(e,t){return $(e,t,!0)}function H(e){return"("!=e?O():T(B(")"),K,z(")"),q)}function $(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?ee:Z;if("("==e)return T(D,B(")"),ce(Fe,")"),q,z("=>"),r,F);if("variable"==e)return O(D,ke,z("=>"),r,F)}var i=n?Y:X;return x.hasOwnProperty(e)?T(i):"function"==e?T(Le,i):"class"==e||c&&"interface"==t?(k.marked="keyword",T(B("form"),Be,q)):"keyword c"==e||"async"==e?T(n?W:V):"("==e?T(B(")"),K,z(")"),q,i):"operator"==e||"spread"==e?T(n?W:V):"["==e?T(B("]"),Je,q,i):"{"==e?ue(ae,"}",null,i):"quasi"==e?O(J,i):"new"==e?T(te(n)):"import"==e?T(V):T()}function K(e){return e.match(/[;\}\)\],]/)?O():O(V)}function X(e,t){return","==e?T(K):Y(e,t,!1)}function Y(e,t,n){var r=0==n?X:Y,i=0==n?V:W;return"=>"==e?T(D,n?ee:Z,F):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?T(r):c&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(B(">"),ce(ge,">"),q,r):"?"==t?T(V,z(":"),i):T(i):"quasi"==e?O(J,r):";"!=e?"("==e?ue(W,")","call",r):"."==e?T(oe,r):"["==e?T(B("]"),K,z("]"),q,r):c&&"as"==t?(k.marked="keyword",T(ge,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),T(i)):void 0:void 0}function J(e,t){return"quasi"!=e?O():"${"!=t.slice(t.length-2)?T(J):T(V,Q)}function Q(e){if("}"==e)return k.marked="string-2",k.state.tokenize=b,T(J)}function Z(e){return w(k.stream,k.state),O("{"==e?U:V)}function ee(e){return w(k.stream,k.state),O("{"==e?U:W)}function te(e){return function(t){return"."==t?T(e?re:ne):"variable"==t&&c?T(xe,e?Y:X):O(e?W:V)}}function ne(e,t){if("target"==t)return k.marked="keyword",T(X)}function re(e,t){if("target"==t)return k.marked="keyword",T(Y)}function ie(e){return":"==e?T(q,U):O(X,z(";"),q)}function oe(e){if("variable"==e)return k.marked="property",T()}function ae(e,t){return"async"==e?(k.marked="property",T(ae)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?T(se):(c&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),T(le))):"number"==e||"string"==e?(k.marked=s?"property":k.style+" property",T(le)):"jsonld-keyword"==e?T(le):c&&P(t)?(k.marked="keyword",T(ae)):"["==e?T(V,fe,z("]"),le):"spread"==e?T(W,le):"*"==t?(k.marked="keyword",T(ae)):":"==e?O(le):void 0;var n}function se(e){return"variable"!=e?O(le):(k.marked="property",T(Le))}function le(e){return":"==e?T(W):"("==e?O(Le):void 0}function ce(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T((function(n,r){return n==t||r==t?O():O(e)}),r)}return i==t||o==t?T():n&&n.indexOf(";")>-1?O(e):T(z(t))}return function(n,i){return n==t||i==t?T():O(e,r)}}function ue(e,t,n){for(var r=3;r<arguments.length;r++)k.cc.push(arguments[r]);return T(B(t,n),ce(e,t),q)}function de(e){return"}"==e?T():O(U,de)}function fe(e,t){if(c){if(":"==e)return T(ge);if("?"==t)return T(fe)}}function he(e,t){if(c&&(":"==e||"in"==t))return T(ge)}function pe(e){if(c&&":"==e)return k.stream.match(/^\s*\w+\s+is\b/,!1)?T(V,me,ge):T(ge)}function me(e,t){if("is"==t)return k.marked="keyword",T()}function ge(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(k.marked="keyword",T("typeof"==t?W:ge)):"variable"==e||"void"==t?(k.marked="type",T(we)):"|"==t||"&"==t?T(ge):"string"==e||"number"==e||"atom"==e?T(we):"["==e?T(B("]"),ce(ge,"]",","),q,we):"{"==e?T(B("}"),ye,q,we):"("==e?T(ce(_e,")"),ve,we):"<"==e?T(ce(ge,">"),ge):void 0}function ve(e){if("=>"==e)return T(ge)}function ye(e){return e.match(/[\}\)\]]/)?T():","==e||";"==e?T(ye):O(be,ye)}function be(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",T(be)):"?"==t||"number"==e||"string"==e?T(be):":"==e?T(ge):"["==e?T(z("variable"),he,z("]"),be):"("==e?O(De,be):e.match(/[;\}\)\],]/)?void 0:T()}function _e(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?T(_e):":"==e?T(ge):"spread"==e?T(_e):O(ge)}function we(e,t){return"<"==t?T(B(">"),ce(ge,">"),q,we):"|"==t||"."==e||"&"==t?T(ge):"["==e?T(ge,z("]"),we):"extends"==t||"implements"==t?(k.marked="keyword",T(ge)):"?"==t?T(ge,z(":"),ge):void 0}function xe(e,t){if("<"==t)return T(B(">"),ce(ge,">"),q,we)}function Se(){return O(ge,Ce)}function Ce(e,t){if("="==t)return T(ge)}function Ee(e,t){return"enum"==t?(k.marked="keyword",T(Qe)):O(ke,fe,Ie,Ae)}function ke(e,t){return c&&P(t)?(k.marked="keyword",T(ke)):"variable"==e?(A(t),T()):"spread"==e?T(ke):"["==e?ue(Te,"]"):"{"==e?ue(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?T(ke):"}"==e?O():"["==e?T(V,z("]"),z(":"),Oe):T(z(":"),ke,Ie)):(A(t),T(Ie))}function Te(){return O(ke,Ie)}function Ie(e,t){if("="==t)return T(W)}function Ae(e){if(","==e)return T(Ee)}function Re(e,t){if("keyword b"==e&&"else"==t)return T(B("form","else"),U,q)}function Pe(e,t){return"await"==t?T(Pe):"("==e?T(B(")"),Me,q):void 0}function Me(e){return"var"==e?T(Ee,Ne):"variable"==e?T(Ne):O(Ne)}function Ne(e,t){return")"==e?T():";"==e?T(Ne):"in"==t||"of"==t?(k.marked="keyword",T(V,Ne)):O(V,Ne)}function Le(e,t){return"*"==t?(k.marked="keyword",T(Le)):"variable"==e?(A(t),T(Le)):"("==e?T(D,B(")"),ce(Fe,")"),q,pe,U,F):c&&"<"==t?T(B(">"),ce(Se,">"),q,Le):void 0}function De(e,t){return"*"==t?(k.marked="keyword",T(De)):"variable"==e?(A(t),T(De)):"("==e?T(D,B(")"),ce(Fe,")"),q,pe,F):c&&"<"==t?T(B(">"),ce(Se,">"),q,De):void 0}function je(e,t){return"keyword"==e||"variable"==e?(k.marked="type",T(je)):"<"==t?T(B(">"),ce(Se,">"),q):void 0}function Fe(e,t){return"@"==t&&T(V,Fe),"spread"==e?T(Fe):c&&P(t)?(k.marked="keyword",T(Fe)):c&&"this"==e?T(fe,Ie):O(ke,fe,Ie)}function Be(e,t){return"variable"==e?qe(e,t):ze(e,t)}function qe(e,t){if("variable"==e)return A(t),T(ze)}function ze(e,t){return"<"==t?T(B(">"),ce(Se,">"),q,ze):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(k.marked="keyword"),T(c?ge:V,ze)):"{"==e?T(B("}"),Ue,q):void 0}function Ue(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&P(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",T(Ue)):"variable"==e||"keyword"==k.style?(k.marked="property",T(Ge,Ue)):"number"==e||"string"==e?T(Ge,Ue):"["==e?T(V,fe,z("]"),Ge,Ue):"*"==t?(k.marked="keyword",T(Ue)):c&&"("==e?O(De,Ue):";"==e||","==e?T(Ue):"}"==e?T():"@"==t?T(V,Ue):void 0}function Ge(e,t){if("?"==t)return T(Ge);if(":"==e)return T(ge,Ie);if("="==t)return T(W);var n=k.state.lexical.prev,r=n&&"interface"==n.info;return O(r?De:Le)}function Ve(e,t){return"*"==t?(k.marked="keyword",T(Ye,z(";"))):"default"==t?(k.marked="keyword",T(V,z(";"))):"{"==e?T(ce(We,"}"),Ye,z(";")):O(U)}function We(e,t){return"as"==t?(k.marked="keyword",T(z("variable"))):"variable"==e?O(W,We):void 0}function He(e){return"string"==e?T():"("==e?O(V):O($e,Ke,Ye)}function $e(e,t){return"{"==e?ue($e,"}"):("variable"==e&&A(t),"*"==t&&(k.marked="keyword"),T(Xe))}function Ke(e){if(","==e)return T($e,Ke)}function Xe(e,t){if("as"==t)return k.marked="keyword",T($e)}function Ye(e,t){if("from"==t)return k.marked="keyword",T(V)}function Je(e){return"]"==e?T():O(ce(W,"]"))}function Qe(){return O(B("form"),ke,z("{"),B("}"),ce(Ze,"}"),q,q)}function Ze(){return O(ke,Ie)}function et(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function tt(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return F.lex=!0,q.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new S((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new M(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",E(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==y||t.tokenize==b)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==q)l=l.prev;else if(u!=Re)break}while(("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==X||i==Y)&&!/^[,\.=+\-*:?[\(]/.test(r)))l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(et(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:tt,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=V&&t!=W||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}))},fa27:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("c7ce"),a={name:"emergency_data",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("7a82"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"164815d3",null);t["default"]=c.exports},faa1:function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,s;if("function"!==typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function f(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,e))}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?y(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function y(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var c=l.length,u=g(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,h(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,h(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,r,i,o,a;if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(r=this._events,void 0===r)return this;if(n=r[e],void 0===n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():v(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)i=o[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return p(this,e,!0)},l.prototype.rawListeners=function(e){return p(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},fade:function(e,t,n){},fb15:function(e,t,n){var r=n("9eab"),i=n("d972");function o(){}r.inherits(o,i),o.prototype.encode=function(e){switch(typeof e){case"string":return e;case"object":if(e)return angular.toJson(e);default:return}},e.exports=o},fb72:function(e,t,n){"use strict";n("c053")},fbee:function(e,t,n){var r=n("791c");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},fcbc:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-modal",{attrs:{width:e.modalWidth,visible:e.visible,footer:null,cancelText:"关闭"},on:{cancel:e.handleCancel}},[n("div",{staticClass:"marginCss"},[n("a-table",{ref:"table",attrs:{size:"small",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,rowClassName:e.setdataCss,loading:e.loading,scroll:{y:700},pagination:!1},scopedSlots:e._u([{key:"avatarslot",fn:function(t,r){return[n("div",{staticClass:"anty-img-wrap"},[n("img",{attrs:{src:e.getAvatarView(r)}})])]}}])},[n("span",{attrs:{slot:"dataVersionTitle1"},slot:"dataVersionTitle1"},[n("a-icon",{attrs:{type:"smile-o"}}),e._v(" 版本:"+e._s(e.dataVersion1Num))],1),n("span",{attrs:{slot:"dataVersionTitle2"},slot:"dataVersionTitle2"},[n("a-icon",{attrs:{type:"smile-o"}}),e._v(" 版本:"+e._s(e.dataVersion2Num))],1)])],1)])},i=[],o=n("0fea"),a={name:"DataLogCompareModal",data:function(){return{modalWidth:1e3,modaltoggleFlag:!0,confirmDirty:!1,title:"操作",visible:!1,model:{},confirmLoading:!1,headers:{},dataVersion1Num:"",dataVersion2Num:"",columns:[{title:"字段名",align:"left",dataIndex:"code",width:"30%"},{align:"left",dataIndex:"dataVersion1",width:"30%",slots:{title:"dataVersionTitle1"}},{title:"",dataIndex:"imgshow",align:"center",scopedSlots:{customRender:"avatarslot"},width:"10%"},{align:"left",dataIndex:"dataVersion2",width:"30%",slots:{title:"dataVersionTitle2"}}],dataSource:[],loading:!1,url:{queryCompareUrl:"/sys/dataLog/queryCompareList"}}},created:function(){},methods:{loadData:function(e,t){var n=this;this.dataSource=[];var r=this;Object(o["d"])(r.url.queryCompareUrl,{dataId1:e,dataId2:t}).then((function(e){if(e.success){r.dataVersion1Num=e.result[0].dataVersion,r.dataVersion2Num=e.result[1].dataVersion;var t=JSON.parse(e.result[0].dataContent),i=JSON.parse(e.result[1].dataContent);for(var o in t)for(var a in i)o==a&&n.dataSource.push({code:o,imgshow:"",dataVersion1:t[o],dataVersion2:i[a]})}else console.log(e.message)}))},compareModal:function(e,t){this.visible=!0,this.loadData(e,t)},handleCancel:function(){this.close()},modalFormOk:function(){},close:function(){this.$emit("close"),this.visible=!1,this.disableSubmit=!1},setdataCss:function(e){var t="trcolor",n=e.dataVersion1,r=e.dataVersion2;if(n!=r)return t},getAvatarView:function(e){return e.dataVersion1!=e.dataVersion2?"/goright.png":""}}},s=a,l=(n("4a1c"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"6f34d1e7",null);t["default"]=c.exports},fced:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={};i[r.DEGREES]=2*Math.PI*6370997/360,i[r.FEET]=.3048,i[r.METERS]=1,i[r.USFEET]=1200/3937,t["b"]=r},fd15:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline"}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"模板CODE"}},[n("a-input",{attrs:{placeholder:"请输入模板CODE"},model:{value:e.queryParam.templateCode,callback:function(t){e.$set(e.queryParam,"templateCode",t)},expression:"queryParam.templateCode"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"模板内容"}},[n("a-input",{attrs:{placeholder:"请输入模板内容"},model:{value:e.queryParam.templateContent,callback:function(t){e.$set(e.queryParam,"templateContent",t)},expression:"queryParam.templateContent"}})],1)],1),e.toggleSearchStatus?[n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"模板标题"}},[n("a-input",{attrs:{placeholder:"请输入模板标题"},model:{value:e.queryParam.templateName,callback:function(t){e.$set(e.queryParam,"templateName",t)},expression:"queryParam.templateName"}})],1)],1),n("a-col",{attrs:{md:6,sm:8}},[n("a-form-item",{attrs:{label:"模板类型"}},[n("a-input",{attrs:{placeholder:"请输入模板类型"},model:{value:e.queryParam.templateType,callback:function(t){e.$set(e.queryParam,"templateType",t)},expression:"queryParam.templateType"}})],1)],1)]:e._e(),n("a-col",{attrs:{md:6,sm:8}},[n("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[n("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),n("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],2)],1)],1),n("div",{staticClass:"table-operator"},[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),n("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("消息模板")}}},[e._v("导出")]),n("a-upload",{attrs:{name:"file",showUploadList:!1,multiple:!1,headers:e.tokenHeader,action:e.importExcelUrl},on:{change:e.handleImportExcel}},[n("a-button",{attrs:{type:"primary",icon:"import"}},[e._v("导入")])],1),e.selectedRowKeys.length>0?n("a-dropdown",[n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"1",on:{click:e.batchDel}},[n("a-icon",{attrs:{type:"delete"}}),e._v("\n          删除\n        ")],1)],1),n("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作\n        "),n("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),n("div",[n("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[n("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),n("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),n("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),n("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"templateContent",fn:function(e){return n("span",{},[n("j-ellipsis",{attrs:{value:e,length:25}})],1)}},{key:"action",fn:function(t,r){return n("span",{},[n("a",{on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-dropdown",[n("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),n("a-icon",{attrs:{type:"down"}})],1),n("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(r.id)}}},[n("a",[e._v("删除")])])],1),n("a-menu-item",[n("a",{on:{click:function(t){return e.handleTest(r)}}},[e._v("发送测试")])])],1)],1)],1)}}])})],1),n("sysMessageTemplate-modal",{ref:"modalForm",on:{ok:e.modalFormOk}}),n("sysMessageTest-modal",{ref:"testModal"})],1)},i=[],o=n("e5ab"),a=n("86a6"),s=n("b65a"),l=n("d579"),c={name:"SysMessageTemplateList",mixins:[s["a"]],components:{JEllipsis:l["default"],SysMessageTemplateModal:o["default"],SysMessageTestModal:a["default"]},data:function(){return{description:"消息模板管理页面",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"模板CODE",align:"center",dataIndex:"templateCode"},{title:"模板标题",align:"center",dataIndex:"templateName"},{title:"模板内容",align:"center",dataIndex:"templateContent",scopedSlots:{customRender:"templateContent"}},{title:"模板类型",align:"center",dataIndex:"templateType",customRender:function(e){return"1"==e?"短信":"2"==e?"邮件":"3"==e?"微信":void 0}},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/message/sysMessageTemplate/list",delete:"/message/sysMessageTemplate/delete",deleteBatch:"/message/sysMessageTemplate/deleteBatch",exportXlsUrl:"message/sysMessageTemplate/exportXls",importExcelUrl:"message/sysMessageTemplate/importExcel"}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{handleTest:function(e){this.$refs.testModal.open(e),this.$refs.testModal.title="发送测试"}}},u=c,d=(n("069f"),n("2877")),f=Object(d["a"])(u,r,i,!1,null,"3d9e335e",null);t["default"]=f.exports},fd36:function(e,t,n){var r=n("d75c"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},fd4d:function(e,t,n){"use strict";function r(e,t,n,r,i){for(var o,a=[e[t],e[t+1]],s=[];t+r<n;t+=r){if(s[0]=e[t+r],s[1]=e[t+r+1],o=i(a,s),o)return o;a[0]=s[0],a[1]=s[1]}return!1}n.d(t,"a",(function(){return r}))},fd69:function(e,t,n){"use strict";n("cc34")},fdd2:function(e,t,n){"use strict";n("95ae")},fdde0:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("a-tree")],1)},i=[],o=n("c7ce"),a={name:"emergency_data",components:{aTree:o["default"]},data:function(){return{}},computed:{},methods:{}},s=a,l=(n("2e83"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"3153e49a",null);t["default"]=c.exports},fdf9:function(e,t,n){(function(e){(function(e,n){n(t)})(0,(function(t){"use strict";var n="2.0.56",r=function(e){e&&e.clearRect&&e.clearRect(0,0,e.canvas.width,e.canvas.height)},i=function(e){var t=window.devicePixelRatio||1;e.canvas.width=e.canvas.width*t,e.canvas.height=e.canvas.height*t,e.canvas.style.width=e.canvas.width/t+"px",e.canvas.style.height=e.canvas.height/t+"px",e.scale(t,t)};function o(){this._subscribers={}}o.prototype.on=function(e,t){var n=this._subscribers[e];n||(n=[],this._subscribers[e]=n),n.push({callback:t})},o.prototype.off=function(e,t){var n=this._subscribers[e];if(n)for(var r=0;r<n.length;r++)n[r].callback==t&&(n.splice(r,1),r--)},o.prototype._trigger=function(e,t,n){if("*"==e)throw new Error("Cannot trigger event *");var r=[];e in this._subscribers&&(r=r.concat(this._subscribers[e])),"*"in this._subscribers&&(r=r.concat(this._subscribers["*"]));for(var i=0,o=r.length;i<o;i++){var a=r[i];a.callback&&a.callback(e,t,n||null)}};var a={municipalities:[{n:"北京",g:"116.395645,39.929986|12"},{n:"上海",g:"121.487899,31.249162|12"},{n:"天津",g:"117.210813,39.14393|12"},{n:"重庆",g:"106.530635,29.544606|12"}],provinces:[{n:"安徽",g:"117.216005,31.859252|8",cities:[{n:"合肥",g:"117.282699,31.866942|12"},{n:"安庆",g:"117.058739,30.537898|13"},{n:"蚌埠",g:"117.35708,32.929499|13"},{n:"亳州",g:"115.787928,33.871211|13"},{n:"巢湖",g:"117.88049,31.608733|13"},{n:"池州",g:"117.494477,30.660019|14"},{n:"滁州",g:"118.32457,32.317351|13"},{n:"阜阳",g:"115.820932,32.901211|13"},{n:"淮北",g:"116.791447,33.960023|13"},{n:"淮南",g:"117.018639,32.642812|13"},{n:"黄山",g:"118.29357,29.734435|13"},{n:"六安",g:"116.505253,31.755558|13"},{n:"马鞍山",g:"118.515882,31.688528|13"},{n:"宿州",g:"116.988692,33.636772|13"},{n:"铜陵",g:"117.819429,30.94093|14"},{n:"芜湖",g:"118.384108,31.36602|12"},{n:"宣城",g:"118.752096,30.951642|13"}]},{n:"福建",g:"117.984943,26.050118|8",cities:[{n:"福州",g:"119.330221,26.047125|12"},{n:"龙岩",g:"117.017997,25.078685|13"},{n:"南平",g:"118.181883,26.643626|13"},{n:"宁德",g:"119.542082,26.656527|14"},{n:"莆田",g:"119.077731,25.44845|13"},{n:"泉州",g:"118.600362,24.901652|12"},{n:"三明",g:"117.642194,26.270835|14"},{n:"厦门",g:"118.103886,24.489231|12"},{n:"漳州",g:"117.676205,24.517065|12"}]},{n:"甘肃",g:"102.457625,38.103267|6",cities:[{n:"兰州",g:"103.823305,36.064226|12"},{n:"白银",g:"104.171241,36.546682|13"},{n:"定西",g:"104.626638,35.586056|13"},{n:"甘南州",g:"102.917442,34.992211|14"},{n:"嘉峪关",g:"98.281635,39.802397|13"},{n:"金昌",g:"102.208126,38.516072|13"},{n:"酒泉",g:"98.508415,39.741474|13"},{n:"临夏州",g:"103.215249,35.598514|13"},{n:"陇南",g:"104.934573,33.39448|14"},{n:"平凉",g:"106.688911,35.55011|13"},{n:"庆阳",g:"107.644227,35.726801|13"},{n:"天水",g:"105.736932,34.584319|13"},{n:"武威",g:"102.640147,37.933172|13"},{n:"张掖",g:"100.459892,38.93932|13"}]},{n:"广东",g:"113.394818,23.408004|8",cities:[{n:"广州",g:"113.30765,23.120049|12"},{n:"潮州",g:"116.630076,23.661812|13"},{n:"东莞",g:"113.763434,23.043024|12"},{n:"佛山",g:"113.134026,23.035095|13"},{n:"河源",g:"114.713721,23.757251|12"},{n:"惠州",g:"114.410658,23.11354|12"},{n:"江门",g:"113.078125,22.575117|13"},{n:"揭阳",g:"116.379501,23.547999|13"},{n:"茂名",g:"110.931245,21.668226|13"},{n:"梅州",g:"116.126403,24.304571|13"},{n:"清远",g:"113.040773,23.698469|13"},{n:"汕头",g:"116.72865,23.383908|13"},{n:"汕尾",g:"115.372924,22.778731|14"},{n:"韶关",g:"113.594461,24.80296|13"},{n:"深圳",g:"114.025974,22.546054|12"},{n:"阳江",g:"111.97701,21.871517|14"},{n:"云浮",g:"112.050946,22.937976|13"},{n:"湛江",g:"110.365067,21.257463|13"},{n:"肇庆",g:"112.479653,23.078663|13"},{n:"中山",g:"113.42206,22.545178|12"},{n:"珠海",g:"113.562447,22.256915|13"}]},{n:"广西",g:"108.924274,23.552255|7",cities:[{n:"南宁",g:"108.297234,22.806493|12"},{n:"百色",g:"106.631821,23.901512|13"},{n:"北海",g:"109.122628,21.472718|13"},{n:"崇左",g:"107.357322,22.415455|14"},{n:"防城港",g:"108.351791,21.617398|15"},{n:"桂林",g:"110.26092,25.262901|12"},{n:"贵港",g:"109.613708,23.103373|13"},{n:"河池",g:"108.069948,24.699521|14"},{n:"贺州",g:"111.552594,24.411054|14"},{n:"来宾",g:"109.231817,23.741166|14"},{n:"柳州",g:"109.422402,24.329053|12"},{n:"钦州",g:"108.638798,21.97335|13"},{n:"梧州",g:"111.305472,23.485395|13"},{n:"玉林",g:"110.151676,22.643974|14"}]},{n:"贵州",g:"106.734996,26.902826|8",cities:[{n:"贵阳",g:"106.709177,26.629907|12"},{n:"安顺",g:"105.92827,26.228595|13"},{n:"毕节地区",g:"105.300492,27.302612|14"},{n:"六盘水",g:"104.852087,26.591866|13"},{n:"铜仁地区",g:"109.196161,27.726271|14"},{n:"遵义",g:"106.93126,27.699961|13"},{n:"黔西南州",g:"104.900558,25.095148|11"},{n:"黔东南州",g:"107.985353,26.583992|11"},{n:"黔南州",g:"107.523205,26.264536|11"}]},{n:"海南",g:"109.733755,19.180501|9",cities:[{n:"海口",g:"110.330802,20.022071|13"},{n:"白沙",g:"109.358586,19.216056|12"},{n:"保亭",g:"109.656113,18.597592|12"},{n:"昌江",g:"109.0113,19.222483|12"},{n:"儋州",g:"109.413973,19.571153|13"},{n:"澄迈",g:"109.996736,19.693135|13"},{n:"东方",g:"108.85101,18.998161|13"},{n:"定安",g:"110.32009,19.490991|13"},{n:"琼海",g:"110.414359,19.21483|13"},{n:"琼中",g:"109.861849,19.039771|12"},{n:"乐东",g:"109.062698,18.658614|12"},{n:"临高",g:"109.724101,19.805922|13"},{n:"陵水",g:"109.948661,18.575985|12"},{n:"三亚",g:"109.522771,18.257776|12"},{n:"屯昌",g:"110.063364,19.347749|13"},{n:"万宁",g:"110.292505,18.839886|13"},{n:"文昌",g:"110.780909,19.750947|13"},{n:"五指山",g:"109.51775,18.831306|13"}]},{n:"河北",g:"115.661434,38.61384|7",cities:[{n:"石家庄",g:"114.522082,38.048958|12"},{n:"保定",g:"115.49481,38.886565|13"},{n:"沧州",g:"116.863806,38.297615|13"},{n:"承德",g:"117.933822,40.992521|14"},{n:"邯郸",g:"114.482694,36.609308|13"},{n:"衡水",g:"115.686229,37.746929|13"},{n:"廊坊",g:"116.703602,39.518611|13"},{n:"秦皇岛",g:"119.604368,39.945462|12"},{n:"唐山",g:"118.183451,39.650531|13"},{n:"邢台",g:"114.520487,37.069531|13"},{n:"张家口",g:"114.893782,40.811188|13"}]},{n:"河南",g:"113.486804,34.157184|7",cities:[{n:"郑州",g:"113.649644,34.75661|12"},{n:"安阳",g:"114.351807,36.110267|12"},{n:"鹤壁",g:"114.29777,35.755426|13"},{n:"焦作",g:"113.211836,35.234608|13"},{n:"开封",g:"114.351642,34.801854|13"},{n:"洛阳",g:"112.447525,34.657368|12"},{n:"漯河",g:"114.046061,33.576279|13"},{n:"南阳",g:"112.542842,33.01142|13"},{n:"平顶山",g:"113.300849,33.745301|13"},{n:"濮阳",g:"115.026627,35.753298|12"},{n:"三门峡",g:"111.181262,34.78332|13"},{n:"商丘",g:"115.641886,34.438589|13"},{n:"新乡",g:"113.91269,35.307258|13"},{n:"信阳",g:"114.085491,32.128582|13"},{n:"许昌",g:"113.835312,34.02674|13"},{n:"周口",g:"114.654102,33.623741|13"},{n:"驻马店",g:"114.049154,32.983158|13"}]},{n:"黑龙江",g:"128.047414,47.356592|6",cities:[{n:"哈尔滨",g:"126.657717,45.773225|12"},{n:"大庆",g:"125.02184,46.596709|12"},{n:"大兴安岭地区",g:"124.196104,51.991789|10"},{n:"鹤岗",g:"130.292472,47.338666|13"},{n:"黑河",g:"127.50083,50.25069|14"},{n:"鸡西",g:"130.941767,45.32154|13"},{n:"佳木斯",g:"130.284735,46.81378|12"},{n:"牡丹江",g:"129.608035,44.588521|13"},{n:"七台河",g:"131.019048,45.775005|14"},{n:"齐齐哈尔",g:"123.987289,47.3477|13"},{n:"双鸭山",g:"131.171402,46.655102|13"},{n:"绥化",g:"126.989095,46.646064|13"},{n:"伊春",g:"128.910766,47.734685|14"}]},{n:"湖北",g:"112.410562,31.209316|8",cities:[{n:"武汉",g:"114.3162,30.581084|12"},{n:"鄂州",g:"114.895594,30.384439|14"},{n:"恩施",g:"109.517433,30.308978|14"},{n:"黄冈",g:"114.906618,30.446109|14"},{n:"黄石",g:"115.050683,30.216127|13"},{n:"荆门",g:"112.21733,31.042611|13"},{n:"荆州",g:"112.241866,30.332591|12"},{n:"潜江",g:"112.768768,30.343116|13"},{n:"神农架林区",g:"110.487231,31.595768|13"},{n:"十堰",g:"110.801229,32.636994|13"},{n:"随州",g:"113.379358,31.717858|13"},{n:"天门",g:"113.12623,30.649047|13"},{n:"仙桃",g:"113.387448,30.293966|13"},{n:"咸宁",g:"114.300061,29.880657|13"},{n:"襄阳",g:"112.176326,32.094934|12"},{n:"孝感",g:"113.935734,30.927955|13"},{n:"宜昌",g:"111.310981,30.732758|13"}]},{n:"湖南",g:"111.720664,27.695864|7",cities:[{n:"长沙",g:"112.979353,28.213478|12"},{n:"常德",g:"111.653718,29.012149|12"},{n:"郴州",g:"113.037704,25.782264|13"},{n:"衡阳",g:"112.583819,26.898164|13"},{n:"怀化",g:"109.986959,27.557483|13"},{n:"娄底",g:"111.996396,27.741073|13"},{n:"邵阳",g:"111.461525,27.236811|13"},{n:"湘潭",g:"112.935556,27.835095|13"},{n:"湘西州",g:"109.745746,28.317951|14"},{n:"益阳",g:"112.366547,28.588088|13"},{n:"永州",g:"111.614648,26.435972|13"},{n:"岳阳",g:"113.146196,29.378007|13"},{n:"张家界",g:"110.48162,29.124889|13"},{n:"株洲",g:"113.131695,27.827433|13"}]},{n:"江苏",g:"119.368489,33.013797|8",cities:[{n:"南京",g:"118.778074,32.057236|12"},{n:"常州",g:"119.981861,31.771397|12"},{n:"淮安",g:"119.030186,33.606513|12"},{n:"连云港",g:"119.173872,34.601549|12"},{n:"南通",g:"120.873801,32.014665|12"},{n:"苏州",g:"120.619907,31.317987|12"},{n:"宿迁",g:"118.296893,33.95205|13"},{n:"泰州",g:"119.919606,32.476053|13"},{n:"无锡",g:"120.305456,31.570037|12"},{n:"徐州",g:"117.188107,34.271553|12"},{n:"盐城",g:"120.148872,33.379862|12"},{n:"扬州",g:"119.427778,32.408505|13"},{n:"镇江",g:"119.455835,32.204409|13"}]},{n:"江西",g:"115.676082,27.757258|7",cities:[{n:"南昌",g:"115.893528,28.689578|12"},{n:"抚州",g:"116.360919,27.954545|13"},{n:"赣州",g:"114.935909,25.845296|13"},{n:"吉安",g:"114.992039,27.113848|13"},{n:"景德镇",g:"117.186523,29.303563|12"},{n:"九江",g:"115.999848,29.71964|13"},{n:"萍乡",g:"113.859917,27.639544|13"},{n:"上饶",g:"117.955464,28.457623|13"},{n:"新余",g:"114.947117,27.822322|13"},{n:"宜春",g:"114.400039,27.81113|13"},{n:"鹰潭",g:"117.03545,28.24131|13"}]},{n:"吉林",g:"126.262876,43.678846|7",cities:[{n:"长春",g:"125.313642,43.898338|12"},{n:"白城",g:"122.840777,45.621086|13"},{n:"白山",g:"126.435798,41.945859|13"},{n:"吉林",g:"126.564544,43.871988|12"},{n:"辽源",g:"125.133686,42.923303|13"},{n:"四平",g:"124.391382,43.175525|12"},{n:"松原",g:"124.832995,45.136049|13"},{n:"通化",g:"125.94265,41.736397|13"},{n:"延边",g:"129.485902,42.896414|13"}]},{n:"辽宁",g:"122.753592,41.6216|8",cities:[{n:"沈阳",g:"123.432791,41.808645|12"},{n:"鞍山",g:"123.007763,41.118744|13"},{n:"本溪",g:"123.778062,41.325838|12"},{n:"朝阳",g:"120.446163,41.571828|13"},{n:"大连",g:"121.593478,38.94871|12"},{n:"丹东",g:"124.338543,40.129023|12"},{n:"抚顺",g:"123.92982,41.877304|12"},{n:"阜新",g:"121.660822,42.01925|14"},{n:"葫芦岛",g:"120.860758,40.74303|13"},{n:"锦州",g:"121.147749,41.130879|13"},{n:"辽阳",g:"123.172451,41.273339|14"},{n:"盘锦",g:"122.073228,41.141248|13"},{n:"铁岭",g:"123.85485,42.299757|13"},{n:"营口",g:"122.233391,40.668651|13"}]},{n:"内蒙古",g:"114.415868,43.468238|5",cities:[{n:"呼和浩特",g:"111.660351,40.828319|12"},{n:"阿拉善盟",g:"105.695683,38.843075|14"},{n:"包头",g:"109.846239,40.647119|12"},{n:"巴彦淖尔",g:"107.423807,40.76918|12"},{n:"赤峰",g:"118.930761,42.297112|12"},{n:"鄂尔多斯",g:"109.993706,39.81649|12"},{n:"呼伦贝尔",g:"119.760822,49.201636|12"},{n:"通辽",g:"122.260363,43.633756|12"},{n:"乌海",g:"106.831999,39.683177|13"},{n:"乌兰察布",g:"113.112846,41.022363|12"},{n:"锡林郭勒盟",g:"116.02734,43.939705|11"},{n:"兴安盟",g:"122.048167,46.083757|11"}]},{n:"宁夏",g:"106.155481,37.321323|8",cities:[{n:"银川",g:"106.206479,38.502621|12"},{n:"固原",g:"106.285268,36.021523|13"},{n:"石嘴山",g:"106.379337,39.020223|13"},{n:"吴忠",g:"106.208254,37.993561|14"},{n:"中卫",g:"105.196754,37.521124|14"}]},{n:"青海",g:"96.202544,35.499761|7",cities:[{n:"西宁",g:"101.767921,36.640739|12"},{n:"果洛州",g:"100.223723,34.480485|11"},{n:"海东地区",g:"102.085207,36.51761|11"},{n:"海北州",g:"100.879802,36.960654|11"},{n:"海南州",g:"100.624066,36.284364|11"},{n:"海西州",g:"97.342625,37.373799|11"},{n:"黄南州",g:"102.0076,35.522852|11"},{n:"玉树州",g:"97.013316,33.00624|14"}]},{n:"山东",g:"118.527663,36.09929|8",cities:[{n:"济南",g:"117.024967,36.682785|12"},{n:"滨州",g:"117.968292,37.405314|12"},{n:"东营",g:"118.583926,37.487121|12"},{n:"德州",g:"116.328161,37.460826|12"},{n:"菏泽",g:"115.46336,35.26244|13"},{n:"济宁",g:"116.600798,35.402122|13"},{n:"莱芜",g:"117.684667,36.233654|13"},{n:"聊城",g:"115.986869,36.455829|12"},{n:"临沂",g:"118.340768,35.072409|12"},{n:"青岛",g:"120.384428,36.105215|12"},{n:"日照",g:"119.50718,35.420225|12"},{n:"泰安",g:"117.089415,36.188078|13"},{n:"威海",g:"122.093958,37.528787|13"},{n:"潍坊",g:"119.142634,36.716115|12"},{n:"烟台",g:"121.309555,37.536562|12"},{n:"枣庄",g:"117.279305,34.807883|13"},{n:"淄博",g:"118.059134,36.804685|12"}]},{n:"山西",g:"112.515496,37.866566|7",cities:[{n:"太原",g:"112.550864,37.890277|12"},{n:"长治",g:"113.120292,36.201664|12"},{n:"大同",g:"113.290509,40.113744|12"},{n:"晋城",g:"112.867333,35.499834|13"},{n:"晋中",g:"112.738514,37.693362|13"},{n:"临汾",g:"111.538788,36.099745|13"},{n:"吕梁",g:"111.143157,37.527316|14"},{n:"朔州",g:"112.479928,39.337672|13"},{n:"忻州",g:"112.727939,38.461031|12"},{n:"阳泉",g:"113.569238,37.869529|13"},{n:"运城",g:"111.006854,35.038859|13"}]},{n:"陕西",g:"109.503789,35.860026|7",cities:[{n:"西安",g:"108.953098,34.2778|12"},{n:"安康",g:"109.038045,32.70437|13"},{n:"宝鸡",g:"107.170645,34.364081|12"},{n:"汉中",g:"107.045478,33.081569|13"},{n:"商洛",g:"109.934208,33.873907|13"},{n:"铜川",g:"108.968067,34.908368|13"},{n:"渭南",g:"109.483933,34.502358|13"},{n:"咸阳",g:"108.707509,34.345373|13"},{n:"延安",g:"109.50051,36.60332|13"},{n:"榆林",g:"109.745926,38.279439|12"}]},{n:"四川",g:"102.89916,30.367481|7",cities:[{n:"成都",g:"104.067923,30.679943|12"},{n:"阿坝州",g:"102.228565,31.905763|15"},{n:"巴中",g:"106.757916,31.869189|14"},{n:"达州",g:"107.494973,31.214199|14"},{n:"德阳",g:"104.402398,31.13114|13"},{n:"甘孜州",g:"101.969232,30.055144|15"},{n:"广安",g:"106.63572,30.463984|13"},{n:"广元",g:"105.819687,32.44104|13"},{n:"乐山",g:"103.760824,29.600958|13"},{n:"凉山州",g:"102.259591,27.892393|14"},{n:"泸州",g:"105.44397,28.89593|14"},{n:"南充",g:"106.105554,30.800965|13"},{n:"眉山",g:"103.84143,30.061115|13"},{n:"绵阳",g:"104.705519,31.504701|12"},{n:"内江",g:"105.073056,29.599462|13"},{n:"攀枝花",g:"101.722423,26.587571|14"},{n:"遂宁",g:"105.564888,30.557491|12"},{n:"雅安",g:"103.009356,29.999716|13"},{n:"宜宾",g:"104.633019,28.769675|13"},{n:"资阳",g:"104.63593,30.132191|13"},{n:"自贡",g:"104.776071,29.359157|13"}]},{n:"西藏",g:"89.137982,31.367315|6",cities:[{n:"拉萨",g:"91.111891,29.662557|13"},{n:"阿里地区",g:"81.107669,30.404557|11"},{n:"昌都地区",g:"97.185582,31.140576|15"},{n:"林芝地区",g:"94.349985,29.666941|11"},{n:"那曲地区",g:"92.067018,31.48068|14"},{n:"日喀则地区",g:"88.891486,29.269023|14"},{n:"山南地区",g:"91.750644,29.229027|11"}]},{n:"新疆",g:"85.614899,42.127001|6",cities:[{n:"乌鲁木齐",g:"87.564988,43.84038|12"},{n:"阿拉尔",g:"81.291737,40.61568|13"},{n:"阿克苏地区",g:"80.269846,41.171731|12"},{n:"阿勒泰地区",g:"88.137915,47.839744|13"},{n:"巴音郭楞",g:"86.121688,41.771362|12"},{n:"博尔塔拉州",g:"82.052436,44.913651|11"},{n:"昌吉州",g:"87.296038,44.007058|13"},{n:"哈密地区",g:"93.528355,42.858596|13"},{n:"和田地区",g:"79.930239,37.116774|13"},{n:"喀什地区",g:"75.992973,39.470627|12"},{n:"克拉玛依",g:"84.88118,45.594331|13"},{n:"克孜勒苏州",g:"76.137564,39.750346|11"},{n:"石河子",g:"86.041865,44.308259|13"},{n:"塔城地区",g:"82.974881,46.758684|12"},{n:"图木舒克",g:"79.198155,39.889223|13"},{n:"吐鲁番地区",g:"89.181595,42.96047|13"},{n:"五家渠",g:"87.565449,44.368899|13"},{n:"伊犁州",g:"81.297854,43.922248|11"}]},{n:"云南",g:"101.592952,24.864213|7",cities:[{n:"昆明",g:"102.714601,25.049153|12"},{n:"保山",g:"99.177996,25.120489|13"},{n:"楚雄州",g:"101.529382,25.066356|13"},{n:"大理州",g:"100.223675,25.5969|14"},{n:"德宏州",g:"98.589434,24.44124|14"},{n:"迪庆州",g:"99.713682,27.831029|14"},{n:"红河州",g:"103.384065,23.367718|11"},{n:"丽江",g:"100.229628,26.875351|13"},{n:"临沧",g:"100.092613,23.887806|14"},{n:"怒江州",g:"98.859932,25.860677|14"},{n:"普洱",g:"100.980058,22.788778|14"},{n:"曲靖",g:"103.782539,25.520758|12"},{n:"昭通",g:"103.725021,27.340633|13"},{n:"文山",g:"104.089112,23.401781|14"},{n:"西双版纳",g:"100.803038,22.009433|13"},{n:"玉溪",g:"102.545068,24.370447|13"}]},{n:"浙江",g:"119.957202,29.159494|8",cities:[{n:"杭州",g:"120.219375,30.259244|12"},{n:"湖州",g:"120.137243,30.877925|12"},{n:"嘉兴",g:"120.760428,30.773992|13"},{n:"金华",g:"119.652576,29.102899|12"},{n:"丽水",g:"119.929576,28.4563|13"},{n:"宁波",g:"121.579006,29.885259|12"},{n:"衢州",g:"118.875842,28.95691|12"},{n:"绍兴",g:"120.592467,30.002365|13"},{n:"台州",g:"121.440613,28.668283|13"},{n:"温州",g:"120.690635,28.002838|12"},{n:"舟山",g:"122.169872,30.03601|13"}]}],other:[{n:"香港",g:"114.186124,22.293586|11"},{n:"澳门",g:"113.557519,22.204118|13"},{n:"台湾",g:"120.961454,23.80406|8"}]};function s(e){var t=e.split("|");return t[0]=t[0].split(","),{lng:parseFloat(t[0][0]),lat:parseFloat(t[0][1])}}var l={getProvinceNameByCityName:function(e){for(var t=a.provinces,n=0;n<t.length;n++)for(var r=t[n].n,i=t[n].cities,o=0;o<i.length;o++)if(i[o].n==e)return r;return null},getCenterByCityName:function(e){e=e.replace("市","");for(var t=0;t<a.municipalities.length;t++)if(a.municipalities[t].n==e)return s(a.municipalities[t].g);for(t=0;t<a.other.length;t++)if(a.other[t].n==e)return s(a.other[t].g);var n=a.provinces;for(t=0;t<n.length;t++){if(n[t].n==e)return s(n[t].g);for(var r=n[t].cities,i=0;i<r.length;i++)if(r[i].n==e)return s(r[i].g)}return null}},c=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},f=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},h=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t};function p(e,t){o.bind(this)(),this._options=t||{},this._data=[],e&&this.add(e)}function m(e,t,n){var r=60*n+30,i=Math.PI/180*r;return[e.x+t*Math.cos(i),e.y+t*Math.sin(i)]}function g(e,t,n,r){for(var i=0;i<6;i++){var o=m({x:t,y:n},r,i);e.lineTo(o[0],o[1])}}p.prototype=o.prototype,p.prototype.add=function(e,t){if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)if(e[n]){if(e[n].time&&14==e[n].time.length&&"20"==e[n].time.substr(0,2)){var i=e[n].time;e[n].time=new Date(i.substr(0,4)+"-"+i.substr(4,2)+"-"+i.substr(6,2)+" "+i.substr(8,2)+":"+i.substr(10,2)+":"+i.substr(12,2)).getTime()}this._data.push(e[n])}}else{if(!(e instanceof Object))throw new Error("Unknown dataType");this._data.push(e)}this._dataCache=JSON.parse(JSON.stringify(this._data))},p.prototype.reset=function(){this._data=JSON.parse(JSON.stringify(this._dataCache))},p.prototype.get=function(e){e=e||{};new Date;var t=this._data;new Date;if(e.filter){for(var n=[],r=0;r<t.length;r++)e.filter(t[r])&&n.push(t[r]);t=n}return e.transferCoordinate&&(t=this.transferCoordinate(t,e.transferCoordinate,e.fromColumn,e.toColumn)),t},p.prototype.set=function(e){this._set(e),this._trigger("change")},p.prototype._set=function(e){this.clear(),this.add(e)},p.prototype.clear=function(e){this._data=[]},p.prototype.remove=function(e){},p.prototype.update=function(e,t){for(var n=this._data,r=0;r<n.length;r++)if(t){var i=!0;for(var o in t)n[r][o]!=t[o]&&(i=!1);i&&e&&e(n[r])}else e&&e(n[r]);this._dataCache=JSON.parse(JSON.stringify(this._data)),this._trigger("change")},p.prototype.transferCoordinate=function(e,t,n,r){r=r||"_coordinates",n=n||"coordinates";for(var i=0;i<e.length;i++){var o=e[i].geometry,a=o[n];switch(o.type){case"Point":o[r]=t(a);break;case"LineString":for(var s=[],l=0;l<a.length;l++)s.push(t(a[l]));o[r]=s;break;case"MultiLineString":case"Polygon":s=d(a);o[r]=s;break;case"MultiPolygon":s=[];for(var c=0;c<a.length;c++){var u=a[c];u=d(u);s.push(u)}o[r]=s;break}}function d(e){for(var n=[],r=0;r<e.length;r++){for(var i=e[r],o=[],a=0;a<i.length;a++)o.push(t(i[a]));n.push(o)}return n}return e},p.prototype.initGeometry=function(e){e?this._data.forEach((function(t){t.geometry=e(t)})):this._data.forEach((function(e){if(!e.geometry)if(e.lng&&e.lat)e.geometry={type:"Point",coordinates:[e.lng,e.lat]};else if(e.city){var t=l.getCenterByCityName(e.city);t&&(e.geometry={type:"Point",coordinates:[t.lng,t.lat]})}}))},p.prototype.getMax=function(e){var t=this._data;if(t&&!(t.length<=0)){for(var n=parseFloat(t[0][e]),r=1;r<t.length;r++){var i=parseFloat(t[r][e]);i>n&&(n=i)}return n}},p.prototype.getSum=function(e){var t=this._data;if(t&&!(t.length<=0)){for(var n=0,r=0;r<t.length;r++)t[r][e]&&(n+=parseFloat(t[r][e]));return n}},p.prototype.getMin=function(e){var t=this._data;if(t&&!(t.length<=0)){for(var n=parseFloat(t[0][e]),r=1;r<t.length;r++){var i=parseFloat(t[r][e]);i<n&&(n=i)}return n}},p.prototype.getUnique=function(e){var t=this._data;if(t&&!(t.length<=0)){for(var n={},r=1;r<t.length;r++)n[t[r][e]]=!0;t=[];for(var i in n)t.push(i);return t}};var v={drawDataSet:function(e,t,n){for(var r=t instanceof p?t.get():t,i=0,o=r.length;i<o;i++){var a=r[i];this.draw(e,a,n)}},draw:function(e,t,n){var r=t.geometry.type,i=t.geometry._coordinates||t.geometry.coordinates,o=t.symbol||n.symbol||"circle";switch(r){case"Point":var a=t._size||t.size||n._size||n.size||5;"circle"===o?("Point"===n.bigData&&e.moveTo(i[0],i[1]),e.arc(i[0],i[1],a,0,2*Math.PI)):"rect"===o?e.rect(i[0]-a/2,i[1]-a/2,a,a):"honeycomb"===o&&g(e,i[0],i[1],a);break;case"LineString":this.drawLineString(e,i);break;case"MultiLineString":for(var s=0;s<i.length;s++){var l=i[s];this.drawLineString(e,l)}break;case"Polygon":this.drawPolygon(e,i);break;case"MultiPolygon":for(s=0;s<i.length;s++){var c=i[s];if(this.drawPolygon(e,c),n.multiPolygonDraw){var u=n.multiPolygonDraw();if(u)return u}}break;default:console.error("type"+r+"is not support now!");break}},drawLineString:function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0],i=t[n][1];0==n?e.moveTo(r,i):e.lineTo(r,i)}},drawPolygon:function(e,t){e.beginPath();for(var n=0;n<t.length;n++){var r=t[n];e.moveTo(r[0][0],r[0][1]);for(var i=1;i<r.length;i++)e.lineTo(r[i][0],r[i][1]);e.lineTo(r[0][0],r[0][1]),e.closePath()}}},y={draw:function(e,t,n){var r=t instanceof p?t.get():t;for(var i in e.save(),n)e[i]=n[i];if(n.bigData){e.save(),e.beginPath();for(var o=0,a=r.length;o<a;o++){var s=r[o];v.draw(e,s,n)}var l=n.bigData;"Point"==l||"Polygon"==l||"MultiPolygon"==l?(e.fill(),e.lineDash&&e.setLineDash(e.lineDash),s.lineDash&&e.setLineDash(s.lineDash),(s.strokeStyle||n.strokeStyle)&&n.lineWidth&&e.stroke()):"LineString"!=l&&"MultiLineString"!=l||e.stroke(),e.restore()}else for(o=0,a=r.length;o<a;o++){s=r[o];e.save(),(s.fillStyle||s._fillStyle)&&(e.fillStyle=s.fillStyle||s._fillStyle),(s.strokeStyle||s._strokeStyle)&&(e.strokeStyle=s.strokeStyle||s._strokeStyle),e.lineDash&&e.setLineDash(e.lineDash),s.lineDash&&e.setLineDash(s.lineDash);l=s.geometry.type;e.beginPath(),n.multiPolygonDraw=function(){e.fill(),(s.strokeStyle||n.strokeStyle)&&n.lineWidth&&e.stroke()},v.draw(e,s,n),"Point"==l||"Polygon"==l||"MultiPolygon"==l?(e.fill(),(s.strokeStyle||n.strokeStyle)&&n.lineWidth&&e.stroke()):"LineString"!=l&&"MultiLineString"!=l||((s.lineWidth||s._lineWidth)&&(e.lineWidth=s.lineWidth||s._lineWidth),e.stroke()),e.restore()}e.restore()}};function b(e,t){if("undefined"===typeof document);else{var n=document.createElement("canvas");e&&(n.width=e),t&&(n.height=t)}return n}function _(e){e=e||{},this.gradient=e.gradient||{.25:"rgba(0, 0, 255, 1)",.55:"rgba(0, 255, 0, 1)",.85:"rgba(255, 255, 0, 1)",1:"rgba(255, 0, 0, 1)"},this.maxSize=e.maxSize||35,this.minSize=e.minSize||0,this.max=e.max||100,this.min=e.min||0,this.initPalette()}_.prototype.setMax=function(e){this.max=e||100},_.prototype.setMin=function(e){this.min=e||0},_.prototype.setMaxSize=function(e){this.maxSize=e||35},_.prototype.setMinSize=function(e){this.minSize=e||0},_.prototype.initPalette=function(){var e=this.gradient,t=new b(256,1),n=this.paletteCtx=t.getContext("2d"),r=n.createLinearGradient(0,0,256,1);for(var i in e)r.addColorStop(parseFloat(i),e[i]);n.fillStyle=r,n.fillRect(0,0,256,1)},_.prototype.getColor=function(e){var t=this.getImageData(e);return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]/256+")"},_.prototype.getImageData=function(e){var t=this.paletteCtx.getImageData(0,0,256,1).data;if(void 0===e)return t;var n=this.max,r=this.min;e>n&&(e=n),e<r&&(e=r);var i=4*Math.floor((e-r)/(n-r)*255);return[t[i],t[i+1],t[i+2],t[i+3]]},_.prototype.getSize=function(e){var t=0,n=this.max,r=this.min,i=this.maxSize,o=this.minSize;return e>n&&(e=n),e<r&&(e=r),n>r?(t=o+(e-r)/(n-r)*(i-o),t):i},_.prototype.getLegend=function(e){var t=this.gradient,n=e.width||20,r=e.height||180,i=new b(n,r),o=i.getContext("2d"),a=o.createLinearGradient(0,r,0,0);for(var s in t)a.addColorStop(parseFloat(s),t[s]);return o.fillStyle=a,o.fillRect(0,0,n,r),i};var w="undefined"===typeof window?{}:window,x=w.devicePixelRatio||1;function S(e){var t=e/2,n=e+t,r=1e4,i=new b(2*n,2*n),o=i.getContext("2d");return o.shadowBlur=t,o.shadowColor="black",o.shadowOffsetX=o.shadowOffsetY=r,o.beginPath(),o.arc(n-r,n-r,e,0,2*Math.PI,!0),o.closePath(),o.fill(),i}function C(e,t,n){var r=E(n),i=k(n),o=r-i,a=n.range||null,s=0,l=1024;a&&2===a.length&&(s=(a[0]-i)/o*1024),a&&2===a.length&&(l=(a[1]-i)/o*1024);for(var c,u=n.maxOpacity||.8,d=n.minOpacity||0,f=(a=n.range,3),h=e.length;f<h;f+=4)c=4*e[f],e[f]/256>u&&(e[f]=256*u),e[f]/256<d&&(e[f]=256*d),c&&c>=s&&c<=l?(e[f-3]=t[c],e[f-2]=t[c+1],e[f-1]=t[c+2]):e[f]=0}function E(e){var t=e.max||100;return t}function k(e){var t=e.min||0;return t}function O(e,t,n){var r=E(n),i=k(n),o=n._size;void 0==o&&(o=n.size,void 0==o&&(o=13));var a=new _({gradient:n.gradient,max:r,min:i}),s=S(o),l=s.width/2,c=s.height/2,u=t,d={};for(var f in u.forEach((function(e,t){var n=void 0===e.count?1:e.count,i=Math.min(1,n/r).toFixed(2);d[i]=d[i]||[],d[i].push(e)})),d)if(!isNaN(f)){var h=d[f];e.beginPath(),n.withoutAlpha||(e.globalAlpha=f),e.strokeStyle=a.getColor(f*r),h.forEach((function(t,i){if(t.geometry){var o=t.geometry._coordinates||t.geometry.coordinates,a=t.geometry.type;if("Point"===a){var u=void 0===t.count?1:t.count;e.globalAlpha=u/r,e.drawImage(s,o[0]-l,o[1]-c)}else if("LineString"===a){u=void 0===t.count?1:t.count;e.globalAlpha=u/r,e.beginPath(),v.draw(e,t,n),e.stroke()}}}))}}function T(e,t,n){if(!(e.canvas.width<=0||e.canvas.height<=0)){var r=n.strength||.3;e.strokeStyle="rgba(0,0,0,"+r+")";var i=new b(e.canvas.width,e.canvas.height),o=i.getContext("2d");o.scale(x,x),n=n||{};var a=t instanceof p?t.get():t;e.save();var s=new _({gradient:n.gradient});if(O(o,a,n),!n.absolute){var l=o.getImageData(0,0,e.canvas.width,e.canvas.height);C(l.data,s.getImageData(),n),e.putImageData(l,0,0),e.restore()}s=null,i=null}}var I={draw:T},A={draw:function(e,t,n){e.save();var r=t instanceof p?t.get():t,i={},o=n._size||n.size||50,a=!("enableCluster"in n)||n.enableCluster,s=n.offset||{x:0,y:0},l=new _({min:n.min||0,max:n.max||100,gradient:n.gradient});if(a){for(var c=0;c<r.length;c++){f=r[c].geometry._coordinates||r[c].geometry.coordinates,h=Math.floor((f[0]-s.x)/o)+","+Math.floor((f[1]-s.y)/o);i[h]||(i[h]=0),i[h]+=~~(r[c].count||1)}for(var u in i)u=u.split(","),e.beginPath(),e.rect(u[0]*o+.5+s.x,u[1]*o+.5+s.y,o,o),e.fillStyle=l.getColor(i[u]),e.fill(),n.strokeStyle&&n.lineWidth&&e.stroke()}else{for(var d=0;d<r.length;d++){var f=r[d].geometry._coordinates||r[d].geometry.coordinates,h=f.join(",");i[h]=r[d].count||1}for(var m in i)m=m.split(","),e.beginPath(),e.rect(+m[0]-o/2,+m[1]-o/2,o,o),e.fillStyle=l.getColor(i[m]),e.fill(),n.strokeStyle&&n.lineWidth&&e.stroke()}if(n.label&&!1!==n.label.show)for(var h in e.fillStyle=n.label.fillStyle||"white",n.label.font&&(e.font=n.label.font),n.label.shadowColor&&(e.shadowColor=n.label.shadowColor),n.label.shadowBlur&&(e.shadowBlur=n.label.shadowBlur),i){h=h.split(",");var g=i[h],v=e.measureText(g).width;a?e.fillText(g,h[0]*o+.5+s.x+o/2-v/2,h[1]*o+.5+s.y+o/2+5):e.fillText(g,+h[0]-v/2,+h[1]+5)}e.restore()}};function R(e,t,n){var r=60*n+30,i=Math.PI/180*r;return[e.x+t*Math.cos(i),e.y+t*Math.sin(i)]}var M={draw:function(e,t,n){e.save();var r=t instanceof p?t.get():t;for(var i in n)e[i]=n[i];var o=n.offset||{x:10,y:10},a=n._size||n.size||40;a=a/2/Math.sin(Math.PI/3);for(var s=2*a*Math.sin(Math.PI/3),l=1.5*a,c={},u=0;u<r.length;u++){var d=r[u].geometry._coordinates||r[u].geometry.coordinates,f=(d[1]-o.y)/l,h=Math.round(f),m=(d[0]-o.x)/s-(1&h?.5:0),g=Math.round(m),v=f-h;if(3*Math.abs(v)>1){var y=m-g,b=g+(m<g?-1:1)/2,w=h+(f<h?-1:1),x=m-b,S=f-w;y*y+v*v>x*x+S*S&&(g=b+(1&h?1:-1)/2,h=w)}var C=g+"-"+h,E=c[C];E?E.push(r[u]):(E=c[C]=[r[u]],E.i=g,E.j=h,E.x=(g+(1&h?.5:0))*s,E.y=h*l)}var k=new _({max:n.max||100,maxSize:a,gradient:n.gradient});for(var i in c){var O=c[i];e.beginPath();for(var T=0;T<6;T++){var I=R({x:O.x+o.x,y:O.y+o.y},a,T);e.lineTo(I[0],I[1])}e.closePath();var A=0;for(u=0;u<O.length;u++)A+=O[u].count||1;O.count=A,e.fillStyle=k.getColor(A),e.fill(),n.strokeStyle&&n.lineWidth&&e.stroke()}if(n.label&&!1!==n.label.show)for(var i in e.fillStyle=n.label.fillStyle||"white",n.label.font&&(e.font=n.label.font),n.label.shadowColor&&(e.shadowColor=n.label.shadowColor),n.label.shadowBlur&&(e.shadowBlur=n.label.shadowBlur),c){O=c[i];var P=O.count;P=P<0?P.toFixed(2):~~P;var M=e.measureText(P).width;e.fillText(P,O.x+o.x-M/2,O.y+o.y+5)}e.restore()}};function N(e,t,n){var r=e.createShader(n);return e.shaderSource(r,t),e.compileShader(r),r}function D(e,t,n){var r=N(e,t,e.VERTEX_SHADER),i=N(e,n,e.FRAGMENT_SHADER),o=e.createProgram();return e.attachShader(o,r),e.attachShader(o,i),e.linkProgram(o),e.useProgram(o),o}function j(e){var t=document.createElement("canvas"),n=t.getContext("2d");return t.width=1,t.height=1,n.fillStyle=e,n.fillRect(0,0,1,1),n.getImageData(0,0,1,1).data}var F=["attribute vec4 a_Position;","void main() {","gl_Position = a_Position;","gl_PointSize = 30.0;","}"].join(""),B=["precision mediump float;","uniform vec4 u_FragColor;","void main() {","gl_FragColor = u_FragColor;","}"].join("");function q(e,t,n){if(t){var r=D(e,F,B);e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE),e.clear(e.COLOR_BUFFER_BIT);var i=e.canvas.width/2,o=e.canvas.height/2,a=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a);var s=e.getAttribLocation(r,"a_Position");e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(s);var l=e.getUniformLocation(r,"u_FragColor"),c=j(n.strokeStyle||"red");e.uniform4f(l,c[0]/255,c[1]/255,c[2]/255,c[3]/255),e.lineWidth(n.lineWidth||1);for(var u=0,d=t.length;u<d;u++){for(var f=t[u].geometry._coordinates,h=[],p=0;p<f.length;p++){var m=f[p],g=(m[0]-i)/i,v=(o-m[1])/o;h.push(g,v)}var y=new Float32Array(h);e.bufferData(e.ARRAY_BUFFER,y,e.STATIC_DRAW),e.drawArrays(e.LINE_STRIP,0,f.length)}}}var z={draw:q},U=["attribute vec4 a_Position;","attribute float a_PointSize;","void main() {","gl_Position = a_Position;","gl_PointSize = a_PointSize;","}"].join(""),G=["precision mediump float;","uniform vec4 u_FragColor;","void main() {","gl_FragColor = u_FragColor;","}"].join("");function V(e,t,n){if(t){var r=D(e,U,G),i=e.getAttribLocation(r,"a_Position"),o=e.getAttribLocation(r,"a_PointSize"),a=e.getUniformLocation(r,"u_FragColor");e.clear(e.COLOR_BUFFER_BIT);for(var s=e.canvas.width/2,l=e.canvas.height/2,c=[],u=0,d=0;d<t.length;d++){var f=t[d].geometry._coordinates,h=(f[0]-s)/s,p=(l-f[1])/l;h<-1||h>1||p<-1||p>1||(c.push(h,p),u++)}var m=new Float32Array(c),g=u,v=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,v),e.bufferData(e.ARRAY_BUFFER,m,e.STATIC_DRAW),e.vertexAttribPointer(i,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(i),e.vertexAttrib1f(o,n._size);var y=j(n.fillStyle||"red");e.uniform4f(a,y[0]/255,y[1]/255,y[2]/255,y[3]/255),e.drawArrays(e.POINTS,0,g)}}var W={draw:V};function H(e,t,n){n=n||2;var r,i,o,a,s,l,c,u=t&&t.length,d=u?t[0]*n:e.length,f=$(e,0,d,n,!0),h=[];if(!f)return h;if(u&&(f=ee(e,t,f,n)),e.length>80*n){r=o=e[0],i=a=e[1];for(var p=n;p<d;p+=n)s=e[p],l=e[p+1],s<r&&(r=s),l<i&&(i=l),s>o&&(o=s),l>a&&(a=l);c=Math.max(o-r,a-i)}return X(f,h,n,r,i,c),h}function $(e,t,n,r,i){var o,a;if(i===_e(e,t,n,r)>0)for(o=t;o<n;o+=r)a=ve(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=ve(o,e[o],e[o+1],a);return a&&de(a,a.next)&&(ye(a),a=a.next),a}function K(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!de(r,r.next)&&0!==ue(r.prev,r,r.next))r=r.next;else{if(ye(r),r=t=r.prev,r===r.next)return null;n=!0}}while(n||r!==t);return t}function X(e,t,n,r,i,o,a){if(e){!a&&o&&ie(e,r,i,o);var s,l,c=e;while(e.prev!==e.next)if(s=e.prev,l=e.next,o?J(e,r,i,o):Y(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),ye(e),e=l.next,c=l.next;else if(e=l,e===c){a?1===a?(e=Q(e,t,n),X(e,t,n,r,i,o,2)):2===a&&Z(e,t,n,r,i,o):X(K(e),t,n,r,i,o,1);break}}}function Y(e){var t=e.prev,n=e,r=e.next;if(ue(t,n,r)>=0)return!1;var i=e.next.next;while(i!==e.prev){if(le(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&ue(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function J(e,t,n,r){var i=e.prev,o=e,a=e.next;if(ue(i,o,a)>=0)return!1;var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,l=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,d=ae(s,l,t,n,r),f=ae(c,u,t,n,r),h=e.nextZ;while(h&&h.z<=f){if(h!==e.prev&&h!==e.next&&le(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&ue(h.prev,h,h.next)>=0)return!1;h=h.nextZ}h=e.prevZ;while(h&&h.z>=d){if(h!==e.prev&&h!==e.next&&le(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&ue(h.prev,h,h.next)>=0)return!1;h=h.prevZ}return!0}function Q(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!de(i,o)&&fe(i,r,r.next,o)&&pe(i,o)&&pe(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),ye(r),ye(r.next),r=e=o),r=r.next}while(r!==e);return r}function Z(e,t,n,r,i,o){var a=e;do{var s=a.next.next;while(s!==a.prev){if(a.i!==s.i&&ce(a,s)){var l=ge(a,s);return a=K(a,a.next),l=K(l,l.next),X(a,t,n,r,i,o),void X(l,t,n,r,i,o)}s=s.next}a=a.next}while(a!==e)}function ee(e,t,n,r){var i,o,a,s,l,c=[];for(i=0,o=t.length;i<o;i++)a=t[i]*r,s=i<o-1?t[i+1]*r:e.length,l=$(e,a,s,r,!1),l===l.next&&(l.steiner=!0),c.push(se(l));for(c.sort(te),i=0;i<c.length;i++)ne(c[i],n),n=K(n,n.next);return n}function te(e,t){return e.x-t.x}function ne(e,t){if(t=re(e,t),t){var n=ge(t,e);K(n,n.next)}}function re(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===a)return n.prev;var l,c=n,u=n.x,d=n.y,f=1/0;r=n.next;while(r!==c)i>=r.x&&r.x>=u&&le(o<d?i:a,o,u,d,o<d?a:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),(l<f||l===f&&r.x>n.x)&&pe(r,e)&&(n=r,f=l)),r=r.next;return n}function ie(e,t,n,r){var i=e;do{null===i.z&&(i.z=ae(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,oe(i)}function oe(e){var t,n,r,i,o,a,s,l,c=1;do{n=e,e=null,o=null,a=0;while(n){for(a++,r=n,s=0,t=0;t<c;t++)if(s++,r=r.nextZ,!r)break;l=c;while(s>0||l>0&&r)0===s?(i=r,r=r.nextZ,l--):0!==l&&r?n.z<=r.z?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,s--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1);return e}function ae(e,t,n,r,i){return e=32767*(e-n)/i,t=32767*(t-r)/i,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1}function se(e){var t=e,n=e;do{t.x<n.x&&(n=t),t=t.next}while(t!==e);return n}function le(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function ce(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!he(e,t)&&pe(e,t)&&pe(t,e)&&me(e,t)}function ue(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function de(e,t){return e.x===t.x&&e.y===t.y}function fe(e,t,n,r){return!!(de(e,t)&&de(n,r)||de(e,r)&&de(n,t))||ue(e,t,n)>0!==ue(e,t,r)>0&&ue(n,r,e)>0!==ue(n,r,t)>0}function he(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&fe(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function pe(e,t){return ue(e.prev,e,e.next)<0?ue(e,t,e.next)>=0&&ue(e,e.prev,t)>=0:ue(e,t,e.prev)<0||ue(e,e.next,t)<0}function me(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!==n.next.y>o&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}function ge(e,t){var n=new be(e.i,e.x,e.y),r=new be(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function ve(e,t,n,r){var i=new be(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ye(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function be(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _e(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}H.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,a=Math.abs(_e(e,0,o,n));if(i)for(var s=0,l=t.length;s<l;s++){var c=t[s]*n,u=s<l-1?t[s+1]*n:e.length;a-=Math.abs(_e(e,c,u,n))}var d=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,h=r[s+1]*n,p=r[s+2]*n;d+=Math.abs((e[f]-e[p])*(e[h+1]-e[f+1])-(e[f]-e[h])*(e[p+1]-e[f+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},H.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n};var we=["attribute vec4 a_Position;","void main() {","gl_Position = a_Position;","gl_PointSize = 30.0;","}"].join(""),xe=["precision mediump float;","uniform vec4 u_FragColor;","void main() {","gl_FragColor = u_FragColor;","}"].join("");function Se(e,t,n){if(t){e.clear(e.COLOR_BUFFER_BIT),e.viewport(0,0,e.canvas.width,e.canvas.height);var r=D(e,we,xe);e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE);var i=e.canvas.width/2,o=e.canvas.height/2;e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,e.createBuffer());var a=e.getAttribLocation(r,"a_Position");e.vertexAttribPointer(a,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(a);var s=e.getUniformLocation(r,"u_FragColor"),l=j(n.fillStyle||"red");e.uniform4f(s,l[0]/255,l[1]/255,l[2]/255,l[3]/255),e.lineWidth(n.lineWidth||1);for(var c=[],u=[],d=65536,f=0,h=0,p=t.length;h<p;h++){var m=H.flatten(t[h].geometry._coordinates||t[h].geometry.coordinates),g=m.vertices;f=c.length/2;for(var v=0;v<g.length;v+=2)g[v]=(g[v]-i)/i,g[v+1]=(o-g[v+1])/o;(c.length+g.length)/2>d&&(e.bufferData(e.ARRAY_BUFFER,new Float32Array(c),e.STATIC_DRAW),e.bufferData(e.ELEMENT_ARRAY_BUFFER,new Uint16Array(u),e.STATIC_DRAW),e.drawElements(e.TRIANGLES,u.length,e.UNSIGNED_SHORT,0),c.length=0,u.length=0,f=0);for(v=0;v<g.length;v++)c.push(g[v]);var y=H(g,m.holes,m.dimensions);for(v=0;v<y.length;v++)u.push(y[v]+f)}e.bufferData(e.ARRAY_BUFFER,new Float32Array(c),e.STATIC_DRAW),e.bufferData(e.ELEMENT_ARRAY_BUFFER,new Uint16Array(u),e.STATIC_DRAW),e.drawElements(e.TRIANGLES,u.length,e.UNSIGNED_SHORT,0),e.bindBuffer(e.ARRAY_BUFFER,null),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null)}}var Ce={draw:Se},Ee={draw:function(e,t,n){var r=t instanceof p?t.get():t;r.length>0&&("LineString"==r[0].geometry.type?z.draw(e,r,n):"Polygon"==r[0].geometry.type||"MultiPolygon"==r[0].geometry.type?Ce.draw(e,r,n):W.draw(e,r,n))}};function ke(e,t){t=t||{};for(var n=[],r=0;r<e.length-1;r++){var i=Oe(e[r],e[r+1],t.count);i&&i.length>0&&(n=n.concat(i))}return n}function Oe(e,t,n){if(!e||!t)return null;var r,i,o,a,s,l,c=function(e){return 1-2*e+e*e},u=function(e){return 2*e-2*e*e},d=function(e){return e*e},f=[],h=(n=n||40,0),p=0;if("undefined"!=typeof t){var m=parseFloat(e.lat),g=parseFloat(t.lat),v=parseFloat(e.lng),y=parseFloat(t.lng);for(y>v&&parseFloat(y-v)>180&&v<0&&(v=parseFloat(360+v),y=parseFloat(360+y)),0,l=0,g==m?(r=0,i=v-y):y==v?(r=Math.PI/2,i=m-g):(r=Math.atan((g-m)/(y-v)),i=(g-m)/Math.sin(r)),0==l&&(l=r+Math.PI/5),o=i/2,s=o*Math.cos(l)+v,a=o*Math.sin(l)+m,h=0;h<n+1;h++){var b=v*c(p)+s*u(p)+y*d(p),_=m*c(p)+a*u(p)+g*d(p),w=e.lng,x=t.lng;f.push([w<0&&x>0?b-360:b,_]),p+=1/n}return f}"undefined"!=typeof f&&(f=[])}var Te={getPoints:ke},Ie=function(){var e={},t=[],n=[],r=[],i=.1,o=.1,a=1,s=2,l=6,c=70,u=.6666667,d=.6,f=1e-8;function h(e,t){return e.x*t.x+e.y*t.y}function p(t){return{x:e[t.target].x-e[t.source].x,y:e[t.target].y-e[t.source].y}}function m(t){return Math.sqrt(Math.pow(e[t.source].x-e[t.target].x,2)+Math.pow(e[t.source].y-e[t.target].y,2))}function g(e){return Math.sqrt(Math.pow(e.source.x-e.target.x,2)+Math.pow(e.source.y-e.target.y,2))}function v(t){var n=(e[t.source].x+e[t.target].x)/2,r=(e[t.source].y+e[t.target].y)/2;return{x:n,y:r}}function y(e){for(var t=0,n=1;n<r[e].length;n++){var i=b(r[e][n],r[e][n-1]);t+=i}return t}function b(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _(e,t){var n=Math.sqrt((t.target.x-t.source.x)*(t.target.x-t.source.x)+(t.target.y-t.source.y)*(t.target.y-t.source.y)),r=((t.source.y-e.y)*(t.source.y-t.target.y)-(t.source.x-e.x)*(t.target.x-t.source.x))/(n*n);return{x:t.source.x+r*(t.target.x-t.source.x),y:t.source.y+r*(t.target.y-t.source.y)}}function w(){for(var n=0;n<t.length;n++)1==a?r[n]=[]:(r[n]=[],r[n].push(e[t[n].source]),r[n].push(e[t[n].target]))}function x(){for(var e=0;e<t.length;e++)n[e]=[]}function S(t){for(var n=[],r=0;r<t.length;r++)e[t[r].source].x!=e[t[r].target].x&&e[t[r].source].y!=e[t[r].target].y&&n.push(t[r]);return n}function C(e,t,n){var i=r[e][t-1],o=r[e][t+1],a=r[e][t],s=i.x-a.x+o.x-a.x,l=i.y-a.y+o.y-a.y;return s*=n,l*=n,{x:s,y:l}}function E(e,t,i){for(var o={x:0,y:0},a=n[e],s=0;s<a.length;s++){var l={x:r[a[s]][t].x-r[e][t].x,y:r[a[s]][t].y-r[e][t].y};if(Math.abs(l.x)>f||Math.abs(l.y)>f){var c=1/Math.pow(g({source:r[a[s]][t],target:r[e][t]}),1);o.x+=l.x*c,o.y+=l.y*c}}return o}function k(e,n,r){for(var o=i/(m(t[e])*(n+1)),a=[{x:0,y:0}],s=1;s<n+1;s++){var l={x:0,y:0},c=C(e,s,o),u=E(e,s,r);l.x=r*(c.x+u.x),l.y=r*(c.y+u.y),a.push(l)}return a.push({x:0,y:0}),a}function O(n){for(var i=0;i<t.length;i++)if(1==n)r[i].push(e[t[i].source]),r[i].push(v(t[i])),r[i].push(e[t[i].target]);else{var o=y(i),a=o/(n+1),s=a,l=[];l.push(e[t[i].source]);for(var c=1;c<r[i].length;c++){var u=b(r[i][c],r[i][c-1]);while(u>s){var d=s/u,f=r[i][c-1].x,h=r[i][c-1].y;f+=d*(r[i][c].x-r[i][c-1].x),h+=d*(r[i][c].y-r[i][c-1].y),l.push({x:f,y:h}),u-=s,s=a}s-=u}l.push(e[t[i].target]),r[i]=l}}function T(e,t){var n=Math.abs(h(p(e),p(t))/(m(e)*m(t)));return n}function I(e,t){var n=(m(e)+m(t))/2,r=2/(n/Math.min(m(e),m(t))+Math.max(m(e),m(t))/n);return r}function A(t,n){var r=(m(t)+m(n))/2,i={x:(e[t.source].x+e[t.target].x)/2,y:(e[t.source].y+e[t.target].y)/2},o={x:(e[n.source].x+e[n.target].x)/2,y:(e[n.source].y+e[n.target].y)/2},a=r/(r+b(i,o));return a}function R(t,n){var r=_(e[n.source],{source:e[t.source],target:e[t.target]}),i=_(e[n.target],{source:e[t.source],target:e[t.target]}),o={x:(r.x+i.x)/2,y:(r.y+i.y)/2},a={x:(e[t.source].x+e[t.target].x)/2,y:(e[t.source].y+e[t.target].y)/2},s=Math.max(0,1-2*b(a,o)/b(r,i));return s}function M(e,t){return Math.min(R(e,t),R(t,e))}function N(e,t){var n=T(e,t)*I(e,t)*A(e,t)*M(e,t);return n}function L(e,t){return N(e,t)>=d}function D(){for(var e=0;e<t.length-1;e++)for(var r=e+1;r<t.length;r++)e!=r&&L(t[e],t[r])&&(n[e].push(r),n[r].push(e))}var j=function(){var e=o,n=c,i=a;w(),x(),O(i),D();for(var s=0;s<l;s++){for(var d=0;d<n;d++){for(var f=[],h=0;h<t.length;h++)f[h]=k(h,i,e);for(var p=0;p<t.length;p++)for(var m=0;m<i+1;m++)r[p][m].x+=f[p][m].x,r[p][m].y+=f[p][m].y}e/=2,i*=2,n*=u,O(i)}return r};return j.nodes=function(t){return 0==arguments.length?e:(e=t,j)},j.edges=function(e){return 0==arguments.length?t:(t=S(e),j)},j.bundling_stiffness=function(e){return 0==arguments.length?i:(i=e,j)},j.step_size=function(e){return 0==arguments.length?o:(o=e,j)},j.cycles=function(e){return 0==arguments.length?l:(l=e,j)},j.iterations=function(e){return 0==arguments.length?c:(c=e,j)},j.iterations_rate=function(e){return 0==arguments.length?u:(u=e,j)},j.subdivision_points_seed=function(e){return 0==arguments.length?P:(P=e,j)},j.subdivision_rate=function(e){return 0==arguments.length?s:(s=e,j)},j.compatbility_threshold=function(e){return 0==arguments.length?compatbility_threshold:(d=e,j)},j};function Ae(e){this.splitList=e||{other:1}}function Re(e){this.splitList=e||[{start:0,value:"red"}]}Ae.prototype.get=function(e){var t=this.splitList,n=t["other"];for(var r in t)if(e==r){n=t[r];break}return n},Ae.prototype.generateByDataSet=function(e,t){var n=t||["rgba(255, 255, 0, 0.8)","rgba(253, 98, 104, 0.8)","rgba(255, 146, 149, 0.8)","rgba(255, 241, 193, 0.8)","rgba(110, 176, 253, 0.8)","rgba(52, 139, 251, 0.8)","rgba(17, 102, 252, 0.8)"],r=e.get();this.splitList={};for(var i=0,o=0;o<r.length;o++)if(void 0===this.splitList[r[o].count]&&(this.splitList[r[o].count]=n[i],i++),i>=n.length-1)break;this.splitList["other"]=n[n.length-1]},Ae.prototype.getLegend=function(e){var t=this.splitList,n=document.createElement("div");n.style.cssText="background:#fff; padding: 5px; border: 1px solid #ccc;";var r="";for(var i in t)r+='<div style="line-height: 19px;" value="'+i+'"><span style="vertical-align: -2px; display: inline-block; width: 30px;height: 19px;background:'+t[i]+';"></span><span style="margin-left: 3px;">'+i+"<span></div>";return n.innerHTML=r,n},Re.prototype.get=function(e){for(var t=this.splitList,n=!1,r=0;r<t.length;r++)if((void 0===t[r].start||void 0!==t[r].start&&e>=t[r].start)&&(void 0===t[r].end||void 0!==t[r].end&&e<t[r].end)){n=t[r].value;break}return n},Re.prototype.generateByDataSet=function(e){var t=e.getMin("count"),n=e.getMax("count");this.generateByMinMax(t,n)},Re.prototype.generateByMinMax=function(e,t){var n=["rgba(255, 255, 0, 0.8)","rgba(253, 98, 104, 0.8)","rgba(255, 146, 149, 0.8)","rgba(255, 241, 193, 0.8)","rgba(110, 176, 253, 0.8)","rgba(52, 139, 251, 0.8)","rgba(17, 102, 252, 0.8)"],r=Number((t-e)/7);t=Number(t);var i=Number(e);this.splitList=[];var o=0;while(i<t)this.splitList.push({start:i,end:i+r,value:n[o]}),o++,i+=r},Re.prototype.getLegend=function(e){this.splitList};var Pe=function(){function e(t,n,r){if(c(this,e),!t||!n)return console.warn("id 和 type 为必填项"),!1;if("baidu"==n){if(!BMap)return console.warn("请先引入百度地图JS API"),!1}else console.warn("暂不支持你的地图类型");this.type=n;var i=r&&r.center?r.center:[106.962497,38.208726],o=r&&r.zoom?r.zoom:5,a=this.map=new BMap.Map(t,{enableMapClick:!1});a.centerAndZoom(new BMap.Point(i[0],i[1]),o),a.enableScrollWheelZoom(!0),a.setMapStyle({style:"light"})}return u(e,[{key:"addLayer",value:function(e,t){if("baidu"==this.type)return new mapv.baiduMapLayer(this.map,dataSet,t)}},{key:"getMap",value:function(){return this.map}}]),e}();function Me(e){this.options=e||{},this.paneName=this.options.paneName||"mapPane",this.context=this.options.context||"2d",this.zIndex=this.options.zIndex||0,this.mixBlendMode=this.options.mixBlendMode||null,this.enableMassClear=this.options.enableMassClear,this._map=e.map,this._lastDrawTime=null,this.show()}var Ne="undefined"===typeof window?{}:window,Le=Ne.BMap||Ne.BMapGL;Le&&(Me.prototype=new Le.Overlay,Me.prototype.initialize=function(e){this._map=e;var t=this.canvas=document.createElement("canvas");t.style.cssText="position:absolute;left:0;top:0;z-index:"+this.zIndex+";user-select:none;",t.style.mixBlendMode=this.mixBlendMode,this.adjustSize();var n=e.getPanes()[this.paneName];n||(n=e.getPanes().floatShadow),n.appendChild(t);var r=this;return e.addEventListener("resize",(function(){r.adjustSize(),r._draw()})),e.addEventListener("update",(function(){r._draw()})),this.options.updateImmediate&&setTimeout((function(){r._draw()}),100),this.canvas},Me.prototype.adjustSize=function(){var e=this._map.getSize(),t=this.canvas,n=this.devicePixelRatio=Ne.devicePixelRatio||1;t.width=e.width*n,t.height=e.height*n,"2d"==this.context&&t.getContext(this.context).scale(n,n),t.style.width=e.width+"px",t.style.height=e.height+"px"},Me.prototype.draw=function(){var e=this;this.options.updateImmediate?e._draw():(clearTimeout(e.timeoutID),e.timeoutID=setTimeout((function(){e._draw()}),15))},Me.prototype._draw=function(){var e=this._map,t=e.getSize(),n=e.getCenter();if(n){var r=e.pointToOverlayPixel(n);this.canvas.style.left=r.x-t.width/2+"px",this.canvas.style.top=r.y-t.height/2+"px",this.dispatchEvent("draw"),this.options.update&&this.options.update.call(this)}},Me.prototype.getContainer=function(){return this.canvas},Me.prototype.show=function(){this.canvas||this._map.addOverlay(this),this.canvas.style.display="block"},Me.prototype.hide=function(){this.canvas.style.display="none"},Me.prototype.setZIndex=function(e){this.zIndex=e,this.canvas.style.zIndex=this.zIndex},Me.prototype.getZIndex=function(){return this.zIndex});var De=De||function(){var e=[];return{getAll:function(){return e},removeAll:function(){e=[]},add:function(t){e.push(t)},remove:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)},update:function(t,n){if(0===e.length)return!1;var r=0;t=void 0!==t?t:De.now();while(r<e.length)e[r].update(t)||n?r++:e.splice(r,1);return!0}}}();function je(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=360*Math.atan(r/n)/(2*Math.PI);return t[0]<e[0]&&(i+=180),i}"undefined"===typeof window&&"undefined"!==typeof e?De.now=function(){var t=e.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!==typeof window&&void 0!==window.performance&&void 0!==window.performance.now?De.now=window.performance.now.bind(window.performance):void 0!==Date.now?De.now=Date.now:De.now=function(){return(new Date).getTime()},De.Tween=function(e){var t,n=e,r={},i={},o={},a=1e3,s=0,l=!1,c=!1,u=!1,d=0,f=null,h=De.Easing.Linear.None,p=De.Interpolation.Linear,m=[],g=null,v=!1,y=null,b=null,_=null;this.to=function(e,t){return i=e,void 0!==t&&(a=t),this},this.start=function(e){for(var t in De.add(this),c=!0,v=!1,f=void 0!==e?e:De.now(),f+=d,i){if(i[t]instanceof Array){if(0===i[t].length)continue;i[t]=[n[t]].concat(i[t])}void 0!==n[t]&&(r[t]=n[t],r[t]instanceof Array===!1&&(r[t]*=1),o[t]=r[t]||0)}return this},this.stop=function(){return c?(De.remove(this),c=!1,null!==_&&_.call(n,n),this.stopChainedTweens(),this):this},this.end=function(){return this.update(f+a),this},this.stopChainedTweens=function(){for(var e=0,t=m.length;e<t;e++)m[e].stop()},this.delay=function(e){return d=e,this},this.repeat=function(e){return s=e,this},this.repeatDelay=function(e){return t=e,this},this.yoyo=function(e){return l=e,this},this.easing=function(e){return h=e,this},this.interpolation=function(e){return p=e,this},this.chain=function(){return m=arguments,this},this.onStart=function(e){return g=e,this},this.onUpdate=function(e){return y=e,this},this.onComplete=function(e){return b=e,this},this.onStop=function(e){return _=e,this},this.update=function(e){var c,_,w;if(e<f)return!0;for(c in!1===v&&(null!==g&&g.call(n,n),v=!0),_=(e-f)/a,_=_>1?1:_,w=h(_),i)if(void 0!==r[c]){var x=r[c]||0,S=i[c];S instanceof Array?n[c]=p(S,w):("string"===typeof S&&(S="+"===S.charAt(0)||"-"===S.charAt(0)?x+parseFloat(S):parseFloat(S)),"number"===typeof S&&(n[c]=x+(S-x)*w))}if(null!==y&&y.call(n,w),1===_){if(s>0){for(c in isFinite(s)&&s--,o){if("string"===typeof i[c]&&(o[c]=o[c]+parseFloat(i[c])),l){var C=o[c];o[c]=i[c],i[c]=C}r[c]=o[c]}return l&&(u=!u),f=void 0!==t?e+t:e+d,!0}null!==b&&b.call(n,n);for(var E=0,k=m.length;E<k;E++)m[E].start(f+a);return!1}return!0}},De.Easing={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1)}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-De.Easing.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*De.Easing.Bounce.In(2*e):.5*De.Easing.Bounce.Out(2*e-1)+.5}}},De.Interpolation={Linear:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=De.Interpolation.Utils.Linear;return t<0?o(e[0],e[1],r):t>1?o(e[n],e[n-1],n-r):o(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,o=De.Interpolation.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-t,r-a)*i(t,a)*e[a]*o(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),o=De.Interpolation.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),o(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(o(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(o(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):o(e[i?i-1:0],e[i],e[n<i+1?n:i+1],e[n<i+2?n:i+2],r-i)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=De.Interpolation.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:function(){var e=[1];return function(t){var n=1;if(e[t])return e[t];for(var r=t;r>1;r--)n*=r;return e[t]=n,n}}(),CatmullRom:function(e,t,n,r,i){var o=.5*(n-e),a=.5*(r-t),s=i*i,l=i*s;return(2*t-2*n+o+a)*l+(-3*t+3*n-2*o-a)*s+o*i+t}}};var Fe={},Be={draw:function(e,t,n){var r="http://huiyan.baidu.com/github/tools/gis-drawing/static/images/direction.png";n.arrow&&n.arrow.url&&(r=n.arrow.url),Fe[r]||(Fe[r]=null);var i=Fe[r];if(!i){var o=Array.prototype.slice.call(arguments),a=new Image;return a.onload=function(){Fe[r]=a,Be.draw.apply(null,o)},void(a.src=r)}var s=t instanceof p?t.get():t;for(var l in e.save(),n)e[l]=n[l];for(var c=[],u=null,d=0,f=s.length;d<f;d++){var h=s[d];e.save(),(h.fillStyle||h._fillStyle)&&(e.fillStyle=h.fillStyle||h._fillStyle),(h.strokeStyle||h._strokeStyle)&&(e.strokeStyle=h.strokeStyle||h._strokeStyle);var m=h.geometry.type;if(e.beginPath(),"LineString"===m)for(var g=h.geometry._coordinates||h.geometry.coordinates,v=void 0!==n.arrow.interval?n.arrow.interval:1,y=0;y<g.length;y+=v)if(g[y]&&g[y+1]){var b=g[y];if(u&&qe(b,u)<30)continue;e.save();var _=je(g[y],g[y+1]);e.translate(b[0],b[1]),e.rotate(_*Math.PI/180),e.drawImage(i,-i.width/2/2,-i.height/2/2,i.width/2,i.height/2),e.restore(),c.push(b),u=b}e.restore()}e.restore()}};function qe(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}var ze={draw:function(e,t,n){var i=t instanceof p?t.get():t;e.save(),e.fillStyle=n.fillStyle||"rgba(0, 0, 0, 0.5)",e.fillRect(0,0,e.canvas.width,e.canvas.height),n.multiPolygonDraw=function(){e.save(),e.clip(),r(e),e.restore()};for(var o=0,a=i.length;o<a;o++)e.beginPath(),v.drawDataSet(e,[i[o]],n),e.save(),e.clip(),r(e),e.restore();e.restore()}},Ue={draw:function(e,t,n){e.save();for(var r,i,o=t instanceof p?t.get():t,a=0;a<o.length;a++){var s=o[a];s.properties&&s.properties.cluster&&(void 0===r&&(r=s.properties.point_count),void 0===i&&(i=s.properties.point_count),r=Math.max(r,s.properties.point_count),i=Math.min(i,s.properties.point_count))}var l=new _({min:i,max:r,minSize:n.minSize||8,maxSize:n.maxSize||30,gradient:n.gradient});for(a=0;a<o.length;a++){s=o[a];var c=o[a].geometry._coordinates||o[a].geometry.coordinates;if(e.beginPath(),s.properties&&s.properties.cluster){if(e.arc(c[0],c[1],l.getSize(s.properties.point_count),0,2*Math.PI),e.fillStyle=l.getColor(s.properties.point_count),e.fill(),n.label&&!1!==n.label.show){e.fillStyle=n.label.fillStyle||"white",n.label.font&&(e.font=n.label.font),n.label.shadowColor&&(e.shadowColor=n.label.shadowColor),n.label.shadowBlur&&(e.shadowBlur=n.label.shadowBlur);var u=s.properties.point_count,d=e.measureText(u).width;e.fillText(u,c[0]+.5-d/2,c[1]+.5+3)}}else e.arc(c[0],c[1],n.size||5,0,2*Math.PI),e.fillStyle=n.fillStyle||"red",e.fill()}e.restore()}},Ge={draw:function(e,t,n){var r=t instanceof p?t.get():t;for(var i in e.save(),n)e[i]=n[i];var o=[],a=n._size||n.size;a?e.font="bold "+a+"px Arial":a=12;var s=n.textKey||"text";if(n.textAlign||(e.textAlign="center"),n.textBaseline||(e.textBaseline="middle"),n.avoid)for(var l=0,c=r.length;l<c;l++){var u=r[l].offset||n.offset||{x:0,y:0},d=r[l].geometry._coordinates||r[l].geometry.coordinates,f=d[0]+u.x,h=d[1]+u.y,m=r[l][s],g=e.measureText(m).width,v=f-g/2,y=h-a/2,b={sw:{x:v,y:y+a},ne:{x:v+g,y:y}};Ve(o,b)||(o.push(b),v+=g/2,y+=a/2,e.fillText(m,v,y))}else for(l=0,c=r.length;l<c;l++){u=r[l].offset||n.offset||{x:0,y:0},d=r[l].geometry._coordinates||r[l].geometry.coordinates,f=d[0]+u.x,h=d[1]+u.y,m=r[l][s];e.fillText(m,f,h)}e.restore()}};function Ve(e,t){for(var n=0;n<e.length;n++)if(We(e[n],t))return!0;return!1}function We(e,t){var n=Math.min(e.ne.x,t.ne.x),r=Math.min(e.sw.y,t.sw.y),i=Math.max(e.sw.x,t.sw.x),o=Math.max(e.ne.y,t.ne.y);return n>i&&r>o}var He={draw:function(e,t,n){var r=t instanceof p?t.get():t;e.fillStyle="white",e.textAlign="center",e.textBaseline="middle";for(var i=n.offset||{x:0,y:0},o=0,a=r.length;o<a;o++)if(r[o].geometry){var s=r[o].deg||n.deg,l=r[o].icon||n.icon,c=r[o].geometry._coordinates||r[o].geometry.coordinates,u=c[0],d=c[1];s&&(e.save(),e.translate(u,d),e.rotate(s*Math.PI/180),e.translate(-u,-d));var f=n._width||n.width||l.width,h=n._height||n.height||l.height;u=u-f/2+i.x,d=d-h/2+i.y,n.sx&&n.sy&&n.swidth&&n.sheight&&n.width&&n.height?e.drawImage(l,n.sx,n.sy,n.swidth,n.sheight,u,d,f,h):n.width&&n.height?e.drawImage(l,u,d,f,h):e.drawImage(l,u,d),s&&e.restore()}}};function $e(e,t,n,r,i,o){if(!(i-r<=n)){var a=r+i>>1;Ke(e,t,a,r,i,o%2),$e(e,t,n,r,a-1,o+1),$e(e,t,n,a+1,i,o+1)}}function Ke(e,t,n,r,i,o){while(i>r){if(i-r>600){var a=i-r+1,s=n-r+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1),d=Math.max(r,Math.floor(n-s*c/a+u)),f=Math.min(i,Math.floor(n+(a-s)*c/a+u));Ke(e,t,n,d,f,o)}var h=t[2*n+o],p=r,m=i;Xe(e,t,r,n),t[2*i+o]>h&&Xe(e,t,r,i);while(p<m){Xe(e,t,p,m),p++,m--;while(t[2*p+o]<h)p++;while(t[2*m+o]>h)m--}t[2*r+o]===h?Xe(e,t,r,m):(m++,Xe(e,t,m,i)),m<=n&&(r=m+1),n<=m&&(i=m-1)}}function Xe(e,t,n,r){Ye(e,n,r),Ye(t,2*n,2*r),Ye(t,2*n+1,2*r+1)}function Ye(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Je(e,t,n,r,i,o,a){var s,l,c=[0,e.length-1,0],u=[];while(c.length){var d=c.pop(),f=c.pop(),h=c.pop();if(f-h<=a)for(var p=h;p<=f;p++)s=t[2*p],l=t[2*p+1],s>=n&&s<=i&&l>=r&&l<=o&&u.push(e[p]);else{var m=Math.floor((h+f)/2);s=t[2*m],l=t[2*m+1],s>=n&&s<=i&&l>=r&&l<=o&&u.push(e[m]);var g=(d+1)%2;(0===d?n<=s:r<=l)&&(c.push(h),c.push(m-1),c.push(g)),(0===d?i>=s:o>=l)&&(c.push(m+1),c.push(f),c.push(g))}}return u}function Qe(e,t,n,r,i,o){var a=[0,e.length-1,0],s=[],l=i*i;while(a.length){var c=a.pop(),u=a.pop(),d=a.pop();if(u-d<=o)for(var f=d;f<=u;f++)Ze(t[2*f],t[2*f+1],n,r)<=l&&s.push(e[f]);else{var h=Math.floor((d+u)/2),p=t[2*h],m=t[2*h+1];Ze(p,m,n,r)<=l&&s.push(e[h]);var g=(c+1)%2;(0===c?n-i<=p:r-i<=m)&&(a.push(d),a.push(h-1),a.push(g)),(0===c?n+i>=p:r+i>=m)&&(a.push(h+1),a.push(u),a.push(g))}}return s}function Ze(e,t,n,r){var i=e-n,o=t-r;return i*i+o*o}var et=function(e){return e[0]},tt=function(e){return e[1]},nt=function(e,t,n,r,i){void 0===t&&(t=et),void 0===n&&(n=tt),void 0===r&&(r=64),void 0===i&&(i=Float64Array),this.nodeSize=r,this.points=e;for(var o=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new o(e.length),s=this.coords=new i(2*e.length),l=0;l<e.length;l++)a[l]=l,s[2*l]=t(e[l]),s[2*l+1]=n(e[l]);$e(a,s,r,0,a.length-1,0)};nt.prototype.range=function(e,t,n,r){return Je(this.ids,this.coords,e,t,n,r,this.nodeSize)},nt.prototype.within=function(e,t,n){return Qe(this.ids,this.coords,e,t,n,this.nodeSize)};var rt={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,map:function(e){return e}},it=function(e){this.options=ht(Object.create(rt),e),this.trees=new Array(this.options.maxZoom+1)};function ot(e,t,n,r,i){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function at(e,t){var n=e.geometry.coordinates,r=n[0],i=n[1];return{x:ct(r),y:ut(i),zoom:1/0,index:t,parentId:-1}}function st(e){return{type:"Feature",id:e.id,properties:lt(e),geometry:{type:"Point",coordinates:[dt(e.x),ft(e.y)]}}}function lt(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return ht(ht({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function ct(e){return e/360+.5}function ut(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function dt(e){return 360*(e-.5)}function ft(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function ht(e,t){for(var n in t)e[n]=t[n];return e}function pt(e){return e.x}function mt(e){return e.y}function gt(e){requestAnimationFrame(gt),De.update(e)}it.prototype.load=function(e){var t=this.options,n=(t.log,t.minZoom),r=t.maxZoom,i=t.nodeSize;e.length;this.points=e;for(var o=[],a=0;a<e.length;a++)e[a].geometry&&o.push(at(e[a],a));this.trees[r+1]=new nt(o,pt,mt,i,Float32Array);for(var s=r;s>=n;s--){Date.now();o=this._cluster(o,s),this.trees[s]=new nt(o,pt,mt,i,Float32Array)}return this},it.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),i=180===e[2]?180:((e[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){var a=this.getClusters([n,r,180,o],t),s=this.getClusters([-180,r,i,o],t);return a.concat(s)}for(var l=this.trees[this._limitZoom(t)],c=l.range(ct(n),ut(o),ct(i),ut(r)),u=[],d=0,f=c;d<f.length;d+=1){var h=f[d],p=l.points[h];u.push(p.numPoints?st(p):this.points[p.index])}return u},it.prototype.getChildren=function(e){var t=e>>5,n=e%32,r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);var o=i.points[t];if(!o)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i.within(o.x,o.y,a),l=[],c=0,u=s;c<u.length;c+=1){var d=u[c],f=i.points[d];f.parentId===e&&l.push(f.numPoints?st(f):this.points[f.index])}if(0===l.length)throw new Error(r);return l},it.prototype.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},it.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),o=this.options,a=o.extent,s=o.radius,l=s/a,c=(n-l)/i,u=(n+1+l)/i,d={features:[]};return this._addTileFeatures(r.range((t-l)/i,c,(t+1+l)/i,u),r.points,t,n,i,d),0===t&&this._addTileFeatures(r.range(1-l/i,c,1,u),r.points,i,n,i,d),t===i-1&&this._addTileFeatures(r.range(0,c,l/i,u),r.points,-1,n,i,d),d.features.length?d:null},it.prototype.getClusterExpansionZoom=function(e){var t=e%32-1;while(t<=this.options.maxZoom){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},it.prototype._appendLeaves=function(e,t,n,r,i){for(var o=this.getChildren(t),a=0,s=o;a<s.length;a+=1){var l=s[a],c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(e,c.cluster_id,n,r,i):i<r?i++:e.push(l),e.length===n)break}return i},it.prototype._addTileFeatures=function(e,t,n,r,i,o){for(var a=0,s=e;a<s.length;a+=1){var l=s[a],c=t[l],u={type:1,geometry:[[Math.round(this.options.extent*(c.x*i-n)),Math.round(this.options.extent*(c.y*i-r))]],tags:c.numPoints?lt(c):this.points[c.index].properties},d=c.numPoints?c.id:this.points[c.index].id;void 0!==d&&(u.id=d),o.features.push(u)}},it.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(e,this.options.maxZoom+1))},it.prototype._cluster=function(e,t){for(var n=[],r=this.options,i=r.radius,o=r.extent,a=r.reduce,s=i/(o*Math.pow(2,t)),l=0;l<e.length;l++){var c=e[l];if(!(c.zoom<=t)){c.zoom=t;for(var u=this.trees[t+1],d=u.within(c.x,c.y,s),f=c.numPoints||1,h=c.x*f,p=c.y*f,m=a&&f>1?this._map(c,!0):null,g=(l<<5)+(t+1),v=0,y=d;v<y.length;v+=1){var b=y[v],_=u.points[b];if(!(_.zoom<=t)){_.zoom=t;var w=_.numPoints||1;h+=_.x*w,p+=_.y*w,f+=w,_.parentId=g,a&&(m||(m=this._map(c,!0)),a(m,this._map(_)))}}1===f?n.push(c):(c.parentId=g,n.push(ot(h/f,p/f,g,f,m)))}}return n},it.prototype._map=function(e,t){if(e.numPoints)return t?ht({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?ht({},r):r},"undefined"!==typeof window&&requestAnimationFrame(gt);var vt=function(){function e(t,n,r){c(this,e),n instanceof p||(n=new p(n)),this.dataSet=n,this.map=t,"cluster"!==r.draw||this.supercluster||(this.supercluster=new it({maxZoom:r.maxZoom||19,radius:r.clusterRadius||100}),this.supercluster.load(n.get()),this.clusterDataSet=new p)}return u(e,[{key:"getDefaultContextConfig",value:function(){return{globalAlpha:1,globalCompositeOperation:"source-over",imageSmoothingEnabled:!0,strokeStyle:"#000000",fillStyle:"#000000",shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0)",lineWidth:1,lineCap:"butt",lineJoin:"miter",miterLimit:10,lineDashOffset:0,font:"10px sans-serif",textAlign:"start",textBaseline:"alphabetic"}}},{key:"initDataRange",value:function(e){var t=this;if(t.intensity=new _({maxSize:t.options.maxSize,minSize:t.options.minSize,gradient:t.options.gradient,max:t.options.max||this.dataSet.getMax("count")}),t.category=new Ae(t.options.splitList),t.choropleth=new Re(t.options.splitList),void 0===t.options.splitList&&t.category.generateByDataSet(this.dataSet,t.options.color),void 0===t.options.splitList){var n=t.options.min||this.dataSet.getMin("count"),r=t.options.max||this.dataSet.getMax("count");t.choropleth.generateByMinMax(n,r)}}},{key:"getLegend",value:function(e){this.options.draw;var t=this;return"intensity"==t.options.draw||"heatmap"==t.options.draw?this.intensity.getLegend(e):"category"==t.options.draw?this.category.getLegend(e):void 0}},{key:"processData",value:function(e){var t=this,n=t.options.draw;if("bubble"==n||"intensity"==n||"category"==n||"choropleth"==n||"simple"==n)for(var r=0;r<e.length;r++){var i=e[r];"bubble"==t.options.draw?e[r]._size=t.intensity.getSize(i.count):e[r]._size=void 0;var o="_fillStyle";"LineString"!==e[r].geometry.type&&"stroke"!==t.options.styleType||(o="_strokeStyle"),"intensity"==t.options.draw?e[r][o]=t.intensity.getColor(i.count):"category"==t.options.draw?e[r][o]=t.category.get(i.count):"choropleth"==t.options.draw&&(e[r][o]=t.choropleth.get(i.count))}}},{key:"isEnabledTime",value:function(){var e=this.options.animation,t=e&&!(!1===e.enabled);return t}},{key:"argCheck",value:function(e){"heatmap"==e.draw&&e.strokeStyle&&console.warn("[heatmap] options.strokeStyle is discard, pleause use options.strength [eg: options.strength = 0.1]")}},{key:"drawContext",value:function(e,t,n,r){var i=this;switch(i.options.draw){case"heatmap":I.draw(e,t,i.options);break;case"grid":case"cluster":case"honeycomb":i.options.offset={x:r.x,y:r.y},"grid"===i.options.draw?A.draw(e,t,i.options):"cluster"===i.options.draw?Ue.draw(e,t,i.options):M.draw(e,t,i.options);break;case"text":Ge.draw(e,t,i.options);break;case"icon":He.draw(e,t,i.options);break;case"clip":ze.draw(e,t,i.options);break;default:"webgl"==i.options.context?Ee.draw(i.canvasLayer.canvas.getContext("webgl"),t,i.options):y.draw(e,t,i.options)}i.options.arrow&&!1!==i.options.arrow.show&&Be.draw(e,t,i.options)}},{key:"isPointInPath",value:function(e,t){var n;e=this.canvasLayer.canvas.getContext(this.context);n="cluster"===this.options.draw?this.clusterDataSet.get():this.dataSet.get();for(var r=0;r<n.length;r++){e.beginPath();var i=this.options,o=t.x*this.canvasLayer.devicePixelRatio,a=t.y*this.canvasLayer.devicePixelRatio;i.multiPolygonDraw=function(){if(e.isPointInPath(o,a))return n[r]},v.draw(e,n[r],i);var s=n[r].geometry&&n[r].geometry.type;if(s.indexOf("LineString")>-1){if(e.isPointInStroke&&e.isPointInStroke(o,a))return n[r]}else if(e.isPointInPath(o,a))return n[r]}}},{key:"clickEvent",value:function(e,t){if(this.options.methods){var n=this.isPointInPath(this.getContext(),e);n?this.options.methods.click(n,t):this.options.methods.click(null,t)}}},{key:"mousemoveEvent",value:function(e,t){if(this.options.methods){var n=this.isPointInPath(this.getContext(),e);n?this.options.methods.mousemove(n,t):this.options.methods.mousemove(null,t)}}},{key:"tapEvent",value:function(e,t){if(this.options.methods){var n=this.isPointInPath(this.getContext(),e);n?this.options.methods.tap(n,t):this.options.methods.tap(null,t)}}},{key:"update",value:function(e,t){var n=this,r=e.options,i=n.options;for(var o in r)i[o]=r[o];n.init(i),!1!==t&&n.draw()}},{key:"setOptions",value:function(e){var t=this;t.dataSet.reset(),t.init(e),t.draw()}},{key:"set",value:function(e){var t=this,n=this.getContext(),r=this.getDefaultContextConfig();for(var i in r)n[i]=r[i];t.init(e.options),t.draw()}},{key:"destroy",value:function(){this.unbindEvent(),this.hide()}},{key:"initAnimator",value:function(){var e=this,t=e.options.animation;if("time"==e.options.draw||e.isEnabledTime()){t.stepsRange||(t.stepsRange={start:this.dataSet.getMin("time")||0,end:this.dataSet.getMax("time")||0}),this.steps={step:t.stepsRange.start},e.animator=new De.Tween(this.steps).onUpdate((function(){e._canvasUpdate(this.step)})).repeat(1/0),this.addAnimatorEvent();var n=1e3*t.duration||5e3;e.animator.to({step:t.stepsRange.end},n),e.animator.start()}else e.animator&&e.animator.stop()}},{key:"addAnimatorEvent",value:function(){}},{key:"animatorMovestartEvent",value:function(){var e=this.options.animation;this.isEnabledTime()&&this.animator&&(this.steps.step=e.stepsRange.start,this.animator.stop())}},{key:"animatorMoveendEvent",value:function(){this.isEnabledTime()&&this.animator&&this.animator.start()}}]),e}(),yt="undefined"===typeof window?{}:window,bt=yt.BMap||yt.BMapGL,_t=function(e){function t(e,n,r){c(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));i.map=e,i.options=r||{},i.dataSet=n;var o=new Me({map:e,zIndex:i.options.zIndex,update:i._canvasUpdate.bind(i)});i.init(i.options),i.canvasLayer=o,i.transferToMercator();var a=i;return n.on("change",(function(){a.transferToMercator(),o.draw()})),i.ctx=o.canvas.getContext("2d"),i.start(),i}return f(t,e),u(t,[{key:"draw",value:function(){this.canvasLayer.draw()}},{key:"init",value:function(e){var t=this;t.options=e,this.initDataRange(e),this.context=t.options.context||"2d",t.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(t.options.zIndex),t.options.max&&this.intensity.setMax(t.options.max),t.options.min&&this.intensity.setMin(t.options.min),this.initAnimator()}},{key:"transferToMercator",value:function(){var e,t=this.map,n=t.getMapType();if(e=n.getProjection?n.getProjection():{lngLatToPoint:function(e){var n=t.lnglatToMercator(e.lng,e.lat);return{x:n[0],y:n[1]}}},"bd09mc"!==this.options.coordType){var r=this.dataSet.get();r=this.dataSet.transferCoordinate(r,(function(t){var n=e.lngLatToPoint({lng:t[0],lat:t[1]});return[n.x,n.y]}),"coordinates","coordinates_mercator"),this.dataSet._set(r)}}},{key:"_canvasUpdate",value:function(){var e=this.ctx;if(e){var t,n,i,o=this.map;o.getMapType().getProjection?(t=o.getMapType().getProjection(),n=t.lngLatToPoint(o.getCenter())):(n={x:o.getCenter().lng,y:o.getCenter().lat},n.x>-180&&n.x<180&&(n=o.lnglatToMercator(n.x,n.y),n={x:n[0],y:n[1]}),t={lngLatToPoint:function(e){var t=o.lnglatToMercator(e.lng,e.lat);return{x:t[0],y:t[1]}}}),i=t.getZoomUnits?t.getZoomUnits(o.getZoom()):Math.pow(2,18-o.getZoom());var a=new bt.Pixel(n.x-o.getSize().width/2*i,n.y+o.getSize().height/2*i);r(e);var s={fromColumn:"bd09mc"==this.options.coordType?"coordinates":"coordinates_mercator",transferCoordinate:function(e){if(e){var t=(e[0]-a.x)/i,n=(a.y-e[1])/i;return[t,n]}}};this.data=this.dataSet.get(s),this.processData(this.data),this.drawAnimation()}}},{key:"drawAnimation",value:function(){var e=this.ctx,t=this.data;if(t){e.save(),e.globalCompositeOperation="destination-out",e.fillStyle="rgba(0, 0, 0, .1)",e.fillRect(0,0,e.canvas.width,e.canvas.height),e.restore(),e.save(),this.options.shadowColor&&(e.shadowColor=this.options.shadowColor),this.options.shadowBlur&&(e.shadowBlur=this.options.shadowBlur),this.options.globalAlpha&&(e.globalAlpha=this.options.globalAlpha),this.options.globalCompositeOperation&&(e.globalCompositeOperation=this.options.globalCompositeOperation);for(var n=this.options,r=0;r<t.length;r++)if("Point"===t[r].geometry.type){e.beginPath();var i=t[r].size||this.options.size,o=t[r].minSize||this.options.minSize||0;void 0===t[r]._size&&(t[r]._size=o),e.arc(t[r].geometry._coordinates[0],t[r].geometry._coordinates[1],t[r]._size,0,2*Math.PI,!0),e.closePath(),t[r]._size++,t[r]._size>i&&(t[r]._size=o),e.lineWidth=1,e.strokeStyle=t[r].strokeStyle||t[r]._strokeStyle||n.strokeStyle||"yellow",e.stroke();var a=t[r].fillStyle||t[r]._fillStyle||n.fillStyle;a&&(e.fillStyle=a,e.fill())}else if("LineString"===t[r].geometry.type){e.beginPath();var s=t[r].size||this.options.size||5;o=t[r].minSize||this.options.minSize||0;void 0===t[r]._index&&(t[r]._index=0);var l=t[r]._index;e.arc(t[r].geometry._coordinates[l][0],t[r].geometry._coordinates[l][1],s,0,2*Math.PI,!0),e.closePath(),t[r]._index++,t[r]._index>=t[r].geometry._coordinates.length&&(t[r]._index=0);var c=t[r].strokeStyle||n.strokeStyle;a=t[r].fillStyle||n.fillStyle||"yellow";e.fillStyle=a,e.fill(),c&&n.lineWidth&&(e.lineWidth=n.lineWidth||1,e.strokeStyle=c,e.stroke())}e.restore()}}},{key:"animate",value:function(){this.drawAnimation();var e=this.options.animateTime||100;this.timeout=setTimeout(this.animate.bind(this),e)}},{key:"start",value:function(){this.stop(),this.animate()}},{key:"stop",value:function(){clearTimeout(this.timeout)}},{key:"unbindEvent",value:function(){}},{key:"hide",value:function(){this.canvasLayer.hide(),this.stop()}},{key:"show",value:function(){this.start()}},{key:"clearData",value:function(){this.dataSet&&this.dataSet.clear(),this.update({options:null})}},{key:"destroy",value:function(){this.stop(),this.unbindEvent(),this.clearData(),this.map.removeOverlay(this.canvasLayer),this.canvasLayer=null}}]),t}(vt),wt="undefined"===typeof window?{}:window,xt=wt.BMap||wt.BMapGL,St=function(e){function t(e,n,r){c(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r)),o=i;r=r||{},i.clickEvent=i.clickEvent.bind(i),i.mousemoveEvent=i.mousemoveEvent.bind(i),i.tapEvent=i.tapEvent.bind(i),o.init(r),o.argCheck(r),o.transferToMercator();var a=i.canvasLayer=new Me({map:e,context:i.context,updateImmediate:r.updateImmediate,paneName:r.paneName,mixBlendMode:r.mixBlendMode,enableMassClear:r.enableMassClear,zIndex:r.zIndex,update:function(){o._canvasUpdate()}});return n.on("change",(function(){o.transferToMercator(),a.draw()})),i}return f(t,e),u(t,[{key:"clickEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickEvent",this).call(this,n,e)}},{key:"mousemoveEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"mousemoveEvent",this).call(this,n,e)}},{key:"tapEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"tapEvent",this).call(this,n,e)}},{key:"bindEvent",value:function(e){this.unbindEvent();var t=this.map,n=0,r=this;this.options.methods&&(this.options.methods.click&&(t.setDefaultCursor("default"),t.addEventListener("click",this.clickEvent)),this.options.methods.mousemove&&t.addEventListener("mousemove",this.mousemoveEvent),"ontouchend"in window.document&&this.options.methods.tap&&(t.addEventListener("touchstart",(function(e){n=new Date})),t.addEventListener("touchend",(function(e){new Date-n<300&&r.tapEvent(e)}))))}},{key:"unbindEvent",value:function(e){var t=this.map;this.options.methods&&(this.options.methods.click&&t.removeEventListener("click",this.clickEvent),this.options.methods.mousemove&&t.removeEventListener("mousemove",this.mousemoveEvent))}},{key:"transferToMercator",value:function(e){e||(e=this.dataSet);var t,n=this.map,r=n.getMapType();if(t=r.getProjection?r.getProjection():{lngLatToPoint:function(e){var t=n.lnglatToMercator(e.lng,e.lat);return{x:t[0],y:t[1]}}},"bd09mc"!==this.options.coordType){var i=e.get();i=e.transferCoordinate(i,(function(e){if(e[0]<-180||e[0]>180||e[1]<-90||e[1]>90)return e;var n=t.lngLatToPoint({lng:e[0],lat:e[1]});return[n.x,n.y]}),"coordinates","coordinates_mercator"),e._set(i)}}},{key:"getContext",value:function(){return this.canvasLayer.canvas.getContext(this.context)}},{key:"_canvasUpdate",value:function(e){if(this.canvasLayer){var t,n,i,o=this,a=o.options.animation,s=this.canvasLayer._map;s.getMapType().getProjection?(t=s.getMapType().getProjection(),n=t.lngLatToPoint(s.getCenter())):(n={x:s.getCenter().lng,y:s.getCenter().lat},n.x>-180&&n.x<180&&(n=s.lnglatToMercator(n.x,n.y),n={x:n[0],y:n[1]}),t={lngLatToPoint:function(e){var t=s.lnglatToMercator(e.lng,e.lat);return{x:t[0],y:t[1]}}}),i=t.getZoomUnits?t.getZoomUnits(s.getZoom()):Math.pow(2,18-s.getZoom());var l=new xt.Pixel(n.x-s.getSize().width/2*i,n.y+s.getSize().height/2*i),c=this.getContext();if(o.isEnabledTime()){if(void 0===e)return void r(c);"2d"==this.context&&(c.save(),c.globalCompositeOperation="destination-out",c.fillStyle="rgba(0, 0, 0, .1)",c.fillRect(0,0,c.canvas.width,c.canvas.height),c.restore())}else r(c);if("2d"==this.context)for(var u in o.options)c[u]=o.options[u];else c.clear(c.COLOR_BUFFER_BIT);if(!(o.options.minZoom&&s.getZoom()<o.options.minZoom||o.options.maxZoom&&s.getZoom()>o.options.maxZoom)){var d=1;"2d"!=this.context&&(d=this.canvasLayer.devicePixelRatio);var f,h={fromColumn:"bd09mc"==o.options.coordType?"coordinates":"coordinates_mercator",transferCoordinate:function(e){var t=(e[0]-l.x)/i*d,n=(l.y-e[1])/i*d;return[t,n]}};if(void 0!==e&&(h.filter=function(t){var n=a.trails||10;return!!(e&&t.time>e-n&&t.time<e)}),"cluster"===o.options.draw){var p=this.map.getBounds(),m=p.getNorthEast(),g=p.getSouthWest(),v=this.supercluster.getClusters([g.lng,g.lat,m.lng,m.lat],this.getZoom());this.clusterDataSet.set(v),this.transferToMercator(this.clusterDataSet),f=this.clusterDataSet.get(h)}else f=o.dataSet.get(h);this.processData(f);var y=s.pointToPixel(new xt.Point(0,0));"m"==o.options.unit?(o.options.size&&(o.options._size=o.options.size/i),o.options.width&&(o.options._width=o.options.width/i),o.options.height&&(o.options._height=o.options.height/i)):(o.options._size=o.options.size,o.options._height=o.options.height,o.options._width=o.options.width),this.drawContext(c,f,o.options,y),o.options.updateCallback&&o.options.updateCallback(e)}}}},{key:"init",value:function(e){var t=this;t.options=e,this.initDataRange(e),this.context=t.options.context||"2d",t.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(t.options.zIndex),t.options.max&&this.intensity.setMax(t.options.max),t.options.min&&this.intensity.setMin(t.options.min),this.initAnimator(),this.bindEvent()}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"addAnimatorEvent",value:function(){this.map.addEventListener("movestart",this.animatorMovestartEvent.bind(this)),this.map.addEventListener("moveend",this.animatorMoveendEvent.bind(this))}},{key:"show",value:function(){this.map.addOverlay(this.canvasLayer)}},{key:"hide",value:function(){this.map.removeOverlay(this.canvasLayer)}},{key:"draw",value:function(){this.canvasLayer&&this.canvasLayer.draw()}},{key:"clearData",value:function(){this.dataSet&&this.dataSet.clear(),this.update({options:null})}},{key:"destroy",value:function(){this.unbindEvent(),this.clearData(),this.map.removeOverlay(this.canvasLayer),this.canvasLayer=null}}]),t}(vt);function Ct(e){this.isAdded_=!1,this.isAnimated_=!1,this.paneName_=Ct.DEFAULT_PANE_NAME_,this.updateHandler_=null,this.resizeHandler_=null,this.topLeft_=null,this.centerListener_=null,this.resizeListener_=null,this.needsResize_=!0,this.requestAnimationFrameId_=null;var t=document.createElement("canvas");function n(e,t){return function(){t.apply(e)}}t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.pointerEvents="none",this.canvas=t,this.canvasCssWidth_=300,this.canvasCssHeight_=150,this.resolutionScale_=1,this.repositionFunction_=n(this,this.repositionCanvas_),this.resizeFunction_=n(this,this.resize_),this.requestUpdateFunction_=n(this,this.update_),e&&this.setOptions(e)}var Et="undefined"===typeof window?{}:window;Et.google&&Et.google.maps&&(Ct.prototype=new google.maps.OverlayView,Ct.DEFAULT_PANE_NAME_="overlayLayer",Ct.CSS_TRANSFORM_=function(){for(var e=document.createElement("div"),t=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],n=0;n<t.length;n++){var r=t[n];if(void 0!==e.style[r])return r}return t[0]}(),Ct.prototype.requestAnimFrame_=Et.requestAnimationFrame||Et.webkitRequestAnimationFrame||Et.mozRequestAnimationFrame||Et.oRequestAnimationFrame||Et.msRequestAnimationFrame||function(e){return Et.setTimeout(e,1e3/60)},Ct.prototype.cancelAnimFrame_=Et.cancelAnimationFrame||Et.webkitCancelAnimationFrame||Et.mozCancelAnimationFrame||Et.oCancelAnimationFrame||Et.msCancelAnimationFrame||function(e){},Ct.prototype.setOptions=function(e){void 0!==e.animate&&this.setAnimate(e.animate),void 0!==e.paneName&&this.setPaneName(e.paneName),void 0!==e.updateHandler&&this.setUpdateHandler(e.updateHandler),void 0!==e.resizeHandler&&this.setResizeHandler(e.resizeHandler),void 0!==e.resolutionScale&&this.setResolutionScale(e.resolutionScale),void 0!==e.map&&this.setMap(e.map)},Ct.prototype.setAnimate=function(e){this.isAnimated_=!!e,this.isAnimated_&&this.scheduleUpdate()},Ct.prototype.isAnimated=function(){return this.isAnimated_},Ct.prototype.setPaneName=function(e){this.paneName_=e,this.setPane_()},Ct.prototype.getPaneName=function(){return this.paneName_},Ct.prototype.setPane_=function(){if(this.isAdded_){var e=this.getPanes();if(!e[this.paneName_])throw new Error('"'+this.paneName_+'" is not a valid MapPane name.');e[this.paneName_].appendChild(this.canvas)}},Ct.prototype.setResizeHandler=function(e){this.resizeHandler_=e},Ct.prototype.setResolutionScale=function(e){"number"===typeof e&&(this.resolutionScale_=e,this.resize_())},Ct.prototype.setUpdateHandler=function(e){this.updateHandler_=e},Ct.prototype.onAdd=function(){this.isAdded_||(this.isAdded_=!0,this.setPane_(),this.resizeListener_=google.maps.event.addListener(this.getMap(),"resize",this.resizeFunction_),this.centerListener_=google.maps.event.addListener(this.getMap(),"center_changed",this.repositionFunction_),this.resize_(),this.repositionCanvas_())},Ct.prototype.onRemove=function(){this.isAdded_&&(this.isAdded_=!1,this.topLeft_=null,this.canvas.parentElement.removeChild(this.canvas),this.centerListener_&&(google.maps.event.removeListener(this.centerListener_),this.centerListener_=null),this.resizeListener_&&(google.maps.event.removeListener(this.resizeListener_),this.resizeListener_=null),this.requestAnimationFrameId_&&(this.cancelAnimFrame_.call(Et,this.requestAnimationFrameId_),this.requestAnimationFrameId_=null))},Ct.prototype.resize_=function(){if(this.isAdded_){var e=this.getMap(),t=e.getDiv().offsetWidth,n=e.getDiv().offsetHeight,r=t*this.resolutionScale_,i=n*this.resolutionScale_,o=this.canvas.width,a=this.canvas.height;o===r&&a===i||(this.canvas.width=r,this.canvas.height=i,this.needsResize_=!0,this.scheduleUpdate()),this.canvasCssWidth_===t&&this.canvasCssHeight_===n||(this.canvasCssWidth_=t,this.canvasCssHeight_=n,this.canvas.style.width=t+"px",this.canvas.style.height=n+"px")}},Ct.prototype.draw=function(){this.repositionCanvas_()},Ct.prototype.repositionCanvas_=function(){var e=this.getMap(),t=e.getBounds().getNorthEast().lat(),n=e.getCenter(),r=Math.pow(2,e.getZoom()),i=n.lng()-180*this.canvasCssWidth_/(256*r);this.topLeft_=new google.maps.LatLng(t,i);var o=this.getProjection(),a=o.fromLatLngToDivPixel(n),s=-Math.round(this.canvasCssWidth_/2-a.x),l=-Math.round(this.canvasCssHeight_/2-a.y);this.canvas.style[Ct.CSS_TRANSFORM_]="translate("+s+"px,"+l+"px)",this.scheduleUpdate()},Ct.prototype.update_=function(){this.requestAnimationFrameId_=null,this.isAdded_&&(this.isAnimated_&&this.scheduleUpdate(),this.needsResize_&&this.resizeHandler_&&(this.needsResize_=!1,this.resizeHandler_()),this.updateHandler_&&this.updateHandler_())},Ct.prototype.getTopLeft=function(){return this.topLeft_},Ct.prototype.scheduleUpdate=function(){this.isAdded_&&!this.requestAnimationFrameId_&&(this.requestAnimationFrameId_=this.requestAnimFrame_.call(Et,this.requestUpdateFunction_))});var kt=function(e){function t(e,n,r){c(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r)),o=i;r=r||{},o.init(r),o.argCheck(r);var a={map:e,animate:!1,updateHandler:function(){o._canvasUpdate()},resolutionScale:resolutionScale};i.canvasLayer=new Ct(a);return i.clickEvent=i.clickEvent.bind(i),i.mousemoveEvent=i.mousemoveEvent.bind(i),i.bindEvent(),i}return f(t,e),u(t,[{key:"clickEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickEvent",this).call(this,n,e)}},{key:"mousemoveEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"mousemoveEvent",this).call(this,n,e)}},{key:"bindEvent",value:function(e){var t=this.map;this.options.methods&&(this.options.methods.click&&(t.setDefaultCursor("default"),t.addListener("click",this.clickEvent)),this.options.methods.mousemove&&t.addListener("mousemove",this.mousemoveEvent))}},{key:"unbindEvent",value:function(e){var t=this.map;this.options.methods&&(this.options.methods.click&&t.removeListener("click",this.clickEvent),this.options.methods.mousemove&&t.removeListener("mousemove",this.mousemoveEvent))}},{key:"getContext",value:function(){return this.canvasLayer.canvas.getContext(this.context)}},{key:"_canvasUpdate",value:function(e){if(this.canvasLayer){var t=this,n=t.options.animation,i=this.getContext();if(t.isEnabledTime()){if(void 0===e)return void r(i);"2d"==this.context&&(i.save(),i.globalCompositeOperation="destination-out",i.fillStyle="rgba(0, 0, 0, .1)",i.fillRect(0,0,i.canvas.width,i.canvas.height),i.restore())}else r(i);if("2d"==this.context)for(var o in t.options)i[o]=t.options[o];else i.clear(i.COLOR_BUFFER_BIT);if(!(t.options.minZoom&&s.getZoom()<t.options.minZoom||t.options.maxZoom&&s.getZoom()>t.options.maxZoom)){var a=1;"2d"!=this.context&&(a=this.canvasLayer.devicePixelRatio);var s=this.map,l=s.getProjection(),c=(a=Math.pow(2,s.zoom)*resolutionScale,l.fromLatLngToPoint(this.canvasLayer.getTopLeft())),u={transferCoordinate:function(e){var t=new google.maps.LatLng(e[1],e[0]),n=l.fromLatLngToPoint(t),r={x:(n.x-c.x)*a,y:(n.y-c.y)*a};return[r.x,r.y]}};void 0!==e&&(u.filter=function(t){var r=n.trails||10;return!!(e&&t.time>e-r&&t.time<e)});var d=t.dataSet.get(u);this.processData(d);var f=new google.maps.LatLng(0,0),h=l.fromLatLngToPoint(f),m={x:(h.x-c.x)*a,y:(h.y-c.y)*a};"m"==t.options.unit&&t.options.size?t.options._size=t.options.size/zoomUnit:t.options._size=t.options.size,this.drawContext(i,new p(d),t.options,m),t.options.updateCallback&&t.options.updateCallback(e)}}}},{key:"init",value:function(e){var t=this;t.options=e,this.initDataRange(e),this.context=t.options.context||"2d",t.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(t.options.zIndex),this.initAnimator()}},{key:"addAnimatorEvent",value:function(){this.map.addListener("movestart",this.animatorMovestartEvent.bind(this)),this.map.addListener("moveend",this.animatorMoveendEvent.bind(this))}},{key:"show",value:function(){this.map.addOverlay(this.canvasLayer)}},{key:"hide",value:function(){this.map.removeOverlay(this.canvasLayer)}},{key:"draw",value:function(){self.canvasLayer.draw()}}]),t}(vt),Ot=void 0;if("undefined"!==typeof maptalks){Ot=function(e){function t(e,n,r){c(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.options_=r,i.dataSet=n,i._initBaseLayer(r),i}return f(t,e),u(t,[{key:"_initBaseLayer",value:function(e){var t=this,n=this.baseLayer=new vt(null,this.dataSet,e);t.init(e),n.argCheck(e)}},{key:"clickEvent",value:function(e){if(this.baseLayer){var t=e.containerPoint;this.baseLayer.clickEvent(t,e.domEvent)}}},{key:"mousemoveEvent",value:function(e){if(this.baseLayer){var t=e.containerPoint;this.baseLayer.mousemoveEvent(t,e.domEvent)}}},{key:"getEvents",value:function(){return{click:this.clickEvent,mousemove:this.mousemoveEvent}}},{key:"init",value:function(e){var t=this.baseLayer;t.options=e,t.initDataRange(e),t.context=t.options.context||"2d",t.initAnimator()}},{key:"addAnimatorEvent",value:function(){this.map.addListener("movestart",this.animatorMovestartEvent.bind(this)),this.map.addListener("moveend",this.animatorMoveendEvent.bind(this))}}]),t}(maptalks.Layer);var Tt=function(e){function t(){return c(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),u(t,[{key:"needToRedraw",value:function(){var e=this.layer.baseLayer;return!!e.isEnabledTime()||d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"needToRedraw",this).call(this)}},{key:"draw",value:function(){var e=this.layer.baseLayer;this.canvas&&e.isEnabledTime()&&!this._shouldClear||(this.prepareCanvas(),this._shouldClear=!1),this._update(this.gl||this.context,this._mapvFrameTime),delete this._mapvFrameTime,this.completeRender()}},{key:"drawOnInteracting",value:function(){this.draw(),this._shouldClear=!1}},{key:"onSkipDrawOnInteracting",value:function(){this._shouldClear=!0}},{key:"_canvasUpdate",value:function(e){this.setToRedraw(),this._mapvFrameTime=e}},{key:"_update",value:function(e,t){if(this.canvas){var n=this.layer.baseLayer,i=n.options.animation,o=this.getMap();if(n.isEnabledTime()){if(void 0===t)return void r(e);"2d"==n.context&&(e.save(),e.globalCompositeOperation="destination-out",e.fillStyle="rgba(0, 0, 0, .1)",e.fillRect(0,0,e.canvas.width,e.canvas.height),e.restore())}else r(e);if("2d"==n.context)for(var a in n.options)e[a]=n.options[a];else e.clear(e.COLOR_BUFFER_BIT);var s=1;"2d"===n.context&&"heatmap"!==n.options.draw&&(s=n.canvasLayer.devicePixelRatio);var l=new maptalks.Coordinate(0,0),c={fromColumn:"bd09mc"===n.options.coordType?"coordinates_mercator":"coordinates",transferCoordinate:function(e){l.x=e[0],l.y=e[1];var t=o.coordToContainerPoint(l)._multi(s).toArray();return t}};void 0!==t&&(c.filter=function(e){var n=i.trails||10;return!!(t&&e.time>t-n&&e.time<t)});var u=n.dataSet.get(c);n.processData(u),"m"==n.options.unit?(n.options.size&&(n.options._size=n.options.size/zoomUnit),n.options.width&&(n.options._width=n.options.width/zoomUnit),n.options.height&&(n.options._height=n.options.height/zoomUnit)):(n.options._size=n.options.size,n.options._height=n.options.height,n.options._width=n.options.width);var d=new maptalks.Point(0,0),f=o._pointToContainerPoint(d)._multi(s);n.drawContext(e,u,n.options,f),n.options.updateCallback&&n.options.updateCallback(t)}}},{key:"createCanvas",value:function(){if(!this.canvas){var e=this.getMap(),t=e.getSize(),n=maptalks.Browser.retina?2:1,r=n*t.width,i=n*t.height;this.canvas=maptalks.Canvas.createCanvas(r,i,e.CanvasClass);var o=this.layer.baseLayer.context;if("2d"===o)this.context=this.canvas.getContext("2d"),this.layer.options["globalCompositeOperation"]&&(this.context.globalCompositeOperation=this.layer.options["globalCompositeOperation"]);else{var a={alpha:!0,preserveDrawingBuffer:!0,antialias:!1};this.gl=this.canvas.getContext("webgl",a)}this.onCanvasCreate(),this._bindToMapv(),this.layer.fire("canvascreate",{context:this.context,gl:this.gl})}}},{key:"_bindToMapv",value:function(){var e=this.layer.baseLayer;this.devicePixelRatio=maptalks.Browser.retina?2:1,e.canvasLayer=this,e._canvasUpdate=this._canvasUpdate.bind(this),e.getContext=function(){var e=self.getRenderer();return e.gl||e.context}}}]),t}(maptalks.renderer.CanvasRenderer);Ot.registerRenderer("canvas",Tt)}var It,At=Ot,Rt=function(e,t,n){if("undefined"!==typeof document){var r=document.createElement("canvas");return r.width=e,r.height=t,r}return new n(e,t)},Pt=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments[1],r=arguments[2];c(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return i.options=r,i.canvasLayer={canvas:null,devicePixelRatio:window.devicePixelRatio},i.layer_=null,i.initDataRange(r),i.initAnimator(),i.onEvents(),e.on("complete",(function(){this.init(e,r),this.argCheck(r)}),i),i}return f(t,e),u(t,[{key:"init",value:function(e,t){if(!e)throw new Error("not map object");this.map=e,this.context=this.options.context||"2d",this.getCanvasLayer()}},{key:"_canvasUpdate",value:function(e){this.render(this.canvasLayer.canvas,e)}},{key:"render",value:function(e,t){if(e){var n=this.map,i=e.getContext(this.context),o=this.options.animation;if(this.isEnabledTime()){if(void 0===t)return r(i),this;"2d"===this.context&&(i.save(),i.globalCompositeOperation="destination-out",i.fillStyle="rgba(0, 0, 0, .1)",i.fillRect(0,0,i.canvas.width,i.canvas.height),i.restore())}else r(i);if("2d"===this.context)for(var a in this.options)i[a]=this.options[a];else i.clear(i.COLOR_BUFFER_BIT);var s={transferCoordinate:function(e){var t=n.lngLatToContainer(new AMap.LngLat(e[0],e[1]));return[t["x"],t["y"]]}};void 0!==t&&(s.filter=function(e){var n=o.trails||10;return!!(t&&e.time>t-n&&e.time<t)});var l=this.dataSet.get(s);return this.processData(l),"m"===this.options.unit?(this.options.size&&(this.options._size=this.options.size/zoomUnit),this.options.width&&(this.options._width=this.options.width/zoomUnit),this.options.height&&(this.options._height=this.options.height/zoomUnit)):(this.options._size=this.options.size,this.options._height=this.options.height,this.options._width=this.options.width),this.drawContext(i,new p(l),this.options,{x:0,y:0}),this.options.updateCallback&&this.options.updateCallback(t),this}}},{key:"getCanvasLayer",value:function(){if(!this.canvasLayer.canvas&&!this.layer_){var e=this.canvasFunction(),t=this.map.getBounds();this.layer_=new AMap.CanvasLayer({canvas:e,bounds:this.options.bounds||t,zooms:this.options.zooms||[0,22]}),this.layer_.setMap(this.map),this.map.on("mapmove",this.canvasFunction,this),this.map.on("zoomchange",this.canvasFunction,this)}}},{key:"canvasFunction",value:function(){var e=[this.map.getSize().width,this.map.getSize().height],t=e[0],n=e[1];if(this.canvasLayer.canvas){this.canvasLayer.canvas.width=t,this.canvasLayer.canvas.height=n;var r=this.map.getBounds();this.layer_&&this.layer_.setBounds(this.options.bounds||r)}else this.canvasLayer.canvas=Rt(t,n);return this.render(this.canvasLayer.canvas),this.canvasLayer.canvas}},{key:"removeLayer",value:function(){this.map&&(this.unEvents(),this.map.removeLayer(this.layer_),delete this.map,delete this.layer_,delete this.canvasLayer.canvas)}},{key:"getContext",value:function(){return this.canvasLayer.canvas.getContext(this.context)}},{key:"clickEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickEvent",this).call(this,n,e)}},{key:"mousemoveEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"mousemoveEvent",this).call(this,n,e)}},{key:"addAnimatorEvent",value:function(){this.map.on("movestart",this.animatorMovestartEvent,this),this.map.on("moveend",this.animatorMoveendEvent,this)}},{key:"onEvents",value:function(){var e=this.map;this.unEvents(),this.options.methods&&(this.options.methods.click&&e.on("click",this.clickEvent,this),this.options.methods.mousemove&&e.on("mousemove",this.mousemoveEvent,this))}},{key:"unEvents",value:function(){var e=this.map;this.options.methods&&(this.options.methods.click&&e.off("click",this.clickEvent,this),this.options.methods.mousemove&&e.off("mousemove",this.mousemoveEvent,this))}}]),t}(vt),Mt=function(e,t){if("undefined"!==typeof document){var n=document.createElement("canvas");return n.width=e,n.height=t,n}},Nt=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments[1],r=arguments[2];c(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return i.options=r,i.canvasLayer={canvas:null,devicePixelRatio:window.devicePixelRatio},i.layer_=null,i.previousCursor_=void 0,i.init(e,r),i.argCheck(r),i}return f(t,e),u(t,[{key:"init",value:function(e,t){if(!(e&&e instanceof ol.Map))throw new Error("not map object");this.$Map=e,this.context=this.options.context||"2d",this.getCanvasLayer(),this.initDataRange(t),this.initAnimator(),this.onEvents()}},{key:"_canvasUpdate",value:function(e){this.render(this.canvasLayer.canvas,e)}},{key:"render",value:function(e,t){var n=this.$Map,i=e.getContext(this.context),o=this.options.animation,a=this.options.hasOwnProperty("projection")?this.options.projection:"EPSG:4326";if(this.isEnabledTime()){if(void 0===t)return r(i),this;"2d"===this.context&&(i.save(),i.globalCompositeOperation="destination-out",i.fillStyle="rgba(0, 0, 0, .1)",i.fillRect(0,0,i.canvas.width,i.canvas.height),i.restore())}else r(i);if("2d"===this.context)for(var s in this.options)i[s]=this.options[s];else i.clear(i.COLOR_BUFFER_BIT);var l={transferCoordinate:function(e){return n.getPixelFromCoordinate(ol.proj.transform(e,a,"EPSG:4326"))}};void 0!==t&&(l.filter=function(e){var n=o.trails||10;return!!(t&&e.time>t-n&&e.time<t)});var c=this.dataSet.get(l);return this.processData(c),"m"===this.options.unit?(this.options.size&&(this.options._size=this.options.size/zoomUnit),this.options.width&&(this.options._width=this.options.width/zoomUnit),this.options.height&&(this.options._height=this.options.height/zoomUnit)):(this.options._size=this.options.size,this.options._height=this.options.height,this.options._width=this.options.width),this.drawContext(i,new p(c),this.options,{x:0,y:0}),this.options.updateCallback&&this.options.updateCallback(t),this}},{key:"getCanvasLayer",value:function(){if(!this.canvasLayer.canvas&&!this.layer_){var e=this.getMapExtent();this.layer_=new ol.layer.Image({layerName:this.options.layerName,minResolution:this.options.minResolution,maxResolution:this.options.maxResolution,zIndex:this.options.zIndex,extent:e,source:new ol.source.ImageCanvas({canvasFunction:this.canvasFunction.bind(this),projection:this.options.hasOwnProperty("projection")?this.options.projection:"EPSG:4326",ratio:this.options.hasOwnProperty("ratio")?this.options.ratio:1})}),this.$Map.addLayer(this.layer_),this.$Map.un("precompose",this.reRender,this),this.$Map.on("precompose",this.reRender,this)}}},{key:"reRender",value:function(){if(this.layer_){var e=this.getMapExtent();this.layer_.setExtent(e)}}},{key:"canvasFunction",value:function(e,t,n,r,i){return this.canvasLayer.canvas?(this.canvasLayer.canvas.width=r[0],this.canvasLayer.canvas.height=r[1]):this.canvasLayer.canvas=Mt(r[0],r[1]),this.render(this.canvasLayer.canvas),this.canvasLayer.canvas}},{key:"getMapExtent",value:function(){var e=this.$Map.getSize();return this.$Map.getView().calculateExtent(e)}},{key:"addTo",value:function(e){this.init(e,this.options)}},{key:"removeLayer",value:function(){this.$Map&&(this.unEvents(),this.$Map.un("precompose",this.reRender,this),this.$Map.removeLayer(this.layer_),delete this.$Map,delete this.layer_,delete this.canvasLayer.canvas)}},{key:"getContext",value:function(){return this.canvasLayer.canvas.getContext(this.context)}},{key:"clickEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickEvent",this).call(this,{x:n[0],y:n[1]},e)}},{key:"mousemoveEvent",value:function(e){var n=e.pixel;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"mousemoveEvent",this).call(this,{x:n[0],y:n[1]},e)}},{key:"addAnimatorEvent",value:function(){this.$Map.on("movestart",this.animatorMovestartEvent,this),this.$Map.on("moveend",this.animatorMoveendEvent,this)}},{key:"onEvents",value:function(){var e=this.$Map;this.unEvents(),this.options.methods&&(this.options.methods.click&&e.on("click",this.clickEvent,this),this.options.methods.mousemove&&e.on("pointermove",this.mousemoveEvent,this))}},{key:"unEvents",value:function(){var e=this.$Map;this.options.methods&&(this.options.methods.click&&e.un("click",this.clickEvent,this),this.options.methods.pointermove&&e.un("pointermove",this.mousemoveEvent,this))}},{key:"setDefaultCursor",value:function(e,t){if(this.$Map){var n=this.$Map.getTargetElement();t?n.style.cursor!==e&&(this.previousCursor_=n.style.cursor,n.style.cursor=e):void 0!==this.previousCursor_&&(n.style.cursor=this.previousCursor_,this.previousCursor_=void 0)}}}]),t}(vt),Lt=function(e){function t(e,n,r,i){c(this,t);var o=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i));if(!vt)return h(o);var a=o;return i=i||{},a.init(i),a.argCheck(i),o.canvasLayer=n,o.clickEvent=o.clickEvent.bind(o),o.mousemoveEvent=o.mousemoveEvent.bind(o),o._moveStartEvent=o.moveStartEvent.bind(o),o._moveEndEvent=o.moveEndEvent.bind(o),o._zoomStartEvent=o.zoomStartEvent.bind(o),o.bindEvent(),o}return f(t,e),u(t,[{key:"clickEvent",value:function(e){var n=this.map.containerPointToLayerPoint([0,0]),r=this.devicePixelRatio=this.canvasLayer.devicePixelRatio=window.devicePixelRatio,i=e.layerPoint;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickEvent",this).call(this,L.point((i.x-n.x)/r,(i.y-n.y)/r),e)}},{key:"mousemoveEvent",value:function(e){var n=e.layerPoint;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"mousemoveEvent",this).call(this,n,e)}},{key:"bindEvent",value:function(){var e=this.map;this.options.methods&&(this.options.methods.click&&e.on("click",this.clickEvent),this.options.methods.mousemove&&e.on("mousemove",this.mousemoveEvent)),this.map.on("movestart",this._moveStartEvent),this.map.on("moveend",this._moveEndEvent),this.map.on("zoomstart",this._zoomStartEvent)}},{key:"destroy",value:function(){this.unbindEvent(),this.clearData(),this.animator&&this.animator.stop(),this.animator=null,this.canvasLayer=null}},{key:"unbindEvent",value:function(){var e=this.map;this.options.methods&&(this.options.methods.click&&e.off("click",this.clickEvent),this.options.methods.mousemove&&e.off("mousemove",this.mousemoveEvent)),this.map.off("movestart",this._moveStartEvent),this.map.off("moveend",this._moveEndEvent),this.map.off("zoomstart",this._zoomStartEvent)}},{key:"getContext",value:function(){return this.canvasLayer.getCanvas().getContext(this.context)}},{key:"addData",value:function(e,t){var n=e;e&&e.get&&(n=e.get()),this.dataSet.add(n),this.update({options:t})}},{key:"update",value:function(e){var n=e||{},r=n.data;r&&r.get&&(r=r.get()),void 0!=r&&this.dataSet.set(r),d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,{options:n.options})}},{key:"getData",value:function(){return this.dataSet}},{key:"removeData",value:function(e){if(this.dataSet){var t=this.dataSet.get({filter:function(t){return null==e||"function"!==typeof e||!e(t)}});this.dataSet.set(t),this.update({options:null})}}},{key:"clearData",value:function(){this.dataSet&&this.dataSet.clear(),this.update({options:null})}},{key:"_canvasUpdate",value:function(e){if(this.canvasLayer){var t=this,n=t.options.animation,r=this.getContext(),i=this.map;if(t.isEnabledTime()){if(void 0===e)return void this.clear(r);"2d"===this.context&&(r.save(),r.globalCompositeOperation="destination-out",r.fillStyle="rgba(0, 0, 0, .1)",r.fillRect(0,0,r.canvas.width,r.canvas.height),r.restore())}else this.clear(r);if("2d"===this.context)for(var o in t.options)r[o]=t.options[o];else r.clear(r.COLOR_BUFFER_BIT);if(!(t.options.minZoom&&i.getZoom()<t.options.minZoom||t.options.maxZoom&&i.getZoom()>t.options.maxZoom)){var a=i.getBounds(),s=a.getEast()-a.getWest(),l=a.getNorth()-a.getSouth(),c=i.getSize(),u=s/c.x,d=l/c.y,f=this.canvasLayer.getTopLeft(),h=i.latLngToContainerPoint(f),p={transferCoordinate:function(e){var n;n="2d"===t.context?i.latLngToContainerPoint(L.latLng(e[1],e[0])):{x:(e[0]-f.lng)/u,y:(f.lat-e[1])/d};var r={x:n.x-h.x,y:n.y-h.y};return[r.x,r.y]}};void 0!==e&&(p.filter=function(t){var r=n.trails||10;return e&&t.time>e-r&&t.time<e});var m=t.dataSet.get(p);this.processData(m),t.options._size=t.options.size;var g=i.latLngToContainerPoint(L.latLng(0,0)),v={x:g.x-h.x,y:g.y-h.y};this.drawContext(r,m,t.options,v),t.options.updateCallback&&t.options.updateCallback(e)}}}},{key:"init",value:function(e){var t=this;t.options=e,this.initDataRange(e),this.context=t.options.context||"2d",t.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(t.options.zIndex),this.initAnimator()}},{key:"addAnimatorEvent",value:function(){}},{key:"moveStartEvent",value:function(){var e=this.options.animation;this.isEnabledTime()&&this.animator&&(this.steps.step=e.stepsRange.start,this._hide())}},{key:"moveEndEvent",value:function(){this.canvasLayer.draw(),this._show()}},{key:"zoomStartEvent",value:function(){this._hide()}},{key:"clear",value:function(e){e&&e.clearRect&&e.clearRect(0,0,e.canvas.width,e.canvas.height)}},{key:"_hide",value:function(){this.canvasLayer.canvas.style.display="none"}},{key:"_show",value:function(){this.canvasLayer.canvas.style.display="block"}},{key:"draw",value:function(){this.canvasLayer.draw()}}]),t}(vt);if("undefined"!==typeof L){var Dt=L.Layer.extend({options:{attributionPrefix:null,attribution:""},initialize:function(e,t,n){n=n||{},this.dataSet=e||{},this.mapVOptions=t||{},this.render=this.render.bind(this),L.Util.setOptions(this,n),this.options.attributionPrefix&&(this.options.attribution=this.options.attributionPrefix+this.options.attribution),this.canvas=this._createCanvas(),L.stamp(this)},onAdd:function(e){this._map=e;var t=this.getPane(),n=this.container=L.DomUtil.create("div","leaflet-layer leaflet-zoom-animated",t);n.appendChild(this.canvas);var r=e.getSize();n.style.width=r.x+"px",n.style.height=r.y+"px",this.renderer=new Lt(e,this,this.dataSet,this.mapVOptions),this.draw(),this.fire("loaded")},onRemove:function(){L.DomUtil.remove(this.container),this.renderer.destroy()},addData:function(e,t){this.renderer.addData(e,t)},update:function(e){this.renderer.update(e)},getData:function(){return this.renderer&&(this.dataSet=this.renderer.getData()),this.dataSet},removeData:function(e){this.renderer&&this.renderer.removeData(e)},clearData:function(){this.renderer.clearData()},draw:function(){return this._reset()},setZIndex:function(e){this.canvas.style.zIndex=e},render:function(){this.renderer._canvasUpdate()},getCanvas:function(){return this.canvas},getContainer:function(){return this.container},getTopLeft:function(){var e,t=this._map;if(t){var n=t.getBounds();e=n.getNorthWest()}return e},_createCanvas:function(){var e=document.createElement("canvas");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=this.options.zIndex||600;var t="undefined"===typeof window?{}:window,n=this.devicePixelRatio=t.devicePixelRatio;return this.mapVOptions.context&&"2d"!==this.mapVOptions.context||e.getContext("2d").scale(n,n),e},_resize:function(){var e=this.canvas;if(e){var t=this._map,n=t.getSize();e.width=n.x,e.height=n.y,e.style.width=n.x+"px",e.style.height=n.y+"px";var r=t.getBounds(),i=t.latLngToLayerPoint(r.getNorthWest());L.DomUtil.setPosition(e,i)}},_reset:function(){this._resize(),this._render()},redraw:function(){this._resize(),this._render()},_render:function(){this.render()}});It=function(e,t,n){return new Dt(e,t,n)}}var jt,Ft=It,Bt=function(e){function t(e,n,r,i){c(this,t);var o=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return vt?(o.map=e,o.scene=e.scene,o.dataSet=n,r=r||{},o.init(r),o.argCheck(r),o.initDevicePixelRatio(),o.canvasLayer=i,o.stopAniamation=!1,o.animation=r.animation,o.clickEvent=o.clickEvent.bind(o),o.mousemoveEvent=o.mousemoveEvent.bind(o),o.bindEvent(),o):h(o)}return f(t,e),u(t,[{key:"initDevicePixelRatio",value:function(){this.devicePixelRatio=window.devicePixelRatio||1}},{key:"clickEvent",value:function(e){var n=e.point;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickEvent",this).call(this,n,e)}},{key:"mousemoveEvent",value:function(e){var n=e.point;d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"mousemoveEvent",this).call(this,n,e)}},{key:"addAnimatorEvent",value:function(){}},{key:"animatorMovestartEvent",value:function(){var e=this.options.animation;this.isEnabledTime()&&this.animator&&(this.steps.step=e.stepsRange.start)}},{key:"animatorMoveendEvent",value:function(){this.isEnabledTime()&&this.animator}},{key:"bindEvent",value:function(){this.map,this.options.methods&&(this.options.methods.click,this.options.methods.mousemove)}},{key:"unbindEvent",value:function(){var e=this.map;this.options.methods&&(this.options.methods.click&&e.off("click",this.clickEvent),this.options.methods.mousemove&&e.off("mousemove",this.mousemoveEvent))}},{key:"getContext",value:function(){return this.canvasLayer.canvas.getContext(this.context)}},{key:"init",value:function(e){this.options=e,this.initDataRange(e),this.context=this.options.context||"2d",this.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(this.options.zIndex),this.initAnimator()}},{key:"_canvasUpdate",value:function(e){this.map;var t=this.scene;if(this.canvasLayer&&!this.stopAniamation){var n=this.options.animation,r=this.getContext();if(this.isEnabledTime()){if(void 0===e)return void this.clear(r);"2d"===this.context&&(r.save(),r.globalCompositeOperation="destination-out",r.fillStyle="rgba(0, 0, 0, .1)",r.fillRect(0,0,r.canvas.width,r.canvas.height),r.restore())}else this.clear(r);if("2d"===this.context)for(var i in this.options)r[i]=this.options[i];else r.clear(r.COLOR_BUFFER_BIT);var o={transferCoordinate:function(e){var n=Cesium.Cartesian3.fromDegrees(e[0],e[1]),r=Cesium.SceneTransforms.wgs84ToWindowCoordinates(t,n);return void 0==r?[-1,-1]:[r.x,r.y]}};void 0!==e&&(o.filter=function(t){var r=n.trails||10;return!!(e&&t.time>e-r&&t.time<e)});var a=this.dataSet.get(o);this.processData(a),"m"==this.options.unit&&this.options.size,this.options._size=this.options.size;var s=Cesium.SceneTransforms.wgs84ToWindowCoordinates(t,Cesium.Cartesian3.fromDegrees(0,0));this.drawContext(r,new p(a),this.options,s),this.options.updateCallback&&this.options.updateCallback(e)}}},{key:"updateData",value:function(e,n){var r=e;r&&r.get&&(r=r.get()),void 0!=r&&this.dataSet.set(r),d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,{options:n})}},{key:"addData",value:function(e,t){var n=e;e&&e.get&&(n=e.get()),this.dataSet.add(n),this.update({options:t})}},{key:"getData",value:function(){return this.dataSet}},{key:"removeData",value:function(e){if(this.dataSet){var t=this.dataSet.get({filter:function(t){return null==e||"function"!=typeof e||!e(t)}});this.dataSet.set(t),this.update({options:null})}}},{key:"clearData",value:function(){this.dataSet&&this.dataSet.clear(),this.update({options:null})}},{key:"draw",value:function(){this.canvasLayer.draw()}},{key:"clear",value:function(e){e&&e.clearRect&&e.clearRect(0,0,e.canvas.width,e.canvas.height)}}]),t}(vt);if("undefined"!==typeof Cesium){var qt=0,zt=(Cesium,function(){function e(t,n,r,i){if(c(this,e),this.map=t,this.scene=t.scene,this.mapvBaseLayer=new Bt(t,n,r,this),this.mapVOptions=r,this.initDevicePixelRatio(),this.canvas=this._createCanvas(),this.render=this.render.bind(this),i)this.container=i;else{var o=t.container.querySelector(".cesium-viewer-cesiumWidgetContainer");this.container=o||t.container}this.addInnerContainer(),this.bindEvent(),this._reset()}return u(e,[{key:"initDevicePixelRatio",value:function(){this.devicePixelRatio=window.devicePixelRatio||1}},{key:"addInnerContainer",value:function(){this.container.appendChild(this.canvas)}},{key:"bindEvent",value:function(){var e=this;this.innerMoveStart=this.moveStartEvent.bind(this),this.innerMoveEnd=this.moveEndEvent.bind(this),this.scene.camera.moveStart.addEventListener(this.innerMoveStart,this),this.scene.camera.moveEnd.addEventListener(this.innerMoveEnd,this);var t=new Cesium.ScreenSpaceEventHandler(this.scene.canvas);t.setInputAction((function(t){e.innerMoveEnd()}),Cesium.ScreenSpaceEventType.LEFT_UP),t.setInputAction((function(t){e.innerMoveEnd()}),Cesium.ScreenSpaceEventType.MIDDLE_UP),this.handler=t}},{key:"unbindEvent",value:function(){this.scene.camera.moveStart.removeEventListener(this.innerMoveStart,this),this.scene.camera.moveEnd.removeEventListener(this.innerMoveEnd,this),this.scene.postRender.removeEventListener(this._reset,this),this.handler&&(this.handler.destroy(),this.handler=null)}},{key:"moveStartEvent",value:function(){this.mapvBaseLayer&&(this.mapvBaseLayer.animatorMovestartEvent(),this.scene.postRender.addEventListener(this._reset,this))}},{key:"moveEndEvent",value:function(){this.mapvBaseLayer&&(this.scene.postRender.removeEventListener(this._reset,this),this.mapvBaseLayer.animatorMoveendEvent(),this._reset())}},{key:"zoomStartEvent",value:function(){this._unvisiable()}},{key:"zoomEndEvent",value:function(){this._unvisiable()}},{key:"addData",value:function(e,t){void 0!=this.mapvBaseLayer&&this.mapvBaseLayer.addData(e,t)}},{key:"updateData",value:function(e,t){void 0!=this.mapvBaseLayer&&this.mapvBaseLayer.updateData(e,t)}},{key:"getData",value:function(){return this.mapvBaseLayer&&(this.dataSet=this.mapvBaseLayer.getData()),this.dataSet}},{key:"removeData",value:function(e){void 0!=this.mapvBaseLayer&&this.mapvBaseLayer&&this.mapvBaseLayer.removeData(e)}},{key:"removeAllData",value:function(){void 0!=this.mapvBaseLayer&&this.mapvBaseLayer.clearData()}},{key:"_visiable",value:function(){return this.canvas.style.display="block",this}},{key:"_unvisiable",value:function(){return this.canvas.style.display="none",this}},{key:"_createCanvas",value:function(){var e=document.createElement("canvas");e.id=this.mapVOptions.layerid||"mapv"+qt++,e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=this.mapVOptions.zIndex||0,e.width=parseInt(this.map.canvas.width),e.height=parseInt(this.map.canvas.height),e.style.width=this.map.canvas.style.width,e.style.height=this.map.canvas.style.height;var t=this.devicePixelRatio;return"2d"==this.mapVOptions.context&&e.getContext(this.mapVOptions.context).scale(t,t),e}},{key:"_reset",value:function(){this.resizeCanvas(),this.fixPosition(),this.onResize(),this.render()}},{key:"draw",value:function(){this._reset()}},{key:"show",value:function(){this._visiable()}},{key:"hide",value:function(){this._unvisiable()}},{key:"destroy",value:function(){this.remove()}},{key:"remove",value:function(){void 0!=this.mapvBaseLayer&&(this.removeAllData(),this.mapvBaseLayer.clear(this.mapvBaseLayer.getContext()),this.mapvBaseLayer=void 0,this.canvas.parentElement.removeChild(this.canvas))}},{key:"update",value:function(e){void 0!=e&&this.updateData(e.data,e.options)}},{key:"resizeCanvas",value:function(){if(void 0!=this.canvas&&null!=this.canvas){var e=this.canvas;e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.width=parseInt(this.map.canvas.width),e.height=parseInt(this.map.canvas.height),e.style.width=this.map.canvas.style.width,e.style.height=this.map.canvas.style.height}}},{key:"fixPosition",value:function(){}},{key:"onResize",value:function(){}},{key:"render",value:function(){void 0!=this.mapvBaseLayer&&this.mapvBaseLayer._canvasUpdate()}}]),e}());jt=function(e,t,n,r){return new zt(e,t,n,r)}}var Ut=jt,Gt={getDataSet:function(e){var t=[],n=e.features;if(n)for(var r=0;r<n.length;r++){var i=n[r],o=i.geometry,a=i.properties,s={};for(var l in a)s[l]=a[l];s.geometry=o,t.push(s)}return new p(t)}},Vt={CSVToArray:function(e,t){t=t||",";var n=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),r=[[]],i=null;while(i=n.exec(e)){var o,a=i[1];a.length&&a!==t&&r.push([]),o=i[2]?i[2].replace(new RegExp('""',"g"),'"'):i[3],r[r.length-1].push(o)}return r},getDataSet:function(e,t){for(var n=this.CSVToArray(e,t||","),r=[],i=n[0],o=1;o<n.length-1;o++){for(var a=n[o],s={},l=0;l<a.length;l++){var c=a[l];"geometry"==i[l]&&(c=JSON.parse(c)),s[i[l]]=c}r.push(s)}return new p(r)}};t.version=n,t.canvasClear=r,t.canvasResolutionScale=i,t.canvasDrawSimple=y,t.canvasDrawHeatmap=I,t.canvasDrawGrid=A,t.canvasDrawHoneycomb=M,t.webglDrawSimple=Ee,t.webglDrawPoint=W,t.webglDrawLine=z,t.webglDrawPolygon=Ce,t.utilCityCenter=l,t.utilCurve=Te,t.utilForceEdgeBundling=Ie,t.utilDataRangeIntensity=_,t.utilDataRangeCategory=Ae,t.utilDataRangeChoropleth=Re,t.Map=Pe,t.baiduMapCanvasLayer=Me,t.baiduMapAnimationLayer=_t,t.baiduMapLayer=St,t.googleMapCanvasLayer=Ct,t.googleMapLayer=kt,t.MaptalksLayer=At,t.AMapLayer=Pt,t.OpenlayersLayer=Nt,t.leafletMapLayer=Ft,t.cesiumMapLayer=Ut,t.DataSet=p,t.geojson=Gt,t.csv=Vt,Object.defineProperty(t,"__esModule",{value:!0})}))}).call(this,n("f28c"))},fe3b:function(e,t,n){"use strict";n("92b7")},fe54:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"components-input-demo-presuffix"},[n("a-input",{attrs:{placeholder:"请点击选择部门",readOnly:"",disabled:e.disabled},on:{click:e.openModal},model:{value:e.departNames,callback:function(t){e.departNames=t},expression:"departNames"}},[n("a-icon",{attrs:{slot:"prefix",type:"cluster",title:"部门选择控件"},slot:"prefix"}),e.departIds?n("a-icon",{attrs:{slot:"suffix",type:"close-circle",title:"清空"},on:{click:e.handleEmpty},slot:"suffix"}):e._e()],1),n("j-select-depart-modal",{ref:"innerDepartSelectModal",attrs:{"modal-width":e.modalWidth,multi:e.multi,rootOpened:e.rootOpened,"depart-id":e.value},on:{ok:e.handleOK,initComp:e.initComp}})],1)},i=[],o=(n("ac4d"),n("8a81"),n("ac6a"),n("c5f6"),n("b0cd")),a={name:"JSelectDepart",components:{JSelectDepartModal:o["default"]},props:{modalWidth:{type:Number,default:500,required:!1},multi:{type:Boolean,default:!1,required:!1},rootOpened:{type:Boolean,default:!0,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{visible:!1,confirmLoading:!1,departNames:"",departIds:""}},mounted:function(){this.departIds=this.value},watch:{value:function(e){this.departIds=e}},methods:{initComp:function(e){this.departNames=e},openModal:function(){this.$refs.innerDepartSelectModal.show()},handleOK:function(e,t){if(console.log("当前选中部门",e),console.log("当前选中部门ID",t),e){var n="",r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;n+=","+l.departName}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}this.departNames=n.substring(1),this.departIds=t}else this.departNames="",this.departIds="";this.$emit("change",this.departIds)},getDepartNames:function(){return this.departNames},handleEmpty:function(){this.handleOK("")}},model:{prop:"value",event:"change"}},s=a,l=(n("ebd3"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"fed3ad80",null);t["default"]=c.exports},fe54a:function(e,t,n){},fe96:function(e,t,n){var r=n("784d");e.exports=/web0s(?!.*chrome)/i.test(r)},fec4:function(e,t,n){(function(t){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a="[object Map]",s="[object Object]",l="[object Promise]",c="[object Set]",u="[object WeakMap]",d="[object DataView]",f=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")();function y(e,t){var n=-1,r=e?e.length:0,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function b(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function _(e,t){return y(t,(function(t){return[t,e[t]]}))}function w(e,t){return null==e?void 0:e[t]}function x(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function S(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function C(e,t){return function(n){return e(t(n))}}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}var k=Function.prototype,O=Object.prototype,T=v["__core-js_shared__"],I=function(){var e=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),A=k.toString,R=O.hasOwnProperty,P=O.toString,M=RegExp("^"+A.call(R).replace(f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=O.propertyIsEnumerable,L=C(Object.keys,Object),D=J(v,"DataView"),j=J(v,"Map"),F=J(v,"Promise"),B=J(v,"Set"),q=J(v,"WeakMap"),z=ne(D),U=ne(j),G=ne(F),V=ne(B),W=ne(q);function H(e,t){var n=ie(e)||re(e)?b(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!R.call(e,o)||i&&("length"==o||Z(o,r))||n.push(o);return n}function $(e){return P.call(e)}function K(e){if(!ce(e)||ee(e))return!1;var t=se(e)||x(e)?M:h;return t.test(ne(e))}function X(e){if(!te(e))return L(e);var t=[];for(var n in Object(e))R.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Y(e){return function(t){var n=Q(t);return n==a?S(t):n==c?E(t):_(t,e(t))}}function J(e,t){var n=w(e,t);return K(n)?n:void 0}var Q=$;function Z(e,t){return t=null==t?n:t,!!t&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}function ee(e){return!!I&&I in e}function te(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||O;return e===n}function ne(e){if(null!=e){try{return A.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function re(e){return ae(e)&&R.call(e,"callee")&&(!N.call(e,"callee")||P.call(e)==r)}(D&&Q(new D(new ArrayBuffer(1)))!=d||j&&Q(new j)!=a||F&&Q(F.resolve())!=l||B&&Q(new B)!=c||q&&Q(new q)!=u)&&(Q=function(e){var t=P.call(e),n=t==s?e.constructor:void 0,r=n?ne(n):void 0;if(r)switch(r){case z:return d;case U:return a;case G:return l;case V:return c;case W:return u}return t});var ie=Array.isArray;function oe(e){return null!=e&&le(e.length)&&!se(e)}function ae(e){return ue(e)&&oe(e)}function se(e){var t=ce(e)?P.call(e):"";return t==i||t==o}function le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function ce(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ue(e){return!!e&&"object"==typeof e}function de(e){return oe(e)?H(e):X(e)}var fe=Y(de);e.exports=fe}).call(this,n("c8ba"))},fee9:function(e,t,n){},ff05:function(e,t,n){var r={xhr:n("3ede"),jquery:n("d735"),angular:n("e539")},i=n("2ef0");i.each(r,(function(e,t){"function"!==typeof e&&delete r[t]})),r.xhr?r._default="xhr":r.angular?r._default="angular":r._default="jquery",e.exports=r},ff1e:function(e,t,n){var r=n("791c");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},ff2a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{attrs:{bordered:!1}},[n("a-row",[n("a-col",{attrs:{md:2,sm:4}},[n("a-select",{staticStyle:{width:"90px"},attrs:{defaultValue:"POST",size:"large"},on:{change:e.handleChange}},[n("a-select-option",{attrs:{value:"POST"}},[e._v("POST")])],1)],1),n("a-col",{attrs:{md:22,sm:20}},[n("a-input-search",{attrs:{placeholder:"input send url",enterButton:"Send",size:"large"},on:{search:e.onSearch},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}})],1)],1),n("a-tabs",{attrs:{defaultActiveKey:"2"}},[n("a-tab-pane",{key:"2",attrs:{tab:"params"}},[n("textarea",{staticStyle:{width:"100%","font-size":"16px","font-weight":"500"},attrs:{rows:13},on:{input:e.changeVal}})])],1),n("a-tabs",{attrs:{defaultActiveKey:"1"}},[n("a-tab-pane",{key:"1",attrs:{tab:"response"}},[n("textarea",{staticStyle:{width:"100%","font-size":"16px","font-weight":"500"},attrs:{rows:10,readonly:""},domProps:{innerHTML:e._s(e.resultJson)}})])],1)],1)},i=[],o=(n("a481"),n("0fea")),a=n("9fb0"),s=n("2b0e"),l={name:"FlowTest",data:function(){return{url:"",paramJson:"",resultJson:{},requestMethod:"POST"}},methods:{onSearch:function(e){var t=this,n=this;this.resultJson={},"POST"===this.requestMethod.toUpperCase()?Object(o["j"])(e,this.paramJson).then((function(e){console.log(e),t.resultJson=e})).catch((function(e){n.$message.error("请求异常:"+e)})):Object(o["d"])(e,this.paramJson).then((function(e){console.log(e),t.resultJson=e})).catch((function(e){n.$message.error("请求异常:"+e)}))},changeVal:function(e){try{var t=e.target.value;t=t.replace(/\n/g,""),t=t.replace(/\s*/g,""),t.indexOf(",}")>0&&(t=t.replace(",}","}")),this.paramJson=JSON.parse(t)}catch(e){console.log(e),this.$message.error("非法的JSON字符串")}},handleChange:function(e){this.requestMethod=e},created:function(){var e=s["default"].ls.get(a["a"]);this.headers={"X-Access-Token":e}}}},c=l,u=n("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},ff3c:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-button",{attrs:{type:"primary"},on:{click:e.handleTableCheck}},[e._v("表单验证")]),n("span",{staticStyle:{"padding-left":"8px"}}),n("a-tooltip",{attrs:{placement:"top",title:"获取值,忽略表单验证",autoAdjustOverflow:!0}},[n("a-button",{attrs:{type:"primary"},on:{click:e.handleTableGet}},[e._v("获取值")])],1),n("span",{staticStyle:{"padding-left":"8px"}}),n("a-tooltip",{attrs:{placement:"top",title:"模拟加载1000条数据",autoAdjustOverflow:!0}},[n("a-button",{attrs:{type:"primary"},on:{click:e.handleTableSet}},[e._v("设置值")])],1),n("j-editable-table",{ref:"editableTable",staticStyle:{"margin-top":"8px"},attrs:{loading:e.loading,columns:e.columns,dataSource:e.dataSource,rowNumber:!0,rowSelection:!0,actionButton:!0,dragSort:!0},on:{selectRowChange:e.handleSelectRowChange},scopedSlots:e._u([{key:"action",fn:function(t){return[n("a",{on:{click:function(n){return e.handleDelete(t)}}},[e._v(e._s(t.text))])]}}])})],1)},i=[],o=n("c1df"),a=n.n(o),s=n("e2e0"),l=n("ca00"),c=n("7550"),u={name:"DefaultTable",components:{JEditableTable:c["default"]},data:function(){return{loading:!1,columns:[{title:"字段名称",key:"dbFieldName",width:"300px",type:s["a"].input,defaultValue:"",placeholder:"请输入${title}",validateRules:[{required:!0,message:"请输入${title}"},{pattern:/^[a-z|A-Z][a-z|A-Z\d_-]{0,}$/,message:"${title}必须以字母开头,可包含数字、下划线、横杠"}]},{title:"文件域",key:"upload",type:s["a"].upload,width:"300px",placeholder:"点击上传",token:!0,responseName:"message",action:window._CONFIG["domianURL"]+"/sys/common/upload"},{title:"字段类型",key:"dbFieldType",width:"300px",type:s["a"].select,options:[{title:"String",value:"string"},{title:"Integer",value:"int"},{title:"Double",value:"double"},{title:"Boolean",value:"boolean"}],allowInput:!0,defaultValue:"",placeholder:"请选择${title}",validateRules:[{required:!0,message:"请选择${title}"}]},{title:"性别(字典)",key:"sex_dict",width:"300px",type:s["a"].select,options:[],dictCode:"sex",placeholder:"请选择${title}",validateRules:[{required:!0,message:"请选择${title}"}]},{title:"多选测试",key:"multipleSelect",width:"300px",type:s["a"].select,props:{mode:"multiple"},options:[{title:"String",value:"string"},{title:"Integer",value:"int"},{title:"Double",value:"double"},{title:"Boolean",value:"boolean"}],defaultValue:["int","boolean"],placeholder:"这里可以多选",validateRules:[{required:!0,message:"请选择${title}"}]},{title:"字段长度",key:"dbLength",width:"100px",type:s["a"].inputNumber,defaultValue:32,placeholder:"${title}",validateRules:[{required:!0,message:"请输入${title}"}]},{title:"日期",key:"datetime",width:"320px",type:s["a"].datetime,defaultValue:"2019-4-30 14:52:22",placeholder:"请选择${title}",validateRules:[{required:!0,message:"请选择${title}"}]},{title:"可以为空",key:"isNull",width:"100px",type:s["a"].checkbox,customValue:["Y","N"],defaultChecked:!1},{title:"操作",key:"action",width:"100px",type:s["a"].slot,slotName:"action",defaultValue:"删除"}],dataSource:[],selectedRowIds:[]}},mounted:function(){this.randomData(23,!1)},methods:{handleTableCheck:function(){var e=this;this.$refs.editableTable.getValues((function(t){0===t?e.$message.success("验证通过"):e.$message.error("验证未通过")}))},handleTableGet:function(){this.$refs.editableTable.getValues((function(e,t){console.log("values:",t)}),!1),console.log("deleteIds:",this.$refs.editableTable.getDeleteIds()),this.$message.info("获取值成功,请看控制台输出")},handleTableSet:function(){this.randomData(1e3,!0)},handleSelectRowChange:function(e){this.selectedRowIds=e},randomData:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n&&(this.loading=!0);for(var r=function(){var e=parseInt(Object(l["d"])(1e3,9999999999999));return a()(new Date(e)).format("YYYY-MM-DD HH:mm:ss")},i=Date.now(),o=[],s=0;s<e;s++)o.push({id:Object(l["f"])(),dbFieldName:"name_".concat(s+1),multipleSelect:["string",["int","double","boolean"][Object(l["d"])(0,2)]],dbFieldType:["string","int","double","boolean"][Object(l["d"])(0,3)],dbLength:Object(l["d"])(0,233),datetime:r(),isNull:["Y","N"][Object(l["d"])(0,1)]});this.dataSource=o;var c=Date.now(),u=c-i;n&&u<e&&setTimeout((function(){t.loading=!1}),e-u)},handleDelete:function(e){var t=e.rowId,n=e.target;n.removeRows(t)}}},d=u,f=n("2877"),h=Object(f["a"])(d,r,i,!1,null,"3ff4921c",null);t["default"]=h.exports},ff80:function(e,t,n){"use strict";var r=n("e269"),i=n("6d836"),o=n("1300"),a=n("256f"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(t){var n=e.call(this)||this;return n.projection_=Object(a["f"])(t.projection),n.attributions_=c(t.attributions),n.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,n.loading=!1,n.state_=void 0!==t.state?t.state:i["a"].READY,n.wrapX_=void 0!==t.wrapX&&t.wrapX,n}return s(t,e),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolutions=function(){return Object(o["b"])()},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.getContextOptions=function(){},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=c(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(r["a"]);function c(e){return e?Array.isArray(e)?function(t){return e}:"function"===typeof e?e:function(t){return[e]}:null}t["a"]=l},ffda:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(e){var t;while(null!=(t=e.next()))if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){var t;while(null!=(t=e.next()))if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},i=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||a(s),c=n.keywords||a(o),u=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},f=n.hooks||{},h=n.dateSQL||{date:!0,time:!0,timestamp:!0},p=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(e,t){var n=e.next();if(f[n]){var o=f[n](e,t);if(!1!==o)return o}if(d.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(d.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&d.doubleQuote)return t.tokenize=y(n),t.tokenize(e,t);if((d.nCharCast&&("n"==n||"N"==n)||d.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(d.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&d.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=y(e.next(),!0))(e,t)},"keyword";if(d.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=b(1),t.tokenize(e,t);if("."!=n){if(u.test(n))return e.eatWhile(u),"operator";if(m.test(n))return"bracket";if(g.test(n))return e.eatWhile(g),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var a=e.current().toLowerCase();return h.hasOwnProperty(a)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":i.hasOwnProperty(a)?"atom":l.hasOwnProperty(a)?"builtin":c.hasOwnProperty(a)?"keyword":r.hasOwnProperty(a)?"string-2":null}return d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:d.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function y(e,t){return function(n,r){var i,o=!1;while(null!=(i=n.next())){if(i==e&&!o){r.tokenize=v;break}o=(p||t)&&!o&&"\\"==i}return"string"}}function b(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=b(e+1):n.tokenize=e>1?b(e-1):v:t.skipToEnd(),"comment"}}function _(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}function w(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:v,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==v&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?_(e,t,")"):"["==r?_(e,t,"]"):t.context&&t.context.type==r&&w(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}}));var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var s="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";e.defineMIME("text/x-sql",{name:"sql",keywords:a(o+"begin"),builtin:a(s),atoms:a("false true null unknown"),dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:a("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:a(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:a("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:a("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),e.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":r,":":r,"?":r,$:r,'"':n,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(o+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")})}))},fffe:function(e,t,n){}}]);