UNPKG

@kq_npm/client3d_webgl_vue

Version:

KQGIS Client3D for Vue.js

1 lines 18.3 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@kq_npm/client_common_vue/_utils/gis-utils"),require("@kq_npm/client_common_vue/init.js"),require("@kq_npm/client_common_vue/_utils/util")):"function"==typeof define&&define.amd?define("@kq_npm/client3d_webgl_vue",["vue","@kq_npm/client_common_vue/_utils/gis-utils","@kq_npm/client_common_vue/init.js","@kq_npm/client_common_vue/_utils/util"],t):"object"==typeof exports?exports["@kq_npm/client3d_webgl_vue"]=t(require("vue"),require("@kq_npm/client_common_vue/_utils/gis-utils"),require("@kq_npm/client_common_vue/init.js"),require("@kq_npm/client_common_vue/_utils/util")):e["@kq_npm/client3d_webgl_vue"]=t(e.Vue,e["@kq_npm/client_common_vue/_utils/gis-utils"],e["@kq_npm/client_common_vue/init.js"],e["@kq_npm/client_common_vue/_utils/util"])}(this,(function(e,t,a,i){return function(){"use strict";var n={1705:function(e,t,a){var i=a(9389),n=a(7997),l=a.n(n);i.ElMessage.install=(e,t)=>{l()(e,t),e.component("KqMessage",i.ElMessage)},t.Z=i.ElMessage},348:function(e){e.exports=require("@kq_npm/client_icons_vue")},9389:function(e){e.exports=require("element-plus/dist/index.full.js")},7080:function(e){e.exports=require("vue-i18n/dist/vue-i18n.cjs.js")},7135:function(e){e.exports=t},3458:function(e){e.exports=i},7997:function(e){e.exports=a},1895:function(t){t.exports=e}},l={};function r(e){var t=l[e];if(void 0!==t)return t.exports;var a=l[e]={exports:{}};return n[e](a,a.exports,r),a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){r.r(o),r.d(o,{SceneAdvancedToImageViewModel:function(){return i},default:function(){return c}});var e=r(1895),t=r(7135),a=r(1705);class i{_viewer=null;_options=null;_canvasToImage=null;_drawManager=null;_satellitePyramidPrimitive=null;_language={};constructor(e,t){this._language=e._language,this._viewer=e._viewer,this._options=t,this._drawManager=e._drawManager,this._viewer.scene.globe.depthTestAgainstTerrain=!0,this._canvasToImage=new Cesium.Kq3dCanvasToImage(this._viewer.container,{viewer:this._viewer,canvas:this._viewer.scene.canvas})}addSatellitePyramidPrimitive(e){let t=Cesium.Cartographic.fromCartesian(e),a=Cesium.Math.toDegrees(t.latitude),i=Cesium.Math.toDegrees(t.longitude),n=Cesium.Cartesian3.fromDegrees(i,a,this._options.height);this._satellitePyramidPrimitive=this._viewer.scene.primitives.add(new Cesium.Kq3dSatellitePyramidPrimitive(this._viewer,{position:n,angle1:this._options.leftRightAngle,angle2:this._options.frontAndRearAngle,areaType:2,color:Cesium.Color.fromCssColorString(this._options.color).withAlpha(this._options.colorAlpha),lineColor:Cesium.Color.fromCssColorString(this._options.lineColor).withAlpha(this._options.lineColorAlpha),outline:this._options.outline}))}exportPicture(){if(this._satellitePyramidPrimitive)try{this.setView(),setTimeout((()=>{this._satellitePyramidPrimitive.show=!1,this.markPic(),this._satellitePyramidPrimitive.show=!0}),1e3)}catch(e){(0,a.Z)({message:this._language.toImageErrorTips,type:"error"})}else(0,a.Z)({message:this._language.toImageCentrumOpticusTips,type:"warning"})}getBounds(){if(this._satellitePyramidPrimitive){let e=this._satellitePyramidPrimitive.groundPositions,t=[];return e.forEach((e=>{let a=Cesium.Cartographic.fromCartesian(e),i=Cesium.Math.toDegrees(a.latitude),n=Cesium.Math.toDegrees(a.longitude);t.push([n,i])})),this.getRect(t)}return{}}getRect(e){let t,a,i,n;for(let l in e){const r=e[l],o=r[0],s=r[1];t?o<t&&(t=o):t=o,a?s<a&&(a=s):a=s,i?o>i&&(i=o):i=o,n?s>n&&(n=s):n=s}return{xmin:t,ymin:a,xmax:i,ymax:n}}setView(){let{xmin:e,ymin:t,xmax:a,ymax:i}=this.getBounds();if(e&&t&&a&&i){let n=Cesium.Rectangle.fromDegrees(Number(e),Number(t),Number(a),Number(i));this._viewer.camera.setView({destination:n,orientation:{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90)}})}}markPic(){let e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._viewer.scene,this._satellitePyramidPrimitive.groundPositions[0]),t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._viewer.scene,this._satellitePyramidPrimitive.groundPositions[1]),a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._viewer.scene,this._satellitePyramidPrimitive.groundPositions[2]),i=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._viewer.scene,this._satellitePyramidPrimitive.groundPositions[3]);var n={width:window.innerWidth,height:window.innerHeight,type:this._options.imgFormat};this._viewer.render();let l=document.createElement("canvas");l.width=this._viewer.canvas.width,l.height=this._viewer.canvas.height;let r=l.getContext("2d");r.beginPath(),r.moveTo(i.x,i.y),r.lineTo(e.x,e.y),r.lineTo(t.x,t.y),r.lineTo(a.x,a.y),r.closePath(),r.clip(),r.restore(),r.save(),r.drawImage(this._viewer.canvas,0,0),this._canvasToImage.saveAsimages(l,n)}start(){var e=this;this.clear(),this._drawManager.startDraw("point",{clampToGround:!0,image:null},((t,{shape:a})=>{a.groupName&&"SceneAdvancedToImageDraw"===a.groupName&&(a&&(e._options.position=a.position,e.addSatellitePyramidPrimitive(e._options.position)),e._drawManager&&e._drawManager.clearDrawGroup("SceneAdvancedToImageDraw"))}),"SceneAdvancedToImageDraw")}paramsChanged(e,t){if(this._options&&(this._options[e]=t,this._satellitePyramidPrimitive))switch(e){case"height":var a=Cesium.Cartographic.fromCartesian(this._satellitePyramidPrimitive.position),i=Cesium.Math.toDegrees(a.latitude),n=Cesium.Math.toDegrees(a.longitude),l=Cesium.Cartesian3.fromDegrees(n,i,t);this._satellitePyramidPrimitive.position=l;break;case"heading":case"pitch":case"roll":this._satellitePyramidPrimitive[e]=Cesium.Math.toRadians(t);break;case"leftRightAngle":this._satellitePyramidPrimitive.angle1=t;break;case"frontAndRearAngle":this._satellitePyramidPrimitive.angle2=t}}clear(){this._drawManager.stopDraw(),this._satellitePyramidPrimitive&&(this._viewer.scene.primitives.remove(this._satellitePyramidPrimitive),this._satellitePyramidPrimitive=null)}destroy(){this.clear()}}var n=r(348),l=r(3458),s=r(7080);const m={class:"kq3d-scene-advanced-to-image-box"},u={class:"kq3d-scene-advanced-to-image-footer"},d={name:"Kq3dSceneAdvancedToImage"};var c=Object.assign(d,{props:{settingParams:{type:Object},showShadow:{type:Boolean,default:!0},position:[String,Object],showHeaderTemp:{type:Boolean,default:!1},isCollapseHeaderTemp:{type:Boolean,default:!1},headerTempTitle:{type:String},headerTempIcon:{type:[Object,String],default:n.IconAdvancedImaging},isRight:{type:Boolean,default:!0}},setup(a,{expose:n}){const r=a,{proxy:o}=(0,e.getCurrentInstance)();let d=(0,e.ref)(""),c=(0,e.ref)(o.$i18n.global.messages[o.$i18n.global.locale].webgl),g=null,h=(0,e.reactive)({collapseValue:r.settingParams&&r.settingParams.collapseValue||(""==(r.settingParams&&r.settingParams.collapseValue)?"":"screenParameter"),height:r.settingParams&&r.settingParams.height||3e3,minHeight:r.settingParams&&r.settingParams.minHeight||10,maxHeight:r.settingParams&&r.settingParams.maxHeight||1e4,heading:r.settingParams&&r.settingParams.heading||0,minHeading:r.settingParams&&r.settingParams.minHeading||-180,maxHeading:r.settingParams&&r.settingParams.maxHeading||180,pitch:r.settingParams&&r.settingParams.pitch||0,minPitch:r.settingParams&&r.settingParams.minPitch||-30,maxPitch:r.settingParams&&r.settingParams.maxPitch||30,roll:r.settingParams&&r.settingParams.roll||0,minRoll:r.settingParams&&r.settingParams.minRoll||-30,maxRoll:r.settingParams&&r.settingParams.maxRoll||30,leftRightAngle:r.settingParams&&r.settingParams.leftRightAngle||30,minLeftRightAngle:r.settingParams&&r.settingParams.minLeftRightAngle||1,maxLeftRightAngle:r.settingParams&&r.settingParams.maxLeftRightAngle||60,frontAndRearAngle:r.settingParams&&r.settingParams.frontAndRearAngle||30,minFrontAndRearAngle:r.settingParams&&r.settingParams.minFrontAndRearAngle||1,maxFrontAndRearAngle:r.settingParams&&r.settingParams.maxFrontAndRearAngle||60,imgFormat:r.settingParams&&r.settingParams.imgFormat||"jpg",color:r.settingParams&&r.settingParams.color||"#CB6F1B",colorAlpha:r.settingParams&&r.settingParams.colorAlpha||.4,lineColor:r.settingParams&&r.settingParams.lineColor||"#ffffff",lineColorAlpha:r.settingParams&&r.settingParams.lineColorAlpha||.4,outline:r.settingParams&&r.settingParams.outline||!1}),f=(0,e.ref)(null),p=(0,e.ref)(),_=(0,e.ref)(),{locale:v,messages:x}=(0,s.useI18n)(),P=(0,e.ref)(null);P.value=c.value.sceneAdvancedToImageTitle,(0,e.watch)((()=>v.value),((e,t)=>{c.value=x.value[e].webgl,P.value=c.value.sceneAdvancedToImageTitle})),(0,e.onMounted)((()=>{(0,l.updatePosition)(f.value,r),(0,e.watch)((()=>r.position),((e,t)=>{(0,l.updatePosition)(f.value,r)})),w(),(0,e.watch)((()=>r.showHeaderTemp),((t,a)=>{(0,e.nextTick)((()=>{w()}))})),d.value=o.$i18n.locale,t.utils.getWebMap(null,(e=>{e&&(g=new i(e,h))}))}));const w=()=>{r.showHeaderTemp&&(p.value=(0,l.createHeaderTemp)(f.value,(0,e.toRefs)(r),_,P))};function C(e){g&&g.paramsChanged(e,h[e])}return(0,e.onBeforeUnmount)((()=>{g&&g.destroy()})),n({}),(t,i)=>{const n=(0,e.resolveComponent)("kq-row"),l=(0,e.resolveComponent)("kq-slider"),r=(0,e.resolveComponent)("kq-col"),o=(0,e.resolveComponent)("kq-input-number"),s=(0,e.resolveComponent)("kq-form-item"),v=(0,e.resolveComponent)("kq-form"),x=(0,e.resolveComponent)("kq-collapse-item"),P=(0,e.resolveComponent)("kq-option"),w=(0,e.resolveComponent)("kq-select"),V=(0,e.resolveComponent)("kq-collapse"),y=(0,e.resolveComponent)("kq-button");return(0,e.openBlock)(),(0,e.createElementBlock)("section",{class:(0,e.normalizeClass)(["kq3d-scene-advanced-to-image",{"kq-box-shadow":a.showShadow}]),ref_key:"boxRef",ref:f},[a.showHeaderTemp?((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)((0,e.unref)(p)),{key:0,ref_key:"headerTempRef",ref:_},null,512)):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("div",m,[(0,e.createVNode)(n,{class:"kq3d-scene-advanced-to-image-tip"},{default:(0,e.withCtx)((()=>[(0,e.createElementVNode)("p",null,(0,e.toDisplayString)((0,e.unref)(c).sceneAdvancedToImageTips),1)])),_:1}),(0,e.createVNode)(V,{"model-value":(0,e.unref)(h).collapseValue},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(x,{class:"scene-content",title:(0,e.unref)(c).screenParameter,name:"screenParameter"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(v,{"label-width":"zh"===(0,e.unref)(d)?"90px":"120px","label-position":"left"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(c).height+"(m)"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(l,{modelValue:(0,e.unref)(h).height,"onUpdate:modelValue":i[0]||(i[0]=t=>(0,e.unref)(h).height=t),step:1,min:(0,e.unref)(h).minHeight,max:(0,e.unref)(h).maxHeight,onChange:i[1]||(i[1]=e=>C("height"))},null,8,["modelValue","min","max"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(h).height,"onUpdate:modelValue":i[2]||(i[2]=t=>(0,e.unref)(h).height=t),min:(0,e.unref)(h).minHeight,max:(0,e.unref)(h).maxHeight,step:1,"controls-position":"right",onChange:i[3]||(i[3]=e=>C("height"))},null,8,["modelValue","min","max"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(n,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(c).heading},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(l,{modelValue:(0,e.unref)(h).heading,"onUpdate:modelValue":i[4]||(i[4]=t=>(0,e.unref)(h).heading=t),step:1,min:(0,e.unref)(h).minHeading,max:(0,e.unref)(h).maxHeading,onChange:i[5]||(i[5]=e=>C("heading"))},null,8,["modelValue","min","max"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(h).heading,"onUpdate:modelValue":i[6]||(i[6]=t=>(0,e.unref)(h).heading=t),min:(0,e.unref)(h).minHeading,max:(0,e.unref)(h).maxHeading,step:1,"controls-position":"right",onChange:i[7]||(i[7]=e=>C("screenHeight"))},null,8,["modelValue","min","max"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(n,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(c).pitch},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(l,{modelValue:(0,e.unref)(h).pitch,"onUpdate:modelValue":i[8]||(i[8]=t=>(0,e.unref)(h).pitch=t),step:1,min:(0,e.unref)(h).minPitch,max:(0,e.unref)(h).maxPitch,onChange:i[9]||(i[9]=e=>C("pitch"))},null,8,["modelValue","min","max"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(h).pitch,"onUpdate:modelValue":i[10]||(i[10]=t=>(0,e.unref)(h).pitch=t),step:1,min:(0,e.unref)(h).minPitch,max:(0,e.unref)(h).maxPitch,"controls-position":"right",onChange:i[11]||(i[11]=e=>C("pitch"))},null,8,["modelValue","min","max"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(n,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(c).roll},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(l,{modelValue:(0,e.unref)(h).roll,"onUpdate:modelValue":i[12]||(i[12]=t=>(0,e.unref)(h).roll=t),step:1,min:(0,e.unref)(h).minPitch,max:(0,e.unref)(h).maxPitch,onChange:i[13]||(i[13]=e=>C("roll"))},null,8,["modelValue","min","max"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(h).roll,"onUpdate:modelValue":i[14]||(i[14]=t=>(0,e.unref)(h).roll=t),step:1,min:(0,e.unref)(h).minRoll,max:(0,e.unref)(h).maxRoll,"controls-position":"right",onChange:i[15]||(i[15]=e=>C("roll"))},null,8,["modelValue","min","max"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(n,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(c).leftRightAngle},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(l,{modelValue:(0,e.unref)(h).leftRightAngle,"onUpdate:modelValue":i[16]||(i[16]=t=>(0,e.unref)(h).leftRightAngle=t),step:1,min:(0,e.unref)(h).minLeftRightAngle,max:(0,e.unref)(h).maxLeftRightAngle,onChange:i[17]||(i[17]=e=>C("leftRightAngle"))},null,8,["modelValue","min","max"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(h).leftRightAngle,"onUpdate:modelValue":i[18]||(i[18]=t=>(0,e.unref)(h).leftRightAngle=t),step:1,min:(0,e.unref)(h).minLeftRightAngle,max:(0,e.unref)(h).maxLeftRightAngle,"controls-position":"right",onChange:i[19]||(i[19]=e=>C("leftRightAngle"))},null,8,["modelValue","min","max"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1}),(0,e.createVNode)(n,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(c).frontAndRearAngle},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(r,{span:16},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(l,{modelValue:(0,e.unref)(h).frontAndRearAngle,"onUpdate:modelValue":i[20]||(i[20]=t=>(0,e.unref)(h).frontAndRearAngle=t),step:1,min:(0,e.unref)(h).minFrontAndRearAngle,max:(0,e.unref)(h).maxFrontAndRearAngle,onChange:i[21]||(i[21]=e=>C("frontAndRearAngle"))},null,8,["modelValue","min","max"])])),_:1}),(0,e.createVNode)(r,{span:8},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(o,{modelValue:(0,e.unref)(h).frontAndRearAngle,"onUpdate:modelValue":i[22]||(i[22]=t=>(0,e.unref)(h).frontAndRearAngle=t),step:1,min:(0,e.unref)(h).minFrontAndRearAngle,max:(0,e.unref)(h).maxFrontAndRearAngle,"controls-position":"right",onChange:i[23]||(i[23]=e=>C("frontAndRearAngle"))},null,8,["modelValue","min","max"])])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])),_:1},8,["label-width"])])),_:1},8,["title"]),(0,e.createVNode)(x,{class:"kq3d-scene-advanced-to-image-collapse-item",title:(0,e.unref)(c).pictureSpecification,name:"pictureSpecification"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(v,{"label-width":"zh"===(0,e.unref)(d)?"90px":"120px","label-position":"left"},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,null,{default:(0,e.withCtx)((()=>[(0,e.createVNode)(s,{label:(0,e.unref)(c).imgFormat},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(n,{style:{display:"flex"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(w,{modelValue:(0,e.unref)(h).imgFormat,"onUpdate:modelValue":i[24]||(i[24]=t=>(0,e.unref)(h).imgFormat=t),onChange:i[25]||(i[25]=e=>C("imgFormat")),style:{width:"100%"}},{default:(0,e.withCtx)((()=>[(0,e.createVNode)(P,{label:"JPG",value:"jpg"}),(0,e.createVNode)(P,{label:"PNG",value:"png"}),(0,e.createVNode)(P,{label:"BMP",value:"bmp"}),(0,e.createVNode)(P,{label:"JPEG",value:"jpeg"})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["label"])])),_:1})])),_:1},8,["label-width"])])),_:1},8,["title"])])),_:1},8,["model-value"]),(0,e.createElementVNode)("div",u,[(0,e.createVNode)(y,{onClick:i[26]||(i[26]=(0,e.withModifiers)((e=>{g&&g.exportPicture()}),["stop"])),title:(0,e.unref)(c).sceneAdvancedToImageButton,type:"primary"},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(c).sceneAdvancedToImageButton),1)])),_:1},8,["title"]),(0,e.createVNode)(y,{onClick:i[27]||(i[27]=(0,e.withModifiers)((e=>{g&&g.start()}),["stop"])),title:(0,e.unref)(c).drawButton},{default:(0,e.withCtx)((()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(c).drawButton),1)])),_:1},8,["title"])])])],2)}}}),g=r(7997),h=r.n(g);c.install=(e,t)=>{h()(e,t),e.component(c.name,c)}}(),o}()}));